2006-03-22 Thomas Koenig <Thomas.Koenig@onlien.de>
[official-gcc.git] / libjava / classpath / configure
blobeef7a68ec46bdd4b5acb2b55e5db36b9f79aec8c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.90.
5 # Report bugs to <classpath@gnu.org>.
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 ## --------------------- ##
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
24 DUALCASE=1; export DUALCASE # for MKS sh
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
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
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
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
51 done
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
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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'`
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
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=:
98 rm -f conf$$.sh
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
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
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
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; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
156 esac
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 '
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; }; }
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
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
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
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'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
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
227 as_executable_p="test -f"
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'"
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'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
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`
251 exec 6>&1
254 # Initializations.
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}
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}
269 # Identity of this package.
270 PACKAGE_NAME='GNU Classpath'
271 PACKAGE_TARNAME='classpath'
272 PACKAGE_VERSION='0.90'
273 PACKAGE_STRING='GNU Classpath 0.90'
274 PACKAGE_BUGREPORT='classpath@gnu.org'
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"
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_COLLECTIONS_TRUE CREATE_COLLECTIONS_FALSE 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 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 CPP EGREP CREATE_ALSA_LIBRARIES_TRUE CREATE_ALSA_LIBRARIES_FALSE CREATE_DSSI_LIBRARIES_TRUE CREATE_DSSI_LIBRARIES_FALSE CREATE_GTK_PEER_LIBRARIES_TRUE CREATE_GTK_PEER_LIBRARIES_FALSE GTK_CAIRO_ENABLED GTK_CAIRO_TRUE GTK_CAIRO_FALSE CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE nativelibdir glibjdir CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP PERL COLLECTIONS_PREFIX 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 FREETYPE2_CFLAGS FREETYPE2_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS QT_CFLAGS QT_LIBS MOC USER_JAVAH USER_SPECIFIED_JAVAH_TRUE USER_SPECIFIED_JAVAH_FALSE CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING JIKESWARNINGS 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 MKDIR CP DATE FIND ZIP FASTJAR 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=''
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
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'
356 ac_prev=
357 for ac_option
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
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
370 case $ac_option in
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
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 ;;
389 --config-cache | -C)
390 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
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 ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
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 ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
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 ;;
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 ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
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 ;;
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 ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
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 ;;
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 ;;
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
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 ;;
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 ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
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'" ;;
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" ;;
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
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 ;;
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 ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
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 ;;
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}
652 esac
653 done
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; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
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
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
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
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
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
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
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=..
728 else
729 ac_srcdir_defaulted=no
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; }; }
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 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
790 # Report the --help message.
792 if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796 \`configure' configures GNU Classpath 0.90 to adapt to many kinds of systems.
798 Usage: $0 [OPTION]... [VAR=VALUE]...
800 To assign environment variables (e.g., CC, CFLAGS...), specify them as
801 VAR=VALUE. See below for descriptions of some of the useful variables.
803 Defaults for the options are specified in brackets.
805 Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816 _ACEOF
818 cat <<_ACEOF
819 Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
825 By default, \`make install' will install all the files in
826 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828 for instance \`--prefix=\$HOME'.
830 For better control, use the options below.
832 Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845 _ACEOF
847 cat <<\_ACEOF
849 Program names:
850 --program-prefix=PREFIX prepend PREFIX to installed program names
851 --program-suffix=SUFFIX append SUFFIX to installed program names
852 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
854 X features:
855 --x-includes=DIR X include files are in DIR
856 --x-libraries=DIR X library files are in DIR
858 System types:
859 --build=BUILD configure for building on BUILD [guessed]
860 --host=HOST cross-compile to build programs to run on HOST [BUILD]
861 --target=TARGET configure for building compilers for TARGET [HOST]
862 _ACEOF
865 if test -n "$ac_init_help"; then
866 case $ac_init_help in
867 short | recursive ) echo "Configuration of GNU Classpath 0.90:";;
868 esac
869 cat <<\_ACEOF
871 Optional Features:
872 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
873 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
874 --enable-collections create collections.jar default=no
875 --enable-jni compile JNI source default=yes
876 --enable-core-jni compile JNI sources for core default=yes
877 --enable-Werror whether to compile C code with -Werror which turns
878 any compiler warning into a compilation failure
879 default=no
880 --enable-default-toolkit
881 fully qualified class name of default AWT toolkit
882 --enable-xmlj compile native libxml/xslt library default=no
883 --disable-alsa compile ALSA providers (enable by --enable-alsa)
884 default=yes
885 --disable-dependency-tracking speeds up one-time build
886 --enable-dependency-tracking do not reject slow dependency extractors
887 --disable-dssi compile DSSI providers (enable by --enable-dssi)
888 default=yes
889 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
890 default=yes
892 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
893 default=no
894 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
895 default=no
896 --enable-regen-headers automatically regenerate JNI headers default=no
897 --enable-static=PKGS build static libraries default=no
898 --enable-shared=PKGS build shared libraries default=yes
899 --enable-fast-install=PKGS optimize for fast installation default=yes
900 --disable-libtool-lock avoid locking (might break parallel builds)
901 --disable-rpath do not hardcode runtime library paths
902 --enable-maintainer-mode enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-debug enable runtime debugging code
905 --enable-load-library enable to use JNI native methods default=yes
906 --enable-java-lang-system-explicit-initialization
907 will the VM explicitly invoke java.lang.System's
908 static initialization methods default=no
909 --enable-examples enable build of the examples default=yes
910 --enable-portable-native-sync
911 synchronize VM threads portably
913 Optional Packages:
914 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
915 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
916 --with-native-libdir sets the installation directore for native libraries
917 default='${libdir}/${PACKAGE}'
918 --with-glibj-dir sets the installation directory for glibj.zip
919 default='${libdir}/${PACKAGE}'
920 --with-gnu-ld assume the C compiler uses GNU ld default=no
921 --with-pic try to use only PIC/non-PIC objects default=use both
922 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
923 --without-libiconv-prefix don't search for libiconv in includedir and libdir
924 --with-x use the X Window System
925 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
926 systems use pkg-config.
927 --with-javah specify path or name of a javah-like program
928 --with-gcj bytecode compilation with gcj
929 --with-jikes bytecode compilation with jikes
930 --with-kjc bytecode compilation with kjc
931 --with-gcjx bytecode compilation with gcjx
932 --with-ecj bytecode compilation with ecj
933 --with-classpath specify path to a classes.zip like file
934 --with-vm-classes specify path to VM override source files
935 --with-fastjar=PATH define to use a fastjar style tool
936 --with-glibj define what to install (zip|flat|both|none|build)
937 [default=zip]
938 --with-gjdoc generate documentation using gjdoc (default is NO)
939 --with-jay Regenerate the parsers with jay must be given the
940 path to the jay executable
942 Some influential environment variables:
943 CC C compiler command
944 CFLAGS C compiler flags
945 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
946 nonstandard directory <lib dir>
947 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
948 headers in a nonstandard directory <include dir>
949 CPP C preprocessor
950 CXX C++ compiler command
951 CXXFLAGS C++ compiler flags
952 CXXCPP C++ preprocessor
954 Use these variables to override the choices made by `configure' or to help
955 it to find libraries and programs with nonstandard names/locations.
957 Report bugs to <classpath@gnu.org>.
958 _ACEOF
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
997 case "$ac_dir" in
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001 esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010 esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1015 case $ac_srcdir in
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019 esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 esac;;
1029 esac
1031 cd $ac_dir
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1034 echo
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1037 echo
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1041 echo
1042 $ac_configure --help
1043 else
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046 cd $ac_popdir
1047 done
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052 cat <<\_ACEOF
1053 GNU Classpath configure 0.90
1054 generated by GNU Autoconf 2.59
1056 Copyright (C) 2003 Free Software Foundation, Inc.
1057 This configure script is free software; the Free Software Foundation
1058 gives unlimited permission to copy, distribute and modify it.
1059 _ACEOF
1060 exit 0
1062 exec 5>config.log
1063 cat >&5 <<_ACEOF
1064 This file contains any messages produced by compilers while
1065 running configure, to aid debugging if configure makes a mistake.
1067 It was created by GNU Classpath $as_me 0.90, which was
1068 generated by GNU Autoconf 2.59. Invocation command line was
1070 $ $0 $@
1072 _ACEOF
1074 cat <<_ASUNAME
1075 ## --------- ##
1076 ## Platform. ##
1077 ## --------- ##
1079 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1080 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1081 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1082 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1083 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1086 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1088 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1089 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1090 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1091 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1092 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1093 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1094 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1096 _ASUNAME
1098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1099 for as_dir in $PATH
1101 IFS=$as_save_IFS
1102 test -z "$as_dir" && as_dir=.
1103 echo "PATH: $as_dir"
1104 done
1106 } >&5
1108 cat >&5 <<_ACEOF
1111 ## ----------- ##
1112 ## Core tests. ##
1113 ## ----------- ##
1115 _ACEOF
1118 # Keep a trace of the command line.
1119 # Strip out --no-create and --no-recursion so they do not pile up.
1120 # Strip out --silent because we don't want to record it for future runs.
1121 # Also quote any args containing shell meta-characters.
1122 # Make two passes to allow for proper duplicate-argument suppression.
1123 ac_configure_args=
1124 ac_configure_args0=
1125 ac_configure_args1=
1126 ac_sep=
1127 ac_must_keep_next=false
1128 for ac_pass in 1 2
1130 for ac_arg
1132 case $ac_arg in
1133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 continue ;;
1137 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1138 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1139 esac
1140 case $ac_pass in
1141 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1144 if test $ac_must_keep_next = true; then
1145 ac_must_keep_next=false # Got value, back to normal.
1146 else
1147 case $ac_arg in
1148 *=* | --config-cache | -C | -disable-* | --disable-* \
1149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1151 | -with-* | --with-* | -without-* | --without-* | --x)
1152 case "$ac_configure_args0 " in
1153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1154 esac
1156 -* ) ac_must_keep_next=true ;;
1157 esac
1159 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1160 # Get rid of the leading space.
1161 ac_sep=" "
1163 esac
1164 done
1165 done
1166 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1167 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169 # When interrupted or exit'd, cleanup temporary files, and complete
1170 # config.log. We remove comments because anyway the quotes in there
1171 # would cause problems or look ugly.
1172 # WARNING: Be sure not to use single quotes in there, as some shells,
1173 # such as our DU 5.0 friend, will then `close' the trap.
1174 trap 'exit_status=$?
1175 # Save into config.log some information that might help in debugging.
1177 echo
1179 cat <<\_ASBOX
1180 ## ---------------- ##
1181 ## Cache variables. ##
1182 ## ---------------- ##
1183 _ASBOX
1184 echo
1185 # The following way of writing the cache mishandles newlines in values,
1187 (set) 2>&1 |
1188 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1189 *ac_space=\ *)
1190 sed -n \
1191 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195 sed -n \
1196 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198 esac;
1200 echo
1202 cat <<\_ASBOX
1203 ## ----------------- ##
1204 ## Output variables. ##
1205 ## ----------------- ##
1206 _ASBOX
1207 echo
1208 for ac_var in $ac_subst_vars
1210 eval ac_val=$`echo $ac_var`
1211 echo "$ac_var='"'"'$ac_val'"'"'"
1212 done | sort
1213 echo
1215 if test -n "$ac_subst_files"; then
1216 cat <<\_ASBOX
1217 ## ------------- ##
1218 ## Output files. ##
1219 ## ------------- ##
1220 _ASBOX
1221 echo
1222 for ac_var in $ac_subst_files
1224 eval ac_val=$`echo $ac_var`
1225 echo "$ac_var='"'"'$ac_val'"'"'"
1226 done | sort
1227 echo
1230 if test -s confdefs.h; then
1231 cat <<\_ASBOX
1232 ## ----------- ##
1233 ## confdefs.h. ##
1234 ## ----------- ##
1235 _ASBOX
1236 echo
1237 sed "/^$/d" confdefs.h | sort
1238 echo
1240 test "$ac_signal" != 0 &&
1241 echo "$as_me: caught signal $ac_signal"
1242 echo "$as_me: exit $exit_status"
1243 } >&5
1244 rm -f core *.core &&
1245 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1246 exit $exit_status
1248 for ac_signal in 1 2 13 15; do
1249 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1250 done
1251 ac_signal=0
1253 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1254 rm -rf conftest* confdefs.h
1255 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1256 echo >confdefs.h
1258 # Predefined preprocessor variables.
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_NAME "$PACKAGE_NAME"
1262 _ACEOF
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1267 _ACEOF
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1272 _ACEOF
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_STRING "$PACKAGE_STRING"
1277 _ACEOF
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1282 _ACEOF
1285 # Let the site file select an alternate cache file if it wants to.
1286 # Prefer explicitly selected file to automatically selected ones.
1287 if test -z "$CONFIG_SITE"; then
1288 if test "x$prefix" != xNONE; then
1289 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290 else
1291 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294 for ac_site_file in $CONFIG_SITE; do
1295 if test -r "$ac_site_file"; then
1296 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1297 echo "$as_me: loading site script $ac_site_file" >&6;}
1298 sed 's/^/| /' "$ac_site_file" >&5
1299 . "$ac_site_file"
1301 done
1303 if test -r "$cache_file"; then
1304 # Some versions of bash will fail to source /dev/null (special
1305 # files actually), so we avoid doing that.
1306 if test -f "$cache_file"; then
1307 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1308 echo "$as_me: loading cache $cache_file" >&6;}
1309 case $cache_file in
1310 [\\/]* | ?:[\\/]* ) . $cache_file;;
1311 *) . ./$cache_file;;
1312 esac
1314 else
1315 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1316 echo "$as_me: creating cache $cache_file" >&6;}
1317 >$cache_file
1320 # Check that the precious variables saved in the cache have kept the same
1321 # value.
1322 ac_cache_corrupted=false
1323 for ac_var in `(set) 2>&1 |
1324 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1326 eval ac_new_set=\$ac_env_${ac_var}_set
1327 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1328 eval ac_new_val="\$ac_env_${ac_var}_value"
1329 case $ac_old_set,$ac_new_set in
1330 set,)
1331 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1332 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1333 ac_cache_corrupted=: ;;
1334 ,set)
1335 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1336 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1337 ac_cache_corrupted=: ;;
1338 ,);;
1340 if test "x$ac_old_val" != "x$ac_new_val"; then
1341 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1342 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1343 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1344 echo "$as_me: former value: $ac_old_val" >&2;}
1345 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1346 echo "$as_me: current value: $ac_new_val" >&2;}
1347 ac_cache_corrupted=:
1348 fi;;
1349 esac
1350 # Pass precious variables to config.status.
1351 if test "$ac_new_set" = set; then
1352 case $ac_new_val in
1353 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1354 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1355 *) ac_arg=$ac_var=$ac_new_val ;;
1356 esac
1357 case " $ac_configure_args " in
1358 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1359 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1360 esac
1362 done
1363 if $ac_cache_corrupted; then
1364 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1365 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1366 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1367 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1368 { (exit 1); exit 1; }; }
1371 ac_ext=c
1372 ac_cpp='$CPP $CPPFLAGS'
1373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1405 ac_aux_dir=
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407 if test -f $ac_dir/install-sh; then
1408 ac_aux_dir=$ac_dir
1409 ac_install_sh="$ac_aux_dir/install-sh -c"
1410 break
1411 elif test -f $ac_dir/install.sh; then
1412 ac_aux_dir=$ac_dir
1413 ac_install_sh="$ac_aux_dir/install.sh -c"
1414 break
1415 elif test -f $ac_dir/shtool; then
1416 ac_aux_dir=$ac_dir
1417 ac_install_sh="$ac_aux_dir/shtool install -c"
1418 break
1420 done
1421 if test -z "$ac_aux_dir"; then
1422 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424 { (exit 1); exit 1; }; }
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441 ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443 ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447 { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1456 build=$ac_cv_build
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467 ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469 ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1478 host=$ac_cv_host
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489 ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491 ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509 test "$program_prefix$program_suffix$program_transform_name" = \
1510 NONENONEs,x,x, &&
1511 program_prefix=${target_alias}-
1513 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1515 LIBVERSION="0:0:0"
1517 case "$host_os" in
1518 darwin*)
1519 cp_module=""
1522 cp_module="-module"
1524 esac
1526 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1530 am__api_version="1.9"
1531 # Find a good install program. We prefer a C program (faster),
1532 # so one script is as good as another. But avoid the broken or
1533 # incompatible versions:
1534 # SysV /etc/install, /usr/sbin/install
1535 # SunOS /usr/etc/install
1536 # IRIX /sbin/install
1537 # AIX /bin/install
1538 # AmigaOS /C/install, which installs bootblocks on floppy discs
1539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1542 # OS/2's system install, which has a completely different semantic
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1545 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1546 if test -z "$INSTALL"; then
1547 if test "${ac_cv_path_install+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 # Account for people who put trailing slashes in PATH elements.
1556 case $as_dir/ in
1557 ./ | .// | /cC/* | \
1558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1559 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1560 /usr/ucb/* ) ;;
1562 # OSF1 and SCO ODT 3.0 have their own names for install.
1563 # Don't use installbsd from OSF since it installs stuff as root
1564 # by default.
1565 for ac_prog in ginstall scoinst install; do
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1568 if test $ac_prog = install &&
1569 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570 # AIX install. It has an incompatible calling convention.
1572 elif test $ac_prog = install &&
1573 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574 # program-specific install script used by HP pwplus--don't use.
1576 else
1577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1578 break 3
1581 done
1582 done
1584 esac
1585 done
1589 if test "${ac_cv_path_install+set}" = set; then
1590 INSTALL=$ac_cv_path_install
1591 else
1592 # As a last resort, use the slow shell script. We don't cache a
1593 # path for INSTALL within a source directory, because that will
1594 # break other packages using the cache if that directory is
1595 # removed, or if the path is relative.
1596 INSTALL=$ac_install_sh
1599 echo "$as_me:$LINENO: result: $INSTALL" >&5
1600 echo "${ECHO_T}$INSTALL" >&6
1602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603 # It thinks the first close brace ends the variable substitution.
1604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1610 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1611 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1612 # Just in case
1613 sleep 1
1614 echo timestamp > conftest.file
1615 # Do `set' in a subshell so we don't clobber the current shell's
1616 # arguments. Must try -L first in case configure is actually a
1617 # symlink; some systems play weird games with the mod time of symlinks
1618 # (eg FreeBSD returns the mod time of the symlink's containing
1619 # directory).
1620 if (
1621 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1622 if test "$*" = "X"; then
1623 # -L didn't work.
1624 set X `ls -t $srcdir/configure conftest.file`
1626 rm -f conftest.file
1627 if test "$*" != "X $srcdir/configure conftest.file" \
1628 && test "$*" != "X conftest.file $srcdir/configure"; then
1630 # If neither matched, then we have a broken ls. This can happen
1631 # if, for instance, CONFIG_SHELL is bash and it inherits a
1632 # broken ls alias from the environment. This has actually
1633 # happened. Such a system could not be considered "sane".
1634 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1635 alias in your environment" >&5
1636 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1637 alias in your environment" >&2;}
1638 { (exit 1); exit 1; }; }
1641 test "$2" = conftest.file
1643 then
1644 # Ok.
1646 else
1647 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1648 Check your system clock" >&5
1649 echo "$as_me: error: newly created file is older than distributed files!
1650 Check your system clock" >&2;}
1651 { (exit 1); exit 1; }; }
1653 echo "$as_me:$LINENO: result: yes" >&5
1654 echo "${ECHO_T}yes" >&6
1655 test "$program_prefix" != NONE &&
1656 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1657 # Use a double $ so make ignores it.
1658 test "$program_suffix" != NONE &&
1659 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1660 # Double any \ or $. echo might interpret backslashes.
1661 # By default was `s,x,x', remove it if useless.
1662 cat <<\_ACEOF >conftest.sed
1663 s/[\\$]/&&/g;s/;s,x,x,$//
1664 _ACEOF
1665 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1666 rm conftest.sed
1668 # expand $ac_aux_dir to an absolute path
1669 am_aux_dir=`cd $ac_aux_dir && pwd`
1671 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1672 # Use eval to expand $SHELL
1673 if eval "$MISSING --run true"; then
1674 am_missing_run="$MISSING --run "
1675 else
1676 am_missing_run=
1677 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1678 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1681 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1682 # We used to keeping the `.' as first argument, in order to
1683 # allow $(mkdir_p) to be used without argument. As in
1684 # $(mkdir_p) $(somedir)
1685 # where $(somedir) is conditionally defined. However this is wrong
1686 # for two reasons:
1687 # 1. if the package is installed by a user who cannot write `.'
1688 # make install will fail,
1689 # 2. the above comment should most certainly read
1690 # $(mkdir_p) $(DESTDIR)$(somedir)
1691 # so it does not work when $(somedir) is undefined and
1692 # $(DESTDIR) is not.
1693 # To support the latter case, we have to write
1694 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1695 # so the `.' trick is pointless.
1696 mkdir_p='mkdir -p --'
1697 else
1698 # On NextStep and OpenStep, the `mkdir' command does not
1699 # recognize any option. It will interpret all options as
1700 # directories to create, and then abort because `.' already
1701 # exists.
1702 for d in ./-p ./--version;
1704 test -d $d && rmdir $d
1705 done
1706 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1707 if test -f "$ac_aux_dir/mkinstalldirs"; then
1708 mkdir_p='$(mkinstalldirs)'
1709 else
1710 mkdir_p='$(install_sh) -d'
1714 for ac_prog in gawk mawk nawk awk
1716 # Extract the first word of "$ac_prog", so it can be a program name with args.
1717 set dummy $ac_prog; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_AWK+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 if test -n "$AWK"; then
1724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_AWK="$ac_prog"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1737 done
1738 done
1742 AWK=$ac_cv_prog_AWK
1743 if test -n "$AWK"; then
1744 echo "$as_me:$LINENO: result: $AWK" >&5
1745 echo "${ECHO_T}$AWK" >&6
1746 else
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1751 test -n "$AWK" && break
1752 done
1754 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1755 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1756 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1757 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 cat >conftest.make <<\_ACEOF
1761 all:
1762 @echo 'ac_maketemp="$(MAKE)"'
1763 _ACEOF
1764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1765 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1766 if test -n "$ac_maketemp"; then
1767 eval ac_cv_prog_make_${ac_make}_set=yes
1768 else
1769 eval ac_cv_prog_make_${ac_make}_set=no
1771 rm -f conftest.make
1773 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1774 echo "$as_me:$LINENO: result: yes" >&5
1775 echo "${ECHO_T}yes" >&6
1776 SET_MAKE=
1777 else
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 SET_MAKE="MAKE=${MAKE-make}"
1783 rm -rf .tst 2>/dev/null
1784 mkdir .tst 2>/dev/null
1785 if test -d .tst; then
1786 am__leading_dot=.
1787 else
1788 am__leading_dot=_
1790 rmdir .tst 2>/dev/null
1792 # test to see if srcdir already configured
1793 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1794 test -f $srcdir/config.status; then
1795 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1796 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1797 { (exit 1); exit 1; }; }
1800 # test whether we have cygpath
1801 if test -z "$CYGPATH_W"; then
1802 if (cygpath --version) >/dev/null 2>/dev/null; then
1803 CYGPATH_W='cygpath -w'
1804 else
1805 CYGPATH_W=echo
1810 # Define the identity of the package.
1811 PACKAGE='classpath'
1812 VERSION='0.90'
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE "$PACKAGE"
1817 _ACEOF
1820 cat >>confdefs.h <<_ACEOF
1821 #define VERSION "$VERSION"
1822 _ACEOF
1824 # Some tools Automake needs.
1826 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1829 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1832 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1835 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1838 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1840 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1842 # Installed binaries are usually stripped using `strip' when the user
1843 # run `make install-strip'. However `strip' might not be the right
1844 # tool to use in cross-compilation environments, therefore Automake
1845 # will honor the `STRIP' environment variable to overrule this program.
1846 if test "$cross_compiling" != no; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 if test -n "$STRIP"; then
1856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
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_STRIP="${ac_tool_prefix}strip"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1869 done
1870 done
1874 STRIP=$ac_cv_prog_STRIP
1875 if test -n "$STRIP"; then
1876 echo "$as_me:$LINENO: result: $STRIP" >&5
1877 echo "${ECHO_T}$STRIP" >&6
1878 else
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1884 if test -z "$ac_cv_prog_STRIP"; then
1885 ac_ct_STRIP=$STRIP
1886 # Extract the first word of "strip", so it can be a program name with args.
1887 set dummy strip; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test -n "$ac_ct_STRIP"; then
1894 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_STRIP="strip"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1907 done
1908 done
1910 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1914 if test -n "$ac_ct_STRIP"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1916 echo "${ECHO_T}$ac_ct_STRIP" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1922 STRIP=$ac_ct_STRIP
1923 else
1924 STRIP="$ac_cv_prog_STRIP"
1928 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1930 # We need awk for the "check" target. The system "awk" is bad on
1931 # some platforms.
1932 # Always define AMTAR for backward compatibility.
1934 AMTAR=${AMTAR-"${am_missing_run}tar"}
1937 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1938 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1939 # Loop over all known methods to create a tar archive until one works.
1940 _am_tools='gnutar plaintar pax cpio none'
1941 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1942 # Do not fold the above two line into one, because Tru64 sh and
1943 # Solaris sh will not grok spaces in the rhs of `-'.
1944 for _am_tool in $_am_tools
1946 case $_am_tool in
1947 gnutar)
1948 for _am_tar in tar gnutar gtar;
1950 { echo "$as_me:$LINENO: $_am_tar --version" >&5
1951 ($_am_tar --version) >&5 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); } && break
1955 done
1956 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1957 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1958 am__untar="$_am_tar -xf -"
1960 plaintar)
1961 # Must skip GNU tar: if it does not support --format= it doesn't create
1962 # ustar tarball either.
1963 (tar --version) >/dev/null 2>&1 && continue
1964 am__tar='tar chf - "$$tardir"'
1965 am__tar_='tar chf - "$tardir"'
1966 am__untar='tar xf -'
1968 pax)
1969 am__tar='pax -L -x ustar -w "$$tardir"'
1970 am__tar_='pax -L -x ustar -w "$tardir"'
1971 am__untar='pax -r'
1973 cpio)
1974 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1975 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1976 am__untar='cpio -i -H ustar -d'
1978 none)
1979 am__tar=false
1980 am__tar_=false
1981 am__untar=false
1983 esac
1985 # If the value was cached, stop now. We just wanted to have am__tar
1986 # and am__untar set.
1987 test -n "${am_cv_prog_tar_ustar}" && break
1989 # tar/untar a dummy directory, and stop if the command works
1990 rm -rf conftest.dir
1991 mkdir conftest.dir
1992 echo GrepMe > conftest.dir/file
1993 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
1994 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998 rm -rf conftest.dir
1999 if test -s conftest.tar; then
2000 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2001 ($am__untar <conftest.tar) >&5 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }
2005 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2007 done
2008 rm -rf conftest.dir
2010 if test "${am_cv_prog_tar_ustar+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 am_cv_prog_tar_ustar=$_am_tool
2016 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2017 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2023 ac_config_headers="$ac_config_headers include/config.h"
2029 # Check whether --enable-collections or --disable-collections was given.
2030 if test "${enable_collections+set}" = set; then
2031 enableval="$enable_collections"
2032 case x"${enableval}" in
2033 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2034 xno) COMPILE_COLLECTIONS=no ;;
2035 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2036 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2037 esac
2038 else
2039 COMPILE_COLLECTIONS=no
2043 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2044 CREATE_COLLECTIONS_TRUE=
2045 CREATE_COLLECTIONS_FALSE='#'
2046 else
2047 CREATE_COLLECTIONS_TRUE='#'
2048 CREATE_COLLECTIONS_FALSE=
2052 # Check whether --enable-jni or --disable-jni was given.
2053 if test "${enable_jni+set}" = set; then
2054 enableval="$enable_jni"
2055 case "${enableval}" in
2056 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2057 no) COMPILE_JNI=no ;;
2058 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2059 esac
2060 else
2061 COMPILE_JNI=yes
2065 if test "x${COMPILE_JNI}" = xyes; then
2066 CREATE_JNI_LIBRARIES_TRUE=
2067 CREATE_JNI_LIBRARIES_FALSE='#'
2068 else
2069 CREATE_JNI_LIBRARIES_TRUE='#'
2070 CREATE_JNI_LIBRARIES_FALSE=
2074 # Check whether --enable-core-jni or --disable-core-jni was given.
2075 if test "${enable_core_jni+set}" = set; then
2076 enableval="$enable_core_jni"
2077 case "${enableval}" in
2078 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2079 no) COMPILE_CORE_JNI=no ;;
2080 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2081 esac
2082 else
2083 COMPILE_CORE_JNI=yes
2087 if test "x${COMPILE_CORE_JNI}" = xyes; then
2088 CREATE_CORE_JNI_LIBRARIES_TRUE=
2089 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2090 else
2091 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2092 CREATE_CORE_JNI_LIBRARIES_FALSE=
2096 # Check whether --enable-Werror or --disable-Werror was given.
2097 if test "${enable_Werror+set}" = set; then
2098 enableval="$enable_Werror"
2099 case "${enableval}" in
2100 yes) ENABLE_WERROR=yes ;;
2101 no) ENABLE_WERROR=no ;;
2102 *) ENABLE_WERROR=no ;;
2103 esac
2104 else
2105 ENABLE_WERROR=no
2108 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2109 if test "${enable_default_toolkit+set}" = set; then
2110 enableval="$enable_default_toolkit"
2113 default_toolkit=$enable_default_toolkit
2114 if test "$default_toolkit" = ""; then
2115 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2119 # Check whether --enable-xmlj or --disable-xmlj was given.
2120 if test "${enable_xmlj+set}" = set; then
2121 enableval="$enable_xmlj"
2122 case "${enableval}" in
2123 yes) COMPILE_XMLJ=yes ;;
2124 no) COMPILE_XMLJ=no ;;
2125 *) COMPILE_XMLJ=no ;;
2126 esac
2127 else
2128 COMPILE_XMLJ=no
2132 if test "x${COMPILE_XMLJ}" = xyes; then
2133 CREATE_XMLJ_LIBRARY_TRUE=
2134 CREATE_XMLJ_LIBRARY_FALSE='#'
2135 else
2136 CREATE_XMLJ_LIBRARY_TRUE='#'
2137 CREATE_XMLJ_LIBRARY_FALSE=
2141 DEPDIR="${am__leading_dot}deps"
2143 ac_config_commands="$ac_config_commands depfiles"
2146 am_make=${MAKE-make}
2147 cat > confinc << 'END'
2148 am__doit:
2149 @echo done
2150 .PHONY: am__doit
2152 # If we don't find an include directive, just comment out the code.
2153 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2154 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2155 am__include="#"
2156 am__quote=
2157 _am_result=none
2158 # First try GNU make style include.
2159 echo "include confinc" > confmf
2160 # We grep out `Entering directory' and `Leaving directory'
2161 # messages which can occur if `w' ends up in MAKEFLAGS.
2162 # In particular we don't look at `^make:' because GNU make might
2163 # be invoked under some other name (usually "gmake"), in which
2164 # case it prints its new name instead of `make'.
2165 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2166 am__include=include
2167 am__quote=
2168 _am_result=GNU
2170 # Now try BSD make style include.
2171 if test "$am__include" = "#"; then
2172 echo '.include "confinc"' > confmf
2173 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2174 am__include=.include
2175 am__quote="\""
2176 _am_result=BSD
2181 echo "$as_me:$LINENO: result: $_am_result" >&5
2182 echo "${ECHO_T}$_am_result" >&6
2183 rm -f confinc confmf
2185 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2186 if test "${enable_dependency_tracking+set}" = set; then
2187 enableval="$enable_dependency_tracking"
2190 if test "x$enable_dependency_tracking" != xno; then
2191 am_depcomp="$ac_aux_dir/depcomp"
2192 AMDEPBACKSLASH='\'
2196 if test "x$enable_dependency_tracking" != xno; then
2197 AMDEP_TRUE=
2198 AMDEP_FALSE='#'
2199 else
2200 AMDEP_TRUE='#'
2201 AMDEP_FALSE=
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2233 done
2234 done
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2248 if test -z "$ac_cv_prog_CC"; then
2249 ac_ct_CC=$CC
2250 # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_ac_ct_CC="gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2271 done
2272 done
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2285 CC=$ac_ct_CC
2286 else
2287 CC="$ac_cv_prog_CC"
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_CC="${ac_tool_prefix}cc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2313 done
2314 done
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2322 else
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2351 done
2352 done
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2360 else
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2365 CC=$ac_ct_CC
2366 else
2367 CC="$ac_cv_prog_CC"
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2394 ac_cv_prog_CC="cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2398 done
2399 done
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2404 shift
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2409 shift
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2419 else
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 for ac_prog in cl
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2459 else
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2464 test -n "$CC" && break
2465 done
2467 if test -z "$CC"; then
2468 ac_ct_CC=$CC
2469 for ac_prog in cl
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2492 done
2493 done
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$ac_ct_CC" && break
2507 done
2509 CC=$ac_ct_CC
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523 "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526 (eval $ac_compiler --version </dev/null >&5) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531 (eval $ac_compiler -v </dev/null >&5) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536 (eval $ac_compiler -V </dev/null >&5) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2549 main ()
2553 return 0;
2555 _ACEOF
2556 # FIXME: Cleanup?
2557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2558 (eval $ac_link) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; then
2562 gcc_no_link=no
2563 else
2564 gcc_no_link=yes
2567 if test x$gcc_no_link = xyes; then
2568 # Setting cross_compile will disable run tests; it will
2569 # also disable AC_CHECK_FILE but that's generally
2570 # correct if we can't link.
2571 cross_compiling=yes
2572 EXEEXT=
2573 else
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2582 main ()
2586 return 0;
2588 _ACEOF
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2593 # of exeext.
2594 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2595 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2596 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2598 (eval $ac_link_default) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; then
2602 # Find the output, starting from the most likely. This scheme is
2603 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2604 # resort.
2606 # Be careful to initialize this variable, since it used to be cached.
2607 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2608 ac_cv_exeext=
2609 # b.out is created by i960 compilers.
2610 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2612 test -f "$ac_file" || continue
2613 case $ac_file in
2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2616 conftest.$ac_ext )
2617 # This is the source file.
2619 [ab].out )
2620 # We found the default executable, but exeext='' is most
2621 # certainly right.
2622 break;;
2623 *.* )
2624 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2625 # FIXME: I believe we export ac_cv_exeext for Libtool,
2626 # but it would be cool to find out if it's true. Does anybody
2627 # maintain Libtool? --akim.
2628 export ac_cv_exeext
2629 break;;
2631 break;;
2632 esac
2633 done
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: C compiler cannot create executables
2641 See \`config.log' for more details." >&2;}
2642 { (exit 77); exit 77; }; }
2645 ac_exeext=$ac_cv_exeext
2646 echo "$as_me:$LINENO: result: $ac_file" >&5
2647 echo "${ECHO_T}$ac_file" >&6
2649 # Check the compiler produces executables we can run. If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2652 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2653 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2654 # If not cross compiling, check that we can run a simple program.
2655 if test "$cross_compiling" != yes; then
2656 if { ac_try='./$ac_file'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 cross_compiling=no
2663 else
2664 if test "$cross_compiling" = maybe; then
2665 cross_compiling=yes
2666 else
2667 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2668 If you meant to cross compile, use \`--host'.
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: cannot run C compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2677 echo "$as_me:$LINENO: result: yes" >&5
2678 echo "${ECHO_T}yes" >&6
2680 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2681 ac_clean_files=$ac_clean_files_save
2682 # Check the compiler produces executables we can run. If not, either
2683 # the compiler is broken, or we cross compile.
2684 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2685 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2686 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2687 echo "${ECHO_T}$cross_compiling" >&6
2689 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2690 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2692 (eval $ac_link) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; then
2696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2698 # work properly (i.e., refer to `conftest.exe'), while it won't with
2699 # `rm'.
2700 for ac_file in conftest.exe conftest conftest.*; do
2701 test -f "$ac_file" || continue
2702 case $ac_file in
2703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 export ac_cv_exeext
2706 break;;
2707 * ) break;;
2708 esac
2709 done
2710 else
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2714 See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2718 rm -f conftest$ac_cv_exeext
2719 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2720 echo "${ECHO_T}$ac_cv_exeext" >&6
2722 rm -f conftest.$ac_ext
2723 EXEEXT=$ac_cv_exeext
2724 ac_exeext=$EXEEXT
2726 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2727 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2728 if test "${ac_cv_objext+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h. */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 main ()
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.o conftest.obj
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
2752 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2753 case $ac_file in
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2756 break;;
2757 esac
2758 done
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2764 See \`config.log' for more details." >&5
2765 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2766 See \`config.log' for more details." >&2;}
2767 { (exit 1); exit 1; }; }
2770 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2772 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2773 echo "${ECHO_T}$ac_cv_objext" >&6
2774 OBJEXT=$ac_cv_objext
2775 ac_objext=$OBJEXT
2776 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2777 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2778 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2789 main ()
2791 #ifndef __GNUC__
2792 choke me
2793 #endif
2796 return 0;
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -z "$ac_c_werror_flag"
2809 || test ! -s conftest.err'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; } &&
2815 { ac_try='test -s conftest.$ac_objext'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_compiler_gnu=yes
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 ac_compiler_gnu=no
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2832 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2833 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2834 GCC=`test $ac_compiler_gnu = yes && echo yes`
2835 ac_test_CFLAGS=${CFLAGS+set}
2836 ac_save_CFLAGS=$CFLAGS
2837 CFLAGS="-g"
2838 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2840 if test "${ac_cv_prog_cc_g+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2851 main ()
2855 return 0;
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_c_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2880 ac_cv_prog_cc_g=yes
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 ac_cv_prog_cc_g=no
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2891 if test "$ac_test_CFLAGS" = set; then
2892 CFLAGS=$ac_save_CFLAGS
2893 elif test $ac_cv_prog_cc_g = yes; then
2894 if test "$GCC" = yes; then
2895 CFLAGS="-g -O2"
2896 else
2897 CFLAGS="-g"
2899 else
2900 if test "$GCC" = yes; then
2901 CFLAGS="-O2"
2902 else
2903 CFLAGS=
2906 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2907 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2908 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 ac_cv_prog_cc_stdc=no
2912 ac_save_CC=$CC
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h. */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2919 #include <stdarg.h>
2920 #include <stdio.h>
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2927 char **p;
2928 int i;
2930 return p[i];
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2934 char *s;
2935 va_list v;
2936 va_start (v,p);
2937 s = g (p, va_arg (v,int));
2938 va_end (v);
2939 return s;
2942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2943 function prototypes and stuff, but not '\xHH' hex character constants.
2944 These don't provoke an error unfortunately, instead are silently treated
2945 as 'x'. The following induces an error, until -std1 is added to get
2946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2947 array size at least. It's necessary to write '\x00'==0 to get something
2948 that's true only with -std1. */
2949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2951 int test (int i, double x);
2952 struct s1 {int (*f) (int a);};
2953 struct s2 {int (*f) (double a);};
2954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2955 int argc;
2956 char **argv;
2958 main ()
2960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2962 return 0;
2964 _ACEOF
2965 # Don't try gcc -ansi; that turns off useful extensions and
2966 # breaks some systems' header files.
2967 # AIX -qlanglvl=ansi
2968 # Ultrix and OSF/1 -std1
2969 # HP-UX 10.20 and later -Ae
2970 # HP-UX older versions -Aa -D_HPUX_SOURCE
2971 # SVR4 -Xc -D__EXTENSIONS__
2972 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2974 CC="$ac_save_CC $ac_arg"
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_c_werror_flag"
2985 || test ! -s conftest.err'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2997 ac_cv_prog_cc_stdc=$ac_arg
2998 break
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f conftest.err conftest.$ac_objext
3005 done
3006 rm -f conftest.$ac_ext conftest.$ac_objext
3007 CC=$ac_save_CC
3011 case "x$ac_cv_prog_cc_stdc" in
3012 x|xno)
3013 echo "$as_me:$LINENO: result: none needed" >&5
3014 echo "${ECHO_T}none needed" >&6 ;;
3016 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3017 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3018 CC="$CC $ac_cv_prog_cc_stdc" ;;
3019 esac
3021 # Some people use a C++ compiler to compile C. Since we use `exit',
3022 # in C++ we need to declare it. In case someone uses the same compiler
3023 # for both compiling C and C++ we need to have the C++ compiler decide
3024 # the declaration of exit, since it's the most demanding environment.
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #ifndef __cplusplus
3027 choke me
3028 #endif
3029 _ACEOF
3030 rm -f conftest.$ac_objext
3031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_c_werror_flag"
3040 || test ! -s conftest.err'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 for ac_declaration in \
3053 '' \
3054 'extern "C" void std::exit (int) throw (); using std::exit;' \
3055 'extern "C" void std::exit (int); using std::exit;' \
3056 'extern "C" void exit (int) throw ();' \
3057 'extern "C" void exit (int);' \
3058 'void exit (int);'
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 $ac_declaration
3067 #include <stdlib.h>
3069 main ()
3071 exit (42);
3073 return 0;
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 continue
3105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112 $ac_declaration
3114 main ()
3116 exit (42);
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag"
3131 || test ! -s conftest.err'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 break
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3150 done
3151 rm -f conftest*
3152 if test -n "$ac_declaration"; then
3153 echo '#ifdef __cplusplus' >>confdefs.h
3154 echo $ac_declaration >>confdefs.h
3155 echo '#endif' >>confdefs.h
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 depcc="$CC" am_compiler_list=
3172 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3174 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178 # We make a subdir and do the tests there. Otherwise we can end up
3179 # making bogus files that we don't know about and never remove. For
3180 # instance it was reported that on HP-UX the gcc test will end up
3181 # making a dummy file named `D' -- because `-MD' means `put the output
3182 # in D'.
3183 mkdir conftest.dir
3184 # Copy depcomp to subdir because otherwise we won't find it if we're
3185 # using a relative directory.
3186 cp "$am_depcomp" conftest.dir
3187 cd conftest.dir
3188 # We will build objects and dependencies in a subdirectory because
3189 # it helps to detect inapplicable dependency modes. For instance
3190 # both Tru64's cc and ICC support -MD to output dependencies as a
3191 # side effect of compilation, but ICC will put the dependencies in
3192 # the current directory while Tru64 will put them in the object
3193 # directory.
3194 mkdir sub
3196 am_cv_CC_dependencies_compiler_type=none
3197 if test "$am_compiler_list" = ""; then
3198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3200 for depmode in $am_compiler_list; do
3201 # Setup a source with many dependencies, because some compilers
3202 # like to wrap large dependency lists on column 80 (with \), and
3203 # we should not choose a depcomp mode which is confused by this.
3205 # We need to recreate these files for each test, as the compiler may
3206 # overwrite some of them when testing with obscure command lines.
3207 # This happens at least with the AIX C compiler.
3208 : > sub/conftest.c
3209 for i in 1 2 3 4 5 6; do
3210 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212 # Solaris 8's {/usr,}/bin/sh.
3213 touch sub/conftst$i.h
3214 done
3215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3217 case $depmode in
3218 nosideeffect)
3219 # after this tag, mechanisms are not by side-effect, so they'll
3220 # only be used when explicitly requested
3221 if test "x$enable_dependency_tracking" = xyes; then
3222 continue
3223 else
3224 break
3227 none) break ;;
3228 esac
3229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230 # mode. It turns out that the SunPro C++ compiler does not properly
3231 # handle `-M -o', and we need to detect this.
3232 if depmode=$depmode \
3233 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236 >/dev/null 2>conftest.err &&
3237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240 # icc doesn't choke on unknown options, it will just issue warnings
3241 # or remarks (even with -Werror). So we grep stderr for any message
3242 # that says an option was ignored or not supported.
3243 # When given -MP, icc 7.0 and 7.1 complain thusly:
3244 # icc: Command line warning: ignoring option '-M'; no argument required
3245 # The diagnosis changed in icc 8.0:
3246 # icc: Command line remark: option '-MP' not supported
3247 if (grep 'ignoring option' conftest.err ||
3248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3249 am_cv_CC_dependencies_compiler_type=$depmode
3250 break
3253 done
3255 cd ..
3256 rm -rf conftest.dir
3257 else
3258 am_cv_CC_dependencies_compiler_type=none
3262 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3269 test "x$enable_dependency_tracking" != xno \
3270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271 am__fastdepCC_TRUE=
3272 am__fastdepCC_FALSE='#'
3273 else
3274 am__fastdepCC_TRUE='#'
3275 am__fastdepCC_FALSE=
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3289 CPP=
3291 if test -z "$CPP"; then
3292 if test "${ac_cv_prog_CPP+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295 # Double quotes because CPP needs to be expanded
3296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3298 ac_preproc_ok=false
3299 for ac_c_preproc_warn_flag in '' yes
3301 # Use a header file that comes with gcc, so configuring glibc
3302 # with a fresh cross-compiler works.
3303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304 # <limits.h> exists even on freestanding compilers.
3305 # On the NeXT, cc -E runs the code through the compiler's parser,
3306 # not just through cpp. "Syntax error" is here to catch this case.
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #ifdef __STDC__
3314 # include <limits.h>
3315 #else
3316 # include <assert.h>
3317 #endif
3318 Syntax error
3319 _ACEOF
3320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331 else
3332 ac_cpp_err=
3334 else
3335 ac_cpp_err=yes
3337 if test -z "$ac_cpp_err"; then
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Broken: fails on valid input.
3344 continue
3346 rm -f conftest.err conftest.$ac_ext
3348 # OK, works on sane cases. Now check whether non-existent headers
3349 # can be detected and how.
3350 cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h. */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3356 #include <ac_nonexistent.h>
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369 else
3370 ac_cpp_err=
3372 else
3373 ac_cpp_err=yes
3375 if test -z "$ac_cpp_err"; then
3376 # Broken: success on invalid input.
3377 continue
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Passes both tests.
3383 ac_preproc_ok=:
3384 break
3386 rm -f conftest.err conftest.$ac_ext
3388 done
3389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390 rm -f conftest.err conftest.$ac_ext
3391 if $ac_preproc_ok; then
3392 break
3395 done
3396 ac_cv_prog_CPP=$CPP
3399 CPP=$ac_cv_prog_CPP
3400 else
3401 ac_cv_prog_CPP=$CPP
3403 echo "$as_me:$LINENO: result: $CPP" >&5
3404 echo "${ECHO_T}$CPP" >&6
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425 Syntax error
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438 else
3439 ac_cpp_err=
3441 else
3442 ac_cpp_err=yes
3444 if test -z "$ac_cpp_err"; then
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Broken: fails on valid input.
3451 continue
3453 rm -f conftest.err conftest.$ac_ext
3455 # OK, works on sane cases. Now check whether non-existent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 else
3477 ac_cpp_err=
3479 else
3480 ac_cpp_err=yes
3482 if test -z "$ac_cpp_err"; then
3483 # Broken: success on invalid input.
3484 continue
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Passes both tests.
3490 ac_preproc_ok=:
3491 break
3493 rm -f conftest.err conftest.$ac_ext
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3500 else
3501 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3502 See \`config.log' for more details." >&5
3503 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3504 See \`config.log' for more details." >&2;}
3505 { (exit 1); exit 1; }; }
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 echo "$as_me:$LINENO: checking for egrep" >&5
3516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3517 if test "${ac_cv_prog_egrep+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3521 then ac_cv_prog_egrep='grep -E'
3522 else ac_cv_prog_egrep='egrep'
3525 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3526 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3527 EGREP=$ac_cv_prog_egrep
3530 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3531 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3532 if test "${ac_cv_header_stdc+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include <stdlib.h>
3542 #include <stdarg.h>
3543 #include <string.h>
3544 #include <float.h>
3547 main ()
3551 return 0;
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556 (eval $ac_compile) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -z "$ac_c_werror_flag"
3564 || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest.$ac_objext'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; }; then
3576 ac_cv_header_stdc=yes
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_cv_header_stdc=no
3583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585 if test $ac_cv_header_stdc = yes; then
3586 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <string.h>
3595 _ACEOF
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 $EGREP "memchr" >/dev/null 2>&1; then
3599 else
3600 ac_cv_header_stdc=no
3602 rm -f conftest*
3606 if test $ac_cv_header_stdc = yes; then
3607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <stdlib.h>
3616 _ACEOF
3617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3618 $EGREP "free" >/dev/null 2>&1; then
3620 else
3621 ac_cv_header_stdc=no
3623 rm -f conftest*
3627 if test $ac_cv_header_stdc = yes; then
3628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3629 if test "$cross_compiling" = yes; then
3631 else
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <ctype.h>
3639 #if ((' ' & 0x0FF) == 0x020)
3640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3642 #else
3643 # define ISLOWER(c) \
3644 (('a' <= (c) && (c) <= 'i') \
3645 || ('j' <= (c) && (c) <= 'r') \
3646 || ('s' <= (c) && (c) <= 'z'))
3647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3648 #endif
3650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3652 main ()
3654 int i;
3655 for (i = 0; i < 256; i++)
3656 if (XOR (islower (i), ISLOWER (i))
3657 || toupper (i) != TOUPPER (i))
3658 exit(2);
3659 exit (0);
3661 _ACEOF
3662 rm -f conftest$ac_exeext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3664 (eval $ac_link) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3674 else
3675 echo "$as_me: program exited with status $ac_status" >&5
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ( exit $ac_status )
3680 ac_cv_header_stdc=no
3682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3686 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3687 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3688 if test $ac_cv_header_stdc = yes; then
3690 cat >>confdefs.h <<\_ACEOF
3691 #define STDC_HEADERS 1
3692 _ACEOF
3696 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3707 inttypes.h stdint.h unistd.h
3709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3710 echo "$as_me:$LINENO: checking for $ac_header" >&5
3711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 $ac_includes_default
3723 #include <$ac_header>
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727 (eval $ac_compile) 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -z "$ac_c_werror_flag"
3735 || test ! -s conftest.err'
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; } &&
3741 { ac_try='test -s conftest.$ac_objext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 (eval $ac_try) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3747 eval "$as_ac_Header=yes"
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 eval "$as_ac_Header=no"
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3759 cat >>confdefs.h <<_ACEOF
3760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3761 _ACEOF
3765 done
3768 # Check whether --enable-alsa or --disable-alsa was given.
3769 if test "${enable_alsa+set}" = set; then
3770 enableval="$enable_alsa"
3771 case "${enableval}" in
3772 yes) COMPILE_ALSA=yes ;;
3773 no) COMPILE_ALSA=no ;;
3774 *) COMPILE_ALSA=yes ;;
3775 esac
3776 else
3778 for ac_header in alsa/asoundlib.h
3780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3782 echo "$as_me:$LINENO: checking for $ac_header" >&5
3783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3789 else
3790 # Is the header compilable?
3791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799 $ac_includes_default
3800 #include <$ac_header>
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag"
3812 || test ! -s conftest.err'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 (eval $ac_try) 2>&5
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_header_compiler=yes
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 ac_header_compiler=no
3831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3833 echo "${ECHO_T}$ac_header_compiler" >&6
3835 # Is the header present?
3836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <$ac_header>
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3860 else
3861 ac_cpp_err=yes
3863 if test -z "$ac_cpp_err"; then
3864 ac_header_preproc=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3869 ac_header_preproc=no
3871 rm -f conftest.err conftest.$ac_ext
3872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3873 echo "${ECHO_T}$ac_header_preproc" >&6
3875 # So? What about this header?
3876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3877 yes:no: )
3878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3882 ac_header_preproc=yes
3884 no:yes:* )
3885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3898 cat <<\_ASBOX
3899 ## -------------------------------- ##
3900 ## Report this to classpath@gnu.org ##
3901 ## -------------------------------- ##
3902 _ASBOX
3904 sed "s/^/$as_me: WARNING: /" >&2
3906 esac
3907 echo "$as_me:$LINENO: checking for $ac_header" >&5
3908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 eval "$as_ac_Header=\$ac_header_preproc"
3914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3919 cat >>confdefs.h <<_ACEOF
3920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3921 _ACEOF
3922 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
3923 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
3924 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 ac_check_lib_save_LIBS=$LIBS
3928 LIBS="-lasound $LIBS"
3929 if test x$gcc_no_link = xyes; then
3930 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3931 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3932 { (exit 1); exit 1; }; }
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 #ifdef __cplusplus
3943 extern "C"
3944 #endif
3945 /* We use char because int might match the return type of a gcc2
3946 builtin and then its argument prototype would still apply. */
3947 char snd_seq_open ();
3949 main ()
3951 snd_seq_open ();
3953 return 0;
3955 _ACEOF
3956 rm -f conftest.$ac_objext conftest$ac_exeext
3957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3958 (eval $ac_link) 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_c_werror_flag"
3966 || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } &&
3972 { ac_try='test -s conftest$ac_exeext'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_lib_asound_snd_seq_open=yes
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 ac_cv_lib_asound_snd_seq_open=no
3985 rm -f conftest.err conftest.$ac_objext \
3986 conftest$ac_exeext conftest.$ac_ext
3987 LIBS=$ac_check_lib_save_LIBS
3989 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
3990 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
3991 if test $ac_cv_lib_asound_snd_seq_open = yes; then
3992 COMPILE_ALSA=yes
3993 else
3994 COMPILE_ALSA=no
3997 else
3998 COMPILE_ALSA=no
4001 done
4006 if test "x${COMPILE_ALSA}" = xyes; then
4007 CREATE_ALSA_LIBRARIES_TRUE=
4008 CREATE_ALSA_LIBRARIES_FALSE='#'
4009 else
4010 CREATE_ALSA_LIBRARIES_TRUE='#'
4011 CREATE_ALSA_LIBRARIES_FALSE=
4015 # Check whether --enable-dssi or --disable-dssi was given.
4016 if test "${enable_dssi+set}" = set; then
4017 enableval="$enable_dssi"
4018 case "${enableval}" in
4019 yes) COMPILE_DSSI=yes ;;
4020 no) COMPILE_DSSI=no ;;
4021 *) COMPILE_DSSI=yes ;;
4022 esac
4023 else
4025 for ac_header in dssi.h
4027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029 echo "$as_me:$LINENO: checking for $ac_header" >&5
4030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4036 else
4037 # Is the header compilable?
4038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4040 cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 $ac_includes_default
4047 #include <$ac_header>
4048 _ACEOF
4049 rm -f conftest.$ac_objext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051 (eval $ac_compile) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_header_compiler=yes
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 ac_header_compiler=no
4078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4080 echo "${ECHO_T}$ac_header_compiler" >&6
4082 # Is the header present?
4083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <$ac_header>
4092 _ACEOF
4093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4095 ac_status=$?
4096 grep -v '^ *+' conftest.er1 >conftest.err
4097 rm -f conftest.er1
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } >/dev/null; then
4101 if test -s conftest.err; then
4102 ac_cpp_err=$ac_c_preproc_warn_flag
4103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4104 else
4105 ac_cpp_err=
4107 else
4108 ac_cpp_err=yes
4110 if test -z "$ac_cpp_err"; then
4111 ac_header_preproc=yes
4112 else
4113 echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_header_preproc=no
4118 rm -f conftest.err conftest.$ac_ext
4119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4120 echo "${ECHO_T}$ac_header_preproc" >&6
4122 # So? What about this header?
4123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4124 yes:no: )
4125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4129 ac_header_preproc=yes
4131 no:yes:* )
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4145 cat <<\_ASBOX
4146 ## -------------------------------- ##
4147 ## Report this to classpath@gnu.org ##
4148 ## -------------------------------- ##
4149 _ASBOX
4151 sed "s/^/$as_me: WARNING: /" >&2
4153 esac
4154 echo "$as_me:$LINENO: checking for $ac_header" >&5
4155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 eval "$as_ac_Header=\$ac_header_preproc"
4161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4166 cat >>confdefs.h <<_ACEOF
4167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4168 _ACEOF
4169 COMPILE_DSSI=yes
4170 else
4171 COMPILE_DSSI=no
4174 done
4179 if test "x${COMPILE_DSSI}" = xyes; then
4180 CREATE_DSSI_LIBRARIES_TRUE=
4181 CREATE_DSSI_LIBRARIES_FALSE='#'
4182 else
4183 CREATE_DSSI_LIBRARIES_TRUE='#'
4184 CREATE_DSSI_LIBRARIES_FALSE=
4188 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4189 if test "${enable_gtk_peer+set}" = set; then
4190 enableval="$enable_gtk_peer"
4191 case "${enableval}" in
4192 yes) COMPILE_GTK_PEER=yes ;;
4193 no) COMPILE_GTK_PEER=no ;;
4194 *) COMPILE_GTK_PEER=yes ;;
4195 esac
4196 else
4197 COMPILE_GTK_PEER=yes
4201 if test "x${COMPILE_GTK_PEER}" = xyes; then
4202 CREATE_GTK_PEER_LIBRARIES_TRUE=
4203 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4204 else
4205 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4206 CREATE_GTK_PEER_LIBRARIES_FALSE=
4210 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4211 if test "${enable_gtk_peers+set}" = set; then
4212 enableval="$enable_gtk_peers"
4213 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4214 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4215 { (exit 1); exit 1; }; }
4218 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4219 if test "${enable_gtk_cairo+set}" = set; then
4220 enableval="$enable_gtk_cairo"
4221 case "${enableval}" in
4222 yes) GTK_CAIRO_ENABLED=true ;;
4223 no) GTK_CAIRO_ENABLED=false ;;
4224 *) GTK_CAIRO_ENABLED=true ;;
4225 esac
4226 else
4227 GTK_CAIRO_ENABLED=false
4230 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
4232 cat >>confdefs.h <<\_ACEOF
4233 #define GTK_CAIRO 1
4234 _ACEOF
4239 if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
4240 GTK_CAIRO_TRUE=
4241 GTK_CAIRO_FALSE='#'
4242 else
4243 GTK_CAIRO_TRUE='#'
4244 GTK_CAIRO_FALSE=
4248 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4249 if test "${enable_qt_peer+set}" = set; then
4250 enableval="$enable_qt_peer"
4251 case "${enableval}" in
4252 yes) COMPILE_QT_PEER=yes ;;
4253 no) COMPILE_QT_PEER=no ;;
4254 *) COMPILE_QT_PEER=yes ;;
4255 esac
4256 else
4257 COMPILE_QT_PEER=no
4261 if test "x${COMPILE_QT_PEER}" = xyes; then
4262 CREATE_QT_PEER_LIBRARIES_TRUE=
4263 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4264 else
4265 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4266 CREATE_QT_PEER_LIBRARIES_FALSE=
4272 # Check whether --with-native-libdir or --without-native-libdir was given.
4273 if test "${with_native_libdir+set}" = set; then
4274 withval="$with_native_libdir"
4276 nativelibdir=${withval}
4278 else
4280 nativelibdir='${libdir}/${PACKAGE}'
4287 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4288 if test "${with_glibj_dir+set}" = set; then
4289 withval="$with_glibj_dir"
4291 glibjdir=${withval}
4293 else
4295 glibjdir='${datadir}/${PACKAGE}'
4301 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4302 if test "${enable_regen_headers+set}" = set; then
4303 enableval="$enable_regen_headers"
4304 case "${enableval}" in
4305 yes) REGENERATE_JNI_HEADERS=yes ;;
4306 no) REGENERATE_JNI_HEADERS=no ;;
4307 *) REGENERATE_JNI_HEADERS=no ;;
4308 esac
4309 else
4310 REGENERATE_JNI_HEADERS=no
4314 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4315 CREATE_JNI_HEADERS_TRUE=
4316 CREATE_JNI_HEADERS_FALSE='#'
4317 else
4318 CREATE_JNI_HEADERS_TRUE='#'
4319 CREATE_JNI_HEADERS_FALSE=
4323 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4324 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4325 LN_S=$as_ln_s
4326 if test "$LN_S" = "ln -s"; then
4327 echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6
4329 else
4330 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4331 echo "${ECHO_T}no, using $LN_S" >&6
4334 # Find a good install program. We prefer a C program (faster),
4335 # so one script is as good as another. But avoid the broken or
4336 # incompatible versions:
4337 # SysV /etc/install, /usr/sbin/install
4338 # SunOS /usr/etc/install
4339 # IRIX /sbin/install
4340 # AIX /bin/install
4341 # AmigaOS /C/install, which installs bootblocks on floppy discs
4342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4345 # OS/2's system install, which has a completely different semantic
4346 # ./install, which can be erroneously created by make from ./install.sh.
4347 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4348 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4349 if test -z "$INSTALL"; then
4350 if test "${ac_cv_path_install+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 # Account for people who put trailing slashes in PATH elements.
4359 case $as_dir/ in
4360 ./ | .// | /cC/* | \
4361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4362 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4363 /usr/ucb/* ) ;;
4365 # OSF1 and SCO ODT 3.0 have their own names for install.
4366 # Don't use installbsd from OSF since it installs stuff as root
4367 # by default.
4368 for ac_prog in ginstall scoinst install; do
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4371 if test $ac_prog = install &&
4372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4373 # AIX install. It has an incompatible calling convention.
4375 elif test $ac_prog = install &&
4376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4377 # program-specific install script used by HP pwplus--don't use.
4379 else
4380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4381 break 3
4384 done
4385 done
4387 esac
4388 done
4392 if test "${ac_cv_path_install+set}" = set; then
4393 INSTALL=$ac_cv_path_install
4394 else
4395 # As a last resort, use the slow shell script. We don't cache a
4396 # path for INSTALL within a source directory, because that will
4397 # break other packages using the cache if that directory is
4398 # removed, or if the path is relative.
4399 INSTALL=$ac_install_sh
4402 echo "$as_me:$LINENO: result: $INSTALL" >&5
4403 echo "${ECHO_T}$INSTALL" >&6
4405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4406 # It thinks the first close brace ends the variable substitution.
4407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4415 # Check whether --enable-static or --disable-static was given.
4416 if test "${enable_static+set}" = set; then
4417 enableval="$enable_static"
4418 p=${PACKAGE-default}
4419 case $enableval in
4420 yes) enable_static=yes ;;
4421 no) enable_static=no ;;
4423 enable_static=no
4424 # Look at the argument we got. We use all the common list separators.
4425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4426 for pkg in $enableval; do
4427 if test "X$pkg" = "X$p"; then
4428 enable_static=yes
4430 done
4431 IFS="$ac_save_ifs"
4433 esac
4434 else
4435 enable_static=no
4437 # Check whether --enable-shared or --disable-shared was given.
4438 if test "${enable_shared+set}" = set; then
4439 enableval="$enable_shared"
4440 p=${PACKAGE-default}
4441 case $enableval in
4442 yes) enable_shared=yes ;;
4443 no) enable_shared=no ;;
4445 enable_shared=no
4446 # Look at the argument we got. We use all the common list separators.
4447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4448 for pkg in $enableval; do
4449 if test "X$pkg" = "X$p"; then
4450 enable_shared=yes
4452 done
4453 IFS="$ac_save_ifs"
4455 esac
4456 else
4457 enable_shared=yes
4459 # Check whether --enable-fast-install or --disable-fast-install was given.
4460 if test "${enable_fast_install+set}" = set; then
4461 enableval="$enable_fast_install"
4462 p=${PACKAGE-default}
4463 case $enableval in
4464 yes) enable_fast_install=yes ;;
4465 no) enable_fast_install=no ;;
4467 enable_fast_install=no
4468 # Look at the argument we got. We use all the common list separators.
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4470 for pkg in $enableval; do
4471 if test "X$pkg" = "X$p"; then
4472 enable_fast_install=yes
4474 done
4475 IFS="$ac_save_ifs"
4477 esac
4478 else
4479 enable_fast_install=yes
4482 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4483 if test "${with_gnu_ld+set}" = set; then
4484 withval="$with_gnu_ld"
4485 test "$withval" = no || with_gnu_ld=yes
4486 else
4487 with_gnu_ld=no
4489 ac_prog=ld
4490 if test "$GCC" = yes; then
4491 # Check if gcc -print-prog-name=ld gives a path.
4492 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4493 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4494 case $host in
4495 *-*-mingw*)
4496 # gcc leaves a trailing carriage return which upsets mingw
4497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4500 esac
4501 case $ac_prog in
4502 # Accept absolute paths.
4503 [\\/]* | [A-Za-z]:[\\/]*)
4504 re_direlt='/[^/][^/]*/\.\./'
4505 # Canonicalize the path of ld
4506 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4508 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4509 done
4510 test -z "$LD" && LD="$ac_prog"
4513 # If it fails, then pretend we aren't using GCC.
4514 ac_prog=ld
4517 # If it is relative, then search for the first ld in PATH.
4518 with_gnu_ld=unknown
4520 esac
4521 elif test "$with_gnu_ld" = yes; then
4522 echo "$as_me:$LINENO: checking for GNU ld" >&5
4523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4524 else
4525 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4528 if test "${lt_cv_path_LD+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -z "$LD"; then
4532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4533 for ac_dir in $PATH; do
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4536 lt_cv_path_LD="$ac_dir/$ac_prog"
4537 # Check to see if the program is GNU ld. I'd rather use --version,
4538 # but apparently some GNU ld's only accept -v.
4539 # Break only if it was the GNU/non-GNU ld that we prefer.
4540 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4541 test "$with_gnu_ld" != no && break
4542 else
4543 test "$with_gnu_ld" != yes && break
4546 done
4547 IFS="$ac_save_ifs"
4548 else
4549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4553 LD="$lt_cv_path_LD"
4554 if test -n "$LD"; then
4555 echo "$as_me:$LINENO: result: $LD" >&5
4556 echo "${ECHO_T}$LD" >&6
4557 else
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4561 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4562 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4563 { (exit 1); exit 1; }; }
4564 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4565 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4566 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4570 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4571 lt_cv_prog_gnu_ld=yes
4572 else
4573 lt_cv_prog_gnu_ld=no
4576 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4577 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4578 with_gnu_ld=$lt_cv_prog_gnu_ld
4581 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4582 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4583 if test "${lt_cv_ld_reload_flag+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 lt_cv_ld_reload_flag='-r'
4588 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4589 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4590 reload_flag=$lt_cv_ld_reload_flag
4591 test -n "$reload_flag" && reload_flag=" $reload_flag"
4593 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4595 if test "${lt_cv_path_NM+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 if test -n "$NM"; then
4599 # Let the user override the test.
4600 lt_cv_path_NM="$NM"
4601 else
4602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4603 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4604 test -z "$ac_dir" && ac_dir=.
4605 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4606 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4607 # Check to see if the nm accepts a BSD-compat flag.
4608 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4609 # nm: unknown option "B" ignored
4610 # Tru64's nm complains that /dev/null is an invalid object file
4611 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4612 lt_cv_path_NM="$tmp_nm -B"
4613 break
4614 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4615 lt_cv_path_NM="$tmp_nm -p"
4616 break
4617 else
4618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4619 continue # so that we can try to find one that supports BSD flags
4622 done
4623 IFS="$ac_save_ifs"
4624 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4628 NM="$lt_cv_path_NM"
4629 echo "$as_me:$LINENO: result: $NM" >&5
4630 echo "${ECHO_T}$NM" >&6
4632 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4633 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4634 if test "${lt_cv_deplibs_check_method+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637 lt_cv_file_magic_cmd='$MAGIC_CMD'
4638 lt_cv_file_magic_test_file=
4639 lt_cv_deplibs_check_method='unknown'
4640 # Need to set the preceding variable on all platforms that support
4641 # interlibrary dependencies.
4642 # 'none' -- dependencies not supported.
4643 # `unknown' -- same as none, but documents that we really don't know.
4644 # 'pass_all' -- all dependencies passed with no checks.
4645 # 'test_compile' -- check by making test program.
4646 # 'file_magic [regex]' -- check by looking for files in library path
4647 # which responds to the $file_magic_cmd with a given egrep regex.
4648 # If you have `file' or equivalent on your system and you're not sure
4649 # whether `pass_all' will *always* work, you probably want this one.
4651 case $host_os in
4652 aix*)
4653 lt_cv_deplibs_check_method=pass_all
4656 beos*)
4657 lt_cv_deplibs_check_method=pass_all
4660 bsdi4*)
4661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4662 lt_cv_file_magic_cmd='/usr/bin/file -L'
4663 lt_cv_file_magic_test_file=/shlib/libc.so
4666 cygwin* | mingw* |pw32*)
4667 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4668 lt_cv_file_magic_cmd='$OBJDUMP -f'
4671 darwin* | rhapsody*)
4672 # this will be overwritten by pass_all, but leave it in just in case
4673 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4674 lt_cv_file_magic_cmd='/usr/bin/file -L'
4675 case "$host_os" in
4676 rhapsody* | darwin1.012)
4677 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4679 *) # Darwin 1.3 on
4680 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4682 esac
4683 lt_cv_deplibs_check_method=pass_all
4686 freebsd* | kfreebsd*-gnu)
4687 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4688 case $host_cpu in
4689 i*86 )
4690 # Not sure whether the presence of OpenBSD here was a mistake.
4691 # Let's accept both of them until this is cleared up.
4692 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4693 lt_cv_file_magic_cmd=/usr/bin/file
4694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4696 esac
4697 else
4698 lt_cv_deplibs_check_method=pass_all
4702 gnu*)
4703 lt_cv_deplibs_check_method=pass_all
4706 hpux10.20*|hpux11*)
4707 case $host_cpu in
4708 hppa*)
4709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4710 lt_cv_file_magic_cmd=/usr/bin/file
4711 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4713 ia64*)
4714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4715 lt_cv_file_magic_cmd=/usr/bin/file
4716 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4718 esac
4721 irix5* | irix6*)
4722 case $host_os in
4723 irix5*)
4724 # this will be overridden with pass_all, but let us keep it just in case
4725 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4728 case $LD in
4729 *-32|*"-32 ") libmagic=32-bit;;
4730 *-n32|*"-n32 ") libmagic=N32;;
4731 *-64|*"-64 ") libmagic=64-bit;;
4732 *) libmagic=never-match;;
4733 esac
4734 # this will be overridden with pass_all, but let us keep it just in case
4735 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4737 esac
4738 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4739 lt_cv_deplibs_check_method=pass_all
4742 # This must be Linux ELF.
4743 linux-gnu*)
4744 lt_cv_deplibs_check_method=pass_all
4747 netbsd* | knetbsd*-gnu)
4748 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4749 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4750 else
4751 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4755 newsos6)
4756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4757 lt_cv_file_magic_cmd=/usr/bin/file
4758 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4761 osf3* | osf4* | osf5*)
4762 # this will be overridden with pass_all, but let us keep it just in case
4763 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4764 lt_cv_file_magic_test_file=/shlib/libc.so
4765 lt_cv_deplibs_check_method=pass_all
4768 sco3.2v5*)
4769 lt_cv_deplibs_check_method=pass_all
4772 solaris*)
4773 lt_cv_deplibs_check_method=pass_all
4774 lt_cv_file_magic_test_file=/lib/libc.so
4777 sysv5uw[78]* | sysv4*uw2*)
4778 lt_cv_deplibs_check_method=pass_all
4781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4782 case $host_vendor in
4783 ncr)
4784 lt_cv_deplibs_check_method=pass_all
4786 motorola)
4787 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]'
4788 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4790 esac
4792 esac
4795 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4796 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4797 file_magic_cmd=$lt_cv_file_magic_cmd
4798 deplibs_check_method=$lt_cv_deplibs_check_method
4803 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4805 # find the maximum length of command line arguments
4806 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4807 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4808 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4812 teststring="ABCD"
4814 case $build_os in
4815 msdosdjgpp*)
4816 # On DJGPP, this test can blow up pretty badly due to problems in libc
4817 # (any single argument exceeding 2000 bytes causes a buffer overrun
4818 # during glob expansion). Even if it were fixed, the result of this
4819 # check would be larger than it should be.
4820 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4823 cygwin* | mingw*)
4824 # On Win9x/ME, this test blows up -- it succeeds, but takes
4825 # about 5 minutes as the teststring grows exponentially.
4826 # Worse, since 9x/ME are not pre-emptively multitasking,
4827 # you end up with a "frozen" computer, even though with patience
4828 # the test eventually succeeds (with a max line length of 256k).
4829 # Instead, let's just punt: use the minimum linelength reported by
4830 # all of the supported platforms: 8192 (on NT/2K/XP).
4831 lt_cv_sys_max_cmd_len=8192;
4834 amigaos*)
4835 # On AmigaOS with pdksh, this test takes hours, literally.
4836 # So we just punt and use a minimum line length of 8192.
4837 lt_cv_sys_max_cmd_len=8192;
4840 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4841 # This has been around since 386BSD, at least. Likely further.
4842 if test -x /sbin/sysctl; then
4843 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4844 elif test -x /usr/sbin/sysctl; then
4845 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4846 else
4847 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4849 # And add a safety zone
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853 esac
4857 if test -n "$lt_cv_sys_max_cmd_len" ; then
4858 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4859 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4860 else
4861 echo "$as_me:$LINENO: result: none" >&5
4862 echo "${ECHO_T}none" >&6
4866 # Only perform the check for file, if the check method requires it
4867 case $deplibs_check_method in
4868 file_magic*)
4869 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4870 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4871 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4872 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 case $MAGIC_CMD in
4877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4879 ?:/*)
4880 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4883 ac_save_MAGIC_CMD="$MAGIC_CMD"
4884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4885 ac_dummy="/usr/bin:$PATH"
4886 for ac_dir in $ac_dummy; do
4887 test -z "$ac_dir" && ac_dir=.
4888 if test -f $ac_dir/${ac_tool_prefix}file; then
4889 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4890 if test -n "$file_magic_test_file"; then
4891 case $deplibs_check_method in
4892 "file_magic "*)
4893 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4896 egrep "$file_magic_regex" > /dev/null; then
4898 else
4899 cat <<EOF 1>&2
4901 *** Warning: the command libtool uses to detect shared libraries,
4902 *** $file_magic_cmd, produces output that libtool cannot recognize.
4903 *** The result is that libtool may fail to recognize shared libraries
4904 *** as such. This will affect the creation of libtool libraries that
4905 *** depend on shared libraries, but programs linked with such libtool
4906 *** libraries will work regardless of this problem. Nevertheless, you
4907 *** may want to report the problem to your system manager and/or to
4908 *** bug-libtool@gnu.org
4911 fi ;;
4912 esac
4914 break
4916 done
4917 IFS="$ac_save_ifs"
4918 MAGIC_CMD="$ac_save_MAGIC_CMD"
4920 esac
4923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4924 if test -n "$MAGIC_CMD"; then
4925 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4926 echo "${ECHO_T}$MAGIC_CMD" >&6
4927 else
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4932 if test -z "$lt_cv_path_MAGIC_CMD"; then
4933 if test -n "$ac_tool_prefix"; then
4934 echo "$as_me:$LINENO: checking for file" >&5
4935 echo $ECHO_N "checking for file... $ECHO_C" >&6
4936 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939 case $MAGIC_CMD in
4941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4943 ?:/*)
4944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4947 ac_save_MAGIC_CMD="$MAGIC_CMD"
4948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4949 ac_dummy="/usr/bin:$PATH"
4950 for ac_dir in $ac_dummy; do
4951 test -z "$ac_dir" && ac_dir=.
4952 if test -f $ac_dir/file; then
4953 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4954 if test -n "$file_magic_test_file"; then
4955 case $deplibs_check_method in
4956 "file_magic "*)
4957 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4960 egrep "$file_magic_regex" > /dev/null; then
4962 else
4963 cat <<EOF 1>&2
4965 *** Warning: the command libtool uses to detect shared libraries,
4966 *** $file_magic_cmd, produces output that libtool cannot recognize.
4967 *** The result is that libtool may fail to recognize shared libraries
4968 *** as such. This will affect the creation of libtool libraries that
4969 *** depend on shared libraries, but programs linked with such libtool
4970 *** libraries will work regardless of this problem. Nevertheless, you
4971 *** may want to report the problem to your system manager and/or to
4972 *** bug-libtool@gnu.org
4975 fi ;;
4976 esac
4978 break
4980 done
4981 IFS="$ac_save_ifs"
4982 MAGIC_CMD="$ac_save_MAGIC_CMD"
4984 esac
4987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4988 if test -n "$MAGIC_CMD"; then
4989 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4990 echo "${ECHO_T}$MAGIC_CMD" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4996 else
4997 MAGIC_CMD=:
5003 esac
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5008 echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010 if test "${ac_cv_prog_RANLIB+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 if test -n "$RANLIB"; then
5014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5032 RANLIB=$ac_cv_prog_RANLIB
5033 if test -n "$RANLIB"; then
5034 echo "$as_me:$LINENO: result: $RANLIB" >&5
5035 echo "${ECHO_T}$RANLIB" >&6
5036 else
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5068 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5074 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5080 RANLIB=$ac_ct_RANLIB
5081 else
5082 RANLIB="$ac_cv_prog_RANLIB"
5085 if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}strip; ac_word=$2
5088 echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5090 if test "${ac_cv_prog_STRIP+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 if test -n "$STRIP"; then
5094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5112 STRIP=$ac_cv_prog_STRIP
5113 if test -n "$STRIP"; then
5114 echo "$as_me:$LINENO: result: $STRIP" >&5
5115 echo "${ECHO_T}$STRIP" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5122 if test -z "$ac_cv_prog_STRIP"; then
5123 ac_ct_STRIP=$STRIP
5124 # Extract the first word of "strip", so it can be a program name with args.
5125 set dummy strip; ac_word=$2
5126 echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 if test -n "$ac_ct_STRIP"; then
5132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_ac_ct_STRIP="strip"
5142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5148 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5152 if test -n "$ac_ct_STRIP"; then
5153 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5154 echo "${ECHO_T}$ac_ct_STRIP" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5160 STRIP=$ac_ct_STRIP
5161 else
5162 STRIP="$ac_cv_prog_STRIP"
5166 # Check for any special flags to pass to ltconfig.
5167 libtool_flags="--cache-file=$cache_file"
5168 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5169 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5170 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5171 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5172 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5175 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5176 if test "${enable_libtool_lock+set}" = set; then
5177 enableval="$enable_libtool_lock"
5180 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5181 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5184 # Check whether --with-pic or --without-pic was given.
5185 if test "${with_pic+set}" = set; then
5186 withval="$with_pic"
5187 pic_mode="$withval"
5188 else
5189 pic_mode=default
5191 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5192 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5194 # Some flags need to be propagated to the compiler or linker for good
5195 # libtool support.
5196 case $host in
5197 *-*-irix6*)
5198 # Find out which ABI we are using.
5199 echo '#line 5199 "configure"' > conftest.$ac_ext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; then
5205 if test "$lt_cv_prog_gnu_ld" = yes; then
5206 case `/usr/bin/file conftest.$ac_objext` in
5207 *32-bit*)
5208 LD="${LD-ld} -melf32bsmip"
5210 *N32*)
5211 LD="${LD-ld} -melf32bmipn32"
5213 *64-bit*)
5214 LD="${LD-ld} -melf64bmip"
5216 esac
5217 else
5218 case `/usr/bin/file conftest.$ac_objext` in
5219 *32-bit*)
5220 LD="${LD-ld} -32"
5222 *N32*)
5223 LD="${LD-ld} -n32"
5225 *64-bit*)
5226 LD="${LD-ld} -64"
5228 esac
5231 rm -rf conftest*
5234 ia64-*-hpux*)
5235 # Find out which ABI we are using.
5236 echo 'int i;' > conftest.$ac_ext
5237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5238 (eval $ac_compile) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; then
5242 case "`/usr/bin/file conftest.o`" in
5243 *ELF-32*)
5244 HPUX_IA64_MODE="32"
5246 *ELF-64*)
5247 HPUX_IA64_MODE="64"
5249 esac
5251 rm -rf conftest*
5254 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5255 # Find out which ABI we are using.
5256 echo 'int i;' > conftest.$ac_ext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; then
5262 case "`/usr/bin/file conftest.o`" in
5263 *32-bit*)
5264 case $host in
5265 x86_64-*linux*)
5266 LD="${LD-ld} -m elf_i386"
5268 ppc64-*linux*|powerpc64-*linux*)
5269 LD="${LD-ld} -m elf32ppclinux"
5271 s390x-*linux*)
5272 LD="${LD-ld} -m elf_s390"
5274 sparc64-*linux*)
5275 LD="${LD-ld} -m elf32_sparc"
5277 esac
5279 *64-bit*)
5280 case $host in
5281 x86_64-*linux*)
5282 LD="${LD-ld} -m elf_x86_64"
5284 ppc*-*linux*|powerpc*-*linux*)
5285 LD="${LD-ld} -m elf64ppc"
5287 s390*-*linux*)
5288 LD="${LD-ld} -m elf64_s390"
5290 sparc*-*linux*)
5291 LD="${LD-ld} -m elf64_sparc"
5293 esac
5295 esac
5297 rm -rf conftest*
5300 *-*-sco3.2v5*)
5301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5302 SAVE_CFLAGS="$CFLAGS"
5303 CFLAGS="$CFLAGS -belf"
5304 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5305 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5306 if test "${lt_cv_cc_needs_belf+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5311 ac_ext=c
5312 ac_cpp='$CPP $CPPFLAGS'
5313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317 if test x$gcc_no_link = xyes; then
5318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5320 { (exit 1); exit 1; }; }
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5330 main ()
5334 return 0;
5336 _ACEOF
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag"
5347 || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 (eval $ac_try) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try='test -s conftest$ac_exeext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 lt_cv_cc_needs_belf=yes
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 lt_cv_cc_needs_belf=no
5366 rm -f conftest.err conftest.$ac_objext \
5367 conftest$ac_exeext conftest.$ac_ext
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5375 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5379 CFLAGS="$SAVE_CFLAGS"
5384 esac
5387 # Save cache, so that ltconfig can load it
5388 cat >confcache <<\_ACEOF
5389 # This file is a shell script that caches the results of configure
5390 # tests run on this system so they can be shared between configure
5391 # scripts and configure runs, see configure's option --config-cache.
5392 # It is not useful on other systems. If it contains results you don't
5393 # want to keep, you may remove or edit it.
5395 # config.status only pays attention to the cache file if you give it
5396 # the --recheck option to rerun configure.
5398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5400 # following values.
5402 _ACEOF
5404 # The following way of writing the cache mishandles newlines in values,
5405 # but we know of no workaround that is simple, portable, and efficient.
5406 # So, don't put newlines in cache variables' values.
5407 # Ultrix sh set writes to stderr and can't be redirected directly,
5408 # and sets the high bit in the cache file unless we assign to the vars.
5410 (set) 2>&1 |
5411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5412 *ac_space=\ *)
5413 # `set' does not quote correctly, so add quotes (double-quote
5414 # substitution turns \\\\ into \\, and sed turns \\ into \).
5415 sed -n \
5416 "s/'/'\\\\''/g;
5417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5420 # `set' quotes correctly as required by POSIX, so do not add quotes.
5421 sed -n \
5422 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5424 esac;
5426 sed '
5427 t clear
5428 : clear
5429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5430 t end
5431 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5432 : end' >>confcache
5433 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5434 if test -w $cache_file; then
5435 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5436 cat confcache >$cache_file
5437 else
5438 echo "not updating unwritable cache $cache_file"
5441 rm -f confcache
5443 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5444 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5445 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5446 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5447 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5448 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5449 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5450 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5451 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5452 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5453 echo "$as_me: error: libtool configure failed" >&2;}
5454 { (exit 1); exit 1; }; }
5456 # Reload cache, that may have been modified by ltconfig
5457 if test -r "$cache_file"; then
5458 # Some versions of bash will fail to source /dev/null (special
5459 # files actually), so we avoid doing that.
5460 if test -f "$cache_file"; then
5461 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5462 echo "$as_me: loading cache $cache_file" >&6;}
5463 case $cache_file in
5464 [\\/]* | ?:[\\/]* ) . $cache_file;;
5465 *) . ./$cache_file;;
5466 esac
5468 else
5469 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5470 echo "$as_me: creating cache $cache_file" >&6;}
5471 >$cache_file
5475 # This can be used to rebuild libtool when needed
5476 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5478 # Always use our own libtool.
5479 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5481 # Redirect the config.log output again, so that the ltconfig log is not
5482 # clobbered by the next message.
5483 exec 5>>./config.log
5490 ac_ext=c
5491 ac_cpp='$CPP $CPPFLAGS'
5492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495 if test -n "$ac_tool_prefix"; then
5496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5498 echo "$as_me:$LINENO: checking for $ac_word" >&5
5499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500 if test "${ac_cv_prog_CC+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 else
5503 if test -n "$CC"; then
5504 ac_cv_prog_CC="$CC" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5517 done
5518 done
5522 CC=$ac_cv_prog_CC
5523 if test -n "$CC"; then
5524 echo "$as_me:$LINENO: result: $CC" >&5
5525 echo "${ECHO_T}$CC" >&6
5526 else
5527 echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6
5532 if test -z "$ac_cv_prog_CC"; then
5533 ac_ct_CC=$CC
5534 # Extract the first word of "gcc", so it can be a program name with args.
5535 set dummy gcc; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 if test -n "$ac_ct_CC"; then
5542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_CC="gcc"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5561 if test -n "$ac_ct_CC"; then
5562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5563 echo "${ECHO_T}$ac_ct_CC" >&6
5564 else
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5569 CC=$ac_ct_CC
5570 else
5571 CC="$ac_cv_prog_CC"
5574 if test -z "$CC"; then
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}cc; ac_word=$2
5578 echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580 if test "${ac_cv_prog_CC+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 if test -n "$CC"; then
5584 ac_cv_prog_CC="$CC" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_CC="${ac_tool_prefix}cc"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5597 done
5598 done
5602 CC=$ac_cv_prog_CC
5603 if test -n "$CC"; then
5604 echo "$as_me:$LINENO: result: $CC" >&5
5605 echo "${ECHO_T}$CC" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5612 if test -z "$ac_cv_prog_CC"; then
5613 ac_ct_CC=$CC
5614 # Extract the first word of "cc", so it can be a program name with args.
5615 set dummy cc; ac_word=$2
5616 echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 if test -n "$ac_ct_CC"; then
5622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631 ac_cv_prog_ac_ct_CC="cc"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5641 if test -n "$ac_ct_CC"; then
5642 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5643 echo "${ECHO_T}$ac_ct_CC" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5649 CC=$ac_ct_CC
5650 else
5651 CC="$ac_cv_prog_CC"
5655 if test -z "$CC"; then
5656 # Extract the first word of "cc", so it can be a program name with args.
5657 set dummy cc; ac_word=$2
5658 echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660 if test "${ac_cv_prog_CC+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 if test -n "$CC"; then
5664 ac_cv_prog_CC="$CC" # Let the user override the test.
5665 else
5666 ac_prog_rejected=no
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5675 ac_prog_rejected=yes
5676 continue
5678 ac_cv_prog_CC="cc"
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 break 2
5682 done
5683 done
5685 if test $ac_prog_rejected = yes; then
5686 # We found a bogon in the path, so make sure we never use it.
5687 set dummy $ac_cv_prog_CC
5688 shift
5689 if test $# != 0; then
5690 # We chose a different compiler from the bogus one.
5691 # However, it has the same basename, so the bogon will be chosen
5692 # first if we set CC to just the basename; use the full file name.
5693 shift
5694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5699 CC=$ac_cv_prog_CC
5700 if test -n "$CC"; then
5701 echo "$as_me:$LINENO: result: $CC" >&5
5702 echo "${ECHO_T}$CC" >&6
5703 else
5704 echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6
5709 if test -z "$CC"; then
5710 if test -n "$ac_tool_prefix"; then
5711 for ac_prog in cl
5713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5715 echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717 if test "${ac_cv_prog_CC+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 if test -n "$CC"; then
5721 ac_cv_prog_CC="$CC" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5734 done
5735 done
5739 CC=$ac_cv_prog_CC
5740 if test -n "$CC"; then
5741 echo "$as_me:$LINENO: result: $CC" >&5
5742 echo "${ECHO_T}$CC" >&6
5743 else
5744 echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5748 test -n "$CC" && break
5749 done
5751 if test -z "$CC"; then
5752 ac_ct_CC=$CC
5753 for ac_prog in cl
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 if test -n "$ac_ct_CC"; then
5763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_CC="$ac_prog"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5782 if test -n "$ac_ct_CC"; then
5783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5784 echo "${ECHO_T}$ac_ct_CC" >&6
5785 else
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5790 test -n "$ac_ct_CC" && break
5791 done
5793 CC=$ac_ct_CC
5799 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5800 See \`config.log' for more details." >&5
5801 echo "$as_me: error: no acceptable C compiler found in \$PATH
5802 See \`config.log' for more details." >&2;}
5803 { (exit 1); exit 1; }; }
5805 # Provide some information about the compiler.
5806 echo "$as_me:$LINENO:" \
5807 "checking for C compiler version" >&5
5808 ac_compiler=`set X $ac_compile; echo $2`
5809 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5810 (eval $ac_compiler --version </dev/null >&5) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }
5814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5815 (eval $ac_compiler -v </dev/null >&5) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }
5819 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5820 (eval $ac_compiler -V </dev/null >&5) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }
5825 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5826 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5827 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5838 main ()
5840 #ifndef __GNUC__
5841 choke me
5842 #endif
5845 return 0;
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_compiler_gnu=yes
5871 else
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5875 ac_compiler_gnu=no
5877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5878 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5881 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5882 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5883 GCC=`test $ac_compiler_gnu = yes && echo yes`
5884 ac_test_CFLAGS=${CFLAGS+set}
5885 ac_save_CFLAGS=$CFLAGS
5886 CFLAGS="-g"
5887 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5888 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5889 if test "${ac_cv_prog_cc_g+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5900 main ()
5904 return 0;
5906 _ACEOF
5907 rm -f conftest.$ac_objext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909 (eval $ac_compile) 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag"
5917 || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_prog_cc_g=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_prog_cc_g=no
5936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5939 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5940 if test "$ac_test_CFLAGS" = set; then
5941 CFLAGS=$ac_save_CFLAGS
5942 elif test $ac_cv_prog_cc_g = yes; then
5943 if test "$GCC" = yes; then
5944 CFLAGS="-g -O2"
5945 else
5946 CFLAGS="-g"
5948 else
5949 if test "$GCC" = yes; then
5950 CFLAGS="-O2"
5951 else
5952 CFLAGS=
5955 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5956 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5957 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 ac_cv_prog_cc_stdc=no
5961 ac_save_CC=$CC
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <stdarg.h>
5969 #include <stdio.h>
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5973 struct buf { int x; };
5974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5975 static char *e (p, i)
5976 char **p;
5977 int i;
5979 return p[i];
5981 static char *f (char * (*g) (char **, int), char **p, ...)
5983 char *s;
5984 va_list v;
5985 va_start (v,p);
5986 s = g (p, va_arg (v,int));
5987 va_end (v);
5988 return s;
5991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5992 function prototypes and stuff, but not '\xHH' hex character constants.
5993 These don't provoke an error unfortunately, instead are silently treated
5994 as 'x'. The following induces an error, until -std1 is added to get
5995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5996 array size at least. It's necessary to write '\x00'==0 to get something
5997 that's true only with -std1. */
5998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6000 int test (int i, double x);
6001 struct s1 {int (*f) (int a);};
6002 struct s2 {int (*f) (double a);};
6003 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6004 int argc;
6005 char **argv;
6007 main ()
6009 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6011 return 0;
6013 _ACEOF
6014 # Don't try gcc -ansi; that turns off useful extensions and
6015 # breaks some systems' header files.
6016 # AIX -qlanglvl=ansi
6017 # Ultrix and OSF/1 -std1
6018 # HP-UX 10.20 and later -Ae
6019 # HP-UX older versions -Aa -D_HPUX_SOURCE
6020 # SVR4 -Xc -D__EXTENSIONS__
6021 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6023 CC="$ac_save_CC $ac_arg"
6024 rm -f conftest.$ac_objext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 (eval $ac_try) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_cv_prog_cc_stdc=$ac_arg
6047 break
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6053 rm -f conftest.err conftest.$ac_objext
6054 done
6055 rm -f conftest.$ac_ext conftest.$ac_objext
6056 CC=$ac_save_CC
6060 case "x$ac_cv_prog_cc_stdc" in
6061 x|xno)
6062 echo "$as_me:$LINENO: result: none needed" >&5
6063 echo "${ECHO_T}none needed" >&6 ;;
6065 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6066 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6067 CC="$CC $ac_cv_prog_cc_stdc" ;;
6068 esac
6070 # Some people use a C++ compiler to compile C. Since we use `exit',
6071 # in C++ we need to declare it. In case someone uses the same compiler
6072 # for both compiling C and C++ we need to have the C++ compiler decide
6073 # the declaration of exit, since it's the most demanding environment.
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #ifndef __cplusplus
6076 choke me
6077 #endif
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest.$ac_objext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 for ac_declaration in \
6102 '' \
6103 'extern "C" void std::exit (int) throw (); using std::exit;' \
6104 'extern "C" void std::exit (int); using std::exit;' \
6105 'extern "C" void exit (int) throw ();' \
6106 'extern "C" void exit (int);' \
6107 'void exit (int);'
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_declaration
6116 #include <stdlib.h>
6118 main ()
6120 exit (42);
6122 return 0;
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 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); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 continue
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 $ac_declaration
6163 main ()
6165 exit (42);
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 break
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 done
6200 rm -f conftest*
6201 if test -n "$ac_declaration"; then
6202 echo '#ifdef __cplusplus' >>confdefs.h
6203 echo $ac_declaration >>confdefs.h
6204 echo '#endif' >>confdefs.h
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219 depcc="$CC" am_compiler_list=
6221 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6222 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6223 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6227 # We make a subdir and do the tests there. Otherwise we can end up
6228 # making bogus files that we don't know about and never remove. For
6229 # instance it was reported that on HP-UX the gcc test will end up
6230 # making a dummy file named `D' -- because `-MD' means `put the output
6231 # in D'.
6232 mkdir conftest.dir
6233 # Copy depcomp to subdir because otherwise we won't find it if we're
6234 # using a relative directory.
6235 cp "$am_depcomp" conftest.dir
6236 cd conftest.dir
6237 # We will build objects and dependencies in a subdirectory because
6238 # it helps to detect inapplicable dependency modes. For instance
6239 # both Tru64's cc and ICC support -MD to output dependencies as a
6240 # side effect of compilation, but ICC will put the dependencies in
6241 # the current directory while Tru64 will put them in the object
6242 # directory.
6243 mkdir sub
6245 am_cv_CC_dependencies_compiler_type=none
6246 if test "$am_compiler_list" = ""; then
6247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6249 for depmode in $am_compiler_list; do
6250 # Setup a source with many dependencies, because some compilers
6251 # like to wrap large dependency lists on column 80 (with \), and
6252 # we should not choose a depcomp mode which is confused by this.
6254 # We need to recreate these files for each test, as the compiler may
6255 # overwrite some of them when testing with obscure command lines.
6256 # This happens at least with the AIX C compiler.
6257 : > sub/conftest.c
6258 for i in 1 2 3 4 5 6; do
6259 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6260 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6261 # Solaris 8's {/usr,}/bin/sh.
6262 touch sub/conftst$i.h
6263 done
6264 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6266 case $depmode in
6267 nosideeffect)
6268 # after this tag, mechanisms are not by side-effect, so they'll
6269 # only be used when explicitly requested
6270 if test "x$enable_dependency_tracking" = xyes; then
6271 continue
6272 else
6273 break
6276 none) break ;;
6277 esac
6278 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6279 # mode. It turns out that the SunPro C++ compiler does not properly
6280 # handle `-M -o', and we need to detect this.
6281 if depmode=$depmode \
6282 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6283 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6284 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6285 >/dev/null 2>conftest.err &&
6286 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6287 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6288 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6289 # icc doesn't choke on unknown options, it will just issue warnings
6290 # or remarks (even with -Werror). So we grep stderr for any message
6291 # that says an option was ignored or not supported.
6292 # When given -MP, icc 7.0 and 7.1 complain thusly:
6293 # icc: Command line warning: ignoring option '-M'; no argument required
6294 # The diagnosis changed in icc 8.0:
6295 # icc: Command line remark: option '-MP' not supported
6296 if (grep 'ignoring option' conftest.err ||
6297 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6298 am_cv_CC_dependencies_compiler_type=$depmode
6299 break
6302 done
6304 cd ..
6305 rm -rf conftest.dir
6306 else
6307 am_cv_CC_dependencies_compiler_type=none
6311 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6312 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6313 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6318 test "x$enable_dependency_tracking" != xno \
6319 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6320 am__fastdepCC_TRUE=
6321 am__fastdepCC_FALSE='#'
6322 else
6323 am__fastdepCC_TRUE='#'
6324 am__fastdepCC_FALSE=
6328 ac_ext=c
6329 ac_cpp='$CPP $CPPFLAGS'
6330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6335 # On Suns, sometimes $CPP names a directory.
6336 if test -n "$CPP" && test -d "$CPP"; then
6337 CPP=
6339 if test -z "$CPP"; then
6340 if test "${ac_cv_prog_CPP+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 else
6343 # Double quotes because CPP needs to be expanded
6344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6346 ac_preproc_ok=false
6347 for ac_c_preproc_warn_flag in '' yes
6349 # Use a header file that comes with gcc, so configuring glibc
6350 # with a fresh cross-compiler works.
6351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6352 # <limits.h> exists even on freestanding compilers.
6353 # On the NeXT, cc -E runs the code through the compiler's parser,
6354 # not just through cpp. "Syntax error" is here to catch this case.
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #ifdef __STDC__
6362 # include <limits.h>
6363 #else
6364 # include <assert.h>
6365 #endif
6366 Syntax error
6367 _ACEOF
6368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } >/dev/null; then
6376 if test -s conftest.err; then
6377 ac_cpp_err=$ac_c_preproc_warn_flag
6378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6379 else
6380 ac_cpp_err=
6382 else
6383 ac_cpp_err=yes
6385 if test -z "$ac_cpp_err"; then
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 # Broken: fails on valid input.
6392 continue
6394 rm -f conftest.err conftest.$ac_ext
6396 # OK, works on sane cases. Now check whether non-existent headers
6397 # can be detected and how.
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 #include <ac_nonexistent.h>
6405 _ACEOF
6406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } >/dev/null; then
6414 if test -s conftest.err; then
6415 ac_cpp_err=$ac_c_preproc_warn_flag
6416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6417 else
6418 ac_cpp_err=
6420 else
6421 ac_cpp_err=yes
6423 if test -z "$ac_cpp_err"; then
6424 # Broken: success on invalid input.
6425 continue
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 # Passes both tests.
6431 ac_preproc_ok=:
6432 break
6434 rm -f conftest.err conftest.$ac_ext
6436 done
6437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438 rm -f conftest.err conftest.$ac_ext
6439 if $ac_preproc_ok; then
6440 break
6443 done
6444 ac_cv_prog_CPP=$CPP
6447 CPP=$ac_cv_prog_CPP
6448 else
6449 ac_cv_prog_CPP=$CPP
6451 echo "$as_me:$LINENO: result: $CPP" >&5
6452 echo "${ECHO_T}$CPP" >&6
6453 ac_preproc_ok=false
6454 for ac_c_preproc_warn_flag in '' yes
6456 # Use a header file that comes with gcc, so configuring glibc
6457 # with a fresh cross-compiler works.
6458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459 # <limits.h> exists even on freestanding compilers.
6460 # On the NeXT, cc -E runs the code through the compiler's parser,
6461 # not just through cpp. "Syntax error" is here to catch this case.
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #ifdef __STDC__
6469 # include <limits.h>
6470 #else
6471 # include <assert.h>
6472 #endif
6473 Syntax error
6474 _ACEOF
6475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } >/dev/null; then
6483 if test -s conftest.err; then
6484 ac_cpp_err=$ac_c_preproc_warn_flag
6485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6486 else
6487 ac_cpp_err=
6489 else
6490 ac_cpp_err=yes
6492 if test -z "$ac_cpp_err"; then
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 # Broken: fails on valid input.
6499 continue
6501 rm -f conftest.err conftest.$ac_ext
6503 # OK, works on sane cases. Now check whether non-existent headers
6504 # can be detected and how.
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h. */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <ac_nonexistent.h>
6512 _ACEOF
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } >/dev/null; then
6521 if test -s conftest.err; then
6522 ac_cpp_err=$ac_c_preproc_warn_flag
6523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6524 else
6525 ac_cpp_err=
6527 else
6528 ac_cpp_err=yes
6530 if test -z "$ac_cpp_err"; then
6531 # Broken: success on invalid input.
6532 continue
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 # Passes both tests.
6538 ac_preproc_ok=:
6539 break
6541 rm -f conftest.err conftest.$ac_ext
6543 done
6544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6545 rm -f conftest.err conftest.$ac_ext
6546 if $ac_preproc_ok; then
6548 else
6549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6550 See \`config.log' for more details." >&5
6551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6552 See \`config.log' for more details." >&2;}
6553 { (exit 1); exit 1; }; }
6556 ac_ext=c
6557 ac_cpp='$CPP $CPPFLAGS'
6558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562 ac_ext=cc
6563 ac_cpp='$CXXCPP $CPPFLAGS'
6564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6567 if test -n "$ac_tool_prefix"; then
6568 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6572 echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6574 if test "${ac_cv_prog_CXX+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 if test -n "$CXX"; then
6578 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6591 done
6592 done
6596 CXX=$ac_cv_prog_CXX
6597 if test -n "$CXX"; then
6598 echo "$as_me:$LINENO: result: $CXX" >&5
6599 echo "${ECHO_T}$CXX" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6
6605 test -n "$CXX" && break
6606 done
6608 if test -z "$CXX"; then
6609 ac_ct_CXX=$CXX
6610 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6616 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 if test -n "$ac_ct_CXX"; then
6620 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_CXX="$ac_prog"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6633 done
6634 done
6638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6639 if test -n "$ac_ct_CXX"; then
6640 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6641 echo "${ECHO_T}$ac_ct_CXX" >&6
6642 else
6643 echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6
6647 test -n "$ac_ct_CXX" && break
6648 done
6649 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6651 CXX=$ac_ct_CXX
6655 # Provide some information about the compiler.
6656 echo "$as_me:$LINENO:" \
6657 "checking for C++ compiler version" >&5
6658 ac_compiler=`set X $ac_compile; echo $2`
6659 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6660 (eval $ac_compiler --version </dev/null >&5) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }
6664 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6665 (eval $ac_compiler -v </dev/null >&5) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }
6669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6670 (eval $ac_compiler -V </dev/null >&5) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }
6675 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6676 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6688 main ()
6690 #ifndef __GNUC__
6691 choke me
6692 #endif
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -z "$ac_cxx_werror_flag"
6708 || test ! -s conftest.err'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 (eval $ac_try) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try='test -s conftest.$ac_objext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716 (eval $ac_try) 2>&5
6717 ac_status=$?
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 ac_compiler_gnu=yes
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 ac_compiler_gnu=no
6727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6728 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6731 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6732 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6733 GXX=`test $ac_compiler_gnu = yes && echo yes`
6734 ac_test_CXXFLAGS=${CXXFLAGS+set}
6735 ac_save_CXXFLAGS=$CXXFLAGS
6736 CXXFLAGS="-g"
6737 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6738 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6739 if test "${ac_cv_prog_cxx_g+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h. */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6750 main ()
6754 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_cxx_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest.$ac_objext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_cv_prog_cxx_g=yes
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_cv_prog_cxx_g=no
6786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6789 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6790 if test "$ac_test_CXXFLAGS" = set; then
6791 CXXFLAGS=$ac_save_CXXFLAGS
6792 elif test $ac_cv_prog_cxx_g = yes; then
6793 if test "$GXX" = yes; then
6794 CXXFLAGS="-g -O2"
6795 else
6796 CXXFLAGS="-g"
6798 else
6799 if test "$GXX" = yes; then
6800 CXXFLAGS="-O2"
6801 else
6802 CXXFLAGS=
6805 for ac_declaration in \
6806 '' \
6807 'extern "C" void std::exit (int) throw (); using std::exit;' \
6808 'extern "C" void std::exit (int); using std::exit;' \
6809 'extern "C" void exit (int) throw ();' \
6810 'extern "C" void exit (int);' \
6811 'void exit (int);'
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_declaration
6820 #include <stdlib.h>
6822 main ()
6824 exit (42);
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_cxx_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 continue
6858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 $ac_declaration
6867 main ()
6869 exit (42);
6871 return 0;
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_cxx_werror_flag"
6884 || test ! -s conftest.err'
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); }; } &&
6890 { ac_try='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 break
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 done
6904 rm -f conftest*
6905 if test -n "$ac_declaration"; then
6906 echo '#ifdef __cplusplus' >>confdefs.h
6907 echo $ac_declaration >>confdefs.h
6908 echo '#endif' >>confdefs.h
6911 ac_ext=c
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917 depcc="$CXX" am_compiler_list=
6919 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6920 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6921 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6925 # We make a subdir and do the tests there. Otherwise we can end up
6926 # making bogus files that we don't know about and never remove. For
6927 # instance it was reported that on HP-UX the gcc test will end up
6928 # making a dummy file named `D' -- because `-MD' means `put the output
6929 # in D'.
6930 mkdir conftest.dir
6931 # Copy depcomp to subdir because otherwise we won't find it if we're
6932 # using a relative directory.
6933 cp "$am_depcomp" conftest.dir
6934 cd conftest.dir
6935 # We will build objects and dependencies in a subdirectory because
6936 # it helps to detect inapplicable dependency modes. For instance
6937 # both Tru64's cc and ICC support -MD to output dependencies as a
6938 # side effect of compilation, but ICC will put the dependencies in
6939 # the current directory while Tru64 will put them in the object
6940 # directory.
6941 mkdir sub
6943 am_cv_CXX_dependencies_compiler_type=none
6944 if test "$am_compiler_list" = ""; then
6945 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6947 for depmode in $am_compiler_list; do
6948 # Setup a source with many dependencies, because some compilers
6949 # like to wrap large dependency lists on column 80 (with \), and
6950 # we should not choose a depcomp mode which is confused by this.
6952 # We need to recreate these files for each test, as the compiler may
6953 # overwrite some of them when testing with obscure command lines.
6954 # This happens at least with the AIX C compiler.
6955 : > sub/conftest.c
6956 for i in 1 2 3 4 5 6; do
6957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6959 # Solaris 8's {/usr,}/bin/sh.
6960 touch sub/conftst$i.h
6961 done
6962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6964 case $depmode in
6965 nosideeffect)
6966 # after this tag, mechanisms are not by side-effect, so they'll
6967 # only be used when explicitly requested
6968 if test "x$enable_dependency_tracking" = xyes; then
6969 continue
6970 else
6971 break
6974 none) break ;;
6975 esac
6976 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6977 # mode. It turns out that the SunPro C++ compiler does not properly
6978 # handle `-M -o', and we need to detect this.
6979 if depmode=$depmode \
6980 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6982 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6983 >/dev/null 2>conftest.err &&
6984 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6985 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6986 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6987 # icc doesn't choke on unknown options, it will just issue warnings
6988 # or remarks (even with -Werror). So we grep stderr for any message
6989 # that says an option was ignored or not supported.
6990 # When given -MP, icc 7.0 and 7.1 complain thusly:
6991 # icc: Command line warning: ignoring option '-M'; no argument required
6992 # The diagnosis changed in icc 8.0:
6993 # icc: Command line remark: option '-MP' not supported
6994 if (grep 'ignoring option' conftest.err ||
6995 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6996 am_cv_CXX_dependencies_compiler_type=$depmode
6997 break
7000 done
7002 cd ..
7003 rm -rf conftest.dir
7004 else
7005 am_cv_CXX_dependencies_compiler_type=none
7009 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7010 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7011 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7016 test "x$enable_dependency_tracking" != xno \
7017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7018 am__fastdepCXX_TRUE=
7019 am__fastdepCXX_FALSE='#'
7020 else
7021 am__fastdepCXX_TRUE='#'
7022 am__fastdepCXX_FALSE=
7025 ac_ext=cc
7026 ac_cpp='$CXXCPP $CPPFLAGS'
7027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7030 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7031 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7032 if test -z "$CXXCPP"; then
7033 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 # Double quotes because CXXCPP needs to be expanded
7037 for CXXCPP in "$CXX -E" "/lib/cpp"
7039 ac_preproc_ok=false
7040 for ac_cxx_preproc_warn_flag in '' yes
7042 # Use a header file that comes with gcc, so configuring glibc
7043 # with a fresh cross-compiler works.
7044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045 # <limits.h> exists even on freestanding compilers.
7046 # On the NeXT, cc -E runs the code through the compiler's parser,
7047 # not just through cpp. "Syntax error" is here to catch this case.
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 #ifdef __STDC__
7055 # include <limits.h>
7056 #else
7057 # include <assert.h>
7058 #endif
7059 Syntax error
7060 _ACEOF
7061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } >/dev/null; then
7069 if test -s conftest.err; then
7070 ac_cpp_err=$ac_cxx_preproc_warn_flag
7071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7072 else
7073 ac_cpp_err=
7075 else
7076 ac_cpp_err=yes
7078 if test -z "$ac_cpp_err"; then
7080 else
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 # Broken: fails on valid input.
7085 continue
7087 rm -f conftest.err conftest.$ac_ext
7089 # OK, works on sane cases. Now check whether non-existent headers
7090 # can be detected and how.
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <ac_nonexistent.h>
7098 _ACEOF
7099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } >/dev/null; then
7107 if test -s conftest.err; then
7108 ac_cpp_err=$ac_cxx_preproc_warn_flag
7109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7110 else
7111 ac_cpp_err=
7113 else
7114 ac_cpp_err=yes
7116 if test -z "$ac_cpp_err"; then
7117 # Broken: success on invalid input.
7118 continue
7119 else
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7123 # Passes both tests.
7124 ac_preproc_ok=:
7125 break
7127 rm -f conftest.err conftest.$ac_ext
7129 done
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then
7133 break
7136 done
7137 ac_cv_prog_CXXCPP=$CXXCPP
7140 CXXCPP=$ac_cv_prog_CXXCPP
7141 else
7142 ac_cv_prog_CXXCPP=$CXXCPP
7144 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7145 echo "${ECHO_T}$CXXCPP" >&6
7146 ac_preproc_ok=false
7147 for ac_cxx_preproc_warn_flag in '' yes
7149 # Use a header file that comes with gcc, so configuring glibc
7150 # with a fresh cross-compiler works.
7151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152 # <limits.h> exists even on freestanding compilers.
7153 # On the NeXT, cc -E runs the code through the compiler's parser,
7154 # not just through cpp. "Syntax error" is here to catch this case.
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #ifdef __STDC__
7162 # include <limits.h>
7163 #else
7164 # include <assert.h>
7165 #endif
7166 Syntax error
7167 _ACEOF
7168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } >/dev/null; then
7176 if test -s conftest.err; then
7177 ac_cpp_err=$ac_cxx_preproc_warn_flag
7178 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7179 else
7180 ac_cpp_err=
7182 else
7183 ac_cpp_err=yes
7185 if test -z "$ac_cpp_err"; then
7187 else
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7191 # Broken: fails on valid input.
7192 continue
7194 rm -f conftest.err conftest.$ac_ext
7196 # OK, works on sane cases. Now check whether non-existent headers
7197 # can be detected and how.
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #include <ac_nonexistent.h>
7205 _ACEOF
7206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } >/dev/null; then
7214 if test -s conftest.err; then
7215 ac_cpp_err=$ac_cxx_preproc_warn_flag
7216 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7217 else
7218 ac_cpp_err=
7220 else
7221 ac_cpp_err=yes
7223 if test -z "$ac_cpp_err"; then
7224 # Broken: success on invalid input.
7225 continue
7226 else
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 # Passes both tests.
7231 ac_preproc_ok=:
7232 break
7234 rm -f conftest.err conftest.$ac_ext
7236 done
7237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7238 rm -f conftest.err conftest.$ac_ext
7239 if $ac_preproc_ok; then
7241 else
7242 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7243 See \`config.log' for more details." >&5
7244 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7245 See \`config.log' for more details." >&2;}
7246 { (exit 1); exit 1; }; }
7249 ac_ext=c
7250 ac_cpp='$CPP $CPPFLAGS'
7251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7258 lt_save_CC="$CC"
7259 lt_save_CFLAGS="$CFLAGS"
7260 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7261 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7262 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7263 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7264 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7265 deplibs_check_method="$deplibs_check_method" \
7266 file_magic_cmd="$file_magic_cmd" \
7267 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7268 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7269 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7270 echo "$as_me: error: libtool tag configuration failed" >&2;}
7271 { (exit 1); exit 1; }; }
7272 CC="$lt_save_CC"
7273 CFLAGS="$lt_save_CFLAGS"
7275 # Redirect the config.log output again, so that the ltconfig log is not
7276 # clobbered by the next message.
7277 exec 5>>./config.log
7282 if test "x${COMPILE_COLLECTIONS}" = xyes; then
7283 # Extract the first word of "perl", so it can be a program name with args.
7284 set dummy perl; ac_word=$2
7285 echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287 if test "${ac_cv_path_PERL+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290 case $PERL in
7291 [\\/]* | ?:[\\/]*)
7292 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7310 esac
7312 PERL=$ac_cv_path_PERL
7314 if test -n "$PERL"; then
7315 echo "$as_me:$LINENO: result: $PERL" >&5
7316 echo "${ECHO_T}$PERL" >&6
7317 else
7318 echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6
7324 ac_config_files="$ac_config_files lib/mkcollections.pl"
7326 ac_config_commands="$ac_config_commands mkcollections.pl"
7330 if test "x${COMPILE_JNI}" = xyes; then
7331 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7332 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7333 if test "${ac_cv_header_stdc+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <stdlib.h>
7343 #include <stdarg.h>
7344 #include <string.h>
7345 #include <float.h>
7348 main ()
7352 return 0;
7354 _ACEOF
7355 rm -f conftest.$ac_objext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } &&
7364 { ac_try='test -z "$ac_c_werror_flag"
7365 || test ! -s conftest.err'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; } &&
7371 { ac_try='test -s conftest.$ac_objext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_cv_header_stdc=yes
7378 else
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7382 ac_cv_header_stdc=no
7384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7386 if test $ac_cv_header_stdc = yes; then
7387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7388 cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h. */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7394 #include <string.h>
7396 _ACEOF
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398 $EGREP "memchr" >/dev/null 2>&1; then
7400 else
7401 ac_cv_header_stdc=no
7403 rm -f conftest*
7407 if test $ac_cv_header_stdc = yes; then
7408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #include <stdlib.h>
7417 _ACEOF
7418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7419 $EGREP "free" >/dev/null 2>&1; then
7421 else
7422 ac_cv_header_stdc=no
7424 rm -f conftest*
7428 if test $ac_cv_header_stdc = yes; then
7429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7430 if test "$cross_compiling" = yes; then
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <ctype.h>
7440 #if ((' ' & 0x0FF) == 0x020)
7441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7443 #else
7444 # define ISLOWER(c) \
7445 (('a' <= (c) && (c) <= 'i') \
7446 || ('j' <= (c) && (c) <= 'r') \
7447 || ('s' <= (c) && (c) <= 'z'))
7448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7449 #endif
7451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7453 main ()
7455 int i;
7456 for (i = 0; i < 256; i++)
7457 if (XOR (islower (i), ISLOWER (i))
7458 || toupper (i) != TOUPPER (i))
7459 exit(2);
7460 exit (0);
7462 _ACEOF
7463 rm -f conftest$ac_exeext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465 (eval $ac_link) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7475 else
7476 echo "$as_me: program exited with status $ac_status" >&5
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 ( exit $ac_status )
7481 ac_cv_header_stdc=no
7483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7489 if test $ac_cv_header_stdc = yes; then
7491 cat >>confdefs.h <<\_ACEOF
7492 #define STDC_HEADERS 1
7493 _ACEOF
7498 echo "$as_me:$LINENO: checking size of void *" >&5
7499 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7500 if test "${ac_cv_sizeof_void_p+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include "confdefs.h"
7511 #include <sys/types.h>
7515 main ()
7517 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524 (eval $ac_compile) 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -z "$ac_c_werror_flag"
7532 || test ! -s conftest.err'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; } &&
7538 { ac_try='test -s conftest.$ac_objext'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540 (eval $ac_try) 2>&5
7541 ac_status=$?
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; }; then
7544 ac_cv_sizeof_void_p=$ac_size
7545 else
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7552 done
7556 if test x$ac_cv_sizeof_void_p = x ; then
7557 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
7558 echo "$as_me: error: cannot determine a size for void *" >&2;}
7559 { (exit 1); exit 1; }; }
7561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7562 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7564 cat >>confdefs.h <<_ACEOF
7565 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7566 _ACEOF
7570 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7571 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7572 if test "${ac_cv_c_bigendian+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 ac_cv_c_bigendian=unknown
7576 # See if sys/param.h defines the BYTE_ORDER macro.
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h. */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <sys/types.h>
7584 #include <sys/param.h>
7586 main ()
7589 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7590 bogus endian macros
7591 #endif
7593 return 0;
7595 _ACEOF
7596 rm -f conftest.$ac_objext
7597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7598 (eval $ac_compile) 2>conftest.er1
7599 ac_status=$?
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -z "$ac_c_werror_flag"
7606 || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 # It does; now see whether it defined to BIG_ENDIAN or not.
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <sys/types.h>
7626 #include <sys/param.h>
7628 main ()
7631 #if BYTE_ORDER != BIG_ENDIAN
7632 not big endian
7633 #endif
7635 return 0;
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>conftest.er1
7641 ac_status=$?
7642 grep -v '^ *+' conftest.er1 >conftest.err
7643 rm -f conftest.er1
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -z "$ac_c_werror_flag"
7648 || test ! -s conftest.err'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; } &&
7654 { ac_try='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 (eval $ac_try) 2>&5
7657 ac_status=$?
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 ac_cv_c_bigendian=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 ac_cv_c_bigendian=no
7667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7668 else
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7674 if test $ac_cv_c_bigendian = unknown; then
7675 if test "$cross_compiling" = yes; then
7676 echo $ac_n "cross-compiling... " 2>&6
7677 else
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 main () {
7685 /* Are we little or big endian? From Harbison&Steele. */
7686 union
7688 long l;
7689 char c[sizeof (long)];
7690 } u;
7691 u.l = 1;
7692 exit (u.c[sizeof (long) - 1] == 1);
7694 _ACEOF
7695 rm -f conftest$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_c_bigendian=no
7707 else
7708 echo "$as_me: program exited with status $ac_status" >&5
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ( exit $ac_status )
7713 ac_cv_c_bigendian=yes
7715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7719 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7720 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7721 if test $ac_cv_c_bigendian = unknown; then
7722 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
7723 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
7725 cat >conftest.c <<EOF
7726 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7727 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7728 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7729 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7730 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7731 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7732 int main() { _ascii (); _ebcdic (); return 0; }
7734 if test -f conftest.c ; then
7735 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7736 if test `grep -l BIGenDianSyS conftest.o` ; then
7737 echo $ac_n ' big endian probe OK, ' 1>&6
7738 ac_cv_c_bigendian=yes
7740 if test `grep -l LiTTleEnDian conftest.o` ; then
7741 echo $ac_n ' little endian probe OK, ' 1>&6
7742 if test $ac_cv_c_bigendian = yes ; then
7743 ac_cv_c_bigendian=unknown;
7744 else
7745 ac_cv_c_bigendian=no
7748 echo $ac_n 'guessing bigendian ... ' >&6
7751 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7752 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7754 if test $ac_cv_c_bigendian = yes; then
7756 cat >>confdefs.h <<\_ACEOF
7757 #define WORDS_BIGENDIAN 1
7758 _ACEOF
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HOST_WORDS_BIG_ENDIAN 1
7763 _ACEOF
7765 BYTEORDER=4321
7766 else
7767 BYTEORDER=1234
7770 cat >>confdefs.h <<_ACEOF
7771 #define BYTEORDER $BYTEORDER
7772 _ACEOF
7774 if test $ac_cv_c_bigendian = unknown; then
7775 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
7776 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
7777 { (exit 1); exit 1; }; }
7796 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
7797 asm/ioctls.h \
7798 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
7799 sys/time.h \
7800 sys/select.h \
7801 crt_externs.h \
7802 fcntl.h \
7803 sys/mman.h
7805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814 else
7815 # Is the header compilable?
7816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 #include <$ac_header>
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_header_compiler=yes
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 ac_header_compiler=no
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858 echo "${ECHO_T}$ac_header_compiler" >&6
7860 # Is the header present?
7861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7863 cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h. */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 #include <$ac_header>
7870 _ACEOF
7871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } >/dev/null; then
7879 if test -s conftest.err; then
7880 ac_cpp_err=$ac_c_preproc_warn_flag
7881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7882 else
7883 ac_cpp_err=
7885 else
7886 ac_cpp_err=yes
7888 if test -z "$ac_cpp_err"; then
7889 ac_header_preproc=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_header_preproc=no
7896 rm -f conftest.err conftest.$ac_ext
7897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7898 echo "${ECHO_T}$ac_header_preproc" >&6
7900 # So? What about this header?
7901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7902 yes:no: )
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7907 ac_header_preproc=yes
7909 no:yes:* )
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7923 cat <<\_ASBOX
7924 ## -------------------------------- ##
7925 ## Report this to classpath@gnu.org ##
7926 ## -------------------------------- ##
7927 _ASBOX
7929 sed "s/^/$as_me: WARNING: /" >&2
7931 esac
7932 echo "$as_me:$LINENO: checking for $ac_header" >&5
7933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 eval "$as_ac_Header=\$ac_header_preproc"
7939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7944 cat >>confdefs.h <<_ACEOF
7945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 _ACEOF
7950 done
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 #include <stdint.h>
7961 _ACEOF
7962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7963 $EGREP "uint32_t" >/dev/null 2>&1; then
7965 cat >>confdefs.h <<\_ACEOF
7966 #define HAVE_INT32_DEFINED 1
7967 _ACEOF
7970 rm -f conftest*
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 #include <inttypes.h>
7980 _ACEOF
7981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7982 $EGREP "uint32_t" >/dev/null 2>&1; then
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_INT32_DEFINED 1
7986 _ACEOF
7989 rm -f conftest*
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 #include <sys/types.h>
7999 _ACEOF
8000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001 $EGREP "u_int32_t" >/dev/null 2>&1; then
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_BSD_INT32_DEFINED 1
8005 _ACEOF
8008 rm -f conftest*
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <sys/config.h>
8018 _ACEOF
8019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8020 $EGREP "u_int32_t" >/dev/null 2>&1; then
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_BSD_INT32_DEFINED 1
8024 _ACEOF
8027 rm -f conftest*
8072 for ac_func in ftruncate fsync select \
8073 gethostname socket strerror fork pipe execve open close \
8074 lseek fstat read write htonl memset htons connect \
8075 getsockname getpeername bind listen accept \
8076 recvfrom send sendto setsockopt getsockopt time mktime \
8077 localtime_r \
8078 strerror_r \
8079 fcntl \
8080 mmap munmap mincore msync madvise getpagesize sysconf \
8081 isnan
8083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8084 echo "$as_me:$LINENO: checking for $ac_func" >&5
8085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8086 if eval "test \"\${$as_ac_var+set}\" = set"; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 if test x$gcc_no_link = xyes; then
8090 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8091 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8092 { (exit 1); exit 1; }; }
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8102 #define $ac_func innocuous_$ac_func
8104 /* System header to define __stub macros and hopefully few prototypes,
8105 which can conflict with char $ac_func (); below.
8106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8107 <limits.h> exists even on freestanding compilers. */
8109 #ifdef __STDC__
8110 # include <limits.h>
8111 #else
8112 # include <assert.h>
8113 #endif
8115 #undef $ac_func
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 #ifdef __cplusplus
8119 extern "C"
8121 #endif
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8124 char $ac_func ();
8125 /* The GNU C library defines this for functions which it implements
8126 to always fail with ENOSYS. Some functions are actually named
8127 something starting with __ and the normal name is an alias. */
8128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8129 choke me
8130 #else
8131 char (*f) () = $ac_func;
8132 #endif
8133 #ifdef __cplusplus
8135 #endif
8138 main ()
8140 return f != $ac_func;
8142 return 0;
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 eval "$as_ac_var=yes"
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 eval "$as_ac_var=no"
8174 rm -f conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8179 if test `eval echo '${'$as_ac_var'}'` = yes; then
8180 cat >>confdefs.h <<_ACEOF
8181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8182 _ACEOF
8185 done
8188 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8189 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8190 if test "${ac_cv_header_time+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <sys/types.h>
8200 #include <sys/time.h>
8201 #include <time.h>
8204 main ()
8206 if ((struct tm *) 0)
8207 return 0;
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8214 (eval $ac_compile) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_header_time=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_header_time=no
8241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8243 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8244 echo "${ECHO_T}$ac_cv_header_time" >&6
8245 if test $ac_cv_header_time = yes; then
8247 cat >>confdefs.h <<\_ACEOF
8248 #define TIME_WITH_SYS_TIME 1
8249 _ACEOF
8253 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8254 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8255 if test "${ac_cv_struct_tm+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 #include <sys/types.h>
8265 #include <time.h>
8268 main ()
8270 struct tm *tp; tp->tm_sec;
8272 return 0;
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8277 (eval $ac_compile) 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -z "$ac_c_werror_flag"
8285 || test ! -s conftest.err'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 (eval $ac_try) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; } &&
8291 { ac_try='test -s conftest.$ac_objext'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; }; then
8297 ac_cv_struct_tm=time.h
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_cv_struct_tm=sys/time.h
8304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8307 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8308 if test $ac_cv_struct_tm = sys/time.h; then
8310 cat >>confdefs.h <<\_ACEOF
8311 #define TM_IN_SYS_TIME 1
8312 _ACEOF
8316 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8317 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8318 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 #include <sys/types.h>
8328 #include <$ac_cv_struct_tm>
8332 main ()
8334 static struct tm ac_aggr;
8335 if (ac_aggr.tm_zone)
8336 return 0;
8338 return 0;
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353 (eval $ac_try) 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359 (eval $ac_try) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_member_struct_tm_tm_zone=yes
8364 else
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 #include <sys/types.h>
8375 #include <$ac_cv_struct_tm>
8379 main ()
8381 static struct tm ac_aggr;
8382 if (sizeof ac_aggr.tm_zone)
8383 return 0;
8385 return 0;
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390 (eval $ac_compile) 2>conftest.er1
8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag"
8398 || test ! -s conftest.err'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400 (eval $ac_try) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest.$ac_objext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_member_struct_tm_tm_zone=yes
8411 else
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_cv_member_struct_tm_tm_zone=no
8417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8421 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8422 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8423 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8425 cat >>confdefs.h <<_ACEOF
8426 #define HAVE_STRUCT_TM_TM_ZONE 1
8427 _ACEOF
8432 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_TM_ZONE 1
8436 _ACEOF
8438 else
8439 echo "$as_me:$LINENO: checking for tzname" >&5
8440 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8441 if test "${ac_cv_var_tzname+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444 if test x$gcc_no_link = xyes; then
8445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8446 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8447 { (exit 1); exit 1; }; }
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h. */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 #include <time.h>
8456 #ifndef tzname /* For SGI. */
8457 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8458 #endif
8461 main ()
8463 atoi(*tzname);
8465 return 0;
8467 _ACEOF
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470 (eval $ac_link) 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_var_tzname=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_var_tzname=no
8497 rm -f conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8500 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8501 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8502 if test $ac_cv_var_tzname = yes; then
8504 cat >>confdefs.h <<\_ACEOF
8505 #define HAVE_TZNAME 1
8506 _ACEOF
8512 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
8513 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 #include <time.h>
8522 main ()
8524 struct tm tim; tim.tm_gmtoff = 0;
8526 return 0;
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8552 cat >>confdefs.h <<\_ACEOF
8553 #define STRUCT_TM_HAS_GMTOFF 1
8554 _ACEOF
8556 echo "$as_me:$LINENO: result: yes" >&5
8557 echo "${ECHO_T}yes" >&6
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6
8564 echo "$as_me:$LINENO: checking for global timezone variable" >&5
8565 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h. */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #include <time.h>
8574 main ()
8576 void i(){long z2 = 2*timezone;}
8578 return 0;
8580 _ACEOF
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_TIMEZONE 1
8606 _ACEOF
8608 echo "$as_me:$LINENO: result: yes" >&5
8609 echo "${ECHO_T}yes" >&6
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6
8616 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
8617 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 #include <time.h>
8626 main ()
8628 long z2 = _timezone;
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8635 (eval $ac_compile) 2>conftest.er1
8636 ac_status=$?
8637 grep -v '^ *+' conftest.er1 >conftest.err
8638 rm -f conftest.er1
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5
8646 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest.$ac_objext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8656 cat >>confdefs.h <<\_ACEOF
8657 #define HAVE_UNDERSCORE_TIMEZONE 1
8658 _ACEOF
8660 echo "$as_me:$LINENO: result: yes" >&5
8661 echo "${ECHO_T}yes" >&6
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8676 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8677 if test "${ac_cv_c_const+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8688 main ()
8690 /* FIXME: Include the comments suggested by Paul. */
8691 #ifndef __cplusplus
8692 /* Ultrix mips cc rejects this. */
8693 typedef int charset[2];
8694 const charset x;
8695 /* SunOS 4.1.1 cc rejects this. */
8696 char const *const *ccp;
8697 char **p;
8698 /* NEC SVR4.0.2 mips cc rejects this. */
8699 struct point {int x, y;};
8700 static struct point const zero = {0,0};
8701 /* AIX XL C 1.02.0.0 rejects this.
8702 It does not let you subtract one const X* pointer from another in
8703 an arm of an if-expression whose if-part is not a constant
8704 expression */
8705 const char *g = "string";
8706 ccp = &g + (g ? g-g : 0);
8707 /* HPUX 7.0 cc rejects these. */
8708 ++ccp;
8709 p = (char**) ccp;
8710 ccp = (char const *const *) p;
8711 { /* SCO 3.2v4 cc rejects this. */
8712 char *t;
8713 char const *s = 0 ? (char *) 0 : (char const *) 0;
8715 *t++ = 0;
8717 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8718 int x[] = {25, 17};
8719 const int *foo = &x[0];
8720 ++foo;
8722 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8723 typedef const int *iptr;
8724 iptr p = 0;
8725 ++p;
8727 { /* AIX XL C 1.02.0.0 rejects this saying
8728 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8729 struct s { int j; const int *ap[3]; };
8730 struct s *b; b->j = 5;
8732 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8733 const int foo = 10;
8735 #endif
8738 return 0;
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_c_const=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_c_const=no
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8773 echo "${ECHO_T}$ac_cv_c_const" >&6
8774 if test $ac_cv_c_const = no; then
8776 cat >>confdefs.h <<\_ACEOF
8777 #define const
8778 _ACEOF
8782 echo "$as_me:$LINENO: checking for __attribute__" >&5
8783 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
8784 if test "${ac_cv_c_attribute+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 void foo(void) __attribute__ ((__noreturn__));
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8799 (eval $ac_compile) 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -z "$ac_c_werror_flag"
8807 || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest.$ac_objext'
8814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 ac_cv_c_attribute=yes
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_c_attribute=no
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
8831 echo "${ECHO_T}$ac_cv_c_attribute" >&6
8834 case $ac_cv_c_attribute in
8835 yes) ;;
8837 cat >>confdefs.h <<_ACEOF
8838 #define __attribute__(x) /* nothing */
8839 _ACEOF
8841 esac
8845 if test "X$prefix" = "XNONE"; then
8846 acl_final_prefix="$ac_default_prefix"
8847 else
8848 acl_final_prefix="$prefix"
8850 if test "X$exec_prefix" = "XNONE"; then
8851 acl_final_exec_prefix='${prefix}'
8852 else
8853 acl_final_exec_prefix="$exec_prefix"
8855 acl_save_prefix="$prefix"
8856 prefix="$acl_final_prefix"
8857 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8858 prefix="$acl_save_prefix"
8861 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8862 if test "${with_gnu_ld+set}" = set; then
8863 withval="$with_gnu_ld"
8864 test "$withval" = no || with_gnu_ld=yes
8865 else
8866 with_gnu_ld=no
8868 # Prepare PATH_SEPARATOR.
8869 # The user is always right.
8870 if test "${PATH_SEPARATOR+set}" != set; then
8871 echo "#! /bin/sh" >conf$$.sh
8872 echo "exit 0" >>conf$$.sh
8873 chmod +x conf$$.sh
8874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8875 PATH_SEPARATOR=';'
8876 else
8877 PATH_SEPARATOR=:
8879 rm -f conf$$.sh
8881 ac_prog=ld
8882 if test "$GCC" = yes; then
8883 # Check if gcc -print-prog-name=ld gives a path.
8884 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8885 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8886 case $host in
8887 *-*-mingw*)
8888 # gcc leaves a trailing carriage return which upsets mingw
8889 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8891 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8892 esac
8893 case $ac_prog in
8894 # Accept absolute paths.
8895 [\\/]* | [A-Za-z]:[\\/]*)
8896 re_direlt='/[^/][^/]*/\.\./'
8897 # Canonicalize the path of ld
8898 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8899 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8900 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8901 done
8902 test -z "$LD" && LD="$ac_prog"
8905 # If it fails, then pretend we aren't using GCC.
8906 ac_prog=ld
8909 # If it is relative, then search for the first ld in PATH.
8910 with_gnu_ld=unknown
8912 esac
8913 elif test "$with_gnu_ld" = yes; then
8914 echo "$as_me:$LINENO: checking for GNU ld" >&5
8915 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8916 else
8917 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8918 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8920 if test "${acl_cv_path_LD+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 if test -z "$LD"; then
8924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8925 for ac_dir in $PATH; do
8926 test -z "$ac_dir" && ac_dir=.
8927 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8928 acl_cv_path_LD="$ac_dir/$ac_prog"
8929 # Check to see if the program is GNU ld. I'd rather use --version,
8930 # but apparently some GNU ld's only accept -v.
8931 # Break only if it was the GNU/non-GNU ld that we prefer.
8932 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8933 test "$with_gnu_ld" != no && break
8934 else
8935 test "$with_gnu_ld" != yes && break
8938 done
8939 IFS="$ac_save_ifs"
8940 else
8941 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8945 LD="$acl_cv_path_LD"
8946 if test -n "$LD"; then
8947 echo "$as_me:$LINENO: result: $LD" >&5
8948 echo "${ECHO_T}$LD" >&6
8949 else
8950 echo "$as_me:$LINENO: result: no" >&5
8951 echo "${ECHO_T}no" >&6
8953 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8954 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8955 { (exit 1); exit 1; }; }
8956 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8957 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8958 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8962 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8963 acl_cv_prog_gnu_ld=yes
8964 else
8965 acl_cv_prog_gnu_ld=no
8968 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8969 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8970 with_gnu_ld=$acl_cv_prog_gnu_ld
8974 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8975 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8976 if test "${acl_cv_rpath+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8980 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8981 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8982 . ./conftest.sh
8983 rm -f ./conftest.sh
8984 acl_cv_rpath=done
8987 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8988 echo "${ECHO_T}$acl_cv_rpath" >&6
8989 wl="$acl_cv_wl"
8990 libext="$acl_cv_libext"
8991 shlibext="$acl_cv_shlibext"
8992 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8993 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8994 hardcode_direct="$acl_cv_hardcode_direct"
8995 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8996 # Check whether --enable-rpath or --disable-rpath was given.
8997 if test "${enable_rpath+set}" = set; then
8998 enableval="$enable_rpath"
9000 else
9001 enable_rpath=yes
9010 use_additional=yes
9012 acl_save_prefix="$prefix"
9013 prefix="$acl_final_prefix"
9014 acl_save_exec_prefix="$exec_prefix"
9015 exec_prefix="$acl_final_exec_prefix"
9017 eval additional_includedir=\"$includedir\"
9018 eval additional_libdir=\"$libdir\"
9020 exec_prefix="$acl_save_exec_prefix"
9021 prefix="$acl_save_prefix"
9024 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9025 if test "${with_libiconv_prefix+set}" = set; then
9026 withval="$with_libiconv_prefix"
9028 if test "X$withval" = "Xno"; then
9029 use_additional=no
9030 else
9031 if test "X$withval" = "X"; then
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9038 eval additional_includedir=\"$includedir\"
9039 eval additional_libdir=\"$libdir\"
9041 exec_prefix="$acl_save_exec_prefix"
9042 prefix="$acl_save_prefix"
9044 else
9045 additional_includedir="$withval/include"
9046 additional_libdir="$withval/lib"
9051 LIBICONV=
9052 LTLIBICONV=
9053 INCICONV=
9054 rpathdirs=
9055 ltrpathdirs=
9056 names_already_handled=
9057 names_next_round='iconv '
9058 while test -n "$names_next_round"; do
9059 names_this_round="$names_next_round"
9060 names_next_round=
9061 for name in $names_this_round; do
9062 already_handled=
9063 for n in $names_already_handled; do
9064 if test "$n" = "$name"; then
9065 already_handled=yes
9066 break
9068 done
9069 if test -z "$already_handled"; then
9070 names_already_handled="$names_already_handled $name"
9071 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9072 eval value=\"\$HAVE_LIB$uppername\"
9073 if test -n "$value"; then
9074 if test "$value" = yes; then
9075 eval value=\"\$LIB$uppername\"
9076 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9077 eval value=\"\$LTLIB$uppername\"
9078 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9079 else
9082 else
9083 found_dir=
9084 found_la=
9085 found_so=
9086 found_a=
9087 if test $use_additional = yes; then
9088 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9089 found_dir="$additional_libdir"
9090 found_so="$additional_libdir/lib$name.$shlibext"
9091 if test -f "$additional_libdir/lib$name.la"; then
9092 found_la="$additional_libdir/lib$name.la"
9094 else
9095 if test -f "$additional_libdir/lib$name.$libext"; then
9096 found_dir="$additional_libdir"
9097 found_a="$additional_libdir/lib$name.$libext"
9098 if test -f "$additional_libdir/lib$name.la"; then
9099 found_la="$additional_libdir/lib$name.la"
9104 if test "X$found_dir" = "X"; then
9105 for x in $LDFLAGS $LTLIBICONV; do
9107 acl_save_prefix="$prefix"
9108 prefix="$acl_final_prefix"
9109 acl_save_exec_prefix="$exec_prefix"
9110 exec_prefix="$acl_final_exec_prefix"
9111 eval x=\"$x\"
9112 exec_prefix="$acl_save_exec_prefix"
9113 prefix="$acl_save_prefix"
9115 case "$x" in
9116 -L*)
9117 dir=`echo "X$x" | sed -e 's/^X-L//'`
9118 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9119 found_dir="$dir"
9120 found_so="$dir/lib$name.$shlibext"
9121 if test -f "$dir/lib$name.la"; then
9122 found_la="$dir/lib$name.la"
9124 else
9125 if test -f "$dir/lib$name.$libext"; then
9126 found_dir="$dir"
9127 found_a="$dir/lib$name.$libext"
9128 if test -f "$dir/lib$name.la"; then
9129 found_la="$dir/lib$name.la"
9134 esac
9135 if test "X$found_dir" != "X"; then
9136 break
9138 done
9140 if test "X$found_dir" != "X"; then
9141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9142 if test "X$found_so" != "X"; then
9143 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9145 else
9146 haveit=
9147 for x in $ltrpathdirs; do
9148 if test "X$x" = "X$found_dir"; then
9149 haveit=yes
9150 break
9152 done
9153 if test -z "$haveit"; then
9154 ltrpathdirs="$ltrpathdirs $found_dir"
9156 if test "$hardcode_direct" = yes; then
9157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9158 else
9159 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9161 haveit=
9162 for x in $rpathdirs; do
9163 if test "X$x" = "X$found_dir"; then
9164 haveit=yes
9165 break
9167 done
9168 if test -z "$haveit"; then
9169 rpathdirs="$rpathdirs $found_dir"
9171 else
9172 haveit=
9173 for x in $LDFLAGS $LIBICONV; do
9175 acl_save_prefix="$prefix"
9176 prefix="$acl_final_prefix"
9177 acl_save_exec_prefix="$exec_prefix"
9178 exec_prefix="$acl_final_exec_prefix"
9179 eval x=\"$x\"
9180 exec_prefix="$acl_save_exec_prefix"
9181 prefix="$acl_save_prefix"
9183 if test "X$x" = "X-L$found_dir"; then
9184 haveit=yes
9185 break
9187 done
9188 if test -z "$haveit"; then
9189 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9191 if test "$hardcode_minus_L" != no; then
9192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9193 else
9194 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9199 else
9200 if test "X$found_a" != "X"; then
9201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9202 else
9203 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9206 additional_includedir=
9207 case "$found_dir" in
9208 */lib | */lib/)
9209 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9210 additional_includedir="$basedir/include"
9212 esac
9213 if test "X$additional_includedir" != "X"; then
9214 if test "X$additional_includedir" != "X/usr/include"; then
9215 haveit=
9216 if test "X$additional_includedir" = "X/usr/local/include"; then
9217 if test -n "$GCC"; then
9218 case $host_os in
9219 linux*) haveit=yes;;
9220 esac
9223 if test -z "$haveit"; then
9224 for x in $CPPFLAGS $INCICONV; do
9226 acl_save_prefix="$prefix"
9227 prefix="$acl_final_prefix"
9228 acl_save_exec_prefix="$exec_prefix"
9229 exec_prefix="$acl_final_exec_prefix"
9230 eval x=\"$x\"
9231 exec_prefix="$acl_save_exec_prefix"
9232 prefix="$acl_save_prefix"
9234 if test "X$x" = "X-I$additional_includedir"; then
9235 haveit=yes
9236 break
9238 done
9239 if test -z "$haveit"; then
9240 if test -d "$additional_includedir"; then
9241 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9247 if test -n "$found_la"; then
9248 save_libdir="$libdir"
9249 case "$found_la" in
9250 */* | *\\*) . "$found_la" ;;
9251 *) . "./$found_la" ;;
9252 esac
9253 libdir="$save_libdir"
9254 for dep in $dependency_libs; do
9255 case "$dep" in
9256 -L*)
9257 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9258 if test "X$additional_libdir" != "X/usr/lib"; then
9259 haveit=
9260 if test "X$additional_libdir" = "X/usr/local/lib"; then
9261 if test -n "$GCC"; then
9262 case $host_os in
9263 linux*) haveit=yes;;
9264 esac
9267 if test -z "$haveit"; then
9268 haveit=
9269 for x in $LDFLAGS $LIBICONV; do
9271 acl_save_prefix="$prefix"
9272 prefix="$acl_final_prefix"
9273 acl_save_exec_prefix="$exec_prefix"
9274 exec_prefix="$acl_final_exec_prefix"
9275 eval x=\"$x\"
9276 exec_prefix="$acl_save_exec_prefix"
9277 prefix="$acl_save_prefix"
9279 if test "X$x" = "X-L$additional_libdir"; then
9280 haveit=yes
9281 break
9283 done
9284 if test -z "$haveit"; then
9285 if test -d "$additional_libdir"; then
9286 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9289 haveit=
9290 for x in $LDFLAGS $LTLIBICONV; do
9292 acl_save_prefix="$prefix"
9293 prefix="$acl_final_prefix"
9294 acl_save_exec_prefix="$exec_prefix"
9295 exec_prefix="$acl_final_exec_prefix"
9296 eval x=\"$x\"
9297 exec_prefix="$acl_save_exec_prefix"
9298 prefix="$acl_save_prefix"
9300 if test "X$x" = "X-L$additional_libdir"; then
9301 haveit=yes
9302 break
9304 done
9305 if test -z "$haveit"; then
9306 if test -d "$additional_libdir"; then
9307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9313 -R*)
9314 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9315 if test "$enable_rpath" != no; then
9316 haveit=
9317 for x in $rpathdirs; do
9318 if test "X$x" = "X$dir"; then
9319 haveit=yes
9320 break
9322 done
9323 if test -z "$haveit"; then
9324 rpathdirs="$rpathdirs $dir"
9326 haveit=
9327 for x in $ltrpathdirs; do
9328 if test "X$x" = "X$dir"; then
9329 haveit=yes
9330 break
9332 done
9333 if test -z "$haveit"; then
9334 ltrpathdirs="$ltrpathdirs $dir"
9338 -l*)
9339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9341 *.la)
9342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9345 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9348 esac
9349 done
9351 else
9352 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9357 done
9358 done
9359 if test "X$rpathdirs" != "X"; then
9360 if test -n "$hardcode_libdir_separator"; then
9361 alldirs=
9362 for found_dir in $rpathdirs; do
9363 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9364 done
9365 acl_save_libdir="$libdir"
9366 libdir="$alldirs"
9367 eval flag=\"$hardcode_libdir_flag_spec\"
9368 libdir="$acl_save_libdir"
9369 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9370 else
9371 for found_dir in $rpathdirs; do
9372 acl_save_libdir="$libdir"
9373 libdir="$found_dir"
9374 eval flag=\"$hardcode_libdir_flag_spec\"
9375 libdir="$acl_save_libdir"
9376 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9377 done
9380 if test "X$ltrpathdirs" != "X"; then
9381 for found_dir in $ltrpathdirs; do
9382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9383 done
9392 am_save_CPPFLAGS="$CPPFLAGS"
9394 for element in $INCICONV; do
9395 haveit=
9396 for x in $CPPFLAGS; do
9398 acl_save_prefix="$prefix"
9399 prefix="$acl_final_prefix"
9400 acl_save_exec_prefix="$exec_prefix"
9401 exec_prefix="$acl_final_exec_prefix"
9402 eval x=\"$x\"
9403 exec_prefix="$acl_save_exec_prefix"
9404 prefix="$acl_save_prefix"
9406 if test "X$x" = "X$element"; then
9407 haveit=yes
9408 break
9410 done
9411 if test -z "$haveit"; then
9412 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9414 done
9417 echo "$as_me:$LINENO: checking for iconv" >&5
9418 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9419 if test "${am_cv_func_iconv+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9423 am_cv_func_iconv="no, consider installing GNU libiconv"
9424 am_cv_lib_iconv=no
9425 if test x$gcc_no_link = xyes; then
9426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9428 { (exit 1); exit 1; }; }
9430 cat >conftest.$ac_ext <<_ACEOF
9431 /* confdefs.h. */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 #include <stdlib.h>
9437 #include <iconv.h>
9439 main ()
9441 iconv_t cd = iconv_open("","");
9442 iconv(cd,NULL,NULL,NULL,NULL);
9443 iconv_close(cd);
9445 return 0;
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9450 (eval $ac_link) 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -z "$ac_c_werror_flag"
9458 || test ! -s conftest.err'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest$ac_exeext'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; }; then
9470 am_cv_func_iconv=yes
9471 else
9472 echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9476 rm -f conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 if test "$am_cv_func_iconv" != yes; then
9479 am_save_LIBS="$LIBS"
9480 LIBS="$LIBS $LIBICONV"
9481 if test x$gcc_no_link = xyes; then
9482 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9484 { (exit 1); exit 1; }; }
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h. */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <stdlib.h>
9493 #include <iconv.h>
9495 main ()
9497 iconv_t cd = iconv_open("","");
9498 iconv(cd,NULL,NULL,NULL,NULL);
9499 iconv_close(cd);
9501 return 0;
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 am_cv_lib_iconv=yes
9527 am_cv_func_iconv=yes
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9533 rm -f conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS="$am_save_LIBS"
9539 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9540 echo "${ECHO_T}$am_cv_func_iconv" >&6
9541 if test "$am_cv_func_iconv" = yes; then
9543 cat >>confdefs.h <<\_ACEOF
9544 #define HAVE_ICONV 1
9545 _ACEOF
9548 if test "$am_cv_lib_iconv" = yes; then
9549 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9550 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9551 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9552 echo "${ECHO_T}$LIBICONV" >&6
9553 else
9554 CPPFLAGS="$am_save_CPPFLAGS"
9555 LIBICONV=
9556 LTLIBICONV=
9561 if test "$am_cv_func_iconv" = yes; then
9562 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9563 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9564 if test "${am_cv_proto_iconv+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9575 #include <stdlib.h>
9576 #include <iconv.h>
9577 extern
9578 #ifdef __cplusplus
9580 #endif
9581 #if defined(__STDC__) || defined(__cplusplus)
9582 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9583 #else
9584 size_t iconv();
9585 #endif
9588 main ()
9592 return 0;
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag"
9605 || test ! -s conftest.err'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest.$ac_objext'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; }; then
9617 am_cv_proto_iconv_arg1=""
9618 else
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9622 am_cv_proto_iconv_arg1="const"
9624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9625 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);"
9628 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9629 echo "$as_me:$LINENO: result: ${ac_t:-
9630 }$am_cv_proto_iconv" >&5
9631 echo "${ECHO_T}${ac_t:-
9632 }$am_cv_proto_iconv" >&6
9634 cat >>confdefs.h <<_ACEOF
9635 #define ICONV_CONST $am_cv_proto_iconv_arg1
9636 _ACEOF
9641 if test "x${GCC}" = xyes; then
9643 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
9646 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
9649 ERROR_CFLAGS=
9650 if test "x${ENABLE_WERROR}" = xyes; then
9651 ERROR_CFLAGS='-Werror'
9656 if test "x${COMPILE_XMLJ}" = xyes; then
9658 succeeded=no
9660 if test -z "$PKG_CONFIG"; then
9661 # Extract the first word of "pkg-config", so it can be a program name with args.
9662 set dummy pkg-config; ac_word=$2
9663 echo "$as_me:$LINENO: checking for $ac_word" >&5
9664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9665 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 case $PKG_CONFIG in
9669 [\\/]* | ?:[\\/]*)
9670 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9684 done
9685 done
9687 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9689 esac
9691 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9693 if test -n "$PKG_CONFIG"; then
9694 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9695 echo "${ECHO_T}$PKG_CONFIG" >&6
9696 else
9697 echo "$as_me:$LINENO: result: no" >&5
9698 echo "${ECHO_T}no" >&6
9703 if test "$PKG_CONFIG" = "no" ; then
9704 echo "*** The pkg-config script could not be found. Make sure it is"
9705 echo "*** in your path, or set the PKG_CONFIG environment variable"
9706 echo "*** to the full path to pkg-config."
9707 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9708 else
9709 PKG_CONFIG_MIN_VERSION=0.9.0
9710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9711 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
9712 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
9714 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6
9717 succeeded=yes
9719 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9720 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9721 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
9722 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9723 echo "${ECHO_T}$XML_CFLAGS" >&6
9725 echo "$as_me:$LINENO: checking XML_LIBS" >&5
9726 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9727 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
9728 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9729 echo "${ECHO_T}$XML_LIBS" >&6
9730 else
9731 XML_CFLAGS=""
9732 XML_LIBS=""
9733 ## If we have a custom action on failure, don't print errors, but
9734 ## do set a variable so people can do so.
9735 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
9736 echo $XML_PKG_ERRORS
9741 else
9742 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9743 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9747 if test $succeeded = yes; then
9749 else
9750 { { 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
9751 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;}
9752 { (exit 1); exit 1; }; }
9756 succeeded=no
9758 if test -z "$PKG_CONFIG"; then
9759 # Extract the first word of "pkg-config", so it can be a program name with args.
9760 set dummy pkg-config; ac_word=$2
9761 echo "$as_me:$LINENO: checking for $ac_word" >&5
9762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766 case $PKG_CONFIG in
9767 [\\/]* | ?:[\\/]*)
9768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9782 done
9783 done
9785 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9787 esac
9789 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9791 if test -n "$PKG_CONFIG"; then
9792 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9793 echo "${ECHO_T}$PKG_CONFIG" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796 echo "${ECHO_T}no" >&6
9801 if test "$PKG_CONFIG" = "no" ; then
9802 echo "*** The pkg-config script could not be found. Make sure it is"
9803 echo "*** in your path, or set the PKG_CONFIG environment variable"
9804 echo "*** to the full path to pkg-config."
9805 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9806 else
9807 PKG_CONFIG_MIN_VERSION=0.9.0
9808 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9809 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
9810 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
9812 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
9813 echo "$as_me:$LINENO: result: yes" >&5
9814 echo "${ECHO_T}yes" >&6
9815 succeeded=yes
9817 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
9818 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
9819 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
9820 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
9821 echo "${ECHO_T}$XSLT_CFLAGS" >&6
9823 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
9824 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
9825 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
9826 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
9827 echo "${ECHO_T}$XSLT_LIBS" >&6
9828 else
9829 XSLT_CFLAGS=""
9830 XSLT_LIBS=""
9831 ## If we have a custom action on failure, don't print errors, but
9832 ## do set a variable so people can do so.
9833 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
9834 echo $XSLT_PKG_ERRORS
9839 else
9840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9845 if test $succeeded = yes; then
9847 else
9848 { { 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
9849 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;}
9850 { (exit 1); exit 1; }; }
9859 if test "x${COMPILE_GTK_PEER}" = xyes; then
9860 echo "$as_me:$LINENO: checking for X" >&5
9861 echo $ECHO_N "checking for X... $ECHO_C" >&6
9864 # Check whether --with-x or --without-x was given.
9865 if test "${with_x+set}" = set; then
9866 withval="$with_x"
9869 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9870 if test "x$with_x" = xno; then
9871 # The user explicitly disabled X.
9872 have_x=disabled
9873 else
9874 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9875 # Both variables are already set.
9876 have_x=yes
9877 else
9878 if test "${ac_cv_have_x+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 # One or both of the vars are not set, and there is no cached value.
9882 ac_x_includes=no ac_x_libraries=no
9883 rm -fr conftest.dir
9884 if mkdir conftest.dir; then
9885 cd conftest.dir
9886 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9887 cat >Imakefile <<'_ACEOF'
9888 acfindx:
9889 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9890 _ACEOF
9891 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9892 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9893 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9894 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9895 for ac_extension in a so sl; do
9896 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9897 test -f $ac_im_libdir/libX11.$ac_extension; then
9898 ac_im_usrlibdir=$ac_im_libdir; break
9900 done
9901 # Screen out bogus values from the imake configuration. They are
9902 # bogus both because they are the default anyway, and because
9903 # using them would break gcc on systems where it needs fixed includes.
9904 case $ac_im_incroot in
9905 /usr/include) ;;
9906 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9907 esac
9908 case $ac_im_usrlibdir in
9909 /usr/lib | /lib) ;;
9910 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9911 esac
9913 cd ..
9914 rm -fr conftest.dir
9917 # Standard set of common directories for X headers.
9918 # Check X11 before X11Rn because it is often a symlink to the current release.
9919 ac_x_header_dirs='
9920 /usr/X11/include
9921 /usr/X11R6/include
9922 /usr/X11R5/include
9923 /usr/X11R4/include
9925 /usr/include/X11
9926 /usr/include/X11R6
9927 /usr/include/X11R5
9928 /usr/include/X11R4
9930 /usr/local/X11/include
9931 /usr/local/X11R6/include
9932 /usr/local/X11R5/include
9933 /usr/local/X11R4/include
9935 /usr/local/include/X11
9936 /usr/local/include/X11R6
9937 /usr/local/include/X11R5
9938 /usr/local/include/X11R4
9940 /usr/X386/include
9941 /usr/x386/include
9942 /usr/XFree86/include/X11
9944 /usr/include
9945 /usr/local/include
9946 /usr/unsupported/include
9947 /usr/athena/include
9948 /usr/local/x11r5/include
9949 /usr/lpp/Xamples/include
9951 /usr/openwin/include
9952 /usr/openwin/share/include'
9954 if test "$ac_x_includes" = no; then
9955 # Guess where to find include files, by looking for Intrinsic.h.
9956 # First, try using that file with no special directory specified.
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 #include <X11/Intrinsic.h>
9964 _ACEOF
9965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } >/dev/null; then
9973 if test -s conftest.err; then
9974 ac_cpp_err=$ac_c_preproc_warn_flag
9975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9976 else
9977 ac_cpp_err=
9979 else
9980 ac_cpp_err=yes
9982 if test -z "$ac_cpp_err"; then
9983 # We can compile using X headers with no special include directory.
9984 ac_x_includes=
9985 else
9986 echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 for ac_dir in $ac_x_header_dirs; do
9990 if test -r "$ac_dir/X11/Intrinsic.h"; then
9991 ac_x_includes=$ac_dir
9992 break
9994 done
9996 rm -f conftest.err conftest.$ac_ext
9997 fi # $ac_x_includes = no
9999 if test "$ac_x_libraries" = no; then
10000 # Check for the libraries.
10001 # See if we find them without any special options.
10002 # Don't add to $LIBS permanently.
10003 ac_save_LIBS=$LIBS
10004 LIBS="-lXt $LIBS"
10005 if test x$gcc_no_link = xyes; then
10006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10008 { (exit 1); exit 1; }; }
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #include <X11/Intrinsic.h>
10018 main ()
10020 XtMalloc (0)
10022 return 0;
10024 _ACEOF
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 LIBS=$ac_save_LIBS
10048 # We can link X programs with no special library path.
10049 ac_x_libraries=
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 LIBS=$ac_save_LIBS
10055 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10057 # Don't even attempt the hair of trying to link an X program!
10058 for ac_extension in a so sl; do
10059 if test -r $ac_dir/libXt.$ac_extension; then
10060 ac_x_libraries=$ac_dir
10061 break 2
10063 done
10064 done
10066 rm -f conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 fi # $ac_x_libraries = no
10070 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10071 # Didn't find X anywhere. Cache the known absence of X.
10072 ac_cv_have_x="have_x=no"
10073 else
10074 # Record where we found X for the cache.
10075 ac_cv_have_x="have_x=yes \
10076 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10081 eval "$ac_cv_have_x"
10082 fi # $with_x != no
10084 if test "$have_x" != yes; then
10085 echo "$as_me:$LINENO: result: $have_x" >&5
10086 echo "${ECHO_T}$have_x" >&6
10087 no_x=yes
10088 else
10089 # If each of the values was on the command line, it overrides each guess.
10090 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10091 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10092 # Update the cache value to reflect the command line values.
10093 ac_cv_have_x="have_x=yes \
10094 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10095 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10096 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10099 if test "$no_x" = yes; then
10100 # Not all programs may use this symbol, but it does not hurt to define it.
10102 cat >>confdefs.h <<\_ACEOF
10103 #define X_DISPLAY_MISSING 1
10104 _ACEOF
10106 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10107 else
10108 if test -n "$x_includes"; then
10109 X_CFLAGS="$X_CFLAGS -I$x_includes"
10112 # It would also be nice to do this for all -L options, not just this one.
10113 if test -n "$x_libraries"; then
10114 X_LIBS="$X_LIBS -L$x_libraries"
10115 # For Solaris; some versions of Sun CC require a space after -R and
10116 # others require no space. Words are not sufficient . . . .
10117 case `(uname -sr) 2>/dev/null` in
10118 "SunOS 5"*)
10119 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10120 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10121 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10122 if test x$gcc_no_link = xyes; then
10123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10125 { (exit 1); exit 1; }; }
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10135 main ()
10139 return 0;
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_R_nospace=yes
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_R_nospace=no
10171 rm -f conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 if test $ac_R_nospace = yes; then
10174 echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6
10176 X_LIBS="$X_LIBS -R$x_libraries"
10177 else
10178 LIBS="$ac_xsave_LIBS -R $x_libraries"
10179 if test x$gcc_no_link = xyes; then
10180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10182 { (exit 1); exit 1; }; }
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10192 main ()
10196 return 0;
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_R_space=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_R_space=no
10228 rm -f conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 if test $ac_R_space = yes; then
10231 echo "$as_me:$LINENO: result: yes" >&5
10232 echo "${ECHO_T}yes" >&6
10233 X_LIBS="$X_LIBS -R $x_libraries"
10234 else
10235 echo "$as_me:$LINENO: result: neither works" >&5
10236 echo "${ECHO_T}neither works" >&6
10239 LIBS=$ac_xsave_LIBS
10240 esac
10243 # Check for system-dependent libraries X programs must link with.
10244 # Do this before checking for the system-independent R6 libraries
10245 # (-lICE), since we may need -lsocket or whatever for X linking.
10247 if test "$ISC" = yes; then
10248 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10249 else
10250 # Martyn Johnson says this is needed for Ultrix, if the X
10251 # libraries were built with DECnet support. And Karl Berry says
10252 # the Alpha needs dnet_stub (dnet does not exist).
10253 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10254 if test x$gcc_no_link = xyes; then
10255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10257 { (exit 1); exit 1; }; }
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 #ifdef __cplusplus
10268 extern "C"
10269 #endif
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272 char XOpenDisplay ();
10274 main ()
10276 XOpenDisplay ();
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10304 else
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10309 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10310 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 ac_check_lib_save_LIBS=$LIBS
10314 LIBS="-ldnet $LIBS"
10315 if test x$gcc_no_link = xyes; then
10316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10318 { (exit 1); exit 1; }; }
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10327 /* Override any gcc2 internal prototype to avoid an error. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 /* We use char because int might match the return type of a gcc2
10332 builtin and then its argument prototype would still apply. */
10333 char dnet_ntoa ();
10335 main ()
10337 dnet_ntoa ();
10339 return 0;
10341 _ACEOF
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } &&
10351 { ac_try='test -z "$ac_c_werror_flag"
10352 || test ! -s conftest.err'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; } &&
10358 { ac_try='test -s conftest$ac_exeext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_cv_lib_dnet_dnet_ntoa=yes
10365 else
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_lib_dnet_dnet_ntoa=no
10371 rm -f conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10375 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10376 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10377 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10378 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10381 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10382 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10383 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10384 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-ldnet_stub $LIBS"
10389 if test x$gcc_no_link = xyes; then
10390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10392 { (exit 1); exit 1; }; }
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 #ifdef __cplusplus
10403 extern "C"
10404 #endif
10405 /* We use char because int might match the return type of a gcc2
10406 builtin and then its argument prototype would still apply. */
10407 char dnet_ntoa ();
10409 main ()
10411 dnet_ntoa ();
10413 return 0;
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418 (eval $ac_link) 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag"
10426 || test ! -s conftest.err'
10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428 (eval $ac_try) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; } &&
10432 { ac_try='test -s conftest$ac_exeext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_lib_dnet_stub_dnet_ntoa=no
10445 rm -f conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10449 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10450 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10451 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10452 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10457 rm -f conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS="$ac_xsave_LIBS"
10461 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10462 # to get the SysV transport functions.
10463 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10464 # needs -lnsl.
10465 # The nsl library prevents programs from opening the X display
10466 # on Irix 5.2, according to T.E. Dickey.
10467 # The functions gethostbyname, getservbyname, and inet_addr are
10468 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10469 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10470 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10471 if test "${ac_cv_func_gethostbyname+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 if test x$gcc_no_link = xyes; then
10475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10477 { (exit 1); exit 1; }; }
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10487 #define gethostbyname innocuous_gethostbyname
10489 /* System header to define __stub macros and hopefully few prototypes,
10490 which can conflict with char gethostbyname (); below.
10491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10492 <limits.h> exists even on freestanding compilers. */
10494 #ifdef __STDC__
10495 # include <limits.h>
10496 #else
10497 # include <assert.h>
10498 #endif
10500 #undef gethostbyname
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 #ifdef __cplusplus
10504 extern "C"
10506 #endif
10507 /* We use char because int might match the return type of a gcc2
10508 builtin and then its argument prototype would still apply. */
10509 char gethostbyname ();
10510 /* The GNU C library defines this for functions which it implements
10511 to always fail with ENOSYS. Some functions are actually named
10512 something starting with __ and the normal name is an alias. */
10513 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10514 choke me
10515 #else
10516 char (*f) () = gethostbyname;
10517 #endif
10518 #ifdef __cplusplus
10520 #endif
10523 main ()
10525 return f != gethostbyname;
10527 return 0;
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532 (eval $ac_link) 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag"
10540 || test ! -s conftest.err'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; } &&
10546 { ac_try='test -s conftest$ac_exeext'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_cv_func_gethostbyname=yes
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_cv_func_gethostbyname=no
10559 rm -f conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10562 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10563 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10565 if test $ac_cv_func_gethostbyname = no; then
10566 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10567 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10568 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10570 else
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-lnsl $LIBS"
10573 if test x$gcc_no_link = xyes; then
10574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10576 { (exit 1); exit 1; }; }
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10585 /* Override any gcc2 internal prototype to avoid an error. */
10586 #ifdef __cplusplus
10587 extern "C"
10588 #endif
10589 /* We use char because int might match the return type of a gcc2
10590 builtin and then its argument prototype would still apply. */
10591 char gethostbyname ();
10593 main ()
10595 gethostbyname ();
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
10609 { ac_try='test -z "$ac_c_werror_flag"
10610 || test ! -s conftest.err'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 ac_cv_lib_nsl_gethostbyname=yes
10623 else
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_cv_lib_nsl_gethostbyname=no
10629 rm -f conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10634 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10635 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10639 if test $ac_cv_lib_nsl_gethostbyname = no; then
10640 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10641 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10642 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645 ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lbsd $LIBS"
10647 if test x$gcc_no_link = xyes; then
10648 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10650 { (exit 1); exit 1; }; }
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 /* Override any gcc2 internal prototype to avoid an error. */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10665 char gethostbyname ();
10667 main ()
10669 gethostbyname ();
10671 return 0;
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag"
10684 || test ! -s conftest.err'
10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686 (eval $ac_try) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; }; then
10696 ac_cv_lib_bsd_gethostbyname=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10701 ac_cv_lib_bsd_gethostbyname=no
10703 rm -f conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10707 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10708 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10709 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10716 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10717 # socket/setsockopt and other routines are undefined under SCO ODT
10718 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10719 # on later versions), says Simon Leinen: it contains gethostby*
10720 # variants that don't use the name server (or something). -lsocket
10721 # must be given before -lnsl if both are needed. We assume that
10722 # if connect needs -lnsl, so does gethostbyname.
10723 echo "$as_me:$LINENO: checking for connect" >&5
10724 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10725 if test "${ac_cv_func_connect+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 if test x$gcc_no_link = xyes; then
10729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10731 { (exit 1); exit 1; }; }
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h. */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10739 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10741 #define connect innocuous_connect
10743 /* System header to define __stub macros and hopefully few prototypes,
10744 which can conflict with char connect (); below.
10745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746 <limits.h> exists even on freestanding compilers. */
10748 #ifdef __STDC__
10749 # include <limits.h>
10750 #else
10751 # include <assert.h>
10752 #endif
10754 #undef connect
10756 /* Override any gcc2 internal prototype to avoid an error. */
10757 #ifdef __cplusplus
10758 extern "C"
10760 #endif
10761 /* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10763 char connect ();
10764 /* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
10767 #if defined (__stub_connect) || defined (__stub___connect)
10768 choke me
10769 #else
10770 char (*f) () = connect;
10771 #endif
10772 #ifdef __cplusplus
10774 #endif
10777 main ()
10779 return f != connect;
10781 return 0;
10783 _ACEOF
10784 rm -f conftest.$ac_objext conftest$ac_exeext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10786 (eval $ac_link) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_func_connect=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_cv_func_connect=no
10813 rm -f conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10816 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10817 echo "${ECHO_T}$ac_cv_func_connect" >&6
10819 if test $ac_cv_func_connect = no; then
10820 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10821 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10822 if test "${ac_cv_lib_socket_connect+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10827 if test x$gcc_no_link = xyes; then
10828 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10829 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10830 { (exit 1); exit 1; }; }
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10839 /* Override any gcc2 internal prototype to avoid an error. */
10840 #ifdef __cplusplus
10841 extern "C"
10842 #endif
10843 /* We use char because int might match the return type of a gcc2
10844 builtin and then its argument prototype would still apply. */
10845 char connect ();
10847 main ()
10849 connect ();
10851 return 0;
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag"
10864 || test ! -s conftest.err'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; } &&
10870 { ac_try='test -s conftest$ac_exeext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 ac_cv_lib_socket_connect=yes
10877 else
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ac_cv_lib_socket_connect=no
10883 rm -f conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LIBS=$ac_check_lib_save_LIBS
10887 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10888 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10889 if test $ac_cv_lib_socket_connect = yes; then
10890 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10895 # Guillermo Gomez says -lposix is necessary on A/UX.
10896 echo "$as_me:$LINENO: checking for remove" >&5
10897 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10898 if test "${ac_cv_func_remove+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901 if test x$gcc_no_link = xyes; then
10902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10904 { (exit 1); exit 1; }; }
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10914 #define remove innocuous_remove
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char remove (); below.
10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919 <limits.h> exists even on freestanding compilers. */
10921 #ifdef __STDC__
10922 # include <limits.h>
10923 #else
10924 # include <assert.h>
10925 #endif
10927 #undef remove
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 #ifdef __cplusplus
10931 extern "C"
10933 #endif
10934 /* We use char because int might match the return type of a gcc2
10935 builtin and then its argument prototype would still apply. */
10936 char remove ();
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined (__stub_remove) || defined (__stub___remove)
10941 choke me
10942 #else
10943 char (*f) () = remove;
10944 #endif
10945 #ifdef __cplusplus
10947 #endif
10950 main ()
10952 return f != remove;
10954 return 0;
10956 _ACEOF
10957 rm -f conftest.$ac_objext conftest$ac_exeext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10959 (eval $ac_link) 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -z "$ac_c_werror_flag"
10967 || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_func_remove=yes
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_func_remove=no
10986 rm -f conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10990 echo "${ECHO_T}$ac_cv_func_remove" >&6
10992 if test $ac_cv_func_remove = no; then
10993 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10994 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10995 if test "${ac_cv_lib_posix_remove+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998 ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-lposix $LIBS"
11000 if test x$gcc_no_link = xyes; then
11001 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11003 { (exit 1); exit 1; }; }
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11012 /* Override any gcc2 internal prototype to avoid an error. */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11018 char remove ();
11020 main ()
11022 remove ();
11024 return 0;
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029 (eval $ac_link) 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -z "$ac_c_werror_flag"
11037 || test ! -s conftest.err'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; } &&
11043 { ac_try='test -s conftest$ac_exeext'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_lib_posix_remove=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_lib_posix_remove=no
11056 rm -f conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 LIBS=$ac_check_lib_save_LIBS
11060 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
11061 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
11062 if test $ac_cv_lib_posix_remove = yes; then
11063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11068 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11069 echo "$as_me:$LINENO: checking for shmat" >&5
11070 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
11071 if test "${ac_cv_func_shmat+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 if test x$gcc_no_link = xyes; then
11075 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11076 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11077 { (exit 1); exit 1; }; }
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define shmat innocuous_shmat
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char shmat (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11094 #ifdef __STDC__
11095 # include <limits.h>
11096 #else
11097 # include <assert.h>
11098 #endif
11100 #undef shmat
11102 /* Override any gcc2 internal prototype to avoid an error. */
11103 #ifdef __cplusplus
11104 extern "C"
11106 #endif
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char shmat ();
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_shmat) || defined (__stub___shmat)
11114 choke me
11115 #else
11116 char (*f) () = shmat;
11117 #endif
11118 #ifdef __cplusplus
11120 #endif
11123 main ()
11125 return f != shmat;
11127 return 0;
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag"
11140 || test ! -s conftest.err'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func_shmat=yes
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_func_shmat=no
11159 rm -f conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11162 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11163 echo "${ECHO_T}$ac_cv_func_shmat" >&6
11165 if test $ac_cv_func_shmat = no; then
11166 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11167 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11168 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-lipc $LIBS"
11173 if test x$gcc_no_link = xyes; then
11174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11176 { (exit 1); exit 1; }; }
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11185 /* Override any gcc2 internal prototype to avoid an error. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 /* We use char because int might match the return type of a gcc2
11190 builtin and then its argument prototype would still apply. */
11191 char shmat ();
11193 main ()
11195 shmat ();
11197 return 0;
11199 _ACEOF
11200 rm -f conftest.$ac_objext conftest$ac_exeext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202 (eval $ac_link) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 ac_cv_lib_ipc_shmat=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 ac_cv_lib_ipc_shmat=no
11229 rm -f conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11233 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11234 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11235 if test $ac_cv_lib_ipc_shmat = yes; then
11236 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11242 # Check for libraries that X11R6 Xt/Xaw programs need.
11243 ac_save_LDFLAGS=$LDFLAGS
11244 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11245 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11246 # check for ICE first), but we must link in the order -lSM -lICE or
11247 # we get undefined symbols. So assume we have SM if we have ICE.
11248 # These have to be linked with before -lX11, unlike the other
11249 # libraries we check for below, so use a different variable.
11250 # John Interrante, Karl Berry
11251 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11252 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11253 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 ac_check_lib_save_LIBS=$LIBS
11257 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11258 if test x$gcc_no_link = xyes; then
11259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11261 { (exit 1); exit 1; }; }
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h. */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11270 /* Override any gcc2 internal prototype to avoid an error. */
11271 #ifdef __cplusplus
11272 extern "C"
11273 #endif
11274 /* We use char because int might match the return type of a gcc2
11275 builtin and then its argument prototype would still apply. */
11276 char IceConnectionNumber ();
11278 main ()
11280 IceConnectionNumber ();
11282 return 0;
11284 _ACEOF
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -z "$ac_c_werror_flag"
11295 || test ! -s conftest.err'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest$ac_exeext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_cv_lib_ICE_IceConnectionNumber=yes
11308 else
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_cv_lib_ICE_IceConnectionNumber=no
11314 rm -f conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11319 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11320 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11321 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11324 LDFLAGS=$ac_save_LDFLAGS
11328 if test "$no_x" = yes; then
11329 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
11330 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
11331 { (exit 1); exit 1; }; }
11333 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
11334 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
11335 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338 ac_check_lib_save_LIBS=$LIBS
11339 LIBS="-lXtst ${X_LIBS} $LIBS"
11340 if test x$gcc_no_link = xyes; then
11341 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11342 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11343 { (exit 1); exit 1; }; }
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 /* Override any gcc2 internal prototype to avoid an error. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char XTestQueryExtension ();
11360 main ()
11362 XTestQueryExtension ();
11364 return 0;
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest$ac_exeext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_lib_Xtst_XTestQueryExtension=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_cv_lib_Xtst_XTestQueryExtension=no
11396 rm -f conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11400 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
11401 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
11402 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
11403 true
11404 else
11405 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
11406 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
11407 { (exit 1); exit 1; }; }
11411 succeeded=no
11413 if test -z "$PKG_CONFIG"; then
11414 # Extract the first word of "pkg-config", so it can be a program name with args.
11415 set dummy pkg-config; ac_word=$2
11416 echo "$as_me:$LINENO: checking for $ac_word" >&5
11417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11418 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 case $PKG_CONFIG in
11422 [\\/]* | ?:[\\/]*)
11423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11442 esac
11444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11446 if test -n "$PKG_CONFIG"; then
11447 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11448 echo "${ECHO_T}$PKG_CONFIG" >&6
11449 else
11450 echo "$as_me:$LINENO: result: no" >&5
11451 echo "${ECHO_T}no" >&6
11456 if test "$PKG_CONFIG" = "no" ; then
11457 echo "*** The pkg-config script could not be found. Make sure it is"
11458 echo "*** in your path, or set the PKG_CONFIG environment variable"
11459 echo "*** to the full path to pkg-config."
11460 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11461 else
11462 PKG_CONFIG_MIN_VERSION=0.9.0
11463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11464 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
11465 echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
11467 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
11468 echo "$as_me:$LINENO: result: yes" >&5
11469 echo "${ECHO_T}yes" >&6
11470 succeeded=yes
11472 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11473 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
11474 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11475 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11476 echo "${ECHO_T}$GTK_CFLAGS" >&6
11478 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11479 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
11480 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11481 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11482 echo "${ECHO_T}$GTK_LIBS" >&6
11483 else
11484 GTK_CFLAGS=""
11485 GTK_LIBS=""
11486 ## If we have a custom action on failure, don't print errors, but
11487 ## do set a variable so people can do so.
11488 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11489 echo $GTK_PKG_ERRORS
11494 else
11495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11500 if test $succeeded = yes; then
11502 else
11503 { { 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
11504 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;}
11505 { (exit 1); exit 1; }; }
11509 if test "x${enable_gtk_cairo}" = xyes; then
11511 succeeded=no
11513 if test -z "$PKG_CONFIG"; then
11514 # Extract the first word of "pkg-config", so it can be a program name with args.
11515 set dummy pkg-config; ac_word=$2
11516 echo "$as_me:$LINENO: checking for $ac_word" >&5
11517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521 case $PKG_CONFIG in
11522 [\\/]* | ?:[\\/]*)
11523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11535 break 2
11537 done
11538 done
11540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11542 esac
11544 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11546 if test -n "$PKG_CONFIG"; then
11547 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11548 echo "${ECHO_T}$PKG_CONFIG" >&6
11549 else
11550 echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6
11556 if test "$PKG_CONFIG" = "no" ; then
11557 echo "*** The pkg-config script could not be found. Make sure it is"
11558 echo "*** in your path, or set the PKG_CONFIG environment variable"
11559 echo "*** to the full path to pkg-config."
11560 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11561 else
11562 PKG_CONFIG_MIN_VERSION=0.9.0
11563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11564 echo "$as_me:$LINENO: checking for cairo >= 0.5.0" >&5
11565 echo $ECHO_N "checking for cairo >= 0.5.0... $ECHO_C" >&6
11567 if $PKG_CONFIG --exists "cairo >= 0.5.0" ; then
11568 echo "$as_me:$LINENO: result: yes" >&5
11569 echo "${ECHO_T}yes" >&6
11570 succeeded=yes
11572 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
11573 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
11574 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.5.0"`
11575 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
11576 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
11578 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
11579 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
11580 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.5.0"`
11581 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
11582 echo "${ECHO_T}$CAIRO_LIBS" >&6
11583 else
11584 CAIRO_CFLAGS=""
11585 CAIRO_LIBS=""
11586 ## If we have a custom action on failure, don't print errors, but
11587 ## do set a variable so people can do so.
11588 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.5.0"`
11589 echo $CAIRO_PKG_ERRORS
11594 else
11595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11600 if test $succeeded = yes; then
11602 else
11603 { { 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
11604 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;}
11605 { (exit 1); exit 1; }; }
11611 succeeded=no
11613 if test -z "$PKG_CONFIG"; then
11614 # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 case $PKG_CONFIG in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11637 done
11638 done
11640 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11642 esac
11644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 echo "${ECHO_T}$PKG_CONFIG" >&6
11649 else
11650 echo "$as_me:$LINENO: result: no" >&5
11651 echo "${ECHO_T}no" >&6
11656 if test "$PKG_CONFIG" = "no" ; then
11657 echo "*** The pkg-config script could not be found. Make sure it is"
11658 echo "*** in your path, or set the PKG_CONFIG environment variable"
11659 echo "*** to the full path to pkg-config."
11660 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11661 else
11662 PKG_CONFIG_MIN_VERSION=0.9.0
11663 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11664 echo "$as_me:$LINENO: checking for freetype2" >&5
11665 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
11667 if $PKG_CONFIG --exists "freetype2" ; then
11668 echo "$as_me:$LINENO: result: yes" >&5
11669 echo "${ECHO_T}yes" >&6
11670 succeeded=yes
11672 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11673 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
11674 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
11675 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11676 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
11678 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11679 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
11680 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
11681 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11682 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
11683 else
11684 FREETYPE2_CFLAGS=""
11685 FREETYPE2_LIBS=""
11686 ## If we have a custom action on failure, don't print errors, but
11687 ## do set a variable so people can do so.
11688 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11689 echo $FREETYPE2_PKG_ERRORS
11694 else
11695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11700 if test $succeeded = yes; then
11702 else
11703 { { echo "$as_me:$LINENO: error: Library requirements (freetype2) 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
11704 echo "$as_me: error: Library requirements (freetype2) 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;}
11705 { (exit 1); exit 1; }; }
11709 succeeded=no
11711 if test -z "$PKG_CONFIG"; then
11712 # Extract the first word of "pkg-config", so it can be a program name with args.
11713 set dummy pkg-config; ac_word=$2
11714 echo "$as_me:$LINENO: checking for $ac_word" >&5
11715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11716 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719 case $PKG_CONFIG in
11720 [\\/]* | ?:[\\/]*)
11721 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11733 break 2
11735 done
11736 done
11738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11740 esac
11742 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11744 if test -n "$PKG_CONFIG"; then
11745 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11746 echo "${ECHO_T}$PKG_CONFIG" >&6
11747 else
11748 echo "$as_me:$LINENO: result: no" >&5
11749 echo "${ECHO_T}no" >&6
11754 if test "$PKG_CONFIG" = "no" ; then
11755 echo "*** The pkg-config script could not be found. Make sure it is"
11756 echo "*** in your path, or set the PKG_CONFIG environment variable"
11757 echo "*** to the full path to pkg-config."
11758 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11759 else
11760 PKG_CONFIG_MIN_VERSION=0.9.0
11761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11762 echo "$as_me:$LINENO: checking for pangoft2" >&5
11763 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
11765 if $PKG_CONFIG --exists "pangoft2" ; then
11766 echo "$as_me:$LINENO: result: yes" >&5
11767 echo "${ECHO_T}yes" >&6
11768 succeeded=yes
11770 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
11771 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
11772 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11773 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
11774 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
11776 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
11777 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
11778 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11779 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
11780 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
11781 else
11782 PANGOFT2_CFLAGS=""
11783 PANGOFT2_LIBS=""
11784 ## If we have a custom action on failure, don't print errors, but
11785 ## do set a variable so people can do so.
11786 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11787 echo $PANGOFT2_PKG_ERRORS
11792 else
11793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11798 if test $succeeded = yes; then
11800 else
11801 { { 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
11802 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;}
11803 { (exit 1); exit 1; }; }
11817 if test "x${COMPILE_QT_PEER}" = xyes; then
11819 succeeded=no
11821 if test -z "$PKG_CONFIG"; then
11822 # Extract the first word of "pkg-config", so it can be a program name with args.
11823 set dummy pkg-config; ac_word=$2
11824 echo "$as_me:$LINENO: checking for $ac_word" >&5
11825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11826 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829 case $PKG_CONFIG in
11830 [\\/]* | ?:[\\/]*)
11831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11845 done
11846 done
11848 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11850 esac
11852 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11854 if test -n "$PKG_CONFIG"; then
11855 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11856 echo "${ECHO_T}$PKG_CONFIG" >&6
11857 else
11858 echo "$as_me:$LINENO: result: no" >&5
11859 echo "${ECHO_T}no" >&6
11864 if test "$PKG_CONFIG" = "no" ; then
11865 echo "*** The pkg-config script could not be found. Make sure it is"
11866 echo "*** in your path, or set the PKG_CONFIG environment variable"
11867 echo "*** to the full path to pkg-config."
11868 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11869 else
11870 PKG_CONFIG_MIN_VERSION=0.9.0
11871 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11872 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
11873 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
11875 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
11876 echo "$as_me:$LINENO: result: yes" >&5
11877 echo "${ECHO_T}yes" >&6
11878 succeeded=yes
11880 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
11881 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
11882 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
11883 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
11884 echo "${ECHO_T}$QT_CFLAGS" >&6
11886 echo "$as_me:$LINENO: checking QT_LIBS" >&5
11887 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
11888 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
11889 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
11890 echo "${ECHO_T}$QT_LIBS" >&6
11891 else
11892 QT_CFLAGS=""
11893 QT_LIBS=""
11894 ## If we have a custom action on failure, don't print errors, but
11895 ## do set a variable so people can do so.
11896 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
11902 else
11903 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11904 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11908 if test $succeeded = yes; then
11909 HAVE_QT4="yes"
11910 else
11911 HAVE_QT4="no"
11914 if test "x$HAVE_QT4" = "xyes"; then
11915 QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
11916 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
11917 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11918 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
11919 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_File+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 test "$cross_compiling" = yes &&
11924 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11925 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11926 { (exit 1); exit 1; }; }
11927 if test -r "$QT_INCLUDE_DIR/QWidget"; then
11928 eval "$as_ac_File=yes"
11929 else
11930 eval "$as_ac_File=no"
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11935 if test `eval echo '${'$as_ac_File'}'` = yes; then
11936 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
11937 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
11938 else
11939 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11940 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
11941 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11942 if eval "test \"\${$as_ac_File+set}\" = set"; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 test "$cross_compiling" = yes &&
11946 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11947 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11948 { (exit 1); exit 1; }; }
11949 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
11950 eval "$as_ac_File=yes"
11951 else
11952 eval "$as_ac_File=no"
11955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11956 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11957 if test `eval echo '${'$as_ac_File'}'` = yes; then
11958 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
11959 else
11960 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
11961 echo "$as_me: WARNING: QWidget not found" >&2;}
11966 # Extract the first word of "moc", so it can be a program name with args.
11967 set dummy moc; ac_word=$2
11968 echo "$as_me:$LINENO: checking for $ac_word" >&5
11969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11970 if test "${ac_cv_prog_MOC+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973 if test -n "$MOC"; then
11974 ac_cv_prog_MOC="$MOC" # Let the user override the test.
11975 else
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_prog_MOC="moc"
11984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11992 MOC=$ac_cv_prog_MOC
11993 if test -n "$MOC"; then
11994 echo "$as_me:$LINENO: result: $MOC" >&5
11995 echo "${ECHO_T}$MOC" >&6
11996 else
11997 echo "$as_me:$LINENO: result: no" >&5
11998 echo "${ECHO_T}no" >&6
12002 if test "x$HAVE_QT4" = "xno"; then
12003 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
12004 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
12005 case "$host_os" in
12006 darwin*)
12008 # Check whether --with-qt4dir or --without-qt4dir was given.
12009 if test "${with_qt4dir+set}" = set; then
12010 withval="$with_qt4dir"
12011 QT4DIR=$withval
12014 if test x"$QT4DIR" = x ; then
12015 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
12016 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
12017 { (exit 1); exit 1; }; }
12019 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
12020 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
12021 # Extract the first word of "moc", so it can be a program name with args.
12022 set dummy moc; ac_word=$2
12023 echo "$as_me:$LINENO: checking for $ac_word" >&5
12024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12025 if test "${ac_cv_prog_MOC+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028 if test -n "$MOC"; then
12029 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12030 else
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $QT4DIR/bin
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_prog_MOC="$QT4DIR/bin/moc"
12039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12042 done
12043 done
12047 MOC=$ac_cv_prog_MOC
12048 if test -n "$MOC"; then
12049 echo "$as_me:$LINENO: result: $MOC" >&5
12050 echo "${ECHO_T}$MOC" >&6
12051 else
12052 echo "$as_me:$LINENO: result: no" >&5
12053 echo "${ECHO_T}no" >&6
12056 if test x"$MOC" = x; then
12057 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
12058 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
12059 { (exit 1); exit 1; }; }
12061 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
12062 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
12063 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
12064 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
12067 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
12068 of your installed Qt4 installation." >&5
12069 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
12070 of your installed Qt4 installation." >&2;}
12071 { (exit 1); exit 1; }; }
12073 esac
12075 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
12076 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
12084 # Check whether --with-javah or --without-javah was given.
12085 if test "${with_javah+set}" = set; then
12086 withval="$with_javah"
12088 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12090 if test "x${withval}" != x; then
12091 if test -f "${withval}"; then
12092 USER_JAVAH="${withval}"
12093 else
12094 # Extract the first word of ""${withval}"", so it can be a program name with args.
12095 set dummy "${withval}"; ac_word=$2
12096 echo "$as_me:$LINENO: checking for $ac_word" >&5
12097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12098 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 case $USER_JAVAH in
12102 [\\/]* | ?:[\\/]*)
12103 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12113 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 break 2
12117 done
12118 done
12121 esac
12123 USER_JAVAH=$ac_cv_path_USER_JAVAH
12125 if test -n "$USER_JAVAH"; then
12126 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12127 echo "${ECHO_T}$USER_JAVAH" >&6
12128 else
12129 echo "$as_me:$LINENO: result: no" >&5
12130 echo "${ECHO_T}no" >&6
12134 else
12135 for javah_name in gcjh javah; do
12136 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12137 set dummy "$javah_name"; ac_word=$2
12138 echo "$as_me:$LINENO: checking for $ac_word" >&5
12139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12140 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 case $USER_JAVAH in
12144 [\\/]* | ?:[\\/]*)
12145 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12159 done
12160 done
12163 esac
12165 USER_JAVAH=$ac_cv_path_USER_JAVAH
12167 if test -n "$USER_JAVAH"; then
12168 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12169 echo "${ECHO_T}$USER_JAVAH" >&6
12170 else
12171 echo "$as_me:$LINENO: result: no" >&5
12172 echo "${ECHO_T}no" >&6
12175 if test "x${USER_JAVAH}" != x; then
12176 break
12178 done
12181 # if test "x${USER_JAVAH}" = x; then
12182 # echo "configure: cannot find javah" 1>&2
12183 # exit 1
12184 # fi
12186 else
12188 if test "x" != x; then
12189 if test -f ""; then
12190 USER_JAVAH=""
12191 else
12192 # Extract the first word of """", so it can be a program name with args.
12193 set dummy ""; ac_word=$2
12194 echo "$as_me:$LINENO: checking for $ac_word" >&5
12195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12196 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199 case $USER_JAVAH in
12200 [\\/]* | ?:[\\/]*)
12201 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12215 done
12216 done
12219 esac
12221 USER_JAVAH=$ac_cv_path_USER_JAVAH
12223 if test -n "$USER_JAVAH"; then
12224 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12225 echo "${ECHO_T}$USER_JAVAH" >&6
12226 else
12227 echo "$as_me:$LINENO: result: no" >&5
12228 echo "${ECHO_T}no" >&6
12232 else
12233 for javah_name in gcjh javah; do
12234 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12235 set dummy "$javah_name"; ac_word=$2
12236 echo "$as_me:$LINENO: checking for $ac_word" >&5
12237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12238 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 case $USER_JAVAH in
12242 [\\/]* | ?:[\\/]*)
12243 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12249 IFS=$as_save_IFS
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 break 2
12257 done
12258 done
12261 esac
12263 USER_JAVAH=$ac_cv_path_USER_JAVAH
12265 if test -n "$USER_JAVAH"; then
12266 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12267 echo "${ECHO_T}$USER_JAVAH" >&6
12268 else
12269 echo "$as_me:$LINENO: result: no" >&5
12270 echo "${ECHO_T}no" >&6
12273 if test "x${USER_JAVAH}" != x; then
12274 break
12276 done
12279 # if test "x${USER_JAVAH}" = x; then
12280 # echo "configure: cannot find javah" 1>&2
12281 # exit 1
12282 # fi
12286 else
12289 if test "x" != x; then
12290 if test -f ""; then
12291 USER_JAVAH=""
12292 else
12293 # Extract the first word of """", so it can be a program name with args.
12294 set dummy ""; ac_word=$2
12295 echo "$as_me:$LINENO: checking for $ac_word" >&5
12296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12297 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 case $USER_JAVAH in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12316 done
12317 done
12320 esac
12322 USER_JAVAH=$ac_cv_path_USER_JAVAH
12324 if test -n "$USER_JAVAH"; then
12325 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12326 echo "${ECHO_T}$USER_JAVAH" >&6
12327 else
12328 echo "$as_me:$LINENO: result: no" >&5
12329 echo "${ECHO_T}no" >&6
12333 else
12334 for javah_name in gcjh javah; do
12335 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12336 set dummy "$javah_name"; ac_word=$2
12337 echo "$as_me:$LINENO: checking for $ac_word" >&5
12338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12339 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342 case $USER_JAVAH in
12343 [\\/]* | ?:[\\/]*)
12344 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12354 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12358 done
12359 done
12362 esac
12364 USER_JAVAH=$ac_cv_path_USER_JAVAH
12366 if test -n "$USER_JAVAH"; then
12367 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12368 echo "${ECHO_T}$USER_JAVAH" >&6
12369 else
12370 echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12374 if test "x${USER_JAVAH}" != x; then
12375 break
12377 done
12380 # if test "x${USER_JAVAH}" = x; then
12381 # echo "configure: cannot find javah" 1>&2
12382 # exit 1
12383 # fi
12389 if test "x${USER_JAVAH}" != x; then
12390 USER_SPECIFIED_JAVAH_TRUE=
12391 USER_SPECIFIED_JAVAH_FALSE='#'
12392 else
12393 USER_SPECIFIED_JAVAH_TRUE='#'
12394 USER_SPECIFIED_JAVAH_FALSE=
12400 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
12403 if test "x${COMPILE_JNI}" = xyes; then
12404 echo "$as_me:$LINENO: checking jni_md.h support" >&5
12405 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
12406 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
12407 echo "$as_me:$LINENO: result: yes" >&5
12408 echo "${ECHO_T}yes" >&6
12409 else
12410 target_cpu=x86
12411 target_os=linux-gnu
12412 { echo "$as_me:$LINENO: WARNING: no" >&5
12413 echo "$as_me: WARNING: no" >&2;}
12415 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
12416 ac_dests="include/jni_md.h"
12417 while test -n "$ac_sources"; do
12418 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
12419 set $ac_sources; ac_source=$1; shift; ac_sources=$*
12420 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
12421 done
12422 ac_config_links="$ac_config_links $ac_config_links_1"
12427 user_specified_javac=
12431 # Check whether --with-gcj or --without-gcj was given.
12432 if test "${with_gcj+set}" = set; then
12433 withval="$with_gcj"
12435 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12437 if test "x${withval}" != x; then
12438 if test -f "${withval}"; then
12439 GCJ="${withval}"
12440 else
12441 # Extract the first word of ""${withval}"", so it can be a program name with args.
12442 set dummy "${withval}"; ac_word=$2
12443 echo "$as_me:$LINENO: checking for $ac_word" >&5
12444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12445 if test "${ac_cv_path_GCJ+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 case $GCJ in
12449 [\\/]* | ?:[\\/]*)
12450 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12460 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12464 done
12465 done
12468 esac
12470 GCJ=$ac_cv_path_GCJ
12472 if test -n "$GCJ"; then
12473 echo "$as_me:$LINENO: result: $GCJ" >&5
12474 echo "${ECHO_T}$GCJ" >&6
12475 else
12476 echo "$as_me:$LINENO: result: no" >&5
12477 echo "${ECHO_T}no" >&6
12481 else
12482 # Extract the first word of ""gcj"", so it can be a program name with args.
12483 set dummy "gcj"; ac_word=$2
12484 echo "$as_me:$LINENO: checking for $ac_word" >&5
12485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12486 if test "${ac_cv_path_GCJ+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 case $GCJ in
12490 [\\/]* | ?:[\\/]*)
12491 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12501 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12505 done
12506 done
12509 esac
12511 GCJ=$ac_cv_path_GCJ
12513 if test -n "$GCJ"; then
12514 echo "$as_me:$LINENO: result: $GCJ" >&5
12515 echo "${ECHO_T}$GCJ" >&6
12516 else
12517 echo "$as_me:$LINENO: result: no" >&5
12518 echo "${ECHO_T}no" >&6
12522 if test "x$GCJ" != x; then
12523 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12524 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12525 ac_ext=c
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #if __GNUC__ <= 3
12533 #error GCJ 4.0.0 or higher is required
12534 #endif
12536 _ACEOF
12537 $GCJ -E conftest.c > /dev/null
12538 gcj_4_result=$?
12539 if test "x$gcj_4_result" = "x0"; then
12540 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12541 echo "${ECHO_T}4.0 or higher found" >&6
12542 else
12543 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12544 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12546 ac_ext=c
12547 ac_cpp='$CPP $CPPFLAGS'
12548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12554 else
12555 if test "x${withval}" != xno; then
12557 if test "x" != x; then
12558 if test -f ""; then
12559 GCJ=""
12560 else
12561 # Extract the first word of """", so it can be a program name with args.
12562 set dummy ""; ac_word=$2
12563 echo "$as_me:$LINENO: checking for $ac_word" >&5
12564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12565 if test "${ac_cv_path_GCJ+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 else
12568 case $GCJ in
12569 [\\/]* | ?:[\\/]*)
12570 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12582 break 2
12584 done
12585 done
12588 esac
12590 GCJ=$ac_cv_path_GCJ
12592 if test -n "$GCJ"; then
12593 echo "$as_me:$LINENO: result: $GCJ" >&5
12594 echo "${ECHO_T}$GCJ" >&6
12595 else
12596 echo "$as_me:$LINENO: result: no" >&5
12597 echo "${ECHO_T}no" >&6
12601 else
12602 # Extract the first word of ""gcj"", so it can be a program name with args.
12603 set dummy "gcj"; ac_word=$2
12604 echo "$as_me:$LINENO: checking for $ac_word" >&5
12605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12606 if test "${ac_cv_path_GCJ+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609 case $GCJ in
12610 [\\/]* | ?:[\\/]*)
12611 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12625 done
12626 done
12629 esac
12631 GCJ=$ac_cv_path_GCJ
12633 if test -n "$GCJ"; then
12634 echo "$as_me:$LINENO: result: $GCJ" >&5
12635 echo "${ECHO_T}$GCJ" >&6
12636 else
12637 echo "$as_me:$LINENO: result: no" >&5
12638 echo "${ECHO_T}no" >&6
12642 if test "x$GCJ" != x; then
12643 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12644 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12645 ac_ext=c
12646 ac_cpp='$CPP $CPPFLAGS'
12647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12651 cat >conftest.$ac_ext <<_ACEOF
12652 #if __GNUC__ <= 3
12653 #error GCJ 4.0.0 or higher is required
12654 #endif
12656 _ACEOF
12657 $GCJ -E conftest.c > /dev/null
12658 gcj_4_result=$?
12659 if test "x$gcj_4_result" = "x0"; then
12660 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12661 echo "${ECHO_T}4.0 or higher found" >&6
12662 else
12663 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12664 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12666 ac_ext=c
12667 ac_cpp='$CPP $CPPFLAGS'
12668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676 user_specified_javac=gcj
12678 else
12681 if test "x" != x; then
12682 if test -f ""; then
12683 GCJ=""
12684 else
12685 # Extract the first word of """", so it can be a program name with args.
12686 set dummy ""; ac_word=$2
12687 echo "$as_me:$LINENO: checking for $ac_word" >&5
12688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12689 if test "${ac_cv_path_GCJ+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692 case $GCJ in
12693 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12712 esac
12714 GCJ=$ac_cv_path_GCJ
12716 if test -n "$GCJ"; then
12717 echo "$as_me:$LINENO: result: $GCJ" >&5
12718 echo "${ECHO_T}$GCJ" >&6
12719 else
12720 echo "$as_me:$LINENO: result: no" >&5
12721 echo "${ECHO_T}no" >&6
12725 else
12726 # Extract the first word of ""gcj"", so it can be a program name with args.
12727 set dummy "gcj"; ac_word=$2
12728 echo "$as_me:$LINENO: checking for $ac_word" >&5
12729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12730 if test "${ac_cv_path_GCJ+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733 case $GCJ in
12734 [\\/]* | ?:[\\/]*)
12735 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12745 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 break 2
12749 done
12750 done
12753 esac
12755 GCJ=$ac_cv_path_GCJ
12757 if test -n "$GCJ"; then
12758 echo "$as_me:$LINENO: result: $GCJ" >&5
12759 echo "${ECHO_T}$GCJ" >&6
12760 else
12761 echo "$as_me:$LINENO: result: no" >&5
12762 echo "${ECHO_T}no" >&6
12766 if test "x$GCJ" != x; then
12767 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12768 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12769 ac_ext=c
12770 ac_cpp='$CPP $CPPFLAGS'
12771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775 cat >conftest.$ac_ext <<_ACEOF
12776 #if __GNUC__ <= 3
12777 #error GCJ 4.0.0 or higher is required
12778 #endif
12780 _ACEOF
12781 $GCJ -E conftest.c > /dev/null
12782 gcj_4_result=$?
12783 if test "x$gcj_4_result" = "x0"; then
12784 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12785 echo "${ECHO_T}4.0 or higher found" >&6
12786 else
12787 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12788 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12790 ac_ext=c
12791 ac_cpp='$CPP $CPPFLAGS'
12792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12804 # Check whether --with-jikes or --without-jikes was given.
12805 if test "${with_jikes+set}" = set; then
12806 withval="$with_jikes"
12808 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12810 if test "x${withval}" != x; then
12811 if test -f "${withval}"; then
12812 JIKES="${withval}"
12813 else
12814 # Extract the first word of ""${withval}"", so it can be a program name with args.
12815 set dummy "${withval}"; ac_word=$2
12816 echo "$as_me:$LINENO: checking for $ac_word" >&5
12817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12818 if test "${ac_cv_path_JIKES+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821 case $JIKES in
12822 [\\/]* | ?:[\\/]*)
12823 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12837 done
12838 done
12841 esac
12843 JIKES=$ac_cv_path_JIKES
12845 if test -n "$JIKES"; then
12846 echo "$as_me:$LINENO: result: $JIKES" >&5
12847 echo "${ECHO_T}$JIKES" >&6
12848 else
12849 echo "$as_me:$LINENO: result: no" >&5
12850 echo "${ECHO_T}no" >&6
12854 else
12855 # Extract the first word of ""jikes"", so it can be a program name with args.
12856 set dummy "jikes"; ac_word=$2
12857 echo "$as_me:$LINENO: checking for $ac_word" >&5
12858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12859 if test "${ac_cv_path_JIKES+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862 case $JIKES in
12863 [\\/]* | ?:[\\/]*)
12864 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12878 done
12879 done
12882 esac
12884 JIKES=$ac_cv_path_JIKES
12886 if test -n "$JIKES"; then
12887 echo "$as_me:$LINENO: result: $JIKES" >&5
12888 echo "${ECHO_T}$JIKES" >&6
12889 else
12890 echo "$as_me:$LINENO: result: no" >&5
12891 echo "${ECHO_T}no" >&6
12895 if test "x$JIKES" != "x"; then
12896 echo "$as_me:$LINENO: checking jikes version" >&5
12897 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
12898 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
12899 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
12900 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
12901 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
12902 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
12903 JIKES=""
12906 if test "x$JIKES" != "x"; then
12907 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
12908 echo "${ECHO_T}$JIKES_VERSION" >&6
12909 else
12910 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
12911 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
12914 JIKESENCODING=
12915 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
12916 JIKESENCODING='-encoding UTF-8'
12920 JIKESWARNINGS="+Pno-switchcheck"
12921 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
12922 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
12923 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
12930 else
12931 if test "x${withval}" != xno; then
12933 if test "x" != x; then
12934 if test -f ""; then
12935 JIKES=""
12936 else
12937 # Extract the first word of """", so it can be a program name with args.
12938 set dummy ""; ac_word=$2
12939 echo "$as_me:$LINENO: checking for $ac_word" >&5
12940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12941 if test "${ac_cv_path_JIKES+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944 case $JIKES in
12945 [\\/]* | ?:[\\/]*)
12946 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12956 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 break 2
12960 done
12961 done
12964 esac
12966 JIKES=$ac_cv_path_JIKES
12968 if test -n "$JIKES"; then
12969 echo "$as_me:$LINENO: result: $JIKES" >&5
12970 echo "${ECHO_T}$JIKES" >&6
12971 else
12972 echo "$as_me:$LINENO: result: no" >&5
12973 echo "${ECHO_T}no" >&6
12977 else
12978 # Extract the first word of ""jikes"", so it can be a program name with args.
12979 set dummy "jikes"; ac_word=$2
12980 echo "$as_me:$LINENO: checking for $ac_word" >&5
12981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12982 if test "${ac_cv_path_JIKES+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985 case $JIKES in
12986 [\\/]* | ?:[\\/]*)
12987 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12993 IFS=$as_save_IFS
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 break 2
13001 done
13002 done
13005 esac
13007 JIKES=$ac_cv_path_JIKES
13009 if test -n "$JIKES"; then
13010 echo "$as_me:$LINENO: result: $JIKES" >&5
13011 echo "${ECHO_T}$JIKES" >&6
13012 else
13013 echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6
13018 if test "x$JIKES" != "x"; then
13019 echo "$as_me:$LINENO: checking jikes version" >&5
13020 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13021 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13022 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13023 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13024 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13025 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13026 JIKES=""
13029 if test "x$JIKES" != "x"; then
13030 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13031 echo "${ECHO_T}$JIKES_VERSION" >&6
13032 else
13033 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13034 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13037 JIKESENCODING=
13038 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13039 JIKESENCODING='-encoding UTF-8'
13043 JIKESWARNINGS="+Pno-switchcheck"
13044 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13045 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13046 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13055 user_specified_javac=jikes
13057 else
13060 if test "x" != x; then
13061 if test -f ""; then
13062 JIKES=""
13063 else
13064 # Extract the first word of """", so it can be a program name with args.
13065 set dummy ""; ac_word=$2
13066 echo "$as_me:$LINENO: checking for $ac_word" >&5
13067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13068 if test "${ac_cv_path_JIKES+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 case $JIKES in
13072 [\\/]* | ?:[\\/]*)
13073 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13087 done
13088 done
13091 esac
13093 JIKES=$ac_cv_path_JIKES
13095 if test -n "$JIKES"; then
13096 echo "$as_me:$LINENO: result: $JIKES" >&5
13097 echo "${ECHO_T}$JIKES" >&6
13098 else
13099 echo "$as_me:$LINENO: result: no" >&5
13100 echo "${ECHO_T}no" >&6
13104 else
13105 # Extract the first word of ""jikes"", so it can be a program name with args.
13106 set dummy "jikes"; ac_word=$2
13107 echo "$as_me:$LINENO: checking for $ac_word" >&5
13108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13109 if test "${ac_cv_path_JIKES+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112 case $JIKES in
13113 [\\/]* | ?:[\\/]*)
13114 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13128 done
13129 done
13132 esac
13134 JIKES=$ac_cv_path_JIKES
13136 if test -n "$JIKES"; then
13137 echo "$as_me:$LINENO: result: $JIKES" >&5
13138 echo "${ECHO_T}$JIKES" >&6
13139 else
13140 echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6
13145 if test "x$JIKES" != "x"; then
13146 echo "$as_me:$LINENO: checking jikes version" >&5
13147 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13148 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13149 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13150 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13151 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13152 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13153 JIKES=""
13156 if test "x$JIKES" != "x"; then
13157 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13158 echo "${ECHO_T}$JIKES_VERSION" >&6
13159 else
13160 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13161 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13164 JIKESENCODING=
13165 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13166 JIKESENCODING='-encoding UTF-8'
13170 JIKESWARNINGS="+Pno-switchcheck"
13171 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13172 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13173 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13186 # Check whether --with-kjc or --without-kjc was given.
13187 if test "${with_kjc+set}" = set; then
13188 withval="$with_kjc"
13190 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13192 if test "x${withval}" != x; then
13193 if test -f "${withval}"; then
13194 KJC="${withval}"
13195 else
13196 # Extract the first word of ""${withval}"", so it can be a program name with args.
13197 set dummy "${withval}"; ac_word=$2
13198 echo "$as_me:$LINENO: checking for $ac_word" >&5
13199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13200 if test "${ac_cv_path_KJC+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203 case $KJC in
13204 [\\/]* | ?:[\\/]*)
13205 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13219 done
13220 done
13223 esac
13225 KJC=$ac_cv_path_KJC
13227 if test -n "$KJC"; then
13228 echo "$as_me:$LINENO: result: $KJC" >&5
13229 echo "${ECHO_T}$KJC" >&6
13230 else
13231 echo "$as_me:$LINENO: result: no" >&5
13232 echo "${ECHO_T}no" >&6
13236 else
13237 # Extract the first word of ""kJC"", so it can be a program name with args.
13238 set dummy "kJC"; ac_word=$2
13239 echo "$as_me:$LINENO: checking for $ac_word" >&5
13240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13241 if test "${ac_cv_path_KJC+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244 case $KJC in
13245 [\\/]* | ?:[\\/]*)
13246 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13256 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13260 done
13261 done
13264 esac
13266 KJC=$ac_cv_path_KJC
13268 if test -n "$KJC"; then
13269 echo "$as_me:$LINENO: result: $KJC" >&5
13270 echo "${ECHO_T}$KJC" >&6
13271 else
13272 echo "$as_me:$LINENO: result: no" >&5
13273 echo "${ECHO_T}no" >&6
13278 else
13279 if test "x${withval}" != xno; then
13281 if test "x" != x; then
13282 if test -f ""; then
13283 KJC=""
13284 else
13285 # Extract the first word of """", so it can be a program name with args.
13286 set dummy ""; ac_word=$2
13287 echo "$as_me:$LINENO: checking for $ac_word" >&5
13288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13289 if test "${ac_cv_path_KJC+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 case $KJC in
13293 [\\/]* | ?:[\\/]*)
13294 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $PATH
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13304 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13308 done
13309 done
13312 esac
13314 KJC=$ac_cv_path_KJC
13316 if test -n "$KJC"; then
13317 echo "$as_me:$LINENO: result: $KJC" >&5
13318 echo "${ECHO_T}$KJC" >&6
13319 else
13320 echo "$as_me:$LINENO: result: no" >&5
13321 echo "${ECHO_T}no" >&6
13325 else
13326 # Extract the first word of ""kJC"", so it can be a program name with args.
13327 set dummy "kJC"; ac_word=$2
13328 echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13330 if test "${ac_cv_path_KJC+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 case $KJC in
13334 [\\/]* | ?:[\\/]*)
13335 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13341 IFS=$as_save_IFS
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 break 2
13349 done
13350 done
13353 esac
13355 KJC=$ac_cv_path_KJC
13357 if test -n "$KJC"; then
13358 echo "$as_me:$LINENO: result: $KJC" >&5
13359 echo "${ECHO_T}$KJC" >&6
13360 else
13361 echo "$as_me:$LINENO: result: no" >&5
13362 echo "${ECHO_T}no" >&6
13369 user_specified_javac=kjc
13371 else
13374 if test "x" != x; then
13375 if test -f ""; then
13376 KJC=""
13377 else
13378 # Extract the first word of """", so it can be a program name with args.
13379 set dummy ""; ac_word=$2
13380 echo "$as_me:$LINENO: checking for $ac_word" >&5
13381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13382 if test "${ac_cv_path_KJC+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 case $KJC in
13386 [\\/]* | ?:[\\/]*)
13387 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13393 IFS=$as_save_IFS
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 break 2
13401 done
13402 done
13405 esac
13407 KJC=$ac_cv_path_KJC
13409 if test -n "$KJC"; then
13410 echo "$as_me:$LINENO: result: $KJC" >&5
13411 echo "${ECHO_T}$KJC" >&6
13412 else
13413 echo "$as_me:$LINENO: result: no" >&5
13414 echo "${ECHO_T}no" >&6
13418 else
13419 # Extract the first word of ""kJC"", so it can be a program name with args.
13420 set dummy "kJC"; ac_word=$2
13421 echo "$as_me:$LINENO: checking for $ac_word" >&5
13422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13423 if test "${ac_cv_path_KJC+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 case $KJC in
13427 [\\/]* | ?:[\\/]*)
13428 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13442 done
13443 done
13446 esac
13448 KJC=$ac_cv_path_KJC
13450 if test -n "$KJC"; then
13451 echo "$as_me:$LINENO: result: $KJC" >&5
13452 echo "${ECHO_T}$KJC" >&6
13453 else
13454 echo "$as_me:$LINENO: result: no" >&5
13455 echo "${ECHO_T}no" >&6
13466 # Check whether --with-gcjx or --without-gcjx was given.
13467 if test "${with_gcjx+set}" = set; then
13468 withval="$with_gcjx"
13470 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13472 if test "x${withval}" != x; then
13473 if test -f "${withval}"; then
13474 GCJX="${withval}"
13475 else
13476 # Extract the first word of ""${withval}"", so it can be a program name with args.
13477 set dummy "${withval}"; ac_word=$2
13478 echo "$as_me:$LINENO: checking for $ac_word" >&5
13479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13480 if test "${ac_cv_path_GCJX+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 case $GCJX in
13484 [\\/]* | ?:[\\/]*)
13485 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13491 IFS=$as_save_IFS
13492 test -z "$as_dir" && as_dir=.
13493 for ac_exec_ext in '' $ac_executable_extensions; do
13494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13497 break 2
13499 done
13500 done
13503 esac
13505 GCJX=$ac_cv_path_GCJX
13507 if test -n "$GCJX"; then
13508 echo "$as_me:$LINENO: result: $GCJX" >&5
13509 echo "${ECHO_T}$GCJX" >&6
13510 else
13511 echo "$as_me:$LINENO: result: no" >&5
13512 echo "${ECHO_T}no" >&6
13516 else
13517 # Extract the first word of ""gcjx"", so it can be a program name with args.
13518 set dummy "gcjx"; ac_word=$2
13519 echo "$as_me:$LINENO: checking for $ac_word" >&5
13520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13521 if test "${ac_cv_path_GCJX+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524 case $GCJX in
13525 [\\/]* | ?:[\\/]*)
13526 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13536 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13540 done
13541 done
13544 esac
13546 GCJX=$ac_cv_path_GCJX
13548 if test -n "$GCJX"; then
13549 echo "$as_me:$LINENO: result: $GCJX" >&5
13550 echo "${ECHO_T}$GCJX" >&6
13551 else
13552 echo "$as_me:$LINENO: result: no" >&5
13553 echo "${ECHO_T}no" >&6
13558 else
13559 if test "x${withval}" != xno; then
13561 if test "x" != x; then
13562 if test -f ""; then
13563 GCJX=""
13564 else
13565 # Extract the first word of """", so it can be a program name with args.
13566 set dummy ""; ac_word=$2
13567 echo "$as_me:$LINENO: checking for $ac_word" >&5
13568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13569 if test "${ac_cv_path_GCJX+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 case $GCJX in
13573 [\\/]* | ?:[\\/]*)
13574 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13580 IFS=$as_save_IFS
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 break 2
13588 done
13589 done
13592 esac
13594 GCJX=$ac_cv_path_GCJX
13596 if test -n "$GCJX"; then
13597 echo "$as_me:$LINENO: result: $GCJX" >&5
13598 echo "${ECHO_T}$GCJX" >&6
13599 else
13600 echo "$as_me:$LINENO: result: no" >&5
13601 echo "${ECHO_T}no" >&6
13605 else
13606 # Extract the first word of ""gcjx"", so it can be a program name with args.
13607 set dummy "gcjx"; ac_word=$2
13608 echo "$as_me:$LINENO: checking for $ac_word" >&5
13609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13610 if test "${ac_cv_path_GCJX+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613 case $GCJX in
13614 [\\/]* | ?:[\\/]*)
13615 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13629 done
13630 done
13633 esac
13635 GCJX=$ac_cv_path_GCJX
13637 if test -n "$GCJX"; then
13638 echo "$as_me:$LINENO: result: $GCJX" >&5
13639 echo "${ECHO_T}$GCJX" >&6
13640 else
13641 echo "$as_me:$LINENO: result: no" >&5
13642 echo "${ECHO_T}no" >&6
13649 user_specified_javac=gcjx
13651 else
13654 if test "x" != x; then
13655 if test -f ""; then
13656 GCJX=""
13657 else
13658 # Extract the first word of """", so it can be a program name with args.
13659 set dummy ""; ac_word=$2
13660 echo "$as_me:$LINENO: checking for $ac_word" >&5
13661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13662 if test "${ac_cv_path_GCJX+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 case $GCJX in
13666 [\\/]* | ?:[\\/]*)
13667 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13673 IFS=$as_save_IFS
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13679 break 2
13681 done
13682 done
13685 esac
13687 GCJX=$ac_cv_path_GCJX
13689 if test -n "$GCJX"; then
13690 echo "$as_me:$LINENO: result: $GCJX" >&5
13691 echo "${ECHO_T}$GCJX" >&6
13692 else
13693 echo "$as_me:$LINENO: result: no" >&5
13694 echo "${ECHO_T}no" >&6
13698 else
13699 # Extract the first word of ""gcjx"", so it can be a program name with args.
13700 set dummy "gcjx"; ac_word=$2
13701 echo "$as_me:$LINENO: checking for $ac_word" >&5
13702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13703 if test "${ac_cv_path_GCJX+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706 case $GCJX in
13707 [\\/]* | ?:[\\/]*)
13708 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13714 IFS=$as_save_IFS
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13720 break 2
13722 done
13723 done
13726 esac
13728 GCJX=$ac_cv_path_GCJX
13730 if test -n "$GCJX"; then
13731 echo "$as_me:$LINENO: result: $GCJX" >&5
13732 echo "${ECHO_T}$GCJX" >&6
13733 else
13734 echo "$as_me:$LINENO: result: no" >&5
13735 echo "${ECHO_T}no" >&6
13746 # Check whether --with-ecj or --without-ecj was given.
13747 if test "${with_ecj+set}" = set; then
13748 withval="$with_ecj"
13750 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13752 if test "x${withval}" != x; then
13753 if test -f "${withval}"; then
13754 ECJ="${withval}"
13755 else
13756 # Extract the first word of ""${withval}"", so it can be a program name with args.
13757 set dummy "${withval}"; ac_word=$2
13758 echo "$as_me:$LINENO: checking for $ac_word" >&5
13759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13760 if test "${ac_cv_path_ECJ+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 case $ECJ in
13764 [\\/]* | ?:[\\/]*)
13765 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13771 IFS=$as_save_IFS
13772 test -z "$as_dir" && as_dir=.
13773 for ac_exec_ext in '' $ac_executable_extensions; do
13774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13775 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13777 break 2
13779 done
13780 done
13783 esac
13785 ECJ=$ac_cv_path_ECJ
13787 if test -n "$ECJ"; then
13788 echo "$as_me:$LINENO: result: $ECJ" >&5
13789 echo "${ECHO_T}$ECJ" >&6
13790 else
13791 echo "$as_me:$LINENO: result: no" >&5
13792 echo "${ECHO_T}no" >&6
13796 else
13797 # Extract the first word of ""ecj"", so it can be a program name with args.
13798 set dummy "ecj"; ac_word=$2
13799 echo "$as_me:$LINENO: checking for $ac_word" >&5
13800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13801 if test "${ac_cv_path_ECJ+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 case $ECJ in
13805 [\\/]* | ?:[\\/]*)
13806 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13816 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13820 done
13821 done
13824 esac
13826 ECJ=$ac_cv_path_ECJ
13828 if test -n "$ECJ"; then
13829 echo "$as_me:$LINENO: result: $ECJ" >&5
13830 echo "${ECHO_T}$ECJ" >&6
13831 else
13832 echo "$as_me:$LINENO: result: no" >&5
13833 echo "${ECHO_T}no" >&6
13838 else
13839 if test "x${withval}" != xno; then
13841 if test "x" != x; then
13842 if test -f ""; then
13843 ECJ=""
13844 else
13845 # Extract the first word of """", so it can be a program name with args.
13846 set dummy ""; ac_word=$2
13847 echo "$as_me:$LINENO: checking for $ac_word" >&5
13848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13849 if test "${ac_cv_path_ECJ+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 case $ECJ in
13853 [\\/]* | ?:[\\/]*)
13854 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $PATH
13860 IFS=$as_save_IFS
13861 test -z "$as_dir" && as_dir=.
13862 for ac_exec_ext in '' $ac_executable_extensions; do
13863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13864 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13866 break 2
13868 done
13869 done
13872 esac
13874 ECJ=$ac_cv_path_ECJ
13876 if test -n "$ECJ"; then
13877 echo "$as_me:$LINENO: result: $ECJ" >&5
13878 echo "${ECHO_T}$ECJ" >&6
13879 else
13880 echo "$as_me:$LINENO: result: no" >&5
13881 echo "${ECHO_T}no" >&6
13885 else
13886 # Extract the first word of ""ecj"", so it can be a program name with args.
13887 set dummy "ecj"; ac_word=$2
13888 echo "$as_me:$LINENO: checking for $ac_word" >&5
13889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13890 if test "${ac_cv_path_ECJ+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 case $ECJ in
13894 [\\/]* | ?:[\\/]*)
13895 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13901 IFS=$as_save_IFS
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13905 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13907 break 2
13909 done
13910 done
13913 esac
13915 ECJ=$ac_cv_path_ECJ
13917 if test -n "$ECJ"; then
13918 echo "$as_me:$LINENO: result: $ECJ" >&5
13919 echo "${ECHO_T}$ECJ" >&6
13920 else
13921 echo "$as_me:$LINENO: result: no" >&5
13922 echo "${ECHO_T}no" >&6
13929 user_specified_javac=ecj
13931 else
13934 if test "x" != x; then
13935 if test -f ""; then
13936 ECJ=""
13937 else
13938 # Extract the first word of """", so it can be a program name with args.
13939 set dummy ""; ac_word=$2
13940 echo "$as_me:$LINENO: checking for $ac_word" >&5
13941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13942 if test "${ac_cv_path_ECJ+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945 case $ECJ in
13946 [\\/]* | ?:[\\/]*)
13947 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13961 done
13962 done
13965 esac
13967 ECJ=$ac_cv_path_ECJ
13969 if test -n "$ECJ"; then
13970 echo "$as_me:$LINENO: result: $ECJ" >&5
13971 echo "${ECHO_T}$ECJ" >&6
13972 else
13973 echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6
13978 else
13979 # Extract the first word of ""ecj"", so it can be a program name with args.
13980 set dummy "ecj"; ac_word=$2
13981 echo "$as_me:$LINENO: checking for $ac_word" >&5
13982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13983 if test "${ac_cv_path_ECJ+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 case $ECJ in
13987 [\\/]* | ?:[\\/]*)
13988 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13998 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
13999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14002 done
14003 done
14006 esac
14008 ECJ=$ac_cv_path_ECJ
14010 if test -n "$ECJ"; then
14011 echo "$as_me:$LINENO: result: $ECJ" >&5
14012 echo "${ECHO_T}$ECJ" >&6
14013 else
14014 echo "$as_me:$LINENO: result: no" >&5
14015 echo "${ECHO_T}no" >&6
14025 if test "x${user_specified_javac}" = x; then
14028 if test "x${GCJ}" != x; then
14029 FOUND_GCJ_TRUE=
14030 FOUND_GCJ_FALSE='#'
14031 else
14032 FOUND_GCJ_TRUE='#'
14033 FOUND_GCJ_FALSE=
14038 if test "x${JIKES}" != x; then
14039 FOUND_JIKES_TRUE=
14040 FOUND_JIKES_FALSE='#'
14041 else
14042 FOUND_JIKES_TRUE='#'
14043 FOUND_JIKES_FALSE=
14048 if test "x${ECJ}" != x; then
14049 FOUND_ECJ_TRUE=
14050 FOUND_ECJ_FALSE='#'
14051 else
14052 FOUND_ECJ_TRUE='#'
14053 FOUND_ECJ_FALSE=
14056 else
14059 if test "x${user_specified_javac}" = xgcj; then
14060 FOUND_GCJ_TRUE=
14061 FOUND_GCJ_FALSE='#'
14062 else
14063 FOUND_GCJ_TRUE='#'
14064 FOUND_GCJ_FALSE=
14069 if test "x${user_specified_javac}" = xjikes; then
14070 FOUND_JIKES_TRUE=
14071 FOUND_JIKES_FALSE='#'
14072 else
14073 FOUND_JIKES_TRUE='#'
14074 FOUND_JIKES_FALSE=
14079 if test "x${user_specified_javac}" = xecj; then
14080 FOUND_ECJ_TRUE=
14081 FOUND_ECJ_FALSE='#'
14082 else
14083 FOUND_ECJ_TRUE='#'
14084 FOUND_ECJ_FALSE=
14090 if test "x${user_specified_javac}" = xkjc; then
14091 FOUND_KJC_TRUE=
14092 FOUND_KJC_FALSE='#'
14093 else
14094 FOUND_KJC_TRUE='#'
14095 FOUND_KJC_FALSE=
14100 if test "x${user_specified_javac}" = xgcjx; then
14101 FOUND_GCJX_TRUE=
14102 FOUND_GCJX_FALSE='#'
14103 else
14104 FOUND_GCJX_TRUE='#'
14105 FOUND_GCJX_FALSE=
14109 if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx && test "x${user_specified_javac}" != xecj; then
14110 # FIXME: use autoconf error function
14111 echo "configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" 1>&2
14112 exit 1
14118 # Check whether --with-classpath or --without-classpath was given.
14119 if test "${with_classpath+set}" = set; then
14120 withval="$with_classpath"
14122 if test "x${withval}" = xyes; then
14123 # set user classpath to CLASSPATH from env
14124 echo "$as_me:$LINENO: checking for classlib" >&5
14125 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14126 USER_CLASSLIB=${CLASSPATH}
14128 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
14129 echo "${ECHO_T}${USER_CLASSLIB}" >&6
14130 conditional_with_classlib=true
14131 elif test "x${withval}" != x && test "x${withval}" != xno; then
14132 # set user classpath to specified value
14133 echo "$as_me:$LINENO: checking for classlib" >&5
14134 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14135 USER_CLASSLIB=${withval}
14137 echo "$as_me:$LINENO: result: ${withval}" >&5
14138 echo "${ECHO_T}${withval}" >&6
14139 conditional_with_classlib=true
14142 else
14143 conditional_with_classlib=false
14147 if test "x${conditional_with_classlib}" = xtrue; then
14148 USER_SPECIFIED_CLASSLIB_TRUE=
14149 USER_SPECIFIED_CLASSLIB_FALSE='#'
14150 else
14151 USER_SPECIFIED_CLASSLIB_TRUE='#'
14152 USER_SPECIFIED_CLASSLIB_FALSE=
14157 # Check whether --with-vm-classes or --without-vm-classes was given.
14158 if test "${with_vm_classes+set}" = set; then
14159 withval="$with_vm_classes"
14160 vm_classes="$with_vm_classes"
14161 else
14162 vm_classes='${top_srcdir}/vm/reference'
14167 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14168 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14169 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14170 if test "${enable_maintainer_mode+set}" = set; then
14171 enableval="$enable_maintainer_mode"
14172 USE_MAINTAINER_MODE=$enableval
14173 else
14174 USE_MAINTAINER_MODE=no
14176 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
14177 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
14180 if test $USE_MAINTAINER_MODE = yes; then
14181 MAINTAINER_MODE_TRUE=
14182 MAINTAINER_MODE_FALSE='#'
14183 else
14184 MAINTAINER_MODE_TRUE='#'
14185 MAINTAINER_MODE_FALSE=
14188 MAINT=$MAINTAINER_MODE_TRUE
14192 # Check whether --enable-debug or --disable-debug was given.
14193 if test "${enable_debug+set}" = set; then
14194 enableval="$enable_debug"
14195 case "${enableval}" in
14196 yes)
14197 LIBDEBUG="true"
14199 cat >>confdefs.h <<\_ACEOF
14200 #define DEBUG 1
14201 _ACEOF
14204 no) LIBDEBUG="false" ;;
14205 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14206 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14207 { (exit 1); exit 1; }; } ;;
14208 esac
14209 else
14210 LIBDEBUG="false"
14214 # Check whether --enable-load-library or --disable-load-library was given.
14215 if test "${enable_load_library+set}" = set; then
14216 enableval="$enable_load_library"
14217 case "${enableval}" in
14218 yes) INIT_LOAD_LIBRARY="true" ;;
14219 no) INIT_LOAD_LIBRARY="false" ;;
14220 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
14221 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
14222 { (exit 1); exit 1; }; } ;;
14223 esac
14224 else
14225 INIT_LOAD_LIBRARY="true"
14230 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
14231 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
14232 enableval="$enable_java_lang_system_explicit_initialization"
14233 case "${enableval}" in
14234 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
14235 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
14236 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
14237 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
14238 { (exit 1); exit 1; }; } ;;
14239 esac
14240 else
14241 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
14246 REMOVE=""
14249 # Extract the first word of "mkdir", so it can be a program name with args.
14250 set dummy mkdir; ac_word=$2
14251 echo "$as_me:$LINENO: checking for $ac_word" >&5
14252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14253 if test "${ac_cv_path_MKDIR+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 case $MKDIR in
14257 [\\/]* | ?:[\\/]*)
14258 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
14261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14264 IFS=$as_save_IFS
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
14267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14268 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
14269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 break 2
14272 done
14273 done
14276 esac
14278 MKDIR=$ac_cv_path_MKDIR
14280 if test -n "$MKDIR"; then
14281 echo "$as_me:$LINENO: result: $MKDIR" >&5
14282 echo "${ECHO_T}$MKDIR" >&6
14283 else
14284 echo "$as_me:$LINENO: result: no" >&5
14285 echo "${ECHO_T}no" >&6
14288 # Extract the first word of "cp", so it can be a program name with args.
14289 set dummy cp; ac_word=$2
14290 echo "$as_me:$LINENO: checking for $ac_word" >&5
14291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14292 if test "${ac_cv_path_CP+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295 case $CP in
14296 [\\/]* | ?:[\\/]*)
14297 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301 for as_dir in $PATH
14303 IFS=$as_save_IFS
14304 test -z "$as_dir" && as_dir=.
14305 for ac_exec_ext in '' $ac_executable_extensions; do
14306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14307 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14309 break 2
14311 done
14312 done
14315 esac
14317 CP=$ac_cv_path_CP
14319 if test -n "$CP"; then
14320 echo "$as_me:$LINENO: result: $CP" >&5
14321 echo "${ECHO_T}$CP" >&6
14322 else
14323 echo "$as_me:$LINENO: result: no" >&5
14324 echo "${ECHO_T}no" >&6
14327 # Extract the first word of "date", so it can be a program name with args.
14328 set dummy date; ac_word=$2
14329 echo "$as_me:$LINENO: checking for $ac_word" >&5
14330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14331 if test "${ac_cv_path_DATE+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 case $DATE in
14335 [\\/]* | ?:[\\/]*)
14336 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14342 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=.
14344 for ac_exec_ext in '' $ac_executable_extensions; do
14345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14346 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
14347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14348 break 2
14350 done
14351 done
14354 esac
14356 DATE=$ac_cv_path_DATE
14358 if test -n "$DATE"; then
14359 echo "$as_me:$LINENO: result: $DATE" >&5
14360 echo "${ECHO_T}$DATE" >&6
14361 else
14362 echo "$as_me:$LINENO: result: no" >&5
14363 echo "${ECHO_T}no" >&6
14367 # Extract the first word of "find", so it can be a program name with args.
14368 set dummy find; ac_word=$2
14369 echo "$as_me:$LINENO: checking for $ac_word" >&5
14370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14371 if test "${ac_cv_path_FIND+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 case $FIND in
14375 [\\/]* | ?:[\\/]*)
14376 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
14379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14380 for as_dir in $PATH
14382 IFS=$as_save_IFS
14383 test -z "$as_dir" && as_dir=.
14384 for ac_exec_ext in '' $ac_executable_extensions; do
14385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14386 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
14387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14388 break 2
14390 done
14391 done
14394 esac
14396 FIND=$ac_cv_path_FIND
14398 if test -n "$FIND"; then
14399 echo "$as_me:$LINENO: result: $FIND" >&5
14400 echo "${ECHO_T}$FIND" >&6
14401 else
14402 echo "$as_me:$LINENO: result: no" >&5
14403 echo "${ECHO_T}no" >&6
14408 # Extract the first word of "zip", so it can be a program name with args.
14409 set dummy zip; ac_word=$2
14410 echo "$as_me:$LINENO: checking for $ac_word" >&5
14411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14412 if test "${ac_cv_path_ZIP+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 else
14415 case $ZIP in
14416 [\\/]* | ?:[\\/]*)
14417 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
14425 for ac_exec_ext in '' $ac_executable_extensions; do
14426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
14428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 break 2
14431 done
14432 done
14435 esac
14437 ZIP=$ac_cv_path_ZIP
14439 if test -n "$ZIP"; then
14440 echo "$as_me:$LINENO: result: $ZIP" >&5
14441 echo "${ECHO_T}$ZIP" >&6
14442 else
14443 echo "$as_me:$LINENO: result: no" >&5
14444 echo "${ECHO_T}no" >&6
14448 # Check whether --with-fastjar or --without-fastjar was given.
14449 if test "${with_fastjar+set}" = set; then
14450 withval="$with_fastjar"
14452 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
14453 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
14454 FASTJAR=${withval}
14455 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
14456 echo "${ECHO_T}${FASTJAR}" >&6
14458 else
14459 # Extract the first word of "fastjar", so it can be a program name with args.
14460 set dummy fastjar; ac_word=$2
14461 echo "$as_me:$LINENO: checking for $ac_word" >&5
14462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14463 if test "${ac_cv_path_FASTJAR+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466 case $FASTJAR in
14467 [\\/]* | ?:[\\/]*)
14468 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
14471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14472 for as_dir in $PATH
14474 IFS=$as_save_IFS
14475 test -z "$as_dir" && as_dir=.
14476 for ac_exec_ext in '' $ac_executable_extensions; do
14477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14478 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
14479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14480 break 2
14482 done
14483 done
14486 esac
14488 FASTJAR=$ac_cv_path_FASTJAR
14490 if test -n "$FASTJAR"; then
14491 echo "$as_me:$LINENO: result: $FASTJAR" >&5
14492 echo "${ECHO_T}$FASTJAR" >&6
14493 else
14494 echo "$as_me:$LINENO: result: no" >&5
14495 echo "${ECHO_T}no" >&6
14499 if test x"${FASTJAR}" != x; then
14500 ZIP=""
14504 # Check whether --with-glibj or --without-glibj was given.
14505 if test "${with_glibj+set}" = set; then
14506 withval="$with_glibj"
14508 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
14509 install_class_files=no
14510 build_class_files=yes
14511 use_zip=yes
14512 elif test "x${withval}" = xboth; then
14513 install_class_files=yes
14514 build_class_files=yes
14515 use_zip=yes
14516 elif test "x${withval}" = xflat; then
14517 install_class_files=yes
14518 build_class_files=yes
14519 use_zip=no
14520 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
14521 install_class_files=no
14522 build_class_files=no
14523 use_zip=no
14524 elif test "x${withval}" = xbuild; then
14525 install_class_files=no
14526 build_class_files=yes
14527 use_zip=no
14528 else
14529 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
14530 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
14531 { (exit 1); exit 1; }; }
14534 else
14536 install_class_files=no
14537 use_zip=yes
14542 if test "x${use_zip}" = xyes; then
14543 INSTALL_GLIBJ_ZIP_TRUE=
14544 INSTALL_GLIBJ_ZIP_FALSE='#'
14545 else
14546 INSTALL_GLIBJ_ZIP_TRUE='#'
14547 INSTALL_GLIBJ_ZIP_FALSE=
14552 if test "x${install_class_files}" = xyes; then
14553 INSTALL_CLASS_FILES_TRUE=
14554 INSTALL_CLASS_FILES_FALSE='#'
14555 else
14556 INSTALL_CLASS_FILES_TRUE='#'
14557 INSTALL_CLASS_FILES_FALSE=
14562 if test "x${build_class_files}" = xyes; then
14563 BUILD_CLASS_FILES_TRUE=
14564 BUILD_CLASS_FILES_FALSE='#'
14565 else
14566 BUILD_CLASS_FILES_TRUE='#'
14567 BUILD_CLASS_FILES_FALSE=
14571 # Check whether --enable-examples or --disable-examples was given.
14572 if test "${enable_examples+set}" = set; then
14573 enableval="$enable_examples"
14574 case "${enableval}" in
14575 yes) EXAMPLESDIR="examples" ;;
14576 no) EXAMPLESDIR="" ;;
14577 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
14578 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
14579 { (exit 1); exit 1; }; } ;;
14580 esac
14581 else
14582 EXAMPLESDIR="examples"
14584 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
14585 EXAMPLESDIR=""
14592 # Check whether --with-gjdoc or --without-gjdoc was given.
14593 if test "${with_gjdoc+set}" = set; then
14594 withval="$with_gjdoc"
14595 if test "x${withval}" = xno; then
14596 WITH_GJDOC=no;
14597 elif test "x${withval}" = xyes -o "x{withval}" = x; then
14598 WITH_GJDOC=yes;
14599 # Extract the first word of "gjdoc", so it can be a program name with args.
14600 set dummy gjdoc; ac_word=$2
14601 echo "$as_me:$LINENO: checking for $ac_word" >&5
14602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14603 if test "${ac_cv_path_GJDOC+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 case $GJDOC in
14607 [\\/]* | ?:[\\/]*)
14608 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
14619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14625 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
14627 esac
14629 GJDOC=$ac_cv_path_GJDOC
14631 if test -n "$GJDOC"; then
14632 echo "$as_me:$LINENO: result: $GJDOC" >&5
14633 echo "${ECHO_T}$GJDOC" >&6
14634 else
14635 echo "$as_me:$LINENO: result: no" >&5
14636 echo "${ECHO_T}no" >&6
14639 if test "x${GJDOC}" = xno; then
14640 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
14641 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
14642 { (exit 1); exit 1; }; };
14644 else
14645 WITH_GJDOC=yes
14646 GJDOC="${withval}"
14647 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
14648 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
14649 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
14650 if eval "test \"\${$as_ac_File+set}\" = set"; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 test "$cross_compiling" = yes &&
14654 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14655 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14656 { (exit 1); exit 1; }; }
14657 if test -r "${GJDOC}"; then
14658 eval "$as_ac_File=yes"
14659 else
14660 eval "$as_ac_File=no"
14663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
14664 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
14665 if test `eval echo '${'$as_ac_File'}'` = yes; then
14667 else
14668 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
14669 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
14670 { (exit 1); exit 1; }; }
14674 else
14675 WITH_GJDOC=no
14680 if test "x${WITH_GJDOC}" = xyes; then
14681 CREATE_API_DOCS_TRUE=
14682 CREATE_API_DOCS_FALSE='#'
14683 else
14684 CREATE_API_DOCS_TRUE='#'
14685 CREATE_API_DOCS_FALSE=
14692 # Check whether --with-jay or --without-jay was given.
14693 if test "${with_jay+set}" = set; then
14694 withval="$with_jay"
14696 if test -d "${withval}"; then
14697 JAY_DIR_PATH="${withval}"
14698 # Extract the first word of "jay", so it can be a program name with args.
14699 set dummy jay; ac_word=$2
14700 echo "$as_me:$LINENO: checking for $ac_word" >&5
14701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14702 if test "${ac_cv_path_JAY+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 case $JAY in
14706 [\\/]* | ?:[\\/]*)
14707 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in ${JAY_DIR_PATH}
14713 IFS=$as_save_IFS
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
14718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14719 break 2
14721 done
14722 done
14724 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
14726 esac
14728 JAY=$ac_cv_path_JAY
14730 if test -n "$JAY"; then
14731 echo "$as_me:$LINENO: result: $JAY" >&5
14732 echo "${ECHO_T}$JAY" >&6
14733 else
14734 echo "$as_me:$LINENO: result: no" >&5
14735 echo "${ECHO_T}no" >&6
14738 if test "x${JAY}" = xno; then
14739 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
14740 echo "$as_me: error: \"jay executable not found\"" >&2;}
14741 { (exit 1); exit 1; }; };
14743 else
14744 JAY_DIR_PATH=$(dirname "${withval}")
14745 JAY="${withval}"
14748 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
14749 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
14750 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
14751 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
14752 if eval "test \"\${$as_ac_File+set}\" = set"; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 test "$cross_compiling" = yes &&
14756 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
14757 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
14758 { (exit 1); exit 1; }; }
14759 if test -r "${JAY_SKELETON}"; then
14760 eval "$as_ac_File=yes"
14761 else
14762 eval "$as_ac_File=no"
14765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
14766 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
14767 if test `eval echo '${'$as_ac_File'}'` = yes; then
14769 else
14770 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in $(dirname ${withval})\"" >&5
14771 echo "$as_me: error: \"Expected skeleton file in $(dirname ${withval})\"" >&2;}
14772 { (exit 1); exit 1; }; }
14775 JAY_FOUND=yes
14777 else
14779 JAY_FOUND=no
14784 if test "x${JAY_FOUND}" = xyes; then
14785 REGEN_PARSERS_TRUE=
14786 REGEN_PARSERS_FALSE='#'
14787 else
14788 REGEN_PARSERS_TRUE='#'
14789 REGEN_PARSERS_FALSE=
14794 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
14795 if test "${enable_portable_native_sync+set}" = set; then
14796 enableval="$enable_portable_native_sync"
14797 case "${enableval}" in
14798 yes)
14800 cat >>confdefs.h <<\_ACEOF
14801 #define PORTABLE_NATIVE_SYNC 1
14802 _ACEOF
14805 no) ;;
14807 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
14808 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
14809 { (exit 1); exit 1; }; }
14811 esac
14814 # ------ AX CREATE STDINT H -------------------------------------
14815 echo "$as_me:$LINENO: checking for stdint types" >&5
14816 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
14817 ac_stdint_h=`echo include/config-int.h`
14818 # try to shortcircuit - if the default include path of the compiler
14819 # can find a "stdint.h" header then we assume that all compilers can.
14820 if test "${ac_cv_header_stdint_t+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14824 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
14825 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
14826 old_CFLAGS="$CFLAGS" ; CFLAGS=""
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h. */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 #include <stdint.h>
14835 main ()
14837 int_least32_t v = 0;
14839 return 0;
14841 _ACEOF
14842 rm -f conftest.$ac_objext
14843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14844 (eval $ac_compile) 2>conftest.er1
14845 ac_status=$?
14846 grep -v '^ *+' conftest.er1 >conftest.err
14847 rm -f conftest.er1
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } &&
14851 { ac_try='test -z "$ac_c_werror_flag"
14852 || test ! -s conftest.err'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest.$ac_objext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_stdint_result="(assuming C99 compatible system)"
14865 ac_cv_header_stdint_t="stdint.h";
14866 else
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 ac_cv_header_stdint_t=""
14872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14873 CXXFLAGS="$old_CXXFLAGS"
14874 CPPFLAGS="$old_CPPFLAGS"
14875 CFLAGS="$old_CFLAGS"
14879 v="... $ac_cv_header_stdint_h"
14880 if test "$ac_stdint_h" = "stdint.h" ; then
14881 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
14882 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
14883 elif test "$ac_stdint_h" = "inttypes.h" ; then
14884 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
14885 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
14886 elif test "_$ac_cv_header_stdint_t" = "_" ; then
14887 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
14888 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
14889 else
14890 ac_cv_header_stdint="$ac_cv_header_stdint_t"
14891 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
14892 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
14895 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14898 inttype_headers=`echo | sed -e 's/,/ /g'`
14900 ac_cv_stdint_result="(no helpful system typedefs seen)"
14902 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14903 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14904 if test "${ac_cv_header_stdint_x+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14908 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14909 echo "$as_me:$LINENO: result: (..)" >&5
14910 echo "${ECHO_T}(..)" >&6
14911 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
14912 unset ac_cv_type_uintptr_t
14913 unset ac_cv_type_uint64_t
14914 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14915 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14916 if test "${ac_cv_type_uintptr_t+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919 cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h. */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 #include <$i>
14928 main ()
14930 if ((uintptr_t *) 0)
14931 return 0;
14932 if (sizeof (uintptr_t))
14933 return 0;
14935 return 0;
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_type_uintptr_t=yes
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_cv_type_uintptr_t=no
14967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14970 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14971 if test $ac_cv_type_uintptr_t = yes; then
14972 ac_cv_header_stdint_x=$i
14973 else
14974 continue
14977 echo "$as_me:$LINENO: checking for uint64_t" >&5
14978 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14979 if test "${ac_cv_type_uint64_t+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 #include<$i>
14991 main ()
14993 if ((uint64_t *) 0)
14994 return 0;
14995 if (sizeof (uint64_t))
14996 return 0;
14998 return 0;
15000 _ACEOF
15001 rm -f conftest.$ac_objext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15003 (eval $ac_compile) 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } &&
15010 { ac_try='test -z "$ac_c_werror_flag"
15011 || test ! -s conftest.err'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest.$ac_objext'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_type_uint64_t=yes
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_type_uint64_t=no
15030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15032 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15033 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15034 if test $ac_cv_type_uint64_t = yes; then
15035 and64="/uint64_t"
15036 else
15037 and64=""
15040 stdint.h inttypes.h sys/inttypes.h $inttype_headers
15041 break
15042 done
15043 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15044 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15047 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
15048 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
15051 if test "_$ac_cv_header_stdint_x" = "_" ; then
15053 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
15054 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
15055 if test "${ac_cv_header_stdint_o+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15059 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15060 echo "$as_me:$LINENO: result: (..)" >&5
15061 echo "${ECHO_T}(..)" >&6
15062 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
15063 unset ac_cv_type_uint32_t
15064 unset ac_cv_type_uint64_t
15065 echo "$as_me:$LINENO: checking for uint32_t" >&5
15066 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
15067 if test "${ac_cv_type_uint32_t+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070 cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <$i>
15079 main ()
15081 if ((uint32_t *) 0)
15082 return 0;
15083 if (sizeof (uint32_t))
15084 return 0;
15086 return 0;
15088 _ACEOF
15089 rm -f conftest.$ac_objext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15091 (eval $ac_compile) 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -z "$ac_c_werror_flag"
15099 || test ! -s conftest.err'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; } &&
15105 { ac_try='test -s conftest.$ac_objext'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 ac_cv_type_uint32_t=yes
15112 else
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_cv_type_uint32_t=no
15118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15120 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15121 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
15122 if test $ac_cv_type_uint32_t = yes; then
15123 ac_cv_header_stdint_o=$i
15124 else
15125 continue
15128 echo "$as_me:$LINENO: checking for uint64_t" >&5
15129 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15130 if test "${ac_cv_type_uint64_t+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 #include<$i>
15142 main ()
15144 if ((uint64_t *) 0)
15145 return 0;
15146 if (sizeof (uint64_t))
15147 return 0;
15149 return 0;
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_type_uint64_t=yes
15175 else
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 ac_cv_type_uint64_t=no
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15184 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15185 if test $ac_cv_type_uint64_t = yes; then
15186 and64="/uint64_t"
15187 else
15188 and64=""
15191 inttypes.h sys/inttypes.h stdint.h $inttype_headers
15192 break
15193 break;
15194 done
15195 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
15196 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
15199 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
15200 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
15204 if test "_$ac_cv_header_stdint_x" = "_" ; then
15205 if test "_$ac_cv_header_stdint_o" = "_" ; then
15207 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
15208 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
15209 if test "${ac_cv_header_stdint_u+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15213 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15214 echo "$as_me:$LINENO: result: (..)" >&5
15215 echo "${ECHO_T}(..)" >&6
15216 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15217 unset ac_cv_type_u_int32_t
15218 unset ac_cv_type_u_int64_t
15219 echo "$as_me:$LINENO: checking for u_int32_t" >&5
15220 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
15221 if test "${ac_cv_type_u_int32_t+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 #include <$i>
15233 main ()
15235 if ((u_int32_t *) 0)
15236 return 0;
15237 if (sizeof (u_int32_t))
15238 return 0;
15240 return 0;
15242 _ACEOF
15243 rm -f conftest.$ac_objext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15245 (eval $ac_compile) 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag"
15253 || test ! -s conftest.err'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_cv_type_u_int32_t=yes
15266 else
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 ac_cv_type_u_int32_t=no
15272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15274 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15275 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
15276 if test $ac_cv_type_u_int32_t = yes; then
15277 ac_cv_header_stdint_u=$i
15278 else
15279 continue
15282 echo "$as_me:$LINENO: checking for u_int64_t" >&5
15283 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
15284 if test "${ac_cv_type_u_int64_t+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include<$i>
15296 main ()
15298 if ((u_int64_t *) 0)
15299 return 0;
15300 if (sizeof (u_int64_t))
15301 return 0;
15303 return 0;
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15308 (eval $ac_compile) 2>conftest.er1
15309 ac_status=$?
15310 grep -v '^ *+' conftest.er1 >conftest.err
15311 rm -f conftest.er1
15312 cat conftest.err >&5
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); } &&
15315 { ac_try='test -z "$ac_c_werror_flag"
15316 || test ! -s conftest.err'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest.$ac_objext'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; }; then
15328 ac_cv_type_u_int64_t=yes
15329 else
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_cv_type_u_int64_t=no
15335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15337 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15338 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
15339 if test $ac_cv_type_u_int64_t = yes; then
15340 and64="/u_int64_t"
15341 else
15342 and64=""
15345 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
15346 break
15347 break;
15348 done
15349 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
15350 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
15353 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
15354 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
15356 fi fi
15358 if test "_$ac_cv_header_stdint_x" = "_" ; then
15359 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
15360 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
15361 echo "$as_me:$LINENO: result: (..)" >&5
15362 echo "${ECHO_T}(..)" >&6
15364 echo "$as_me:$LINENO: checking for char" >&5
15365 echo $ECHO_N "checking for char... $ECHO_C" >&6
15366 if test "${ac_cv_type_char+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15377 main ()
15379 if ((char *) 0)
15380 return 0;
15381 if (sizeof (char))
15382 return 0;
15384 return 0;
15386 _ACEOF
15387 rm -f conftest.$ac_objext
15388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15389 (eval $ac_compile) 2>conftest.er1
15390 ac_status=$?
15391 grep -v '^ *+' conftest.er1 >conftest.err
15392 rm -f conftest.er1
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
15396 { ac_try='test -z "$ac_c_werror_flag"
15397 || test ! -s conftest.err'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; } &&
15403 { ac_try='test -s conftest.$ac_objext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 ac_cv_type_char=yes
15410 else
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_type_char=no
15416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15418 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15419 echo "${ECHO_T}$ac_cv_type_char" >&6
15421 echo "$as_me:$LINENO: checking size of char" >&5
15422 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15423 if test "${ac_cv_sizeof_char+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 if test "$ac_cv_type_char" = yes; then
15427 # The cast to unsigned long works around a bug in the HP C Compiler
15428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15430 # This bug is HP SR number 8606223364.
15431 if test "$cross_compiling" = yes; then
15432 # Depending upon the size, compute the lo and hi bounds.
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h. */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 $ac_includes_default
15441 main ()
15443 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15444 test_array [0] = 0
15447 return 0;
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452 (eval $ac_compile) 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } &&
15459 { ac_try='test -z "$ac_c_werror_flag"
15460 || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_lo=0 ac_mid=0
15473 while :; do
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15482 main ()
15484 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15485 test_array [0] = 0
15488 return 0;
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest.$ac_objext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_hi=$ac_mid; break
15514 else
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_lo=`expr $ac_mid + 1`
15519 if test $ac_lo -le $ac_mid; then
15520 ac_lo= ac_hi=
15521 break
15523 ac_mid=`expr 2 '*' $ac_mid + 1`
15525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15526 done
15527 else
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 $ac_includes_default
15539 main ()
15541 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15542 test_array [0] = 0
15545 return 0;
15547 _ACEOF
15548 rm -f conftest.$ac_objext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15550 (eval $ac_compile) 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag"
15558 || test ! -s conftest.err'
15559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560 (eval $ac_try) 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; } &&
15564 { ac_try='test -s conftest.$ac_objext'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_hi=-1 ac_mid=-1
15571 while :; do
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h. */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 $ac_includes_default
15580 main ()
15582 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15583 test_array [0] = 0
15586 return 0;
15588 _ACEOF
15589 rm -f conftest.$ac_objext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try='test -z "$ac_c_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_lo=$ac_mid; break
15612 else
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15616 ac_hi=`expr '(' $ac_mid ')' - 1`
15617 if test $ac_mid -le $ac_hi; then
15618 ac_lo= ac_hi=
15619 break
15621 ac_mid=`expr 2 '*' $ac_mid`
15623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15624 done
15625 else
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_lo= ac_hi=
15631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15634 # Binary search between lo and hi bounds.
15635 while test "x$ac_lo" != "x$ac_hi"; do
15636 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h. */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 $ac_includes_default
15645 main ()
15647 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15648 test_array [0] = 0
15651 return 0;
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 (eval $ac_compile) 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } &&
15663 { ac_try='test -z "$ac_c_werror_flag"
15664 || test ! -s conftest.err'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; } &&
15670 { ac_try='test -s conftest.$ac_objext'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_hi=$ac_mid
15677 else
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_lo=`expr '(' $ac_mid ')' + 1`
15683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15684 done
15685 case $ac_lo in
15686 ?*) ac_cv_sizeof_char=$ac_lo;;
15687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15688 See \`config.log' for more details." >&5
15689 echo "$as_me: error: cannot compute sizeof (char), 77
15690 See \`config.log' for more details." >&2;}
15691 { (exit 1); exit 1; }; } ;;
15692 esac
15693 else
15694 if test "$cross_compiling" = yes; then
15695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15696 See \`config.log' for more details." >&5
15697 echo "$as_me: error: cannot run test program while cross compiling
15698 See \`config.log' for more details." >&2;}
15699 { (exit 1); exit 1; }; }
15700 else
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 $ac_includes_default
15708 long longval () { return (long) (sizeof (char)); }
15709 unsigned long ulongval () { return (long) (sizeof (char)); }
15710 #include <stdio.h>
15711 #include <stdlib.h>
15713 main ()
15716 FILE *f = fopen ("conftest.val", "w");
15717 if (! f)
15718 exit (1);
15719 if (((long) (sizeof (char))) < 0)
15721 long i = longval ();
15722 if (i != ((long) (sizeof (char))))
15723 exit (1);
15724 fprintf (f, "%ld\n", i);
15726 else
15728 unsigned long i = ulongval ();
15729 if (i != ((long) (sizeof (char))))
15730 exit (1);
15731 fprintf (f, "%lu\n", i);
15733 exit (ferror (f) || fclose (f) != 0);
15736 return 0;
15738 _ACEOF
15739 rm -f conftest$ac_exeext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_cv_sizeof_char=`cat conftest.val`
15751 else
15752 echo "$as_me: program exited with status $ac_status" >&5
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ( exit $ac_status )
15757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15758 See \`config.log' for more details." >&5
15759 echo "$as_me: error: cannot compute sizeof (char), 77
15760 See \`config.log' for more details." >&2;}
15761 { (exit 1); exit 1; }; }
15763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15766 rm -f conftest.val
15767 else
15768 ac_cv_sizeof_char=0
15771 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15772 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15773 cat >>confdefs.h <<_ACEOF
15774 #define SIZEOF_CHAR $ac_cv_sizeof_char
15775 _ACEOF
15778 echo "$as_me:$LINENO: checking for short" >&5
15779 echo $ECHO_N "checking for short... $ECHO_C" >&6
15780 if test "${ac_cv_type_short+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 $ac_includes_default
15791 main ()
15793 if ((short *) 0)
15794 return 0;
15795 if (sizeof (short))
15796 return 0;
15798 return 0;
15800 _ACEOF
15801 rm -f conftest.$ac_objext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15803 (eval $ac_compile) 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
15810 { ac_try='test -z "$ac_c_werror_flag"
15811 || test ! -s conftest.err'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; } &&
15817 { ac_try='test -s conftest.$ac_objext'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823 ac_cv_type_short=yes
15824 else
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 ac_cv_type_short=no
15830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15832 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15833 echo "${ECHO_T}$ac_cv_type_short" >&6
15835 echo "$as_me:$LINENO: checking size of short" >&5
15836 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15837 if test "${ac_cv_sizeof_short+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840 if test "$ac_cv_type_short" = yes; then
15841 # The cast to unsigned long works around a bug in the HP C Compiler
15842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15844 # This bug is HP SR number 8606223364.
15845 if test "$cross_compiling" = yes; then
15846 # Depending upon the size, compute the lo and hi bounds.
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h. */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 $ac_includes_default
15855 main ()
15857 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15858 test_array [0] = 0
15861 return 0;
15863 _ACEOF
15864 rm -f conftest.$ac_objext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15866 (eval $ac_compile) 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_lo=0 ac_mid=0
15887 while :; do
15888 cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h. */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 $ac_includes_default
15896 main ()
15898 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15899 test_array [0] = 0
15902 return 0;
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907 (eval $ac_compile) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest.$ac_objext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 ac_hi=$ac_mid; break
15928 else
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 ac_lo=`expr $ac_mid + 1`
15933 if test $ac_lo -le $ac_mid; then
15934 ac_lo= ac_hi=
15935 break
15937 ac_mid=`expr 2 '*' $ac_mid + 1`
15939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15940 done
15941 else
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 cat >conftest.$ac_ext <<_ACEOF
15946 /* confdefs.h. */
15947 _ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 $ac_includes_default
15953 main ()
15955 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15956 test_array [0] = 0
15959 return 0;
15961 _ACEOF
15962 rm -f conftest.$ac_objext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15964 (eval $ac_compile) 2>conftest.er1
15965 ac_status=$?
15966 grep -v '^ *+' conftest.er1 >conftest.err
15967 rm -f conftest.er1
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } &&
15971 { ac_try='test -z "$ac_c_werror_flag"
15972 || test ! -s conftest.err'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; } &&
15978 { ac_try='test -s conftest.$ac_objext'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 ac_hi=-1 ac_mid=-1
15985 while :; do
15986 cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h. */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 $ac_includes_default
15994 main ()
15996 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15997 test_array [0] = 0
16000 return 0;
16002 _ACEOF
16003 rm -f conftest.$ac_objext
16004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16005 (eval $ac_compile) 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag"
16013 || test ! -s conftest.err'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; } &&
16019 { ac_try='test -s conftest.$ac_objext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_lo=$ac_mid; break
16026 else
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16030 ac_hi=`expr '(' $ac_mid ')' - 1`
16031 if test $ac_mid -le $ac_hi; then
16032 ac_lo= ac_hi=
16033 break
16035 ac_mid=`expr 2 '*' $ac_mid`
16037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16038 done
16039 else
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_lo= ac_hi=
16045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16048 # Binary search between lo and hi bounds.
16049 while test "x$ac_lo" != "x$ac_hi"; do
16050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h. */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16057 $ac_includes_default
16059 main ()
16061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16062 test_array [0] = 0
16065 return 0;
16067 _ACEOF
16068 rm -f conftest.$ac_objext
16069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16070 (eval $ac_compile) 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -z "$ac_c_werror_flag"
16078 || test ! -s conftest.err'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest.$ac_objext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_hi=$ac_mid
16091 else
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 ac_lo=`expr '(' $ac_mid ')' + 1`
16097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16098 done
16099 case $ac_lo in
16100 ?*) ac_cv_sizeof_short=$ac_lo;;
16101 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16102 See \`config.log' for more details." >&5
16103 echo "$as_me: error: cannot compute sizeof (short), 77
16104 See \`config.log' for more details." >&2;}
16105 { (exit 1); exit 1; }; } ;;
16106 esac
16107 else
16108 if test "$cross_compiling" = yes; then
16109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16110 See \`config.log' for more details." >&5
16111 echo "$as_me: error: cannot run test program while cross compiling
16112 See \`config.log' for more details." >&2;}
16113 { (exit 1); exit 1; }; }
16114 else
16115 cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h. */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 long longval () { return (long) (sizeof (short)); }
16123 unsigned long ulongval () { return (long) (sizeof (short)); }
16124 #include <stdio.h>
16125 #include <stdlib.h>
16127 main ()
16130 FILE *f = fopen ("conftest.val", "w");
16131 if (! f)
16132 exit (1);
16133 if (((long) (sizeof (short))) < 0)
16135 long i = longval ();
16136 if (i != ((long) (sizeof (short))))
16137 exit (1);
16138 fprintf (f, "%ld\n", i);
16140 else
16142 unsigned long i = ulongval ();
16143 if (i != ((long) (sizeof (short))))
16144 exit (1);
16145 fprintf (f, "%lu\n", i);
16147 exit (ferror (f) || fclose (f) != 0);
16150 return 0;
16152 _ACEOF
16153 rm -f conftest$ac_exeext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16155 (eval $ac_link) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; }; then
16164 ac_cv_sizeof_short=`cat conftest.val`
16165 else
16166 echo "$as_me: program exited with status $ac_status" >&5
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 ( exit $ac_status )
16171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16172 See \`config.log' for more details." >&5
16173 echo "$as_me: error: cannot compute sizeof (short), 77
16174 See \`config.log' for more details." >&2;}
16175 { (exit 1); exit 1; }; }
16177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16180 rm -f conftest.val
16181 else
16182 ac_cv_sizeof_short=0
16185 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16186 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16187 cat >>confdefs.h <<_ACEOF
16188 #define SIZEOF_SHORT $ac_cv_sizeof_short
16189 _ACEOF
16192 echo "$as_me:$LINENO: checking for int" >&5
16193 echo $ECHO_N "checking for int... $ECHO_C" >&6
16194 if test "${ac_cv_type_int+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 $ac_includes_default
16205 main ()
16207 if ((int *) 0)
16208 return 0;
16209 if (sizeof (int))
16210 return 0;
16212 return 0;
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217 (eval $ac_compile) 2>conftest.er1
16218 ac_status=$?
16219 grep -v '^ *+' conftest.er1 >conftest.err
16220 rm -f conftest.er1
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -z "$ac_c_werror_flag"
16225 || test ! -s conftest.err'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; } &&
16231 { ac_try='test -s conftest.$ac_objext'
16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233 (eval $ac_try) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }; }; then
16237 ac_cv_type_int=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_cv_type_int=no
16244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16247 echo "${ECHO_T}$ac_cv_type_int" >&6
16249 echo "$as_me:$LINENO: checking size of int" >&5
16250 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16251 if test "${ac_cv_sizeof_int+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254 if test "$ac_cv_type_int" = yes; then
16255 # The cast to unsigned long works around a bug in the HP C Compiler
16256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16258 # This bug is HP SR number 8606223364.
16259 if test "$cross_compiling" = yes; then
16260 # Depending upon the size, compute the lo and hi bounds.
16261 cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h. */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 $ac_includes_default
16269 main ()
16271 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16272 test_array [0] = 0
16275 return 0;
16277 _ACEOF
16278 rm -f conftest.$ac_objext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -z "$ac_c_werror_flag"
16288 || test ! -s conftest.err'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; } &&
16294 { ac_try='test -s conftest.$ac_objext'
16295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
16300 ac_lo=0 ac_mid=0
16301 while :; do
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h. */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 $ac_includes_default
16310 main ()
16312 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16313 test_array [0] = 0
16316 return 0;
16318 _ACEOF
16319 rm -f conftest.$ac_objext
16320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16321 (eval $ac_compile) 2>conftest.er1
16322 ac_status=$?
16323 grep -v '^ *+' conftest.er1 >conftest.err
16324 rm -f conftest.er1
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -z "$ac_c_werror_flag"
16329 || test ! -s conftest.err'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; } &&
16335 { ac_try='test -s conftest.$ac_objext'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; }; then
16341 ac_hi=$ac_mid; break
16342 else
16343 echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16346 ac_lo=`expr $ac_mid + 1`
16347 if test $ac_lo -le $ac_mid; then
16348 ac_lo= ac_hi=
16349 break
16351 ac_mid=`expr 2 '*' $ac_mid + 1`
16353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16354 done
16355 else
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h. */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 $ac_includes_default
16367 main ()
16369 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16370 test_array [0] = 0
16373 return 0;
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16378 (eval $ac_compile) 2>conftest.er1
16379 ac_status=$?
16380 grep -v '^ *+' conftest.er1 >conftest.err
16381 rm -f conftest.er1
16382 cat conftest.err >&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -z "$ac_c_werror_flag"
16386 || test ! -s conftest.err'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_hi=-1 ac_mid=-1
16399 while :; do
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h. */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h. */
16406 $ac_includes_default
16408 main ()
16410 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16411 test_array [0] = 0
16414 return 0;
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16419 (eval $ac_compile) 2>conftest.er1
16420 ac_status=$?
16421 grep -v '^ *+' conftest.er1 >conftest.err
16422 rm -f conftest.er1
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } &&
16426 { ac_try='test -z "$ac_c_werror_flag"
16427 || test ! -s conftest.err'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; } &&
16433 { ac_try='test -s conftest.$ac_objext'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; }; then
16439 ac_lo=$ac_mid; break
16440 else
16441 echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ac_hi=`expr '(' $ac_mid ')' - 1`
16445 if test $ac_mid -le $ac_hi; then
16446 ac_lo= ac_hi=
16447 break
16449 ac_mid=`expr 2 '*' $ac_mid`
16451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16452 done
16453 else
16454 echo "$as_me: failed program was:" >&5
16455 sed 's/^/| /' conftest.$ac_ext >&5
16457 ac_lo= ac_hi=
16459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16462 # Binary search between lo and hi bounds.
16463 while test "x$ac_lo" != "x$ac_hi"; do
16464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 $ac_includes_default
16473 main ()
16475 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16476 test_array [0] = 0
16479 return 0;
16481 _ACEOF
16482 rm -f conftest.$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_hi=$ac_mid
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_lo=`expr '(' $ac_mid ')' + 1`
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16512 done
16513 case $ac_lo in
16514 ?*) ac_cv_sizeof_int=$ac_lo;;
16515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16516 See \`config.log' for more details." >&5
16517 echo "$as_me: error: cannot compute sizeof (int), 77
16518 See \`config.log' for more details." >&2;}
16519 { (exit 1); exit 1; }; } ;;
16520 esac
16521 else
16522 if test "$cross_compiling" = yes; then
16523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16524 See \`config.log' for more details." >&5
16525 echo "$as_me: error: cannot run test program while cross compiling
16526 See \`config.log' for more details." >&2;}
16527 { (exit 1); exit 1; }; }
16528 else
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h. */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 $ac_includes_default
16536 long longval () { return (long) (sizeof (int)); }
16537 unsigned long ulongval () { return (long) (sizeof (int)); }
16538 #include <stdio.h>
16539 #include <stdlib.h>
16541 main ()
16544 FILE *f = fopen ("conftest.val", "w");
16545 if (! f)
16546 exit (1);
16547 if (((long) (sizeof (int))) < 0)
16549 long i = longval ();
16550 if (i != ((long) (sizeof (int))))
16551 exit (1);
16552 fprintf (f, "%ld\n", i);
16554 else
16556 unsigned long i = ulongval ();
16557 if (i != ((long) (sizeof (int))))
16558 exit (1);
16559 fprintf (f, "%lu\n", i);
16561 exit (ferror (f) || fclose (f) != 0);
16564 return 0;
16566 _ACEOF
16567 rm -f conftest$ac_exeext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16569 (eval $ac_link) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_sizeof_int=`cat conftest.val`
16579 else
16580 echo "$as_me: program exited with status $ac_status" >&5
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 ( exit $ac_status )
16585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16586 See \`config.log' for more details." >&5
16587 echo "$as_me: error: cannot compute sizeof (int), 77
16588 See \`config.log' for more details." >&2;}
16589 { (exit 1); exit 1; }; }
16591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16594 rm -f conftest.val
16595 else
16596 ac_cv_sizeof_int=0
16599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16600 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16601 cat >>confdefs.h <<_ACEOF
16602 #define SIZEOF_INT $ac_cv_sizeof_int
16603 _ACEOF
16606 echo "$as_me:$LINENO: checking for long" >&5
16607 echo $ECHO_N "checking for long... $ECHO_C" >&6
16608 if test "${ac_cv_type_long+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 $ac_includes_default
16619 main ()
16621 if ((long *) 0)
16622 return 0;
16623 if (sizeof (long))
16624 return 0;
16626 return 0;
16628 _ACEOF
16629 rm -f conftest.$ac_objext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16631 (eval $ac_compile) 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag"
16639 || test ! -s conftest.err'
16640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16642 ac_status=$?
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest.$ac_objext'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_type_long=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_type_long=no
16658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16660 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16661 echo "${ECHO_T}$ac_cv_type_long" >&6
16663 echo "$as_me:$LINENO: checking size of long" >&5
16664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16665 if test "${ac_cv_sizeof_long+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 if test "$ac_cv_type_long" = yes; then
16669 # The cast to unsigned long works around a bug in the HP C Compiler
16670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16672 # This bug is HP SR number 8606223364.
16673 if test "$cross_compiling" = yes; then
16674 # Depending upon the size, compute the lo and hi bounds.
16675 cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h. */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 $ac_includes_default
16683 main ()
16685 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16686 test_array [0] = 0
16689 return 0;
16691 _ACEOF
16692 rm -f conftest.$ac_objext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16694 (eval $ac_compile) 2>conftest.er1
16695 ac_status=$?
16696 grep -v '^ *+' conftest.er1 >conftest.err
16697 rm -f conftest.er1
16698 cat conftest.err >&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } &&
16701 { ac_try='test -z "$ac_c_werror_flag"
16702 || test ! -s conftest.err'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; } &&
16708 { ac_try='test -s conftest.$ac_objext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_lo=0 ac_mid=0
16715 while :; do
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h. */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 $ac_includes_default
16724 main ()
16726 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16727 test_array [0] = 0
16730 return 0;
16732 _ACEOF
16733 rm -f conftest.$ac_objext
16734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16735 (eval $ac_compile) 2>conftest.er1
16736 ac_status=$?
16737 grep -v '^ *+' conftest.er1 >conftest.err
16738 rm -f conftest.er1
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -z "$ac_c_werror_flag"
16743 || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_hi=$ac_mid; break
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_lo=`expr $ac_mid + 1`
16761 if test $ac_lo -le $ac_mid; then
16762 ac_lo= ac_hi=
16763 break
16765 ac_mid=`expr 2 '*' $ac_mid + 1`
16767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16768 done
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h. */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 $ac_includes_default
16781 main ()
16783 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16784 test_array [0] = 0
16787 return 0;
16789 _ACEOF
16790 rm -f conftest.$ac_objext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16792 (eval $ac_compile) 2>conftest.er1
16793 ac_status=$?
16794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
16799 { ac_try='test -z "$ac_c_werror_flag"
16800 || test ! -s conftest.err'
16801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802 (eval $ac_try) 2>&5
16803 ac_status=$?
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); }; } &&
16806 { ac_try='test -s conftest.$ac_objext'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; }; then
16812 ac_hi=-1 ac_mid=-1
16813 while :; do
16814 cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 $ac_includes_default
16822 main ()
16824 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16825 test_array [0] = 0
16828 return 0;
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833 (eval $ac_compile) 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag"
16841 || test ! -s conftest.err'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_lo=$ac_mid; break
16854 else
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_hi=`expr '(' $ac_mid ')' - 1`
16859 if test $ac_mid -le $ac_hi; then
16860 ac_lo= ac_hi=
16861 break
16863 ac_mid=`expr 2 '*' $ac_mid`
16865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 done
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ac_lo= ac_hi=
16873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 # Binary search between lo and hi bounds.
16877 while test "x$ac_lo" != "x$ac_hi"; do
16878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h. */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 $ac_includes_default
16887 main ()
16889 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16890 test_array [0] = 0
16893 return 0;
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16898 (eval $ac_compile) 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag"
16906 || test ! -s conftest.err'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_hi=$ac_mid
16919 else
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_lo=`expr '(' $ac_mid ')' + 1`
16925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926 done
16927 case $ac_lo in
16928 ?*) ac_cv_sizeof_long=$ac_lo;;
16929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16930 See \`config.log' for more details." >&5
16931 echo "$as_me: error: cannot compute sizeof (long), 77
16932 See \`config.log' for more details." >&2;}
16933 { (exit 1); exit 1; }; } ;;
16934 esac
16935 else
16936 if test "$cross_compiling" = yes; then
16937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16938 See \`config.log' for more details." >&5
16939 echo "$as_me: error: cannot run test program while cross compiling
16940 See \`config.log' for more details." >&2;}
16941 { (exit 1); exit 1; }; }
16942 else
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949 $ac_includes_default
16950 long longval () { return (long) (sizeof (long)); }
16951 unsigned long ulongval () { return (long) (sizeof (long)); }
16952 #include <stdio.h>
16953 #include <stdlib.h>
16955 main ()
16958 FILE *f = fopen ("conftest.val", "w");
16959 if (! f)
16960 exit (1);
16961 if (((long) (sizeof (long))) < 0)
16963 long i = longval ();
16964 if (i != ((long) (sizeof (long))))
16965 exit (1);
16966 fprintf (f, "%ld\n", i);
16968 else
16970 unsigned long i = ulongval ();
16971 if (i != ((long) (sizeof (long))))
16972 exit (1);
16973 fprintf (f, "%lu\n", i);
16975 exit (ferror (f) || fclose (f) != 0);
16978 return 0;
16980 _ACEOF
16981 rm -f conftest$ac_exeext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983 (eval $ac_link) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 ac_cv_sizeof_long=`cat conftest.val`
16993 else
16994 echo "$as_me: program exited with status $ac_status" >&5
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ( exit $ac_status )
16999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17000 See \`config.log' for more details." >&5
17001 echo "$as_me: error: cannot compute sizeof (long), 77
17002 See \`config.log' for more details." >&2;}
17003 { (exit 1); exit 1; }; }
17005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17008 rm -f conftest.val
17009 else
17010 ac_cv_sizeof_long=0
17013 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17014 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17015 cat >>confdefs.h <<_ACEOF
17016 #define SIZEOF_LONG $ac_cv_sizeof_long
17017 _ACEOF
17020 echo "$as_me:$LINENO: checking for void*" >&5
17021 echo $ECHO_N "checking for void*... $ECHO_C" >&6
17022 if test "${ac_cv_type_voidp+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 $ac_includes_default
17033 main ()
17035 if ((void* *) 0)
17036 return 0;
17037 if (sizeof (void*))
17038 return 0;
17040 return 0;
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045 (eval $ac_compile) 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
17052 { ac_try='test -z "$ac_c_werror_flag"
17053 || test ! -s conftest.err'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try='test -s conftest.$ac_objext'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_type_voidp=yes
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ac_cv_type_voidp=no
17072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17074 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
17075 echo "${ECHO_T}$ac_cv_type_voidp" >&6
17077 echo "$as_me:$LINENO: checking size of void*" >&5
17078 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
17079 if test "${ac_cv_sizeof_voidp+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082 if test "$ac_cv_type_voidp" = yes; then
17083 # The cast to unsigned long works around a bug in the HP C Compiler
17084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17086 # This bug is HP SR number 8606223364.
17087 if test "$cross_compiling" = yes; then
17088 # Depending upon the size, compute the lo and hi bounds.
17089 cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h. */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 $ac_includes_default
17097 main ()
17099 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
17100 test_array [0] = 0
17103 return 0;
17105 _ACEOF
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>conftest.er1
17109 ac_status=$?
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
17115 { ac_try='test -z "$ac_c_werror_flag"
17116 || test ! -s conftest.err'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_lo=0 ac_mid=0
17129 while :; do
17130 cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h. */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h. */
17136 $ac_includes_default
17138 main ()
17140 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17141 test_array [0] = 0
17144 return 0;
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_hi=$ac_mid; break
17170 else
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_lo=`expr $ac_mid + 1`
17175 if test $ac_lo -le $ac_mid; then
17176 ac_lo= ac_hi=
17177 break
17179 ac_mid=`expr 2 '*' $ac_mid + 1`
17181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17182 done
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 $ac_includes_default
17195 main ()
17197 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
17198 test_array [0] = 0
17201 return 0;
17203 _ACEOF
17204 rm -f conftest.$ac_objext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17206 (eval $ac_compile) 2>conftest.er1
17207 ac_status=$?
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -z "$ac_c_werror_flag"
17214 || test ! -s conftest.err'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest.$ac_objext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_hi=-1 ac_mid=-1
17227 while :; do
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 $ac_includes_default
17236 main ()
17238 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
17239 test_array [0] = 0
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_lo=$ac_mid; break
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_hi=`expr '(' $ac_mid ')' - 1`
17273 if test $ac_mid -le $ac_hi; then
17274 ac_lo= ac_hi=
17275 break
17277 ac_mid=`expr 2 '*' $ac_mid`
17279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17280 done
17281 else
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 ac_lo= ac_hi=
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17290 # Binary search between lo and hi bounds.
17291 while test "x$ac_lo" != "x$ac_hi"; do
17292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17293 cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h. */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17299 $ac_includes_default
17301 main ()
17303 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17304 test_array [0] = 0
17307 return 0;
17309 _ACEOF
17310 rm -f conftest.$ac_objext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17312 (eval $ac_compile) 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } &&
17319 { ac_try='test -z "$ac_c_werror_flag"
17320 || test ! -s conftest.err'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest.$ac_objext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_hi=$ac_mid
17333 else
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 ac_lo=`expr '(' $ac_mid ')' + 1`
17339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17340 done
17341 case $ac_lo in
17342 ?*) ac_cv_sizeof_voidp=$ac_lo;;
17343 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17344 See \`config.log' for more details." >&5
17345 echo "$as_me: error: cannot compute sizeof (void*), 77
17346 See \`config.log' for more details." >&2;}
17347 { (exit 1); exit 1; }; } ;;
17348 esac
17349 else
17350 if test "$cross_compiling" = yes; then
17351 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17352 See \`config.log' for more details." >&5
17353 echo "$as_me: error: cannot run test program while cross compiling
17354 See \`config.log' for more details." >&2;}
17355 { (exit 1); exit 1; }; }
17356 else
17357 cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h. */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363 $ac_includes_default
17364 long longval () { return (long) (sizeof (void*)); }
17365 unsigned long ulongval () { return (long) (sizeof (void*)); }
17366 #include <stdio.h>
17367 #include <stdlib.h>
17369 main ()
17372 FILE *f = fopen ("conftest.val", "w");
17373 if (! f)
17374 exit (1);
17375 if (((long) (sizeof (void*))) < 0)
17377 long i = longval ();
17378 if (i != ((long) (sizeof (void*))))
17379 exit (1);
17380 fprintf (f, "%ld\n", i);
17382 else
17384 unsigned long i = ulongval ();
17385 if (i != ((long) (sizeof (void*))))
17386 exit (1);
17387 fprintf (f, "%lu\n", i);
17389 exit (ferror (f) || fclose (f) != 0);
17392 return 0;
17394 _ACEOF
17395 rm -f conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_cv_sizeof_voidp=`cat conftest.val`
17407 else
17408 echo "$as_me: program exited with status $ac_status" >&5
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ( exit $ac_status )
17413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17414 See \`config.log' for more details." >&5
17415 echo "$as_me: error: cannot compute sizeof (void*), 77
17416 See \`config.log' for more details." >&2;}
17417 { (exit 1); exit 1; }; }
17419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17422 rm -f conftest.val
17423 else
17424 ac_cv_sizeof_voidp=0
17427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
17428 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
17429 cat >>confdefs.h <<_ACEOF
17430 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
17431 _ACEOF
17434 ac_cv_char_data_model=""
17435 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17436 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17437 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17438 ac_cv_long_data_model=""
17439 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17440 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17441 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17442 echo "$as_me:$LINENO: checking data model" >&5
17443 echo $ECHO_N "checking data model... $ECHO_C" >&6
17444 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17445 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
17446 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
17447 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
17448 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17449 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
17450 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17451 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
17452 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17453 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
17454 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17455 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17456 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17457 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17458 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17459 222/*|333/*|444/*|666/*|888/*) :
17460 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
17461 *) ac_cv_data_model="none" ; n="very unusual model" ;;
17462 esac
17463 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17464 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
17468 if test "_$ac_cv_header_stdint_x" != "_" ; then
17469 ac_cv_header_stdint="$ac_cv_header_stdint_x"
17470 elif test "_$ac_cv_header_stdint_o" != "_" ; then
17471 ac_cv_header_stdint="$ac_cv_header_stdint_o"
17472 elif test "_$ac_cv_header_stdint_u" != "_" ; then
17473 ac_cv_header_stdint="$ac_cv_header_stdint_u"
17474 else
17475 ac_cv_header_stdint="stddef.h"
17478 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
17479 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
17480 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
17481 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
17482 unset ac_cv_type_int_least32_t
17483 unset ac_cv_type_int_fast32_t
17484 echo "$as_me:$LINENO: checking for int_least32_t" >&5
17485 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
17486 if test "${ac_cv_type_int_least32_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489 cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h. */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <$ac_cv_header_stdint>
17498 main ()
17500 if ((int_least32_t *) 0)
17501 return 0;
17502 if (sizeof (int_least32_t))
17503 return 0;
17505 return 0;
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_type_int_least32_t=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 ac_cv_type_int_least32_t=no
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
17540 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
17542 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
17543 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
17544 if test "${ac_cv_type_int_fast32_t+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 #include<$ac_cv_header_stdint>
17556 main ()
17558 if ((int_fast32_t *) 0)
17559 return 0;
17560 if (sizeof (int_fast32_t))
17561 return 0;
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17568 (eval $ac_compile) 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag"
17576 || test ! -s conftest.err'
17577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; } &&
17582 { ac_try='test -s conftest.$ac_objext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_type_int_fast32_t=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_type_int_fast32_t=no
17595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17597 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
17598 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
17600 echo "$as_me:$LINENO: checking for intmax_t" >&5
17601 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
17602 if test "${ac_cv_type_intmax_t+set}" = set; then
17603 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 else
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h. */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17611 #include <$ac_cv_header_stdint>
17614 main ()
17616 if ((intmax_t *) 0)
17617 return 0;
17618 if (sizeof (intmax_t))
17619 return 0;
17621 return 0;
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_type_intmax_t=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ac_cv_type_intmax_t=no
17653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17655 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
17656 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
17659 fi # shortcircut to system "stdint.h"
17660 # ------------------ PREPARE VARIABLES ------------------------------
17661 if test "$GCC" = "yes" ; then
17662 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17663 else
17664 ac_cv_stdint_message="using $CC"
17667 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17668 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
17670 # ----------------- DONE inttypes.h checks START header -------------
17671 ac_config_commands="$ac_config_commands $ac_stdint_h"
17675 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile gnu/classpath/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/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/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/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 lib/copy-vmresources.sh tools/Makefile examples/Makefile examples/Makefile.jawt"
17677 ac_config_commands="$ac_config_commands gen-classlist"
17679 ac_config_commands="$ac_config_commands copy-vmresources"
17681 cat >confcache <<\_ACEOF
17682 # This file is a shell script that caches the results of configure
17683 # tests run on this system so they can be shared between configure
17684 # scripts and configure runs, see configure's option --config-cache.
17685 # It is not useful on other systems. If it contains results you don't
17686 # want to keep, you may remove or edit it.
17688 # config.status only pays attention to the cache file if you give it
17689 # the --recheck option to rerun configure.
17691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17693 # following values.
17695 _ACEOF
17697 # The following way of writing the cache mishandles newlines in values,
17698 # but we know of no workaround that is simple, portable, and efficient.
17699 # So, don't put newlines in cache variables' values.
17700 # Ultrix sh set writes to stderr and can't be redirected directly,
17701 # and sets the high bit in the cache file unless we assign to the vars.
17703 (set) 2>&1 |
17704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17705 *ac_space=\ *)
17706 # `set' does not quote correctly, so add quotes (double-quote
17707 # substitution turns \\\\ into \\, and sed turns \\ into \).
17708 sed -n \
17709 "s/'/'\\\\''/g;
17710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17713 # `set' quotes correctly as required by POSIX, so do not add quotes.
17714 sed -n \
17715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17717 esac;
17719 sed '
17720 t clear
17721 : clear
17722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17723 t end
17724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17725 : end' >>confcache
17726 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17727 if test -w $cache_file; then
17728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17729 cat confcache >$cache_file
17730 else
17731 echo "not updating unwritable cache $cache_file"
17734 rm -f confcache
17736 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17737 # Let make expand exec_prefix.
17738 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17740 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17741 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17742 # trailing colons and then remove the whole line if VPATH becomes empty
17743 # (actually we leave an empty line to preserve line numbers).
17744 if test "x$srcdir" = x.; then
17745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17746 s/:*\$(srcdir):*/:/;
17747 s/:*\${srcdir}:*/:/;
17748 s/:*@srcdir@:*/:/;
17749 s/^\([^=]*=[ ]*\):*/\1/;
17750 s/:*$//;
17751 s/^[^=]*=[ ]*$//;
17755 DEFS=-DHAVE_CONFIG_H
17757 ac_libobjs=
17758 ac_ltlibobjs=
17759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17760 # 1. Remove the extension, and $U if already installed.
17761 ac_i=`echo "$ac_i" |
17762 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17763 # 2. Add them.
17764 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17765 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17766 done
17767 LIBOBJS=$ac_libobjs
17769 LTLIBOBJS=$ac_ltlibobjs
17772 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
17773 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
17774 Usually this means the macro was only invoked conditionally." >&5
17775 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
17776 Usually this means the macro was only invoked conditionally." >&2;}
17777 { (exit 1); exit 1; }; }
17779 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
17780 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
17781 Usually this means the macro was only invoked conditionally." >&5
17782 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
17783 Usually this means the macro was only invoked conditionally." >&2;}
17784 { (exit 1); exit 1; }; }
17786 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
17787 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
17788 Usually this means the macro was only invoked conditionally." >&5
17789 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
17790 Usually this means the macro was only invoked conditionally." >&2;}
17791 { (exit 1); exit 1; }; }
17793 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
17794 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
17795 Usually this means the macro was only invoked conditionally." >&5
17796 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
17797 Usually this means the macro was only invoked conditionally." >&2;}
17798 { (exit 1); exit 1; }; }
17800 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17801 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17802 Usually this means the macro was only invoked conditionally." >&5
17803 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17804 Usually this means the macro was only invoked conditionally." >&2;}
17805 { (exit 1); exit 1; }; }
17807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17808 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17809 Usually this means the macro was only invoked conditionally." >&5
17810 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17811 Usually this means the macro was only invoked conditionally." >&2;}
17812 { (exit 1); exit 1; }; }
17814 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
17815 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
17816 Usually this means the macro was only invoked conditionally." >&5
17817 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
17818 Usually this means the macro was only invoked conditionally." >&2;}
17819 { (exit 1); exit 1; }; }
17821 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
17822 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
17823 Usually this means the macro was only invoked conditionally." >&5
17824 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
17825 Usually this means the macro was only invoked conditionally." >&2;}
17826 { (exit 1); exit 1; }; }
17828 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
17829 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
17830 Usually this means the macro was only invoked conditionally." >&5
17831 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
17832 Usually this means the macro was only invoked conditionally." >&2;}
17833 { (exit 1); exit 1; }; }
17835 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17836 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17837 Usually this means the macro was only invoked conditionally." >&5
17838 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17839 Usually this means the macro was only invoked conditionally." >&2;}
17840 { (exit 1); exit 1; }; }
17842 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
17843 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
17844 Usually this means the macro was only invoked conditionally." >&5
17845 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
17846 Usually this means the macro was only invoked conditionally." >&2;}
17847 { (exit 1); exit 1; }; }
17849 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
17850 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
17851 Usually this means the macro was only invoked conditionally." >&5
17852 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
17853 Usually this means the macro was only invoked conditionally." >&2;}
17854 { (exit 1); exit 1; }; }
17856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17857 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17858 Usually this means the macro was only invoked conditionally." >&5
17859 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17860 Usually this means the macro was only invoked conditionally." >&2;}
17861 { (exit 1); exit 1; }; }
17863 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17864 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17865 Usually this means the macro was only invoked conditionally." >&5
17866 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17867 Usually this means the macro was only invoked conditionally." >&2;}
17868 { (exit 1); exit 1; }; }
17870 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
17871 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
17872 Usually this means the macro was only invoked conditionally." >&5
17873 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
17874 Usually this means the macro was only invoked conditionally." >&2;}
17875 { (exit 1); exit 1; }; }
17877 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
17878 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
17879 Usually this means the macro was only invoked conditionally." >&5
17880 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
17881 Usually this means the macro was only invoked conditionally." >&2;}
17882 { (exit 1); exit 1; }; }
17884 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
17885 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
17886 Usually this means the macro was only invoked conditionally." >&5
17887 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
17888 Usually this means the macro was only invoked conditionally." >&2;}
17889 { (exit 1); exit 1; }; }
17891 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
17892 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
17893 Usually this means the macro was only invoked conditionally." >&5
17894 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
17895 Usually this means the macro was only invoked conditionally." >&2;}
17896 { (exit 1); exit 1; }; }
17898 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
17899 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
17900 Usually this means the macro was only invoked conditionally." >&5
17901 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
17902 Usually this means the macro was only invoked conditionally." >&2;}
17903 { (exit 1); exit 1; }; }
17905 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
17906 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
17907 Usually this means the macro was only invoked conditionally." >&5
17908 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
17909 Usually this means the macro was only invoked conditionally." >&2;}
17910 { (exit 1); exit 1; }; }
17912 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
17913 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
17914 Usually this means the macro was only invoked conditionally." >&5
17915 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
17916 Usually this means the macro was only invoked conditionally." >&2;}
17917 { (exit 1); exit 1; }; }
17919 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
17920 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
17921 Usually this means the macro was only invoked conditionally." >&5
17922 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
17923 Usually this means the macro was only invoked conditionally." >&2;}
17924 { (exit 1); exit 1; }; }
17926 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
17927 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
17928 Usually this means the macro was only invoked conditionally." >&5
17929 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
17930 Usually this means the macro was only invoked conditionally." >&2;}
17931 { (exit 1); exit 1; }; }
17933 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
17934 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
17935 Usually this means the macro was only invoked conditionally." >&5
17936 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
17937 Usually this means the macro was only invoked conditionally." >&2;}
17938 { (exit 1); exit 1; }; }
17940 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17941 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17942 Usually this means the macro was only invoked conditionally." >&5
17943 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17944 Usually this means the macro was only invoked conditionally." >&2;}
17945 { (exit 1); exit 1; }; }
17947 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
17948 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
17949 Usually this means the macro was only invoked conditionally." >&5
17950 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
17951 Usually this means the macro was only invoked conditionally." >&2;}
17952 { (exit 1); exit 1; }; }
17954 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
17955 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
17956 Usually this means the macro was only invoked conditionally." >&5
17957 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
17958 Usually this means the macro was only invoked conditionally." >&2;}
17959 { (exit 1); exit 1; }; }
17961 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
17962 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
17963 Usually this means the macro was only invoked conditionally." >&5
17964 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
17965 Usually this means the macro was only invoked conditionally." >&2;}
17966 { (exit 1); exit 1; }; }
17968 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
17969 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
17970 Usually this means the macro was only invoked conditionally." >&5
17971 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
17972 Usually this means the macro was only invoked conditionally." >&2;}
17973 { (exit 1); exit 1; }; }
17975 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
17976 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
17977 Usually this means the macro was only invoked conditionally." >&5
17978 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
17979 Usually this means the macro was only invoked conditionally." >&2;}
17980 { (exit 1); exit 1; }; }
17983 : ${CONFIG_STATUS=./config.status}
17984 ac_clean_files_save=$ac_clean_files
17985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17988 cat >$CONFIG_STATUS <<_ACEOF
17989 #! $SHELL
17990 # Generated by $as_me.
17991 # Run this file to recreate the current configuration.
17992 # Compiler output produced by configure, useful for debugging
17993 # configure, is in config.log if it exists.
17995 debug=false
17996 ac_cs_recheck=false
17997 ac_cs_silent=false
17998 SHELL=\${CONFIG_SHELL-$SHELL}
17999 _ACEOF
18001 cat >>$CONFIG_STATUS <<\_ACEOF
18002 ## --------------------- ##
18003 ## M4sh Initialization. ##
18004 ## --------------------- ##
18006 # Be Bourne compatible
18007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18008 emulate sh
18009 NULLCMD=:
18010 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18011 # is contrary to our usage. Disable this feature.
18012 alias -g '${1+"$@"}'='"$@"'
18013 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18014 set -o posix
18016 DUALCASE=1; export DUALCASE # for MKS sh
18018 # Support unset when possible.
18019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18020 as_unset=unset
18021 else
18022 as_unset=false
18026 # Work around bugs in pre-3.0 UWIN ksh.
18027 $as_unset ENV MAIL MAILPATH
18028 PS1='$ '
18029 PS2='> '
18030 PS4='+ '
18032 # NLS nuisances.
18033 for as_var in \
18034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18036 LC_TELEPHONE LC_TIME
18038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18039 eval $as_var=C; export $as_var
18040 else
18041 $as_unset $as_var
18043 done
18045 # Required to use basename.
18046 if expr a : '\(a\)' >/dev/null 2>&1; then
18047 as_expr=expr
18048 else
18049 as_expr=false
18052 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18053 as_basename=basename
18054 else
18055 as_basename=false
18059 # Name of the executable.
18060 as_me=`$as_basename "$0" ||
18061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18062 X"$0" : 'X\(//\)$' \| \
18063 X"$0" : 'X\(/\)$' \| \
18064 . : '\(.\)' 2>/dev/null ||
18065 echo X/"$0" |
18066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18067 /^X\/\(\/\/\)$/{ s//\1/; q; }
18068 /^X\/\(\/\).*/{ s//\1/; q; }
18069 s/.*/./; q'`
18072 # PATH needs CR, and LINENO needs CR and PATH.
18073 # Avoid depending upon Character Ranges.
18074 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18075 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18076 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18077 as_cr_digits='0123456789'
18078 as_cr_alnum=$as_cr_Letters$as_cr_digits
18080 # The user is always right.
18081 if test "${PATH_SEPARATOR+set}" != set; then
18082 echo "#! /bin/sh" >conf$$.sh
18083 echo "exit 0" >>conf$$.sh
18084 chmod +x conf$$.sh
18085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18086 PATH_SEPARATOR=';'
18087 else
18088 PATH_SEPARATOR=:
18090 rm -f conf$$.sh
18094 as_lineno_1=$LINENO
18095 as_lineno_2=$LINENO
18096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18097 test "x$as_lineno_1" != "x$as_lineno_2" &&
18098 test "x$as_lineno_3" = "x$as_lineno_2" || {
18099 # Find who we are. Look in the path if we contain no path at all
18100 # relative or not.
18101 case $0 in
18102 *[\\/]* ) as_myself=$0 ;;
18103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18104 for as_dir in $PATH
18106 IFS=$as_save_IFS
18107 test -z "$as_dir" && as_dir=.
18108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18109 done
18112 esac
18113 # We did not find ourselves, most probably we were run as `sh COMMAND'
18114 # in which case we are not to be found in the path.
18115 if test "x$as_myself" = x; then
18116 as_myself=$0
18118 if test ! -f "$as_myself"; then
18119 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18120 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18121 { (exit 1); exit 1; }; }
18123 case $CONFIG_SHELL in
18125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18126 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18128 IFS=$as_save_IFS
18129 test -z "$as_dir" && as_dir=.
18130 for as_base in sh bash ksh sh5; do
18131 case $as_dir in
18133 if ("$as_dir/$as_base" -c '
18134 as_lineno_1=$LINENO
18135 as_lineno_2=$LINENO
18136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18137 test "x$as_lineno_1" != "x$as_lineno_2" &&
18138 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18139 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18140 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18141 CONFIG_SHELL=$as_dir/$as_base
18142 export CONFIG_SHELL
18143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18144 fi;;
18145 esac
18146 done
18147 done
18149 esac
18151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18152 # uniformly replaced by the line number. The first 'sed' inserts a
18153 # line-number line before each line; the second 'sed' does the real
18154 # work. The second script uses 'N' to pair each line-number line
18155 # with the numbered line, and appends trailing '-' during
18156 # substitution so that $LINENO is not a special case at line end.
18157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18159 sed '=' <$as_myself |
18160 sed '
18162 s,$,-,
18163 : loop
18164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18165 t loop
18166 s,-$,,
18167 s,^['$as_cr_digits']*\n,,
18168 ' >$as_me.lineno &&
18169 chmod +x $as_me.lineno ||
18170 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18171 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18172 { (exit 1); exit 1; }; }
18174 # Don't try to exec as it changes $[0], causing all sort of problems
18175 # (the dirname of $[0] is not the place where we might find the
18176 # original and so on. Autoconf is especially sensible to this).
18177 . ./$as_me.lineno
18178 # Exit status is that of the last command.
18179 exit
18183 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18184 *c*,-n*) ECHO_N= ECHO_C='
18185 ' ECHO_T=' ' ;;
18186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18188 esac
18190 if expr a : '\(a\)' >/dev/null 2>&1; then
18191 as_expr=expr
18192 else
18193 as_expr=false
18196 rm -f conf$$ conf$$.exe conf$$.file
18197 echo >conf$$.file
18198 if ln -s conf$$.file conf$$ 2>/dev/null; then
18199 # We could just check for DJGPP; but this test a) works b) is more generic
18200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18201 if test -f conf$$.exe; then
18202 # Don't use ln at all; we don't have any links
18203 as_ln_s='cp -p'
18204 else
18205 as_ln_s='ln -s'
18207 elif ln conf$$.file conf$$ 2>/dev/null; then
18208 as_ln_s=ln
18209 else
18210 as_ln_s='cp -p'
18212 rm -f conf$$ conf$$.exe conf$$.file
18214 if mkdir -p . 2>/dev/null; then
18215 as_mkdir_p=:
18216 else
18217 test -d ./-p && rmdir ./-p
18218 as_mkdir_p=false
18221 as_executable_p="test -f"
18223 # Sed expression to map a string onto a valid CPP name.
18224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18226 # Sed expression to map a string onto a valid variable name.
18227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18230 # IFS
18231 # We need space, tab and new line, in precisely that order.
18232 as_nl='
18234 IFS=" $as_nl"
18236 # CDPATH.
18237 $as_unset CDPATH
18239 exec 6>&1
18241 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18242 # report actual input values of CONFIG_FILES etc. instead of their
18243 # values after options handling. Logging --version etc. is OK.
18244 exec 5>>config.log
18246 echo
18247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18248 ## Running $as_me. ##
18249 _ASBOX
18250 } >&5
18251 cat >&5 <<_CSEOF
18253 This file was extended by GNU Classpath $as_me 0.90, which was
18254 generated by GNU Autoconf 2.59. Invocation command line was
18256 CONFIG_FILES = $CONFIG_FILES
18257 CONFIG_HEADERS = $CONFIG_HEADERS
18258 CONFIG_LINKS = $CONFIG_LINKS
18259 CONFIG_COMMANDS = $CONFIG_COMMANDS
18260 $ $0 $@
18262 _CSEOF
18263 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18264 echo >&5
18265 _ACEOF
18267 # Files that config.status was made for.
18268 if test -n "$ac_config_files"; then
18269 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18272 if test -n "$ac_config_headers"; then
18273 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18276 if test -n "$ac_config_links"; then
18277 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18280 if test -n "$ac_config_commands"; then
18281 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18284 cat >>$CONFIG_STATUS <<\_ACEOF
18286 ac_cs_usage="\
18287 \`$as_me' instantiates files from templates according to the
18288 current configuration.
18290 Usage: $0 [OPTIONS] [FILE]...
18292 -h, --help print this help, then exit
18293 -V, --version print version number, then exit
18294 -q, --quiet do not print progress messages
18295 -d, --debug don't remove temporary files
18296 --recheck update $as_me by reconfiguring in the same conditions
18297 --file=FILE[:TEMPLATE]
18298 instantiate the configuration file FILE
18299 --header=FILE[:TEMPLATE]
18300 instantiate the configuration header FILE
18302 Configuration files:
18303 $config_files
18305 Configuration headers:
18306 $config_headers
18308 Configuration links:
18309 $config_links
18311 Configuration commands:
18312 $config_commands
18314 Report bugs to <bug-autoconf@gnu.org>."
18315 _ACEOF
18317 cat >>$CONFIG_STATUS <<_ACEOF
18318 ac_cs_version="\\
18319 GNU Classpath config.status 0.90
18320 configured by $0, generated by GNU Autoconf 2.59,
18321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18323 Copyright (C) 2003 Free Software Foundation, Inc.
18324 This config.status script is free software; the Free Software Foundation
18325 gives unlimited permission to copy, distribute and modify it."
18326 srcdir=$srcdir
18327 INSTALL="$INSTALL"
18328 _ACEOF
18330 cat >>$CONFIG_STATUS <<\_ACEOF
18331 # If no file are specified by the user, then we need to provide default
18332 # value. By we need to know if files were specified by the user.
18333 ac_need_defaults=:
18334 while test $# != 0
18336 case $1 in
18337 --*=*)
18338 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18339 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18340 ac_shift=:
18343 ac_option=$1
18344 ac_optarg=$2
18345 ac_shift=shift
18347 *) # This is not an option, so the user has probably given explicit
18348 # arguments.
18349 ac_option=$1
18350 ac_need_defaults=false;;
18351 esac
18353 case $ac_option in
18354 # Handling of the options.
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF
18357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18358 ac_cs_recheck=: ;;
18359 --version | --vers* | -V )
18360 echo "$ac_cs_version"; exit 0 ;;
18361 --he | --h)
18362 # Conflict between --help and --header
18363 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18364 Try \`$0 --help' for more information." >&5
18365 echo "$as_me: error: ambiguous option: $1
18366 Try \`$0 --help' for more information." >&2;}
18367 { (exit 1); exit 1; }; };;
18368 --help | --hel | -h )
18369 echo "$ac_cs_usage"; exit 0 ;;
18370 --debug | --d* | -d )
18371 debug=: ;;
18372 --file | --fil | --fi | --f )
18373 $ac_shift
18374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18375 ac_need_defaults=false;;
18376 --header | --heade | --head | --hea )
18377 $ac_shift
18378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18379 ac_need_defaults=false;;
18380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18382 ac_cs_silent=: ;;
18384 # This is an error.
18385 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18386 Try \`$0 --help' for more information." >&5
18387 echo "$as_me: error: unrecognized option: $1
18388 Try \`$0 --help' for more information." >&2;}
18389 { (exit 1); exit 1; }; } ;;
18391 *) ac_config_targets="$ac_config_targets $1" ;;
18393 esac
18394 shift
18395 done
18397 ac_configure_extra_args=
18399 if $ac_cs_silent; then
18400 exec 6>/dev/null
18401 ac_configure_extra_args="$ac_configure_extra_args --silent"
18404 _ACEOF
18405 cat >>$CONFIG_STATUS <<_ACEOF
18406 if \$ac_cs_recheck; then
18407 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18408 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18411 _ACEOF
18413 cat >>$CONFIG_STATUS <<_ACEOF
18415 # INIT-COMMANDS section.
18418 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18419 # variables for create stdint.h replacement
18420 PACKAGE="$PACKAGE"
18421 VERSION="$VERSION"
18422 ac_stdint_h="$ac_stdint_h"
18423 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
18424 ac_cv_stdint_message="$ac_cv_stdint_message"
18425 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
18426 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
18427 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
18428 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
18429 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18430 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18431 ac_cv_char_data_model="$ac_cv_char_data_model"
18432 ac_cv_long_data_model="$ac_cv_long_data_model"
18433 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18434 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18435 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
18438 _ACEOF
18442 cat >>$CONFIG_STATUS <<\_ACEOF
18443 for ac_config_target in $ac_config_targets
18445 case "$ac_config_target" in
18446 # Handling of arguments.
18447 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
18448 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18449 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18450 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
18451 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
18452 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
18453 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
18454 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
18455 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
18456 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18457 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
18458 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
18459 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
18460 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
18461 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
18462 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
18463 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
18464 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
18465 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
18466 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
18467 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
18468 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
18469 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
18470 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
18471 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
18472 "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
18473 "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
18474 "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
18475 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
18476 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18477 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
18478 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18479 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
18480 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
18481 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18482 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18483 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
18484 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18485 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18486 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
18487 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
18488 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
18489 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
18490 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18491 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18492 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18493 { (exit 1); exit 1; }; };;
18494 esac
18495 done
18497 # If the user did not use the arguments to specify the items to instantiate,
18498 # then the envvar interface is used. Set only those that are not.
18499 # We use the long form for the default assignment because of an extremely
18500 # bizarre bug on SunOS 4.1.3.
18501 if $ac_need_defaults; then
18502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18504 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18508 # Have a temporary directory for convenience. Make it in the build tree
18509 # simply because there is no reason to put it here, and in addition,
18510 # creating and moving files from /tmp can sometimes cause problems.
18511 # Create a temporary directory, and hook for its removal unless debugging.
18512 $debug ||
18514 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18515 trap '{ (exit 1); exit 1; }' 1 2 13 15
18518 # Create a (secure) tmp directory for tmp files.
18521 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18522 test -n "$tmp" && test -d "$tmp"
18523 } ||
18525 tmp=./confstat$$-$RANDOM
18526 (umask 077 && mkdir $tmp)
18527 } ||
18529 echo "$me: cannot create a temporary directory in ." >&2
18530 { (exit 1); exit 1; }
18533 _ACEOF
18535 cat >>$CONFIG_STATUS <<_ACEOF
18538 # CONFIG_FILES section.
18541 # No need to generate the scripts if there are no CONFIG_FILES.
18542 # This happens for instance when ./config.status config.h
18543 if test -n "\$CONFIG_FILES"; then
18544 # Protect against being on the right side of a sed subst in config.status.
18545 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18546 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18547 s,@SHELL@,$SHELL,;t t
18548 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18549 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18550 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18551 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18552 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18553 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18554 s,@exec_prefix@,$exec_prefix,;t t
18555 s,@prefix@,$prefix,;t t
18556 s,@program_transform_name@,$program_transform_name,;t t
18557 s,@bindir@,$bindir,;t t
18558 s,@sbindir@,$sbindir,;t t
18559 s,@libexecdir@,$libexecdir,;t t
18560 s,@datadir@,$datadir,;t t
18561 s,@sysconfdir@,$sysconfdir,;t t
18562 s,@sharedstatedir@,$sharedstatedir,;t t
18563 s,@localstatedir@,$localstatedir,;t t
18564 s,@libdir@,$libdir,;t t
18565 s,@includedir@,$includedir,;t t
18566 s,@oldincludedir@,$oldincludedir,;t t
18567 s,@infodir@,$infodir,;t t
18568 s,@mandir@,$mandir,;t t
18569 s,@build_alias@,$build_alias,;t t
18570 s,@host_alias@,$host_alias,;t t
18571 s,@target_alias@,$target_alias,;t t
18572 s,@DEFS@,$DEFS,;t t
18573 s,@ECHO_C@,$ECHO_C,;t t
18574 s,@ECHO_N@,$ECHO_N,;t t
18575 s,@ECHO_T@,$ECHO_T,;t t
18576 s,@LIBS@,$LIBS,;t t
18577 s,@build@,$build,;t t
18578 s,@build_cpu@,$build_cpu,;t t
18579 s,@build_vendor@,$build_vendor,;t t
18580 s,@build_os@,$build_os,;t t
18581 s,@host@,$host,;t t
18582 s,@host_cpu@,$host_cpu,;t t
18583 s,@host_vendor@,$host_vendor,;t t
18584 s,@host_os@,$host_os,;t t
18585 s,@target@,$target,;t t
18586 s,@target_cpu@,$target_cpu,;t t
18587 s,@target_vendor@,$target_vendor,;t t
18588 s,@target_os@,$target_os,;t t
18589 s,@LIBVERSION@,$LIBVERSION,;t t
18590 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
18591 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18592 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18593 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18594 s,@CYGPATH_W@,$CYGPATH_W,;t t
18595 s,@PACKAGE@,$PACKAGE,;t t
18596 s,@VERSION@,$VERSION,;t t
18597 s,@ACLOCAL@,$ACLOCAL,;t t
18598 s,@AUTOCONF@,$AUTOCONF,;t t
18599 s,@AUTOMAKE@,$AUTOMAKE,;t t
18600 s,@AUTOHEADER@,$AUTOHEADER,;t t
18601 s,@MAKEINFO@,$MAKEINFO,;t t
18602 s,@install_sh@,$install_sh,;t t
18603 s,@STRIP@,$STRIP,;t t
18604 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18605 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18606 s,@mkdir_p@,$mkdir_p,;t t
18607 s,@AWK@,$AWK,;t t
18608 s,@SET_MAKE@,$SET_MAKE,;t t
18609 s,@am__leading_dot@,$am__leading_dot,;t t
18610 s,@AMTAR@,$AMTAR,;t t
18611 s,@am__tar@,$am__tar,;t t
18612 s,@am__untar@,$am__untar,;t t
18613 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
18614 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
18615 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
18616 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
18617 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
18618 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
18619 s,@default_toolkit@,$default_toolkit,;t t
18620 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
18621 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
18622 s,@CC@,$CC,;t t
18623 s,@CFLAGS@,$CFLAGS,;t t
18624 s,@LDFLAGS@,$LDFLAGS,;t t
18625 s,@CPPFLAGS@,$CPPFLAGS,;t t
18626 s,@ac_ct_CC@,$ac_ct_CC,;t t
18627 s,@EXEEXT@,$EXEEXT,;t t
18628 s,@OBJEXT@,$OBJEXT,;t t
18629 s,@DEPDIR@,$DEPDIR,;t t
18630 s,@am__include@,$am__include,;t t
18631 s,@am__quote@,$am__quote,;t t
18632 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18633 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18634 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18635 s,@CCDEPMODE@,$CCDEPMODE,;t t
18636 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18637 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18638 s,@CPP@,$CPP,;t t
18639 s,@EGREP@,$EGREP,;t t
18640 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
18641 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
18642 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
18643 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
18644 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
18645 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
18646 s,@GTK_CAIRO_ENABLED@,$GTK_CAIRO_ENABLED,;t t
18647 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
18648 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
18649 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
18650 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
18651 s,@nativelibdir@,$nativelibdir,;t t
18652 s,@glibjdir@,$glibjdir,;t t
18653 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
18654 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
18655 s,@LN_S@,$LN_S,;t t
18656 s,@RANLIB@,$RANLIB,;t t
18657 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18658 s,@LIBTOOL@,$LIBTOOL,;t t
18659 s,@CXX@,$CXX,;t t
18660 s,@CXXFLAGS@,$CXXFLAGS,;t t
18661 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18662 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18663 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18664 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18665 s,@CXXCPP@,$CXXCPP,;t t
18666 s,@PERL@,$PERL,;t t
18667 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
18668 s,@LIBICONV@,$LIBICONV,;t t
18669 s,@LTLIBICONV@,$LTLIBICONV,;t t
18670 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
18671 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
18672 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
18673 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18674 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
18675 s,@XML_LIBS@,$XML_LIBS,;t t
18676 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
18677 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
18678 s,@X_CFLAGS@,$X_CFLAGS,;t t
18679 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18680 s,@X_LIBS@,$X_LIBS,;t t
18681 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18682 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18683 s,@GTK_LIBS@,$GTK_LIBS,;t t
18684 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
18685 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
18686 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
18687 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
18688 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
18689 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
18690 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
18691 s,@QT_LIBS@,$QT_LIBS,;t t
18692 s,@MOC@,$MOC,;t t
18693 s,@USER_JAVAH@,$USER_JAVAH,;t t
18694 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
18695 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
18696 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
18697 s,@GCJ@,$GCJ,;t t
18698 s,@JIKES@,$JIKES,;t t
18699 s,@JIKESENCODING@,$JIKESENCODING,;t t
18700 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
18701 s,@KJC@,$KJC,;t t
18702 s,@GCJX@,$GCJX,;t t
18703 s,@ECJ@,$ECJ,;t t
18704 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
18705 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
18706 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
18707 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
18708 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
18709 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
18710 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
18711 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
18712 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
18713 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
18714 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
18715 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
18716 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
18717 s,@vm_classes@,$vm_classes,;t t
18718 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18719 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18720 s,@MAINT@,$MAINT,;t t
18721 s,@LIBDEBUG@,$LIBDEBUG,;t t
18722 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
18723 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
18724 s,@REMOVE@,$REMOVE,;t t
18725 s,@MKDIR@,$MKDIR,;t t
18726 s,@CP@,$CP,;t t
18727 s,@DATE@,$DATE,;t t
18728 s,@FIND@,$FIND,;t t
18729 s,@ZIP@,$ZIP,;t t
18730 s,@FASTJAR@,$FASTJAR,;t t
18731 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
18732 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
18733 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
18734 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
18735 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
18736 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
18737 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
18738 s,@GJDOC@,$GJDOC,;t t
18739 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
18740 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
18741 s,@JAY@,$JAY,;t t
18742 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
18743 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
18744 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
18745 s,@LIBOBJS@,$LIBOBJS,;t t
18746 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18747 CEOF
18749 _ACEOF
18751 cat >>$CONFIG_STATUS <<\_ACEOF
18752 # Split the substitutions into bite-sized pieces for seds with
18753 # small command number limits, like on Digital OSF/1 and HP-UX.
18754 ac_max_sed_lines=48
18755 ac_sed_frag=1 # Number of current file.
18756 ac_beg=1 # First line for current file.
18757 ac_end=$ac_max_sed_lines # Line after last line for current file.
18758 ac_more_lines=:
18759 ac_sed_cmds=
18760 while $ac_more_lines; do
18761 if test $ac_beg -gt 1; then
18762 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18763 else
18764 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18766 if test ! -s $tmp/subs.frag; then
18767 ac_more_lines=false
18768 else
18769 # The purpose of the label and of the branching condition is to
18770 # speed up the sed processing (if there are no `@' at all, there
18771 # is no need to browse any of the substitutions).
18772 # These are the two extra sed commands mentioned above.
18773 (echo ':t
18774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18775 if test -z "$ac_sed_cmds"; then
18776 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18777 else
18778 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18780 ac_sed_frag=`expr $ac_sed_frag + 1`
18781 ac_beg=$ac_end
18782 ac_end=`expr $ac_end + $ac_max_sed_lines`
18784 done
18785 if test -z "$ac_sed_cmds"; then
18786 ac_sed_cmds=cat
18788 fi # test -n "$CONFIG_FILES"
18790 _ACEOF
18791 cat >>$CONFIG_STATUS <<\_ACEOF
18792 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18794 case $ac_file in
18795 - | *:- | *:-:* ) # input from stdin
18796 cat >$tmp/stdin
18797 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18798 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18799 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18800 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18801 * ) ac_file_in=$ac_file.in ;;
18802 esac
18804 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18805 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18807 X"$ac_file" : 'X\(//\)[^/]' \| \
18808 X"$ac_file" : 'X\(//\)$' \| \
18809 X"$ac_file" : 'X\(/\)' \| \
18810 . : '\(.\)' 2>/dev/null ||
18811 echo X"$ac_file" |
18812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18814 /^X\(\/\/\)$/{ s//\1/; q; }
18815 /^X\(\/\).*/{ s//\1/; q; }
18816 s/.*/./; q'`
18817 { if $as_mkdir_p; then
18818 mkdir -p "$ac_dir"
18819 else
18820 as_dir="$ac_dir"
18821 as_dirs=
18822 while test ! -d "$as_dir"; do
18823 as_dirs="$as_dir $as_dirs"
18824 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18826 X"$as_dir" : 'X\(//\)[^/]' \| \
18827 X"$as_dir" : 'X\(//\)$' \| \
18828 X"$as_dir" : 'X\(/\)' \| \
18829 . : '\(.\)' 2>/dev/null ||
18830 echo X"$as_dir" |
18831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18833 /^X\(\/\/\)$/{ s//\1/; q; }
18834 /^X\(\/\).*/{ s//\1/; q; }
18835 s/.*/./; q'`
18836 done
18837 test ! -n "$as_dirs" || mkdir $as_dirs
18838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18839 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18840 { (exit 1); exit 1; }; }; }
18842 ac_builddir=.
18844 if test "$ac_dir" != .; then
18845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18846 # A "../" for each directory in $ac_dir_suffix.
18847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18848 else
18849 ac_dir_suffix= ac_top_builddir=
18852 case $srcdir in
18853 .) # No --srcdir option. We are building in place.
18854 ac_srcdir=.
18855 if test -z "$ac_top_builddir"; then
18856 ac_top_srcdir=.
18857 else
18858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18859 fi ;;
18860 [\\/]* | ?:[\\/]* ) # Absolute path.
18861 ac_srcdir=$srcdir$ac_dir_suffix;
18862 ac_top_srcdir=$srcdir ;;
18863 *) # Relative path.
18864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18865 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18866 esac
18868 # Do not use `cd foo && pwd` to compute absolute paths, because
18869 # the directories may not exist.
18870 case `pwd` in
18871 .) ac_abs_builddir="$ac_dir";;
18873 case "$ac_dir" in
18874 .) ac_abs_builddir=`pwd`;;
18875 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18876 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18877 esac;;
18878 esac
18879 case $ac_abs_builddir in
18880 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18882 case ${ac_top_builddir}. in
18883 .) ac_abs_top_builddir=$ac_abs_builddir;;
18884 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18885 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18886 esac;;
18887 esac
18888 case $ac_abs_builddir in
18889 .) ac_abs_srcdir=$ac_srcdir;;
18891 case $ac_srcdir in
18892 .) ac_abs_srcdir=$ac_abs_builddir;;
18893 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18894 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18895 esac;;
18896 esac
18897 case $ac_abs_builddir in
18898 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18900 case $ac_top_srcdir in
18901 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18902 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18903 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18904 esac;;
18905 esac
18908 case $INSTALL in
18909 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18910 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18911 esac
18913 if test x"$ac_file" != x-; then
18914 { echo "$as_me:$LINENO: creating $ac_file" >&5
18915 echo "$as_me: creating $ac_file" >&6;}
18916 rm -f "$ac_file"
18918 # Let's still pretend it is `configure' which instantiates (i.e., don't
18919 # use $as_me), people would be surprised to read:
18920 # /* config.h. Generated by config.status. */
18921 if test x"$ac_file" = x-; then
18922 configure_input=
18923 else
18924 configure_input="$ac_file. "
18926 configure_input=$configure_input"Generated from `echo $ac_file_in |
18927 sed 's,.*/,,'` by configure."
18929 # First look for the input files in the build tree, otherwise in the
18930 # src tree.
18931 ac_file_inputs=`IFS=:
18932 for f in $ac_file_in; do
18933 case $f in
18934 -) echo $tmp/stdin ;;
18935 [\\/$]*)
18936 # Absolute (can't be DOS-style, as IFS=:)
18937 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18938 echo "$as_me: error: cannot find input file: $f" >&2;}
18939 { (exit 1); exit 1; }; }
18940 echo "$f";;
18941 *) # Relative
18942 if test -f "$f"; then
18943 # Build tree
18944 echo "$f"
18945 elif test -f "$srcdir/$f"; then
18946 # Source tree
18947 echo "$srcdir/$f"
18948 else
18949 # /dev/null tree
18950 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18951 echo "$as_me: error: cannot find input file: $f" >&2;}
18952 { (exit 1); exit 1; }; }
18953 fi;;
18954 esac
18955 done` || { (exit 1); exit 1; }
18956 _ACEOF
18957 cat >>$CONFIG_STATUS <<_ACEOF
18958 sed "$ac_vpsub
18959 $extrasub
18960 _ACEOF
18961 cat >>$CONFIG_STATUS <<\_ACEOF
18963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18964 s,@configure_input@,$configure_input,;t t
18965 s,@srcdir@,$ac_srcdir,;t t
18966 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18967 s,@top_srcdir@,$ac_top_srcdir,;t t
18968 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18969 s,@builddir@,$ac_builddir,;t t
18970 s,@abs_builddir@,$ac_abs_builddir,;t t
18971 s,@top_builddir@,$ac_top_builddir,;t t
18972 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18973 s,@INSTALL@,$ac_INSTALL,;t t
18974 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18975 rm -f $tmp/stdin
18976 if test x"$ac_file" != x-; then
18977 mv $tmp/out $ac_file
18978 else
18979 cat $tmp/out
18980 rm -f $tmp/out
18983 done
18984 _ACEOF
18985 cat >>$CONFIG_STATUS <<\_ACEOF
18988 # CONFIG_HEADER section.
18991 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18992 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18994 # ac_d sets the value in "#define NAME VALUE" lines.
18995 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18996 ac_dB='[ ].*$,\1#\2'
18997 ac_dC=' '
18998 ac_dD=',;t'
18999 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19000 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19001 ac_uB='$,\1#\2define\3'
19002 ac_uC=' '
19003 ac_uD=',;t'
19005 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19007 case $ac_file in
19008 - | *:- | *:-:* ) # input from stdin
19009 cat >$tmp/stdin
19010 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19012 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19014 * ) ac_file_in=$ac_file.in ;;
19015 esac
19017 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19018 echo "$as_me: creating $ac_file" >&6;}
19020 # First look for the input files in the build tree, otherwise in the
19021 # src tree.
19022 ac_file_inputs=`IFS=:
19023 for f in $ac_file_in; do
19024 case $f in
19025 -) echo $tmp/stdin ;;
19026 [\\/$]*)
19027 # Absolute (can't be DOS-style, as IFS=:)
19028 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19029 echo "$as_me: error: cannot find input file: $f" >&2;}
19030 { (exit 1); exit 1; }; }
19031 # Do quote $f, to prevent DOS paths from being IFS'd.
19032 echo "$f";;
19033 *) # Relative
19034 if test -f "$f"; then
19035 # Build tree
19036 echo "$f"
19037 elif test -f "$srcdir/$f"; then
19038 # Source tree
19039 echo "$srcdir/$f"
19040 else
19041 # /dev/null tree
19042 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19043 echo "$as_me: error: cannot find input file: $f" >&2;}
19044 { (exit 1); exit 1; }; }
19045 fi;;
19046 esac
19047 done` || { (exit 1); exit 1; }
19048 # Remove the trailing spaces.
19049 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19051 _ACEOF
19053 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19054 # `conftest.undefs', that substitutes the proper values into
19055 # config.h.in to produce config.h. The first handles `#define'
19056 # templates, and the second `#undef' templates.
19057 # And first: Protect against being on the right side of a sed subst in
19058 # config.status. Protect against being in an unquoted here document
19059 # in config.status.
19060 rm -f conftest.defines conftest.undefs
19061 # Using a here document instead of a string reduces the quoting nightmare.
19062 # Putting comments in sed scripts is not portable.
19064 # `end' is used to avoid that the second main sed command (meant for
19065 # 0-ary CPP macros) applies to n-ary macro definitions.
19066 # See the Autoconf documentation for `clear'.
19067 cat >confdef2sed.sed <<\_ACEOF
19068 s/[\\&,]/\\&/g
19069 s,[\\$`],\\&,g
19070 t clear
19071 : clear
19072 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19073 t end
19074 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19075 : end
19076 _ACEOF
19077 # If some macros were called several times there might be several times
19078 # the same #defines, which is useless. Nevertheless, we may not want to
19079 # sort them, since we want the *last* AC-DEFINE to be honored.
19080 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19081 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19082 rm -f confdef2sed.sed
19084 # This sed command replaces #undef with comments. This is necessary, for
19085 # example, in the case of _POSIX_SOURCE, which is predefined and required
19086 # on some systems where configure will not decide to define it.
19087 cat >>conftest.undefs <<\_ACEOF
19088 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19089 _ACEOF
19091 # Break up conftest.defines because some shells have a limit on the size
19092 # of here documents, and old seds have small limits too (100 cmds).
19093 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19094 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19095 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19096 echo ' :' >>$CONFIG_STATUS
19097 rm -f conftest.tail
19098 while grep . conftest.defines >/dev/null
19100 # Write a limited-size here document to $tmp/defines.sed.
19101 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19102 # Speed up: don't consider the non `#define' lines.
19103 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19104 # Work around the forget-to-reset-the-flag bug.
19105 echo 't clr' >>$CONFIG_STATUS
19106 echo ': clr' >>$CONFIG_STATUS
19107 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19108 echo 'CEOF
19109 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19110 rm -f $tmp/in
19111 mv $tmp/out $tmp/in
19112 ' >>$CONFIG_STATUS
19113 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19114 rm -f conftest.defines
19115 mv conftest.tail conftest.defines
19116 done
19117 rm -f conftest.defines
19118 echo ' fi # grep' >>$CONFIG_STATUS
19119 echo >>$CONFIG_STATUS
19121 # Break up conftest.undefs because some shells have a limit on the size
19122 # of here documents, and old seds have small limits too (100 cmds).
19123 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19124 rm -f conftest.tail
19125 while grep . conftest.undefs >/dev/null
19127 # Write a limited-size here document to $tmp/undefs.sed.
19128 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19129 # Speed up: don't consider the non `#undef'
19130 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19131 # Work around the forget-to-reset-the-flag bug.
19132 echo 't clr' >>$CONFIG_STATUS
19133 echo ': clr' >>$CONFIG_STATUS
19134 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19135 echo 'CEOF
19136 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19137 rm -f $tmp/in
19138 mv $tmp/out $tmp/in
19139 ' >>$CONFIG_STATUS
19140 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19141 rm -f conftest.undefs
19142 mv conftest.tail conftest.undefs
19143 done
19144 rm -f conftest.undefs
19146 cat >>$CONFIG_STATUS <<\_ACEOF
19147 # Let's still pretend it is `configure' which instantiates (i.e., don't
19148 # use $as_me), people would be surprised to read:
19149 # /* config.h. Generated by config.status. */
19150 if test x"$ac_file" = x-; then
19151 echo "/* Generated by configure. */" >$tmp/config.h
19152 else
19153 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19155 cat $tmp/in >>$tmp/config.h
19156 rm -f $tmp/in
19157 if test x"$ac_file" != x-; then
19158 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19159 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19160 echo "$as_me: $ac_file is unchanged" >&6;}
19161 else
19162 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19164 X"$ac_file" : 'X\(//\)[^/]' \| \
19165 X"$ac_file" : 'X\(//\)$' \| \
19166 X"$ac_file" : 'X\(/\)' \| \
19167 . : '\(.\)' 2>/dev/null ||
19168 echo X"$ac_file" |
19169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19171 /^X\(\/\/\)$/{ s//\1/; q; }
19172 /^X\(\/\).*/{ s//\1/; q; }
19173 s/.*/./; q'`
19174 { if $as_mkdir_p; then
19175 mkdir -p "$ac_dir"
19176 else
19177 as_dir="$ac_dir"
19178 as_dirs=
19179 while test ! -d "$as_dir"; do
19180 as_dirs="$as_dir $as_dirs"
19181 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19183 X"$as_dir" : 'X\(//\)[^/]' \| \
19184 X"$as_dir" : 'X\(//\)$' \| \
19185 X"$as_dir" : 'X\(/\)' \| \
19186 . : '\(.\)' 2>/dev/null ||
19187 echo X"$as_dir" |
19188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19190 /^X\(\/\/\)$/{ s//\1/; q; }
19191 /^X\(\/\).*/{ s//\1/; q; }
19192 s/.*/./; q'`
19193 done
19194 test ! -n "$as_dirs" || mkdir $as_dirs
19195 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19196 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19197 { (exit 1); exit 1; }; }; }
19199 rm -f $ac_file
19200 mv $tmp/config.h $ac_file
19202 else
19203 cat $tmp/config.h
19204 rm -f $tmp/config.h
19206 # Compute $ac_file's index in $config_headers.
19207 _am_stamp_count=1
19208 for _am_header in $config_headers :; do
19209 case $_am_header in
19210 $ac_file | $ac_file:* )
19211 break ;;
19213 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19214 esac
19215 done
19216 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19217 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19218 X$ac_file : 'X\(//\)[^/]' \| \
19219 X$ac_file : 'X\(//\)$' \| \
19220 X$ac_file : 'X\(/\)' \| \
19221 . : '\(.\)' 2>/dev/null ||
19222 echo X$ac_file |
19223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19225 /^X\(\/\/\)$/{ s//\1/; q; }
19226 /^X\(\/\).*/{ s//\1/; q; }
19227 s/.*/./; q'`/stamp-h$_am_stamp_count
19228 done
19229 _ACEOF
19230 cat >>$CONFIG_STATUS <<\_ACEOF
19233 # CONFIG_LINKS section.
19236 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19237 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19238 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19240 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19241 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19243 if test ! -r $srcdir/$ac_source; then
19244 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19245 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19246 { (exit 1); exit 1; }; }
19248 rm -f $ac_dest
19250 # Make relative symlinks.
19251 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19252 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19253 X"$ac_dest" : 'X\(//\)[^/]' \| \
19254 X"$ac_dest" : 'X\(//\)$' \| \
19255 X"$ac_dest" : 'X\(/\)' \| \
19256 . : '\(.\)' 2>/dev/null ||
19257 echo X"$ac_dest" |
19258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19260 /^X\(\/\/\)$/{ s//\1/; q; }
19261 /^X\(\/\).*/{ s//\1/; q; }
19262 s/.*/./; q'`
19263 { if $as_mkdir_p; then
19264 mkdir -p "$ac_dest_dir"
19265 else
19266 as_dir="$ac_dest_dir"
19267 as_dirs=
19268 while test ! -d "$as_dir"; do
19269 as_dirs="$as_dir $as_dirs"
19270 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19272 X"$as_dir" : 'X\(//\)[^/]' \| \
19273 X"$as_dir" : 'X\(//\)$' \| \
19274 X"$as_dir" : 'X\(/\)' \| \
19275 . : '\(.\)' 2>/dev/null ||
19276 echo X"$as_dir" |
19277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19279 /^X\(\/\/\)$/{ s//\1/; q; }
19280 /^X\(\/\).*/{ s//\1/; q; }
19281 s/.*/./; q'`
19282 done
19283 test ! -n "$as_dirs" || mkdir $as_dirs
19284 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
19285 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
19286 { (exit 1); exit 1; }; }; }
19288 ac_builddir=.
19290 if test "$ac_dest_dir" != .; then
19291 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19292 # A "../" for each directory in $ac_dir_suffix.
19293 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19294 else
19295 ac_dir_suffix= ac_top_builddir=
19298 case $srcdir in
19299 .) # No --srcdir option. We are building in place.
19300 ac_srcdir=.
19301 if test -z "$ac_top_builddir"; then
19302 ac_top_srcdir=.
19303 else
19304 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19305 fi ;;
19306 [\\/]* | ?:[\\/]* ) # Absolute path.
19307 ac_srcdir=$srcdir$ac_dir_suffix;
19308 ac_top_srcdir=$srcdir ;;
19309 *) # Relative path.
19310 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19311 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19312 esac
19314 # Do not use `cd foo && pwd` to compute absolute paths, because
19315 # the directories may not exist.
19316 case `pwd` in
19317 .) ac_abs_builddir="$ac_dest_dir";;
19319 case "$ac_dest_dir" in
19320 .) ac_abs_builddir=`pwd`;;
19321 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
19322 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
19323 esac;;
19324 esac
19325 case $ac_abs_builddir in
19326 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19328 case ${ac_top_builddir}. in
19329 .) ac_abs_top_builddir=$ac_abs_builddir;;
19330 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19331 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19332 esac;;
19333 esac
19334 case $ac_abs_builddir in
19335 .) ac_abs_srcdir=$ac_srcdir;;
19337 case $ac_srcdir in
19338 .) ac_abs_srcdir=$ac_abs_builddir;;
19339 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19340 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19341 esac;;
19342 esac
19343 case $ac_abs_builddir in
19344 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19346 case $ac_top_srcdir in
19347 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19348 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19349 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19350 esac;;
19351 esac
19354 case $srcdir in
19355 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19356 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19357 esac
19359 # Try a symlink, then a hard link, then a copy.
19360 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19361 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
19362 cp -p $srcdir/$ac_source $ac_dest ||
19363 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
19364 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
19365 { (exit 1); exit 1; }; }
19366 done
19367 _ACEOF
19368 cat >>$CONFIG_STATUS <<\_ACEOF
19371 # CONFIG_COMMANDS section.
19373 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19374 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19375 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19376 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19377 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19378 X"$ac_dest" : 'X\(//\)[^/]' \| \
19379 X"$ac_dest" : 'X\(//\)$' \| \
19380 X"$ac_dest" : 'X\(/\)' \| \
19381 . : '\(.\)' 2>/dev/null ||
19382 echo X"$ac_dest" |
19383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19385 /^X\(\/\/\)$/{ s//\1/; q; }
19386 /^X\(\/\).*/{ s//\1/; q; }
19387 s/.*/./; q'`
19388 { if $as_mkdir_p; then
19389 mkdir -p "$ac_dir"
19390 else
19391 as_dir="$ac_dir"
19392 as_dirs=
19393 while test ! -d "$as_dir"; do
19394 as_dirs="$as_dir $as_dirs"
19395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19397 X"$as_dir" : 'X\(//\)[^/]' \| \
19398 X"$as_dir" : 'X\(//\)$' \| \
19399 X"$as_dir" : 'X\(/\)' \| \
19400 . : '\(.\)' 2>/dev/null ||
19401 echo X"$as_dir" |
19402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19404 /^X\(\/\/\)$/{ s//\1/; q; }
19405 /^X\(\/\).*/{ s//\1/; q; }
19406 s/.*/./; q'`
19407 done
19408 test ! -n "$as_dirs" || mkdir $as_dirs
19409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19411 { (exit 1); exit 1; }; }; }
19413 ac_builddir=.
19415 if test "$ac_dir" != .; then
19416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19417 # A "../" for each directory in $ac_dir_suffix.
19418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19419 else
19420 ac_dir_suffix= ac_top_builddir=
19423 case $srcdir in
19424 .) # No --srcdir option. We are building in place.
19425 ac_srcdir=.
19426 if test -z "$ac_top_builddir"; then
19427 ac_top_srcdir=.
19428 else
19429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19430 fi ;;
19431 [\\/]* | ?:[\\/]* ) # Absolute path.
19432 ac_srcdir=$srcdir$ac_dir_suffix;
19433 ac_top_srcdir=$srcdir ;;
19434 *) # Relative path.
19435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19437 esac
19439 # Do not use `cd foo && pwd` to compute absolute paths, because
19440 # the directories may not exist.
19441 case `pwd` in
19442 .) ac_abs_builddir="$ac_dir";;
19444 case "$ac_dir" in
19445 .) ac_abs_builddir=`pwd`;;
19446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19447 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19448 esac;;
19449 esac
19450 case $ac_abs_builddir in
19451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19453 case ${ac_top_builddir}. in
19454 .) ac_abs_top_builddir=$ac_abs_builddir;;
19455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19457 esac;;
19458 esac
19459 case $ac_abs_builddir in
19460 .) ac_abs_srcdir=$ac_srcdir;;
19462 case $ac_srcdir in
19463 .) ac_abs_srcdir=$ac_abs_builddir;;
19464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19466 esac;;
19467 esac
19468 case $ac_abs_builddir in
19469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19471 case $ac_top_srcdir in
19472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19475 esac;;
19476 esac
19479 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19480 echo "$as_me: executing $ac_dest commands" >&6;}
19481 case $ac_dest in
19482 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19483 # Strip MF so we end up with the name of the file.
19484 mf=`echo "$mf" | sed -e 's/:.*$//'`
19485 # Check whether this is an Automake generated Makefile or not.
19486 # We used to match only the files named `Makefile.in', but
19487 # some people rename them; so instead we look at the file content.
19488 # Grep'ing the first line is not enough: some people post-process
19489 # each Makefile.in and add a new line on top of each file to say so.
19490 # So let's grep whole file.
19491 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19492 dirpart=`(dirname "$mf") 2>/dev/null ||
19493 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19494 X"$mf" : 'X\(//\)[^/]' \| \
19495 X"$mf" : 'X\(//\)$' \| \
19496 X"$mf" : 'X\(/\)' \| \
19497 . : '\(.\)' 2>/dev/null ||
19498 echo X"$mf" |
19499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19501 /^X\(\/\/\)$/{ s//\1/; q; }
19502 /^X\(\/\).*/{ s//\1/; q; }
19503 s/.*/./; q'`
19504 else
19505 continue
19507 # Extract the definition of DEPDIR, am__include, and am__quote
19508 # from the Makefile without running `make'.
19509 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19510 test -z "$DEPDIR" && continue
19511 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19512 test -z "am__include" && continue
19513 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19514 # When using ansi2knr, U may be empty or an underscore; expand it
19515 U=`sed -n 's/^U = //p' < "$mf"`
19516 # Find all dependency output files, they are included files with
19517 # $(DEPDIR) in their names. We invoke sed twice because it is the
19518 # simplest approach to changing $(DEPDIR) to its actual value in the
19519 # expansion.
19520 for file in `sed -n "
19521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19523 # Make sure the directory exists.
19524 test -f "$dirpart/$file" && continue
19525 fdir=`(dirname "$file") 2>/dev/null ||
19526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19527 X"$file" : 'X\(//\)[^/]' \| \
19528 X"$file" : 'X\(//\)$' \| \
19529 X"$file" : 'X\(/\)' \| \
19530 . : '\(.\)' 2>/dev/null ||
19531 echo X"$file" |
19532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19534 /^X\(\/\/\)$/{ s//\1/; q; }
19535 /^X\(\/\).*/{ s//\1/; q; }
19536 s/.*/./; q'`
19537 { if $as_mkdir_p; then
19538 mkdir -p $dirpart/$fdir
19539 else
19540 as_dir=$dirpart/$fdir
19541 as_dirs=
19542 while test ! -d "$as_dir"; do
19543 as_dirs="$as_dir $as_dirs"
19544 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19546 X"$as_dir" : 'X\(//\)[^/]' \| \
19547 X"$as_dir" : 'X\(//\)$' \| \
19548 X"$as_dir" : 'X\(/\)' \| \
19549 . : '\(.\)' 2>/dev/null ||
19550 echo X"$as_dir" |
19551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19553 /^X\(\/\/\)$/{ s//\1/; q; }
19554 /^X\(\/\).*/{ s//\1/; q; }
19555 s/.*/./; q'`
19556 done
19557 test ! -n "$as_dirs" || mkdir $as_dirs
19558 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19559 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19560 { (exit 1); exit 1; }; }; }
19562 # echo "creating $dirpart/$file"
19563 echo '# dummy' > "$dirpart/$file"
19564 done
19565 done
19567 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
19568 $ac_stdint_h )
19569 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
19570 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
19571 ac_stdint=$tmp/_stdint.h
19573 echo "#ifndef" $_ac_stdint_h >$ac_stdint
19574 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
19575 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
19576 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
19577 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
19578 if test "_$ac_cv_header_stdint_t" != "_" ; then
19579 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
19580 echo "#include <stdint.h>" >>$ac_stdint
19581 echo "#endif" >>$ac_stdint
19582 echo "#endif" >>$ac_stdint
19583 else
19585 cat >>$ac_stdint <<STDINT_EOF
19587 /* ................... shortcircuit part ........................... */
19589 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
19590 #include <stdint.h>
19591 #else
19592 #include <stddef.h>
19594 /* .................... configured part ............................ */
19596 STDINT_EOF
19598 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
19599 if test "_$ac_cv_header_stdint_x" != "_" ; then
19600 ac_header="$ac_cv_header_stdint_x"
19601 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
19602 else
19603 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
19606 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
19607 if test "_$ac_cv_header_stdint_o" != "_" ; then
19608 ac_header="$ac_cv_header_stdint_o"
19609 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
19610 else
19611 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
19614 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
19615 if test "_$ac_cv_header_stdint_u" != "_" ; then
19616 ac_header="$ac_cv_header_stdint_u"
19617 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
19618 else
19619 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
19622 echo "" >>$ac_stdint
19624 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
19625 echo "#include <$ac_header>" >>$ac_stdint
19626 echo "" >>$ac_stdint
19627 fi fi
19629 echo "/* which 64bit typedef has been found */" >>$ac_stdint
19630 if test "$ac_cv_type_uint64_t" = "yes" ; then
19631 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
19632 else
19633 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
19635 if test "$ac_cv_type_u_int64_t" = "yes" ; then
19636 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
19637 else
19638 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
19640 echo "" >>$ac_stdint
19642 echo "/* which type model has been detected */" >>$ac_stdint
19643 if test "_$ac_cv_char_data_model" != "_" ; then
19644 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
19645 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
19646 else
19647 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
19648 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
19650 echo "" >>$ac_stdint
19652 echo "/* whether int_least types were detected */" >>$ac_stdint
19653 if test "$ac_cv_type_int_least32_t" = "yes"; then
19654 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
19655 else
19656 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
19658 echo "/* whether int_fast types were detected */" >>$ac_stdint
19659 if test "$ac_cv_type_int_fast32_t" = "yes"; then
19660 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
19661 else
19662 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
19664 echo "/* whether intmax_t type was detected */" >>$ac_stdint
19665 if test "$ac_cv_type_intmax_t" = "yes"; then
19666 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
19667 else
19668 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
19670 echo "" >>$ac_stdint
19672 cat >>$ac_stdint <<STDINT_EOF
19673 /* .................... detections part ............................ */
19675 /* whether we need to define bitspecific types from compiler base types */
19676 #ifndef _STDINT_HEADER_INTPTR
19677 #ifndef _STDINT_HEADER_UINT32
19678 #ifndef _STDINT_HEADER_U_INT32
19679 #define _STDINT_NEED_INT_MODEL_T
19680 #else
19681 #define _STDINT_HAVE_U_INT_TYPES
19682 #endif
19683 #endif
19684 #endif
19686 #ifdef _STDINT_HAVE_U_INT_TYPES
19687 #undef _STDINT_NEED_INT_MODEL_T
19688 #endif
19690 #ifdef _STDINT_CHAR_MODEL
19691 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
19692 #ifndef _STDINT_BYTE_MODEL
19693 #define _STDINT_BYTE_MODEL 12
19694 #endif
19695 #endif
19696 #endif
19698 #ifndef _STDINT_HAVE_INT_LEAST32_T
19699 #define _STDINT_NEED_INT_LEAST_T
19700 #endif
19702 #ifndef _STDINT_HAVE_INT_FAST32_T
19703 #define _STDINT_NEED_INT_FAST_T
19704 #endif
19706 #ifndef _STDINT_HEADER_INTPTR
19707 #define _STDINT_NEED_INTPTR_T
19708 #ifndef _STDINT_HAVE_INTMAX_T
19709 #define _STDINT_NEED_INTMAX_T
19710 #endif
19711 #endif
19714 /* .................... definition part ............................ */
19716 /* some system headers have good uint64_t */
19717 #ifndef _HAVE_UINT64_T
19718 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
19719 #define _HAVE_UINT64_T
19720 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
19721 #define _HAVE_UINT64_T
19722 typedef u_int64_t uint64_t;
19723 #endif
19724 #endif
19726 #ifndef _HAVE_UINT64_T
19727 /* .. here are some common heuristics using compiler runtime specifics */
19728 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
19729 #define _HAVE_UINT64_T
19730 #define _HAVE_LONGLONG_UINT64_T
19731 typedef long long int64_t;
19732 typedef unsigned long long uint64_t;
19734 #elif !defined __STRICT_ANSI__
19735 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19736 #define _HAVE_UINT64_T
19737 typedef __int64 int64_t;
19738 typedef unsigned __int64 uint64_t;
19740 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
19741 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
19742 #if !defined _NO_LONGLONG
19743 #define _HAVE_UINT64_T
19744 #define _HAVE_LONGLONG_UINT64_T
19745 typedef long long int64_t;
19746 typedef unsigned long long uint64_t;
19747 #endif
19749 #elif defined __alpha || (defined __mips && defined _ABIN32)
19750 #if !defined _NO_LONGLONG
19751 typedef long int64_t;
19752 typedef unsigned long uint64_t;
19753 #endif
19754 /* compiler/cpu type to define int64_t */
19755 #endif
19756 #endif
19757 #endif
19759 #if defined _STDINT_HAVE_U_INT_TYPES
19760 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
19761 typedef u_int8_t uint8_t;
19762 typedef u_int16_t uint16_t;
19763 typedef u_int32_t uint32_t;
19765 /* glibc compatibility */
19766 #ifndef __int8_t_defined
19767 #define __int8_t_defined
19768 #endif
19769 #endif
19771 #ifdef _STDINT_NEED_INT_MODEL_T
19772 /* we must guess all the basic types. Apart from byte-adressable system, */
19773 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
19774 /* (btw, those nibble-addressable systems are way off, or so we assume) */
19777 #if defined _STDINT_BYTE_MODEL
19778 #if _STDINT_LONG_MODEL+0 == 242
19779 /* 2:4:2 = IP16 = a normal 16-bit system */
19780 typedef unsigned char uint8_t;
19781 typedef unsigned short uint16_t;
19782 typedef unsigned long uint32_t;
19783 #ifndef __int8_t_defined
19784 #define __int8_t_defined
19785 typedef char int8_t;
19786 typedef short int16_t;
19787 typedef long int32_t;
19788 #endif
19789 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
19790 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
19791 /* 4:4:4 = ILP32 = a normal 32-bit system */
19792 typedef unsigned char uint8_t;
19793 typedef unsigned short uint16_t;
19794 typedef unsigned int uint32_t;
19795 #ifndef __int8_t_defined
19796 #define __int8_t_defined
19797 typedef char int8_t;
19798 typedef short int16_t;
19799 typedef int int32_t;
19800 #endif
19801 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
19802 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
19803 /* 4:8:8 = LP64 = a normal 64-bit system */
19804 typedef unsigned char uint8_t;
19805 typedef unsigned short uint16_t;
19806 typedef unsigned int uint32_t;
19807 #ifndef __int8_t_defined
19808 #define __int8_t_defined
19809 typedef char int8_t;
19810 typedef short int16_t;
19811 typedef int int32_t;
19812 #endif
19813 /* this system has a "long" of 64bit */
19814 #ifndef _HAVE_UINT64_T
19815 #define _HAVE_UINT64_T
19816 typedef unsigned long uint64_t;
19817 typedef long int64_t;
19818 #endif
19819 #elif _STDINT_LONG_MODEL+0 == 448
19820 /* LLP64 a 64-bit system derived from a 32-bit system */
19821 typedef unsigned char uint8_t;
19822 typedef unsigned short uint16_t;
19823 typedef unsigned int uint32_t;
19824 #ifndef __int8_t_defined
19825 #define __int8_t_defined
19826 typedef char int8_t;
19827 typedef short int16_t;
19828 typedef int int32_t;
19829 #endif
19830 /* assuming the system has a "long long" */
19831 #ifndef _HAVE_UINT64_T
19832 #define _HAVE_UINT64_T
19833 #define _HAVE_LONGLONG_UINT64_T
19834 typedef unsigned long long uint64_t;
19835 typedef long long int64_t;
19836 #endif
19837 #else
19838 #define _STDINT_NO_INT32_T
19839 #endif
19840 #else
19841 #define _STDINT_NO_INT8_T
19842 #define _STDINT_NO_INT32_T
19843 #endif
19844 #endif
19847 * quote from SunOS-5.8 sys/inttypes.h:
19848 * Use at your own risk. As of February 1996, the committee is squarely
19849 * behind the fixed sized types; the "least" and "fast" types are still being
19850 * discussed. The probability that the "fast" types may be removed before
19851 * the standard is finalized is high enough that they are not currently
19852 * implemented.
19855 #if defined _STDINT_NEED_INT_LEAST_T
19856 typedef int8_t int_least8_t;
19857 typedef int16_t int_least16_t;
19858 typedef int32_t int_least32_t;
19859 #ifdef _HAVE_UINT64_T
19860 typedef int64_t int_least64_t;
19861 #endif
19863 typedef uint8_t uint_least8_t;
19864 typedef uint16_t uint_least16_t;
19865 typedef uint32_t uint_least32_t;
19866 #ifdef _HAVE_UINT64_T
19867 typedef uint64_t uint_least64_t;
19868 #endif
19869 /* least types */
19870 #endif
19872 #if defined _STDINT_NEED_INT_FAST_T
19873 typedef int8_t int_fast8_t;
19874 typedef int int_fast16_t;
19875 typedef int32_t int_fast32_t;
19876 #ifdef _HAVE_UINT64_T
19877 typedef int64_t int_fast64_t;
19878 #endif
19880 typedef uint8_t uint_fast8_t;
19881 typedef unsigned uint_fast16_t;
19882 typedef uint32_t uint_fast32_t;
19883 #ifdef _HAVE_UINT64_T
19884 typedef uint64_t uint_fast64_t;
19885 #endif
19886 /* fast types */
19887 #endif
19889 #ifdef _STDINT_NEED_INTMAX_T
19890 #ifdef _HAVE_UINT64_T
19891 typedef int64_t intmax_t;
19892 typedef uint64_t uintmax_t;
19893 #else
19894 typedef long intmax_t;
19895 typedef unsigned long uintmax_t;
19896 #endif
19897 #endif
19899 #ifdef _STDINT_NEED_INTPTR_T
19900 #ifndef __intptr_t_defined
19901 #define __intptr_t_defined
19902 /* we encourage using "long" to store pointer values, never use "int" ! */
19903 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19904 typedef unsigned int uintptr_t;
19905 typedef int intptr_t;
19906 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19907 typedef unsigned long uintptr_t;
19908 typedef long intptr_t;
19909 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19910 typedef uint64_t uintptr_t;
19911 typedef int64_t intptr_t;
19912 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19913 typedef unsigned long uintptr_t;
19914 typedef long intptr_t;
19915 #endif
19916 #endif
19917 #endif
19919 /* The ISO C99 standard specifies that in C++ implementations these
19920 should only be defined if explicitly requested. */
19921 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19922 #ifndef UINT32_C
19924 /* Signed. */
19925 # define INT8_C(c) c
19926 # define INT16_C(c) c
19927 # define INT32_C(c) c
19928 # ifdef _HAVE_LONGLONG_UINT64_T
19929 # define INT64_C(c) c ## L
19930 # else
19931 # define INT64_C(c) c ## LL
19932 # endif
19934 /* Unsigned. */
19935 # define UINT8_C(c) c ## U
19936 # define UINT16_C(c) c ## U
19937 # define UINT32_C(c) c ## U
19938 # ifdef _HAVE_LONGLONG_UINT64_T
19939 # define UINT64_C(c) c ## UL
19940 # else
19941 # define UINT64_C(c) c ## ULL
19942 # endif
19944 /* Maximal type. */
19945 # ifdef _HAVE_LONGLONG_UINT64_T
19946 # define INTMAX_C(c) c ## L
19947 # define UINTMAX_C(c) c ## UL
19948 # else
19949 # define INTMAX_C(c) c ## LL
19950 # define UINTMAX_C(c) c ## ULL
19951 # endif
19953 /* literalnumbers */
19954 #endif
19955 #endif
19957 /* These limits are merily those of a two complement byte-oriented system */
19959 /* Minimum of signed integral types. */
19960 # define INT8_MIN (-128)
19961 # define INT16_MIN (-32767-1)
19962 # define INT32_MIN (-2147483647-1)
19963 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
19964 /* Maximum of signed integral types. */
19965 # define INT8_MAX (127)
19966 # define INT16_MAX (32767)
19967 # define INT32_MAX (2147483647)
19968 # define INT64_MAX (__INT64_C(9223372036854775807))
19970 /* Maximum of unsigned integral types. */
19971 # define UINT8_MAX (255)
19972 # define UINT16_MAX (65535)
19973 # define UINT32_MAX (4294967295U)
19974 # define UINT64_MAX (__UINT64_C(18446744073709551615))
19976 /* Minimum of signed integral types having a minimum size. */
19977 # define INT_LEAST8_MIN INT8_MIN
19978 # define INT_LEAST16_MIN INT16_MIN
19979 # define INT_LEAST32_MIN INT32_MIN
19980 # define INT_LEAST64_MIN INT64_MIN
19981 /* Maximum of signed integral types having a minimum size. */
19982 # define INT_LEAST8_MAX INT8_MAX
19983 # define INT_LEAST16_MAX INT16_MAX
19984 # define INT_LEAST32_MAX INT32_MAX
19985 # define INT_LEAST64_MAX INT64_MAX
19987 /* Maximum of unsigned integral types having a minimum size. */
19988 # define UINT_LEAST8_MAX UINT8_MAX
19989 # define UINT_LEAST16_MAX UINT16_MAX
19990 # define UINT_LEAST32_MAX UINT32_MAX
19991 # define UINT_LEAST64_MAX UINT64_MAX
19993 /* shortcircuit*/
19994 #endif
19995 /* once */
19996 #endif
19997 #endif
19998 STDINT_EOF
20000 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20001 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
20002 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20003 else
20004 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
20005 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20006 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20007 X"$ac_stdint_h" : 'X\(//\)$' \| \
20008 X"$ac_stdint_h" : 'X\(/\)' \| \
20009 . : '\(.\)' 2>/dev/null ||
20010 echo X"$ac_stdint_h" |
20011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20013 /^X\(\/\/\)$/{ s//\1/; q; }
20014 /^X\(\/\).*/{ s//\1/; q; }
20015 s/.*/./; q'`
20016 { if $as_mkdir_p; then
20017 mkdir -p "$ac_dir"
20018 else
20019 as_dir="$ac_dir"
20020 as_dirs=
20021 while test ! -d "$as_dir"; do
20022 as_dirs="$as_dir $as_dirs"
20023 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20025 X"$as_dir" : 'X\(//\)[^/]' \| \
20026 X"$as_dir" : 'X\(//\)$' \| \
20027 X"$as_dir" : 'X\(/\)' \| \
20028 . : '\(.\)' 2>/dev/null ||
20029 echo X"$as_dir" |
20030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20032 /^X\(\/\/\)$/{ s//\1/; q; }
20033 /^X\(\/\).*/{ s//\1/; q; }
20034 s/.*/./; q'`
20035 done
20036 test ! -n "$as_dirs" || mkdir $as_dirs
20037 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20038 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20039 { (exit 1); exit 1; }; }; }
20041 rm -f $ac_stdint_h
20042 mv $ac_stdint $ac_stdint_h
20045 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
20046 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
20047 esac
20048 done
20049 _ACEOF
20051 cat >>$CONFIG_STATUS <<\_ACEOF
20053 { (exit 0); exit 0; }
20054 _ACEOF
20055 chmod +x $CONFIG_STATUS
20056 ac_clean_files=$ac_clean_files_save
20059 # configure is writing to config.log, and then calls config.status.
20060 # config.status does its own redirection, appending to config.log.
20061 # Unfortunately, on DOS this fails, as config.log is still kept open
20062 # by configure, so config.status won't be able to write to it; its
20063 # output is simply discarded. So we exec the FD to /dev/null,
20064 # effectively closing config.log, so it can be properly (re)opened and
20065 # appended to by config.status. When coming back to configure, we
20066 # need to make the FD available again.
20067 if test "$no_create" != yes; then
20068 ac_cs_success=:
20069 ac_config_status_args=
20070 test "$silent" = yes &&
20071 ac_config_status_args="$ac_config_status_args --quiet"
20072 exec 5>/dev/null
20073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20074 exec 5>>config.log
20075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20076 # would make configure fail if this is the last instruction.
20077 $ac_cs_success || { (exit 1); exit 1; }