OSDN Git Service

* ChangeLog.gcj, Makefile.in, aclocal.m4, config.guess,
[pf3gnuchains/gcc-fork.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.17+cvs.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU Classpath'
271 PACKAGE_TARNAME='classpath'
272 PACKAGE_VERSION='0.17+cvs'
273 PACKAGE_STRING='GNU Classpath 0.17+cvs'
274 PACKAGE_BUGREPORT='classpath@gnu.org'
275
276 ac_unique_file="java/lang/System.java"
277 ac_default_prefix=/usr/local/classpath
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBVERSION CLASSPATH_MODULE 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 CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE default_toolkit CREATE_XMLJ_LIBRARY_TRUE CREATE_XMLJ_LIBRARY_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE GTK_CAIRO_ENABLED GTK_CAIRO_TRUE GTK_CAIRO_FALSE CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP LIBICONV LTLIBICONV WARNING_CFLAGS STRICT_WARNING_CFLAGS ERROR_CFLAGS PKG_CONFIG XML_CFLAGS XML_LIBS XSLT_CFLAGS XSLT_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING KJC GCJX ECJ FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE FOUND_GCJX_TRUE FOUND_GCJX_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE SH MKDIR CP DATE FIND ZIP INSTALL_GLIBJ_ZIP_TRUE INSTALL_GLIBJ_ZIP_FALSE INSTALL_CLASS_FILES_TRUE INSTALL_CLASS_FILES_FALSE BUILD_CLASS_FILES_TRUE BUILD_CLASS_FILES_FALSE EXAMPLESDIR GJDOC CREATE_API_DOCS_TRUE CREATE_API_DOCS_FALSE JAY JAY_SKELETON REGEN_PARSERS_TRUE REGEN_PARSERS_FALSE LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures GNU Classpath 0.17+cvs to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 Program names:
838   --program-prefix=PREFIX            prepend PREFIX to installed program names
839   --program-suffix=SUFFIX            append SUFFIX to installed program names
840   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849   --target=TARGET   configure for building compilers for TARGET [HOST]
850 _ACEOF
851 fi
852
853 if test -n "$ac_init_help"; then
854   case $ac_init_help in
855      short | recursive ) echo "Configuration of GNU Classpath 0.17+cvs:";;
856    esac
857   cat <<\_ACEOF
858
859 Optional Features:
860   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
861   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
862   --enable-jni            compile JNI source default=yes
863   --enable-core-jni       compile JNI sources for core default=yes
864   --disable-Werror        whether to compile C code with -Werror which turns
865                           any compiler warning into a compilation failure
866                           default=no
867   --enable-default-toolkit
868                           fully qualified class name of default AWT toolkit
869   --enable-xmlj           compile native libxml/xslt library default=no
870   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
871                           default=yes
872
873   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
874                           default=no
875   --enable-regen-headers  automatically regenerate JNI headers default=no
876   --enable-static=PKGS  build static libraries default=no
877   --enable-shared=PKGS  build shared libraries default=yes
878   --enable-fast-install=PKGS  optimize for fast installation default=yes
879   --disable-dependency-tracking  speeds up one-time build
880   --enable-dependency-tracking   do not reject slow dependency extractors
881   --disable-libtool-lock  avoid locking (might break parallel builds)
882   --disable-rpath         do not hardcode runtime library paths
883   --enable-maintainer-mode  enable make rules and dependencies not useful
884                           (and sometimes confusing) to the casual installer
885   --enable-debug          enable runtime debugging code
886   --enable-load-library   enable to use JNI native methods default=yes
887   --enable-java-lang-system-explicit-initialization
888                           will the VM explicitly invoke java.lang.System's
889                           static initialization methods default=no
890   --enable-examples       enable build of the examples default=yes
891   --enable-portable-native-sync
892                           synchronize VM threads portably
893
894 Optional Packages:
895   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
896   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
897   --with-gnu-ld           assume the C compiler uses GNU ld default=no
898   --with-pic              try to use only PIC/non-PIC objects default=use both
899   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
900   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
901   --with-x                use the X Window System
902   --with-javah            specify path or name of a javah-like program
903   --with-gcj              bytecode compilation with gcj
904   --with-jikes            bytecode compilation with jikes
905   --with-kjc              bytecode compilation with kjc
906   --with-gcjx             bytecode compilation with gcjx
907   --with-ecj              bytecode compilation with ecj
908   --with-classpath        specify path to a classes.zip like file
909   --with-vm-classes       specify path to VM override source files
910   --with-glibj            define what to install (zip|flat|both|none|build)
911                           [default=zip]
912   --with-gjdoc            generate documentation using gjdoc (default is NO)
913   --with-jay              Regenerate the parsers with jay must be given the
914                           path to the jay executable
915
916 Some influential environment variables:
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CPP         C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 Report bugs to <classpath@gnu.org>.
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962
963 # Do not use `cd foo && pwd` to compute absolute paths, because
964 # the directories may not exist.
965 case `pwd` in
966 .) ac_abs_builddir="$ac_dir";;
967 *)
968   case "$ac_dir" in
969   .) ac_abs_builddir=`pwd`;;
970   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
971   *) ac_abs_builddir=`pwd`/"$ac_dir";;
972   esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_top_builddir=${ac_top_builddir}.;;
976 *)
977   case ${ac_top_builddir}. in
978   .) ac_abs_top_builddir=$ac_abs_builddir;;
979   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
980   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
981   esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_srcdir=$ac_srcdir;;
985 *)
986   case $ac_srcdir in
987   .) ac_abs_srcdir=$ac_abs_builddir;;
988   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
989   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
990   esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_srcdir=$ac_top_srcdir;;
994 *)
995   case $ac_top_srcdir in
996   .) ac_abs_top_srcdir=$ac_abs_builddir;;
997   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
998   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
999   esac;;
1000 esac
1001
1002     cd $ac_dir
1003     # Check for guested configure; otherwise get Cygnus style configure.
1004     if test -f $ac_srcdir/configure.gnu; then
1005       echo
1006       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1007     elif test -f $ac_srcdir/configure; then
1008       echo
1009       $SHELL $ac_srcdir/configure  --help=recursive
1010     elif test -f $ac_srcdir/configure.ac ||
1011            test -f $ac_srcdir/configure.in; then
1012       echo
1013       $ac_configure --help
1014     else
1015       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1016     fi
1017     cd $ac_popdir
1018   done
1019 fi
1020
1021 test -n "$ac_init_help" && exit 0
1022 if $ac_init_version; then
1023   cat <<\_ACEOF
1024 GNU Classpath configure 0.17+cvs
1025 generated by GNU Autoconf 2.59
1026
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1030 _ACEOF
1031   exit 0
1032 fi
1033 exec 5>config.log
1034 cat >&5 <<_ACEOF
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1037
1038 It was created by GNU Classpath $as_me 0.17+cvs, which was
1039 generated by GNU Autoconf 2.59.  Invocation command line was
1040
1041   $ $0 $@
1042
1043 _ACEOF
1044 {
1045 cat <<_ASUNAME
1046 ## --------- ##
1047 ## Platform. ##
1048 ## --------- ##
1049
1050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1055
1056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1057 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1058
1059 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1060 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1062 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1063 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1064 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1065 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1066
1067 _ASUNAME
1068
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070 for as_dir in $PATH
1071 do
1072   IFS=$as_save_IFS
1073   test -z "$as_dir" && as_dir=.
1074   echo "PATH: $as_dir"
1075 done
1076
1077 } >&5
1078
1079 cat >&5 <<_ACEOF
1080
1081
1082 ## ----------- ##
1083 ## Core tests. ##
1084 ## ----------- ##
1085
1086 _ACEOF
1087
1088
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_configure_args=
1095 ac_configure_args0=
1096 ac_configure_args1=
1097 ac_sep=
1098 ac_must_keep_next=false
1099 for ac_pass in 1 2
1100 do
1101   for ac_arg
1102   do
1103     case $ac_arg in
1104     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106     | -silent | --silent | --silen | --sile | --sil)
1107       continue ;;
1108     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1110     esac
1111     case $ac_pass in
1112     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1113     2)
1114       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115       if test $ac_must_keep_next = true; then
1116         ac_must_keep_next=false # Got value, back to normal.
1117       else
1118         case $ac_arg in
1119           *=* | --config-cache | -C | -disable-* | --disable-* \
1120           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122           | -with-* | --with-* | -without-* | --without-* | --x)
1123             case "$ac_configure_args0 " in
1124               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1125             esac
1126             ;;
1127           -* ) ac_must_keep_next=true ;;
1128         esac
1129       fi
1130       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131       # Get rid of the leading space.
1132       ac_sep=" "
1133       ;;
1134     esac
1135   done
1136 done
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1139
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log.  We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close' the trap.
1145 trap 'exit_status=$?
1146   # Save into config.log some information that might help in debugging.
1147   {
1148     echo
1149
1150     cat <<\_ASBOX
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1154 _ASBOX
1155     echo
1156     # The following way of writing the cache mishandles newlines in values,
1157 {
1158   (set) 2>&1 |
1159     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1160     *ac_space=\ *)
1161       sed -n \
1162         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1164       ;;
1165     *)
1166       sed -n \
1167         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1168       ;;
1169     esac;
1170 }
1171     echo
1172
1173     cat <<\_ASBOX
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1177 _ASBOX
1178     echo
1179     for ac_var in $ac_subst_vars
1180     do
1181       eval ac_val=$`echo $ac_var`
1182       echo "$ac_var='"'"'$ac_val'"'"'"
1183     done | sort
1184     echo
1185
1186     if test -n "$ac_subst_files"; then
1187       cat <<\_ASBOX
1188 ## ------------- ##
1189 ## Output files. ##
1190 ## ------------- ##
1191 _ASBOX
1192       echo
1193       for ac_var in $ac_subst_files
1194       do
1195         eval ac_val=$`echo $ac_var`
1196         echo "$ac_var='"'"'$ac_val'"'"'"
1197       done | sort
1198       echo
1199     fi
1200
1201     if test -s confdefs.h; then
1202       cat <<\_ASBOX
1203 ## ----------- ##
1204 ## confdefs.h. ##
1205 ## ----------- ##
1206 _ASBOX
1207       echo
1208       sed "/^$/d" confdefs.h | sort
1209       echo
1210     fi
1211     test "$ac_signal" != 0 &&
1212       echo "$as_me: caught signal $ac_signal"
1213     echo "$as_me: exit $exit_status"
1214   } >&5
1215   rm -f core *.core &&
1216   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1217     exit $exit_status
1218      ' 0
1219 for ac_signal in 1 2 13 15; do
1220   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1221 done
1222 ac_signal=0
1223
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1227 echo >confdefs.h
1228
1229 # Predefined preprocessor variables.
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1253 _ACEOF
1254
1255
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259   if test "x$prefix" != xNONE; then
1260     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1261   else
1262     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1263   fi
1264 fi
1265 for ac_site_file in $CONFIG_SITE; do
1266   if test -r "$ac_site_file"; then
1267     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269     sed 's/^/| /' "$ac_site_file" >&5
1270     . "$ac_site_file"
1271   fi
1272 done
1273
1274 if test -r "$cache_file"; then
1275   # Some versions of bash will fail to source /dev/null (special
1276   # files actually), so we avoid doing that.
1277   if test -f "$cache_file"; then
1278     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1280     case $cache_file in
1281       [\\/]* | ?:[\\/]* ) . $cache_file;;
1282       *)                      . ./$cache_file;;
1283     esac
1284   fi
1285 else
1286   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1288   >$cache_file
1289 fi
1290
1291 # Check that the precious variables saved in the cache have kept the same
1292 # value.
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1296   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297   eval ac_new_set=\$ac_env_${ac_var}_set
1298   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299   eval ac_new_val="\$ac_env_${ac_var}_value"
1300   case $ac_old_set,$ac_new_set in
1301     set,)
1302       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1304       ac_cache_corrupted=: ;;
1305     ,set)
1306       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308       ac_cache_corrupted=: ;;
1309     ,);;
1310     *)
1311       if test "x$ac_old_val" != "x$ac_new_val"; then
1312         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1313 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1314         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1315 echo "$as_me:   former value:  $ac_old_val" >&2;}
1316         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1317 echo "$as_me:   current value: $ac_new_val" >&2;}
1318         ac_cache_corrupted=:
1319       fi;;
1320   esac
1321   # Pass precious variables to config.status.
1322   if test "$ac_new_set" = set; then
1323     case $ac_new_val in
1324     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1326     *) ac_arg=$ac_var=$ac_new_val ;;
1327     esac
1328     case " $ac_configure_args " in
1329       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1330       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1331     esac
1332   fi
1333 done
1334 if $ac_cache_corrupted; then
1335   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1338 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339    { (exit 1); exit 1; }; }
1340 fi
1341
1342 ac_ext=c
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376 ac_aux_dir=
1377 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378   if test -f $ac_dir/install-sh; then
1379     ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/install-sh -c"
1381     break
1382   elif test -f $ac_dir/install.sh; then
1383     ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install.sh -c"
1385     break
1386   elif test -f $ac_dir/shtool; then
1387     ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/shtool install -c"
1389     break
1390   fi
1391 done
1392 if test -z "$ac_aux_dir"; then
1393   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395    { (exit 1); exit 1; }; }
1396 fi
1397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405    { (exit 1); exit 1; }; }
1406
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410   echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412   ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414   ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418    { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 fi
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1427 build=$ac_cv_build
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440   ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444    { (exit 1); exit 1; }; }
1445
1446 fi
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1449 host=$ac_cv_host
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1454
1455 echo "$as_me:$LINENO: checking target system type" >&5
1456 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1457 if test "${ac_cv_target+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   ac_cv_target_alias=$target_alias
1461 test "x$ac_cv_target_alias" = "x" &&
1462   ac_cv_target_alias=$ac_cv_host_alias
1463 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1464   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1465 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1466    { (exit 1); exit 1; }; }
1467
1468 fi
1469 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1470 echo "${ECHO_T}$ac_cv_target" >&6
1471 target=$ac_cv_target
1472 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1473 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1474 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475
1476
1477 # The aliases save the names the user supplied, while $host etc.
1478 # will get canonicalized.
1479 test -n "$target_alias" &&
1480   test "$program_prefix$program_suffix$program_transform_name" = \
1481     NONENONEs,x,x, &&
1482   program_prefix=${target_alias}-
1483
1484 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1485
1486 LIBVERSION="0:0:0"
1487
1488 CLASSPATH_MODULE="-module -version-info ${LIBVERSION} -no-undefined"
1489
1490
1491
1492 am__api_version="1.9"
1493 # Find a good install program.  We prefer a C program (faster),
1494 # so one script is as good as another.  But avoid the broken or
1495 # incompatible versions:
1496 # SysV /etc/install, /usr/sbin/install
1497 # SunOS /usr/etc/install
1498 # IRIX /sbin/install
1499 # AIX /bin/install
1500 # AmigaOS /C/install, which installs bootblocks on floppy discs
1501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1504 # OS/2's system install, which has a completely different semantic
1505 # ./install, which can be erroneously created by make from ./install.sh.
1506 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1507 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1508 if test -z "$INSTALL"; then
1509 if test "${ac_cv_path_install+set}" = set; then
1510   echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515   IFS=$as_save_IFS
1516   test -z "$as_dir" && as_dir=.
1517   # Account for people who put trailing slashes in PATH elements.
1518 case $as_dir/ in
1519   ./ | .// | /cC/* | \
1520   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1521   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1522   /usr/ucb/* ) ;;
1523   *)
1524     # OSF1 and SCO ODT 3.0 have their own names for install.
1525     # Don't use installbsd from OSF since it installs stuff as root
1526     # by default.
1527     for ac_prog in ginstall scoinst install; do
1528       for ac_exec_ext in '' $ac_executable_extensions; do
1529         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1530           if test $ac_prog = install &&
1531             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1532             # AIX install.  It has an incompatible calling convention.
1533             :
1534           elif test $ac_prog = install &&
1535             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1536             # program-specific install script used by HP pwplus--don't use.
1537             :
1538           else
1539             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1540             break 3
1541           fi
1542         fi
1543       done
1544     done
1545     ;;
1546 esac
1547 done
1548
1549
1550 fi
1551   if test "${ac_cv_path_install+set}" = set; then
1552     INSTALL=$ac_cv_path_install
1553   else
1554     # As a last resort, use the slow shell script.  We don't cache a
1555     # path for INSTALL within a source directory, because that will
1556     # break other packages using the cache if that directory is
1557     # removed, or if the path is relative.
1558     INSTALL=$ac_install_sh
1559   fi
1560 fi
1561 echo "$as_me:$LINENO: result: $INSTALL" >&5
1562 echo "${ECHO_T}$INSTALL" >&6
1563
1564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1565 # It thinks the first close brace ends the variable substitution.
1566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567
1568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1569
1570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571
1572 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1573 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1574 # Just in case
1575 sleep 1
1576 echo timestamp > conftest.file
1577 # Do `set' in a subshell so we don't clobber the current shell's
1578 # arguments.  Must try -L first in case configure is actually a
1579 # symlink; some systems play weird games with the mod time of symlinks
1580 # (eg FreeBSD returns the mod time of the symlink's containing
1581 # directory).
1582 if (
1583    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1584    if test "$*" = "X"; then
1585       # -L didn't work.
1586       set X `ls -t $srcdir/configure conftest.file`
1587    fi
1588    rm -f conftest.file
1589    if test "$*" != "X $srcdir/configure conftest.file" \
1590       && test "$*" != "X conftest.file $srcdir/configure"; then
1591
1592       # If neither matched, then we have a broken ls.  This can happen
1593       # if, for instance, CONFIG_SHELL is bash and it inherits a
1594       # broken ls alias from the environment.  This has actually
1595       # happened.  Such a system could not be considered "sane".
1596       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1597 alias in your environment" >&5
1598 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1599 alias in your environment" >&2;}
1600    { (exit 1); exit 1; }; }
1601    fi
1602
1603    test "$2" = conftest.file
1604    )
1605 then
1606    # Ok.
1607    :
1608 else
1609    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1610 Check your system clock" >&5
1611 echo "$as_me: error: newly created file is older than distributed files!
1612 Check your system clock" >&2;}
1613    { (exit 1); exit 1; }; }
1614 fi
1615 echo "$as_me:$LINENO: result: yes" >&5
1616 echo "${ECHO_T}yes" >&6
1617 test "$program_prefix" != NONE &&
1618   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1619 # Use a double $ so make ignores it.
1620 test "$program_suffix" != NONE &&
1621   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1622 # Double any \ or $.  echo might interpret backslashes.
1623 # By default was `s,x,x', remove it if useless.
1624 cat <<\_ACEOF >conftest.sed
1625 s/[\\$]/&&/g;s/;s,x,x,$//
1626 _ACEOF
1627 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1628 rm conftest.sed
1629
1630 # expand $ac_aux_dir to an absolute path
1631 am_aux_dir=`cd $ac_aux_dir && pwd`
1632
1633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1634 # Use eval to expand $SHELL
1635 if eval "$MISSING --run true"; then
1636   am_missing_run="$MISSING --run "
1637 else
1638   am_missing_run=
1639   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1641 fi
1642
1643 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1644   # We used to keeping the `.' as first argument, in order to
1645   # allow $(mkdir_p) to be used without argument.  As in
1646   #   $(mkdir_p) $(somedir)
1647   # where $(somedir) is conditionally defined.  However this is wrong
1648   # for two reasons:
1649   #  1. if the package is installed by a user who cannot write `.'
1650   #     make install will fail,
1651   #  2. the above comment should most certainly read
1652   #     $(mkdir_p) $(DESTDIR)$(somedir)
1653   #     so it does not work when $(somedir) is undefined and
1654   #     $(DESTDIR) is not.
1655   #  To support the latter case, we have to write
1656   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1657   #  so the `.' trick is pointless.
1658   mkdir_p='mkdir -p --'
1659 else
1660   # On NextStep and OpenStep, the `mkdir' command does not
1661   # recognize any option.  It will interpret all options as
1662   # directories to create, and then abort because `.' already
1663   # exists.
1664   for d in ./-p ./--version;
1665   do
1666     test -d $d && rmdir $d
1667   done
1668   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1669   if test -f "$ac_aux_dir/mkinstalldirs"; then
1670     mkdir_p='$(mkinstalldirs)'
1671   else
1672     mkdir_p='$(install_sh) -d'
1673   fi
1674 fi
1675
1676 for ac_prog in gawk mawk nawk awk
1677 do
1678   # Extract the first word of "$ac_prog", so it can be a program name with args.
1679 set dummy $ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_AWK+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$AWK"; then
1686   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   for ac_exec_ext in '' $ac_executable_extensions; do
1694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695     ac_cv_prog_AWK="$ac_prog"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 fi
1703 fi
1704 AWK=$ac_cv_prog_AWK
1705 if test -n "$AWK"; then
1706   echo "$as_me:$LINENO: result: $AWK" >&5
1707 echo "${ECHO_T}$AWK" >&6
1708 else
1709   echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 fi
1712
1713   test -n "$AWK" && break
1714 done
1715
1716 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1719 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   cat >conftest.make <<\_ACEOF
1723 all:
1724         @echo 'ac_maketemp="$(MAKE)"'
1725 _ACEOF
1726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1727 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1728 if test -n "$ac_maketemp"; then
1729   eval ac_cv_prog_make_${ac_make}_set=yes
1730 else
1731   eval ac_cv_prog_make_${ac_make}_set=no
1732 fi
1733 rm -f conftest.make
1734 fi
1735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1736   echo "$as_me:$LINENO: result: yes" >&5
1737 echo "${ECHO_T}yes" >&6
1738   SET_MAKE=
1739 else
1740   echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1742   SET_MAKE="MAKE=${MAKE-make}"
1743 fi
1744
1745 rm -rf .tst 2>/dev/null
1746 mkdir .tst 2>/dev/null
1747 if test -d .tst; then
1748   am__leading_dot=.
1749 else
1750   am__leading_dot=_
1751 fi
1752 rmdir .tst 2>/dev/null
1753
1754 # test to see if srcdir already configured
1755 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1756    test -f $srcdir/config.status; then
1757   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1758 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1759    { (exit 1); exit 1; }; }
1760 fi
1761
1762 # test whether we have cygpath
1763 if test -z "$CYGPATH_W"; then
1764   if (cygpath --version) >/dev/null 2>/dev/null; then
1765     CYGPATH_W='cygpath -w'
1766   else
1767     CYGPATH_W=echo
1768   fi
1769 fi
1770
1771
1772 # Define the identity of the package.
1773  PACKAGE='classpath'
1774  VERSION='0.17+cvs'
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE "$PACKAGE"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define VERSION "$VERSION"
1784 _ACEOF
1785
1786 # Some tools Automake needs.
1787
1788 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1789
1790
1791 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1792
1793
1794 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1795
1796
1797 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1798
1799
1800 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1801
1802 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1803
1804 # Installed binaries are usually stripped using `strip' when the user
1805 # run `make install-strip'.  However `strip' might not be the right
1806 # tool to use in cross-compilation environments, therefore Automake
1807 # will honor the `STRIP' environment variable to overrule this program.
1808 if test "$cross_compiling" != no; then
1809   if test -n "$ac_tool_prefix"; then
1810   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}strip; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_STRIP+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$STRIP"; then
1818   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 STRIP=$ac_cv_prog_STRIP
1837 if test -n "$STRIP"; then
1838   echo "$as_me:$LINENO: result: $STRIP" >&5
1839 echo "${ECHO_T}$STRIP" >&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 "$ac_cv_prog_STRIP"; then
1847   ac_ct_STRIP=$STRIP
1848   # Extract the first word of "strip", so it can be a program name with args.
1849 set dummy strip; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$ac_ct_STRIP"; then
1856   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_ac_ct_STRIP="strip"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1873 fi
1874 fi
1875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1876 if test -n "$ac_ct_STRIP"; then
1877   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1878 echo "${ECHO_T}$ac_ct_STRIP" >&6
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
1883
1884   STRIP=$ac_ct_STRIP
1885 else
1886   STRIP="$ac_cv_prog_STRIP"
1887 fi
1888
1889 fi
1890 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1891
1892 # We need awk for the "check" target.  The system "awk" is bad on
1893 # some platforms.
1894 # Always define AMTAR for backward compatibility.
1895
1896 AMTAR=${AMTAR-"${am_missing_run}tar"}
1897
1898
1899 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1900 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1901 # Loop over all known methods to create a tar archive until one works.
1902 _am_tools='gnutar plaintar pax cpio none'
1903 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1904 # Do not fold the above two line into one, because Tru64 sh and
1905 # Solaris sh will not grok spaces in the rhs of `-'.
1906 for _am_tool in $_am_tools
1907 do
1908   case $_am_tool in
1909   gnutar)
1910     for _am_tar in tar gnutar gtar;
1911     do
1912       { echo "$as_me:$LINENO: $_am_tar --version" >&5
1913    ($_am_tar --version) >&5 2>&5
1914    ac_status=$?
1915    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916    (exit $ac_status); } && break
1917     done
1918     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1919     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1920     am__untar="$_am_tar -xf -"
1921     ;;
1922   plaintar)
1923     # Must skip GNU tar: if it does not support --format= it doesn't create
1924     # ustar tarball either.
1925     (tar --version) >/dev/null 2>&1 && continue
1926     am__tar='tar chf - "$$tardir"'
1927     am__tar_='tar chf - "$tardir"'
1928     am__untar='tar xf -'
1929     ;;
1930   pax)
1931     am__tar='pax -L -x ustar -w "$$tardir"'
1932     am__tar_='pax -L -x ustar -w "$tardir"'
1933     am__untar='pax -r'
1934     ;;
1935   cpio)
1936     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1937     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1938     am__untar='cpio -i -H ustar -d'
1939     ;;
1940   none)
1941     am__tar=false
1942     am__tar_=false
1943     am__untar=false
1944     ;;
1945   esac
1946
1947   # If the value was cached, stop now.  We just wanted to have am__tar
1948   # and am__untar set.
1949   test -n "${am_cv_prog_tar_ustar}" && break
1950
1951   # tar/untar a dummy directory, and stop if the command works
1952   rm -rf conftest.dir
1953   mkdir conftest.dir
1954   echo GrepMe > conftest.dir/file
1955   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
1956    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
1957    ac_status=$?
1958    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959    (exit $ac_status); }
1960   rm -rf conftest.dir
1961   if test -s conftest.tar; then
1962     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
1963    ($am__untar <conftest.tar) >&5 2>&5
1964    ac_status=$?
1965    echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966    (exit $ac_status); }
1967     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1968   fi
1969 done
1970 rm -rf conftest.dir
1971
1972 if test "${am_cv_prog_tar_ustar+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   am_cv_prog_tar_ustar=$_am_tool
1976 fi
1977
1978 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
1979 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
1980
1981
1982
1983
1984
1985           ac_config_headers="$ac_config_headers include/config.h"
1986
1987
1988
1989 # Check whether --enable-jni or --disable-jni was given.
1990 if test "${enable_jni+set}" = set; then
1991   enableval="$enable_jni"
1992   case "${enableval}" in
1993                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
1994                 no) COMPILE_JNI=no ;;
1995                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
1996               esac
1997 else
1998   COMPILE_JNI=yes
1999 fi;
2000
2001
2002 if test "x${COMPILE_JNI}" = xyes; then
2003   CREATE_JNI_LIBRARIES_TRUE=
2004   CREATE_JNI_LIBRARIES_FALSE='#'
2005 else
2006   CREATE_JNI_LIBRARIES_TRUE='#'
2007   CREATE_JNI_LIBRARIES_FALSE=
2008 fi
2009
2010
2011 # Check whether --enable-core-jni or --disable-core-jni was given.
2012 if test "${enable_core_jni+set}" = set; then
2013   enableval="$enable_core_jni"
2014   case "${enableval}" in
2015                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2016                 no) COMPILE_CORE_JNI=no ;;
2017                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2018               esac
2019 else
2020   COMPILE_CORE_JNI=yes
2021 fi;
2022
2023
2024 if test "x${COMPILE_CORE_JNI}" = xyes; then
2025   CREATE_CORE_JNI_LIBRARIES_TRUE=
2026   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2027 else
2028   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2029   CREATE_CORE_JNI_LIBRARIES_FALSE=
2030 fi
2031
2032
2033 # Check whether --enable-Werror or --disable-Werror was given.
2034 if test "${enable_Werror+set}" = set; then
2035   enableval="$enable_Werror"
2036   case "${enableval}" in
2037                 yes) ENABLE_WERROR=yes ;;
2038                 no) ENABLE_WERROR=no ;;
2039                 *) ENABLE_WERROR=yes ;;
2040               esac
2041 else
2042   ENABLE_WERROR=no
2043 fi;
2044
2045 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2046 if test "${enable_default_toolkit+set}" = set; then
2047   enableval="$enable_default_toolkit"
2048
2049 fi;
2050 default_toolkit=$enable_default_tookit
2051 if test "$default_toolkit" = ""; then
2052    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2053 fi
2054
2055
2056 # Check whether --enable-xmlj or --disable-xmlj was given.
2057 if test "${enable_xmlj+set}" = set; then
2058   enableval="$enable_xmlj"
2059   case "${enableval}" in
2060                 yes) COMPILE_XMLJ=yes ;;
2061                 no) COMPILE_XMLJ=no ;;
2062                 *) COMPILE_XMLJ=no ;;
2063               esac
2064 else
2065   COMPILE_XMLJ=no
2066 fi;
2067
2068
2069 if test "x${COMPILE_XMLJ}" = xyes; then
2070   CREATE_XMLJ_LIBRARY_TRUE=
2071   CREATE_XMLJ_LIBRARY_FALSE='#'
2072 else
2073   CREATE_XMLJ_LIBRARY_TRUE='#'
2074   CREATE_XMLJ_LIBRARY_FALSE=
2075 fi
2076
2077
2078 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
2079 if test "${enable_gtk_peer+set}" = set; then
2080   enableval="$enable_gtk_peer"
2081   case "${enableval}" in
2082                 yes) COMPILE_GTK_PEER=yes ;;
2083                 no) COMPILE_GTK_PEER=no ;;
2084                 *) COMPILE_GTK_PEER=yes ;;
2085               esac
2086 else
2087   COMPILE_GTK_PEER=yes
2088 fi;
2089
2090
2091 if test "x${COMPILE_GTK_PEER}" = xyes; then
2092   CREATE_GTK_PEER_LIBRARIES_TRUE=
2093   CREATE_GTK_PEER_LIBRARIES_FALSE='#'
2094 else
2095   CREATE_GTK_PEER_LIBRARIES_TRUE='#'
2096   CREATE_GTK_PEER_LIBRARIES_FALSE=
2097 fi
2098
2099
2100 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
2101 if test "${enable_gtk_peers+set}" = set; then
2102   enableval="$enable_gtk_peers"
2103   { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
2104 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi;
2107
2108 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
2109 if test "${enable_gtk_cairo+set}" = set; then
2110   enableval="$enable_gtk_cairo"
2111   case "${enableval}" in
2112                 yes) GTK_CAIRO_ENABLED=true ;;
2113                 no) GTK_CAIRO_ENABLED=false ;;
2114                 *) GTK_CAIRO_ENABLED=true ;;
2115               esac
2116 else
2117   GTK_CAIRO_ENABLED=false
2118 fi;
2119
2120 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
2121
2122 cat >>confdefs.h <<\_ACEOF
2123 #define GTK_CAIRO 1
2124 _ACEOF
2125
2126 fi
2127
2128
2129 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
2130   GTK_CAIRO_TRUE=
2131   GTK_CAIRO_FALSE='#'
2132 else
2133   GTK_CAIRO_TRUE='#'
2134   GTK_CAIRO_FALSE=
2135 fi
2136
2137
2138 # Check whether --enable-regen-headers or --disable-regen-headers was given.
2139 if test "${enable_regen_headers+set}" = set; then
2140   enableval="$enable_regen_headers"
2141   case "${enableval}" in
2142                 yes) REGENERATE_JNI_HEADERS=yes ;;
2143                 no) REGENERATE_JNI_HEADERS=no ;;
2144                 *) REGENERATE_JNI_HEADERS=no ;;
2145               esac
2146 else
2147   REGENERATE_JNI_HEADERS=no
2148 fi;
2149
2150
2151 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
2152   CREATE_JNI_HEADERS_TRUE=
2153   CREATE_JNI_HEADERS_FALSE='#'
2154 else
2155   CREATE_JNI_HEADERS_TRUE='#'
2156   CREATE_JNI_HEADERS_FALSE=
2157 fi
2158
2159
2160 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2161 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2162 LN_S=$as_ln_s
2163 if test "$LN_S" = "ln -s"; then
2164   echo "$as_me:$LINENO: result: yes" >&5
2165 echo "${ECHO_T}yes" >&6
2166 else
2167   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2168 echo "${ECHO_T}no, using $LN_S" >&6
2169 fi
2170
2171 # Find a good install program.  We prefer a C program (faster),
2172 # so one script is as good as another.  But avoid the broken or
2173 # incompatible versions:
2174 # SysV /etc/install, /usr/sbin/install
2175 # SunOS /usr/etc/install
2176 # IRIX /sbin/install
2177 # AIX /bin/install
2178 # AmigaOS /C/install, which installs bootblocks on floppy discs
2179 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2180 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2181 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2182 # OS/2's system install, which has a completely different semantic
2183 # ./install, which can be erroneously created by make from ./install.sh.
2184 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2185 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2186 if test -z "$INSTALL"; then
2187 if test "${ac_cv_path_install+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   # Account for people who put trailing slashes in PATH elements.
2196 case $as_dir/ in
2197   ./ | .// | /cC/* | \
2198   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2199   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2200   /usr/ucb/* ) ;;
2201   *)
2202     # OSF1 and SCO ODT 3.0 have their own names for install.
2203     # Don't use installbsd from OSF since it installs stuff as root
2204     # by default.
2205     for ac_prog in ginstall scoinst install; do
2206       for ac_exec_ext in '' $ac_executable_extensions; do
2207         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2208           if test $ac_prog = install &&
2209             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2210             # AIX install.  It has an incompatible calling convention.
2211             :
2212           elif test $ac_prog = install &&
2213             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2214             # program-specific install script used by HP pwplus--don't use.
2215             :
2216           else
2217             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2218             break 3
2219           fi
2220         fi
2221       done
2222     done
2223     ;;
2224 esac
2225 done
2226
2227
2228 fi
2229   if test "${ac_cv_path_install+set}" = set; then
2230     INSTALL=$ac_cv_path_install
2231   else
2232     # As a last resort, use the slow shell script.  We don't cache a
2233     # path for INSTALL within a source directory, because that will
2234     # break other packages using the cache if that directory is
2235     # removed, or if the path is relative.
2236     INSTALL=$ac_install_sh
2237   fi
2238 fi
2239 echo "$as_me:$LINENO: result: $INSTALL" >&5
2240 echo "${ECHO_T}$INSTALL" >&6
2241
2242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243 # It thinks the first close brace ends the variable substitution.
2244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2245
2246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2247
2248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2249
2250
2251 # Check whether --enable-static or --disable-static was given.
2252 if test "${enable_static+set}" = set; then
2253   enableval="$enable_static"
2254   p=${PACKAGE-default}
2255 case $enableval in
2256 yes) enable_static=yes ;;
2257 no) enable_static=no ;;
2258 *)
2259   enable_static=no
2260   # Look at the argument we got.  We use all the common list separators.
2261   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2262   for pkg in $enableval; do
2263     if test "X$pkg" = "X$p"; then
2264       enable_static=yes
2265     fi
2266   done
2267   IFS="$ac_save_ifs"
2268   ;;
2269 esac
2270 else
2271   enable_static=no
2272 fi;
2273 # Check whether --enable-shared or --disable-shared was given.
2274 if test "${enable_shared+set}" = set; then
2275   enableval="$enable_shared"
2276   p=${PACKAGE-default}
2277 case $enableval in
2278 yes) enable_shared=yes ;;
2279 no) enable_shared=no ;;
2280 *)
2281   enable_shared=no
2282   # Look at the argument we got.  We use all the common list separators.
2283   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2284   for pkg in $enableval; do
2285     if test "X$pkg" = "X$p"; then
2286       enable_shared=yes
2287     fi
2288   done
2289   IFS="$ac_save_ifs"
2290   ;;
2291 esac
2292 else
2293   enable_shared=yes
2294 fi;
2295 # Check whether --enable-fast-install or --disable-fast-install was given.
2296 if test "${enable_fast_install+set}" = set; then
2297   enableval="$enable_fast_install"
2298   p=${PACKAGE-default}
2299 case $enableval in
2300 yes) enable_fast_install=yes ;;
2301 no) enable_fast_install=no ;;
2302 *)
2303   enable_fast_install=no
2304   # Look at the argument we got.  We use all the common list separators.
2305   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2306   for pkg in $enableval; do
2307     if test "X$pkg" = "X$p"; then
2308       enable_fast_install=yes
2309     fi
2310   done
2311   IFS="$ac_save_ifs"
2312   ;;
2313 esac
2314 else
2315   enable_fast_install=yes
2316 fi;
2317 DEPDIR="${am__leading_dot}deps"
2318
2319           ac_config_commands="$ac_config_commands depfiles"
2320
2321
2322 am_make=${MAKE-make}
2323 cat > confinc << 'END'
2324 am__doit:
2325         @echo done
2326 .PHONY: am__doit
2327 END
2328 # If we don't find an include directive, just comment out the code.
2329 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2330 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2331 am__include="#"
2332 am__quote=
2333 _am_result=none
2334 # First try GNU make style include.
2335 echo "include confinc" > confmf
2336 # We grep out `Entering directory' and `Leaving directory'
2337 # messages which can occur if `w' ends up in MAKEFLAGS.
2338 # In particular we don't look at `^make:' because GNU make might
2339 # be invoked under some other name (usually "gmake"), in which
2340 # case it prints its new name instead of `make'.
2341 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2342    am__include=include
2343    am__quote=
2344    _am_result=GNU
2345 fi
2346 # Now try BSD make style include.
2347 if test "$am__include" = "#"; then
2348    echo '.include "confinc"' > confmf
2349    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2350       am__include=.include
2351       am__quote="\""
2352       _am_result=BSD
2353    fi
2354 fi
2355
2356
2357 echo "$as_me:$LINENO: result: $_am_result" >&5
2358 echo "${ECHO_T}$_am_result" >&6
2359 rm -f confinc confmf
2360
2361 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2362 if test "${enable_dependency_tracking+set}" = set; then
2363   enableval="$enable_dependency_tracking"
2364
2365 fi;
2366 if test "x$enable_dependency_tracking" != xno; then
2367   am_depcomp="$ac_aux_dir/depcomp"
2368   AMDEPBACKSLASH='\'
2369 fi
2370
2371
2372 if test "x$enable_dependency_tracking" != xno; then
2373   AMDEP_TRUE=
2374   AMDEP_FALSE='#'
2375 else
2376   AMDEP_TRUE='#'
2377   AMDEP_FALSE=
2378 fi
2379
2380
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 if test -n "$ac_tool_prefix"; then
2388   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CC+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CC"; then
2396   ac_cv_prog_CC="$CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411
2412 fi
2413 fi
2414 CC=$ac_cv_prog_CC
2415 if test -n "$CC"; then
2416   echo "$as_me:$LINENO: result: $CC" >&5
2417 echo "${ECHO_T}$CC" >&6
2418 else
2419   echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
2423 fi
2424 if test -z "$ac_cv_prog_CC"; then
2425   ac_ct_CC=$CC
2426   # Extract the first word of "gcc", so it can be a program name with args.
2427 set dummy gcc; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$ac_ct_CC"; then
2434   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443     ac_cv_prog_ac_ct_CC="gcc"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449
2450 fi
2451 fi
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2455 echo "${ECHO_T}$ac_ct_CC" >&6
2456 else
2457   echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2459 fi
2460
2461   CC=$ac_ct_CC
2462 else
2463   CC="$ac_cv_prog_CC"
2464 fi
2465
2466 if test -z "$CC"; then
2467   if test -n "$ac_tool_prefix"; then
2468   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}cc; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_CC+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$CC"; then
2476   ac_cv_prog_CC="$CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485     ac_cv_prog_CC="${ac_tool_prefix}cc"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491
2492 fi
2493 fi
2494 CC=$ac_cv_prog_CC
2495 if test -n "$CC"; then
2496   echo "$as_me:$LINENO: result: $CC" >&5
2497 echo "${ECHO_T}$CC" >&6
2498 else
2499   echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503 fi
2504 if test -z "$ac_cv_prog_CC"; then
2505   ac_ct_CC=$CC
2506   # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   if test -n "$ac_ct_CC"; then
2514   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521   for ac_exec_ext in '' $ac_executable_extensions; do
2522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523     ac_cv_prog_ac_ct_CC="cc"
2524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528 done
2529
2530 fi
2531 fi
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2535 echo "${ECHO_T}$ac_ct_CC" >&6
2536 else
2537   echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6
2539 fi
2540
2541   CC=$ac_ct_CC
2542 else
2543   CC="$ac_cv_prog_CC"
2544 fi
2545
2546 fi
2547 if test -z "$CC"; then
2548   # Extract the first word of "cc", so it can be a program name with args.
2549 set dummy cc; ac_word=$2
2550 echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553   echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555   if test -n "$CC"; then
2556   ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558   ac_prog_rejected=no
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567        ac_prog_rejected=yes
2568        continue
2569      fi
2570     ac_cv_prog_CC="cc"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576
2577 if test $ac_prog_rejected = yes; then
2578   # We found a bogon in the path, so make sure we never use it.
2579   set dummy $ac_cv_prog_CC
2580   shift
2581   if test $# != 0; then
2582     # We chose a different compiler from the bogus one.
2583     # However, it has the same basename, so the bogon will be chosen
2584     # first if we set CC to just the basename; use the full file name.
2585     shift
2586     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2587   fi
2588 fi
2589 fi
2590 fi
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593   echo "$as_me:$LINENO: result: $CC" >&5
2594 echo "${ECHO_T}$CC" >&6
2595 else
2596   echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6
2598 fi
2599
2600 fi
2601 if test -z "$CC"; then
2602   if test -n "$ac_tool_prefix"; then
2603   for ac_prog in cl
2604   do
2605     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$CC"; then
2613   ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628
2629 fi
2630 fi
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633   echo "$as_me:$LINENO: result: $CC" >&5
2634 echo "${ECHO_T}$CC" >&6
2635 else
2636   echo "$as_me:$LINENO: result: no" >&5
2637 echo "${ECHO_T}no" >&6
2638 fi
2639
2640     test -n "$CC" && break
2641   done
2642 fi
2643 if test -z "$CC"; then
2644   ac_ct_CC=$CC
2645   for ac_prog in cl
2646 do
2647   # Extract the first word of "$ac_prog", so it can be a program name with args.
2648 set dummy $ac_prog; ac_word=$2
2649 echo "$as_me:$LINENO: checking for $ac_word" >&5
2650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   if test -n "$ac_ct_CC"; then
2655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662   for ac_exec_ext in '' $ac_executable_extensions; do
2663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664     ac_cv_prog_ac_ct_CC="$ac_prog"
2665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666     break 2
2667   fi
2668 done
2669 done
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676 echo "${ECHO_T}$ac_ct_CC" >&6
2677 else
2678   echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6
2680 fi
2681
2682   test -n "$ac_ct_CC" && break
2683 done
2684
2685   CC=$ac_ct_CC
2686 fi
2687
2688 fi
2689
2690
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695    { (exit 1); exit 1; }; }
2696
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO:" \
2699      "checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2702   (eval $ac_compiler --version </dev/null >&5) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }
2706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2707   (eval $ac_compiler -v </dev/null >&5) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }
2711 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2712   (eval $ac_compiler -V </dev/null >&5) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }
2716
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723
2724 int
2725 main ()
2726 {
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 ac_clean_files_save=$ac_clean_files
2733 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2734 # Try to create an executable without -o first, disregard a.out.
2735 # It will help us diagnose broken compilers, and finding out an intuition
2736 # of exeext.
2737 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2738 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2739 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2741   (eval $ac_link_default) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # Find the output, starting from the most likely.  This scheme is
2746 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2747 # resort.
2748
2749 # Be careful to initialize this variable, since it used to be cached.
2750 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2751 ac_cv_exeext=
2752 # b.out is created by i960 compilers.
2753 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2754 do
2755   test -f "$ac_file" || continue
2756   case $ac_file in
2757     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2758         ;;
2759     conftest.$ac_ext )
2760         # This is the source file.
2761         ;;
2762     [ab].out )
2763         # We found the default executable, but exeext='' is most
2764         # certainly right.
2765         break;;
2766     *.* )
2767         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768         # FIXME: I believe we export ac_cv_exeext for Libtool,
2769         # but it would be cool to find out if it's true.  Does anybody
2770         # maintain Libtool? --akim.
2771         export ac_cv_exeext
2772         break;;
2773     * )
2774         break;;
2775   esac
2776 done
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2782 See \`config.log' for more details." >&5
2783 echo "$as_me: error: C compiler cannot create executables
2784 See \`config.log' for more details." >&2;}
2785    { (exit 77); exit 77; }; }
2786 fi
2787
2788 ac_exeext=$ac_cv_exeext
2789 echo "$as_me:$LINENO: result: $ac_file" >&5
2790 echo "${ECHO_T}$ac_file" >&6
2791
2792 # Check the compiler produces executables we can run.  If not, either
2793 # the compiler is broken, or we cross compile.
2794 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2795 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2796 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2797 # If not cross compiling, check that we can run a simple program.
2798 if test "$cross_compiling" != yes; then
2799   if { ac_try='./$ac_file'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805     cross_compiling=no
2806   else
2807     if test "$cross_compiling" = maybe; then
2808         cross_compiling=yes
2809     else
2810         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details." >&2;}
2816    { (exit 1); exit 1; }; }
2817     fi
2818   fi
2819 fi
2820 echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2822
2823 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2824 ac_clean_files=$ac_clean_files_save
2825 # Check the compiler produces executables we can run.  If not, either
2826 # the compiler is broken, or we cross compile.
2827 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2828 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2829 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2830 echo "${ECHO_T}$cross_compiling" >&6
2831
2832 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2833 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835   (eval $ac_link) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; then
2839   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2840 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2841 # work properly (i.e., refer to `conftest.exe'), while it won't with
2842 # `rm'.
2843 for ac_file in conftest.exe conftest conftest.*; do
2844   test -f "$ac_file" || continue
2845   case $ac_file in
2846     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2847     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848           export ac_cv_exeext
2849           break;;
2850     * ) break;;
2851   esac
2852 done
2853 else
2854   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858    { (exit 1); exit 1; }; }
2859 fi
2860
2861 rm -f conftest$ac_cv_exeext
2862 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6
2864
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2867 ac_exeext=$EXEEXT
2868 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2870 if test "${ac_cv_objext+set}" = set; then
2871   echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873   cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h.  */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h.  */
2879
2880 int
2881 main ()
2882 {
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.o conftest.obj
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; then
2894   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2895   case $ac_file in
2896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2897     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2898        break;;
2899   esac
2900 done
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&5
2907 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details." >&2;}
2909    { (exit 1); exit 1; }; }
2910 fi
2911
2912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2913 fi
2914 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2915 echo "${ECHO_T}$ac_cv_objext" >&6
2916 OBJEXT=$ac_cv_objext
2917 ac_objext=$OBJEXT
2918 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929
2930 int
2931 main ()
2932 {
2933 #ifndef __GNUC__
2934        choke me
2935 #endif
2936
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943   (eval $ac_compile) 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -z "$ac_c_werror_flag"
2951                          || test ! -s conftest.err'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   ac_compiler_gnu=yes
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 ac_compiler_gnu=no
2969 fi
2970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972
2973 fi
2974 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2976 GCC=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS=${CFLAGS+set}
2978 ac_save_CFLAGS=$CFLAGS
2979 CFLAGS="-g"
2980 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2981 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2982 if test "${ac_cv_prog_cc_g+set}" = set; then
2983   echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985   cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991
2992 int
2993 main ()
2994 {
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002   (eval $ac_compile) 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } &&
3009          { ac_try='test -z "$ac_c_werror_flag"
3010                          || test ! -s conftest.err'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; } &&
3016          { ac_try='test -s conftest.$ac_objext'
3017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018   (eval $ac_try) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   ac_cv_prog_cc_g=yes
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027 ac_cv_prog_cc_g=no
3028 fi
3029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030 fi
3031 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3032 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3033 if test "$ac_test_CFLAGS" = set; then
3034   CFLAGS=$ac_save_CFLAGS
3035 elif test $ac_cv_prog_cc_g = yes; then
3036   if test "$GCC" = yes; then
3037     CFLAGS="-g -O2"
3038   else
3039     CFLAGS="-g"
3040   fi
3041 else
3042   if test "$GCC" = yes; then
3043     CFLAGS="-O2"
3044   else
3045     CFLAGS=
3046   fi
3047 fi
3048 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3049 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3050 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   ac_cv_prog_cc_stdc=no
3054 ac_save_CC=$CC
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #include <stdarg.h>
3062 #include <stdio.h>
3063 #include <sys/types.h>
3064 #include <sys/stat.h>
3065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3066 struct buf { int x; };
3067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3068 static char *e (p, i)
3069      char **p;
3070      int i;
3071 {
3072   return p[i];
3073 }
3074 static char *f (char * (*g) (char **, int), char **p, ...)
3075 {
3076   char *s;
3077   va_list v;
3078   va_start (v,p);
3079   s = g (p, va_arg (v,int));
3080   va_end (v);
3081   return s;
3082 }
3083
3084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3085    function prototypes and stuff, but not '\xHH' hex character constants.
3086    These don't provoke an error unfortunately, instead are silently treated
3087    as 'x'.  The following induces an error, until -std1 is added to get
3088    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3089    array size at least.  It's necessary to write '\x00'==0 to get something
3090    that's true only with -std1.  */
3091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3092
3093 int test (int i, double x);
3094 struct s1 {int (*f) (int a);};
3095 struct s2 {int (*f) (double a);};
3096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3097 int argc;
3098 char **argv;
3099 int
3100 main ()
3101 {
3102 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3103   ;
3104   return 0;
3105 }
3106 _ACEOF
3107 # Don't try gcc -ansi; that turns off useful extensions and
3108 # breaks some systems' header files.
3109 # AIX                   -qlanglvl=ansi
3110 # Ultrix and OSF/1      -std1
3111 # HP-UX 10.20 and later -Ae
3112 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3113 # SVR4                  -Xc -D__EXTENSIONS__
3114 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3115 do
3116   CC="$ac_save_CC $ac_arg"
3117   rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119   (eval $ac_compile) 2>conftest.er1
3120   ac_status=$?
3121   grep -v '^ *+' conftest.er1 >conftest.err
3122   rm -f conftest.er1
3123   cat conftest.err >&5
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); } &&
3126          { ac_try='test -z "$ac_c_werror_flag"
3127                          || test ! -s conftest.err'
3128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129   (eval $ac_try) 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; } &&
3133          { ac_try='test -s conftest.$ac_objext'
3134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135   (eval $ac_try) 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }; }; then
3139   ac_cv_prog_cc_stdc=$ac_arg
3140 break
3141 else
3142   echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 fi
3146 rm -f conftest.err conftest.$ac_objext
3147 done
3148 rm -f conftest.$ac_ext conftest.$ac_objext
3149 CC=$ac_save_CC
3150
3151 fi
3152
3153 case "x$ac_cv_prog_cc_stdc" in
3154   x|xno)
3155     echo "$as_me:$LINENO: result: none needed" >&5
3156 echo "${ECHO_T}none needed" >&6 ;;
3157   *)
3158     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3159 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3160     CC="$CC $ac_cv_prog_cc_stdc" ;;
3161 esac
3162
3163 # Some people use a C++ compiler to compile C.  Since we use `exit',
3164 # in C++ we need to declare it.  In case someone uses the same compiler
3165 # for both compiling C and C++ we need to have the C++ compiler decide
3166 # the declaration of exit, since it's the most demanding environment.
3167 cat >conftest.$ac_ext <<_ACEOF
3168 #ifndef __cplusplus
3169   choke me
3170 #endif
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174   (eval $ac_compile) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } &&
3181          { ac_try='test -z "$ac_c_werror_flag"
3182                          || test ! -s conftest.err'
3183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184   (eval $ac_try) 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; } &&
3188          { ac_try='test -s conftest.$ac_objext'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; }; then
3194   for ac_declaration in \
3195    '' \
3196    'extern "C" void std::exit (int) throw (); using std::exit;' \
3197    'extern "C" void std::exit (int); using std::exit;' \
3198    'extern "C" void exit (int) throw ();' \
3199    'extern "C" void exit (int);' \
3200    'void exit (int);'
3201 do
3202   cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208 $ac_declaration
3209 #include <stdlib.h>
3210 int
3211 main ()
3212 {
3213 exit (42);
3214   ;
3215   return 0;
3216 }
3217 _ACEOF
3218 rm -f conftest.$ac_objext
3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220   (eval $ac_compile) 2>conftest.er1
3221   ac_status=$?
3222   grep -v '^ *+' conftest.er1 >conftest.err
3223   rm -f conftest.er1
3224   cat conftest.err >&5
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } &&
3227          { ac_try='test -z "$ac_c_werror_flag"
3228                          || test ! -s conftest.err'
3229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230   (eval $ac_try) 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; } &&
3234          { ac_try='test -s conftest.$ac_objext'
3235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236   (eval $ac_try) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; }; then
3240   :
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 continue
3246 fi
3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248   cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254 $ac_declaration
3255 int
3256 main ()
3257 {
3258 exit (42);
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265   (eval $ac_compile) 2>conftest.er1
3266   ac_status=$?
3267   grep -v '^ *+' conftest.er1 >conftest.err
3268   rm -f conftest.er1
3269   cat conftest.err >&5
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); } &&
3272          { ac_try='test -z "$ac_c_werror_flag"
3273                          || test ! -s conftest.err'
3274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; } &&
3279          { ac_try='test -s conftest.$ac_objext'
3280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281   (eval $ac_try) 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; }; then
3285   break
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 fi
3291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 done
3293 rm -f conftest*
3294 if test -n "$ac_declaration"; then
3295   echo '#ifdef __cplusplus' >>confdefs.h
3296   echo $ac_declaration      >>confdefs.h
3297   echo '#endif'             >>confdefs.h
3298 fi
3299
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 fi
3305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312 depcc="$CC"   am_compiler_list=
3313
3314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320   # We make a subdir and do the tests there.  Otherwise we can end up
3321   # making bogus files that we don't know about and never remove.  For
3322   # instance it was reported that on HP-UX the gcc test will end up
3323   # making a dummy file named `D' -- because `-MD' means `put the output
3324   # in D'.
3325   mkdir conftest.dir
3326   # Copy depcomp to subdir because otherwise we won't find it if we're
3327   # using a relative directory.
3328   cp "$am_depcomp" conftest.dir
3329   cd conftest.dir
3330   # We will build objects and dependencies in a subdirectory because
3331   # it helps to detect inapplicable dependency modes.  For instance
3332   # both Tru64's cc and ICC support -MD to output dependencies as a
3333   # side effect of compilation, but ICC will put the dependencies in
3334   # the current directory while Tru64 will put them in the object
3335   # directory.
3336   mkdir sub
3337
3338   am_cv_CC_dependencies_compiler_type=none
3339   if test "$am_compiler_list" = ""; then
3340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3341   fi
3342   for depmode in $am_compiler_list; do
3343     # Setup a source with many dependencies, because some compilers
3344     # like to wrap large dependency lists on column 80 (with \), and
3345     # we should not choose a depcomp mode which is confused by this.
3346     #
3347     # We need to recreate these files for each test, as the compiler may
3348     # overwrite some of them when testing with obscure command lines.
3349     # This happens at least with the AIX C compiler.
3350     : > sub/conftest.c
3351     for i in 1 2 3 4 5 6; do
3352       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3353       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3354       # Solaris 8's {/usr,}/bin/sh.
3355       touch sub/conftst$i.h
3356     done
3357     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3358
3359     case $depmode in
3360     nosideeffect)
3361       # after this tag, mechanisms are not by side-effect, so they'll
3362       # only be used when explicitly requested
3363       if test "x$enable_dependency_tracking" = xyes; then
3364         continue
3365       else
3366         break
3367       fi
3368       ;;
3369     none) break ;;
3370     esac
3371     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372     # mode.  It turns out that the SunPro C++ compiler does not properly
3373     # handle `-M -o', and we need to detect this.
3374     if depmode=$depmode \
3375        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378          >/dev/null 2>conftest.err &&
3379        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382       # icc doesn't choke on unknown options, it will just issue warnings
3383       # or remarks (even with -Werror).  So we grep stderr for any message
3384       # that says an option was ignored or not supported.
3385       # When given -MP, icc 7.0 and 7.1 complain thusly:
3386       #   icc: Command line warning: ignoring option '-M'; no argument required
3387       # The diagnosis changed in icc 8.0:
3388       #   icc: Command line remark: option '-MP' not supported
3389       if (grep 'ignoring option' conftest.err ||
3390           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3391         am_cv_CC_dependencies_compiler_type=$depmode
3392         break
3393       fi
3394     fi
3395   done
3396
3397   cd ..
3398   rm -rf conftest.dir
3399 else
3400   am_cv_CC_dependencies_compiler_type=none
3401 fi
3402
3403 fi
3404 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3405 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3407
3408
3409
3410 if
3411   test "x$enable_dependency_tracking" != xno \
3412   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3413   am__fastdepCC_TRUE=
3414   am__fastdepCC_FALSE='#'
3415 else
3416   am__fastdepCC_TRUE='#'
3417   am__fastdepCC_FALSE=
3418 fi
3419
3420
3421
3422 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3423 if test "${with_gnu_ld+set}" = set; then
3424   withval="$with_gnu_ld"
3425   test "$withval" = no || with_gnu_ld=yes
3426 else
3427   with_gnu_ld=no
3428 fi;
3429 ac_prog=ld
3430 if test "$GCC" = yes; then
3431   # Check if gcc -print-prog-name=ld gives a path.
3432   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3433 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3434   case $host in
3435   *-*-mingw*)
3436     # gcc leaves a trailing carriage return which upsets mingw
3437     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3438   *)
3439     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3440   esac
3441   case $ac_prog in
3442     # Accept absolute paths.
3443     [\\/]* | [A-Za-z]:[\\/]*)
3444       re_direlt='/[^/][^/]*/\.\./'
3445       # Canonicalize the path of ld
3446       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3447       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3448         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3449       done
3450       test -z "$LD" && LD="$ac_prog"
3451       ;;
3452   "")
3453     # If it fails, then pretend we aren't using GCC.
3454     ac_prog=ld
3455     ;;
3456   *)
3457     # If it is relative, then search for the first ld in PATH.
3458     with_gnu_ld=unknown
3459     ;;
3460   esac
3461 elif test "$with_gnu_ld" = yes; then
3462   echo "$as_me:$LINENO: checking for GNU ld" >&5
3463 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3464 else
3465   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3466 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3467 fi
3468 if test "${lt_cv_path_LD+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   if test -z "$LD"; then
3472   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3473   for ac_dir in $PATH; do
3474     test -z "$ac_dir" && ac_dir=.
3475     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3476       lt_cv_path_LD="$ac_dir/$ac_prog"
3477       # Check to see if the program is GNU ld.  I'd rather use --version,
3478       # but apparently some GNU ld's only accept -v.
3479       # Break only if it was the GNU/non-GNU ld that we prefer.
3480       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3481         test "$with_gnu_ld" != no && break
3482       else
3483         test "$with_gnu_ld" != yes && break
3484       fi
3485     fi
3486   done
3487   IFS="$ac_save_ifs"
3488 else
3489   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3490 fi
3491 fi
3492
3493 LD="$lt_cv_path_LD"
3494 if test -n "$LD"; then
3495   echo "$as_me:$LINENO: result: $LD" >&5
3496 echo "${ECHO_T}$LD" >&6
3497 else
3498   echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3500 fi
3501 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3502 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3503    { (exit 1); exit 1; }; }
3504 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3505 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3506 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3510 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3511   lt_cv_prog_gnu_ld=yes
3512 else
3513   lt_cv_prog_gnu_ld=no
3514 fi
3515 fi
3516 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3517 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3518 with_gnu_ld=$lt_cv_prog_gnu_ld
3519
3520
3521 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3522 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3523 if test "${lt_cv_ld_reload_flag+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   lt_cv_ld_reload_flag='-r'
3527 fi
3528 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3529 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3530 reload_flag=$lt_cv_ld_reload_flag
3531 test -n "$reload_flag" && reload_flag=" $reload_flag"
3532
3533 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3534 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3535 if test "${lt_cv_path_NM+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   if test -n "$NM"; then
3539   # Let the user override the test.
3540   lt_cv_path_NM="$NM"
3541 else
3542   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3543   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3544     test -z "$ac_dir" && ac_dir=.
3545     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3546     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3547       # Check to see if the nm accepts a BSD-compat flag.
3548       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3549       #   nm: unknown option "B" ignored
3550       # Tru64's nm complains that /dev/null is an invalid object file
3551       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3552         lt_cv_path_NM="$tmp_nm -B"
3553         break
3554       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3555         lt_cv_path_NM="$tmp_nm -p"
3556         break
3557       else
3558         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3559         continue # so that we can try to find one that supports BSD flags
3560       fi
3561     fi
3562   done
3563   IFS="$ac_save_ifs"
3564   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3565 fi
3566 fi
3567
3568 NM="$lt_cv_path_NM"
3569 echo "$as_me:$LINENO: result: $NM" >&5
3570 echo "${ECHO_T}$NM" >&6
3571
3572 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3573 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3574 if test "${lt_cv_deplibs_check_method+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   lt_cv_file_magic_cmd='$MAGIC_CMD'
3578 lt_cv_file_magic_test_file=
3579 lt_cv_deplibs_check_method='unknown'
3580 # Need to set the preceding variable on all platforms that support
3581 # interlibrary dependencies.
3582 # 'none' -- dependencies not supported.
3583 # `unknown' -- same as none, but documents that we really don't know.
3584 # 'pass_all' -- all dependencies passed with no checks.
3585 # 'test_compile' -- check by making test program.
3586 # 'file_magic [regex]' -- check by looking for files in library path
3587 # which responds to the $file_magic_cmd with a given egrep regex.
3588 # If you have `file' or equivalent on your system and you're not sure
3589 # whether `pass_all' will *always* work, you probably want this one.
3590
3591 case $host_os in
3592 aix*)
3593   lt_cv_deplibs_check_method=pass_all
3594   ;;
3595
3596 beos*)
3597   lt_cv_deplibs_check_method=pass_all
3598   ;;
3599
3600 bsdi4*)
3601   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3602   lt_cv_file_magic_cmd='/usr/bin/file -L'
3603   lt_cv_file_magic_test_file=/shlib/libc.so
3604   ;;
3605
3606 cygwin* | mingw* |pw32*)
3607   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3608   lt_cv_file_magic_cmd='$OBJDUMP -f'
3609   ;;
3610
3611 darwin* | rhapsody*)
3612   # this will be overwritten by pass_all, but leave it in just in case
3613   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3614   lt_cv_file_magic_cmd='/usr/bin/file -L'
3615   case "$host_os" in
3616   rhapsody* | darwin1.012)
3617     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3618     ;;
3619   *) # Darwin 1.3 on
3620     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3621     ;;
3622   esac
3623   lt_cv_deplibs_check_method=pass_all
3624   ;;
3625
3626 freebsd* | kfreebsd*-gnu)
3627   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628     case $host_cpu in
3629     i*86 )
3630       # Not sure whether the presence of OpenBSD here was a mistake.
3631       # Let's accept both of them until this is cleared up.
3632       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3633       lt_cv_file_magic_cmd=/usr/bin/file
3634       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3635       ;;
3636     esac
3637   else
3638     lt_cv_deplibs_check_method=pass_all
3639   fi
3640   ;;
3641
3642 gnu*)
3643   lt_cv_deplibs_check_method=pass_all
3644   ;;
3645
3646 hpux10.20*|hpux11*)
3647   case $host_cpu in
3648   hppa*)
3649     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3650     lt_cv_file_magic_cmd=/usr/bin/file
3651     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3652     ;;
3653   ia64*)
3654     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3655     lt_cv_file_magic_cmd=/usr/bin/file
3656     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3657     ;;
3658   esac
3659   ;;
3660
3661 irix5* | irix6*)
3662   case $host_os in
3663   irix5*)
3664     # this will be overridden with pass_all, but let us keep it just in case
3665     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3666     ;;
3667   *)
3668     case $LD in
3669     *-32|*"-32 ") libmagic=32-bit;;
3670     *-n32|*"-n32 ") libmagic=N32;;
3671     *-64|*"-64 ") libmagic=64-bit;;
3672     *) libmagic=never-match;;
3673     esac
3674     # this will be overridden with pass_all, but let us keep it just in case
3675     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3676     ;;
3677   esac
3678   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3679   lt_cv_deplibs_check_method=pass_all
3680   ;;
3681
3682 # This must be Linux ELF.
3683 linux-gnu*)
3684   lt_cv_deplibs_check_method=pass_all
3685   ;;
3686
3687 netbsd* | knetbsd*-gnu)
3688   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3689     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3690   else
3691     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3692   fi
3693   ;;
3694
3695 newsos6)
3696   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3697   lt_cv_file_magic_cmd=/usr/bin/file
3698   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3699   ;;
3700
3701 osf3* | osf4* | osf5*)
3702   # this will be overridden with pass_all, but let us keep it just in case
3703   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3704   lt_cv_file_magic_test_file=/shlib/libc.so
3705   lt_cv_deplibs_check_method=pass_all
3706   ;;
3707
3708 sco3.2v5*)
3709   lt_cv_deplibs_check_method=pass_all
3710   ;;
3711
3712 solaris*)
3713   lt_cv_deplibs_check_method=pass_all
3714   lt_cv_file_magic_test_file=/lib/libc.so
3715   ;;
3716
3717 sysv5uw[78]* | sysv4*uw2*)
3718   lt_cv_deplibs_check_method=pass_all
3719   ;;
3720
3721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3722   case $host_vendor in
3723   ncr)
3724     lt_cv_deplibs_check_method=pass_all
3725     ;;
3726   motorola)
3727     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]'
3728     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3729     ;;
3730   esac
3731   ;;
3732 esac
3733
3734 fi
3735 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3737 file_magic_cmd=$lt_cv_file_magic_cmd
3738 deplibs_check_method=$lt_cv_deplibs_check_method
3739
3740
3741
3742
3743
3744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3745
3746 # find the maximum length of command line arguments
3747 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3748 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3749 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3750   echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752     i=0
3753   teststring="ABCD"
3754
3755   case $build_os in
3756   msdosdjgpp*)
3757     # On DJGPP, this test can blow up pretty badly due to problems in libc
3758     # (any single argument exceeding 2000 bytes causes a buffer overrun
3759     # during glob expansion).  Even if it were fixed, the result of this
3760     # check would be larger than it should be.
3761     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3762     ;;
3763
3764   cygwin* | mingw*)
3765     # On Win9x/ME, this test blows up -- it succeeds, but takes
3766     # about 5 minutes as the teststring grows exponentially.
3767     # Worse, since 9x/ME are not pre-emptively multitasking,
3768     # you end up with a "frozen" computer, even though with patience
3769     # the test eventually succeeds (with a max line length of 256k).
3770     # Instead, let's just punt: use the minimum linelength reported by
3771     # all of the supported platforms: 8192 (on NT/2K/XP).
3772     lt_cv_sys_max_cmd_len=8192;
3773     ;;
3774
3775   amigaos*)
3776     # On AmigaOS with pdksh, this test takes hours, literally.
3777     # So we just punt and use a minimum line length of 8192.
3778     lt_cv_sys_max_cmd_len=8192;
3779     ;;
3780
3781   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3782     # This has been around since 386BSD, at least.  Likely further.
3783     if test -x /sbin/sysctl; then
3784       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3785     elif test -x /usr/sbin/sysctl; then
3786       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3787     else
3788       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3789     fi
3790     # And add a safety zone
3791     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3792     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3793     ;;
3794   esac
3795
3796 fi
3797
3798 if test -n "$lt_cv_sys_max_cmd_len" ; then
3799   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3800 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3801 else
3802   echo "$as_me:$LINENO: result: none" >&5
3803 echo "${ECHO_T}none" >&6
3804 fi
3805
3806
3807 # Only perform the check for file, if the check method requires it
3808 case $deplibs_check_method in
3809 file_magic*)
3810   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3811     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3812 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   case $MAGIC_CMD in
3817   /*)
3818   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3819   ;;
3820   ?:/*)
3821   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3822   ;;
3823   *)
3824   ac_save_MAGIC_CMD="$MAGIC_CMD"
3825   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3826   ac_dummy="/usr/bin:$PATH"
3827   for ac_dir in $ac_dummy; do
3828     test -z "$ac_dir" && ac_dir=.
3829     if test -f $ac_dir/${ac_tool_prefix}file; then
3830       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3831       if test -n "$file_magic_test_file"; then
3832         case $deplibs_check_method in
3833         "file_magic "*)
3834           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3835           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3836           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3837             egrep "$file_magic_regex" > /dev/null; then
3838             :
3839           else
3840             cat <<EOF 1>&2
3841
3842 *** Warning: the command libtool uses to detect shared libraries,
3843 *** $file_magic_cmd, produces output that libtool cannot recognize.
3844 *** The result is that libtool may fail to recognize shared libraries
3845 *** as such.  This will affect the creation of libtool libraries that
3846 *** depend on shared libraries, but programs linked with such libtool
3847 *** libraries will work regardless of this problem.  Nevertheless, you
3848 *** may want to report the problem to your system manager and/or to
3849 *** bug-libtool@gnu.org
3850
3851 EOF
3852           fi ;;
3853         esac
3854       fi
3855       break
3856     fi
3857   done
3858   IFS="$ac_save_ifs"
3859   MAGIC_CMD="$ac_save_MAGIC_CMD"
3860   ;;
3861 esac
3862 fi
3863
3864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3865 if test -n "$MAGIC_CMD"; then
3866   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3867 echo "${ECHO_T}$MAGIC_CMD" >&6
3868 else
3869   echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6
3871 fi
3872
3873 if test -z "$lt_cv_path_MAGIC_CMD"; then
3874   if test -n "$ac_tool_prefix"; then
3875     echo "$as_me:$LINENO: checking for file" >&5
3876 echo $ECHO_N "checking for file... $ECHO_C" >&6
3877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   case $MAGIC_CMD in
3881   /*)
3882   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3883   ;;
3884   ?:/*)
3885   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3886   ;;
3887   *)
3888   ac_save_MAGIC_CMD="$MAGIC_CMD"
3889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3890   ac_dummy="/usr/bin:$PATH"
3891   for ac_dir in $ac_dummy; do
3892     test -z "$ac_dir" && ac_dir=.
3893     if test -f $ac_dir/file; then
3894       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3895       if test -n "$file_magic_test_file"; then
3896         case $deplibs_check_method in
3897         "file_magic "*)
3898           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3899           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3900           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3901             egrep "$file_magic_regex" > /dev/null; then
3902             :
3903           else
3904             cat <<EOF 1>&2
3905
3906 *** Warning: the command libtool uses to detect shared libraries,
3907 *** $file_magic_cmd, produces output that libtool cannot recognize.
3908 *** The result is that libtool may fail to recognize shared libraries
3909 *** as such.  This will affect the creation of libtool libraries that
3910 *** depend on shared libraries, but programs linked with such libtool
3911 *** libraries will work regardless of this problem.  Nevertheless, you
3912 *** may want to report the problem to your system manager and/or to
3913 *** bug-libtool@gnu.org
3914
3915 EOF
3916           fi ;;
3917         esac
3918       fi
3919       break
3920     fi
3921   done
3922   IFS="$ac_save_ifs"
3923   MAGIC_CMD="$ac_save_MAGIC_CMD"
3924   ;;
3925 esac
3926 fi
3927
3928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3929 if test -n "$MAGIC_CMD"; then
3930   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3931 echo "${ECHO_T}$MAGIC_CMD" >&6
3932 else
3933   echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3935 fi
3936
3937   else
3938     MAGIC_CMD=:
3939   fi
3940 fi
3941
3942   fi
3943   ;;
3944 esac
3945
3946 if test -n "$ac_tool_prefix"; then
3947   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_RANLIB+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   if test -n "$RANLIB"; then
3955   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for ac_exec_ext in '' $ac_executable_extensions; do
3963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969 done
3970
3971 fi
3972 fi
3973 RANLIB=$ac_cv_prog_RANLIB
3974 if test -n "$RANLIB"; then
3975   echo "$as_me:$LINENO: result: $RANLIB" >&5
3976 echo "${ECHO_T}$RANLIB" >&6
3977 else
3978   echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981
3982 fi
3983 if test -z "$ac_cv_prog_RANLIB"; then
3984   ac_ct_RANLIB=$RANLIB
3985   # Extract the first word of "ranlib", so it can be a program name with args.
3986 set dummy ranlib; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   if test -n "$ac_ct_RANLIB"; then
3993   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002     ac_cv_prog_ac_ct_RANLIB="ranlib"
4003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007 done
4008
4009   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4010 fi
4011 fi
4012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4013 if test -n "$ac_ct_RANLIB"; then
4014   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4015 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4016 else
4017   echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4019 fi
4020
4021   RANLIB=$ac_ct_RANLIB
4022 else
4023   RANLIB="$ac_cv_prog_RANLIB"
4024 fi
4025
4026 if test -n "$ac_tool_prefix"; then
4027   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}strip; ac_word=$2
4029 echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4031 if test "${ac_cv_prog_STRIP+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if test -n "$STRIP"; then
4035   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042   for ac_exec_ext in '' $ac_executable_extensions; do
4043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049 done
4050
4051 fi
4052 fi
4053 STRIP=$ac_cv_prog_STRIP
4054 if test -n "$STRIP"; then
4055   echo "$as_me:$LINENO: result: $STRIP" >&5
4056 echo "${ECHO_T}$STRIP" >&6
4057 else
4058   echo "$as_me:$LINENO: result: no" >&5
4059 echo "${ECHO_T}no" >&6
4060 fi
4061
4062 fi
4063 if test -z "$ac_cv_prog_STRIP"; then
4064   ac_ct_STRIP=$STRIP
4065   # Extract the first word of "strip", so it can be a program name with args.
4066 set dummy strip; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   if test -n "$ac_ct_STRIP"; then
4073   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082     ac_cv_prog_ac_ct_STRIP="strip"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4090 fi
4091 fi
4092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4093 if test -n "$ac_ct_STRIP"; then
4094   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4095 echo "${ECHO_T}$ac_ct_STRIP" >&6
4096 else
4097   echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4099 fi
4100
4101   STRIP=$ac_ct_STRIP
4102 else
4103   STRIP="$ac_cv_prog_STRIP"
4104 fi
4105
4106
4107 # Check for any special flags to pass to ltconfig.
4108 libtool_flags="--cache-file=$cache_file"
4109 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4110 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4111 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4112 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4113 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4114
4115
4116 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4117 if test "${enable_libtool_lock+set}" = set; then
4118   enableval="$enable_libtool_lock"
4119
4120 fi;
4121 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4122 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4123
4124
4125 # Check whether --with-pic or --without-pic was given.
4126 if test "${with_pic+set}" = set; then
4127   withval="$with_pic"
4128   pic_mode="$withval"
4129 else
4130   pic_mode=default
4131 fi;
4132 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4133 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4134
4135 # Some flags need to be propagated to the compiler or linker for good
4136 # libtool support.
4137 case $host in
4138 *-*-irix6*)
4139   # Find out which ABI we are using.
4140   echo '#line 4140 "configure"' > conftest.$ac_ext
4141   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142   (eval $ac_compile) 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; then
4146    if test "$lt_cv_prog_gnu_ld" = yes; then
4147     case `/usr/bin/file conftest.$ac_objext` in
4148     *32-bit*)
4149       LD="${LD-ld} -melf32bsmip"
4150       ;;
4151     *N32*)
4152       LD="${LD-ld} -melf32bmipn32"
4153       ;;
4154     *64-bit*)
4155       LD="${LD-ld} -melf64bmip"
4156       ;;
4157     esac
4158    else
4159     case `/usr/bin/file conftest.$ac_objext` in
4160     *32-bit*)
4161       LD="${LD-ld} -32"
4162       ;;
4163     *N32*)
4164       LD="${LD-ld} -n32"
4165       ;;
4166     *64-bit*)
4167       LD="${LD-ld} -64"
4168       ;;
4169     esac
4170    fi
4171   fi
4172   rm -rf conftest*
4173   ;;
4174
4175 ia64-*-hpux*)
4176   # Find out which ABI we are using.
4177   echo 'int i;' > conftest.$ac_ext
4178   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179   (eval $ac_compile) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; then
4183     case "`/usr/bin/file conftest.o`" in
4184     *ELF-32*)
4185       HPUX_IA64_MODE="32"
4186       ;;
4187     *ELF-64*)
4188       HPUX_IA64_MODE="64"
4189       ;;
4190     esac
4191   fi
4192   rm -rf conftest*
4193   ;;
4194
4195 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4196   # Find out which ABI we are using.
4197   echo 'int i;' > conftest.$ac_ext
4198   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199   (eval $ac_compile) 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; then
4203     case "`/usr/bin/file conftest.o`" in
4204     *32-bit*)
4205       case $host in
4206         x86_64-*linux*)
4207           LD="${LD-ld} -m elf_i386"
4208           ;;
4209         ppc64-*linux*|powerpc64-*linux*)
4210           LD="${LD-ld} -m elf32ppclinux"
4211           ;;
4212         s390x-*linux*)
4213           LD="${LD-ld} -m elf_s390"
4214           ;;
4215         sparc64-*linux*)
4216           LD="${LD-ld} -m elf32_sparc"
4217           ;;
4218       esac
4219       ;;
4220     *64-bit*)
4221       case $host in
4222         x86_64-*linux*)
4223           LD="${LD-ld} -m elf_x86_64"
4224           ;;
4225         ppc*-*linux*|powerpc*-*linux*)
4226           LD="${LD-ld} -m elf64ppc"
4227           ;;
4228         s390*-*linux*)
4229           LD="${LD-ld} -m elf64_s390"
4230           ;;
4231         sparc*-*linux*)
4232           LD="${LD-ld} -m elf64_sparc"
4233           ;;
4234       esac
4235       ;;
4236     esac
4237   fi
4238   rm -rf conftest*
4239   ;;
4240
4241 *-*-sco3.2v5*)
4242   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4243   SAVE_CFLAGS="$CFLAGS"
4244   CFLAGS="$CFLAGS -belf"
4245   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4246 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4247 if test "${lt_cv_cc_needs_belf+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250
4251
4252      ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257
4258      cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275   (eval $ac_link) 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -z "$ac_c_werror_flag"
4283                          || test ! -s conftest.err'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest$ac_exeext'
4290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   lt_cv_cc_needs_belf=yes
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 lt_cv_cc_needs_belf=no
4301 fi
4302 rm -f conftest.err conftest.$ac_objext \
4303       conftest$ac_exeext conftest.$ac_ext
4304      ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310 fi
4311 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4312 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4313   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4314     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4315     CFLAGS="$SAVE_CFLAGS"
4316   fi
4317   ;;
4318
4319
4320 esac
4321
4322
4323 # Save cache, so that ltconfig can load it
4324 cat >confcache <<\_ACEOF
4325 # This file is a shell script that caches the results of configure
4326 # tests run on this system so they can be shared between configure
4327 # scripts and configure runs, see configure's option --config-cache.
4328 # It is not useful on other systems.  If it contains results you don't
4329 # want to keep, you may remove or edit it.
4330 #
4331 # config.status only pays attention to the cache file if you give it
4332 # the --recheck option to rerun configure.
4333 #
4334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4336 # following values.
4337
4338 _ACEOF
4339
4340 # The following way of writing the cache mishandles newlines in values,
4341 # but we know of no workaround that is simple, portable, and efficient.
4342 # So, don't put newlines in cache variables' values.
4343 # Ultrix sh set writes to stderr and can't be redirected directly,
4344 # and sets the high bit in the cache file unless we assign to the vars.
4345 {
4346   (set) 2>&1 |
4347     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4348     *ac_space=\ *)
4349       # `set' does not quote correctly, so add quotes (double-quote
4350       # substitution turns \\\\ into \\, and sed turns \\ into \).
4351       sed -n \
4352         "s/'/'\\\\''/g;
4353           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4354       ;;
4355     *)
4356       # `set' quotes correctly as required by POSIX, so do not add quotes.
4357       sed -n \
4358         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4359       ;;
4360     esac;
4361 } |
4362   sed '
4363      t clear
4364      : clear
4365      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4366      t end
4367      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4368      : end' >>confcache
4369 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4370   if test -w $cache_file; then
4371     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4372     cat confcache >$cache_file
4373   else
4374     echo "not updating unwritable cache $cache_file"
4375   fi
4376 fi
4377 rm -f confcache
4378
4379 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4380 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4385 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4386 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4387 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4388 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4389 echo "$as_me: error: libtool configure failed" >&2;}
4390    { (exit 1); exit 1; }; }
4391
4392 # Reload cache, that may have been modified by ltconfig
4393 if test -r "$cache_file"; then
4394   # Some versions of bash will fail to source /dev/null (special
4395   # files actually), so we avoid doing that.
4396   if test -f "$cache_file"; then
4397     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4398 echo "$as_me: loading cache $cache_file" >&6;}
4399     case $cache_file in
4400       [\\/]* | ?:[\\/]* ) . $cache_file;;
4401       *)                      . ./$cache_file;;
4402     esac
4403   fi
4404 else
4405   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4406 echo "$as_me: creating cache $cache_file" >&6;}
4407   >$cache_file
4408 fi
4409
4410
4411 # This can be used to rebuild libtool when needed
4412 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4413
4414 # Always use our own libtool.
4415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4416
4417 # Redirect the config.log output again, so that the ltconfig log is not
4418 # clobbered by the next message.
4419 exec 5>>./config.log
4420
4421
4422
4423
4424
4425
4426 ac_ext=c
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 if test -n "$ac_tool_prefix"; then
4432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_CC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$CC"; then
4440   ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455
4456 fi
4457 fi
4458 CC=$ac_cv_prog_CC
4459 if test -n "$CC"; then
4460   echo "$as_me:$LINENO: result: $CC" >&5
4461 echo "${ECHO_T}$CC" >&6
4462 else
4463   echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4465 fi
4466
4467 fi
4468 if test -z "$ac_cv_prog_CC"; then
4469   ac_ct_CC=$CC
4470   # Extract the first word of "gcc", so it can be a program name with args.
4471 set dummy gcc; ac_word=$2
4472 echo "$as_me:$LINENO: checking for $ac_word" >&5
4473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test -n "$ac_ct_CC"; then
4478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_ac_ct_CC="gcc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494 fi
4495 fi
4496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4497 if test -n "$ac_ct_CC"; then
4498   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4499 echo "${ECHO_T}$ac_ct_CC" >&6
4500 else
4501   echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503 fi
4504
4505   CC=$ac_ct_CC
4506 else
4507   CC="$ac_cv_prog_CC"
4508 fi
4509
4510 if test -z "$CC"; then
4511   if test -n "$ac_tool_prefix"; then
4512   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4513 set dummy ${ac_tool_prefix}cc; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_CC+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$CC"; then
4520   ac_cv_prog_CC="$CC" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_prog_CC="${ac_tool_prefix}cc"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535
4536 fi
4537 fi
4538 CC=$ac_cv_prog_CC
4539 if test -n "$CC"; then
4540   echo "$as_me:$LINENO: result: $CC" >&5
4541 echo "${ECHO_T}$CC" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547 fi
4548 if test -z "$ac_cv_prog_CC"; then
4549   ac_ct_CC=$CC
4550   # Extract the first word of "cc", so it can be a program name with args.
4551 set dummy cc; ac_word=$2
4552 echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   if test -n "$ac_ct_CC"; then
4558   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567     ac_cv_prog_ac_ct_CC="cc"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573
4574 fi
4575 fi
4576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4577 if test -n "$ac_ct_CC"; then
4578   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4579 echo "${ECHO_T}$ac_ct_CC" >&6
4580 else
4581   echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6
4583 fi
4584
4585   CC=$ac_ct_CC
4586 else
4587   CC="$ac_cv_prog_CC"
4588 fi
4589
4590 fi
4591 if test -z "$CC"; then
4592   # Extract the first word of "cc", so it can be a program name with args.
4593 set dummy cc; ac_word=$2
4594 echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4596 if test "${ac_cv_prog_CC+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   if test -n "$CC"; then
4600   ac_cv_prog_CC="$CC" # Let the user override the test.
4601 else
4602   ac_prog_rejected=no
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4611        ac_prog_rejected=yes
4612        continue
4613      fi
4614     ac_cv_prog_CC="cc"
4615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616     break 2
4617   fi
4618 done
4619 done
4620
4621 if test $ac_prog_rejected = yes; then
4622   # We found a bogon in the path, so make sure we never use it.
4623   set dummy $ac_cv_prog_CC
4624   shift
4625   if test $# != 0; then
4626     # We chose a different compiler from the bogus one.
4627     # However, it has the same basename, so the bogon will be chosen
4628     # first if we set CC to just the basename; use the full file name.
4629     shift
4630     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4631   fi
4632 fi
4633 fi
4634 fi
4635 CC=$ac_cv_prog_CC
4636 if test -n "$CC"; then
4637   echo "$as_me:$LINENO: result: $CC" >&5
4638 echo "${ECHO_T}$CC" >&6
4639 else
4640   echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642 fi
4643
4644 fi
4645 if test -z "$CC"; then
4646   if test -n "$ac_tool_prefix"; then
4647   for ac_prog in cl
4648   do
4649     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_CC+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   if test -n "$CC"; then
4657   ac_cv_prog_CC="$CC" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664   for ac_exec_ext in '' $ac_executable_extensions; do
4665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671 done
4672
4673 fi
4674 fi
4675 CC=$ac_cv_prog_CC
4676 if test -n "$CC"; then
4677   echo "$as_me:$LINENO: result: $CC" >&5
4678 echo "${ECHO_T}$CC" >&6
4679 else
4680   echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4682 fi
4683
4684     test -n "$CC" && break
4685   done
4686 fi
4687 if test -z "$CC"; then
4688   ac_ct_CC=$CC
4689   for ac_prog in cl
4690 do
4691   # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   if test -n "$ac_ct_CC"; then
4699   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706   for ac_exec_ext in '' $ac_executable_extensions; do
4707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708     ac_cv_prog_ac_ct_CC="$ac_prog"
4709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713 done
4714
4715 fi
4716 fi
4717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4718 if test -n "$ac_ct_CC"; then
4719   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4720 echo "${ECHO_T}$ac_ct_CC" >&6
4721 else
4722   echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4724 fi
4725
4726   test -n "$ac_ct_CC" && break
4727 done
4728
4729   CC=$ac_ct_CC
4730 fi
4731
4732 fi
4733
4734
4735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4736 See \`config.log' for more details." >&5
4737 echo "$as_me: error: no acceptable C compiler found in \$PATH
4738 See \`config.log' for more details." >&2;}
4739    { (exit 1); exit 1; }; }
4740
4741 # Provide some information about the compiler.
4742 echo "$as_me:$LINENO:" \
4743      "checking for C compiler version" >&5
4744 ac_compiler=`set X $ac_compile; echo $2`
4745 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4746   (eval $ac_compiler --version </dev/null >&5) 2>&5
4747   ac_status=$?
4748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749   (exit $ac_status); }
4750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4751   (eval $ac_compiler -v </dev/null >&5) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }
4755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4756   (eval $ac_compiler -V </dev/null >&5) 2>&5
4757   ac_status=$?
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); }
4760
4761 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766   cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772
4773 int
4774 main ()
4775 {
4776 #ifndef __GNUC__
4777        choke me
4778 #endif
4779
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786   (eval $ac_compile) 2>conftest.er1
4787   ac_status=$?
4788   grep -v '^ *+' conftest.er1 >conftest.err
4789   rm -f conftest.er1
4790   cat conftest.err >&5
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); } &&
4793          { ac_try='test -z "$ac_c_werror_flag"
4794                          || test ! -s conftest.err'
4795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796   (eval $ac_try) 2>&5
4797   ac_status=$?
4798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799   (exit $ac_status); }; } &&
4800          { ac_try='test -s conftest.$ac_objext'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; }; then
4806   ac_compiler_gnu=yes
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 ac_compiler_gnu=no
4812 fi
4813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4815
4816 fi
4817 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4819 GCC=`test $ac_compiler_gnu = yes && echo yes`
4820 ac_test_CFLAGS=${CFLAGS+set}
4821 ac_save_CFLAGS=$CFLAGS
4822 CFLAGS="-g"
4823 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4824 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4825 if test "${ac_cv_prog_cc_g+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834
4835 int
4836 main ()
4837 {
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845   (eval $ac_compile) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } &&
4852          { ac_try='test -z "$ac_c_werror_flag"
4853                          || test ! -s conftest.err'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; } &&
4859          { ac_try='test -s conftest.$ac_objext'
4860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861   (eval $ac_try) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; }; then
4865   ac_cv_prog_cc_g=yes
4866 else
4867   echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 ac_cv_prog_cc_g=no
4871 fi
4872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi
4874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4875 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4876 if test "$ac_test_CFLAGS" = set; then
4877   CFLAGS=$ac_save_CFLAGS
4878 elif test $ac_cv_prog_cc_g = yes; then
4879   if test "$GCC" = yes; then
4880     CFLAGS="-g -O2"
4881   else
4882     CFLAGS="-g"
4883   fi
4884 else
4885   if test "$GCC" = yes; then
4886     CFLAGS="-O2"
4887   else
4888     CFLAGS=
4889   fi
4890 fi
4891 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4892 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4893 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   ac_cv_prog_cc_stdc=no
4897 ac_save_CC=$CC
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #include <stdarg.h>
4905 #include <stdio.h>
4906 #include <sys/types.h>
4907 #include <sys/stat.h>
4908 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4909 struct buf { int x; };
4910 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4911 static char *e (p, i)
4912      char **p;
4913      int i;
4914 {
4915   return p[i];
4916 }
4917 static char *f (char * (*g) (char **, int), char **p, ...)
4918 {
4919   char *s;
4920   va_list v;
4921   va_start (v,p);
4922   s = g (p, va_arg (v,int));
4923   va_end (v);
4924   return s;
4925 }
4926
4927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4928    function prototypes and stuff, but not '\xHH' hex character constants.
4929    These don't provoke an error unfortunately, instead are silently treated
4930    as 'x'.  The following induces an error, until -std1 is added to get
4931    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4932    array size at least.  It's necessary to write '\x00'==0 to get something
4933    that's true only with -std1.  */
4934 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4935
4936 int test (int i, double x);
4937 struct s1 {int (*f) (int a);};
4938 struct s2 {int (*f) (double a);};
4939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4940 int argc;
4941 char **argv;
4942 int
4943 main ()
4944 {
4945 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
4950 # Don't try gcc -ansi; that turns off useful extensions and
4951 # breaks some systems' header files.
4952 # AIX                   -qlanglvl=ansi
4953 # Ultrix and OSF/1      -std1
4954 # HP-UX 10.20 and later -Ae
4955 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4956 # SVR4                  -Xc -D__EXTENSIONS__
4957 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4958 do
4959   CC="$ac_save_CC $ac_arg"
4960   rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   ac_cv_prog_cc_stdc=$ac_arg
4983 break
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 fi
4989 rm -f conftest.err conftest.$ac_objext
4990 done
4991 rm -f conftest.$ac_ext conftest.$ac_objext
4992 CC=$ac_save_CC
4993
4994 fi
4995
4996 case "x$ac_cv_prog_cc_stdc" in
4997   x|xno)
4998     echo "$as_me:$LINENO: result: none needed" >&5
4999 echo "${ECHO_T}none needed" >&6 ;;
5000   *)
5001     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5002 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5003     CC="$CC $ac_cv_prog_cc_stdc" ;;
5004 esac
5005
5006 # Some people use a C++ compiler to compile C.  Since we use `exit',
5007 # in C++ we need to declare it.  In case someone uses the same compiler
5008 # for both compiling C and C++ we need to have the C++ compiler decide
5009 # the declaration of exit, since it's the most demanding environment.
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #ifndef __cplusplus
5012   choke me
5013 #endif
5014 _ACEOF
5015 rm -f conftest.$ac_objext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5017   (eval $ac_compile) 2>conftest.er1
5018   ac_status=$?
5019   grep -v '^ *+' conftest.er1 >conftest.err
5020   rm -f conftest.er1
5021   cat conftest.err >&5
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); } &&
5024          { ac_try='test -z "$ac_c_werror_flag"
5025                          || test ! -s conftest.err'
5026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027   (eval $ac_try) 2>&5
5028   ac_status=$?
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); }; } &&
5031          { ac_try='test -s conftest.$ac_objext'
5032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033   (eval $ac_try) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }; }; then
5037   for ac_declaration in \
5038    '' \
5039    'extern "C" void std::exit (int) throw (); using std::exit;' \
5040    'extern "C" void std::exit (int); using std::exit;' \
5041    'extern "C" void exit (int) throw ();' \
5042    'extern "C" void exit (int);' \
5043    'void exit (int);'
5044 do
5045   cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 $ac_declaration
5052 #include <stdlib.h>
5053 int
5054 main ()
5055 {
5056 exit (42);
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063   (eval $ac_compile) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } &&
5070          { ac_try='test -z "$ac_c_werror_flag"
5071                          || test ! -s conftest.err'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; } &&
5077          { ac_try='test -s conftest.$ac_objext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   :
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 continue
5089 fi
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091   cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 $ac_declaration
5098 int
5099 main ()
5100 {
5101 exit (42);
5102   ;
5103   return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108   (eval $ac_compile) 2>conftest.er1
5109   ac_status=$?
5110   grep -v '^ *+' conftest.er1 >conftest.err
5111   rm -f conftest.er1
5112   cat conftest.err >&5
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } &&
5115          { ac_try='test -z "$ac_c_werror_flag"
5116                          || test ! -s conftest.err'
5117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118   (eval $ac_try) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }; } &&
5122          { ac_try='test -s conftest.$ac_objext'
5123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124   (eval $ac_try) 2>&5
5125   ac_status=$?
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); }; }; then
5128   break
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 fi
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135 done
5136 rm -f conftest*
5137 if test -n "$ac_declaration"; then
5138   echo '#ifdef __cplusplus' >>confdefs.h
5139   echo $ac_declaration      >>confdefs.h
5140   echo '#endif'             >>confdefs.h
5141 fi
5142
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 fi
5148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 ac_ext=c
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154
5155 depcc="$CC"   am_compiler_list=
5156
5157 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5158 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5159 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5163   # We make a subdir and do the tests there.  Otherwise we can end up
5164   # making bogus files that we don't know about and never remove.  For
5165   # instance it was reported that on HP-UX the gcc test will end up
5166   # making a dummy file named `D' -- because `-MD' means `put the output
5167   # in D'.
5168   mkdir conftest.dir
5169   # Copy depcomp to subdir because otherwise we won't find it if we're
5170   # using a relative directory.
5171   cp "$am_depcomp" conftest.dir
5172   cd conftest.dir
5173   # We will build objects and dependencies in a subdirectory because
5174   # it helps to detect inapplicable dependency modes.  For instance
5175   # both Tru64's cc and ICC support -MD to output dependencies as a
5176   # side effect of compilation, but ICC will put the dependencies in
5177   # the current directory while Tru64 will put them in the object
5178   # directory.
5179   mkdir sub
5180
5181   am_cv_CC_dependencies_compiler_type=none
5182   if test "$am_compiler_list" = ""; then
5183      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5184   fi
5185   for depmode in $am_compiler_list; do
5186     # Setup a source with many dependencies, because some compilers
5187     # like to wrap large dependency lists on column 80 (with \), and
5188     # we should not choose a depcomp mode which is confused by this.
5189     #
5190     # We need to recreate these files for each test, as the compiler may
5191     # overwrite some of them when testing with obscure command lines.
5192     # This happens at least with the AIX C compiler.
5193     : > sub/conftest.c
5194     for i in 1 2 3 4 5 6; do
5195       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5197       # Solaris 8's {/usr,}/bin/sh.
5198       touch sub/conftst$i.h
5199     done
5200     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202     case $depmode in
5203     nosideeffect)
5204       # after this tag, mechanisms are not by side-effect, so they'll
5205       # only be used when explicitly requested
5206       if test "x$enable_dependency_tracking" = xyes; then
5207         continue
5208       else
5209         break
5210       fi
5211       ;;
5212     none) break ;;
5213     esac
5214     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5215     # mode.  It turns out that the SunPro C++ compiler does not properly
5216     # handle `-M -o', and we need to detect this.
5217     if depmode=$depmode \
5218        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5219        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5220        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5221          >/dev/null 2>conftest.err &&
5222        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5223        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5224        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5225       # icc doesn't choke on unknown options, it will just issue warnings
5226       # or remarks (even with -Werror).  So we grep stderr for any message
5227       # that says an option was ignored or not supported.
5228       # When given -MP, icc 7.0 and 7.1 complain thusly:
5229       #   icc: Command line warning: ignoring option '-M'; no argument required
5230       # The diagnosis changed in icc 8.0:
5231       #   icc: Command line remark: option '-MP' not supported
5232       if (grep 'ignoring option' conftest.err ||
5233           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5234         am_cv_CC_dependencies_compiler_type=$depmode
5235         break
5236       fi
5237     fi
5238   done
5239
5240   cd ..
5241   rm -rf conftest.dir
5242 else
5243   am_cv_CC_dependencies_compiler_type=none
5244 fi
5245
5246 fi
5247 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5248 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5250
5251
5252
5253 if
5254   test "x$enable_dependency_tracking" != xno \
5255   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5256   am__fastdepCC_TRUE=
5257   am__fastdepCC_FALSE='#'
5258 else
5259   am__fastdepCC_TRUE='#'
5260   am__fastdepCC_FALSE=
5261 fi
5262
5263
5264 ac_ext=c
5265 ac_cpp='$CPP $CPPFLAGS'
5266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5271 # On Suns, sometimes $CPP names a directory.
5272 if test -n "$CPP" && test -d "$CPP"; then
5273   CPP=
5274 fi
5275 if test -z "$CPP"; then
5276   if test "${ac_cv_prog_CPP+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279       # Double quotes because CPP needs to be expanded
5280     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5281     do
5282       ac_preproc_ok=false
5283 for ac_c_preproc_warn_flag in '' yes
5284 do
5285   # Use a header file that comes with gcc, so configuring glibc
5286   # with a fresh cross-compiler works.
5287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288   # <limits.h> exists even on freestanding compilers.
5289   # On the NeXT, cc -E runs the code through the compiler's parser,
5290   # not just through cpp. "Syntax error" is here to catch this case.
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297 #ifdef __STDC__
5298 # include <limits.h>
5299 #else
5300 # include <assert.h>
5301 #endif
5302                      Syntax error
5303 _ACEOF
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } >/dev/null; then
5312   if test -s conftest.err; then
5313     ac_cpp_err=$ac_c_preproc_warn_flag
5314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315   else
5316     ac_cpp_err=
5317   fi
5318 else
5319   ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322   :
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327   # Broken: fails on valid input.
5328 continue
5329 fi
5330 rm -f conftest.err conftest.$ac_ext
5331
5332   # OK, works on sane cases.  Now check whether non-existent headers
5333   # can be detected and how.
5334   cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 #include <ac_nonexistent.h>
5341 _ACEOF
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } >/dev/null; then
5350   if test -s conftest.err; then
5351     ac_cpp_err=$ac_c_preproc_warn_flag
5352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353   else
5354     ac_cpp_err=
5355   fi
5356 else
5357   ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360   # Broken: success on invalid input.
5361 continue
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366   # Passes both tests.
5367 ac_preproc_ok=:
5368 break
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371
5372 done
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5376   break
5377 fi
5378
5379     done
5380     ac_cv_prog_CPP=$CPP
5381
5382 fi
5383   CPP=$ac_cv_prog_CPP
5384 else
5385   ac_cv_prog_CPP=$CPP
5386 fi
5387 echo "$as_me:$LINENO: result: $CPP" >&5
5388 echo "${ECHO_T}$CPP" >&6
5389 ac_preproc_ok=false
5390 for ac_c_preproc_warn_flag in '' yes
5391 do
5392   # Use a header file that comes with gcc, so configuring glibc
5393   # with a fresh cross-compiler works.
5394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395   # <limits.h> exists even on freestanding compilers.
5396   # On the NeXT, cc -E runs the code through the compiler's parser,
5397   # not just through cpp. "Syntax error" is here to catch this case.
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409                      Syntax error
5410 _ACEOF
5411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5413   ac_status=$?
5414   grep -v '^ *+' conftest.er1 >conftest.err
5415   rm -f conftest.er1
5416   cat conftest.err >&5
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); } >/dev/null; then
5419   if test -s conftest.err; then
5420     ac_cpp_err=$ac_c_preproc_warn_flag
5421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5422   else
5423     ac_cpp_err=
5424   fi
5425 else
5426   ac_cpp_err=yes
5427 fi
5428 if test -z "$ac_cpp_err"; then
5429   :
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434   # Broken: fails on valid input.
5435 continue
5436 fi
5437 rm -f conftest.err conftest.$ac_ext
5438
5439   # OK, works on sane cases.  Now check whether non-existent headers
5440   # can be detected and how.
5441   cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h.  */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h.  */
5447 #include <ac_nonexistent.h>
5448 _ACEOF
5449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
5454   cat conftest.err >&5
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } >/dev/null; then
5457   if test -s conftest.err; then
5458     ac_cpp_err=$ac_c_preproc_warn_flag
5459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5460   else
5461     ac_cpp_err=
5462   fi
5463 else
5464   ac_cpp_err=yes
5465 fi
5466 if test -z "$ac_cpp_err"; then
5467   # Broken: success on invalid input.
5468 continue
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473   # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5476 fi
5477 rm -f conftest.err conftest.$ac_ext
5478
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then
5483   :
5484 else
5485   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5488 See \`config.log' for more details." >&2;}
5489    { (exit 1); exit 1; }; }
5490 fi
5491
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
5498
5499 if test "x${COMPILE_JNI}" = xyes; then
5500
5501 echo "$as_me:$LINENO: checking for egrep" >&5
5502 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5503 if test "${ac_cv_prog_egrep+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5507     then ac_cv_prog_egrep='grep -E'
5508     else ac_cv_prog_egrep='egrep'
5509     fi
5510 fi
5511 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5512 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5513  EGREP=$ac_cv_prog_egrep
5514
5515
5516 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5518 if test "${ac_cv_header_stdc+set}" = set; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h.  */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h.  */
5527 #include <stdlib.h>
5528 #include <stdarg.h>
5529 #include <string.h>
5530 #include <float.h>
5531
5532 int
5533 main ()
5534 {
5535
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542   (eval $ac_compile) 2>conftest.er1
5543   ac_status=$?
5544   grep -v '^ *+' conftest.er1 >conftest.err
5545   rm -f conftest.er1
5546   cat conftest.err >&5
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } &&
5549          { ac_try='test -z "$ac_c_werror_flag"
5550                          || test ! -s conftest.err'
5551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552   (eval $ac_try) 2>&5
5553   ac_status=$?
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); }; } &&
5556          { ac_try='test -s conftest.$ac_objext'
5557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558   (eval $ac_try) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; }; then
5562   ac_cv_header_stdc=yes
5563 else
5564   echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 ac_cv_header_stdc=no
5568 fi
5569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5570
5571 if test $ac_cv_header_stdc = yes; then
5572   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 #include <string.h>
5580
5581 _ACEOF
5582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5583   $EGREP "memchr" >/dev/null 2>&1; then
5584   :
5585 else
5586   ac_cv_header_stdc=no
5587 fi
5588 rm -f conftest*
5589
5590 fi
5591
5592 if test $ac_cv_header_stdc = yes; then
5593   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5594   cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 #include <stdlib.h>
5601
5602 _ACEOF
5603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604   $EGREP "free" >/dev/null 2>&1; then
5605   :
5606 else
5607   ac_cv_header_stdc=no
5608 fi
5609 rm -f conftest*
5610
5611 fi
5612
5613 if test $ac_cv_header_stdc = yes; then
5614   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5615   if test "$cross_compiling" = yes; then
5616   :
5617 else
5618   cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h.  */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h.  */
5624 #include <ctype.h>
5625 #if ((' ' & 0x0FF) == 0x020)
5626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5628 #else
5629 # define ISLOWER(c) \
5630                    (('a' <= (c) && (c) <= 'i') \
5631                      || ('j' <= (c) && (c) <= 'r') \
5632                      || ('s' <= (c) && (c) <= 'z'))
5633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5634 #endif
5635
5636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5637 int
5638 main ()
5639 {
5640   int i;
5641   for (i = 0; i < 256; i++)
5642     if (XOR (islower (i), ISLOWER (i))
5643         || toupper (i) != TOUPPER (i))
5644       exit(2);
5645   exit (0);
5646 }
5647 _ACEOF
5648 rm -f conftest$ac_exeext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5650   (eval $ac_link) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655   (eval $ac_try) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; }; then
5659   :
5660 else
5661   echo "$as_me: program exited with status $ac_status" >&5
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 ( exit $ac_status )
5666 ac_cv_header_stdc=no
5667 fi
5668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5669 fi
5670 fi
5671 fi
5672 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5673 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5674 if test $ac_cv_header_stdc = yes; then
5675
5676 cat >>confdefs.h <<\_ACEOF
5677 #define STDC_HEADERS 1
5678 _ACEOF
5679
5680 fi
5681
5682
5683       echo "$as_me:$LINENO: checking size of void *" >&5
5684 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
5685 if test "${ac_cv_sizeof_void_p+set}" = set; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
5689   cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 #include "confdefs.h"
5696 #include <sys/types.h>
5697
5698
5699 int
5700 main ()
5701 {
5702 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709   (eval $ac_compile) 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -z "$ac_c_werror_flag"
5717                          || test ! -s conftest.err'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; } &&
5723          { ac_try='test -s conftest.$ac_objext'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; }; then
5729   ac_cv_sizeof_void_p=$ac_size
5730 else
5731   echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 fi
5735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736   if test x$ac_cv_sizeof_void_p != x ; then break; fi
5737 done
5738
5739 fi
5740
5741 if test x$ac_cv_sizeof_void_p = x ; then
5742   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
5743 echo "$as_me: error: cannot determine a size for void *" >&2;}
5744    { (exit 1); exit 1; }; }
5745 fi
5746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5747 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5751 _ACEOF
5752
5753
5754
5755     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5756 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5757 if test "${ac_cv_c_bigendian+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   ac_cv_c_bigendian=unknown
5761 # See if sys/param.h defines the BYTE_ORDER macro.
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 #include <sys/types.h>
5769 #include <sys/param.h>
5770 int
5771 main ()
5772 {
5773
5774 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5775  bogus endian macros
5776 #endif
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783   (eval $ac_compile) 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -z "$ac_c_werror_flag"
5791                          || test ! -s conftest.err'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; } &&
5797          { ac_try='test -s conftest.$ac_objext'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; }; then
5803   # It does; now see whether it defined to BIG_ENDIAN or not.
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 #include <sys/types.h>
5811 #include <sys/param.h>
5812 int
5813 main ()
5814 {
5815
5816 #if BYTE_ORDER != BIG_ENDIAN
5817  not big endian
5818 #endif
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5825   (eval $ac_compile) 2>conftest.er1
5826   ac_status=$?
5827   grep -v '^ *+' conftest.er1 >conftest.err
5828   rm -f conftest.er1
5829   cat conftest.err >&5
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); } &&
5832          { ac_try='test -z "$ac_c_werror_flag"
5833                          || test ! -s conftest.err'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; } &&
5839          { ac_try='test -s conftest.$ac_objext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845   ac_cv_c_bigendian=yes
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ac_cv_c_bigendian=no
5851 fi
5852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859 if test $ac_cv_c_bigendian = unknown; then
5860 if test "$cross_compiling" = yes; then
5861    echo $ac_n "cross-compiling... " 2>&6
5862 else
5863   cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869 main () {
5870   /* Are we little or big endian?  From Harbison&Steele.  */
5871   union
5872   {
5873     long l;
5874     char c[sizeof (long)];
5875   } u;
5876   u.l = 1;
5877   exit (u.c[sizeof (long) - 1] == 1);
5878 }
5879 _ACEOF
5880 rm -f conftest$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882   (eval $ac_link) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887   (eval $ac_try) 2>&5
5888   ac_status=$?
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); }; }; then
5891   ac_cv_c_bigendian=no
5892 else
5893   echo "$as_me: program exited with status $ac_status" >&5
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ( exit $ac_status )
5898 ac_cv_c_bigendian=yes
5899 fi
5900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 fi
5903 fi
5904 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5905 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5906 if test $ac_cv_c_bigendian = unknown; then
5907 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5908 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5909
5910 cat >conftest.c <<EOF
5911 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5912 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5913 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5914 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5915 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5916 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5917 int main() { _ascii (); _ebcdic (); return 0; }
5918 EOF
5919  if test -f conftest.c ; then
5920      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
5921         if test `grep -l BIGenDianSyS conftest.o` ; then
5922            echo $ac_n ' big endian probe OK, ' 1>&6
5923            ac_cv_c_bigendian=yes
5924         fi
5925         if test `grep -l LiTTleEnDian conftest.o` ; then
5926            echo $ac_n ' little endian probe OK, ' 1>&6
5927            if test $ac_cv_c_bigendian = yes ; then
5928             ac_cv_c_bigendian=unknown;
5929            else
5930             ac_cv_c_bigendian=no
5931            fi
5932         fi
5933         echo $ac_n 'guessing bigendian ...  ' >&6
5934      fi
5935   fi
5936 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5937 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5938 fi
5939 if test $ac_cv_c_bigendian = yes; then
5940
5941 cat >>confdefs.h <<\_ACEOF
5942 #define WORDS_BIGENDIAN 1
5943 _ACEOF
5944
5945
5946 cat >>confdefs.h <<\_ACEOF
5947 #define HOST_WORDS_BIG_ENDIAN 1
5948 _ACEOF
5949
5950   BYTEORDER=4321
5951 else
5952   BYTEORDER=1234
5953 fi
5954
5955 cat >>confdefs.h <<_ACEOF
5956 #define BYTEORDER $BYTEORDER
5957 _ACEOF
5958
5959 if test $ac_cv_c_bigendian = unknown; then
5960   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
5961 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
5962    { (exit 1); exit 1; }; }
5963 fi
5964
5965
5966           # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5977                   inttypes.h stdint.h unistd.h
5978 do
5979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980 echo "$as_me:$LINENO: checking for $ac_header" >&5
5981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 $ac_includes_default
5992
5993 #include <$ac_header>
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997   (eval $ac_compile) 2>conftest.er1
5998   ac_status=$?
5999   grep -v '^ *+' conftest.er1 >conftest.err
6000   rm -f conftest.er1
6001   cat conftest.err >&5
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); } &&
6004          { ac_try='test -z "$ac_c_werror_flag"
6005                          || test ! -s conftest.err'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; } &&
6011          { ac_try='test -s conftest.$ac_objext'
6012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013   (eval $ac_try) 2>&5
6014   ac_status=$?
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); }; }; then
6017   eval "$as_ac_Header=yes"
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 eval "$as_ac_Header=no"
6023 fi
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6029   cat >>confdefs.h <<_ACEOF
6030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6032
6033 fi
6034
6035 done
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
6053                     asm/ioctls.h \
6054                     inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
6055                     sys/time.h \
6056                     sys/select.h \
6057                     crt_externs.h \
6058                     fcntl.h
6059 do
6060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062   echo "$as_me:$LINENO: checking for $ac_header" >&5
6063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 fi
6067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6069 else
6070   # Is the header compilable?
6071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h.  */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h.  */
6079 $ac_includes_default
6080 #include <$ac_header>
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084   (eval $ac_compile) 2>conftest.er1
6085   ac_status=$?
6086   grep -v '^ *+' conftest.er1 >conftest.err
6087   rm -f conftest.er1
6088   cat conftest.err >&5
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -z "$ac_c_werror_flag"
6092                          || test ! -s conftest.err'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; } &&
6098          { ac_try='test -s conftest.$ac_objext'
6099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100   (eval $ac_try) 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then
6104   ac_header_compiler=yes
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_header_compiler=no
6110 fi
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6
6114
6115 # Is the header present?
6116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124 #include <$ac_header>
6125 _ACEOF
6126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
6131   cat conftest.err >&5
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } >/dev/null; then
6134   if test -s conftest.err; then
6135     ac_cpp_err=$ac_c_preproc_warn_flag
6136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137   else
6138     ac_cpp_err=
6139   fi
6140 else
6141   ac_cpp_err=yes
6142 fi
6143 if test -z "$ac_cpp_err"; then
6144   ac_header_preproc=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149   ac_header_preproc=no
6150 fi
6151 rm -f conftest.err conftest.$ac_ext
6152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153 echo "${ECHO_T}$ac_header_preproc" >&6
6154
6155 # So?  What about this header?
6156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157   yes:no: )
6158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6162     ac_header_preproc=yes
6163     ;;
6164   no:yes:* )
6165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6177     (
6178       cat <<\_ASBOX
6179 ## -------------------------------- ##
6180 ## Report this to classpath@gnu.org ##
6181 ## -------------------------------- ##
6182 _ASBOX
6183     ) |
6184       sed "s/^/$as_me: WARNING:     /" >&2
6185     ;;
6186 esac
6187 echo "$as_me:$LINENO: checking for $ac_header" >&5
6188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   eval "$as_ac_Header=\$ac_header_preproc"
6193 fi
6194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6196
6197 fi
6198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6199   cat >>confdefs.h <<_ACEOF
6200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201 _ACEOF
6202
6203 fi
6204
6205 done
6206
6207
6208   cat >conftest.$ac_ext <<_ACEOF
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214 #include <stdint.h>
6215
6216 _ACEOF
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218   $EGREP "uint32_t" >/dev/null 2>&1; then
6219
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_INT32_DEFINED 1
6222 _ACEOF
6223
6224 fi
6225 rm -f conftest*
6226
6227   cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #include <inttypes.h>
6234
6235 _ACEOF
6236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6237   $EGREP "uint32_t" >/dev/null 2>&1; then
6238
6239 cat >>confdefs.h <<\_ACEOF
6240 #define HAVE_INT32_DEFINED 1
6241 _ACEOF
6242
6243 fi
6244 rm -f conftest*
6245
6246   cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 #include <sys/types.h>
6253
6254 _ACEOF
6255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256   $EGREP "u_int32_t" >/dev/null 2>&1; then
6257
6258 cat >>confdefs.h <<\_ACEOF
6259 #define HAVE_BSD_INT32_DEFINED 1
6260 _ACEOF
6261
6262 fi
6263 rm -f conftest*
6264
6265   cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 #include <sys/config.h>
6272
6273 _ACEOF
6274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6275   $EGREP "u_int32_t" >/dev/null 2>&1; then
6276
6277 cat >>confdefs.h <<\_ACEOF
6278 #define HAVE_BSD_INT32_DEFINED 1
6279 _ACEOF
6280
6281 fi
6282 rm -f conftest*
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319 for ac_func in ftruncate fsync select \
6320                   gethostname socket strerror fork pipe execve open close \
6321                   lseek fstat read write htonl memset htons connect \
6322                   getsockname getpeername bind listen accept \
6323                   recvfrom send sendto setsockopt getsockopt time mktime \
6324                   localtime_r \
6325                   strerror_r \
6326                   fcntl
6327 do
6328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6329 echo "$as_me:$LINENO: checking for $ac_func" >&5
6330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6331 if eval "test \"\${$as_ac_var+set}\" = set"; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6342 #define $ac_func innocuous_$ac_func
6343
6344 /* System header to define __stub macros and hopefully few prototypes,
6345     which can conflict with char $ac_func (); below.
6346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6347     <limits.h> exists even on freestanding compilers.  */
6348
6349 #ifdef __STDC__
6350 # include <limits.h>
6351 #else
6352 # include <assert.h>
6353 #endif
6354
6355 #undef $ac_func
6356
6357 /* Override any gcc2 internal prototype to avoid an error.  */
6358 #ifdef __cplusplus
6359 extern "C"
6360 {
6361 #endif
6362 /* We use char because int might match the return type of a gcc2
6363    builtin and then its argument prototype would still apply.  */
6364 char $ac_func ();
6365 /* The GNU C library defines this for functions which it implements
6366     to always fail with ENOSYS.  Some functions are actually named
6367     something starting with __ and the normal name is an alias.  */
6368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6369 choke me
6370 #else
6371 char (*f) () = $ac_func;
6372 #endif
6373 #ifdef __cplusplus
6374 }
6375 #endif
6376
6377 int
6378 main ()
6379 {
6380 return f != $ac_func;
6381   ;
6382   return 0;
6383 }
6384 _ACEOF
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387   (eval $ac_link) 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } &&
6394          { ac_try='test -z "$ac_c_werror_flag"
6395                          || test ! -s conftest.err'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; } &&
6401          { ac_try='test -s conftest$ac_exeext'
6402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403   (eval $ac_try) 2>&5
6404   ac_status=$?
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); }; }; then
6407   eval "$as_ac_var=yes"
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 eval "$as_ac_var=no"
6413 fi
6414 rm -f conftest.err conftest.$ac_objext \
6415       conftest$ac_exeext conftest.$ac_ext
6416 fi
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6419 if test `eval echo '${'$as_ac_var'}'` = yes; then
6420   cat >>confdefs.h <<_ACEOF
6421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 fi
6425 done
6426
6427
6428   echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6429 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6430 if test "${ac_cv_header_time+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
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 <sys/types.h>
6440 #include <sys/time.h>
6441 #include <time.h>
6442
6443 int
6444 main ()
6445 {
6446 if ((struct tm *) 0)
6447 return 0;
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454   (eval $ac_compile) 2>conftest.er1
6455   ac_status=$?
6456   grep -v '^ *+' conftest.er1 >conftest.err
6457   rm -f conftest.er1
6458   cat conftest.err >&5
6459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); } &&
6461          { ac_try='test -z "$ac_c_werror_flag"
6462                          || test ! -s conftest.err'
6463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464   (eval $ac_try) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; } &&
6468          { ac_try='test -s conftest.$ac_objext'
6469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470   (eval $ac_try) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); }; }; then
6474   ac_cv_header_time=yes
6475 else
6476   echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 ac_cv_header_time=no
6480 fi
6481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6484 echo "${ECHO_T}$ac_cv_header_time" >&6
6485 if test $ac_cv_header_time = yes; then
6486
6487 cat >>confdefs.h <<\_ACEOF
6488 #define TIME_WITH_SYS_TIME 1
6489 _ACEOF
6490
6491 fi
6492
6493   echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6494 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6495 if test "${ac_cv_struct_tm+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504 #include <sys/types.h>
6505 #include <time.h>
6506
6507 int
6508 main ()
6509 {
6510 struct tm *tp; tp->tm_sec;
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517   (eval $ac_compile) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_c_werror_flag"
6525                          || test ! -s conftest.err'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; } &&
6531          { ac_try='test -s conftest.$ac_objext'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; }; then
6537   ac_cv_struct_tm=time.h
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_cv_struct_tm=sys/time.h
6543 fi
6544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6547 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6548 if test $ac_cv_struct_tm = sys/time.h; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define TM_IN_SYS_TIME 1
6552 _ACEOF
6553
6554 fi
6555
6556   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6557 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6558 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h.  */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h.  */
6567 #include <sys/types.h>
6568 #include <$ac_cv_struct_tm>
6569
6570
6571 int
6572 main ()
6573 {
6574 static struct tm ac_aggr;
6575 if (ac_aggr.tm_zone)
6576 return 0;
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } &&
6590          { ac_try='test -z "$ac_c_werror_flag"
6591                          || test ! -s conftest.err'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_cv_member_struct_tm_tm_zone=yes
6604 else
6605   echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614 #include <sys/types.h>
6615 #include <$ac_cv_struct_tm>
6616
6617
6618 int
6619 main ()
6620 {
6621 static struct tm ac_aggr;
6622 if (sizeof ac_aggr.tm_zone)
6623 return 0;
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630   (eval $ac_compile) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } &&
6637          { ac_try='test -z "$ac_c_werror_flag"
6638                          || test ! -s conftest.err'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; } &&
6644          { ac_try='test -s conftest.$ac_objext'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; }; then
6650   ac_cv_member_struct_tm_tm_zone=yes
6651 else
6652   echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 ac_cv_member_struct_tm_tm_zone=no
6656 fi
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6660 fi
6661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6662 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6663 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6664
6665 cat >>confdefs.h <<_ACEOF
6666 #define HAVE_STRUCT_TM_TM_ZONE 1
6667 _ACEOF
6668
6669
6670 fi
6671
6672 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6673
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_TM_ZONE 1
6676 _ACEOF
6677
6678 else
6679   echo "$as_me:$LINENO: checking for tzname" >&5
6680 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6681 if test "${ac_cv_var_tzname+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h.  */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h.  */
6690 #include <time.h>
6691 #ifndef tzname /* For SGI.  */
6692 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
6693 #endif
6694
6695 int
6696 main ()
6697 {
6698 atoi(*tzname);
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705   (eval $ac_link) 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } &&
6712          { ac_try='test -z "$ac_c_werror_flag"
6713                          || test ! -s conftest.err'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; } &&
6719          { ac_try='test -s conftest$ac_exeext'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; }; then
6725   ac_cv_var_tzname=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_cv_var_tzname=no
6731 fi
6732 rm -f conftest.err conftest.$ac_objext \
6733       conftest$ac_exeext conftest.$ac_ext
6734 fi
6735 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6736 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6737   if test $ac_cv_var_tzname = yes; then
6738
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_TZNAME 1
6741 _ACEOF
6742
6743   fi
6744 fi
6745
6746
6747   echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
6748 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
6749   cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 #include <time.h>
6756 int
6757 main ()
6758 {
6759 struct tm tim; tim.tm_gmtoff = 0;
6760   ;
6761   return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766   (eval $ac_compile) 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } &&
6773          { ac_try='test -z "$ac_c_werror_flag"
6774                          || test ! -s conftest.err'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; } &&
6780          { ac_try='test -s conftest.$ac_objext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786
6787 cat >>confdefs.h <<\_ACEOF
6788 #define STRUCT_TM_HAS_GMTOFF 1
6789 _ACEOF
6790
6791    echo "$as_me:$LINENO: result: yes" >&5
6792 echo "${ECHO_T}yes" >&6
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6
6799    echo "$as_me:$LINENO: checking for global timezone variable" >&5
6800 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
6801                cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 #include <time.h>
6808 int
6809 main ()
6810 {
6811 void i(){long z2 = 2*timezone;}
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>conftest.er1
6819   ac_status=$?
6820   grep -v '^ *+' conftest.er1 >conftest.err
6821   rm -f conftest.er1
6822   cat conftest.err >&5
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } &&
6825          { ac_try='test -z "$ac_c_werror_flag"
6826                          || test ! -s conftest.err'
6827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828   (eval $ac_try) 2>&5
6829   ac_status=$?
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); }; } &&
6832          { ac_try='test -s conftest.$ac_objext'
6833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834   (eval $ac_try) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); }; }; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_TIMEZONE 1
6841 _ACEOF
6842
6843       echo "$as_me:$LINENO: result: yes" >&5
6844 echo "${ECHO_T}yes" >&6
6845 else
6846   echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849 echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6
6851        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
6852 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
6853               cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h.  */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h.  */
6859 #include <time.h>
6860 int
6861 main ()
6862 {
6863 long z2 = _timezone;
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6870   (eval $ac_compile) 2>conftest.er1
6871   ac_status=$?
6872   grep -v '^ *+' conftest.er1 >conftest.err
6873   rm -f conftest.er1
6874   cat conftest.err >&5
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } &&
6877          { ac_try='test -z "$ac_c_werror_flag"
6878                          || test ! -s conftest.err'
6879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880   (eval $ac_try) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; } &&
6884          { ac_try='test -s conftest.$ac_objext'
6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); }; }; then
6890
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_UNDERSCORE_TIMEZONE 1
6893 _ACEOF
6894
6895           echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6
6897 else
6898   echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6
6903 fi
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6909
6910   echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6912 if test "${ac_cv_c_const+set}" = set; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921
6922 int
6923 main ()
6924 {
6925 /* FIXME: Include the comments suggested by Paul. */
6926 #ifndef __cplusplus
6927   /* Ultrix mips cc rejects this.  */
6928   typedef int charset[2];
6929   const charset x;
6930   /* SunOS 4.1.1 cc rejects this.  */
6931   char const *const *ccp;
6932   char **p;
6933   /* NEC SVR4.0.2 mips cc rejects this.  */
6934   struct point {int x, y;};
6935   static struct point const zero = {0,0};
6936   /* AIX XL C 1.02.0.0 rejects this.
6937      It does not let you subtract one const X* pointer from another in
6938      an arm of an if-expression whose if-part is not a constant
6939      expression */
6940   const char *g = "string";
6941   ccp = &g + (g ? g-g : 0);
6942   /* HPUX 7.0 cc rejects these. */
6943   ++ccp;
6944   p = (char**) ccp;
6945   ccp = (char const *const *) p;
6946   { /* SCO 3.2v4 cc rejects this.  */
6947     char *t;
6948     char const *s = 0 ? (char *) 0 : (char const *) 0;
6949
6950     *t++ = 0;
6951   }
6952   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6953     int x[] = {25, 17};
6954     const int *foo = &x[0];
6955     ++foo;
6956   }
6957   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6958     typedef const int *iptr;
6959     iptr p = 0;
6960     ++p;
6961   }
6962   { /* AIX XL C 1.02.0.0 rejects this saying
6963        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6964     struct s { int j; const int *ap[3]; };
6965     struct s *b; b->j = 5;
6966   }
6967   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6968     const int foo = 10;
6969   }
6970 #endif
6971
6972   ;
6973   return 0;
6974 }
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978   (eval $ac_compile) 2>conftest.er1
6979   ac_status=$?
6980   grep -v '^ *+' conftest.er1 >conftest.err
6981   rm -f conftest.er1
6982   cat conftest.err >&5
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } &&
6985          { ac_try='test -z "$ac_c_werror_flag"
6986                          || test ! -s conftest.err'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; } &&
6992          { ac_try='test -s conftest.$ac_objext'
6993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994   (eval $ac_try) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); }; }; then
6998   ac_cv_c_const=yes
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 ac_cv_c_const=no
7004 fi
7005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7008 echo "${ECHO_T}$ac_cv_c_const" >&6
7009 if test $ac_cv_c_const = no; then
7010
7011 cat >>confdefs.h <<\_ACEOF
7012 #define const
7013 _ACEOF
7014
7015 fi
7016
7017
7018
7019       if test "X$prefix" = "XNONE"; then
7020     acl_final_prefix="$ac_default_prefix"
7021   else
7022     acl_final_prefix="$prefix"
7023   fi
7024   if test "X$exec_prefix" = "XNONE"; then
7025     acl_final_exec_prefix='${prefix}'
7026   else
7027     acl_final_exec_prefix="$exec_prefix"
7028   fi
7029   acl_save_prefix="$prefix"
7030   prefix="$acl_final_prefix"
7031   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7032   prefix="$acl_save_prefix"
7033
7034
7035 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7036 if test "${with_gnu_ld+set}" = set; then
7037   withval="$with_gnu_ld"
7038   test "$withval" = no || with_gnu_ld=yes
7039 else
7040   with_gnu_ld=no
7041 fi;
7042 # Prepare PATH_SEPARATOR.
7043 # The user is always right.
7044 if test "${PATH_SEPARATOR+set}" != set; then
7045   echo "#! /bin/sh" >conf$$.sh
7046   echo  "exit 0"   >>conf$$.sh
7047   chmod +x conf$$.sh
7048   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7049     PATH_SEPARATOR=';'
7050   else
7051     PATH_SEPARATOR=:
7052   fi
7053   rm -f conf$$.sh
7054 fi
7055 ac_prog=ld
7056 if test "$GCC" = yes; then
7057   # Check if gcc -print-prog-name=ld gives a path.
7058   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7059 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7060   case $host in
7061   *-*-mingw*)
7062     # gcc leaves a trailing carriage return which upsets mingw
7063     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7064   *)
7065     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7066   esac
7067   case $ac_prog in
7068     # Accept absolute paths.
7069     [\\/]* | [A-Za-z]:[\\/]*)
7070       re_direlt='/[^/][^/]*/\.\./'
7071       # Canonicalize the path of ld
7072       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7073       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7074         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7075       done
7076       test -z "$LD" && LD="$ac_prog"
7077       ;;
7078   "")
7079     # If it fails, then pretend we aren't using GCC.
7080     ac_prog=ld
7081     ;;
7082   *)
7083     # If it is relative, then search for the first ld in PATH.
7084     with_gnu_ld=unknown
7085     ;;
7086   esac
7087 elif test "$with_gnu_ld" = yes; then
7088   echo "$as_me:$LINENO: checking for GNU ld" >&5
7089 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7090 else
7091   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7092 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7093 fi
7094 if test "${acl_cv_path_LD+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   if test -z "$LD"; then
7098   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7099   for ac_dir in $PATH; do
7100     test -z "$ac_dir" && ac_dir=.
7101     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7102       acl_cv_path_LD="$ac_dir/$ac_prog"
7103       # Check to see if the program is GNU ld.  I'd rather use --version,
7104       # but apparently some GNU ld's only accept -v.
7105       # Break only if it was the GNU/non-GNU ld that we prefer.
7106       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7107         test "$with_gnu_ld" != no && break
7108       else
7109         test "$with_gnu_ld" != yes && break
7110       fi
7111     fi
7112   done
7113   IFS="$ac_save_ifs"
7114 else
7115   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7116 fi
7117 fi
7118
7119 LD="$acl_cv_path_LD"
7120 if test -n "$LD"; then
7121   echo "$as_me:$LINENO: result: $LD" >&5
7122 echo "${ECHO_T}$LD" >&6
7123 else
7124   echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7126 fi
7127 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7128 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7129    { (exit 1); exit 1; }; }
7130 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7131 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7132 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7136 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7137   acl_cv_prog_gnu_ld=yes
7138 else
7139   acl_cv_prog_gnu_ld=no
7140 fi
7141 fi
7142 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7143 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7144 with_gnu_ld=$acl_cv_prog_gnu_ld
7145
7146
7147
7148                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7149 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7150 if test "${acl_cv_rpath+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153
7154     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7155     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7156     . ./conftest.sh
7157     rm -f ./conftest.sh
7158     acl_cv_rpath=done
7159
7160 fi
7161 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7162 echo "${ECHO_T}$acl_cv_rpath" >&6
7163   wl="$acl_cv_wl"
7164   libext="$acl_cv_libext"
7165   shlibext="$acl_cv_shlibext"
7166   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7167   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7168   hardcode_direct="$acl_cv_hardcode_direct"
7169   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7170     # Check whether --enable-rpath or --disable-rpath was given.
7171 if test "${enable_rpath+set}" = set; then
7172   enableval="$enable_rpath"
7173   :
7174 else
7175   enable_rpath=yes
7176 fi;
7177
7178
7179
7180
7181
7182
7183
7184     use_additional=yes
7185
7186   acl_save_prefix="$prefix"
7187   prefix="$acl_final_prefix"
7188   acl_save_exec_prefix="$exec_prefix"
7189   exec_prefix="$acl_final_exec_prefix"
7190
7191     eval additional_includedir=\"$includedir\"
7192     eval additional_libdir=\"$libdir\"
7193
7194   exec_prefix="$acl_save_exec_prefix"
7195   prefix="$acl_save_prefix"
7196
7197
7198 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7199 if test "${with_libiconv_prefix+set}" = set; then
7200   withval="$with_libiconv_prefix"
7201
7202     if test "X$withval" = "Xno"; then
7203       use_additional=no
7204     else
7205       if test "X$withval" = "X"; then
7206
7207   acl_save_prefix="$prefix"
7208   prefix="$acl_final_prefix"
7209   acl_save_exec_prefix="$exec_prefix"
7210   exec_prefix="$acl_final_exec_prefix"
7211
7212           eval additional_includedir=\"$includedir\"
7213           eval additional_libdir=\"$libdir\"
7214
7215   exec_prefix="$acl_save_exec_prefix"
7216   prefix="$acl_save_prefix"
7217
7218       else
7219         additional_includedir="$withval/include"
7220         additional_libdir="$withval/lib"
7221       fi
7222     fi
7223
7224 fi;
7225       LIBICONV=
7226   LTLIBICONV=
7227   INCICONV=
7228   rpathdirs=
7229   ltrpathdirs=
7230   names_already_handled=
7231   names_next_round='iconv '
7232   while test -n "$names_next_round"; do
7233     names_this_round="$names_next_round"
7234     names_next_round=
7235     for name in $names_this_round; do
7236       already_handled=
7237       for n in $names_already_handled; do
7238         if test "$n" = "$name"; then
7239           already_handled=yes
7240           break
7241         fi
7242       done
7243       if test -z "$already_handled"; then
7244         names_already_handled="$names_already_handled $name"
7245                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7246         eval value=\"\$HAVE_LIB$uppername\"
7247         if test -n "$value"; then
7248           if test "$value" = yes; then
7249             eval value=\"\$LIB$uppername\"
7250             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7251             eval value=\"\$LTLIB$uppername\"
7252             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7253           else
7254                                     :
7255           fi
7256         else
7257                               found_dir=
7258           found_la=
7259           found_so=
7260           found_a=
7261           if test $use_additional = yes; then
7262             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7263               found_dir="$additional_libdir"
7264               found_so="$additional_libdir/lib$name.$shlibext"
7265               if test -f "$additional_libdir/lib$name.la"; then
7266                 found_la="$additional_libdir/lib$name.la"
7267               fi
7268             else
7269               if test -f "$additional_libdir/lib$name.$libext"; then
7270                 found_dir="$additional_libdir"
7271                 found_a="$additional_libdir/lib$name.$libext"
7272                 if test -f "$additional_libdir/lib$name.la"; then
7273                   found_la="$additional_libdir/lib$name.la"
7274                 fi
7275               fi
7276             fi
7277           fi
7278           if test "X$found_dir" = "X"; then
7279             for x in $LDFLAGS $LTLIBICONV; do
7280
7281   acl_save_prefix="$prefix"
7282   prefix="$acl_final_prefix"
7283   acl_save_exec_prefix="$exec_prefix"
7284   exec_prefix="$acl_final_exec_prefix"
7285   eval x=\"$x\"
7286   exec_prefix="$acl_save_exec_prefix"
7287   prefix="$acl_save_prefix"
7288
7289               case "$x" in
7290                 -L*)
7291                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7292                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7293                     found_dir="$dir"
7294                     found_so="$dir/lib$name.$shlibext"
7295                     if test -f "$dir/lib$name.la"; then
7296                       found_la="$dir/lib$name.la"
7297                     fi
7298                   else
7299                     if test -f "$dir/lib$name.$libext"; then
7300                       found_dir="$dir"
7301                       found_a="$dir/lib$name.$libext"
7302                       if test -f "$dir/lib$name.la"; then
7303                         found_la="$dir/lib$name.la"
7304                       fi
7305                     fi
7306                   fi
7307                   ;;
7308               esac
7309               if test "X$found_dir" != "X"; then
7310                 break
7311               fi
7312             done
7313           fi
7314           if test "X$found_dir" != "X"; then
7315                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7316             if test "X$found_so" != "X"; then
7317                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7318                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7319               else
7320                                                                                 haveit=
7321                 for x in $ltrpathdirs; do
7322                   if test "X$x" = "X$found_dir"; then
7323                     haveit=yes
7324                     break
7325                   fi
7326                 done
7327                 if test -z "$haveit"; then
7328                   ltrpathdirs="$ltrpathdirs $found_dir"
7329                 fi
7330                                 if test "$hardcode_direct" = yes; then
7331                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7332                 else
7333                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7334                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7335                                                             haveit=
7336                     for x in $rpathdirs; do
7337                       if test "X$x" = "X$found_dir"; then
7338                         haveit=yes
7339                         break
7340                       fi
7341                     done
7342                     if test -z "$haveit"; then
7343                       rpathdirs="$rpathdirs $found_dir"
7344                     fi
7345                   else
7346                                                                                 haveit=
7347                     for x in $LDFLAGS $LIBICONV; do
7348
7349   acl_save_prefix="$prefix"
7350   prefix="$acl_final_prefix"
7351   acl_save_exec_prefix="$exec_prefix"
7352   exec_prefix="$acl_final_exec_prefix"
7353   eval x=\"$x\"
7354   exec_prefix="$acl_save_exec_prefix"
7355   prefix="$acl_save_prefix"
7356
7357                       if test "X$x" = "X-L$found_dir"; then
7358                         haveit=yes
7359                         break
7360                       fi
7361                     done
7362                     if test -z "$haveit"; then
7363                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7364                     fi
7365                     if test "$hardcode_minus_L" != no; then
7366                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7367                     else
7368                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7369                     fi
7370                   fi
7371                 fi
7372               fi
7373             else
7374               if test "X$found_a" != "X"; then
7375                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7376               else
7377                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7378               fi
7379             fi
7380                         additional_includedir=
7381             case "$found_dir" in
7382               */lib | */lib/)
7383                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7384                 additional_includedir="$basedir/include"
7385                 ;;
7386             esac
7387             if test "X$additional_includedir" != "X"; then
7388                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7389                 haveit=
7390                 if test "X$additional_includedir" = "X/usr/local/include"; then
7391                   if test -n "$GCC"; then
7392                     case $host_os in
7393                       linux*) haveit=yes;;
7394                     esac
7395                   fi
7396                 fi
7397                 if test -z "$haveit"; then
7398                   for x in $CPPFLAGS $INCICONV; do
7399
7400   acl_save_prefix="$prefix"
7401   prefix="$acl_final_prefix"
7402   acl_save_exec_prefix="$exec_prefix"
7403   exec_prefix="$acl_final_exec_prefix"
7404   eval x=\"$x\"
7405   exec_prefix="$acl_save_exec_prefix"
7406   prefix="$acl_save_prefix"
7407
7408                     if test "X$x" = "X-I$additional_includedir"; then
7409                       haveit=yes
7410                       break
7411                     fi
7412                   done
7413                   if test -z "$haveit"; then
7414                     if test -d "$additional_includedir"; then
7415                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7416                     fi
7417                   fi
7418                 fi
7419               fi
7420             fi
7421                         if test -n "$found_la"; then
7422                                                         save_libdir="$libdir"
7423               case "$found_la" in
7424                 */* | *\\*) . "$found_la" ;;
7425                 *) . "./$found_la" ;;
7426               esac
7427               libdir="$save_libdir"
7428                             for dep in $dependency_libs; do
7429                 case "$dep" in
7430                   -L*)
7431                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7432                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7433                       haveit=
7434                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7435                         if test -n "$GCC"; then
7436                           case $host_os in
7437                             linux*) haveit=yes;;
7438                           esac
7439                         fi
7440                       fi
7441                       if test -z "$haveit"; then
7442                         haveit=
7443                         for x in $LDFLAGS $LIBICONV; do
7444
7445   acl_save_prefix="$prefix"
7446   prefix="$acl_final_prefix"
7447   acl_save_exec_prefix="$exec_prefix"
7448   exec_prefix="$acl_final_exec_prefix"
7449   eval x=\"$x\"
7450   exec_prefix="$acl_save_exec_prefix"
7451   prefix="$acl_save_prefix"
7452
7453                           if test "X$x" = "X-L$additional_libdir"; then
7454                             haveit=yes
7455                             break
7456                           fi
7457                         done
7458                         if test -z "$haveit"; then
7459                           if test -d "$additional_libdir"; then
7460                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7461                           fi
7462                         fi
7463                         haveit=
7464                         for x in $LDFLAGS $LTLIBICONV; do
7465
7466   acl_save_prefix="$prefix"
7467   prefix="$acl_final_prefix"
7468   acl_save_exec_prefix="$exec_prefix"
7469   exec_prefix="$acl_final_exec_prefix"
7470   eval x=\"$x\"
7471   exec_prefix="$acl_save_exec_prefix"
7472   prefix="$acl_save_prefix"
7473
7474                           if test "X$x" = "X-L$additional_libdir"; then
7475                             haveit=yes
7476                             break
7477                           fi
7478                         done
7479                         if test -z "$haveit"; then
7480                           if test -d "$additional_libdir"; then
7481                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7482                           fi
7483                         fi
7484                       fi
7485                     fi
7486                     ;;
7487                   -R*)
7488                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7489                     if test "$enable_rpath" != no; then
7490                                                                   haveit=
7491                       for x in $rpathdirs; do
7492                         if test "X$x" = "X$dir"; then
7493                           haveit=yes
7494                           break
7495                         fi
7496                       done
7497                       if test -z "$haveit"; then
7498                         rpathdirs="$rpathdirs $dir"
7499                       fi
7500                                                                   haveit=
7501                       for x in $ltrpathdirs; do
7502                         if test "X$x" = "X$dir"; then
7503                           haveit=yes
7504                           break
7505                         fi
7506                       done
7507                       if test -z "$haveit"; then
7508                         ltrpathdirs="$ltrpathdirs $dir"
7509                       fi
7510                     fi
7511                     ;;
7512                   -l*)
7513                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7514                     ;;
7515                   *.la)
7516                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7517                     ;;
7518                   *)
7519                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7520                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7521                     ;;
7522                 esac
7523               done
7524             fi
7525           else
7526                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7527             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7528           fi
7529         fi
7530       fi
7531     done
7532   done
7533   if test "X$rpathdirs" != "X"; then
7534     if test -n "$hardcode_libdir_separator"; then
7535                         alldirs=
7536       for found_dir in $rpathdirs; do
7537         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7538       done
7539             acl_save_libdir="$libdir"
7540       libdir="$alldirs"
7541       eval flag=\"$hardcode_libdir_flag_spec\"
7542       libdir="$acl_save_libdir"
7543       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7544     else
7545             for found_dir in $rpathdirs; do
7546         acl_save_libdir="$libdir"
7547         libdir="$found_dir"
7548         eval flag=\"$hardcode_libdir_flag_spec\"
7549         libdir="$acl_save_libdir"
7550         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7551       done
7552     fi
7553   fi
7554   if test "X$ltrpathdirs" != "X"; then
7555             for found_dir in $ltrpathdirs; do
7556       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7557     done
7558   fi
7559
7560
7561
7562
7563
7564
7565
7566           am_save_CPPFLAGS="$CPPFLAGS"
7567
7568   for element in $INCICONV; do
7569     haveit=
7570     for x in $CPPFLAGS; do
7571
7572   acl_save_prefix="$prefix"
7573   prefix="$acl_final_prefix"
7574   acl_save_exec_prefix="$exec_prefix"
7575   exec_prefix="$acl_final_exec_prefix"
7576   eval x=\"$x\"
7577   exec_prefix="$acl_save_exec_prefix"
7578   prefix="$acl_save_prefix"
7579
7580       if test "X$x" = "X$element"; then
7581         haveit=yes
7582         break
7583       fi
7584     done
7585     if test -z "$haveit"; then
7586       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7587     fi
7588   done
7589
7590
7591   echo "$as_me:$LINENO: checking for iconv" >&5
7592 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7593 if test "${am_cv_func_iconv+set}" = set; then
7594   echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596
7597     am_cv_func_iconv="no, consider installing GNU libiconv"
7598     am_cv_lib_iconv=no
7599     cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605 #include <stdlib.h>
7606 #include <iconv.h>
7607 int
7608 main ()
7609 {
7610 iconv_t cd = iconv_open("","");
7611        iconv(cd,NULL,NULL,NULL,NULL);
7612        iconv_close(cd);
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   am_cv_func_iconv=yes
7640 else
7641   echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 fi
7645 rm -f conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647     if test "$am_cv_func_iconv" != yes; then
7648       am_save_LIBS="$LIBS"
7649       LIBS="$LIBS $LIBICONV"
7650       cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h.  */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h.  */
7656 #include <stdlib.h>
7657 #include <iconv.h>
7658 int
7659 main ()
7660 {
7661 iconv_t cd = iconv_open("","");
7662          iconv(cd,NULL,NULL,NULL,NULL);
7663          iconv_close(cd);
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670   (eval $ac_link) 2>conftest.er1
7671   ac_status=$?
7672   grep -v '^ *+' conftest.er1 >conftest.err
7673   rm -f conftest.er1
7674   cat conftest.err >&5
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); } &&
7677          { ac_try='test -z "$ac_c_werror_flag"
7678                          || test ! -s conftest.err'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; } &&
7684          { ac_try='test -s conftest$ac_exeext'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; }; then
7690   am_cv_lib_iconv=yes
7691         am_cv_func_iconv=yes
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 fi
7697 rm -f conftest.err conftest.$ac_objext \
7698       conftest$ac_exeext conftest.$ac_ext
7699       LIBS="$am_save_LIBS"
7700     fi
7701
7702 fi
7703 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7704 echo "${ECHO_T}$am_cv_func_iconv" >&6
7705   if test "$am_cv_func_iconv" = yes; then
7706
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_ICONV 1
7709 _ACEOF
7710
7711   fi
7712   if test "$am_cv_lib_iconv" = yes; then
7713     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7714 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7715     echo "$as_me:$LINENO: result: $LIBICONV" >&5
7716 echo "${ECHO_T}$LIBICONV" >&6
7717   else
7718             CPPFLAGS="$am_save_CPPFLAGS"
7719     LIBICONV=
7720     LTLIBICONV=
7721   fi
7722
7723
7724
7725   if test "$am_cv_func_iconv" = yes; then
7726     echo "$as_me:$LINENO: checking for iconv declaration" >&5
7727 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7728     if test "${am_cv_proto_iconv+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731
7732       cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738
7739 #include <stdlib.h>
7740 #include <iconv.h>
7741 extern
7742 #ifdef __cplusplus
7743 "C"
7744 #endif
7745 #if defined(__STDC__) || defined(__cplusplus)
7746 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7747 #else
7748 size_t iconv();
7749 #endif
7750
7751 int
7752 main ()
7753 {
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761   (eval $ac_compile) 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -z "$ac_c_werror_flag"
7769                          || test ! -s conftest.err'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; } &&
7775          { ac_try='test -s conftest.$ac_objext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   am_cv_proto_iconv_arg1=""
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 am_cv_proto_iconv_arg1="const"
7787 fi
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789       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);"
7790 fi
7791
7792     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7793     echo "$as_me:$LINENO: result: ${ac_t:-
7794          }$am_cv_proto_iconv" >&5
7795 echo "${ECHO_T}${ac_t:-
7796          }$am_cv_proto_iconv" >&6
7797
7798 cat >>confdefs.h <<_ACEOF
7799 #define ICONV_CONST $am_cv_proto_iconv_arg1
7800 _ACEOF
7801
7802   fi
7803
7804
7805     if test "x${GCC}" = xyes; then
7806
7807             WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
7808
7809
7810             STRICT_WARNING_CFLAGS=-Wstrict-prototypes
7811
7812
7813             ERROR_CFLAGS=
7814     if test "x${ENABLE_WERROR}" = xyes; then
7815        ERROR_CFLAGS='-Werror'
7816     fi
7817
7818   fi
7819
7820     if test "x${COMPILE_XMLJ}" = xyes; then
7821
7822   succeeded=no
7823
7824   if test -z "$PKG_CONFIG"; then
7825     # Extract the first word of "pkg-config", so it can be a program name with args.
7826 set dummy pkg-config; ac_word=$2
7827 echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   case $PKG_CONFIG in
7833   [\\/]* | ?:[\\/]*)
7834   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7835   ;;
7836   *)
7837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842   for ac_exec_ext in '' $ac_executable_extensions; do
7843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849 done
7850
7851   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7852   ;;
7853 esac
7854 fi
7855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7856
7857 if test -n "$PKG_CONFIG"; then
7858   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7859 echo "${ECHO_T}$PKG_CONFIG" >&6
7860 else
7861   echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7863 fi
7864
7865   fi
7866
7867   if test "$PKG_CONFIG" = "no" ; then
7868      echo "*** The pkg-config script could not be found. Make sure it is"
7869      echo "*** in your path, or set the PKG_CONFIG environment variable"
7870      echo "*** to the full path to pkg-config."
7871      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7872   else
7873      PKG_CONFIG_MIN_VERSION=0.9.0
7874      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7875         echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
7876 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
7877
7878         if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
7879             echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6
7881             succeeded=yes
7882
7883             echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
7884 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
7885             XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
7886             echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
7887 echo "${ECHO_T}$XML_CFLAGS" >&6
7888
7889             echo "$as_me:$LINENO: checking XML_LIBS" >&5
7890 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
7891             XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
7892             echo "$as_me:$LINENO: result: $XML_LIBS" >&5
7893 echo "${ECHO_T}$XML_LIBS" >&6
7894         else
7895             XML_CFLAGS=""
7896             XML_LIBS=""
7897             ## If we have a custom action on failure, don't print errors, but
7898             ## do set a variable so people can do so.
7899             XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
7900             echo $XML_PKG_ERRORS
7901         fi
7902
7903
7904
7905      else
7906         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7907         echo "*** See http://www.freedesktop.org/software/pkgconfig"
7908      fi
7909   fi
7910
7911   if test $succeeded = yes; then
7912      :
7913   else
7914      { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0 >= 2.6.8) 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
7915 echo "$as_me: error: Library requirements (libxml-2.0 >= 2.6.8) 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;}
7916    { (exit 1); exit 1; }; }
7917   fi
7918
7919
7920   succeeded=no
7921
7922   if test -z "$PKG_CONFIG"; then
7923     # Extract the first word of "pkg-config", so it can be a program name with args.
7924 set dummy pkg-config; ac_word=$2
7925 echo "$as_me:$LINENO: checking for $ac_word" >&5
7926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930   case $PKG_CONFIG in
7931   [\\/]* | ?:[\\/]*)
7932   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7933   ;;
7934   *)
7935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940   for ac_exec_ext in '' $ac_executable_extensions; do
7941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947 done
7948
7949   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7950   ;;
7951 esac
7952 fi
7953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7954
7955 if test -n "$PKG_CONFIG"; then
7956   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7957 echo "${ECHO_T}$PKG_CONFIG" >&6
7958 else
7959   echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6
7961 fi
7962
7963   fi
7964
7965   if test "$PKG_CONFIG" = "no" ; then
7966      echo "*** The pkg-config script could not be found. Make sure it is"
7967      echo "*** in your path, or set the PKG_CONFIG environment variable"
7968      echo "*** to the full path to pkg-config."
7969      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7970   else
7971      PKG_CONFIG_MIN_VERSION=0.9.0
7972      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7973         echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
7974 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
7975
7976         if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
7977             echo "$as_me:$LINENO: result: yes" >&5
7978 echo "${ECHO_T}yes" >&6
7979             succeeded=yes
7980
7981             echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
7982 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
7983             XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
7984             echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
7985 echo "${ECHO_T}$XSLT_CFLAGS" >&6
7986
7987             echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
7988 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
7989             XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
7990             echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
7991 echo "${ECHO_T}$XSLT_LIBS" >&6
7992         else
7993             XSLT_CFLAGS=""
7994             XSLT_LIBS=""
7995             ## If we have a custom action on failure, don't print errors, but
7996             ## do set a variable so people can do so.
7997             XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
7998             echo $XSLT_PKG_ERRORS
7999         fi
8000
8001
8002
8003      else
8004         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8005         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8006      fi
8007   fi
8008
8009   if test $succeeded = yes; then
8010      :
8011   else
8012      { { echo "$as_me:$LINENO: error: Library requirements (libxslt >= 1.1.11) 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
8013 echo "$as_me: error: Library requirements (libxslt >= 1.1.11) 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;}
8014    { (exit 1); exit 1; }; }
8015   fi
8016
8017
8018
8019
8020
8021   fi
8022
8023     if test "x${COMPILE_GTK_PEER}" = xyes; then
8024      echo "$as_me:$LINENO: checking for X" >&5
8025 echo $ECHO_N "checking for X... $ECHO_C" >&6
8026
8027
8028 # Check whether --with-x or --without-x was given.
8029 if test "${with_x+set}" = set; then
8030   withval="$with_x"
8031
8032 fi;
8033 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8034 if test "x$with_x" = xno; then
8035   # The user explicitly disabled X.
8036   have_x=disabled
8037 else
8038   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8039     # Both variables are already set.
8040     have_x=yes
8041   else
8042     if test "${ac_cv_have_x+set}" = set; then
8043   echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045   # One or both of the vars are not set, and there is no cached value.
8046 ac_x_includes=no ac_x_libraries=no
8047 rm -fr conftest.dir
8048 if mkdir conftest.dir; then
8049   cd conftest.dir
8050   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8051   cat >Imakefile <<'_ACEOF'
8052 acfindx:
8053         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8054 _ACEOF
8055   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8056     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8057     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8058     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8059     for ac_extension in a so sl; do
8060       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8061          test -f $ac_im_libdir/libX11.$ac_extension; then
8062         ac_im_usrlibdir=$ac_im_libdir; break
8063       fi
8064     done
8065     # Screen out bogus values from the imake configuration.  They are
8066     # bogus both because they are the default anyway, and because
8067     # using them would break gcc on systems where it needs fixed includes.
8068     case $ac_im_incroot in
8069         /usr/include) ;;
8070         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8071     esac
8072     case $ac_im_usrlibdir in
8073         /usr/lib | /lib) ;;
8074         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8075     esac
8076   fi
8077   cd ..
8078   rm -fr conftest.dir
8079 fi
8080
8081 # Standard set of common directories for X headers.
8082 # Check X11 before X11Rn because it is often a symlink to the current release.
8083 ac_x_header_dirs='
8084 /usr/X11/include
8085 /usr/X11R6/include
8086 /usr/X11R5/include
8087 /usr/X11R4/include
8088
8089 /usr/include/X11
8090 /usr/include/X11R6
8091 /usr/include/X11R5
8092 /usr/include/X11R4
8093
8094 /usr/local/X11/include
8095 /usr/local/X11R6/include
8096 /usr/local/X11R5/include
8097 /usr/local/X11R4/include
8098
8099 /usr/local/include/X11
8100 /usr/local/include/X11R6
8101 /usr/local/include/X11R5
8102 /usr/local/include/X11R4
8103
8104 /usr/X386/include
8105 /usr/x386/include
8106 /usr/XFree86/include/X11
8107
8108 /usr/include
8109 /usr/local/include
8110 /usr/unsupported/include
8111 /usr/athena/include
8112 /usr/local/x11r5/include
8113 /usr/lpp/Xamples/include
8114
8115 /usr/openwin/include
8116 /usr/openwin/share/include'
8117
8118 if test "$ac_x_includes" = no; then
8119   # Guess where to find include files, by looking for Intrinsic.h.
8120   # First, try using that file with no special directory specified.
8121   cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 #include <X11/Intrinsic.h>
8128 _ACEOF
8129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } >/dev/null; then
8137   if test -s conftest.err; then
8138     ac_cpp_err=$ac_c_preproc_warn_flag
8139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8140   else
8141     ac_cpp_err=
8142   fi
8143 else
8144   ac_cpp_err=yes
8145 fi
8146 if test -z "$ac_cpp_err"; then
8147   # We can compile using X headers with no special include directory.
8148 ac_x_includes=
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153   for ac_dir in $ac_x_header_dirs; do
8154   if test -r "$ac_dir/X11/Intrinsic.h"; then
8155     ac_x_includes=$ac_dir
8156     break
8157   fi
8158 done
8159 fi
8160 rm -f conftest.err conftest.$ac_ext
8161 fi # $ac_x_includes = no
8162
8163 if test "$ac_x_libraries" = no; then
8164   # Check for the libraries.
8165   # See if we find them without any special options.
8166   # Don't add to $LIBS permanently.
8167   ac_save_LIBS=$LIBS
8168   LIBS="-lXt $LIBS"
8169   cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 #include <X11/Intrinsic.h>
8176 int
8177 main ()
8178 {
8179 XtMalloc (0)
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } &&
8193          { ac_try='test -z "$ac_c_werror_flag"
8194                          || test ! -s conftest.err'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest$ac_exeext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   LIBS=$ac_save_LIBS
8207 # We can link X programs with no special library path.
8208 ac_x_libraries=
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 LIBS=$ac_save_LIBS
8214 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8215 do
8216   # Don't even attempt the hair of trying to link an X program!
8217   for ac_extension in a so sl; do
8218     if test -r $ac_dir/libXt.$ac_extension; then
8219       ac_x_libraries=$ac_dir
8220       break 2
8221     fi
8222   done
8223 done
8224 fi
8225 rm -f conftest.err conftest.$ac_objext \
8226       conftest$ac_exeext conftest.$ac_ext
8227 fi # $ac_x_libraries = no
8228
8229 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8230   # Didn't find X anywhere.  Cache the known absence of X.
8231   ac_cv_have_x="have_x=no"
8232 else
8233   # Record where we found X for the cache.
8234   ac_cv_have_x="have_x=yes \
8235                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8236 fi
8237 fi
8238
8239   fi
8240   eval "$ac_cv_have_x"
8241 fi # $with_x != no
8242
8243 if test "$have_x" != yes; then
8244   echo "$as_me:$LINENO: result: $have_x" >&5
8245 echo "${ECHO_T}$have_x" >&6
8246   no_x=yes
8247 else
8248   # If each of the values was on the command line, it overrides each guess.
8249   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8250   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8251   # Update the cache value to reflect the command line values.
8252   ac_cv_have_x="have_x=yes \
8253                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8254   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8255 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8256 fi
8257
8258 if test "$no_x" = yes; then
8259   # Not all programs may use this symbol, but it does not hurt to define it.
8260
8261 cat >>confdefs.h <<\_ACEOF
8262 #define X_DISPLAY_MISSING 1
8263 _ACEOF
8264
8265   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8266 else
8267   if test -n "$x_includes"; then
8268     X_CFLAGS="$X_CFLAGS -I$x_includes"
8269   fi
8270
8271   # It would also be nice to do this for all -L options, not just this one.
8272   if test -n "$x_libraries"; then
8273     X_LIBS="$X_LIBS -L$x_libraries"
8274     # For Solaris; some versions of Sun CC require a space after -R and
8275     # others require no space.  Words are not sufficient . . . .
8276     case `(uname -sr) 2>/dev/null` in
8277     "SunOS 5"*)
8278       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8279 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8280       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8281       cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 int
8289 main ()
8290 {
8291
8292   ;
8293   return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8298   (eval $ac_link) 2>conftest.er1
8299   ac_status=$?
8300   grep -v '^ *+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } &&
8305          { ac_try='test -z "$ac_c_werror_flag"
8306                          || test ! -s conftest.err'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; } &&
8312          { ac_try='test -s conftest$ac_exeext'
8313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314   (eval $ac_try) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   ac_R_nospace=yes
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 ac_R_nospace=no
8324 fi
8325 rm -f conftest.err conftest.$ac_objext \
8326       conftest$ac_exeext conftest.$ac_ext
8327       if test $ac_R_nospace = yes; then
8328         echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6
8330         X_LIBS="$X_LIBS -R$x_libraries"
8331       else
8332         LIBS="$ac_xsave_LIBS -R $x_libraries"
8333         cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339
8340 int
8341 main ()
8342 {
8343
8344   ;
8345   return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext conftest$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350   (eval $ac_link) 2>conftest.er1
8351   ac_status=$?
8352   grep -v '^ *+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -z "$ac_c_werror_flag"
8358                          || test ! -s conftest.err'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; } &&
8364          { ac_try='test -s conftest$ac_exeext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_R_space=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 ac_R_space=no
8376 fi
8377 rm -f conftest.err conftest.$ac_objext \
8378       conftest$ac_exeext conftest.$ac_ext
8379         if test $ac_R_space = yes; then
8380           echo "$as_me:$LINENO: result: yes" >&5
8381 echo "${ECHO_T}yes" >&6
8382           X_LIBS="$X_LIBS -R $x_libraries"
8383         else
8384           echo "$as_me:$LINENO: result: neither works" >&5
8385 echo "${ECHO_T}neither works" >&6
8386         fi
8387       fi
8388       LIBS=$ac_xsave_LIBS
8389     esac
8390   fi
8391
8392   # Check for system-dependent libraries X programs must link with.
8393   # Do this before checking for the system-independent R6 libraries
8394   # (-lICE), since we may need -lsocket or whatever for X linking.
8395
8396   if test "$ISC" = yes; then
8397     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8398   else
8399     # Martyn Johnson says this is needed for Ultrix, if the X
8400     # libraries were built with DECnet support.  And Karl Berry says
8401     # the Alpha needs dnet_stub (dnet does not exist).
8402     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8403     cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415    builtin and then its argument prototype would still apply.  */
8416 char XOpenDisplay ();
8417 int
8418 main ()
8419 {
8420 XOpenDisplay ();
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427   (eval $ac_link) 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag"
8435                          || test ! -s conftest.err'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; } &&
8441          { ac_try='test -s conftest$ac_exeext'
8442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443   (eval $ac_try) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; }; then
8447   :
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8453 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8454 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   ac_check_lib_save_LIBS=$LIBS
8458 LIBS="-ldnet  $LIBS"
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465
8466 /* Override any gcc2 internal prototype to avoid an error.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471    builtin and then its argument prototype would still apply.  */
8472 char dnet_ntoa ();
8473 int
8474 main ()
8475 {
8476 dnet_ntoa ();
8477   ;
8478   return 0;
8479 }
8480 _ACEOF
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483   (eval $ac_link) 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag"
8491                          || test ! -s conftest.err'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; } &&
8497          { ac_try='test -s conftest$ac_exeext'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   ac_cv_lib_dnet_dnet_ntoa=yes
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ac_cv_lib_dnet_dnet_ntoa=no
8509 fi
8510 rm -f conftest.err conftest.$ac_objext \
8511       conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_lib_save_LIBS
8513 fi
8514 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8515 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8516 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8517   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8518 fi
8519
8520     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8521       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8522 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8523 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   ac_check_lib_save_LIBS=$LIBS
8527 LIBS="-ldnet_stub  $LIBS"
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534
8535 /* Override any gcc2 internal prototype to avoid an error.  */
8536 #ifdef __cplusplus
8537 extern "C"
8538 #endif
8539 /* We use char because int might match the return type of a gcc2
8540    builtin and then its argument prototype would still apply.  */
8541 char dnet_ntoa ();
8542 int
8543 main ()
8544 {
8545 dnet_ntoa ();
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552   (eval $ac_link) 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } &&
8559          { ac_try='test -z "$ac_c_werror_flag"
8560                          || test ! -s conftest.err'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; } &&
8566          { ac_try='test -s conftest$ac_exeext'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; }; then
8572   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 ac_cv_lib_dnet_stub_dnet_ntoa=no
8578 fi
8579 rm -f conftest.err conftest.$ac_objext \
8580       conftest$ac_exeext conftest.$ac_ext
8581 LIBS=$ac_check_lib_save_LIBS
8582 fi
8583 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8584 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8585 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8586   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8587 fi
8588
8589     fi
8590 fi
8591 rm -f conftest.err conftest.$ac_objext \
8592       conftest$ac_exeext conftest.$ac_ext
8593     LIBS="$ac_xsave_LIBS"
8594
8595     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8596     # to get the SysV transport functions.
8597     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8598     # needs -lnsl.
8599     # The nsl library prevents programs from opening the X display
8600     # on Irix 5.2, according to T.E. Dickey.
8601     # The functions gethostbyname, getservbyname, and inet_addr are
8602     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8603     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8604 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8605 if test "${ac_cv_func_gethostbyname+set}" = set; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8616 #define gethostbyname innocuous_gethostbyname
8617
8618 /* System header to define __stub macros and hopefully few prototypes,
8619     which can conflict with char gethostbyname (); below.
8620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8621     <limits.h> exists even on freestanding compilers.  */
8622
8623 #ifdef __STDC__
8624 # include <limits.h>
8625 #else
8626 # include <assert.h>
8627 #endif
8628
8629 #undef gethostbyname
8630
8631 /* Override any gcc2 internal prototype to avoid an error.  */
8632 #ifdef __cplusplus
8633 extern "C"
8634 {
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637    builtin and then its argument prototype would still apply.  */
8638 char gethostbyname ();
8639 /* The GNU C library defines this for functions which it implements
8640     to always fail with ENOSYS.  Some functions are actually named
8641     something starting with __ and the normal name is an alias.  */
8642 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8643 choke me
8644 #else
8645 char (*f) () = gethostbyname;
8646 #endif
8647 #ifdef __cplusplus
8648 }
8649 #endif
8650
8651 int
8652 main ()
8653 {
8654 return f != gethostbyname;
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661   (eval $ac_link) 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -z "$ac_c_werror_flag"
8669                          || test ! -s conftest.err'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest$ac_exeext'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; }; then
8681   ac_cv_func_gethostbyname=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_cv_func_gethostbyname=no
8687 fi
8688 rm -f conftest.err conftest.$ac_objext \
8689       conftest$ac_exeext conftest.$ac_ext
8690 fi
8691 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8692 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8693
8694     if test $ac_cv_func_gethostbyname = no; then
8695       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8696 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8697 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   ac_check_lib_save_LIBS=$LIBS
8701 LIBS="-lnsl  $LIBS"
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708
8709 /* Override any gcc2 internal prototype to avoid an error.  */
8710 #ifdef __cplusplus
8711 extern "C"
8712 #endif
8713 /* We use char because int might match the return type of a gcc2
8714    builtin and then its argument prototype would still apply.  */
8715 char gethostbyname ();
8716 int
8717 main ()
8718 {
8719 gethostbyname ();
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726   (eval $ac_link) 2>conftest.er1
8727   ac_status=$?
8728   grep -v '^ *+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } &&
8733          { ac_try='test -z "$ac_c_werror_flag"
8734                          || test ! -s conftest.err'
8735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736   (eval $ac_try) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; } &&
8740          { ac_try='test -s conftest$ac_exeext'
8741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742   (eval $ac_try) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); }; }; then
8746   ac_cv_lib_nsl_gethostbyname=yes
8747 else
8748   echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ac_cv_lib_nsl_gethostbyname=no
8752 fi
8753 rm -f conftest.err conftest.$ac_objext \
8754       conftest$ac_exeext conftest.$ac_ext
8755 LIBS=$ac_check_lib_save_LIBS
8756 fi
8757 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8758 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8759 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8760   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8761 fi
8762
8763       if test $ac_cv_lib_nsl_gethostbyname = no; then
8764         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8765 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8766 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-lbsd  $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777
8778 /* Override any gcc2 internal prototype to avoid an error.  */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 /* We use char because int might match the return type of a gcc2
8783    builtin and then its argument prototype would still apply.  */
8784 char gethostbyname ();
8785 int
8786 main ()
8787 {
8788 gethostbyname ();
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795   (eval $ac_link) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag"
8803                          || test ! -s conftest.err'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_lib_bsd_gethostbyname=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_cv_lib_bsd_gethostbyname=no
8821 fi
8822 rm -f conftest.err conftest.$ac_objext \
8823       conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8825 fi
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8827 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8828 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8829   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8830 fi
8831
8832       fi
8833     fi
8834
8835     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8836     # socket/setsockopt and other routines are undefined under SCO ODT
8837     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8838     # on later versions), says Simon Leinen: it contains gethostby*
8839     # variants that don't use the name server (or something).  -lsocket
8840     # must be given before -lnsl if both are needed.  We assume that
8841     # if connect needs -lnsl, so does gethostbyname.
8842     echo "$as_me:$LINENO: checking for connect" >&5
8843 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8844 if test "${ac_cv_func_connect+set}" = set; then
8845   echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847   cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8854    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8855 #define connect innocuous_connect
8856
8857 /* System header to define __stub macros and hopefully few prototypes,
8858     which can conflict with char connect (); below.
8859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8860     <limits.h> exists even on freestanding compilers.  */
8861
8862 #ifdef __STDC__
8863 # include <limits.h>
8864 #else
8865 # include <assert.h>
8866 #endif
8867
8868 #undef connect
8869
8870 /* Override any gcc2 internal prototype to avoid an error.  */
8871 #ifdef __cplusplus
8872 extern "C"
8873 {
8874 #endif
8875 /* We use char because int might match the return type of a gcc2
8876    builtin and then its argument prototype would still apply.  */
8877 char connect ();
8878 /* The GNU C library defines this for functions which it implements
8879     to always fail with ENOSYS.  Some functions are actually named
8880     something starting with __ and the normal name is an alias.  */
8881 #if defined (__stub_connect) || defined (__stub___connect)
8882 choke me
8883 #else
8884 char (*f) () = connect;
8885 #endif
8886 #ifdef __cplusplus
8887 }
8888 #endif
8889
8890 int
8891 main ()
8892 {
8893 return f != connect;
8894   ;
8895   return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900   (eval $ac_link) 2>conftest.er1
8901   ac_status=$?
8902   grep -v '^ *+' conftest.er1 >conftest.err
8903   rm -f conftest.er1
8904   cat conftest.err >&5
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } &&
8907          { ac_try='test -z "$ac_c_werror_flag"
8908                          || test ! -s conftest.err'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; } &&
8914          { ac_try='test -s conftest$ac_exeext'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; }; then
8920   ac_cv_func_connect=yes
8921 else
8922   echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 ac_cv_func_connect=no
8926 fi
8927 rm -f conftest.err conftest.$ac_objext \
8928       conftest$ac_exeext conftest.$ac_ext
8929 fi
8930 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8931 echo "${ECHO_T}$ac_cv_func_connect" >&6
8932
8933     if test $ac_cv_func_connect = no; then
8934       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8935 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8936 if test "${ac_cv_lib_socket_connect+set}" = set; then
8937   echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939   ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 /* Override any gcc2 internal prototype to avoid an error.  */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 /* We use char because int might match the return type of a gcc2
8953    builtin and then its argument prototype would still apply.  */
8954 char connect ();
8955 int
8956 main ()
8957 {
8958 connect ();
8959   ;
8960   return 0;
8961 }
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8965   (eval $ac_link) 2>conftest.er1
8966   ac_status=$?
8967   grep -v '^ *+' conftest.er1 >conftest.err
8968   rm -f conftest.er1
8969   cat conftest.err >&5
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } &&
8972          { ac_try='test -z "$ac_c_werror_flag"
8973                          || test ! -s conftest.err'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; } &&
8979          { ac_try='test -s conftest$ac_exeext'
8980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981   (eval $ac_try) 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); }; }; then
8985   ac_cv_lib_socket_connect=yes
8986 else
8987   echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_cv_lib_socket_connect=no
8991 fi
8992 rm -f conftest.err conftest.$ac_objext \
8993       conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8995 fi
8996 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8997 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8998 if test $ac_cv_lib_socket_connect = yes; then
8999   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9000 fi
9001
9002     fi
9003
9004     # Guillermo Gomez says -lposix is necessary on A/UX.
9005     echo "$as_me:$LINENO: checking for remove" >&5
9006 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9007 if test "${ac_cv_func_remove+set}" = set; then
9008   echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010   cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9018 #define remove innocuous_remove
9019
9020 /* System header to define __stub macros and hopefully few prototypes,
9021     which can conflict with char remove (); below.
9022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9023     <limits.h> exists even on freestanding compilers.  */
9024
9025 #ifdef __STDC__
9026 # include <limits.h>
9027 #else
9028 # include <assert.h>
9029 #endif
9030
9031 #undef remove
9032
9033 /* Override any gcc2 internal prototype to avoid an error.  */
9034 #ifdef __cplusplus
9035 extern "C"
9036 {
9037 #endif
9038 /* We use char because int might match the return type of a gcc2
9039    builtin and then its argument prototype would still apply.  */
9040 char remove ();
9041 /* The GNU C library defines this for functions which it implements
9042     to always fail with ENOSYS.  Some functions are actually named
9043     something starting with __ and the normal name is an alias.  */
9044 #if defined (__stub_remove) || defined (__stub___remove)
9045 choke me
9046 #else
9047 char (*f) () = remove;
9048 #endif
9049 #ifdef __cplusplus
9050 }
9051 #endif
9052
9053 int
9054 main ()
9055 {
9056 return f != remove;
9057   ;
9058   return 0;
9059 }
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063   (eval $ac_link) 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } &&
9070          { ac_try='test -z "$ac_c_werror_flag"
9071                          || test ! -s conftest.err'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; } &&
9077          { ac_try='test -s conftest$ac_exeext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   ac_cv_func_remove=yes
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_cv_func_remove=no
9089 fi
9090 rm -f conftest.err conftest.$ac_objext \
9091       conftest$ac_exeext conftest.$ac_ext
9092 fi
9093 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9094 echo "${ECHO_T}$ac_cv_func_remove" >&6
9095
9096     if test $ac_cv_func_remove = no; then
9097       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9098 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9099 if test "${ac_cv_lib_posix_remove+set}" = set; then
9100   echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102   ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-lposix  $LIBS"
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110
9111 /* Override any gcc2 internal prototype to avoid an error.  */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 /* We use char because int might match the return type of a gcc2
9116    builtin and then its argument prototype would still apply.  */
9117 char remove ();
9118 int
9119 main ()
9120 {
9121 remove ();
9122   ;
9123   return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128   (eval $ac_link) 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -z "$ac_c_werror_flag"
9136                          || test ! -s conftest.err'
9137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138   (eval $ac_try) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); }; } &&
9142          { ac_try='test -s conftest$ac_exeext'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; }; then
9148   ac_cv_lib_posix_remove=yes
9149 else
9150   echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_cv_lib_posix_remove=no
9154 fi
9155 rm -f conftest.err conftest.$ac_objext \
9156       conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_check_lib_save_LIBS
9158 fi
9159 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9160 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9161 if test $ac_cv_lib_posix_remove = yes; then
9162   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9163 fi
9164
9165     fi
9166
9167     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9168     echo "$as_me:$LINENO: checking for shmat" >&5
9169 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9170 if test "${ac_cv_func_shmat+set}" = set; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h.  */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h.  */
9179 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9181 #define shmat innocuous_shmat
9182
9183 /* System header to define __stub macros and hopefully few prototypes,
9184     which can conflict with char shmat (); below.
9185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9186     <limits.h> exists even on freestanding compilers.  */
9187
9188 #ifdef __STDC__
9189 # include <limits.h>
9190 #else
9191 # include <assert.h>
9192 #endif
9193
9194 #undef shmat
9195
9196 /* Override any gcc2 internal prototype to avoid an error.  */
9197 #ifdef __cplusplus
9198 extern "C"
9199 {
9200 #endif
9201 /* We use char because int might match the return type of a gcc2
9202    builtin and then its argument prototype would still apply.  */
9203 char shmat ();
9204 /* The GNU C library defines this for functions which it implements
9205     to always fail with ENOSYS.  Some functions are actually named
9206     something starting with __ and the normal name is an alias.  */
9207 #if defined (__stub_shmat) || defined (__stub___shmat)
9208 choke me
9209 #else
9210 char (*f) () = shmat;
9211 #endif
9212 #ifdef __cplusplus
9213 }
9214 #endif
9215
9216 int
9217 main ()
9218 {
9219 return f != shmat;
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226   (eval $ac_link) 2>conftest.er1
9227   ac_status=$?
9228   grep -v '^ *+' conftest.er1 >conftest.err
9229   rm -f conftest.er1
9230   cat conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } &&
9233          { ac_try='test -z "$ac_c_werror_flag"
9234                          || test ! -s conftest.err'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; } &&
9240          { ac_try='test -s conftest$ac_exeext'
9241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242   (eval $ac_try) 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; }; then
9246   ac_cv_func_shmat=yes
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 ac_cv_func_shmat=no
9252 fi
9253 rm -f conftest.err conftest.$ac_objext \
9254       conftest$ac_exeext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9257 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9258
9259     if test $ac_cv_func_shmat = no; then
9260       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9261 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9262 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   ac_check_lib_save_LIBS=$LIBS
9266 LIBS="-lipc  $LIBS"
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273
9274 /* Override any gcc2 internal prototype to avoid an error.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 /* We use char because int might match the return type of a gcc2
9279    builtin and then its argument prototype would still apply.  */
9280 char shmat ();
9281 int
9282 main ()
9283 {
9284 shmat ();
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_lib_ipc_shmat=yes
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_cv_lib_ipc_shmat=no
9317 fi
9318 rm -f conftest.err conftest.$ac_objext \
9319       conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9323 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9324 if test $ac_cv_lib_ipc_shmat = yes; then
9325   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9326 fi
9327
9328     fi
9329   fi
9330
9331   # Check for libraries that X11R6 Xt/Xaw programs need.
9332   ac_save_LDFLAGS=$LDFLAGS
9333   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9334   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9335   # check for ICE first), but we must link in the order -lSM -lICE or
9336   # we get undefined symbols.  So assume we have SM if we have ICE.
9337   # These have to be linked with before -lX11, unlike the other
9338   # libraries we check for below, so use a different variable.
9339   # John Interrante, Karl Berry
9340   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9341 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9342 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   ac_check_lib_save_LIBS=$LIBS
9346 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h.  */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h.  */
9353
9354 /* Override any gcc2 internal prototype to avoid an error.  */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 /* We use char because int might match the return type of a gcc2
9359    builtin and then its argument prototype would still apply.  */
9360 char IceConnectionNumber ();
9361 int
9362 main ()
9363 {
9364 IceConnectionNumber ();
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371   (eval $ac_link) 2>conftest.er1
9372   ac_status=$?
9373   grep -v '^ *+' conftest.er1 >conftest.err
9374   rm -f conftest.er1
9375   cat conftest.err >&5
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); } &&
9378          { ac_try='test -z "$ac_c_werror_flag"
9379                          || test ! -s conftest.err'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; } &&
9385          { ac_try='test -s conftest$ac_exeext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_cv_lib_ICE_IceConnectionNumber=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_cv_lib_ICE_IceConnectionNumber=no
9397 fi
9398 rm -f conftest.err conftest.$ac_objext \
9399       conftest$ac_exeext conftest.$ac_ext
9400 LIBS=$ac_check_lib_save_LIBS
9401 fi
9402 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9403 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9404 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9405   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9406 fi
9407
9408   LDFLAGS=$ac_save_LDFLAGS
9409
9410 fi
9411
9412      if test "$no_x" = yes; then
9413          { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
9414 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
9415    { (exit 1); exit 1; }; }
9416      fi
9417           echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
9418 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
9419 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
9420   echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422   ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-lXtst ${X_LIBS} $LIBS"
9424 cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430
9431 /* Override any gcc2 internal prototype to avoid an error.  */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 /* We use char because int might match the return type of a gcc2
9436    builtin and then its argument prototype would still apply.  */
9437 char XTestQueryExtension ();
9438 int
9439 main ()
9440 {
9441 XTestQueryExtension ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448   (eval $ac_link) 2>conftest.er1
9449   ac_status=$?
9450   grep -v '^ *+' conftest.er1 >conftest.err
9451   rm -f conftest.er1
9452   cat conftest.err >&5
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); } &&
9455          { ac_try='test -z "$ac_c_werror_flag"
9456                          || test ! -s conftest.err'
9457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458   (eval $ac_try) 2>&5
9459   ac_status=$?
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); }; } &&
9462          { ac_try='test -s conftest$ac_exeext'
9463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464   (eval $ac_try) 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   ac_cv_lib_Xtst_XTestQueryExtension=yes
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ac_cv_lib_Xtst_XTestQueryExtension=no
9474 fi
9475 rm -f conftest.err conftest.$ac_objext \
9476       conftest$ac_exeext conftest.$ac_ext
9477 LIBS=$ac_check_lib_save_LIBS
9478 fi
9479 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
9480 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
9481 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
9482   true
9483 else
9484   { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
9485 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
9486    { (exit 1); exit 1; }; }
9487 fi
9488
9489
9490   succeeded=no
9491
9492   if test -z "$PKG_CONFIG"; then
9493     # Extract the first word of "pkg-config", so it can be a program name with args.
9494 set dummy pkg-config; ac_word=$2
9495 echo "$as_me:$LINENO: checking for $ac_word" >&5
9496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   case $PKG_CONFIG in
9501   [\\/]* | ?:[\\/]*)
9502   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9503   ;;
9504   *)
9505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9507 do
9508   IFS=$as_save_IFS
9509   test -z "$as_dir" && as_dir=.
9510   for ac_exec_ext in '' $ac_executable_extensions; do
9511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9514     break 2
9515   fi
9516 done
9517 done
9518
9519   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9520   ;;
9521 esac
9522 fi
9523 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9524
9525 if test -n "$PKG_CONFIG"; then
9526   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9527 echo "${ECHO_T}$PKG_CONFIG" >&6
9528 else
9529   echo "$as_me:$LINENO: result: no" >&5
9530 echo "${ECHO_T}no" >&6
9531 fi
9532
9533   fi
9534
9535   if test "$PKG_CONFIG" = "no" ; then
9536      echo "*** The pkg-config script could not be found. Make sure it is"
9537      echo "*** in your path, or set the PKG_CONFIG environment variable"
9538      echo "*** to the full path to pkg-config."
9539      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9540   else
9541      PKG_CONFIG_MIN_VERSION=0.9.0
9542      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9543         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
9544 echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
9545
9546         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
9547             echo "$as_me:$LINENO: result: yes" >&5
9548 echo "${ECHO_T}yes" >&6
9549             succeeded=yes
9550
9551             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9552 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9553             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
9554             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9555 echo "${ECHO_T}$GTK_CFLAGS" >&6
9556
9557             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9558 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9559             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
9560             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9561 echo "${ECHO_T}$GTK_LIBS" >&6
9562         else
9563             GTK_CFLAGS=""
9564             GTK_LIBS=""
9565             ## If we have a custom action on failure, don't print errors, but
9566             ## do set a variable so people can do so.
9567             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
9568             echo $GTK_PKG_ERRORS
9569         fi
9570
9571
9572
9573      else
9574         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9575         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9576      fi
9577   fi
9578
9579   if test $succeeded = yes; then
9580      :
9581   else
9582      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) 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
9583 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) 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;}
9584    { (exit 1); exit 1; }; }
9585   fi
9586
9587
9588
9589   fi
9590
9591   if test "x${enable_gtk_cairo}" = xyes; then
9592
9593   succeeded=no
9594
9595   if test -z "$PKG_CONFIG"; then
9596     # Extract the first word of "pkg-config", so it can be a program name with args.
9597 set dummy pkg-config; ac_word=$2
9598 echo "$as_me:$LINENO: checking for $ac_word" >&5
9599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9600 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   case $PKG_CONFIG in
9604   [\\/]* | ?:[\\/]*)
9605   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9606   ;;
9607   *)
9608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611   IFS=$as_save_IFS
9612   test -z "$as_dir" && as_dir=.
9613   for ac_exec_ext in '' $ac_executable_extensions; do
9614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9617     break 2
9618   fi
9619 done
9620 done
9621
9622   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9623   ;;
9624 esac
9625 fi
9626 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9627
9628 if test -n "$PKG_CONFIG"; then
9629   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9630 echo "${ECHO_T}$PKG_CONFIG" >&6
9631 else
9632   echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6
9634 fi
9635
9636   fi
9637
9638   if test "$PKG_CONFIG" = "no" ; then
9639      echo "*** The pkg-config script could not be found. Make sure it is"
9640      echo "*** in your path, or set the PKG_CONFIG environment variable"
9641      echo "*** to the full path to pkg-config."
9642      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9643   else
9644      PKG_CONFIG_MIN_VERSION=0.9.0
9645      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9646         echo "$as_me:$LINENO: checking for cairo >= 0.5.0" >&5
9647 echo $ECHO_N "checking for cairo >= 0.5.0... $ECHO_C" >&6
9648
9649         if $PKG_CONFIG --exists "cairo >= 0.5.0" ; then
9650             echo "$as_me:$LINENO: result: yes" >&5
9651 echo "${ECHO_T}yes" >&6
9652             succeeded=yes
9653
9654             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
9655 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
9656             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.5.0"`
9657             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
9658 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
9659
9660             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
9661 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
9662             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.5.0"`
9663             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
9664 echo "${ECHO_T}$CAIRO_LIBS" >&6
9665         else
9666             CAIRO_CFLAGS=""
9667             CAIRO_LIBS=""
9668             ## If we have a custom action on failure, don't print errors, but
9669             ## do set a variable so people can do so.
9670             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.5.0"`
9671             echo $CAIRO_PKG_ERRORS
9672         fi
9673
9674
9675
9676      else
9677         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9678         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9679      fi
9680   fi
9681
9682   if test $succeeded = yes; then
9683      :
9684   else
9685      { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 0.5.0) 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
9686 echo "$as_me: error: Library requirements (cairo >= 0.5.0) 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;}
9687    { (exit 1); exit 1; }; }
9688   fi
9689
9690
9691   succeeded=no
9692
9693   if test -z "$PKG_CONFIG"; then
9694     # Extract the first word of "pkg-config", so it can be a program name with args.
9695 set dummy pkg-config; ac_word=$2
9696 echo "$as_me:$LINENO: checking for $ac_word" >&5
9697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9698 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9699   echo $ECHO_N "(cached) $ECHO_C" >&6
9700 else
9701   case $PKG_CONFIG in
9702   [\\/]* | ?:[\\/]*)
9703   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9704   ;;
9705   *)
9706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9708 do
9709   IFS=$as_save_IFS
9710   test -z "$as_dir" && as_dir=.
9711   for ac_exec_ext in '' $ac_executable_extensions; do
9712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9713     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9715     break 2
9716   fi
9717 done
9718 done
9719
9720   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9721   ;;
9722 esac
9723 fi
9724 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9725
9726 if test -n "$PKG_CONFIG"; then
9727   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9728 echo "${ECHO_T}$PKG_CONFIG" >&6
9729 else
9730   echo "$as_me:$LINENO: result: no" >&5
9731 echo "${ECHO_T}no" >&6
9732 fi
9733
9734   fi
9735
9736   if test "$PKG_CONFIG" = "no" ; then
9737      echo "*** The pkg-config script could not be found. Make sure it is"
9738      echo "*** in your path, or set the PKG_CONFIG environment variable"
9739      echo "*** to the full path to pkg-config."
9740      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9741   else
9742      PKG_CONFIG_MIN_VERSION=0.9.0
9743      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9744         echo "$as_me:$LINENO: checking for pangoft2" >&5
9745 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
9746
9747         if $PKG_CONFIG --exists "pangoft2" ; then
9748             echo "$as_me:$LINENO: result: yes" >&5
9749 echo "${ECHO_T}yes" >&6
9750             succeeded=yes
9751
9752             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
9753 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
9754             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
9755             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
9756 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
9757
9758             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
9759 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
9760             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
9761             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
9762 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
9763         else
9764             PANGOFT2_CFLAGS=""
9765             PANGOFT2_LIBS=""
9766             ## If we have a custom action on failure, don't print errors, but
9767             ## do set a variable so people can do so.
9768             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
9769             echo $PANGOFT2_PKG_ERRORS
9770         fi
9771
9772
9773
9774      else
9775         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9776         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9777      fi
9778   fi
9779
9780   if test $succeeded = yes; then
9781      :
9782   else
9783      { { 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
9784 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;}
9785    { (exit 1); exit 1; }; }
9786   fi
9787
9788   fi
9789
9790
9791
9792
9793 fi
9794
9795
9796
9797 # Check whether --with-javah or --without-javah was given.
9798 if test "${with_javah+set}" = set; then
9799   withval="$with_javah"
9800
9801     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
9802
9803   if test "x${withval}" != x; then
9804     if test -f "${withval}"; then
9805       USER_JAVAH="${withval}"
9806     else
9807       # Extract the first word of ""${withval}"", so it can be a program name with args.
9808 set dummy "${withval}"; ac_word=$2
9809 echo "$as_me:$LINENO: checking for $ac_word" >&5
9810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9811 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   case $USER_JAVAH in
9815   [\\/]* | ?:[\\/]*)
9816   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
9817   ;;
9818   *)
9819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9821 do
9822   IFS=$as_save_IFS
9823   test -z "$as_dir" && as_dir=.
9824   for ac_exec_ext in '' $ac_executable_extensions; do
9825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9826     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
9827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9828     break 2
9829   fi
9830 done
9831 done
9832
9833   ;;
9834 esac
9835 fi
9836 USER_JAVAH=$ac_cv_path_USER_JAVAH
9837
9838 if test -n "$USER_JAVAH"; then
9839   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
9840 echo "${ECHO_T}$USER_JAVAH" >&6
9841 else
9842   echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9844 fi
9845
9846     fi
9847   else
9848     for javah_name in gcjh javah; do
9849       # Extract the first word of ""$javah_name"", so it can be a program name with args.
9850 set dummy "$javah_name"; ac_word=$2
9851 echo "$as_me:$LINENO: checking for $ac_word" >&5
9852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9853 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   case $USER_JAVAH in
9857   [\\/]* | ?:[\\/]*)
9858   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
9859   ;;
9860   *)
9861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9863 do
9864   IFS=$as_save_IFS
9865   test -z "$as_dir" && as_dir=.
9866   for ac_exec_ext in '' $ac_executable_extensions; do
9867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
9869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9870     break 2
9871   fi
9872 done
9873 done
9874
9875   ;;
9876 esac
9877 fi
9878 USER_JAVAH=$ac_cv_path_USER_JAVAH
9879
9880 if test -n "$USER_JAVAH"; then
9881   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
9882 echo "${ECHO_T}$USER_JAVAH" >&6
9883 else
9884   echo "$as_me:$LINENO: result: no" >&5
9885 echo "${ECHO_T}no" >&6
9886 fi
9887
9888       if test "x${USER_JAVAH}" != x; then
9889         break
9890       fi
9891     done
9892   fi
9893
9894 #  if test "x${USER_JAVAH}" = x; then
9895 #    echo "configure: cannot find javah" 1>&2
9896 #    exit 1
9897 #  fi
9898
9899     else
9900
9901   if test "x" != x; then
9902     if test -f ""; then
9903       USER_JAVAH=""
9904     else
9905       # Extract the first word of """", so it can be a program name with args.
9906 set dummy ""; ac_word=$2
9907 echo "$as_me:$LINENO: checking for $ac_word" >&5
9908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9909 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
9910   echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912   case $USER_JAVAH in
9913   [\\/]* | ?:[\\/]*)
9914   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
9915   ;;
9916   *)
9917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920   IFS=$as_save_IFS
9921   test -z "$as_dir" && as_dir=.
9922   for ac_exec_ext in '' $ac_executable_extensions; do
9923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
9925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9926     break 2
9927   fi
9928 done
9929 done
9930
9931   ;;
9932 esac
9933 fi
9934 USER_JAVAH=$ac_cv_path_USER_JAVAH
9935
9936 if test -n "$USER_JAVAH"; then
9937   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
9938 echo "${ECHO_T}$USER_JAVAH" >&6
9939 else
9940   echo "$as_me:$LINENO: result: no" >&5
9941 echo "${ECHO_T}no" >&6
9942 fi
9943
9944     fi
9945   else
9946     for javah_name in gcjh javah; do
9947       # Extract the first word of ""$javah_name"", so it can be a program name with args.
9948 set dummy "$javah_name"; ac_word=$2
9949 echo "$as_me:$LINENO: checking for $ac_word" >&5
9950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9951 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 else
9954   case $USER_JAVAH in
9955   [\\/]* | ?:[\\/]*)
9956   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
9957   ;;
9958   *)
9959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9961 do
9962   IFS=$as_save_IFS
9963   test -z "$as_dir" && as_dir=.
9964   for ac_exec_ext in '' $ac_executable_extensions; do
9965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9966     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
9967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9968     break 2
9969   fi
9970 done
9971 done
9972
9973   ;;
9974 esac
9975 fi
9976 USER_JAVAH=$ac_cv_path_USER_JAVAH
9977
9978 if test -n "$USER_JAVAH"; then
9979   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
9980 echo "${ECHO_T}$USER_JAVAH" >&6
9981 else
9982   echo "$as_me:$LINENO: result: no" >&5
9983 echo "${ECHO_T}no" >&6
9984 fi
9985
9986       if test "x${USER_JAVAH}" != x; then
9987         break
9988       fi
9989     done
9990   fi
9991
9992 #  if test "x${USER_JAVAH}" = x; then
9993 #    echo "configure: cannot find javah" 1>&2
9994 #    exit 1
9995 #  fi
9996
9997     fi
9998
9999 else
10000
10001
10002   if test "x" != x; then
10003     if test -f ""; then
10004       USER_JAVAH=""
10005     else
10006       # Extract the first word of """", so it can be a program name with args.
10007 set dummy ""; ac_word=$2
10008 echo "$as_me:$LINENO: checking for $ac_word" >&5
10009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10010 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   case $USER_JAVAH in
10014   [\\/]* | ?:[\\/]*)
10015   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
10016   ;;
10017   *)
10018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021   IFS=$as_save_IFS
10022   test -z "$as_dir" && as_dir=.
10023   for ac_exec_ext in '' $ac_executable_extensions; do
10024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
10026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027     break 2
10028   fi
10029 done
10030 done
10031
10032   ;;
10033 esac
10034 fi
10035 USER_JAVAH=$ac_cv_path_USER_JAVAH
10036
10037 if test -n "$USER_JAVAH"; then
10038   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
10039 echo "${ECHO_T}$USER_JAVAH" >&6
10040 else
10041   echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6
10043 fi
10044
10045     fi
10046   else
10047     for javah_name in gcjh javah; do
10048       # Extract the first word of ""$javah_name"", so it can be a program name with args.
10049 set dummy "$javah_name"; ac_word=$2
10050 echo "$as_me:$LINENO: checking for $ac_word" >&5
10051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
10053   echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055   case $USER_JAVAH in
10056   [\\/]* | ?:[\\/]*)
10057   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
10058   ;;
10059   *)
10060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063   IFS=$as_save_IFS
10064   test -z "$as_dir" && as_dir=.
10065   for ac_exec_ext in '' $ac_executable_extensions; do
10066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
10068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10069     break 2
10070   fi
10071 done
10072 done
10073
10074   ;;
10075 esac
10076 fi
10077 USER_JAVAH=$ac_cv_path_USER_JAVAH
10078
10079 if test -n "$USER_JAVAH"; then
10080   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
10081 echo "${ECHO_T}$USER_JAVAH" >&6
10082 else
10083   echo "$as_me:$LINENO: result: no" >&5
10084 echo "${ECHO_T}no" >&6
10085 fi
10086
10087       if test "x${USER_JAVAH}" != x; then
10088         break
10089       fi
10090     done
10091   fi
10092
10093 #  if test "x${USER_JAVAH}" = x; then
10094 #    echo "configure: cannot find javah" 1>&2
10095 #    exit 1
10096 #  fi
10097
10098
10099 fi;
10100
10101
10102 if test "x${USER_JAVAH}" != x; then
10103   USER_SPECIFIED_JAVAH_TRUE=
10104   USER_SPECIFIED_JAVAH_FALSE='#'
10105 else
10106   USER_SPECIFIED_JAVAH_TRUE='#'
10107   USER_SPECIFIED_JAVAH_FALSE=
10108 fi
10109
10110
10111
10112
10113 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
10114
10115
10116 if test "x${COMPILE_JNI}" = xyes; then
10117   echo "$as_me:$LINENO: checking jni_md.h support" >&5
10118 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
10119   if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
10120     echo "$as_me:$LINENO: result: yes" >&5
10121 echo "${ECHO_T}yes" >&6
10122   else
10123     target_cpu=x86
10124     target_os=linux-gnu
10125     { echo "$as_me:$LINENO: WARNING: no" >&5
10126 echo "$as_me: WARNING: no" >&2;}
10127   fi
10128   ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
10129   ac_dests="include/jni_md.h"
10130   while test -n "$ac_sources"; do
10131     set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10132     set $ac_sources; ac_source=$1; shift; ac_sources=$*
10133     ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
10134   done
10135             ac_config_links="$ac_config_links $ac_config_links_1"
10136
10137 fi
10138
10139
10140   user_specified_javac=
10141
10142
10143
10144 # Check whether --with-gcj or --without-gcj was given.
10145 if test "${with_gcj+set}" = set; then
10146   withval="$with_gcj"
10147
10148     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
10149
10150   if test "x${withval}" != x; then
10151     if test -f "${withval}"; then
10152       GCJ="${withval}"
10153     else
10154       # Extract the first word of ""${withval}"", so it can be a program name with args.
10155 set dummy "${withval}"; ac_word=$2
10156 echo "$as_me:$LINENO: checking for $ac_word" >&5
10157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10158 if test "${ac_cv_path_GCJ+set}" = set; then
10159   echo $ECHO_N "(cached) $ECHO_C" >&6
10160 else
10161   case $GCJ in
10162   [\\/]* | ?:[\\/]*)
10163   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
10164   ;;
10165   *)
10166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171   for ac_exec_ext in '' $ac_executable_extensions; do
10172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
10174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178 done
10179
10180   ;;
10181 esac
10182 fi
10183 GCJ=$ac_cv_path_GCJ
10184
10185 if test -n "$GCJ"; then
10186   echo "$as_me:$LINENO: result: $GCJ" >&5
10187 echo "${ECHO_T}$GCJ" >&6
10188 else
10189   echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6
10191 fi
10192
10193     fi
10194   else
10195     # Extract the first word of ""gcj"", so it can be a program name with args.
10196 set dummy "gcj"; ac_word=$2
10197 echo "$as_me:$LINENO: checking for $ac_word" >&5
10198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10199 if test "${ac_cv_path_GCJ+set}" = set; then
10200   echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202   case $GCJ in
10203   [\\/]* | ?:[\\/]*)
10204   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
10205   ;;
10206   *)
10207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210   IFS=$as_save_IFS
10211   test -z "$as_dir" && as_dir=.
10212   for ac_exec_ext in '' $ac_executable_extensions; do
10213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
10215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10216     break 2
10217   fi
10218 done
10219 done
10220
10221   ;;
10222 esac
10223 fi
10224 GCJ=$ac_cv_path_GCJ
10225
10226 if test -n "$GCJ"; then
10227   echo "$as_me:$LINENO: result: $GCJ" >&5
10228 echo "${ECHO_T}$GCJ" >&6
10229 else
10230   echo "$as_me:$LINENO: result: no" >&5
10231 echo "${ECHO_T}no" >&6
10232 fi
10233
10234   fi
10235
10236   if test "x$GCJ" != x; then
10237     ## GCC version 2 puts out version messages that looked like:
10238     ##   2.95
10239
10240     ## GCC version 3 puts out version messages like:
10241     ##   gcj (GCC) 3.3.3
10242     ##   Copyright (C) 2003 Free Software Foundation, Inc.
10243     ##   This is free software; see the source for copying conditions.  There is NO
10244     ##   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10245     echo "$as_me:$LINENO: checking gcj version" >&5
10246 echo $ECHO_N "checking gcj version... $ECHO_C" >&6
10247     ## Take the output from gcj --version and extract just the version number
10248     ## into GCJ_VERSION.
10249     ## (we need to do this to be compatible with both GCC 2 and GCC 3 version
10250     ##  numbers)
10251     ##
10252     ## First, we get rid of everything before the first number on that line.
10253     ## Assume that the first number on that line is the start of the
10254     ## version.
10255     ##
10256     ## Second, while we're at it, go ahead and get rid of the first character
10257     ## that is not part of a version number (i.e., is neither a digit nor
10258     ## a dot).
10259     ##
10260     ## Third, quit, so that we won't process the second and subsequent lines.
10261     GCJ_VERSION=`$GCJ --version | sed -e 's/^[^0-9]*//' -e 's/[^.0-9][^.0-9]*//' -e 'q'`
10262     GCJ_VERSION_MAJOR=`echo "$GCJ_VERSION" | cut -d '.' -f 1`
10263     GCJ_VERSION_MINOR=`echo "$GCJ_VERSION" | cut -d '.' -f 2`
10264
10265     if expr "$GCJ_VERSION_MAJOR" \< 3 > /dev/null; then
10266       GCJ=""
10267     fi
10268     if expr "$GCJ_VERSION_MAJOR" = 3 > /dev/null; then
10269       if expr "$GCJ_VERSION_MINOR" \< 3; then
10270         GCJ=""
10271       fi
10272     fi
10273     if test "x$GCJ" != x; then
10274       echo "$as_me:$LINENO: result: $GCJ_VERSION" >&5
10275 echo "${ECHO_T}$GCJ_VERSION" >&6
10276     else
10277       { echo "$as_me:$LINENO: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&5
10278 echo "$as_me: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&2;}
10279     fi
10280   fi
10281
10282     else
10283       if test "x${withval}" != xno; then
10284
10285   if test "x" != x; then
10286     if test -f ""; then
10287       GCJ=""
10288     else
10289       # Extract the first word of """", so it can be a program name with args.
10290 set dummy ""; ac_word=$2
10291 echo "$as_me:$LINENO: checking for $ac_word" >&5
10292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10293 if test "${ac_cv_path_GCJ+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296   case $GCJ in
10297   [\\/]* | ?:[\\/]*)
10298   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
10299   ;;
10300   *)
10301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304   IFS=$as_save_IFS
10305   test -z "$as_dir" && as_dir=.
10306   for ac_exec_ext in '' $ac_executable_extensions; do
10307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10308     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
10309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10310     break 2
10311   fi
10312 done
10313 done
10314
10315   ;;
10316 esac
10317 fi
10318 GCJ=$ac_cv_path_GCJ
10319
10320 if test -n "$GCJ"; then
10321   echo "$as_me:$LINENO: result: $GCJ" >&5
10322 echo "${ECHO_T}$GCJ" >&6
10323 else
10324   echo "$as_me:$LINENO: result: no" >&5
10325 echo "${ECHO_T}no" >&6
10326 fi
10327
10328     fi
10329   else
10330     # Extract the first word of ""gcj"", so it can be a program name with args.
10331 set dummy "gcj"; ac_word=$2
10332 echo "$as_me:$LINENO: checking for $ac_word" >&5
10333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10334 if test "${ac_cv_path_GCJ+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   case $GCJ in
10338   [\\/]* | ?:[\\/]*)
10339   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
10340   ;;
10341   *)
10342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10344 do
10345   IFS=$as_save_IFS
10346   test -z "$as_dir" && as_dir=.
10347   for ac_exec_ext in '' $ac_executable_extensions; do
10348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
10350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10351     break 2
10352   fi
10353 done
10354 done
10355
10356   ;;
10357 esac
10358 fi
10359 GCJ=$ac_cv_path_GCJ
10360
10361 if test -n "$GCJ"; then
10362   echo "$as_me:$LINENO: result: $GCJ" >&5
10363 echo "${ECHO_T}$GCJ" >&6
10364 else
10365   echo "$as_me:$LINENO: result: no" >&5
10366 echo "${ECHO_T}no" >&6
10367 fi
10368
10369   fi
10370
10371   if test "x$GCJ" != x; then
10372     ## GCC version 2 puts out version messages that looked like:
10373     ##   2.95
10374
10375     ## GCC version 3 puts out version messages like:
10376     ##   gcj (GCC) 3.3.3
10377     ##   Copyright (C) 2003 Free Software Foundation, Inc.
10378     ##   This is free software; see the source for copying conditions.  There is NO
10379     ##   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10380     echo "$as_me:$LINENO: checking gcj version" >&5
10381 echo $ECHO_N "checking gcj version... $ECHO_C" >&6
10382     ## Take the output from gcj --version and extract just the version number
10383     ## into GCJ_VERSION.
10384     ## (we need to do this to be compatible with both GCC 2 and GCC 3 version
10385     ##  numbers)
10386     ##
10387     ## First, we get rid of everything before the first number on that line.
10388     ## Assume that the first number on that line is the start of the
10389     ## version.
10390     ##
10391     ## Second, while we're at it, go ahead and get rid of the first character
10392     ## that is not part of a version number (i.e., is neither a digit nor
10393     ## a dot).
10394     ##
10395     ## Third, quit, so that we won't process the second and subsequent lines.
10396     GCJ_VERSION=`$GCJ --version | sed -e 's/^[^0-9]*//' -e 's/[^.0-9][^.0-9]*//' -e 'q'`
10397     GCJ_VERSION_MAJOR=`echo "$GCJ_VERSION" | cut -d '.' -f 1`
10398     GCJ_VERSION_MINOR=`echo "$GCJ_VERSION" | cut -d '.' -f 2`
10399
10400     if expr "$GCJ_VERSION_MAJOR" \< 3 > /dev/null; then
10401       GCJ=""
10402     fi
10403     if expr "$GCJ_VERSION_MAJOR" = 3 > /dev/null; then
10404       if expr "$GCJ_VERSION_MINOR" \< 3; then
10405         GCJ=""
10406       fi
10407     fi
10408     if test "x$GCJ" != x; then
10409       echo "$as_me:$LINENO: result: $GCJ_VERSION" >&5
10410 echo "${ECHO_T}$GCJ_VERSION" >&6
10411     else
10412       { echo "$as_me:$LINENO: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&5
10413 echo "$as_me: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&2;}
10414     fi
10415   fi
10416
10417       fi
10418     fi
10419     user_specified_javac=gcj
10420
10421 else
10422
10423
10424   if test "x" != x; then
10425     if test -f ""; then
10426       GCJ=""
10427     else
10428       # Extract the first word of """", so it can be a program name with args.
10429 set dummy ""; ac_word=$2
10430 echo "$as_me:$LINENO: checking for $ac_word" >&5
10431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10432 if test "${ac_cv_path_GCJ+set}" = set; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   case $GCJ in
10436   [\\/]* | ?:[\\/]*)
10437   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
10438   ;;
10439   *)
10440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10442 do
10443   IFS=$as_save_IFS
10444   test -z "$as_dir" && as_dir=.
10445   for ac_exec_ext in '' $ac_executable_extensions; do
10446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
10448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10449     break 2
10450   fi
10451 done
10452 done
10453
10454   ;;
10455 esac
10456 fi
10457 GCJ=$ac_cv_path_GCJ
10458
10459 if test -n "$GCJ"; then
10460   echo "$as_me:$LINENO: result: $GCJ" >&5
10461 echo "${ECHO_T}$GCJ" >&6
10462 else
10463   echo "$as_me:$LINENO: result: no" >&5
10464 echo "${ECHO_T}no" >&6
10465 fi
10466
10467     fi
10468   else
10469     # Extract the first word of ""gcj"", so it can be a program name with args.
10470 set dummy "gcj"; ac_word=$2
10471 echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10473 if test "${ac_cv_path_GCJ+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   case $GCJ in
10477   [\\/]* | ?:[\\/]*)
10478   ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
10479   ;;
10480   *)
10481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484   IFS=$as_save_IFS
10485   test -z "$as_dir" && as_dir=.
10486   for ac_exec_ext in '' $ac_executable_extensions; do
10487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488     ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
10489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10490     break 2
10491   fi
10492 done
10493 done
10494
10495   ;;
10496 esac
10497 fi
10498 GCJ=$ac_cv_path_GCJ
10499
10500 if test -n "$GCJ"; then
10501   echo "$as_me:$LINENO: result: $GCJ" >&5
10502 echo "${ECHO_T}$GCJ" >&6
10503 else
10504   echo "$as_me:$LINENO: result: no" >&5
10505 echo "${ECHO_T}no" >&6
10506 fi
10507
10508   fi
10509
10510   if test "x$GCJ" != x; then
10511     ## GCC version 2 puts out version messages that looked like:
10512     ##   2.95
10513
10514     ## GCC version 3 puts out version messages like:
10515     ##   gcj (GCC) 3.3.3
10516     ##   Copyright (C) 2003 Free Software Foundation, Inc.
10517     ##   This is free software; see the source for copying conditions.  There is NO
10518     ##   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10519     echo "$as_me:$LINENO: checking gcj version" >&5
10520 echo $ECHO_N "checking gcj version... $ECHO_C" >&6
10521     ## Take the output from gcj --version and extract just the version number
10522     ## into GCJ_VERSION.
10523     ## (we need to do this to be compatible with both GCC 2 and GCC 3 version
10524     ##  numbers)
10525     ##
10526     ## First, we get rid of everything before the first number on that line.
10527     ## Assume that the first number on that line is the start of the
10528     ## version.
10529     ##
10530     ## Second, while we're at it, go ahead and get rid of the first character
10531     ## that is not part of a version number (i.e., is neither a digit nor
10532     ## a dot).
10533     ##
10534     ## Third, quit, so that we won't process the second and subsequent lines.
10535     GCJ_VERSION=`$GCJ --version | sed -e 's/^[^0-9]*//' -e 's/[^.0-9][^.0-9]*//' -e 'q'`
10536     GCJ_VERSION_MAJOR=`echo "$GCJ_VERSION" | cut -d '.' -f 1`
10537     GCJ_VERSION_MINOR=`echo "$GCJ_VERSION" | cut -d '.' -f 2`
10538
10539     if expr "$GCJ_VERSION_MAJOR" \< 3 > /dev/null; then
10540       GCJ=""
10541     fi
10542     if expr "$GCJ_VERSION_MAJOR" = 3 > /dev/null; then
10543       if expr "$GCJ_VERSION_MINOR" \< 3; then
10544         GCJ=""
10545       fi
10546     fi
10547     if test "x$GCJ" != x; then
10548       echo "$as_me:$LINENO: result: $GCJ_VERSION" >&5
10549 echo "${ECHO_T}$GCJ_VERSION" >&6
10550     else
10551       { echo "$as_me:$LINENO: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&5
10552 echo "$as_me: WARNING: $GCJ_VERSION: gcj 3.3 or higher required" >&2;}
10553     fi
10554   fi
10555
10556
10557 fi;
10558
10559
10560
10561
10562 # Check whether --with-jikes or --without-jikes was given.
10563 if test "${with_jikes+set}" = set; then
10564   withval="$with_jikes"
10565
10566     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
10567
10568   if test "x${withval}" != x; then
10569     if test -f "${withval}"; then
10570       JIKES="${withval}"
10571     else
10572       # Extract the first word of ""${withval}"", so it can be a program name with args.
10573 set dummy "${withval}"; ac_word=$2
10574 echo "$as_me:$LINENO: checking for $ac_word" >&5
10575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576 if test "${ac_cv_path_JIKES+set}" = set; then
10577   echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579   case $JIKES in
10580   [\\/]* | ?:[\\/]*)
10581   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
10582   ;;
10583   *)
10584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587   IFS=$as_save_IFS
10588   test -z "$as_dir" && as_dir=.
10589   for ac_exec_ext in '' $ac_executable_extensions; do
10590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
10592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593     break 2
10594   fi
10595 done
10596 done
10597
10598   ;;
10599 esac
10600 fi
10601 JIKES=$ac_cv_path_JIKES
10602
10603 if test -n "$JIKES"; then
10604   echo "$as_me:$LINENO: result: $JIKES" >&5
10605 echo "${ECHO_T}$JIKES" >&6
10606 else
10607   echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6
10609 fi
10610
10611     fi
10612   else
10613     # Extract the first word of ""jikes"", so it can be a program name with args.
10614 set dummy "jikes"; ac_word=$2
10615 echo "$as_me:$LINENO: checking for $ac_word" >&5
10616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10617 if test "${ac_cv_path_JIKES+set}" = set; then
10618   echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620   case $JIKES in
10621   [\\/]* | ?:[\\/]*)
10622   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
10623   ;;
10624   *)
10625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10627 do
10628   IFS=$as_save_IFS
10629   test -z "$as_dir" && as_dir=.
10630   for ac_exec_ext in '' $ac_executable_extensions; do
10631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
10633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10634     break 2
10635   fi
10636 done
10637 done
10638
10639   ;;
10640 esac
10641 fi
10642 JIKES=$ac_cv_path_JIKES
10643
10644 if test -n "$JIKES"; then
10645   echo "$as_me:$LINENO: result: $JIKES" >&5
10646 echo "${ECHO_T}$JIKES" >&6
10647 else
10648   echo "$as_me:$LINENO: result: no" >&5
10649 echo "${ECHO_T}no" >&6
10650 fi
10651
10652   fi
10653   if test "x$JIKES" != "x"; then
10654         echo "$as_me:$LINENO: checking jikes version" >&5
10655 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
10656     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
10657     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
10658     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
10659     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
10660       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
10661         JIKES=""
10662       fi
10663     fi
10664     if test "x$JIKES" != "x"; then
10665       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
10666 echo "${ECHO_T}$JIKES_VERSION" >&6
10667     else
10668       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
10669 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
10670     fi
10671
10672     JIKESENCODING=
10673     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
10674        JIKESENCODING='-encoding UTF-8'
10675     fi
10676
10677   fi
10678
10679     else
10680       if test "x${withval}" != xno; then
10681
10682   if test "x" != x; then
10683     if test -f ""; then
10684       JIKES=""
10685     else
10686       # Extract the first word of """", so it can be a program name with args.
10687 set dummy ""; ac_word=$2
10688 echo "$as_me:$LINENO: checking for $ac_word" >&5
10689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10690 if test "${ac_cv_path_JIKES+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   case $JIKES in
10694   [\\/]* | ?:[\\/]*)
10695   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
10696   ;;
10697   *)
10698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699 for as_dir in $PATH
10700 do
10701   IFS=$as_save_IFS
10702   test -z "$as_dir" && as_dir=.
10703   for ac_exec_ext in '' $ac_executable_extensions; do
10704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10705     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
10706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10707     break 2
10708   fi
10709 done
10710 done
10711
10712   ;;
10713 esac
10714 fi
10715 JIKES=$ac_cv_path_JIKES
10716
10717 if test -n "$JIKES"; then
10718   echo "$as_me:$LINENO: result: $JIKES" >&5
10719 echo "${ECHO_T}$JIKES" >&6
10720 else
10721   echo "$as_me:$LINENO: result: no" >&5
10722 echo "${ECHO_T}no" >&6
10723 fi
10724
10725     fi
10726   else
10727     # Extract the first word of ""jikes"", so it can be a program name with args.
10728 set dummy "jikes"; ac_word=$2
10729 echo "$as_me:$LINENO: checking for $ac_word" >&5
10730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10731 if test "${ac_cv_path_JIKES+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   case $JIKES in
10735   [\\/]* | ?:[\\/]*)
10736   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
10737   ;;
10738   *)
10739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10741 do
10742   IFS=$as_save_IFS
10743   test -z "$as_dir" && as_dir=.
10744   for ac_exec_ext in '' $ac_executable_extensions; do
10745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
10747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748     break 2
10749   fi
10750 done
10751 done
10752
10753   ;;
10754 esac
10755 fi
10756 JIKES=$ac_cv_path_JIKES
10757
10758 if test -n "$JIKES"; then
10759   echo "$as_me:$LINENO: result: $JIKES" >&5
10760 echo "${ECHO_T}$JIKES" >&6
10761 else
10762   echo "$as_me:$LINENO: result: no" >&5
10763 echo "${ECHO_T}no" >&6
10764 fi
10765
10766   fi
10767   if test "x$JIKES" != "x"; then
10768         echo "$as_me:$LINENO: checking jikes version" >&5
10769 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
10770     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
10771     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
10772     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
10773     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
10774       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
10775         JIKES=""
10776       fi
10777     fi
10778     if test "x$JIKES" != "x"; then
10779       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
10780 echo "${ECHO_T}$JIKES_VERSION" >&6
10781     else
10782       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
10783 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
10784     fi
10785
10786     JIKESENCODING=
10787     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
10788        JIKESENCODING='-encoding UTF-8'
10789     fi
10790
10791   fi
10792
10793       fi
10794     fi
10795     user_specified_javac=jikes
10796
10797 else
10798
10799
10800   if test "x" != x; then
10801     if test -f ""; then
10802       JIKES=""
10803     else
10804       # Extract the first word of """", so it can be a program name with args.
10805 set dummy ""; ac_word=$2
10806 echo "$as_me:$LINENO: checking for $ac_word" >&5
10807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10808 if test "${ac_cv_path_JIKES+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   case $JIKES in
10812   [\\/]* | ?:[\\/]*)
10813   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
10814   ;;
10815   *)
10816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819   IFS=$as_save_IFS
10820   test -z "$as_dir" && as_dir=.
10821   for ac_exec_ext in '' $ac_executable_extensions; do
10822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
10824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10825     break 2
10826   fi
10827 done
10828 done
10829
10830   ;;
10831 esac
10832 fi
10833 JIKES=$ac_cv_path_JIKES
10834
10835 if test -n "$JIKES"; then
10836   echo "$as_me:$LINENO: result: $JIKES" >&5
10837 echo "${ECHO_T}$JIKES" >&6
10838 else
10839   echo "$as_me:$LINENO: result: no" >&5
10840 echo "${ECHO_T}no" >&6
10841 fi
10842
10843     fi
10844   else
10845     # Extract the first word of ""jikes"", so it can be a program name with args.
10846 set dummy "jikes"; ac_word=$2
10847 echo "$as_me:$LINENO: checking for $ac_word" >&5
10848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10849 if test "${ac_cv_path_JIKES+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   case $JIKES in
10853   [\\/]* | ?:[\\/]*)
10854   ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
10855   ;;
10856   *)
10857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10859 do
10860   IFS=$as_save_IFS
10861   test -z "$as_dir" && as_dir=.
10862   for ac_exec_ext in '' $ac_executable_extensions; do
10863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864     ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
10865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866     break 2
10867   fi
10868 done
10869 done
10870
10871   ;;
10872 esac
10873 fi
10874 JIKES=$ac_cv_path_JIKES
10875
10876 if test -n "$JIKES"; then
10877   echo "$as_me:$LINENO: result: $JIKES" >&5
10878 echo "${ECHO_T}$JIKES" >&6
10879 else
10880   echo "$as_me:$LINENO: result: no" >&5
10881 echo "${ECHO_T}no" >&6
10882 fi
10883
10884   fi
10885   if test "x$JIKES" != "x"; then
10886         echo "$as_me:$LINENO: checking jikes version" >&5
10887 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
10888     JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
10889     JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
10890     JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
10891     if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
10892       if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
10893         JIKES=""
10894       fi
10895     fi
10896     if test "x$JIKES" != "x"; then
10897       echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
10898 echo "${ECHO_T}$JIKES_VERSION" >&6
10899     else
10900       { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
10901 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
10902     fi
10903
10904     JIKESENCODING=
10905     if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
10906        JIKESENCODING='-encoding UTF-8'
10907     fi
10908
10909   fi
10910
10911
10912 fi;
10913
10914
10915
10916
10917 # Check whether --with-kjc or --without-kjc was given.
10918 if test "${with_kjc+set}" = set; then
10919   withval="$with_kjc"
10920
10921     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
10922
10923   if test "x${withval}" != x; then
10924     if test -f "${withval}"; then
10925       KJC="${withval}"
10926     else
10927       # Extract the first word of ""${withval}"", so it can be a program name with args.
10928 set dummy "${withval}"; ac_word=$2
10929 echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10931 if test "${ac_cv_path_KJC+set}" = set; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   case $KJC in
10935   [\\/]* | ?:[\\/]*)
10936   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
10937   ;;
10938   *)
10939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10941 do
10942   IFS=$as_save_IFS
10943   test -z "$as_dir" && as_dir=.
10944   for ac_exec_ext in '' $ac_executable_extensions; do
10945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
10947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10948     break 2
10949   fi
10950 done
10951 done
10952
10953   ;;
10954 esac
10955 fi
10956 KJC=$ac_cv_path_KJC
10957
10958 if test -n "$KJC"; then
10959   echo "$as_me:$LINENO: result: $KJC" >&5
10960 echo "${ECHO_T}$KJC" >&6
10961 else
10962   echo "$as_me:$LINENO: result: no" >&5
10963 echo "${ECHO_T}no" >&6
10964 fi
10965
10966     fi
10967   else
10968     # Extract the first word of ""kJC"", so it can be a program name with args.
10969 set dummy "kJC"; ac_word=$2
10970 echo "$as_me:$LINENO: checking for $ac_word" >&5
10971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10972 if test "${ac_cv_path_KJC+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975   case $KJC in
10976   [\\/]* | ?:[\\/]*)
10977   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
10978   ;;
10979   *)
10980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985   for ac_exec_ext in '' $ac_executable_extensions; do
10986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
10988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992 done
10993
10994   ;;
10995 esac
10996 fi
10997 KJC=$ac_cv_path_KJC
10998
10999 if test -n "$KJC"; then
11000   echo "$as_me:$LINENO: result: $KJC" >&5
11001 echo "${ECHO_T}$KJC" >&6
11002 else
11003   echo "$as_me:$LINENO: result: no" >&5
11004 echo "${ECHO_T}no" >&6
11005 fi
11006
11007   fi
11008
11009     else
11010       if test "x${withval}" != xno; then
11011
11012   if test "x" != x; then
11013     if test -f ""; then
11014       KJC=""
11015     else
11016       # Extract the first word of """", so it can be a program name with args.
11017 set dummy ""; ac_word=$2
11018 echo "$as_me:$LINENO: checking for $ac_word" >&5
11019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11020 if test "${ac_cv_path_KJC+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   case $KJC in
11024   [\\/]* | ?:[\\/]*)
11025   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
11026   ;;
11027   *)
11028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11030 do
11031   IFS=$as_save_IFS
11032   test -z "$as_dir" && as_dir=.
11033   for ac_exec_ext in '' $ac_executable_extensions; do
11034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
11036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11037     break 2
11038   fi
11039 done
11040 done
11041
11042   ;;
11043 esac
11044 fi
11045 KJC=$ac_cv_path_KJC
11046
11047 if test -n "$KJC"; then
11048   echo "$as_me:$LINENO: result: $KJC" >&5
11049 echo "${ECHO_T}$KJC" >&6
11050 else
11051   echo "$as_me:$LINENO: result: no" >&5
11052 echo "${ECHO_T}no" >&6
11053 fi
11054
11055     fi
11056   else
11057     # Extract the first word of ""kJC"", so it can be a program name with args.
11058 set dummy "kJC"; ac_word=$2
11059 echo "$as_me:$LINENO: checking for $ac_word" >&5
11060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11061 if test "${ac_cv_path_KJC+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   case $KJC in
11065   [\\/]* | ?:[\\/]*)
11066   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
11067   ;;
11068   *)
11069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11071 do
11072   IFS=$as_save_IFS
11073   test -z "$as_dir" && as_dir=.
11074   for ac_exec_ext in '' $ac_executable_extensions; do
11075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
11077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11078     break 2
11079   fi
11080 done
11081 done
11082
11083   ;;
11084 esac
11085 fi
11086 KJC=$ac_cv_path_KJC
11087
11088 if test -n "$KJC"; then
11089   echo "$as_me:$LINENO: result: $KJC" >&5
11090 echo "${ECHO_T}$KJC" >&6
11091 else
11092   echo "$as_me:$LINENO: result: no" >&5
11093 echo "${ECHO_T}no" >&6
11094 fi
11095
11096   fi
11097
11098       fi
11099     fi
11100     user_specified_javac=kjc
11101
11102 else
11103
11104
11105   if test "x" != x; then
11106     if test -f ""; then
11107       KJC=""
11108     else
11109       # Extract the first word of """", so it can be a program name with args.
11110 set dummy ""; ac_word=$2
11111 echo "$as_me:$LINENO: checking for $ac_word" >&5
11112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11113 if test "${ac_cv_path_KJC+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   case $KJC in
11117   [\\/]* | ?:[\\/]*)
11118   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
11119   ;;
11120   *)
11121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11123 do
11124   IFS=$as_save_IFS
11125   test -z "$as_dir" && as_dir=.
11126   for ac_exec_ext in '' $ac_executable_extensions; do
11127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
11129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11130     break 2
11131   fi
11132 done
11133 done
11134
11135   ;;
11136 esac
11137 fi
11138 KJC=$ac_cv_path_KJC
11139
11140 if test -n "$KJC"; then
11141   echo "$as_me:$LINENO: result: $KJC" >&5
11142 echo "${ECHO_T}$KJC" >&6
11143 else
11144   echo "$as_me:$LINENO: result: no" >&5
11145 echo "${ECHO_T}no" >&6
11146 fi
11147
11148     fi
11149   else
11150     # Extract the first word of ""kJC"", so it can be a program name with args.
11151 set dummy "kJC"; ac_word=$2
11152 echo "$as_me:$LINENO: checking for $ac_word" >&5
11153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11154 if test "${ac_cv_path_KJC+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   case $KJC in
11158   [\\/]* | ?:[\\/]*)
11159   ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
11160   ;;
11161   *)
11162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11164 do
11165   IFS=$as_save_IFS
11166   test -z "$as_dir" && as_dir=.
11167   for ac_exec_ext in '' $ac_executable_extensions; do
11168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169     ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
11170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11171     break 2
11172   fi
11173 done
11174 done
11175
11176   ;;
11177 esac
11178 fi
11179 KJC=$ac_cv_path_KJC
11180
11181 if test -n "$KJC"; then
11182   echo "$as_me:$LINENO: result: $KJC" >&5
11183 echo "${ECHO_T}$KJC" >&6
11184 else
11185   echo "$as_me:$LINENO: result: no" >&5
11186 echo "${ECHO_T}no" >&6
11187 fi
11188
11189   fi
11190
11191
11192 fi;
11193
11194
11195
11196
11197 # Check whether --with-gcjx or --without-gcjx was given.
11198 if test "${with_gcjx+set}" = set; then
11199   withval="$with_gcjx"
11200
11201     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
11202
11203   if test "x${withval}" != x; then
11204     if test -f "${withval}"; then
11205       GCJX="${withval}"
11206     else
11207       # Extract the first word of ""${withval}"", so it can be a program name with args.
11208 set dummy "${withval}"; ac_word=$2
11209 echo "$as_me:$LINENO: checking for $ac_word" >&5
11210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11211 if test "${ac_cv_path_GCJX+set}" = set; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214   case $GCJX in
11215   [\\/]* | ?:[\\/]*)
11216   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
11217   ;;
11218   *)
11219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224   for ac_exec_ext in '' $ac_executable_extensions; do
11225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
11227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231 done
11232
11233   ;;
11234 esac
11235 fi
11236 GCJX=$ac_cv_path_GCJX
11237
11238 if test -n "$GCJX"; then
11239   echo "$as_me:$LINENO: result: $GCJX" >&5
11240 echo "${ECHO_T}$GCJX" >&6
11241 else
11242   echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6
11244 fi
11245
11246     fi
11247   else
11248     # Extract the first word of ""gcjx"", so it can be a program name with args.
11249 set dummy "gcjx"; ac_word=$2
11250 echo "$as_me:$LINENO: checking for $ac_word" >&5
11251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11252 if test "${ac_cv_path_GCJX+set}" = set; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   case $GCJX in
11256   [\\/]* | ?:[\\/]*)
11257   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
11258   ;;
11259   *)
11260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11262 do
11263   IFS=$as_save_IFS
11264   test -z "$as_dir" && as_dir=.
11265   for ac_exec_ext in '' $ac_executable_extensions; do
11266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
11268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269     break 2
11270   fi
11271 done
11272 done
11273
11274   ;;
11275 esac
11276 fi
11277 GCJX=$ac_cv_path_GCJX
11278
11279 if test -n "$GCJX"; then
11280   echo "$as_me:$LINENO: result: $GCJX" >&5
11281 echo "${ECHO_T}$GCJX" >&6
11282 else
11283   echo "$as_me:$LINENO: result: no" >&5
11284 echo "${ECHO_T}no" >&6
11285 fi
11286
11287   fi
11288
11289     else
11290       if test "x${withval}" != xno; then
11291
11292   if test "x" != x; then
11293     if test -f ""; then
11294       GCJX=""
11295     else
11296       # Extract the first word of """", so it can be a program name with args.
11297 set dummy ""; ac_word=$2
11298 echo "$as_me:$LINENO: checking for $ac_word" >&5
11299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11300 if test "${ac_cv_path_GCJX+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   case $GCJX in
11304   [\\/]* | ?:[\\/]*)
11305   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
11306   ;;
11307   *)
11308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311   IFS=$as_save_IFS
11312   test -z "$as_dir" && as_dir=.
11313   for ac_exec_ext in '' $ac_executable_extensions; do
11314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
11316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317     break 2
11318   fi
11319 done
11320 done
11321
11322   ;;
11323 esac
11324 fi
11325 GCJX=$ac_cv_path_GCJX
11326
11327 if test -n "$GCJX"; then
11328   echo "$as_me:$LINENO: result: $GCJX" >&5
11329 echo "${ECHO_T}$GCJX" >&6
11330 else
11331   echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6
11333 fi
11334
11335     fi
11336   else
11337     # Extract the first word of ""gcjx"", so it can be a program name with args.
11338 set dummy "gcjx"; ac_word=$2
11339 echo "$as_me:$LINENO: checking for $ac_word" >&5
11340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11341 if test "${ac_cv_path_GCJX+set}" = set; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   case $GCJX in
11345   [\\/]* | ?:[\\/]*)
11346   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
11347   ;;
11348   *)
11349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   test -z "$as_dir" && as_dir=.
11354   for ac_exec_ext in '' $ac_executable_extensions; do
11355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
11357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361 done
11362
11363   ;;
11364 esac
11365 fi
11366 GCJX=$ac_cv_path_GCJX
11367
11368 if test -n "$GCJX"; then
11369   echo "$as_me:$LINENO: result: $GCJX" >&5
11370 echo "${ECHO_T}$GCJX" >&6
11371 else
11372   echo "$as_me:$LINENO: result: no" >&5
11373 echo "${ECHO_T}no" >&6
11374 fi
11375
11376   fi
11377
11378       fi
11379     fi
11380     user_specified_javac=gcjx
11381
11382 else
11383
11384
11385   if test "x" != x; then
11386     if test -f ""; then
11387       GCJX=""
11388     else
11389       # Extract the first word of """", so it can be a program name with args.
11390 set dummy ""; ac_word=$2
11391 echo "$as_me:$LINENO: checking for $ac_word" >&5
11392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11393 if test "${ac_cv_path_GCJX+set}" = set; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   case $GCJX in
11397   [\\/]* | ?:[\\/]*)
11398   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
11399   ;;
11400   *)
11401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11403 do
11404   IFS=$as_save_IFS
11405   test -z "$as_dir" && as_dir=.
11406   for ac_exec_ext in '' $ac_executable_extensions; do
11407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11408     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
11409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11410     break 2
11411   fi
11412 done
11413 done
11414
11415   ;;
11416 esac
11417 fi
11418 GCJX=$ac_cv_path_GCJX
11419
11420 if test -n "$GCJX"; then
11421   echo "$as_me:$LINENO: result: $GCJX" >&5
11422 echo "${ECHO_T}$GCJX" >&6
11423 else
11424   echo "$as_me:$LINENO: result: no" >&5
11425 echo "${ECHO_T}no" >&6
11426 fi
11427
11428     fi
11429   else
11430     # Extract the first word of ""gcjx"", so it can be a program name with args.
11431 set dummy "gcjx"; ac_word=$2
11432 echo "$as_me:$LINENO: checking for $ac_word" >&5
11433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11434 if test "${ac_cv_path_GCJX+set}" = set; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   case $GCJX in
11438   [\\/]* | ?:[\\/]*)
11439   ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
11440   ;;
11441   *)
11442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11444 do
11445   IFS=$as_save_IFS
11446   test -z "$as_dir" && as_dir=.
11447   for ac_exec_ext in '' $ac_executable_extensions; do
11448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11449     ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
11450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11451     break 2
11452   fi
11453 done
11454 done
11455
11456   ;;
11457 esac
11458 fi
11459 GCJX=$ac_cv_path_GCJX
11460
11461 if test -n "$GCJX"; then
11462   echo "$as_me:$LINENO: result: $GCJX" >&5
11463 echo "${ECHO_T}$GCJX" >&6
11464 else
11465   echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6
11467 fi
11468
11469   fi
11470
11471
11472 fi;
11473
11474
11475
11476
11477 # Check whether --with-ecj or --without-ecj was given.
11478 if test "${with_ecj+set}" = set; then
11479   withval="$with_ecj"
11480
11481     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
11482
11483   if test "x${withval}" != x; then
11484     if test -f "${withval}"; then
11485       ECJ="${withval}"
11486     else
11487       # Extract the first word of ""${withval}"", so it can be a program name with args.
11488 set dummy "${withval}"; ac_word=$2
11489 echo "$as_me:$LINENO: checking for $ac_word" >&5
11490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11491 if test "${ac_cv_path_ECJ+set}" = set; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   case $ECJ in
11495   [\\/]* | ?:[\\/]*)
11496   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
11497   ;;
11498   *)
11499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502   IFS=$as_save_IFS
11503   test -z "$as_dir" && as_dir=.
11504   for ac_exec_ext in '' $ac_executable_extensions; do
11505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
11507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508     break 2
11509   fi
11510 done
11511 done
11512
11513   ;;
11514 esac
11515 fi
11516 ECJ=$ac_cv_path_ECJ
11517
11518 if test -n "$ECJ"; then
11519   echo "$as_me:$LINENO: result: $ECJ" >&5
11520 echo "${ECHO_T}$ECJ" >&6
11521 else
11522   echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11524 fi
11525
11526     fi
11527   else
11528     # Extract the first word of ""ecj"", so it can be a program name with args.
11529 set dummy "ecj"; ac_word=$2
11530 echo "$as_me:$LINENO: checking for $ac_word" >&5
11531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11532 if test "${ac_cv_path_ECJ+set}" = set; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535   case $ECJ in
11536   [\\/]* | ?:[\\/]*)
11537   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
11538   ;;
11539   *)
11540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11542 do
11543   IFS=$as_save_IFS
11544   test -z "$as_dir" && as_dir=.
11545   for ac_exec_ext in '' $ac_executable_extensions; do
11546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
11548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11549     break 2
11550   fi
11551 done
11552 done
11553
11554   ;;
11555 esac
11556 fi
11557 ECJ=$ac_cv_path_ECJ
11558
11559 if test -n "$ECJ"; then
11560   echo "$as_me:$LINENO: result: $ECJ" >&5
11561 echo "${ECHO_T}$ECJ" >&6
11562 else
11563   echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6
11565 fi
11566
11567   fi
11568
11569     else
11570       if test "x${withval}" != xno; then
11571
11572   if test "x" != x; then
11573     if test -f ""; then
11574       ECJ=""
11575     else
11576       # Extract the first word of """", so it can be a program name with args.
11577 set dummy ""; ac_word=$2
11578 echo "$as_me:$LINENO: checking for $ac_word" >&5
11579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11580 if test "${ac_cv_path_ECJ+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   case $ECJ in
11584   [\\/]* | ?:[\\/]*)
11585   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
11586   ;;
11587   *)
11588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11590 do
11591   IFS=$as_save_IFS
11592   test -z "$as_dir" && as_dir=.
11593   for ac_exec_ext in '' $ac_executable_extensions; do
11594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11595     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
11596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11597     break 2
11598   fi
11599 done
11600 done
11601
11602   ;;
11603 esac
11604 fi
11605 ECJ=$ac_cv_path_ECJ
11606
11607 if test -n "$ECJ"; then
11608   echo "$as_me:$LINENO: result: $ECJ" >&5
11609 echo "${ECHO_T}$ECJ" >&6
11610 else
11611   echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6
11613 fi
11614
11615     fi
11616   else
11617     # Extract the first word of ""ecj"", so it can be a program name with args.
11618 set dummy "ecj"; ac_word=$2
11619 echo "$as_me:$LINENO: checking for $ac_word" >&5
11620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11621 if test "${ac_cv_path_ECJ+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   case $ECJ in
11625   [\\/]* | ?:[\\/]*)
11626   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
11627   ;;
11628   *)
11629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11631 do
11632   IFS=$as_save_IFS
11633   test -z "$as_dir" && as_dir=.
11634   for ac_exec_ext in '' $ac_executable_extensions; do
11635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11636     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
11637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11638     break 2
11639   fi
11640 done
11641 done
11642
11643   ;;
11644 esac
11645 fi
11646 ECJ=$ac_cv_path_ECJ
11647
11648 if test -n "$ECJ"; then
11649   echo "$as_me:$LINENO: result: $ECJ" >&5
11650 echo "${ECHO_T}$ECJ" >&6
11651 else
11652   echo "$as_me:$LINENO: result: no" >&5
11653 echo "${ECHO_T}no" >&6
11654 fi
11655
11656   fi
11657
11658       fi
11659     fi
11660     user_specified_javac=ecj
11661
11662 else
11663
11664
11665   if test "x" != x; then
11666     if test -f ""; then
11667       ECJ=""
11668     else
11669       # Extract the first word of """", so it can be a program name with args.
11670 set dummy ""; ac_word=$2
11671 echo "$as_me:$LINENO: checking for $ac_word" >&5
11672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11673 if test "${ac_cv_path_ECJ+set}" = set; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   case $ECJ in
11677   [\\/]* | ?:[\\/]*)
11678   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
11679   ;;
11680   *)
11681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684   IFS=$as_save_IFS
11685   test -z "$as_dir" && as_dir=.
11686   for ac_exec_ext in '' $ac_executable_extensions; do
11687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
11689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690     break 2
11691   fi
11692 done
11693 done
11694
11695   ;;
11696 esac
11697 fi
11698 ECJ=$ac_cv_path_ECJ
11699
11700 if test -n "$ECJ"; then
11701   echo "$as_me:$LINENO: result: $ECJ" >&5
11702 echo "${ECHO_T}$ECJ" >&6
11703 else
11704   echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6
11706 fi
11707
11708     fi
11709   else
11710     # Extract the first word of ""ecj"", so it can be a program name with args.
11711 set dummy "ecj"; ac_word=$2
11712 echo "$as_me:$LINENO: checking for $ac_word" >&5
11713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11714 if test "${ac_cv_path_ECJ+set}" = set; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   case $ECJ in
11718   [\\/]* | ?:[\\/]*)
11719   ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
11720   ;;
11721   *)
11722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723 for as_dir in $PATH
11724 do
11725   IFS=$as_save_IFS
11726   test -z "$as_dir" && as_dir=.
11727   for ac_exec_ext in '' $ac_executable_extensions; do
11728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11729     ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
11730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11731     break 2
11732   fi
11733 done
11734 done
11735
11736   ;;
11737 esac
11738 fi
11739 ECJ=$ac_cv_path_ECJ
11740
11741 if test -n "$ECJ"; then
11742   echo "$as_me:$LINENO: result: $ECJ" >&5
11743 echo "${ECHO_T}$ECJ" >&6
11744 else
11745   echo "$as_me:$LINENO: result: no" >&5
11746 echo "${ECHO_T}no" >&6
11747 fi
11748
11749   fi
11750
11751
11752 fi;
11753
11754
11755
11756   if test "x${user_specified_javac}" = x; then
11757
11758
11759 if test "x${GCJ}" != x; then
11760   FOUND_GCJ_TRUE=
11761   FOUND_GCJ_FALSE='#'
11762 else
11763   FOUND_GCJ_TRUE='#'
11764   FOUND_GCJ_FALSE=
11765 fi
11766
11767
11768
11769 if test "x${JIKES}" != x; then
11770   FOUND_JIKES_TRUE=
11771   FOUND_JIKES_FALSE='#'
11772 else
11773   FOUND_JIKES_TRUE='#'
11774   FOUND_JIKES_FALSE=
11775 fi
11776
11777
11778
11779 if test "x${ECJ}" != x; then
11780   FOUND_ECJ_TRUE=
11781   FOUND_ECJ_FALSE='#'
11782 else
11783   FOUND_ECJ_TRUE='#'
11784   FOUND_ECJ_FALSE=
11785 fi
11786
11787   else
11788
11789
11790 if test "x${user_specified_javac}" = xgcj; then
11791   FOUND_GCJ_TRUE=
11792   FOUND_GCJ_FALSE='#'
11793 else
11794   FOUND_GCJ_TRUE='#'
11795   FOUND_GCJ_FALSE=
11796 fi
11797
11798
11799
11800 if test "x${user_specified_javac}" = xjikes; then
11801   FOUND_JIKES_TRUE=
11802   FOUND_JIKES_FALSE='#'
11803 else
11804   FOUND_JIKES_TRUE='#'
11805   FOUND_JIKES_FALSE=
11806 fi
11807
11808
11809
11810 if test "x${user_specified_javac}" = xecj; then
11811   FOUND_ECJ_TRUE=
11812   FOUND_ECJ_FALSE='#'
11813 else
11814   FOUND_ECJ_TRUE='#'
11815   FOUND_ECJ_FALSE=
11816 fi
11817
11818   fi
11819
11820
11821 if test "x${user_specified_javac}" = xkjc; then
11822   FOUND_KJC_TRUE=
11823   FOUND_KJC_FALSE='#'
11824 else
11825   FOUND_KJC_TRUE='#'
11826   FOUND_KJC_FALSE=
11827 fi
11828
11829
11830
11831 if test "x${user_specified_javac}" = xgcjx; then
11832   FOUND_GCJX_TRUE=
11833   FOUND_GCJX_FALSE='#'
11834 else
11835   FOUND_GCJX_TRUE='#'
11836   FOUND_GCJX_FALSE=
11837 fi
11838
11839
11840   if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx; then
11841       # FIXME: use autoconf error function
11842       echo "configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, or --with-gcjx" 1>&2
11843       exit 1
11844   fi
11845
11846
11847
11848
11849 # Check whether --with-classpath or --without-classpath was given.
11850 if test "${with_classpath+set}" = set; then
11851   withval="$with_classpath"
11852
11853     if test "x${withval}" = xyes; then
11854       # set user classpath to CLASSPATH from env
11855       echo "$as_me:$LINENO: checking for classlib" >&5
11856 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
11857       USER_CLASSLIB=${CLASSPATH}
11858
11859       echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
11860 echo "${ECHO_T}${USER_CLASSLIB}" >&6
11861       conditional_with_classlib=true
11862     elif test "x${withval}" != x && test "x${withval}" != xno; then
11863       # set user classpath to specified value
11864       echo "$as_me:$LINENO: checking for classlib" >&5
11865 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
11866       USER_CLASSLIB=${withval}
11867
11868       echo "$as_me:$LINENO: result: ${withval}" >&5
11869 echo "${ECHO_T}${withval}" >&6
11870       conditional_with_classlib=true
11871     fi
11872
11873 else
11874    conditional_with_classlib=false
11875 fi;
11876
11877
11878 if test "x${conditional_with_classlib}" = xtrue; then
11879   USER_SPECIFIED_CLASSLIB_TRUE=
11880   USER_SPECIFIED_CLASSLIB_FALSE='#'
11881 else
11882   USER_SPECIFIED_CLASSLIB_TRUE='#'
11883   USER_SPECIFIED_CLASSLIB_FALSE=
11884 fi
11885
11886
11887
11888 # Check whether --with-vm-classes or --without-vm-classes was given.
11889 if test "${with_vm_classes+set}" = set; then
11890   withval="$with_vm_classes"
11891   vm_classes="$with_vm_classes"
11892 else
11893   vm_classes='${top_srcdir}/vm/reference'
11894 fi;
11895
11896
11897
11898 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11899 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11900     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11901 if test "${enable_maintainer_mode+set}" = set; then
11902   enableval="$enable_maintainer_mode"
11903   USE_MAINTAINER_MODE=$enableval
11904 else
11905   USE_MAINTAINER_MODE=no
11906 fi;
11907   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11908 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11909
11910
11911 if test $USE_MAINTAINER_MODE = yes; then
11912   MAINTAINER_MODE_TRUE=
11913   MAINTAINER_MODE_FALSE='#'
11914 else
11915   MAINTAINER_MODE_TRUE='#'
11916   MAINTAINER_MODE_FALSE=
11917 fi
11918
11919   MAINT=$MAINTAINER_MODE_TRUE
11920
11921
11922
11923 # Check whether --enable-debug or --disable-debug was given.
11924 if test "${enable_debug+set}" = set; then
11925   enableval="$enable_debug"
11926   case "${enableval}" in
11927                 yes)
11928                 LIBDEBUG="true"
11929
11930 cat >>confdefs.h <<\_ACEOF
11931 #define DEBUG 1
11932 _ACEOF
11933
11934                 ;;
11935                 no)   LIBDEBUG="false" ;;
11936                 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
11937 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
11938    { (exit 1); exit 1; }; } ;;
11939               esac
11940 else
11941   LIBDEBUG="false"
11942 fi;
11943
11944
11945 # Check whether --enable-load-library or --disable-load-library was given.
11946 if test "${enable_load_library+set}" = set; then
11947   enableval="$enable_load_library"
11948   case "${enableval}" in
11949                 yes) INIT_LOAD_LIBRARY="true" ;;
11950                 no) INIT_LOAD_LIBRARY="false" ;;
11951                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
11952 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
11953    { (exit 1); exit 1; }; } ;;
11954               esac
11955 else
11956   INIT_LOAD_LIBRARY="true"
11957 fi;
11958
11959
11960
11961 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
11962 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
11963   enableval="$enable_java_lang_system_explicit_initialization"
11964   case "${enableval}" in
11965                 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
11966                 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
11967                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
11968 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
11969    { (exit 1); exit 1; }; } ;;
11970               esac
11971 else
11972   JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
11973 fi;
11974
11975
11976
11977 REMOVE=""
11978
11979
11980 # Extract the first word of "sh", so it can be a program name with args.
11981 set dummy sh; ac_word=$2
11982 echo "$as_me:$LINENO: checking for $ac_word" >&5
11983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11984 if test "${ac_cv_path_SH+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   case $SH in
11988   [\\/]* | ?:[\\/]*)
11989   ac_cv_path_SH="$SH" # Let the user override the test with a path.
11990   ;;
11991   *)
11992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995   IFS=$as_save_IFS
11996   test -z "$as_dir" && as_dir=.
11997   for ac_exec_ext in '' $ac_executable_extensions; do
11998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
12000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12001     break 2
12002   fi
12003 done
12004 done
12005
12006   ;;
12007 esac
12008 fi
12009 SH=$ac_cv_path_SH
12010
12011 if test -n "$SH"; then
12012   echo "$as_me:$LINENO: result: $SH" >&5
12013 echo "${ECHO_T}$SH" >&6
12014 else
12015   echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12017 fi
12018
12019 # Extract the first word of "mkdir", so it can be a program name with args.
12020 set dummy mkdir; ac_word=$2
12021 echo "$as_me:$LINENO: checking for $ac_word" >&5
12022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12023 if test "${ac_cv_path_MKDIR+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   case $MKDIR in
12027   [\\/]* | ?:[\\/]*)
12028   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
12029   ;;
12030   *)
12031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034   IFS=$as_save_IFS
12035   test -z "$as_dir" && as_dir=.
12036   for ac_exec_ext in '' $ac_executable_extensions; do
12037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
12039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040     break 2
12041   fi
12042 done
12043 done
12044
12045   ;;
12046 esac
12047 fi
12048 MKDIR=$ac_cv_path_MKDIR
12049
12050 if test -n "$MKDIR"; then
12051   echo "$as_me:$LINENO: result: $MKDIR" >&5
12052 echo "${ECHO_T}$MKDIR" >&6
12053 else
12054   echo "$as_me:$LINENO: result: no" >&5
12055 echo "${ECHO_T}no" >&6
12056 fi
12057
12058 # Extract the first word of "cp", so it can be a program name with args.
12059 set dummy cp; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_path_CP+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   case $CP in
12066   [\\/]* | ?:[\\/]*)
12067   ac_cv_path_CP="$CP" # Let the user override the test with a path.
12068   ;;
12069   *)
12070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12072 do
12073   IFS=$as_save_IFS
12074   test -z "$as_dir" && as_dir=.
12075   for ac_exec_ext in '' $ac_executable_extensions; do
12076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
12078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079     break 2
12080   fi
12081 done
12082 done
12083
12084   ;;
12085 esac
12086 fi
12087 CP=$ac_cv_path_CP
12088
12089 if test -n "$CP"; then
12090   echo "$as_me:$LINENO: result: $CP" >&5
12091 echo "${ECHO_T}$CP" >&6
12092 else
12093   echo "$as_me:$LINENO: result: no" >&5
12094 echo "${ECHO_T}no" >&6
12095 fi
12096
12097 # Extract the first word of "date", so it can be a program name with args.
12098 set dummy date; ac_word=$2
12099 echo "$as_me:$LINENO: checking for $ac_word" >&5
12100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12101 if test "${ac_cv_path_DATE+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   case $DATE in
12105   [\\/]* | ?:[\\/]*)
12106   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
12107   ;;
12108   *)
12109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114   for ac_exec_ext in '' $ac_executable_extensions; do
12115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
12117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121 done
12122
12123   ;;
12124 esac
12125 fi
12126 DATE=$ac_cv_path_DATE
12127
12128 if test -n "$DATE"; then
12129   echo "$as_me:$LINENO: result: $DATE" >&5
12130 echo "${ECHO_T}$DATE" >&6
12131 else
12132   echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6
12134 fi
12135
12136
12137 # Extract the first word of "find", so it can be a program name with args.
12138 set dummy find; ac_word=$2
12139 echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141 if test "${ac_cv_path_FIND+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   case $FIND in
12145   [\\/]* | ?:[\\/]*)
12146   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
12147   ;;
12148   *)
12149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12151 do
12152   IFS=$as_save_IFS
12153   test -z "$as_dir" && as_dir=.
12154   for ac_exec_ext in '' $ac_executable_extensions; do
12155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12156     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
12157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12158     break 2
12159   fi
12160 done
12161 done
12162
12163   ;;
12164 esac
12165 fi
12166 FIND=$ac_cv_path_FIND
12167
12168 if test -n "$FIND"; then
12169   echo "$as_me:$LINENO: result: $FIND" >&5
12170 echo "${ECHO_T}$FIND" >&6
12171 else
12172   echo "$as_me:$LINENO: result: no" >&5
12173 echo "${ECHO_T}no" >&6
12174 fi
12175
12176
12177
12178
12179 # Check whether --with-glibj or --without-glibj was given.
12180 if test "${with_glibj+set}" = set; then
12181   withval="$with_glibj"
12182
12183                 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
12184                   # Extract the first word of "zip", so it can be a program name with args.
12185 set dummy zip; ac_word=$2
12186 echo "$as_me:$LINENO: checking for $ac_word" >&5
12187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12188 if test "${ac_cv_path_ZIP+set}" = set; then
12189   echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191   case $ZIP in
12192   [\\/]* | ?:[\\/]*)
12193   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
12194   ;;
12195   *)
12196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199   IFS=$as_save_IFS
12200   test -z "$as_dir" && as_dir=.
12201   for ac_exec_ext in '' $ac_executable_extensions; do
12202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
12204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12205     break 2
12206   fi
12207 done
12208 done
12209
12210   ;;
12211 esac
12212 fi
12213 ZIP=$ac_cv_path_ZIP
12214
12215 if test -n "$ZIP"; then
12216   echo "$as_me:$LINENO: result: $ZIP" >&5
12217 echo "${ECHO_T}$ZIP" >&6
12218 else
12219   echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6
12221 fi
12222
12223                   install_class_files=no
12224                   build_class_files=yes
12225                 elif test "x${withval}" = xboth; then
12226                   # Extract the first word of "zip", so it can be a program name with args.
12227 set dummy zip; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_path_ZIP+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   case $ZIP in
12234   [\\/]* | ?:[\\/]*)
12235   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
12236   ;;
12237   *)
12238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243   for ac_exec_ext in '' $ac_executable_extensions; do
12244   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
12246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12247     break 2
12248   fi
12249 done
12250 done
12251
12252   ;;
12253 esac
12254 fi
12255 ZIP=$ac_cv_path_ZIP
12256
12257 if test -n "$ZIP"; then
12258   echo "$as_me:$LINENO: result: $ZIP" >&5
12259 echo "${ECHO_T}$ZIP" >&6
12260 else
12261   echo "$as_me:$LINENO: result: no" >&5
12262 echo "${ECHO_T}no" >&6
12263 fi
12264
12265                   install_class_files=yes
12266                   build_class_files=yes
12267                 elif test "x${withval}" = xflat; then
12268                   ZIP=
12269                   install_class_files=yes
12270                   build_class_files=yes
12271                 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
12272                   ZIP=
12273                   install_class_files=no
12274                   build_class_files=no
12275                 elif test "x${withval}" = xbuild; then
12276                   ZIP=
12277                   install_class_files=no
12278                   build_class_files=yes
12279                 else
12280                   { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
12281 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
12282    { (exit 1); exit 1; }; }
12283                 fi
12284
12285 else
12286
12287                 # Extract the first word of "zip", so it can be a program name with args.
12288 set dummy zip; ac_word=$2
12289 echo "$as_me:$LINENO: checking for $ac_word" >&5
12290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12291 if test "${ac_cv_path_ZIP+set}" = set; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   case $ZIP in
12295   [\\/]* | ?:[\\/]*)
12296   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
12297   ;;
12298   *)
12299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12301 do
12302   IFS=$as_save_IFS
12303   test -z "$as_dir" && as_dir=.
12304   for ac_exec_ext in '' $ac_executable_extensions; do
12305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12306     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
12307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12308     break 2
12309   fi
12310 done
12311 done
12312
12313   ;;
12314 esac
12315 fi
12316 ZIP=$ac_cv_path_ZIP
12317
12318 if test -n "$ZIP"; then
12319   echo "$as_me:$LINENO: result: $ZIP" >&5
12320 echo "${ECHO_T}$ZIP" >&6
12321 else
12322   echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6
12324 fi
12325
12326                 install_class_files=no
12327
12328 fi;
12329
12330
12331 if test "x${ZIP}" != x; then
12332   INSTALL_GLIBJ_ZIP_TRUE=
12333   INSTALL_GLIBJ_ZIP_FALSE='#'
12334 else
12335   INSTALL_GLIBJ_ZIP_TRUE='#'
12336   INSTALL_GLIBJ_ZIP_FALSE=
12337 fi
12338
12339
12340
12341 if test "x${install_class_files}" = xyes; then
12342   INSTALL_CLASS_FILES_TRUE=
12343   INSTALL_CLASS_FILES_FALSE='#'
12344 else
12345   INSTALL_CLASS_FILES_TRUE='#'
12346   INSTALL_CLASS_FILES_FALSE=
12347 fi
12348
12349
12350
12351 if test "x${build_class_files}" = xyes; then
12352   BUILD_CLASS_FILES_TRUE=
12353   BUILD_CLASS_FILES_FALSE='#'
12354 else
12355   BUILD_CLASS_FILES_TRUE='#'
12356   BUILD_CLASS_FILES_FALSE=
12357 fi
12358
12359
12360   # Check whether --enable-examples or --disable-examples was given.
12361 if test "${enable_examples+set}" = set; then
12362   enableval="$enable_examples"
12363   case "${enableval}" in
12364                   yes) EXAMPLESDIR="examples" ;;
12365                   no) EXAMPLESDIR="" ;;
12366                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
12367 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
12368    { (exit 1); exit 1; }; } ;;
12369                 esac
12370 else
12371   EXAMPLESDIR="examples"
12372 fi;
12373   if test "x${ZIP}" = x && test "x${install_class_files}" = xno; then
12374     EXAMPLESDIR=""
12375   fi
12376
12377
12378
12379
12380
12381 # Check whether --with-gjdoc or --without-gjdoc was given.
12382 if test "${with_gjdoc+set}" = set; then
12383   withval="$with_gjdoc"
12384   if test "x${withval}" = xno; then
12385                  WITH_GJDOC=no;
12386                elif test "x${withval}" = xyes -o "x{withval}" = x; then
12387                  WITH_GJDOC=yes;
12388                  # Extract the first word of "gjdoc", so it can be a program name with args.
12389 set dummy gjdoc; ac_word=$2
12390 echo "$as_me:$LINENO: checking for $ac_word" >&5
12391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12392 if test "${ac_cv_path_GJDOC+set}" = set; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395   case $GJDOC in
12396   [\\/]* | ?:[\\/]*)
12397   ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
12398   ;;
12399   *)
12400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403   IFS=$as_save_IFS
12404   test -z "$as_dir" && as_dir=.
12405   for ac_exec_ext in '' $ac_executable_extensions; do
12406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407     ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
12408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12409     break 2
12410   fi
12411 done
12412 done
12413
12414   test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
12415   ;;
12416 esac
12417 fi
12418 GJDOC=$ac_cv_path_GJDOC
12419
12420 if test -n "$GJDOC"; then
12421   echo "$as_me:$LINENO: result: $GJDOC" >&5
12422 echo "${ECHO_T}$GJDOC" >&6
12423 else
12424   echo "$as_me:$LINENO: result: no" >&5
12425 echo "${ECHO_T}no" >&6
12426 fi
12427
12428                  if test "x${GJDOC}" = xno; then
12429                    { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
12430 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
12431    { (exit 1); exit 1; }; };
12432                  fi
12433                else
12434                  WITH_GJDOC=yes
12435                  GJDOC="${withval}"
12436                  as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
12437 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
12438 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
12439 if eval "test \"\${$as_ac_File+set}\" = set"; then
12440   echo $ECHO_N "(cached) $ECHO_C" >&6
12441 else
12442   test "$cross_compiling" = yes &&
12443   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12444 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12445    { (exit 1); exit 1; }; }
12446 if test -r "${GJDOC}"; then
12447   eval "$as_ac_File=yes"
12448 else
12449   eval "$as_ac_File=no"
12450 fi
12451 fi
12452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12453 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12454 if test `eval echo '${'$as_ac_File'}'` = yes; then
12455   :
12456 else
12457   { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
12458 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
12459    { (exit 1); exit 1; }; }
12460 fi
12461
12462                fi
12463 else
12464   WITH_GJDOC=no
12465 fi;
12466
12467
12468
12469 if test "x${WITH_GJDOC}" = xyes; then
12470   CREATE_API_DOCS_TRUE=
12471   CREATE_API_DOCS_FALSE='#'
12472 else
12473   CREATE_API_DOCS_TRUE='#'
12474   CREATE_API_DOCS_FALSE=
12475 fi
12476
12477
12478
12479
12480
12481 # Check whether --with-jay or --without-jay was given.
12482 if test "${with_jay+set}" = set; then
12483   withval="$with_jay"
12484
12485     if test -d "${withval}"; then
12486       JAY_DIR_PATH="${withval}"
12487       # Extract the first word of "jay", so it can be a program name with args.
12488 set dummy jay; ac_word=$2
12489 echo "$as_me:$LINENO: checking for $ac_word" >&5
12490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12491 if test "${ac_cv_path_JAY+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   case $JAY in
12495   [\\/]* | ?:[\\/]*)
12496   ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
12497   ;;
12498   *)
12499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in ${JAY_DIR_PATH}
12501 do
12502   IFS=$as_save_IFS
12503   test -z "$as_dir" && as_dir=.
12504   for ac_exec_ext in '' $ac_executable_extensions; do
12505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12506     ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
12507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12508     break 2
12509   fi
12510 done
12511 done
12512
12513   test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
12514   ;;
12515 esac
12516 fi
12517 JAY=$ac_cv_path_JAY
12518
12519 if test -n "$JAY"; then
12520   echo "$as_me:$LINENO: result: $JAY" >&5
12521 echo "${ECHO_T}$JAY" >&6
12522 else
12523   echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6
12525 fi
12526
12527       if test "x${JAY}" = xno; then
12528         { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
12529 echo "$as_me: error: \"jay executable not found\"" >&2;}
12530    { (exit 1); exit 1; }; };
12531       fi
12532     else
12533       JAY_DIR_PATH=$(dirname "${withval}")
12534       JAY="${withval}"
12535
12536     fi
12537     JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
12538     as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
12539 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
12540 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
12541 if eval "test \"\${$as_ac_File+set}\" = set"; then
12542   echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544   test "$cross_compiling" = yes &&
12545   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12546 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12547    { (exit 1); exit 1; }; }
12548 if test -r "${JAY_SKELETON}"; then
12549   eval "$as_ac_File=yes"
12550 else
12551   eval "$as_ac_File=no"
12552 fi
12553 fi
12554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12555 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12556 if test `eval echo '${'$as_ac_File'}'` = yes; then
12557   :
12558 else
12559   { { echo "$as_me:$LINENO: error: \"Expected skeleton file in $(dirname ${withval})\"" >&5
12560 echo "$as_me: error: \"Expected skeleton file in $(dirname ${withval})\"" >&2;}
12561    { (exit 1); exit 1; }; }
12562 fi
12563
12564     JAY_FOUND=yes
12565
12566 else
12567
12568     JAY_FOUND=no
12569
12570 fi;
12571
12572
12573 if test "x${JAY_FOUND}" = xyes; then
12574   REGEN_PARSERS_TRUE=
12575   REGEN_PARSERS_FALSE='#'
12576 else
12577   REGEN_PARSERS_TRUE='#'
12578   REGEN_PARSERS_FALSE=
12579 fi
12580
12581
12582
12583 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
12584 if test "${enable_portable_native_sync+set}" = set; then
12585   enableval="$enable_portable_native_sync"
12586   case "${enableval}" in
12587                 yes)
12588
12589 cat >>confdefs.h <<\_ACEOF
12590 #define PORTABLE_NATIVE_SYNC 1
12591 _ACEOF
12592
12593                      ;;
12594                 no)  ;;
12595                 *)
12596                      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
12597 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
12598    { (exit 1); exit 1; }; }
12599                      ;;
12600               esac
12601 fi;
12602
12603                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile gnu/classpath/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/xmlj/Makefile native/target/Makefile native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh examples/Makefile"
12604
12605           ac_config_commands="$ac_config_commands gen-classlist"
12606
12607 cat >confcache <<\_ACEOF
12608 # This file is a shell script that caches the results of configure
12609 # tests run on this system so they can be shared between configure
12610 # scripts and configure runs, see configure's option --config-cache.
12611 # It is not useful on other systems.  If it contains results you don't
12612 # want to keep, you may remove or edit it.
12613 #
12614 # config.status only pays attention to the cache file if you give it
12615 # the --recheck option to rerun configure.
12616 #
12617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12619 # following values.
12620
12621 _ACEOF
12622
12623 # The following way of writing the cache mishandles newlines in values,
12624 # but we know of no workaround that is simple, portable, and efficient.
12625 # So, don't put newlines in cache variables' values.
12626 # Ultrix sh set writes to stderr and can't be redirected directly,
12627 # and sets the high bit in the cache file unless we assign to the vars.
12628 {
12629   (set) 2>&1 |
12630     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12631     *ac_space=\ *)
12632       # `set' does not quote correctly, so add quotes (double-quote
12633       # substitution turns \\\\ into \\, and sed turns \\ into \).
12634       sed -n \
12635         "s/'/'\\\\''/g;
12636           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12637       ;;
12638     *)
12639       # `set' quotes correctly as required by POSIX, so do not add quotes.
12640       sed -n \
12641         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12642       ;;
12643     esac;
12644 } |
12645   sed '
12646      t clear
12647      : clear
12648      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12649      t end
12650      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12651      : end' >>confcache
12652 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12653   if test -w $cache_file; then
12654     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12655     cat confcache >$cache_file
12656   else
12657     echo "not updating unwritable cache $cache_file"
12658   fi
12659 fi
12660 rm -f confcache
12661
12662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12663 # Let make expand exec_prefix.
12664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12665
12666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12668 # trailing colons and then remove the whole line if VPATH becomes empty
12669 # (actually we leave an empty line to preserve line numbers).
12670 if test "x$srcdir" = x.; then
12671   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12672 s/:*\$(srcdir):*/:/;
12673 s/:*\${srcdir}:*/:/;
12674 s/:*@srcdir@:*/:/;
12675 s/^\([^=]*=[     ]*\):*/\1/;
12676 s/:*$//;
12677 s/^[^=]*=[       ]*$//;
12678 }'
12679 fi
12680
12681 DEFS=-DHAVE_CONFIG_H
12682
12683 ac_libobjs=
12684 ac_ltlibobjs=
12685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12686   # 1. Remove the extension, and $U if already installed.
12687   ac_i=`echo "$ac_i" |
12688          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12689   # 2. Add them.
12690   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12691   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12692 done
12693 LIBOBJS=$ac_libobjs
12694
12695 LTLIBOBJS=$ac_ltlibobjs
12696
12697
12698 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
12699   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
12700 Usually this means the macro was only invoked conditionally." >&5
12701 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
12702 Usually this means the macro was only invoked conditionally." >&2;}
12703    { (exit 1); exit 1; }; }
12704 fi
12705 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
12706   { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
12707 Usually this means the macro was only invoked conditionally." >&5
12708 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
12709 Usually this means the macro was only invoked conditionally." >&2;}
12710    { (exit 1); exit 1; }; }
12711 fi
12712 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
12713   { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
12714 Usually this means the macro was only invoked conditionally." >&5
12715 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
12716 Usually this means the macro was only invoked conditionally." >&2;}
12717    { (exit 1); exit 1; }; }
12718 fi
12719 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
12720   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
12721 Usually this means the macro was only invoked conditionally." >&5
12722 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
12723 Usually this means the macro was only invoked conditionally." >&2;}
12724    { (exit 1); exit 1; }; }
12725 fi
12726 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
12727   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
12728 Usually this means the macro was only invoked conditionally." >&5
12729 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
12730 Usually this means the macro was only invoked conditionally." >&2;}
12731    { (exit 1); exit 1; }; }
12732 fi
12733 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
12734   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
12735 Usually this means the macro was only invoked conditionally." >&5
12736 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
12737 Usually this means the macro was only invoked conditionally." >&2;}
12738    { (exit 1); exit 1; }; }
12739 fi
12740 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12741   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12742 Usually this means the macro was only invoked conditionally." >&5
12743 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12744 Usually this means the macro was only invoked conditionally." >&2;}
12745    { (exit 1); exit 1; }; }
12746 fi
12747 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12748   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12749 Usually this means the macro was only invoked conditionally." >&5
12750 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12751 Usually this means the macro was only invoked conditionally." >&2;}
12752    { (exit 1); exit 1; }; }
12753 fi
12754 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12755   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12756 Usually this means the macro was only invoked conditionally." >&5
12757 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12758 Usually this means the macro was only invoked conditionally." >&2;}
12759    { (exit 1); exit 1; }; }
12760 fi
12761 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
12762   { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
12763 Usually this means the macro was only invoked conditionally." >&5
12764 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
12765 Usually this means the macro was only invoked conditionally." >&2;}
12766    { (exit 1); exit 1; }; }
12767 fi
12768 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
12769   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
12770 Usually this means the macro was only invoked conditionally." >&5
12771 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
12772 Usually this means the macro was only invoked conditionally." >&2;}
12773    { (exit 1); exit 1; }; }
12774 fi
12775 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
12776   { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
12777 Usually this means the macro was only invoked conditionally." >&5
12778 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
12779 Usually this means the macro was only invoked conditionally." >&2;}
12780    { (exit 1); exit 1; }; }
12781 fi
12782 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
12783   { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
12784 Usually this means the macro was only invoked conditionally." >&5
12785 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
12786 Usually this means the macro was only invoked conditionally." >&2;}
12787    { (exit 1); exit 1; }; }
12788 fi
12789 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
12790   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
12791 Usually this means the macro was only invoked conditionally." >&5
12792 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
12793 Usually this means the macro was only invoked conditionally." >&2;}
12794    { (exit 1); exit 1; }; }
12795 fi
12796 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
12797   { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
12798 Usually this means the macro was only invoked conditionally." >&5
12799 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
12800 Usually this means the macro was only invoked conditionally." >&2;}
12801    { (exit 1); exit 1; }; }
12802 fi
12803 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
12804   { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
12805 Usually this means the macro was only invoked conditionally." >&5
12806 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
12807 Usually this means the macro was only invoked conditionally." >&2;}
12808    { (exit 1); exit 1; }; }
12809 fi
12810 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
12811   { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
12812 Usually this means the macro was only invoked conditionally." >&5
12813 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
12814 Usually this means the macro was only invoked conditionally." >&2;}
12815    { (exit 1); exit 1; }; }
12816 fi
12817 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
12818   { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
12819 Usually this means the macro was only invoked conditionally." >&5
12820 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
12821 Usually this means the macro was only invoked conditionally." >&2;}
12822    { (exit 1); exit 1; }; }
12823 fi
12824 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
12825   { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
12826 Usually this means the macro was only invoked conditionally." >&5
12827 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
12828 Usually this means the macro was only invoked conditionally." >&2;}
12829    { (exit 1); exit 1; }; }
12830 fi
12831 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12832   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12833 Usually this means the macro was only invoked conditionally." >&5
12834 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12835 Usually this means the macro was only invoked conditionally." >&2;}
12836    { (exit 1); exit 1; }; }
12837 fi
12838 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
12839   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
12840 Usually this means the macro was only invoked conditionally." >&5
12841 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
12842 Usually this means the macro was only invoked conditionally." >&2;}
12843    { (exit 1); exit 1; }; }
12844 fi
12845 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
12846   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
12847 Usually this means the macro was only invoked conditionally." >&5
12848 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
12849 Usually this means the macro was only invoked conditionally." >&2;}
12850    { (exit 1); exit 1; }; }
12851 fi
12852 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
12853   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
12854 Usually this means the macro was only invoked conditionally." >&5
12855 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
12856 Usually this means the macro was only invoked conditionally." >&2;}
12857    { (exit 1); exit 1; }; }
12858 fi
12859 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
12860   { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
12861 Usually this means the macro was only invoked conditionally." >&5
12862 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
12863 Usually this means the macro was only invoked conditionally." >&2;}
12864    { (exit 1); exit 1; }; }
12865 fi
12866 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
12867   { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
12868 Usually this means the macro was only invoked conditionally." >&5
12869 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
12870 Usually this means the macro was only invoked conditionally." >&2;}
12871    { (exit 1); exit 1; }; }
12872 fi
12873
12874 : ${CONFIG_STATUS=./config.status}
12875 ac_clean_files_save=$ac_clean_files
12876 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12877 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12878 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12879 cat >$CONFIG_STATUS <<_ACEOF
12880 #! $SHELL
12881 # Generated by $as_me.
12882 # Run this file to recreate the current configuration.
12883 # Compiler output produced by configure, useful for debugging
12884 # configure, is in config.log if it exists.
12885
12886 debug=false
12887 ac_cs_recheck=false
12888 ac_cs_silent=false
12889 SHELL=\${CONFIG_SHELL-$SHELL}
12890 _ACEOF
12891
12892 cat >>$CONFIG_STATUS <<\_ACEOF
12893 ## --------------------- ##
12894 ## M4sh Initialization.  ##
12895 ## --------------------- ##
12896
12897 # Be Bourne compatible
12898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12899   emulate sh
12900   NULLCMD=:
12901   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12902   # is contrary to our usage.  Disable this feature.
12903   alias -g '${1+"$@"}'='"$@"'
12904 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12905   set -o posix
12906 fi
12907 DUALCASE=1; export DUALCASE # for MKS sh
12908
12909 # Support unset when possible.
12910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12911   as_unset=unset
12912 else
12913   as_unset=false
12914 fi
12915
12916
12917 # Work around bugs in pre-3.0 UWIN ksh.
12918 $as_unset ENV MAIL MAILPATH
12919 PS1='$ '
12920 PS2='> '
12921 PS4='+ '
12922
12923 # NLS nuisances.
12924 for as_var in \
12925   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12926   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12927   LC_TELEPHONE LC_TIME
12928 do
12929   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12930     eval $as_var=C; export $as_var
12931   else
12932     $as_unset $as_var
12933   fi
12934 done
12935
12936 # Required to use basename.
12937 if expr a : '\(a\)' >/dev/null 2>&1; then
12938   as_expr=expr
12939 else
12940   as_expr=false
12941 fi
12942
12943 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12944   as_basename=basename
12945 else
12946   as_basename=false
12947 fi
12948
12949
12950 # Name of the executable.
12951 as_me=`$as_basename "$0" ||
12952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12953          X"$0" : 'X\(//\)$' \| \
12954          X"$0" : 'X\(/\)$' \| \
12955          .     : '\(.\)' 2>/dev/null ||
12956 echo X/"$0" |
12957     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12958           /^X\/\(\/\/\)$/{ s//\1/; q; }
12959           /^X\/\(\/\).*/{ s//\1/; q; }
12960           s/.*/./; q'`
12961
12962
12963 # PATH needs CR, and LINENO needs CR and PATH.
12964 # Avoid depending upon Character Ranges.
12965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12968 as_cr_digits='0123456789'
12969 as_cr_alnum=$as_cr_Letters$as_cr_digits
12970
12971 # The user is always right.
12972 if test "${PATH_SEPARATOR+set}" != set; then
12973   echo "#! /bin/sh" >conf$$.sh
12974   echo  "exit 0"   >>conf$$.sh
12975   chmod +x conf$$.sh
12976   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12977     PATH_SEPARATOR=';'
12978   else
12979     PATH_SEPARATOR=:
12980   fi
12981   rm -f conf$$.sh
12982 fi
12983
12984
12985   as_lineno_1=$LINENO
12986   as_lineno_2=$LINENO
12987   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12988   test "x$as_lineno_1" != "x$as_lineno_2" &&
12989   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12990   # Find who we are.  Look in the path if we contain no path at all
12991   # relative or not.
12992   case $0 in
12993     *[\\/]* ) as_myself=$0 ;;
12994     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13000 done
13001
13002        ;;
13003   esac
13004   # We did not find ourselves, most probably we were run as `sh COMMAND'
13005   # in which case we are not to be found in the path.
13006   if test "x$as_myself" = x; then
13007     as_myself=$0
13008   fi
13009   if test ! -f "$as_myself"; then
13010     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13011 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13012    { (exit 1); exit 1; }; }
13013   fi
13014   case $CONFIG_SHELL in
13015   '')
13016     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13018 do
13019   IFS=$as_save_IFS
13020   test -z "$as_dir" && as_dir=.
13021   for as_base in sh bash ksh sh5; do
13022          case $as_dir in
13023          /*)
13024            if ("$as_dir/$as_base" -c '
13025   as_lineno_1=$LINENO
13026   as_lineno_2=$LINENO
13027   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13028   test "x$as_lineno_1" != "x$as_lineno_2" &&
13029   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13030              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13031              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13032              CONFIG_SHELL=$as_dir/$as_base
13033              export CONFIG_SHELL
13034              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13035            fi;;
13036          esac
13037        done
13038 done
13039 ;;
13040   esac
13041
13042   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13043   # uniformly replaced by the line number.  The first 'sed' inserts a
13044   # line-number line before each line; the second 'sed' does the real
13045   # work.  The second script uses 'N' to pair each line-number line
13046   # with the numbered line, and appends trailing '-' during
13047   # substitution so that $LINENO is not a special case at line end.
13048   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13049   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13050   sed '=' <$as_myself |
13051     sed '
13052       N
13053       s,$,-,
13054       : loop
13055       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13056       t loop
13057       s,-$,,
13058       s,^['$as_cr_digits']*\n,,
13059     ' >$as_me.lineno &&
13060   chmod +x $as_me.lineno ||
13061     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13062 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13063    { (exit 1); exit 1; }; }
13064
13065   # Don't try to exec as it changes $[0], causing all sort of problems
13066   # (the dirname of $[0] is not the place where we might find the
13067   # original and so on.  Autoconf is especially sensible to this).
13068   . ./$as_me.lineno
13069   # Exit status is that of the last command.
13070   exit
13071 }
13072
13073
13074 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13075   *c*,-n*) ECHO_N= ECHO_C='
13076 ' ECHO_T='      ' ;;
13077   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13078   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13079 esac
13080
13081 if expr a : '\(a\)' >/dev/null 2>&1; then
13082   as_expr=expr
13083 else
13084   as_expr=false
13085 fi
13086
13087 rm -f conf$$ conf$$.exe conf$$.file
13088 echo >conf$$.file
13089 if ln -s conf$$.file conf$$ 2>/dev/null; then
13090   # We could just check for DJGPP; but this test a) works b) is more generic
13091   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13092   if test -f conf$$.exe; then
13093     # Don't use ln at all; we don't have any links
13094     as_ln_s='cp -p'
13095   else
13096     as_ln_s='ln -s'
13097   fi
13098 elif ln conf$$.file conf$$ 2>/dev/null; then
13099   as_ln_s=ln
13100 else
13101   as_ln_s='cp -p'
13102 fi
13103 rm -f conf$$ conf$$.exe conf$$.file
13104
13105 if mkdir -p . 2>/dev/null; then
13106   as_mkdir_p=:
13107 else
13108   test -d ./-p && rmdir ./-p
13109   as_mkdir_p=false
13110 fi
13111
13112 as_executable_p="test -f"
13113
13114 # Sed expression to map a string onto a valid CPP name.
13115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13116
13117 # Sed expression to map a string onto a valid variable name.
13118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13119
13120
13121 # IFS
13122 # We need space, tab and new line, in precisely that order.
13123 as_nl='
13124 '
13125 IFS="   $as_nl"
13126
13127 # CDPATH.
13128 $as_unset CDPATH
13129
13130 exec 6>&1
13131
13132 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13133 # report actual input values of CONFIG_FILES etc. instead of their
13134 # values after options handling.  Logging --version etc. is OK.
13135 exec 5>>config.log
13136 {
13137   echo
13138   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13139 ## Running $as_me. ##
13140 _ASBOX
13141 } >&5
13142 cat >&5 <<_CSEOF
13143
13144 This file was extended by GNU Classpath $as_me 0.17+cvs, which was
13145 generated by GNU Autoconf 2.59.  Invocation command line was
13146
13147   CONFIG_FILES    = $CONFIG_FILES
13148   CONFIG_HEADERS  = $CONFIG_HEADERS
13149   CONFIG_LINKS    = $CONFIG_LINKS
13150   CONFIG_COMMANDS = $CONFIG_COMMANDS
13151   $ $0 $@
13152
13153 _CSEOF
13154 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13155 echo >&5
13156 _ACEOF
13157
13158 # Files that config.status was made for.
13159 if test -n "$ac_config_files"; then
13160   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13161 fi
13162
13163 if test -n "$ac_config_headers"; then
13164   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13165 fi
13166
13167 if test -n "$ac_config_links"; then
13168   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13169 fi
13170
13171 if test -n "$ac_config_commands"; then
13172   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13173 fi
13174
13175 cat >>$CONFIG_STATUS <<\_ACEOF
13176
13177 ac_cs_usage="\
13178 \`$as_me' instantiates files from templates according to the
13179 current configuration.
13180
13181 Usage: $0 [OPTIONS] [FILE]...
13182
13183   -h, --help       print this help, then exit
13184   -V, --version    print version number, then exit
13185   -q, --quiet      do not print progress messages
13186   -d, --debug      don't remove temporary files
13187       --recheck    update $as_me by reconfiguring in the same conditions
13188   --file=FILE[:TEMPLATE]
13189                    instantiate the configuration file FILE
13190   --header=FILE[:TEMPLATE]
13191                    instantiate the configuration header FILE
13192
13193 Configuration files:
13194 $config_files
13195
13196 Configuration headers:
13197 $config_headers
13198
13199 Configuration links:
13200 $config_links
13201
13202 Configuration commands:
13203 $config_commands
13204
13205 Report bugs to <bug-autoconf@gnu.org>."
13206 _ACEOF
13207
13208 cat >>$CONFIG_STATUS <<_ACEOF
13209 ac_cs_version="\\
13210 GNU Classpath config.status 0.17+cvs
13211 configured by $0, generated by GNU Autoconf 2.59,
13212   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13213
13214 Copyright (C) 2003 Free Software Foundation, Inc.
13215 This config.status script is free software; the Free Software Foundation
13216 gives unlimited permission to copy, distribute and modify it."
13217 srcdir=$srcdir
13218 INSTALL="$INSTALL"
13219 _ACEOF
13220
13221 cat >>$CONFIG_STATUS <<\_ACEOF
13222 # If no file are specified by the user, then we need to provide default
13223 # value.  By we need to know if files were specified by the user.
13224 ac_need_defaults=:
13225 while test $# != 0
13226 do
13227   case $1 in
13228   --*=*)
13229     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13230     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13231     ac_shift=:
13232     ;;
13233   -*)
13234     ac_option=$1
13235     ac_optarg=$2
13236     ac_shift=shift
13237     ;;
13238   *) # This is not an option, so the user has probably given explicit
13239      # arguments.
13240      ac_option=$1
13241      ac_need_defaults=false;;
13242   esac
13243
13244   case $ac_option in
13245   # Handling of the options.
13246 _ACEOF
13247 cat >>$CONFIG_STATUS <<\_ACEOF
13248   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13249     ac_cs_recheck=: ;;
13250   --version | --vers* | -V )
13251     echo "$ac_cs_version"; exit 0 ;;
13252   --he | --h)
13253     # Conflict between --help and --header
13254     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13255 Try \`$0 --help' for more information." >&5
13256 echo "$as_me: error: ambiguous option: $1
13257 Try \`$0 --help' for more information." >&2;}
13258    { (exit 1); exit 1; }; };;
13259   --help | --hel | -h )
13260     echo "$ac_cs_usage"; exit 0 ;;
13261   --debug | --d* | -d )
13262     debug=: ;;
13263   --file | --fil | --fi | --f )
13264     $ac_shift
13265     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13266     ac_need_defaults=false;;
13267   --header | --heade | --head | --hea )
13268     $ac_shift
13269     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13270     ac_need_defaults=false;;
13271   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13272   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13273     ac_cs_silent=: ;;
13274
13275   # This is an error.
13276   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13277 Try \`$0 --help' for more information." >&5
13278 echo "$as_me: error: unrecognized option: $1
13279 Try \`$0 --help' for more information." >&2;}
13280    { (exit 1); exit 1; }; } ;;
13281
13282   *) ac_config_targets="$ac_config_targets $1" ;;
13283
13284   esac
13285   shift
13286 done
13287
13288 ac_configure_extra_args=
13289
13290 if $ac_cs_silent; then
13291   exec 6>/dev/null
13292   ac_configure_extra_args="$ac_configure_extra_args --silent"
13293 fi
13294
13295 _ACEOF
13296 cat >>$CONFIG_STATUS <<_ACEOF
13297 if \$ac_cs_recheck; then
13298   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13299   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13300 fi
13301
13302 _ACEOF
13303
13304 cat >>$CONFIG_STATUS <<_ACEOF
13305 #
13306 # INIT-COMMANDS section.
13307 #
13308
13309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13310
13311 _ACEOF
13312
13313
13314
13315 cat >>$CONFIG_STATUS <<\_ACEOF
13316 for ac_config_target in $ac_config_targets
13317 do
13318   case "$ac_config_target" in
13319   # Handling of arguments.
13320   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13321   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13322   "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
13323   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
13324   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
13325   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
13326   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
13327   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13328   "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
13329   "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
13330   "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
13331   "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
13332   "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
13333   "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
13334   "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
13335   "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
13336   "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
13337   "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
13338   "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
13339   "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
13340   "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
13341   "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
13342   "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
13343   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
13344   "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
13345   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13346   "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
13347   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13348   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
13349   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13350   "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
13351   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13352   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13354    { (exit 1); exit 1; }; };;
13355   esac
13356 done
13357
13358 # If the user did not use the arguments to specify the items to instantiate,
13359 # then the envvar interface is used.  Set only those that are not.
13360 # We use the long form for the default assignment because of an extremely
13361 # bizarre bug on SunOS 4.1.3.
13362 if $ac_need_defaults; then
13363   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13364   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13365   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13366   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13367 fi
13368
13369 # Have a temporary directory for convenience.  Make it in the build tree
13370 # simply because there is no reason to put it here, and in addition,
13371 # creating and moving files from /tmp can sometimes cause problems.
13372 # Create a temporary directory, and hook for its removal unless debugging.
13373 $debug ||
13374 {
13375   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13376   trap '{ (exit 1); exit 1; }' 1 2 13 15
13377 }
13378
13379 # Create a (secure) tmp directory for tmp files.
13380
13381 {
13382   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13383   test -n "$tmp" && test -d "$tmp"
13384 }  ||
13385 {
13386   tmp=./confstat$$-$RANDOM
13387   (umask 077 && mkdir $tmp)
13388 } ||
13389 {
13390    echo "$me: cannot create a temporary directory in ." >&2
13391    { (exit 1); exit 1; }
13392 }
13393
13394 _ACEOF
13395
13396 cat >>$CONFIG_STATUS <<_ACEOF
13397
13398 #
13399 # CONFIG_FILES section.
13400 #
13401
13402 # No need to generate the scripts if there are no CONFIG_FILES.
13403 # This happens for instance when ./config.status config.h
13404 if test -n "\$CONFIG_FILES"; then
13405   # Protect against being on the right side of a sed subst in config.status.
13406   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13407    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13408 s,@SHELL@,$SHELL,;t t
13409 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13410 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13411 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13412 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13413 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13414 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13415 s,@exec_prefix@,$exec_prefix,;t t
13416 s,@prefix@,$prefix,;t t
13417 s,@program_transform_name@,$program_transform_name,;t t
13418 s,@bindir@,$bindir,;t t
13419 s,@sbindir@,$sbindir,;t t
13420 s,@libexecdir@,$libexecdir,;t t
13421 s,@datadir@,$datadir,;t t
13422 s,@sysconfdir@,$sysconfdir,;t t
13423 s,@sharedstatedir@,$sharedstatedir,;t t
13424 s,@localstatedir@,$localstatedir,;t t
13425 s,@libdir@,$libdir,;t t
13426 s,@includedir@,$includedir,;t t
13427 s,@oldincludedir@,$oldincludedir,;t t
13428 s,@infodir@,$infodir,;t t
13429 s,@mandir@,$mandir,;t t
13430 s,@build_alias@,$build_alias,;t t
13431 s,@host_alias@,$host_alias,;t t
13432 s,@target_alias@,$target_alias,;t t
13433 s,@DEFS@,$DEFS,;t t
13434 s,@ECHO_C@,$ECHO_C,;t t
13435 s,@ECHO_N@,$ECHO_N,;t t
13436 s,@ECHO_T@,$ECHO_T,;t t
13437 s,@LIBS@,$LIBS,;t t
13438 s,@build@,$build,;t t
13439 s,@build_cpu@,$build_cpu,;t t
13440 s,@build_vendor@,$build_vendor,;t t
13441 s,@build_os@,$build_os,;t t
13442 s,@host@,$host,;t t
13443 s,@host_cpu@,$host_cpu,;t t
13444 s,@host_vendor@,$host_vendor,;t t
13445 s,@host_os@,$host_os,;t t
13446 s,@target@,$target,;t t
13447 s,@target_cpu@,$target_cpu,;t t
13448 s,@target_vendor@,$target_vendor,;t t
13449 s,@target_os@,$target_os,;t t
13450 s,@LIBVERSION@,$LIBVERSION,;t t
13451 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
13452 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13453 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13454 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13455 s,@CYGPATH_W@,$CYGPATH_W,;t t
13456 s,@PACKAGE@,$PACKAGE,;t t
13457 s,@VERSION@,$VERSION,;t t
13458 s,@ACLOCAL@,$ACLOCAL,;t t
13459 s,@AUTOCONF@,$AUTOCONF,;t t
13460 s,@AUTOMAKE@,$AUTOMAKE,;t t
13461 s,@AUTOHEADER@,$AUTOHEADER,;t t
13462 s,@MAKEINFO@,$MAKEINFO,;t t
13463 s,@install_sh@,$install_sh,;t t
13464 s,@STRIP@,$STRIP,;t t
13465 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13466 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13467 s,@mkdir_p@,$mkdir_p,;t t
13468 s,@AWK@,$AWK,;t t
13469 s,@SET_MAKE@,$SET_MAKE,;t t
13470 s,@am__leading_dot@,$am__leading_dot,;t t
13471 s,@AMTAR@,$AMTAR,;t t
13472 s,@am__tar@,$am__tar,;t t
13473 s,@am__untar@,$am__untar,;t t
13474 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
13475 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
13476 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
13477 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
13478 s,@default_toolkit@,$default_toolkit,;t t
13479 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
13480 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
13481 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
13482 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
13483 s,@GTK_CAIRO_ENABLED@,$GTK_CAIRO_ENABLED,;t t
13484 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
13485 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
13486 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
13487 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
13488 s,@LN_S@,$LN_S,;t t
13489 s,@CC@,$CC,;t t
13490 s,@CFLAGS@,$CFLAGS,;t t
13491 s,@LDFLAGS@,$LDFLAGS,;t t
13492 s,@CPPFLAGS@,$CPPFLAGS,;t t
13493 s,@ac_ct_CC@,$ac_ct_CC,;t t
13494 s,@EXEEXT@,$EXEEXT,;t t
13495 s,@OBJEXT@,$OBJEXT,;t t
13496 s,@DEPDIR@,$DEPDIR,;t t
13497 s,@am__include@,$am__include,;t t
13498 s,@am__quote@,$am__quote,;t t
13499 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13500 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13501 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13502 s,@CCDEPMODE@,$CCDEPMODE,;t t
13503 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13504 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13505 s,@RANLIB@,$RANLIB,;t t
13506 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13507 s,@LIBTOOL@,$LIBTOOL,;t t
13508 s,@CPP@,$CPP,;t t
13509 s,@EGREP@,$EGREP,;t t
13510 s,@LIBICONV@,$LIBICONV,;t t
13511 s,@LTLIBICONV@,$LTLIBICONV,;t t
13512 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
13513 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
13514 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
13515 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13516 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
13517 s,@XML_LIBS@,$XML_LIBS,;t t
13518 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
13519 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
13520 s,@X_CFLAGS@,$X_CFLAGS,;t t
13521 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13522 s,@X_LIBS@,$X_LIBS,;t t
13523 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13524 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
13525 s,@GTK_LIBS@,$GTK_LIBS,;t t
13526 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
13527 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
13528 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
13529 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
13530 s,@USER_JAVAH@,$USER_JAVAH,;t t
13531 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
13532 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
13533 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
13534 s,@GCJ@,$GCJ,;t t
13535 s,@JIKES@,$JIKES,;t t
13536 s,@JIKESENCODING@,$JIKESENCODING,;t t
13537 s,@KJC@,$KJC,;t t
13538 s,@GCJX@,$GCJX,;t t
13539 s,@ECJ@,$ECJ,;t t
13540 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
13541 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
13542 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
13543 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
13544 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
13545 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
13546 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
13547 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
13548 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
13549 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
13550 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
13551 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
13552 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
13553 s,@vm_classes@,$vm_classes,;t t
13554 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13555 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13556 s,@MAINT@,$MAINT,;t t
13557 s,@LIBDEBUG@,$LIBDEBUG,;t t
13558 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
13559 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
13560 s,@REMOVE@,$REMOVE,;t t
13561 s,@SH@,$SH,;t t
13562 s,@MKDIR@,$MKDIR,;t t
13563 s,@CP@,$CP,;t t
13564 s,@DATE@,$DATE,;t t
13565 s,@FIND@,$FIND,;t t
13566 s,@ZIP@,$ZIP,;t t
13567 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
13568 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
13569 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
13570 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
13571 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
13572 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
13573 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
13574 s,@GJDOC@,$GJDOC,;t t
13575 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
13576 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
13577 s,@JAY@,$JAY,;t t
13578 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
13579 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
13580 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
13581 s,@LIBOBJS@,$LIBOBJS,;t t
13582 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13583 CEOF
13584
13585 _ACEOF
13586
13587   cat >>$CONFIG_STATUS <<\_ACEOF
13588   # Split the substitutions into bite-sized pieces for seds with
13589   # small command number limits, like on Digital OSF/1 and HP-UX.
13590   ac_max_sed_lines=48
13591   ac_sed_frag=1 # Number of current file.
13592   ac_beg=1 # First line for current file.
13593   ac_end=$ac_max_sed_lines # Line after last line for current file.
13594   ac_more_lines=:
13595   ac_sed_cmds=
13596   while $ac_more_lines; do
13597     if test $ac_beg -gt 1; then
13598       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13599     else
13600       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13601     fi
13602     if test ! -s $tmp/subs.frag; then
13603       ac_more_lines=false
13604     else
13605       # The purpose of the label and of the branching condition is to
13606       # speed up the sed processing (if there are no `@' at all, there
13607       # is no need to browse any of the substitutions).
13608       # These are the two extra sed commands mentioned above.
13609       (echo ':t
13610   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13611       if test -z "$ac_sed_cmds"; then
13612         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13613       else
13614         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13615       fi
13616       ac_sed_frag=`expr $ac_sed_frag + 1`
13617       ac_beg=$ac_end
13618       ac_end=`expr $ac_end + $ac_max_sed_lines`
13619     fi
13620   done
13621   if test -z "$ac_sed_cmds"; then
13622     ac_sed_cmds=cat
13623   fi
13624 fi # test -n "$CONFIG_FILES"
13625
13626 _ACEOF
13627 cat >>$CONFIG_STATUS <<\_ACEOF
13628 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13630   case $ac_file in
13631   - | *:- | *:-:* ) # input from stdin
13632         cat >$tmp/stdin
13633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13637   * )   ac_file_in=$ac_file.in ;;
13638   esac
13639
13640   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13641   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13643          X"$ac_file" : 'X\(//\)[^/]' \| \
13644          X"$ac_file" : 'X\(//\)$' \| \
13645          X"$ac_file" : 'X\(/\)' \| \
13646          .     : '\(.\)' 2>/dev/null ||
13647 echo X"$ac_file" |
13648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13649           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13650           /^X\(\/\/\)$/{ s//\1/; q; }
13651           /^X\(\/\).*/{ s//\1/; q; }
13652           s/.*/./; q'`
13653   { if $as_mkdir_p; then
13654     mkdir -p "$ac_dir"
13655   else
13656     as_dir="$ac_dir"
13657     as_dirs=
13658     while test ! -d "$as_dir"; do
13659       as_dirs="$as_dir $as_dirs"
13660       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13662          X"$as_dir" : 'X\(//\)[^/]' \| \
13663          X"$as_dir" : 'X\(//\)$' \| \
13664          X"$as_dir" : 'X\(/\)' \| \
13665          .     : '\(.\)' 2>/dev/null ||
13666 echo X"$as_dir" |
13667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13668           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13669           /^X\(\/\/\)$/{ s//\1/; q; }
13670           /^X\(\/\).*/{ s//\1/; q; }
13671           s/.*/./; q'`
13672     done
13673     test ! -n "$as_dirs" || mkdir $as_dirs
13674   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13676    { (exit 1); exit 1; }; }; }
13677
13678   ac_builddir=.
13679
13680 if test "$ac_dir" != .; then
13681   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13682   # A "../" for each directory in $ac_dir_suffix.
13683   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13684 else
13685   ac_dir_suffix= ac_top_builddir=
13686 fi
13687
13688 case $srcdir in
13689   .)  # No --srcdir option.  We are building in place.
13690     ac_srcdir=.
13691     if test -z "$ac_top_builddir"; then
13692        ac_top_srcdir=.
13693     else
13694        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13695     fi ;;
13696   [\\/]* | ?:[\\/]* )  # Absolute path.
13697     ac_srcdir=$srcdir$ac_dir_suffix;
13698     ac_top_srcdir=$srcdir ;;
13699   *) # Relative path.
13700     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13701     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13702 esac
13703
13704 # Do not use `cd foo && pwd` to compute absolute paths, because
13705 # the directories may not exist.
13706 case `pwd` in
13707 .) ac_abs_builddir="$ac_dir";;
13708 *)
13709   case "$ac_dir" in
13710   .) ac_abs_builddir=`pwd`;;
13711   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13712   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13713   esac;;
13714 esac
13715 case $ac_abs_builddir in
13716 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13717 *)
13718   case ${ac_top_builddir}. in
13719   .) ac_abs_top_builddir=$ac_abs_builddir;;
13720   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13721   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13722   esac;;
13723 esac
13724 case $ac_abs_builddir in
13725 .) ac_abs_srcdir=$ac_srcdir;;
13726 *)
13727   case $ac_srcdir in
13728   .) ac_abs_srcdir=$ac_abs_builddir;;
13729   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13730   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13731   esac;;
13732 esac
13733 case $ac_abs_builddir in
13734 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13735 *)
13736   case $ac_top_srcdir in
13737   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13738   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13739   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13740   esac;;
13741 esac
13742
13743
13744   case $INSTALL in
13745   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13746   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13747   esac
13748
13749   if test x"$ac_file" != x-; then
13750     { echo "$as_me:$LINENO: creating $ac_file" >&5
13751 echo "$as_me: creating $ac_file" >&6;}
13752     rm -f "$ac_file"
13753   fi
13754   # Let's still pretend it is `configure' which instantiates (i.e., don't
13755   # use $as_me), people would be surprised to read:
13756   #    /* config.h.  Generated by config.status.  */
13757   if test x"$ac_file" = x-; then
13758     configure_input=
13759   else
13760     configure_input="$ac_file.  "
13761   fi
13762   configure_input=$configure_input"Generated from `echo $ac_file_in |
13763                                      sed 's,.*/,,'` by configure."
13764
13765   # First look for the input files in the build tree, otherwise in the
13766   # src tree.
13767   ac_file_inputs=`IFS=:
13768     for f in $ac_file_in; do
13769       case $f in
13770       -) echo $tmp/stdin ;;
13771       [\\/$]*)
13772          # Absolute (can't be DOS-style, as IFS=:)
13773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13774 echo "$as_me: error: cannot find input file: $f" >&2;}
13775    { (exit 1); exit 1; }; }
13776          echo "$f";;
13777       *) # Relative
13778          if test -f "$f"; then
13779            # Build tree
13780            echo "$f"
13781          elif test -f "$srcdir/$f"; then
13782            # Source tree
13783            echo "$srcdir/$f"
13784          else
13785            # /dev/null tree
13786            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13787 echo "$as_me: error: cannot find input file: $f" >&2;}
13788    { (exit 1); exit 1; }; }
13789          fi;;
13790       esac
13791     done` || { (exit 1); exit 1; }
13792 _ACEOF
13793 cat >>$CONFIG_STATUS <<_ACEOF
13794   sed "$ac_vpsub
13795 $extrasub
13796 _ACEOF
13797 cat >>$CONFIG_STATUS <<\_ACEOF
13798 :t
13799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13800 s,@configure_input@,$configure_input,;t t
13801 s,@srcdir@,$ac_srcdir,;t t
13802 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13803 s,@top_srcdir@,$ac_top_srcdir,;t t
13804 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13805 s,@builddir@,$ac_builddir,;t t
13806 s,@abs_builddir@,$ac_abs_builddir,;t t
13807 s,@top_builddir@,$ac_top_builddir,;t t
13808 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13809 s,@INSTALL@,$ac_INSTALL,;t t
13810 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13811   rm -f $tmp/stdin
13812   if test x"$ac_file" != x-; then
13813     mv $tmp/out $ac_file
13814   else
13815     cat $tmp/out
13816     rm -f $tmp/out
13817   fi
13818
13819 done
13820 _ACEOF
13821 cat >>$CONFIG_STATUS <<\_ACEOF
13822
13823 #
13824 # CONFIG_HEADER section.
13825 #
13826
13827 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13828 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13829 #
13830 # ac_d sets the value in "#define NAME VALUE" lines.
13831 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13832 ac_dB='[         ].*$,\1#\2'
13833 ac_dC=' '
13834 ac_dD=',;t'
13835 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13836 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13837 ac_uB='$,\1#\2define\3'
13838 ac_uC=' '
13839 ac_uD=',;t'
13840
13841 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13842   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13843   case $ac_file in
13844   - | *:- | *:-:* ) # input from stdin
13845         cat >$tmp/stdin
13846         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13847         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13848   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13849         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13850   * )   ac_file_in=$ac_file.in ;;
13851   esac
13852
13853   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13854 echo "$as_me: creating $ac_file" >&6;}
13855
13856   # First look for the input files in the build tree, otherwise in the
13857   # src tree.
13858   ac_file_inputs=`IFS=:
13859     for f in $ac_file_in; do
13860       case $f in
13861       -) echo $tmp/stdin ;;
13862       [\\/$]*)
13863          # Absolute (can't be DOS-style, as IFS=:)
13864          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13865 echo "$as_me: error: cannot find input file: $f" >&2;}
13866    { (exit 1); exit 1; }; }
13867          # Do quote $f, to prevent DOS paths from being IFS'd.
13868          echo "$f";;
13869       *) # Relative
13870          if test -f "$f"; then
13871            # Build tree
13872            echo "$f"
13873          elif test -f "$srcdir/$f"; then
13874            # Source tree
13875            echo "$srcdir/$f"
13876          else
13877            # /dev/null tree
13878            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13879 echo "$as_me: error: cannot find input file: $f" >&2;}
13880    { (exit 1); exit 1; }; }
13881          fi;;
13882       esac
13883     done` || { (exit 1); exit 1; }
13884   # Remove the trailing spaces.
13885   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13886
13887 _ACEOF
13888
13889 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13890 # `conftest.undefs', that substitutes the proper values into
13891 # config.h.in to produce config.h.  The first handles `#define'
13892 # templates, and the second `#undef' templates.
13893 # And first: Protect against being on the right side of a sed subst in
13894 # config.status.  Protect against being in an unquoted here document
13895 # in config.status.
13896 rm -f conftest.defines conftest.undefs
13897 # Using a here document instead of a string reduces the quoting nightmare.
13898 # Putting comments in sed scripts is not portable.
13899 #
13900 # `end' is used to avoid that the second main sed command (meant for
13901 # 0-ary CPP macros) applies to n-ary macro definitions.
13902 # See the Autoconf documentation for `clear'.
13903 cat >confdef2sed.sed <<\_ACEOF
13904 s/[\\&,]/\\&/g
13905 s,[\\$`],\\&,g
13906 t clear
13907 : clear
13908 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13909 t end
13910 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13911 : end
13912 _ACEOF
13913 # If some macros were called several times there might be several times
13914 # the same #defines, which is useless.  Nevertheless, we may not want to
13915 # sort them, since we want the *last* AC-DEFINE to be honored.
13916 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13917 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13918 rm -f confdef2sed.sed
13919
13920 # This sed command replaces #undef with comments.  This is necessary, for
13921 # example, in the case of _POSIX_SOURCE, which is predefined and required
13922 # on some systems where configure will not decide to define it.
13923 cat >>conftest.undefs <<\_ACEOF
13924 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13925 _ACEOF
13926
13927 # Break up conftest.defines because some shells have a limit on the size
13928 # of here documents, and old seds have small limits too (100 cmds).
13929 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13930 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13931 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13932 echo '  :' >>$CONFIG_STATUS
13933 rm -f conftest.tail
13934 while grep . conftest.defines >/dev/null
13935 do
13936   # Write a limited-size here document to $tmp/defines.sed.
13937   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13938   # Speed up: don't consider the non `#define' lines.
13939   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13940   # Work around the forget-to-reset-the-flag bug.
13941   echo 't clr' >>$CONFIG_STATUS
13942   echo ': clr' >>$CONFIG_STATUS
13943   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13944   echo 'CEOF
13945   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13946   rm -f $tmp/in
13947   mv $tmp/out $tmp/in
13948 ' >>$CONFIG_STATUS
13949   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13950   rm -f conftest.defines
13951   mv conftest.tail conftest.defines
13952 done
13953 rm -f conftest.defines
13954 echo '  fi # grep' >>$CONFIG_STATUS
13955 echo >>$CONFIG_STATUS
13956
13957 # Break up conftest.undefs because some shells have a limit on the size
13958 # of here documents, and old seds have small limits too (100 cmds).
13959 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13960 rm -f conftest.tail
13961 while grep . conftest.undefs >/dev/null
13962 do
13963   # Write a limited-size here document to $tmp/undefs.sed.
13964   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13965   # Speed up: don't consider the non `#undef'
13966   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13967   # Work around the forget-to-reset-the-flag bug.
13968   echo 't clr' >>$CONFIG_STATUS
13969   echo ': clr' >>$CONFIG_STATUS
13970   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13971   echo 'CEOF
13972   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13973   rm -f $tmp/in
13974   mv $tmp/out $tmp/in
13975 ' >>$CONFIG_STATUS
13976   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13977   rm -f conftest.undefs
13978   mv conftest.tail conftest.undefs
13979 done
13980 rm -f conftest.undefs
13981
13982 cat >>$CONFIG_STATUS <<\_ACEOF
13983   # Let's still pretend it is `configure' which instantiates (i.e., don't
13984   # use $as_me), people would be surprised to read:
13985   #    /* config.h.  Generated by config.status.  */
13986   if test x"$ac_file" = x-; then
13987     echo "/* Generated by configure.  */" >$tmp/config.h
13988   else
13989     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13990   fi
13991   cat $tmp/in >>$tmp/config.h
13992   rm -f $tmp/in
13993   if test x"$ac_file" != x-; then
13994     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13995       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13996 echo "$as_me: $ac_file is unchanged" >&6;}
13997     else
13998       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14000          X"$ac_file" : 'X\(//\)[^/]' \| \
14001          X"$ac_file" : 'X\(//\)$' \| \
14002          X"$ac_file" : 'X\(/\)' \| \
14003          .     : '\(.\)' 2>/dev/null ||
14004 echo X"$ac_file" |
14005     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14006           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14007           /^X\(\/\/\)$/{ s//\1/; q; }
14008           /^X\(\/\).*/{ s//\1/; q; }
14009           s/.*/./; q'`
14010       { if $as_mkdir_p; then
14011     mkdir -p "$ac_dir"
14012   else
14013     as_dir="$ac_dir"
14014     as_dirs=
14015     while test ! -d "$as_dir"; do
14016       as_dirs="$as_dir $as_dirs"
14017       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14019          X"$as_dir" : 'X\(//\)[^/]' \| \
14020          X"$as_dir" : 'X\(//\)$' \| \
14021          X"$as_dir" : 'X\(/\)' \| \
14022          .     : '\(.\)' 2>/dev/null ||
14023 echo X"$as_dir" |
14024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14025           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14026           /^X\(\/\/\)$/{ s//\1/; q; }
14027           /^X\(\/\).*/{ s//\1/; q; }
14028           s/.*/./; q'`
14029     done
14030     test ! -n "$as_dirs" || mkdir $as_dirs
14031   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14032 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14033    { (exit 1); exit 1; }; }; }
14034
14035       rm -f $ac_file
14036       mv $tmp/config.h $ac_file
14037     fi
14038   else
14039     cat $tmp/config.h
14040     rm -f $tmp/config.h
14041   fi
14042 # Compute $ac_file's index in $config_headers.
14043 _am_stamp_count=1
14044 for _am_header in $config_headers :; do
14045   case $_am_header in
14046     $ac_file | $ac_file:* )
14047       break ;;
14048     * )
14049       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14050   esac
14051 done
14052 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14053 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14054          X$ac_file : 'X\(//\)[^/]' \| \
14055          X$ac_file : 'X\(//\)$' \| \
14056          X$ac_file : 'X\(/\)' \| \
14057          .     : '\(.\)' 2>/dev/null ||
14058 echo X$ac_file |
14059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14061           /^X\(\/\/\)$/{ s//\1/; q; }
14062           /^X\(\/\).*/{ s//\1/; q; }
14063           s/.*/./; q'`/stamp-h$_am_stamp_count
14064 done
14065 _ACEOF
14066 cat >>$CONFIG_STATUS <<\_ACEOF
14067
14068 #
14069 # CONFIG_LINKS section.
14070 #
14071
14072 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14073   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14074   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14075
14076   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14077 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14078
14079   if test ! -r $srcdir/$ac_source; then
14080     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14081 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14082    { (exit 1); exit 1; }; }
14083   fi
14084   rm -f $ac_dest
14085
14086   # Make relative symlinks.
14087   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14088 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14089          X"$ac_dest" : 'X\(//\)[^/]' \| \
14090          X"$ac_dest" : 'X\(//\)$' \| \
14091          X"$ac_dest" : 'X\(/\)' \| \
14092          .     : '\(.\)' 2>/dev/null ||
14093 echo X"$ac_dest" |
14094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14095           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14096           /^X\(\/\/\)$/{ s//\1/; q; }
14097           /^X\(\/\).*/{ s//\1/; q; }
14098           s/.*/./; q'`
14099   { if $as_mkdir_p; then
14100     mkdir -p "$ac_dest_dir"
14101   else
14102     as_dir="$ac_dest_dir"
14103     as_dirs=
14104     while test ! -d "$as_dir"; do
14105       as_dirs="$as_dir $as_dirs"
14106       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14108          X"$as_dir" : 'X\(//\)[^/]' \| \
14109          X"$as_dir" : 'X\(//\)$' \| \
14110          X"$as_dir" : 'X\(/\)' \| \
14111          .     : '\(.\)' 2>/dev/null ||
14112 echo X"$as_dir" |
14113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14114           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14115           /^X\(\/\/\)$/{ s//\1/; q; }
14116           /^X\(\/\).*/{ s//\1/; q; }
14117           s/.*/./; q'`
14118     done
14119     test ! -n "$as_dirs" || mkdir $as_dirs
14120   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14121 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14122    { (exit 1); exit 1; }; }; }
14123
14124   ac_builddir=.
14125
14126 if test "$ac_dest_dir" != .; then
14127   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14128   # A "../" for each directory in $ac_dir_suffix.
14129   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14130 else
14131   ac_dir_suffix= ac_top_builddir=
14132 fi
14133
14134 case $srcdir in
14135   .)  # No --srcdir option.  We are building in place.
14136     ac_srcdir=.
14137     if test -z "$ac_top_builddir"; then
14138        ac_top_srcdir=.
14139     else
14140        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14141     fi ;;
14142   [\\/]* | ?:[\\/]* )  # Absolute path.
14143     ac_srcdir=$srcdir$ac_dir_suffix;
14144     ac_top_srcdir=$srcdir ;;
14145   *) # Relative path.
14146     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14147     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14148 esac
14149
14150 # Do not use `cd foo && pwd` to compute absolute paths, because
14151 # the directories may not exist.
14152 case `pwd` in
14153 .) ac_abs_builddir="$ac_dest_dir";;
14154 *)
14155   case "$ac_dest_dir" in
14156   .) ac_abs_builddir=`pwd`;;
14157   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14158   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14159   esac;;
14160 esac
14161 case $ac_abs_builddir in
14162 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14163 *)
14164   case ${ac_top_builddir}. in
14165   .) ac_abs_top_builddir=$ac_abs_builddir;;
14166   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14167   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14168   esac;;
14169 esac
14170 case $ac_abs_builddir in
14171 .) ac_abs_srcdir=$ac_srcdir;;
14172 *)
14173   case $ac_srcdir in
14174   .) ac_abs_srcdir=$ac_abs_builddir;;
14175   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14176   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14177   esac;;
14178 esac
14179 case $ac_abs_builddir in
14180 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14181 *)
14182   case $ac_top_srcdir in
14183   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14184   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14185   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14186   esac;;
14187 esac
14188
14189
14190   case $srcdir in
14191   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14192       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14193   esac
14194
14195   # Try a symlink, then a hard link, then a copy.
14196   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14197     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14198     cp -p $srcdir/$ac_source $ac_dest ||
14199     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14200 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14201    { (exit 1); exit 1; }; }
14202 done
14203 _ACEOF
14204 cat >>$CONFIG_STATUS <<\_ACEOF
14205
14206 #
14207 # CONFIG_COMMANDS section.
14208 #
14209 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14210   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14211   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14212   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14213 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14214          X"$ac_dest" : 'X\(//\)[^/]' \| \
14215          X"$ac_dest" : 'X\(//\)$' \| \
14216          X"$ac_dest" : 'X\(/\)' \| \
14217          .     : '\(.\)' 2>/dev/null ||
14218 echo X"$ac_dest" |
14219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14220           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14221           /^X\(\/\/\)$/{ s//\1/; q; }
14222           /^X\(\/\).*/{ s//\1/; q; }
14223           s/.*/./; q'`
14224   { if $as_mkdir_p; then
14225     mkdir -p "$ac_dir"
14226   else
14227     as_dir="$ac_dir"
14228     as_dirs=
14229     while test ! -d "$as_dir"; do
14230       as_dirs="$as_dir $as_dirs"
14231       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14233          X"$as_dir" : 'X\(//\)[^/]' \| \
14234          X"$as_dir" : 'X\(//\)$' \| \
14235          X"$as_dir" : 'X\(/\)' \| \
14236          .     : '\(.\)' 2>/dev/null ||
14237 echo X"$as_dir" |
14238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14239           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14240           /^X\(\/\/\)$/{ s//\1/; q; }
14241           /^X\(\/\).*/{ s//\1/; q; }
14242           s/.*/./; q'`
14243     done
14244     test ! -n "$as_dirs" || mkdir $as_dirs
14245   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14246 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14247    { (exit 1); exit 1; }; }; }
14248
14249   ac_builddir=.
14250
14251 if test "$ac_dir" != .; then
14252   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14253   # A "../" for each directory in $ac_dir_suffix.
14254   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14255 else
14256   ac_dir_suffix= ac_top_builddir=
14257 fi
14258
14259 case $srcdir in
14260   .)  # No --srcdir option.  We are building in place.
14261     ac_srcdir=.
14262     if test -z "$ac_top_builddir"; then
14263        ac_top_srcdir=.
14264     else
14265        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14266     fi ;;
14267   [\\/]* | ?:[\\/]* )  # Absolute path.
14268     ac_srcdir=$srcdir$ac_dir_suffix;
14269     ac_top_srcdir=$srcdir ;;
14270   *) # Relative path.
14271     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14272     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14273 esac
14274
14275 # Do not use `cd foo && pwd` to compute absolute paths, because
14276 # the directories may not exist.
14277 case `pwd` in
14278 .) ac_abs_builddir="$ac_dir";;
14279 *)
14280   case "$ac_dir" in
14281   .) ac_abs_builddir=`pwd`;;
14282   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14283   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14284   esac;;
14285 esac
14286 case $ac_abs_builddir in
14287 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14288 *)
14289   case ${ac_top_builddir}. in
14290   .) ac_abs_top_builddir=$ac_abs_builddir;;
14291   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14292   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14293   esac;;
14294 esac
14295 case $ac_abs_builddir in
14296 .) ac_abs_srcdir=$ac_srcdir;;
14297 *)
14298   case $ac_srcdir in
14299   .) ac_abs_srcdir=$ac_abs_builddir;;
14300   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14301   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14302   esac;;
14303 esac
14304 case $ac_abs_builddir in
14305 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14306 *)
14307   case $ac_top_srcdir in
14308   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14309   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14310   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14311   esac;;
14312 esac
14313
14314
14315   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14316 echo "$as_me: executing $ac_dest commands" >&6;}
14317   case $ac_dest in
14318     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14319   # Strip MF so we end up with the name of the file.
14320   mf=`echo "$mf" | sed -e 's/:.*$//'`
14321   # Check whether this is an Automake generated Makefile or not.
14322   # We used to match only the files named `Makefile.in', but
14323   # some people rename them; so instead we look at the file content.
14324   # Grep'ing the first line is not enough: some people post-process
14325   # each Makefile.in and add a new line on top of each file to say so.
14326   # So let's grep whole file.
14327   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14328     dirpart=`(dirname "$mf") 2>/dev/null ||
14329 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14330          X"$mf" : 'X\(//\)[^/]' \| \
14331          X"$mf" : 'X\(//\)$' \| \
14332          X"$mf" : 'X\(/\)' \| \
14333          .     : '\(.\)' 2>/dev/null ||
14334 echo X"$mf" |
14335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14336           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14337           /^X\(\/\/\)$/{ s//\1/; q; }
14338           /^X\(\/\).*/{ s//\1/; q; }
14339           s/.*/./; q'`
14340   else
14341     continue
14342   fi
14343   # Extract the definition of DEPDIR, am__include, and am__quote
14344   # from the Makefile without running `make'.
14345   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14346   test -z "$DEPDIR" && continue
14347   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14348   test -z "am__include" && continue
14349   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14350   # When using ansi2knr, U may be empty or an underscore; expand it
14351   U=`sed -n 's/^U = //p' < "$mf"`
14352   # Find all dependency output files, they are included files with
14353   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14354   # simplest approach to changing $(DEPDIR) to its actual value in the
14355   # expansion.
14356   for file in `sed -n "
14357     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14358        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14359     # Make sure the directory exists.
14360     test -f "$dirpart/$file" && continue
14361     fdir=`(dirname "$file") 2>/dev/null ||
14362 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14363          X"$file" : 'X\(//\)[^/]' \| \
14364          X"$file" : 'X\(//\)$' \| \
14365          X"$file" : 'X\(/\)' \| \
14366          .     : '\(.\)' 2>/dev/null ||
14367 echo X"$file" |
14368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14370           /^X\(\/\/\)$/{ s//\1/; q; }
14371           /^X\(\/\).*/{ s//\1/; q; }
14372           s/.*/./; q'`
14373     { if $as_mkdir_p; then
14374     mkdir -p $dirpart/$fdir
14375   else
14376     as_dir=$dirpart/$fdir
14377     as_dirs=
14378     while test ! -d "$as_dir"; do
14379       as_dirs="$as_dir $as_dirs"
14380       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14382          X"$as_dir" : 'X\(//\)[^/]' \| \
14383          X"$as_dir" : 'X\(//\)$' \| \
14384          X"$as_dir" : 'X\(/\)' \| \
14385          .     : '\(.\)' 2>/dev/null ||
14386 echo X"$as_dir" |
14387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14388           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14389           /^X\(\/\/\)$/{ s//\1/; q; }
14390           /^X\(\/\).*/{ s//\1/; q; }
14391           s/.*/./; q'`
14392     done
14393     test ! -n "$as_dirs" || mkdir $as_dirs
14394   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14395 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14396    { (exit 1); exit 1; }; }; }
14397
14398     # echo "creating $dirpart/$file"
14399     echo '# dummy' > "$dirpart/$file"
14400   done
14401 done
14402  ;;
14403     gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
14404   esac
14405 done
14406 _ACEOF
14407
14408 cat >>$CONFIG_STATUS <<\_ACEOF
14409
14410 { (exit 0); exit 0; }
14411 _ACEOF
14412 chmod +x $CONFIG_STATUS
14413 ac_clean_files=$ac_clean_files_save
14414
14415
14416 # configure is writing to config.log, and then calls config.status.
14417 # config.status does its own redirection, appending to config.log.
14418 # Unfortunately, on DOS this fails, as config.log is still kept open
14419 # by configure, so config.status won't be able to write to it; its
14420 # output is simply discarded.  So we exec the FD to /dev/null,
14421 # effectively closing config.log, so it can be properly (re)opened and
14422 # appended to by config.status.  When coming back to configure, we
14423 # need to make the FD available again.
14424 if test "$no_create" != yes; then
14425   ac_cs_success=:
14426   ac_config_status_args=
14427   test "$silent" = yes &&
14428     ac_config_status_args="$ac_config_status_args --quiet"
14429   exec 5>/dev/null
14430   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14431   exec 5>>config.log
14432   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14433   # would make configure fail if this is the last instruction.
14434   $ac_cs_success || { (exit 1); exit 1; }
14435 fi
14436