re PR java/28024 (libjava build failure on Solaris 2.8 (sun4u))
[gcc.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.92-pre.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU Classpath'
271 PACKAGE_TARNAME='classpath'
272 PACKAGE_VERSION='0.92-pre'
273 PACKAGE_STRING='GNU Classpath 0.92-pre'
274 PACKAGE_BUGREPORT='classpath@gnu.org'
275
276 ac_unique_file="java/lang/System.java"
277 ac_default_prefix=/usr/local/classpath
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBVERSION CLASSPATH_MODULE CLASSPATH_CONVENIENCE 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 CREATE_QT_PEER_LIBRARIES_TRUE CREATE_QT_PEER_LIBRARIES_FALSE CREATE_PLUGIN_TRUE CREATE_PLUGIN_FALSE nativeexeclibdir glibjdir VM_BINARY FOUND_CACAO_TRUE FOUND_CACAO_FALSE CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB LIBTOOL CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC 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 FREETYPE2_CFLAGS FREETYPE2_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS XTEST_LIBS QT_CFLAGS QT_LIBS MOC MOZILLA_CFLAGS MOZILLA_LIBS GLIB_CFLAGS GLIB_LIBS PLUGIN_DIR 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 USE_PREBUILT_GLIBJ_ZIP_TRUE USE_PREBUILT_GLIBJ_ZIP_FALSE PATH_TO_GLIBJ_ZIP ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 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
788
789 #
790 # Report the --help message.
791 #
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.92-pre to adapt to many kinds of systems.
797
798 Usage: $0 [OPTION]... [VAR=VALUE]...
799
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.
802
803 Defaults for the options are specified in brackets.
804
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 \`..']
815
816 _ACEOF
817
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]
824
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'.
829
830 For better control, use the options below.
831
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
846
847 cat <<\_ACEOF
848
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
853
854 X features:
855 --x-includes=DIR X include files are in DIR
856 --x-libraries=DIR X library files are in DIR
857
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
863 fi
864
865 if test -n "$ac_init_help"; then
866 case $ac_init_help in
867 short | recursive ) echo "Configuration of GNU Classpath 0.92-pre:";;
868 esac
869 cat <<\_ACEOF
870
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
891
892 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
893 default=no
894 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
895 default=yes
896 --enable-regen-headers automatically regenerate JNI headers default=no
897 --enable-tool-wrappers create tool wrapper binaries default=no
898 --enable-static=PKGS build static libraries default=no
899 --enable-shared=PKGS build shared libraries default=yes
900 --enable-fast-install=PKGS optimize for fast installation default=yes
901 --disable-libtool-lock avoid locking (might break parallel builds)
902 --disable-rpath do not hardcode runtime library paths
903 --enable-maintainer-mode enable make rules and dependencies not useful
904 (and sometimes confusing) to the casual installer
905 --enable-debug enable runtime debugging code
906 --enable-load-library enable to use JNI native methods default=yes
907 --enable-java-lang-system-explicit-initialization
908 will the VM explicitly invoke java.lang.System's
909 static initialization methods default=no
910 --enable-examples enable build of the examples default=yes
911 --enable-portable-native-sync
912 synchronize VM threads portably
913 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
914
915 Optional Packages:
916 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
917 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
918 --with-native-libdir sets the installation directory for native libraries
919 default='${libdir}/${PACKAGE}'
920 --with-glibj-dir sets the installation directory for glibj.zip
921 default='${libdir}/${PACKAGE}'
922 --with-vm sets the VM binary name
923 default='${prefix}/bin/jamvm'
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-pic try to use only PIC/non-PIC objects default=use both
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-x use the X Window System
929 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
930 systems use pkg-config.
931 --with-javah specify path or name of a javah-like program
932 --with-gcj bytecode compilation with gcj
933 --with-jikes bytecode compilation with jikes
934 --with-kjc bytecode compilation with kjc
935 --with-gcjx bytecode compilation with gcjx
936 --with-ecj bytecode compilation with ecj
937 --with-classpath specify path to a classes.zip like file
938 --with-vm-classes specify path to VM override source files
939 --with-fastjar=PATH define to use a fastjar style tool
940 --with-glibj define what to install (zip|flat|both|none|build)
941 [default=zip]
942 --with-gjdoc generate documentation using gjdoc (default is NO)
943 --with-jay Regenerate the parsers with jay must be given the
944 path to the jay executable
945 --with-glibj-zip=ABS.PATH
946 use prebuilt glibj.zip class library
947
948 Some influential environment variables:
949 CC C compiler command
950 CFLAGS C compiler flags
951 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
952 nonstandard directory <lib dir>
953 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
954 headers in a nonstandard directory <include dir>
955 CPP C preprocessor
956 CXX C++ compiler command
957 CXXFLAGS C++ compiler flags
958 CXXCPP C++ preprocessor
959
960 Use these variables to override the choices made by `configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
962
963 Report bugs to <classpath@gnu.org>.
964 _ACEOF
965 fi
966
967 if test "$ac_init_help" = "recursive"; then
968 # If there are subdirs, report their specific --help.
969 ac_popdir=`pwd`
970 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
971 test -d $ac_dir || continue
972 ac_builddir=.
973
974 if test "$ac_dir" != .; then
975 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
976 # A "../" for each directory in $ac_dir_suffix.
977 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
978 else
979 ac_dir_suffix= ac_top_builddir=
980 fi
981
982 case $srcdir in
983 .) # No --srcdir option. We are building in place.
984 ac_srcdir=.
985 if test -z "$ac_top_builddir"; then
986 ac_top_srcdir=.
987 else
988 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
989 fi ;;
990 [\\/]* | ?:[\\/]* ) # Absolute path.
991 ac_srcdir=$srcdir$ac_dir_suffix;
992 ac_top_srcdir=$srcdir ;;
993 *) # Relative path.
994 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
995 ac_top_srcdir=$ac_top_builddir$srcdir ;;
996 esac
997
998 # Do not use `cd foo && pwd` to compute absolute paths, because
999 # the directories may not exist.
1000 case `pwd` in
1001 .) ac_abs_builddir="$ac_dir";;
1002 *)
1003 case "$ac_dir" in
1004 .) ac_abs_builddir=`pwd`;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1006 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1007 esac;;
1008 esac
1009 case $ac_abs_builddir in
1010 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1011 *)
1012 case ${ac_top_builddir}. in
1013 .) ac_abs_top_builddir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1015 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1016 esac;;
1017 esac
1018 case $ac_abs_builddir in
1019 .) ac_abs_srcdir=$ac_srcdir;;
1020 *)
1021 case $ac_srcdir in
1022 .) ac_abs_srcdir=$ac_abs_builddir;;
1023 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1024 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1025 esac;;
1026 esac
1027 case $ac_abs_builddir in
1028 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1029 *)
1030 case $ac_top_srcdir in
1031 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1032 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1033 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1034 esac;;
1035 esac
1036
1037 cd $ac_dir
1038 # Check for guested configure; otherwise get Cygnus style configure.
1039 if test -f $ac_srcdir/configure.gnu; then
1040 echo
1041 $SHELL $ac_srcdir/configure.gnu --help=recursive
1042 elif test -f $ac_srcdir/configure; then
1043 echo
1044 $SHELL $ac_srcdir/configure --help=recursive
1045 elif test -f $ac_srcdir/configure.ac ||
1046 test -f $ac_srcdir/configure.in; then
1047 echo
1048 $ac_configure --help
1049 else
1050 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1051 fi
1052 cd $ac_popdir
1053 done
1054 fi
1055
1056 test -n "$ac_init_help" && exit 0
1057 if $ac_init_version; then
1058 cat <<\_ACEOF
1059 GNU Classpath configure 0.92-pre
1060 generated by GNU Autoconf 2.59
1061
1062 Copyright (C) 2003 Free Software Foundation, Inc.
1063 This configure script is free software; the Free Software Foundation
1064 gives unlimited permission to copy, distribute and modify it.
1065 _ACEOF
1066 exit 0
1067 fi
1068 exec 5>config.log
1069 cat >&5 <<_ACEOF
1070 This file contains any messages produced by compilers while
1071 running configure, to aid debugging if configure makes a mistake.
1072
1073 It was created by GNU Classpath $as_me 0.92-pre, which was
1074 generated by GNU Autoconf 2.59. Invocation command line was
1075
1076 $ $0 $@
1077
1078 _ACEOF
1079 {
1080 cat <<_ASUNAME
1081 ## --------- ##
1082 ## Platform. ##
1083 ## --------- ##
1084
1085 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1086 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1087 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1088 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1089 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1090
1091 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1092 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1093
1094 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1095 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1096 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1097 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1098 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1099 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1100 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1101
1102 _ASUNAME
1103
1104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1105 for as_dir in $PATH
1106 do
1107 IFS=$as_save_IFS
1108 test -z "$as_dir" && as_dir=.
1109 echo "PATH: $as_dir"
1110 done
1111
1112 } >&5
1113
1114 cat >&5 <<_ACEOF
1115
1116
1117 ## ----------- ##
1118 ## Core tests. ##
1119 ## ----------- ##
1120
1121 _ACEOF
1122
1123
1124 # Keep a trace of the command line.
1125 # Strip out --no-create and --no-recursion so they do not pile up.
1126 # Strip out --silent because we don't want to record it for future runs.
1127 # Also quote any args containing shell meta-characters.
1128 # Make two passes to allow for proper duplicate-argument suppression.
1129 ac_configure_args=
1130 ac_configure_args0=
1131 ac_configure_args1=
1132 ac_sep=
1133 ac_must_keep_next=false
1134 for ac_pass in 1 2
1135 do
1136 for ac_arg
1137 do
1138 case $ac_arg in
1139 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 continue ;;
1143 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1144 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1145 esac
1146 case $ac_pass in
1147 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1148 2)
1149 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1150 if test $ac_must_keep_next = true; then
1151 ac_must_keep_next=false # Got value, back to normal.
1152 else
1153 case $ac_arg in
1154 *=* | --config-cache | -C | -disable-* | --disable-* \
1155 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1156 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1157 | -with-* | --with-* | -without-* | --without-* | --x)
1158 case "$ac_configure_args0 " in
1159 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1160 esac
1161 ;;
1162 -* ) ac_must_keep_next=true ;;
1163 esac
1164 fi
1165 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1166 # Get rid of the leading space.
1167 ac_sep=" "
1168 ;;
1169 esac
1170 done
1171 done
1172 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1173 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1174
1175 # When interrupted or exit'd, cleanup temporary files, and complete
1176 # config.log. We remove comments because anyway the quotes in there
1177 # would cause problems or look ugly.
1178 # WARNING: Be sure not to use single quotes in there, as some shells,
1179 # such as our DU 5.0 friend, will then `close' the trap.
1180 trap 'exit_status=$?
1181 # Save into config.log some information that might help in debugging.
1182 {
1183 echo
1184
1185 cat <<\_ASBOX
1186 ## ---------------- ##
1187 ## Cache variables. ##
1188 ## ---------------- ##
1189 _ASBOX
1190 echo
1191 # The following way of writing the cache mishandles newlines in values,
1192 {
1193 (set) 2>&1 |
1194 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1195 *ac_space=\ *)
1196 sed -n \
1197 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199 ;;
1200 *)
1201 sed -n \
1202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1203 ;;
1204 esac;
1205 }
1206 echo
1207
1208 cat <<\_ASBOX
1209 ## ----------------- ##
1210 ## Output variables. ##
1211 ## ----------------- ##
1212 _ASBOX
1213 echo
1214 for ac_var in $ac_subst_vars
1215 do
1216 eval ac_val=$`echo $ac_var`
1217 echo "$ac_var='"'"'$ac_val'"'"'"
1218 done | sort
1219 echo
1220
1221 if test -n "$ac_subst_files"; then
1222 cat <<\_ASBOX
1223 ## ------------- ##
1224 ## Output files. ##
1225 ## ------------- ##
1226 _ASBOX
1227 echo
1228 for ac_var in $ac_subst_files
1229 do
1230 eval ac_val=$`echo $ac_var`
1231 echo "$ac_var='"'"'$ac_val'"'"'"
1232 done | sort
1233 echo
1234 fi
1235
1236 if test -s confdefs.h; then
1237 cat <<\_ASBOX
1238 ## ----------- ##
1239 ## confdefs.h. ##
1240 ## ----------- ##
1241 _ASBOX
1242 echo
1243 sed "/^$/d" confdefs.h | sort
1244 echo
1245 fi
1246 test "$ac_signal" != 0 &&
1247 echo "$as_me: caught signal $ac_signal"
1248 echo "$as_me: exit $exit_status"
1249 } >&5
1250 rm -f core *.core &&
1251 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1252 exit $exit_status
1253 ' 0
1254 for ac_signal in 1 2 13 15; do
1255 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1256 done
1257 ac_signal=0
1258
1259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1260 rm -rf conftest* confdefs.h
1261 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1262 echo >confdefs.h
1263
1264 # Predefined preprocessor variables.
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_NAME "$PACKAGE_NAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_STRING "$PACKAGE_STRING"
1283 _ACEOF
1284
1285
1286 cat >>confdefs.h <<_ACEOF
1287 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1288 _ACEOF
1289
1290
1291 # Let the site file select an alternate cache file if it wants to.
1292 # Prefer explicitly selected file to automatically selected ones.
1293 if test -z "$CONFIG_SITE"; then
1294 if test "x$prefix" != xNONE; then
1295 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1296 else
1297 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1298 fi
1299 fi
1300 for ac_site_file in $CONFIG_SITE; do
1301 if test -r "$ac_site_file"; then
1302 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1303 echo "$as_me: loading site script $ac_site_file" >&6;}
1304 sed 's/^/| /' "$ac_site_file" >&5
1305 . "$ac_site_file"
1306 fi
1307 done
1308
1309 if test -r "$cache_file"; then
1310 # Some versions of bash will fail to source /dev/null (special
1311 # files actually), so we avoid doing that.
1312 if test -f "$cache_file"; then
1313 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1314 echo "$as_me: loading cache $cache_file" >&6;}
1315 case $cache_file in
1316 [\\/]* | ?:[\\/]* ) . $cache_file;;
1317 *) . ./$cache_file;;
1318 esac
1319 fi
1320 else
1321 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1322 echo "$as_me: creating cache $cache_file" >&6;}
1323 >$cache_file
1324 fi
1325
1326 # Check that the precious variables saved in the cache have kept the same
1327 # value.
1328 ac_cache_corrupted=false
1329 for ac_var in `(set) 2>&1 |
1330 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1331 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1332 eval ac_new_set=\$ac_env_${ac_var}_set
1333 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1334 eval ac_new_val="\$ac_env_${ac_var}_value"
1335 case $ac_old_set,$ac_new_set in
1336 set,)
1337 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1339 ac_cache_corrupted=: ;;
1340 ,set)
1341 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1342 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1343 ac_cache_corrupted=: ;;
1344 ,);;
1345 *)
1346 if test "x$ac_old_val" != "x$ac_new_val"; then
1347 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1348 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1349 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1350 echo "$as_me: former value: $ac_old_val" >&2;}
1351 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1352 echo "$as_me: current value: $ac_new_val" >&2;}
1353 ac_cache_corrupted=:
1354 fi;;
1355 esac
1356 # Pass precious variables to config.status.
1357 if test "$ac_new_set" = set; then
1358 case $ac_new_val in
1359 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1360 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1361 *) ac_arg=$ac_var=$ac_new_val ;;
1362 esac
1363 case " $ac_configure_args " in
1364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1365 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1366 esac
1367 fi
1368 done
1369 if $ac_cache_corrupted; then
1370 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1371 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1372 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1373 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1374 { (exit 1); exit 1; }; }
1375 fi
1376
1377 ac_ext=c
1378 ac_cpp='$CPP $CPPFLAGS'
1379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411 ac_aux_dir=
1412 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1413 if test -f $ac_dir/install-sh; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/install-sh -c"
1416 break
1417 elif test -f $ac_dir/install.sh; then
1418 ac_aux_dir=$ac_dir
1419 ac_install_sh="$ac_aux_dir/install.sh -c"
1420 break
1421 elif test -f $ac_dir/shtool; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/shtool install -c"
1424 break
1425 fi
1426 done
1427 if test -z "$ac_aux_dir"; then
1428 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1429 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1430 { (exit 1); exit 1; }; }
1431 fi
1432 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1433 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1434 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435
1436 # Make sure we can run config.sub.
1437 $ac_config_sub sun4 >/dev/null 2>&1 ||
1438 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1439 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1440 { (exit 1); exit 1; }; }
1441
1442 echo "$as_me:$LINENO: checking build system type" >&5
1443 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1444 if test "${ac_cv_build+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 ac_cv_build_alias=$build_alias
1448 test -z "$ac_cv_build_alias" &&
1449 ac_cv_build_alias=`$ac_config_guess`
1450 test -z "$ac_cv_build_alias" &&
1451 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1452 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1453 { (exit 1); exit 1; }; }
1454 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1455 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1457 { (exit 1); exit 1; }; }
1458
1459 fi
1460 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1461 echo "${ECHO_T}$ac_cv_build" >&6
1462 build=$ac_cv_build
1463 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466
1467
1468 echo "$as_me:$LINENO: checking host system type" >&5
1469 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1470 if test "${ac_cv_host+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 ac_cv_host_alias=$host_alias
1474 test -z "$ac_cv_host_alias" &&
1475 ac_cv_host_alias=$ac_cv_build_alias
1476 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1483 echo "${ECHO_T}$ac_cv_host" >&6
1484 host=$ac_cv_host
1485 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 echo "$as_me:$LINENO: checking target system type" >&5
1491 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1492 if test "${ac_cv_target+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 ac_cv_target_alias=$target_alias
1496 test "x$ac_cv_target_alias" = "x" &&
1497 ac_cv_target_alias=$ac_cv_host_alias
1498 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503 fi
1504 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1505 echo "${ECHO_T}$ac_cv_target" >&6
1506 target=$ac_cv_target
1507 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
1511
1512 # The aliases save the names the user supplied, while $host etc.
1513 # will get canonicalized.
1514 test -n "$target_alias" &&
1515 test "$program_prefix$program_suffix$program_transform_name" = \
1516 NONENONEs,x,x, &&
1517 program_prefix=${target_alias}-
1518
1519 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1520
1521 LIBVERSION="0:0:0"
1522
1523 case "$host_os" in
1524 darwin*)
1525 cp_module=""
1526 ;;
1527 *)
1528 cp_module="-module"
1529 ;;
1530 esac
1531
1532 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1533
1534
1535 CLASSPATH_CONVENIENCE="-no-undefined"
1536
1537
1538
1539 am__api_version="1.9"
1540 # Find a good install program. We prefer a C program (faster),
1541 # so one script is as good as another. But avoid the broken or
1542 # incompatible versions:
1543 # SysV /etc/install, /usr/sbin/install
1544 # SunOS /usr/etc/install
1545 # IRIX /sbin/install
1546 # AIX /bin/install
1547 # AmigaOS /C/install, which installs bootblocks on floppy discs
1548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1551 # OS/2's system install, which has a completely different semantic
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1554 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1555 if test -z "$INSTALL"; then
1556 if test "${ac_cv_path_install+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 # Account for people who put trailing slashes in PATH elements.
1565 case $as_dir/ in
1566 ./ | .// | /cC/* | \
1567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1568 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1569 /usr/ucb/* ) ;;
1570 *)
1571 # OSF1 and SCO ODT 3.0 have their own names for install.
1572 # Don't use installbsd from OSF since it installs stuff as root
1573 # by default.
1574 for ac_prog in ginstall scoinst install; do
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1577 if test $ac_prog = install &&
1578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579 # AIX install. It has an incompatible calling convention.
1580 :
1581 elif test $ac_prog = install &&
1582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583 # program-specific install script used by HP pwplus--don't use.
1584 :
1585 else
1586 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1587 break 3
1588 fi
1589 fi
1590 done
1591 done
1592 ;;
1593 esac
1594 done
1595
1596
1597 fi
1598 if test "${ac_cv_path_install+set}" = set; then
1599 INSTALL=$ac_cv_path_install
1600 else
1601 # As a last resort, use the slow shell script. We don't cache a
1602 # path for INSTALL within a source directory, because that will
1603 # break other packages using the cache if that directory is
1604 # removed, or if the path is relative.
1605 INSTALL=$ac_install_sh
1606 fi
1607 fi
1608 echo "$as_me:$LINENO: result: $INSTALL" >&5
1609 echo "${ECHO_T}$INSTALL" >&6
1610
1611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1612 # It thinks the first close brace ends the variable substitution.
1613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1614
1615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1616
1617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1618
1619 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1620 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1621 # Just in case
1622 sleep 1
1623 echo timestamp > conftest.file
1624 # Do `set' in a subshell so we don't clobber the current shell's
1625 # arguments. Must try -L first in case configure is actually a
1626 # symlink; some systems play weird games with the mod time of symlinks
1627 # (eg FreeBSD returns the mod time of the symlink's containing
1628 # directory).
1629 if (
1630 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1631 if test "$*" = "X"; then
1632 # -L didn't work.
1633 set X `ls -t $srcdir/configure conftest.file`
1634 fi
1635 rm -f conftest.file
1636 if test "$*" != "X $srcdir/configure conftest.file" \
1637 && test "$*" != "X conftest.file $srcdir/configure"; then
1638
1639 # If neither matched, then we have a broken ls. This can happen
1640 # if, for instance, CONFIG_SHELL is bash and it inherits a
1641 # broken ls alias from the environment. This has actually
1642 # happened. Such a system could not be considered "sane".
1643 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1644 alias in your environment" >&5
1645 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1646 alias in your environment" >&2;}
1647 { (exit 1); exit 1; }; }
1648 fi
1649
1650 test "$2" = conftest.file
1651 )
1652 then
1653 # Ok.
1654 :
1655 else
1656 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1657 Check your system clock" >&5
1658 echo "$as_me: error: newly created file is older than distributed files!
1659 Check your system clock" >&2;}
1660 { (exit 1); exit 1; }; }
1661 fi
1662 echo "$as_me:$LINENO: result: yes" >&5
1663 echo "${ECHO_T}yes" >&6
1664 test "$program_prefix" != NONE &&
1665 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1666 # Use a double $ so make ignores it.
1667 test "$program_suffix" != NONE &&
1668 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1669 # Double any \ or $. echo might interpret backslashes.
1670 # By default was `s,x,x', remove it if useless.
1671 cat <<\_ACEOF >conftest.sed
1672 s/[\\$]/&&/g;s/;s,x,x,$//
1673 _ACEOF
1674 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1675 rm conftest.sed
1676
1677 # expand $ac_aux_dir to an absolute path
1678 am_aux_dir=`cd $ac_aux_dir && pwd`
1679
1680 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1681 # Use eval to expand $SHELL
1682 if eval "$MISSING --run true"; then
1683 am_missing_run="$MISSING --run "
1684 else
1685 am_missing_run=
1686 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1687 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1688 fi
1689
1690 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1691 # We used to keeping the `.' as first argument, in order to
1692 # allow $(mkdir_p) to be used without argument. As in
1693 # $(mkdir_p) $(somedir)
1694 # where $(somedir) is conditionally defined. However this is wrong
1695 # for two reasons:
1696 # 1. if the package is installed by a user who cannot write `.'
1697 # make install will fail,
1698 # 2. the above comment should most certainly read
1699 # $(mkdir_p) $(DESTDIR)$(somedir)
1700 # so it does not work when $(somedir) is undefined and
1701 # $(DESTDIR) is not.
1702 # To support the latter case, we have to write
1703 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1704 # so the `.' trick is pointless.
1705 mkdir_p='mkdir -p --'
1706 else
1707 # On NextStep and OpenStep, the `mkdir' command does not
1708 # recognize any option. It will interpret all options as
1709 # directories to create, and then abort because `.' already
1710 # exists.
1711 for d in ./-p ./--version;
1712 do
1713 test -d $d && rmdir $d
1714 done
1715 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1716 if test -f "$ac_aux_dir/mkinstalldirs"; then
1717 mkdir_p='$(mkinstalldirs)'
1718 else
1719 mkdir_p='$(install_sh) -d'
1720 fi
1721 fi
1722
1723 for ac_prog in gawk mawk nawk awk
1724 do
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726 set dummy $ac_prog; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_AWK+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$AWK"; then
1733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_AWK="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 AWK=$ac_cv_prog_AWK
1752 if test -n "$AWK"; then
1753 echo "$as_me:$LINENO: result: $AWK" >&5
1754 echo "${ECHO_T}$AWK" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 test -n "$AWK" && break
1761 done
1762
1763 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1764 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1765 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1766 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769 cat >conftest.make <<\_ACEOF
1770 all:
1771 @echo 'ac_maketemp="$(MAKE)"'
1772 _ACEOF
1773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1774 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1775 if test -n "$ac_maketemp"; then
1776 eval ac_cv_prog_make_${ac_make}_set=yes
1777 else
1778 eval ac_cv_prog_make_${ac_make}_set=no
1779 fi
1780 rm -f conftest.make
1781 fi
1782 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1783 echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1785 SET_MAKE=
1786 else
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 SET_MAKE="MAKE=${MAKE-make}"
1790 fi
1791
1792 rm -rf .tst 2>/dev/null
1793 mkdir .tst 2>/dev/null
1794 if test -d .tst; then
1795 am__leading_dot=.
1796 else
1797 am__leading_dot=_
1798 fi
1799 rmdir .tst 2>/dev/null
1800
1801 # test to see if srcdir already configured
1802 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1803 test -f $srcdir/config.status; then
1804 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1805 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808
1809 # test whether we have cygpath
1810 if test -z "$CYGPATH_W"; then
1811 if (cygpath --version) >/dev/null 2>/dev/null; then
1812 CYGPATH_W='cygpath -w'
1813 else
1814 CYGPATH_W=echo
1815 fi
1816 fi
1817
1818
1819 # Define the identity of the package.
1820 PACKAGE='classpath'
1821 VERSION='0.92-pre'
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE "$PACKAGE"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define VERSION "$VERSION"
1831 _ACEOF
1832
1833 # Some tools Automake needs.
1834
1835 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1836
1837
1838 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1839
1840
1841 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1842
1843
1844 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1845
1846
1847 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1848
1849 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1850
1851 # Installed binaries are usually stripped using `strip' when the user
1852 # run `make install-strip'. However `strip' might not be the right
1853 # tool to use in cross-compilation environments, therefore Automake
1854 # will honor the `STRIP' environment variable to overrule this program.
1855 if test "$cross_compiling" != no; then
1856 if test -n "$ac_tool_prefix"; then
1857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1858 set dummy ${ac_tool_prefix}strip; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_STRIP+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$STRIP"; then
1865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1877 fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 STRIP=$ac_cv_prog_STRIP
1884 if test -n "$STRIP"; then
1885 echo "$as_me:$LINENO: result: $STRIP" >&5
1886 echo "${ECHO_T}$STRIP" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892 fi
1893 if test -z "$ac_cv_prog_STRIP"; then
1894 ac_ct_STRIP=$STRIP
1895 # Extract the first word of "strip", so it can be a program name with args.
1896 set dummy strip; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 if test -n "$ac_ct_STRIP"; then
1903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_STRIP="strip"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 break 2
1915 fi
1916 done
1917 done
1918
1919 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1920 fi
1921 fi
1922 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1923 if test -n "$ac_ct_STRIP"; then
1924 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1925 echo "${ECHO_T}$ac_ct_STRIP" >&6
1926 else
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 STRIP=$ac_ct_STRIP
1932 else
1933 STRIP="$ac_cv_prog_STRIP"
1934 fi
1935
1936 fi
1937 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1938
1939 # We need awk for the "check" target. The system "awk" is bad on
1940 # some platforms.
1941 # Always define AMTAR for backward compatibility.
1942
1943 AMTAR=${AMTAR-"${am_missing_run}tar"}
1944
1945
1946 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1947 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1948 # Loop over all known methods to create a tar archive until one works.
1949 _am_tools='gnutar plaintar pax cpio none'
1950 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1951 # Do not fold the above two line into one, because Tru64 sh and
1952 # Solaris sh will not grok spaces in the rhs of `-'.
1953 for _am_tool in $_am_tools
1954 do
1955 case $_am_tool in
1956 gnutar)
1957 for _am_tar in tar gnutar gtar;
1958 do
1959 { echo "$as_me:$LINENO: $_am_tar --version" >&5
1960 ($_am_tar --version) >&5 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); } && break
1964 done
1965 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1966 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1967 am__untar="$_am_tar -xf -"
1968 ;;
1969 plaintar)
1970 # Must skip GNU tar: if it does not support --format= it doesn't create
1971 # ustar tarball either.
1972 (tar --version) >/dev/null 2>&1 && continue
1973 am__tar='tar chf - "$$tardir"'
1974 am__tar_='tar chf - "$tardir"'
1975 am__untar='tar xf -'
1976 ;;
1977 pax)
1978 am__tar='pax -L -x ustar -w "$$tardir"'
1979 am__tar_='pax -L -x ustar -w "$tardir"'
1980 am__untar='pax -r'
1981 ;;
1982 cpio)
1983 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1984 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1985 am__untar='cpio -i -H ustar -d'
1986 ;;
1987 none)
1988 am__tar=false
1989 am__tar_=false
1990 am__untar=false
1991 ;;
1992 esac
1993
1994 # If the value was cached, stop now. We just wanted to have am__tar
1995 # and am__untar set.
1996 test -n "${am_cv_prog_tar_ustar}" && break
1997
1998 # tar/untar a dummy directory, and stop if the command works
1999 rm -rf conftest.dir
2000 mkdir conftest.dir
2001 echo GrepMe > conftest.dir/file
2002 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2003 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2007 rm -rf conftest.dir
2008 if test -s conftest.tar; then
2009 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2010 ($am__untar <conftest.tar) >&5 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2014 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2015 fi
2016 done
2017 rm -rf conftest.dir
2018
2019 if test "${am_cv_prog_tar_ustar+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022 am_cv_prog_tar_ustar=$_am_tool
2023 fi
2024
2025 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2026 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2027
2028
2029
2030
2031
2032 ac_config_headers="$ac_config_headers include/config.h"
2033
2034
2035
2036 # Check whether --enable-collections or --disable-collections was given.
2037 if test "${enable_collections+set}" = set; then
2038 enableval="$enable_collections"
2039 case x"${enableval}" in
2040 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2041 xno) COMPILE_COLLECTIONS=no ;;
2042 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2043 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2044 esac
2045 else
2046 COMPILE_COLLECTIONS=no
2047 fi;
2048
2049
2050 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2051 CREATE_COLLECTIONS_TRUE=
2052 CREATE_COLLECTIONS_FALSE='#'
2053 else
2054 CREATE_COLLECTIONS_TRUE='#'
2055 CREATE_COLLECTIONS_FALSE=
2056 fi
2057
2058
2059 # Check whether --enable-jni or --disable-jni was given.
2060 if test "${enable_jni+set}" = set; then
2061 enableval="$enable_jni"
2062 case "${enableval}" in
2063 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2064 no) COMPILE_JNI=no ;;
2065 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2066 esac
2067 else
2068 COMPILE_JNI=yes
2069 fi;
2070
2071
2072 if test "x${COMPILE_JNI}" = xyes; then
2073 CREATE_JNI_LIBRARIES_TRUE=
2074 CREATE_JNI_LIBRARIES_FALSE='#'
2075 else
2076 CREATE_JNI_LIBRARIES_TRUE='#'
2077 CREATE_JNI_LIBRARIES_FALSE=
2078 fi
2079
2080
2081 # Check whether --enable-core-jni or --disable-core-jni was given.
2082 if test "${enable_core_jni+set}" = set; then
2083 enableval="$enable_core_jni"
2084 case "${enableval}" in
2085 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2086 no) COMPILE_CORE_JNI=no ;;
2087 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2088 esac
2089 else
2090 COMPILE_CORE_JNI=yes
2091 fi;
2092
2093
2094 if test "x${COMPILE_CORE_JNI}" = xyes; then
2095 CREATE_CORE_JNI_LIBRARIES_TRUE=
2096 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2097 else
2098 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2099 CREATE_CORE_JNI_LIBRARIES_FALSE=
2100 fi
2101
2102
2103 # Check whether --enable-Werror or --disable-Werror was given.
2104 if test "${enable_Werror+set}" = set; then
2105 enableval="$enable_Werror"
2106 case "${enableval}" in
2107 yes) ENABLE_WERROR=yes ;;
2108 no) ENABLE_WERROR=no ;;
2109 *) ENABLE_WERROR=no ;;
2110 esac
2111 else
2112 ENABLE_WERROR=no
2113 fi;
2114
2115 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2116 if test "${enable_default_toolkit+set}" = set; then
2117 enableval="$enable_default_toolkit"
2118
2119 fi;
2120 default_toolkit=$enable_default_toolkit
2121 if test "$default_toolkit" = ""; then
2122 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2123 fi
2124
2125
2126 # Check whether --enable-xmlj or --disable-xmlj was given.
2127 if test "${enable_xmlj+set}" = set; then
2128 enableval="$enable_xmlj"
2129 case "${enableval}" in
2130 yes) COMPILE_XMLJ=yes ;;
2131 no) COMPILE_XMLJ=no ;;
2132 *) COMPILE_XMLJ=no ;;
2133 esac
2134 else
2135 COMPILE_XMLJ=no
2136 fi;
2137
2138
2139 if test "x${COMPILE_XMLJ}" = xyes; then
2140 CREATE_XMLJ_LIBRARY_TRUE=
2141 CREATE_XMLJ_LIBRARY_FALSE='#'
2142 else
2143 CREATE_XMLJ_LIBRARY_TRUE='#'
2144 CREATE_XMLJ_LIBRARY_FALSE=
2145 fi
2146
2147
2148 DEPDIR="${am__leading_dot}deps"
2149
2150 ac_config_commands="$ac_config_commands depfiles"
2151
2152
2153 am_make=${MAKE-make}
2154 cat > confinc << 'END'
2155 am__doit:
2156 @echo done
2157 .PHONY: am__doit
2158 END
2159 # If we don't find an include directive, just comment out the code.
2160 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2161 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2162 am__include="#"
2163 am__quote=
2164 _am_result=none
2165 # First try GNU make style include.
2166 echo "include confinc" > confmf
2167 # We grep out `Entering directory' and `Leaving directory'
2168 # messages which can occur if `w' ends up in MAKEFLAGS.
2169 # In particular we don't look at `^make:' because GNU make might
2170 # be invoked under some other name (usually "gmake"), in which
2171 # case it prints its new name instead of `make'.
2172 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2173 am__include=include
2174 am__quote=
2175 _am_result=GNU
2176 fi
2177 # Now try BSD make style include.
2178 if test "$am__include" = "#"; then
2179 echo '.include "confinc"' > confmf
2180 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2181 am__include=.include
2182 am__quote="\""
2183 _am_result=BSD
2184 fi
2185 fi
2186
2187
2188 echo "$as_me:$LINENO: result: $_am_result" >&5
2189 echo "${ECHO_T}$_am_result" >&6
2190 rm -f confinc confmf
2191
2192 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2193 if test "${enable_dependency_tracking+set}" = set; then
2194 enableval="$enable_dependency_tracking"
2195
2196 fi;
2197 if test "x$enable_dependency_tracking" != xno; then
2198 am_depcomp="$ac_aux_dir/depcomp"
2199 AMDEPBACKSLASH='\'
2200 fi
2201
2202
2203 if test "x$enable_dependency_tracking" != xno; then
2204 AMDEP_TRUE=
2205 AMDEP_FALSE='#'
2206 else
2207 AMDEP_TRUE='#'
2208 AMDEP_FALSE=
2209 fi
2210
2211
2212
2213 ac_ext=c
2214 ac_cpp='$CPP $CPPFLAGS'
2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2239 fi
2240 done
2241 done
2242
2243 fi
2244 fi
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2249 else
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 fi
2253
2254 fi
2255 if test -z "$ac_cv_prog_CC"; then
2256 ac_ct_CC=$CC
2257 # Extract the first word of "gcc", so it can be a program name with args.
2258 set dummy gcc; ac_word=$2
2259 echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_ac_ct_CC="gcc"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278 done
2279 done
2280
2281 fi
2282 fi
2283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 if test -n "$ac_ct_CC"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 echo "${ECHO_T}$ac_ct_CC" >&6
2287 else
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2290 fi
2291
2292 CC=$ac_ct_CC
2293 else
2294 CC="$ac_cv_prog_CC"
2295 fi
2296
2297 if test -z "$CC"; then
2298 if test -n "$ac_tool_prefix"; then
2299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2300 set dummy ${ac_tool_prefix}cc; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_CC+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316 ac_cv_prog_CC="${ac_tool_prefix}cc"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320 done
2321 done
2322
2323 fi
2324 fi
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6
2329 else
2330 echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2333
2334 fi
2335 if test -z "$ac_cv_prog_CC"; then
2336 ac_ct_CC=$CC
2337 # Extract the first word of "cc", so it can be a program name with args.
2338 set dummy cc; ac_word=$2
2339 echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354 ac_cv_prog_ac_ct_CC="cc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2357 fi
2358 done
2359 done
2360
2361 fi
2362 fi
2363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2364 if test -n "$ac_ct_CC"; then
2365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2366 echo "${ECHO_T}$ac_ct_CC" >&6
2367 else
2368 echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371
2372 CC=$ac_ct_CC
2373 else
2374 CC="$ac_cv_prog_CC"
2375 fi
2376
2377 fi
2378 if test -z "$CC"; then
2379 # Extract the first word of "cc", so it can be a program name with args.
2380 set dummy cc; ac_word=$2
2381 echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2388 else
2389 ac_prog_rejected=no
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398 ac_prog_rejected=yes
2399 continue
2400 fi
2401 ac_cv_prog_CC="cc"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405 done
2406 done
2407
2408 if test $ac_prog_rejected = yes; then
2409 # We found a bogon in the path, so make sure we never use it.
2410 set dummy $ac_cv_prog_CC
2411 shift
2412 if test $# != 0; then
2413 # We chose a different compiler from the bogus one.
2414 # However, it has the same basename, so the bogon will be chosen
2415 # first if we set CC to just the basename; use the full file name.
2416 shift
2417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2418 fi
2419 fi
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424 echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6
2426 else
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431 fi
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 for ac_prog in cl
2435 do
2436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2438 echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2456 fi
2457 done
2458 done
2459
2460 fi
2461 fi
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464 echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6
2466 else
2467 echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2469 fi
2470
2471 test -n "$CC" && break
2472 done
2473 fi
2474 if test -z "$CC"; then
2475 ac_ct_CC=$CC
2476 for ac_prog in cl
2477 do
2478 # Extract the first word of "$ac_prog", so it can be a program name with args.
2479 set dummy $ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 if test -n "$ac_ct_CC"; then
2486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_ac_ct_CC="$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2505 if test -n "$ac_ct_CC"; then
2506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2507 echo "${ECHO_T}$ac_ct_CC" >&6
2508 else
2509 echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513 test -n "$ac_ct_CC" && break
2514 done
2515
2516 CC=$ac_ct_CC
2517 fi
2518
2519 fi
2520
2521
2522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: no acceptable C compiler found in \$PATH
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }
2527
2528 # Provide some information about the compiler.
2529 echo "$as_me:$LINENO:" \
2530 "checking for C compiler version" >&5
2531 ac_compiler=`set X $ac_compile; echo $2`
2532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2533 (eval $ac_compiler --version </dev/null >&5) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2538 (eval $ac_compiler -v </dev/null >&5) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2543 (eval $ac_compiler -V </dev/null >&5) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2547
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2554
2555 int
2556 main ()
2557 {
2558
2559 ;
2560 return 0;
2561 }
2562 _ACEOF
2563 ac_clean_files_save=$ac_clean_files
2564 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2565 # Try to create an executable without -o first, disregard a.out.
2566 # It will help us diagnose broken compilers, and finding out an intuition
2567 # of exeext.
2568 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2569 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2570 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2572 (eval $ac_link_default) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 # Find the output, starting from the most likely. This scheme is
2577 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2578 # resort.
2579
2580 # Be careful to initialize this variable, since it used to be cached.
2581 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2582 ac_cv_exeext=
2583 # b.out is created by i960 compilers.
2584 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2585 do
2586 test -f "$ac_file" || continue
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2589 ;;
2590 conftest.$ac_ext )
2591 # This is the source file.
2592 ;;
2593 [ab].out )
2594 # We found the default executable, but exeext='' is most
2595 # certainly right.
2596 break;;
2597 *.* )
2598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599 # FIXME: I believe we export ac_cv_exeext for Libtool,
2600 # but it would be cool to find out if it's true. Does anybody
2601 # maintain Libtool? --akim.
2602 export ac_cv_exeext
2603 break;;
2604 * )
2605 break;;
2606 esac
2607 done
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: C compiler cannot create executables
2615 See \`config.log' for more details." >&2;}
2616 { (exit 77); exit 77; }; }
2617 fi
2618
2619 ac_exeext=$ac_cv_exeext
2620 echo "$as_me:$LINENO: result: $ac_file" >&5
2621 echo "${ECHO_T}$ac_file" >&6
2622
2623 # Check the compiler produces executables we can run. If not, either
2624 # the compiler is broken, or we cross compile.
2625 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2626 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2627 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2628 # If not cross compiling, check that we can run a simple program.
2629 if test "$cross_compiling" != yes; then
2630 if { ac_try='./$ac_file'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 cross_compiling=no
2637 else
2638 if test "$cross_compiling" = maybe; then
2639 cross_compiling=yes
2640 else
2641 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2642 If you meant to cross compile, use \`--host'.
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: cannot run C compiled programs.
2645 If you meant to cross compile, use \`--host'.
2646 See \`config.log' for more details." >&2;}
2647 { (exit 1); exit 1; }; }
2648 fi
2649 fi
2650 fi
2651 echo "$as_me:$LINENO: result: yes" >&5
2652 echo "${ECHO_T}yes" >&6
2653
2654 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2655 ac_clean_files=$ac_clean_files_save
2656 # Check the compiler produces executables we can run. If not, either
2657 # the compiler is broken, or we cross compile.
2658 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2660 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2661 echo "${ECHO_T}$cross_compiling" >&6
2662
2663 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2664 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2666 (eval $ac_link) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; then
2670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2672 # work properly (i.e., refer to `conftest.exe'), while it won't with
2673 # `rm'.
2674 for ac_file in conftest.exe conftest conftest.*; do
2675 test -f "$ac_file" || continue
2676 case $ac_file in
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679 export ac_cv_exeext
2680 break;;
2681 * ) break;;
2682 esac
2683 done
2684 else
2685 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2688 See \`config.log' for more details." >&2;}
2689 { (exit 1); exit 1; }; }
2690 fi
2691
2692 rm -f conftest$ac_cv_exeext
2693 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2694 echo "${ECHO_T}$ac_cv_exeext" >&6
2695
2696 rm -f conftest.$ac_ext
2697 EXEEXT=$ac_cv_exeext
2698 ac_exeext=$EXEEXT
2699 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2700 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2701 if test "${ac_cv_objext+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h. */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2710
2711 int
2712 main ()
2713 {
2714
2715 ;
2716 return 0;
2717 }
2718 _ACEOF
2719 rm -f conftest.o conftest.obj
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2726 case $ac_file in
2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2729 break;;
2730 esac
2731 done
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2741 fi
2742
2743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2746 echo "${ECHO_T}$ac_cv_objext" >&6
2747 OBJEXT=$ac_cv_objext
2748 ac_objext=$OBJEXT
2749 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760
2761 int
2762 main ()
2763 {
2764 #ifndef __GNUC__
2765 choke me
2766 #endif
2767
2768 ;
2769 return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_compiler_gnu=yes
2795 else
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 ac_compiler_gnu=no
2800 fi
2801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2803
2804 fi
2805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2807 GCC=`test $ac_compiler_gnu = yes && echo yes`
2808 ac_test_CFLAGS=${CFLAGS+set}
2809 ac_save_CFLAGS=$CFLAGS
2810 CFLAGS="-g"
2811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2813 if test "${ac_cv_prog_cc_g+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h. */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2822
2823 int
2824 main ()
2825 {
2826
2827 ;
2828 return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_g=yes
2854 else
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 ac_cv_prog_cc_g=no
2859 fi
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861 fi
2862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2863 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2864 if test "$ac_test_CFLAGS" = set; then
2865 CFLAGS=$ac_save_CFLAGS
2866 elif test $ac_cv_prog_cc_g = yes; then
2867 if test "$GCC" = yes; then
2868 CFLAGS="-g -O2"
2869 else
2870 CFLAGS="-g"
2871 fi
2872 else
2873 if test "$GCC" = yes; then
2874 CFLAGS="-O2"
2875 else
2876 CFLAGS=
2877 fi
2878 fi
2879 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2880 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2881 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 ac_cv_prog_cc_stdc=no
2885 ac_save_CC=$CC
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 #include <stdarg.h>
2893 #include <stdio.h>
2894 #include <sys/types.h>
2895 #include <sys/stat.h>
2896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2897 struct buf { int x; };
2898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2899 static char *e (p, i)
2900 char **p;
2901 int i;
2902 {
2903 return p[i];
2904 }
2905 static char *f (char * (*g) (char **, int), char **p, ...)
2906 {
2907 char *s;
2908 va_list v;
2909 va_start (v,p);
2910 s = g (p, va_arg (v,int));
2911 va_end (v);
2912 return s;
2913 }
2914
2915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2916 function prototypes and stuff, but not '\xHH' hex character constants.
2917 These don't provoke an error unfortunately, instead are silently treated
2918 as 'x'. The following induces an error, until -std1 is added to get
2919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2920 array size at least. It's necessary to write '\x00'==0 to get something
2921 that's true only with -std1. */
2922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2923
2924 int test (int i, double x);
2925 struct s1 {int (*f) (int a);};
2926 struct s2 {int (*f) (double a);};
2927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2928 int argc;
2929 char **argv;
2930 int
2931 main ()
2932 {
2933 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2934 ;
2935 return 0;
2936 }
2937 _ACEOF
2938 # Don't try gcc -ansi; that turns off useful extensions and
2939 # breaks some systems' header files.
2940 # AIX -qlanglvl=ansi
2941 # Ultrix and OSF/1 -std1
2942 # HP-UX 10.20 and later -Ae
2943 # HP-UX older versions -Aa -D_HPUX_SOURCE
2944 # SVR4 -Xc -D__EXTENSIONS__
2945 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2946 do
2947 CC="$ac_save_CC $ac_arg"
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -z "$ac_c_werror_flag"
2958 || test ! -s conftest.err'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_cv_prog_cc_stdc=$ac_arg
2971 break
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 fi
2977 rm -f conftest.err conftest.$ac_objext
2978 done
2979 rm -f conftest.$ac_ext conftest.$ac_objext
2980 CC=$ac_save_CC
2981
2982 fi
2983
2984 case "x$ac_cv_prog_cc_stdc" in
2985 x|xno)
2986 echo "$as_me:$LINENO: result: none needed" >&5
2987 echo "${ECHO_T}none needed" >&6 ;;
2988 *)
2989 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2991 CC="$CC $ac_cv_prog_cc_stdc" ;;
2992 esac
2993
2994 # Some people use a C++ compiler to compile C. Since we use `exit',
2995 # in C++ we need to declare it. In case someone uses the same compiler
2996 # for both compiling C and C++ we need to have the C++ compiler decide
2997 # the declaration of exit, since it's the most demanding environment.
2998 cat >conftest.$ac_ext <<_ACEOF
2999 #ifndef __cplusplus
3000 choke me
3001 #endif
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3005 (eval $ac_compile) 2>conftest.er1
3006 ac_status=$?
3007 grep -v '^ *+' conftest.er1 >conftest.err
3008 rm -f conftest.er1
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } &&
3012 { ac_try='test -z "$ac_c_werror_flag"
3013 || test ! -s conftest.err'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 (eval $ac_try) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3025 for ac_declaration in \
3026 '' \
3027 'extern "C" void std::exit (int) throw (); using std::exit;' \
3028 'extern "C" void std::exit (int); using std::exit;' \
3029 'extern "C" void exit (int) throw ();' \
3030 'extern "C" void exit (int);' \
3031 'void exit (int);'
3032 do
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039 $ac_declaration
3040 #include <stdlib.h>
3041 int
3042 main ()
3043 {
3044 exit (42);
3045 ;
3046 return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051 (eval $ac_compile) 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag"
3059 || test ! -s conftest.err'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; } &&
3065 { ac_try='test -s conftest.$ac_objext'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 :
3072 else
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 continue
3077 fi
3078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_declaration
3086 int
3087 main ()
3088 {
3089 exit (42);
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag"
3104 || test ! -s conftest.err'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112 (eval $ac_try) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 break
3117 else
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 fi
3122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3123 done
3124 rm -f conftest*
3125 if test -n "$ac_declaration"; then
3126 echo '#ifdef __cplusplus' >>confdefs.h
3127 echo $ac_declaration >>confdefs.h
3128 echo '#endif' >>confdefs.h
3129 fi
3130
3131 else
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 fi
3136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143 depcc="$CC" am_compiler_list=
3144
3145 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3146 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3151 # We make a subdir and do the tests there. Otherwise we can end up
3152 # making bogus files that we don't know about and never remove. For
3153 # instance it was reported that on HP-UX the gcc test will end up
3154 # making a dummy file named `D' -- because `-MD' means `put the output
3155 # in D'.
3156 mkdir conftest.dir
3157 # Copy depcomp to subdir because otherwise we won't find it if we're
3158 # using a relative directory.
3159 cp "$am_depcomp" conftest.dir
3160 cd conftest.dir
3161 # We will build objects and dependencies in a subdirectory because
3162 # it helps to detect inapplicable dependency modes. For instance
3163 # both Tru64's cc and ICC support -MD to output dependencies as a
3164 # side effect of compilation, but ICC will put the dependencies in
3165 # the current directory while Tru64 will put them in the object
3166 # directory.
3167 mkdir sub
3168
3169 am_cv_CC_dependencies_compiler_type=none
3170 if test "$am_compiler_list" = ""; then
3171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3172 fi
3173 for depmode in $am_compiler_list; do
3174 # Setup a source with many dependencies, because some compilers
3175 # like to wrap large dependency lists on column 80 (with \), and
3176 # we should not choose a depcomp mode which is confused by this.
3177 #
3178 # We need to recreate these files for each test, as the compiler may
3179 # overwrite some of them when testing with obscure command lines.
3180 # This happens at least with the AIX C compiler.
3181 : > sub/conftest.c
3182 for i in 1 2 3 4 5 6; do
3183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3185 # Solaris 8's {/usr,}/bin/sh.
3186 touch sub/conftst$i.h
3187 done
3188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3189
3190 case $depmode in
3191 nosideeffect)
3192 # after this tag, mechanisms are not by side-effect, so they'll
3193 # only be used when explicitly requested
3194 if test "x$enable_dependency_tracking" = xyes; then
3195 continue
3196 else
3197 break
3198 fi
3199 ;;
3200 none) break ;;
3201 esac
3202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3203 # mode. It turns out that the SunPro C++ compiler does not properly
3204 # handle `-M -o', and we need to detect this.
3205 if depmode=$depmode \
3206 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3208 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3209 >/dev/null 2>conftest.err &&
3210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3211 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3213 # icc doesn't choke on unknown options, it will just issue warnings
3214 # or remarks (even with -Werror). So we grep stderr for any message
3215 # that says an option was ignored or not supported.
3216 # When given -MP, icc 7.0 and 7.1 complain thusly:
3217 # icc: Command line warning: ignoring option '-M'; no argument required
3218 # The diagnosis changed in icc 8.0:
3219 # icc: Command line remark: option '-MP' not supported
3220 if (grep 'ignoring option' conftest.err ||
3221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3222 am_cv_CC_dependencies_compiler_type=$depmode
3223 break
3224 fi
3225 fi
3226 done
3227
3228 cd ..
3229 rm -rf conftest.dir
3230 else
3231 am_cv_CC_dependencies_compiler_type=none
3232 fi
3233
3234 fi
3235 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3236 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3237 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3238
3239
3240
3241 if
3242 test "x$enable_dependency_tracking" != xno \
3243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3244 am__fastdepCC_TRUE=
3245 am__fastdepCC_FALSE='#'
3246 else
3247 am__fastdepCC_TRUE='#'
3248 am__fastdepCC_FALSE=
3249 fi
3250
3251
3252
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3260 # On Suns, sometimes $CPP names a directory.
3261 if test -n "$CPP" && test -d "$CPP"; then
3262 CPP=
3263 fi
3264 if test -z "$CPP"; then
3265 if test "${ac_cv_prog_CPP+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 # Double quotes because CPP needs to be expanded
3269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3270 do
3271 ac_preproc_ok=false
3272 for ac_c_preproc_warn_flag in '' yes
3273 do
3274 # Use a header file that comes with gcc, so configuring glibc
3275 # with a fresh cross-compiler works.
3276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3277 # <limits.h> exists even on freestanding compilers.
3278 # On the NeXT, cc -E runs the code through the compiler's parser,
3279 # not just through cpp. "Syntax error" is here to catch this case.
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h. */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #ifdef __STDC__
3287 # include <limits.h>
3288 #else
3289 # include <assert.h>
3290 #endif
3291 Syntax error
3292 _ACEOF
3293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null; then
3301 if test -s conftest.err; then
3302 ac_cpp_err=$ac_c_preproc_warn_flag
3303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3304 else
3305 ac_cpp_err=
3306 fi
3307 else
3308 ac_cpp_err=yes
3309 fi
3310 if test -z "$ac_cpp_err"; then
3311 :
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Broken: fails on valid input.
3317 continue
3318 fi
3319 rm -f conftest.err conftest.$ac_ext
3320
3321 # OK, works on sane cases. Now check whether non-existent headers
3322 # can be detected and how.
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329 #include <ac_nonexistent.h>
3330 _ACEOF
3331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } >/dev/null; then
3339 if test -s conftest.err; then
3340 ac_cpp_err=$ac_c_preproc_warn_flag
3341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3342 else
3343 ac_cpp_err=
3344 fi
3345 else
3346 ac_cpp_err=yes
3347 fi
3348 if test -z "$ac_cpp_err"; then
3349 # Broken: success on invalid input.
3350 continue
3351 else
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355 # Passes both tests.
3356 ac_preproc_ok=:
3357 break
3358 fi
3359 rm -f conftest.err conftest.$ac_ext
3360
3361 done
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then
3365 break
3366 fi
3367
3368 done
3369 ac_cv_prog_CPP=$CPP
3370
3371 fi
3372 CPP=$ac_cv_prog_CPP
3373 else
3374 ac_cv_prog_CPP=$CPP
3375 fi
3376 echo "$as_me:$LINENO: result: $CPP" >&5
3377 echo "${ECHO_T}$CPP" >&6
3378 ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398 Syntax error
3399 _ACEOF
3400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 else
3412 ac_cpp_err=
3413 fi
3414 else
3415 ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418 :
3419 else
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Broken: fails on valid input.
3424 continue
3425 fi
3426 rm -f conftest.err conftest.$ac_ext
3427
3428 # OK, works on sane cases. Now check whether non-existent headers
3429 # can be detected and how.
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452 else
3453 ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3457 continue
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472 :
3473 else
3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3479 fi
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488 echo "$as_me:$LINENO: checking for egrep" >&5
3489 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3490 if test "${ac_cv_prog_egrep+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3494 then ac_cv_prog_egrep='grep -E'
3495 else ac_cv_prog_egrep='egrep'
3496 fi
3497 fi
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3499 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3500 EGREP=$ac_cv_prog_egrep
3501
3502
3503 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3505 if test "${ac_cv_header_stdc+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <stdlib.h>
3515 #include <stdarg.h>
3516 #include <string.h>
3517 #include <float.h>
3518
3519 int
3520 main ()
3521 {
3522
3523 ;
3524 return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_cv_header_stdc=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_cv_header_stdc=no
3555 fi
3556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557
3558 if test $ac_cv_header_stdc = yes; then
3559 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 #include <string.h>
3567
3568 _ACEOF
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 $EGREP "memchr" >/dev/null 2>&1; then
3571 :
3572 else
3573 ac_cv_header_stdc=no
3574 fi
3575 rm -f conftest*
3576
3577 fi
3578
3579 if test $ac_cv_header_stdc = yes; then
3580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <stdlib.h>
3588
3589 _ACEOF
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 $EGREP "free" >/dev/null 2>&1; then
3592 :
3593 else
3594 ac_cv_header_stdc=no
3595 fi
3596 rm -f conftest*
3597
3598 fi
3599
3600 if test $ac_cv_header_stdc = yes; then
3601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3602 if test "$cross_compiling" = yes; then
3603 :
3604 else
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <ctype.h>
3612 #if ((' ' & 0x0FF) == 0x020)
3613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3615 #else
3616 # define ISLOWER(c) \
3617 (('a' <= (c) && (c) <= 'i') \
3618 || ('j' <= (c) && (c) <= 'r') \
3619 || ('s' <= (c) && (c) <= 'z'))
3620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3621 #endif
3622
3623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3624 int
3625 main ()
3626 {
3627 int i;
3628 for (i = 0; i < 256; i++)
3629 if (XOR (islower (i), ISLOWER (i))
3630 || toupper (i) != TOUPPER (i))
3631 exit(2);
3632 exit (0);
3633 }
3634 _ACEOF
3635 rm -f conftest$ac_exeext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3637 (eval $ac_link) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; }; then
3646 :
3647 else
3648 echo "$as_me: program exited with status $ac_status" >&5
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 ( exit $ac_status )
3653 ac_cv_header_stdc=no
3654 fi
3655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3656 fi
3657 fi
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3660 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3661 if test $ac_cv_header_stdc = yes; then
3662
3663 cat >>confdefs.h <<\_ACEOF
3664 #define STDC_HEADERS 1
3665 _ACEOF
3666
3667 fi
3668
3669 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3680 inttypes.h stdint.h unistd.h
3681 do
3682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3683 echo "$as_me:$LINENO: checking for $ac_header" >&5
3684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 $ac_includes_default
3695
3696 #include <$ac_header>
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 eval "$as_ac_Header=yes"
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 eval "$as_ac_Header=no"
3726 fi
3727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728 fi
3729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3732 cat >>confdefs.h <<_ACEOF
3733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3734 _ACEOF
3735
3736 fi
3737
3738 done
3739
3740
3741 # Check whether --enable-alsa or --disable-alsa was given.
3742 if test "${enable_alsa+set}" = set; then
3743 enableval="$enable_alsa"
3744 case "${enableval}" in
3745 yes) COMPILE_ALSA=yes ;;
3746 no) COMPILE_ALSA=no ;;
3747 *) COMPILE_ALSA=yes ;;
3748 esac
3749 else
3750
3751 for ac_header in alsa/asoundlib.h
3752 do
3753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo "$as_me:$LINENO: checking for $ac_header" >&5
3756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 fi
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3762 else
3763 # Is the header compilable?
3764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 $ac_includes_default
3773 #include <$ac_header>
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_header_compiler=yes
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 ac_header_compiler=no
3803 fi
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3806 echo "${ECHO_T}$ac_header_compiler" >&6
3807
3808 # Is the header present?
3809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <$ac_header>
3818 _ACEOF
3819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } >/dev/null; then
3827 if test -s conftest.err; then
3828 ac_cpp_err=$ac_c_preproc_warn_flag
3829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830 else
3831 ac_cpp_err=
3832 fi
3833 else
3834 ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837 ac_header_preproc=yes
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842 ac_header_preproc=no
3843 fi
3844 rm -f conftest.err conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3846 echo "${ECHO_T}$ac_header_preproc" >&6
3847
3848 # So? What about this header?
3849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3850 yes:no: )
3851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3855 ac_header_preproc=yes
3856 ;;
3857 no:yes:* )
3858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3870 (
3871 cat <<\_ASBOX
3872 ## -------------------------------- ##
3873 ## Report this to classpath@gnu.org ##
3874 ## -------------------------------- ##
3875 _ASBOX
3876 ) |
3877 sed "s/^/$as_me: WARNING: /" >&2
3878 ;;
3879 esac
3880 echo "$as_me:$LINENO: checking for $ac_header" >&5
3881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 eval "$as_ac_Header=\$ac_header_preproc"
3886 fi
3887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3889
3890 fi
3891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3892 cat >>confdefs.h <<_ACEOF
3893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3894 _ACEOF
3895 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
3896 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
3897 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 ac_check_lib_save_LIBS=$LIBS
3901 LIBS="-lasound $LIBS"
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 #ifdef __cplusplus
3911 extern "C"
3912 #endif
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3915 char snd_seq_open ();
3916 int
3917 main ()
3918 {
3919 snd_seq_open ();
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926 (eval $ac_link) 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag"
3934 || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; } &&
3940 { ac_try='test -s conftest$ac_exeext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 ac_cv_lib_asound_snd_seq_open=yes
3947 else
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 ac_cv_lib_asound_snd_seq_open=no
3952 fi
3953 rm -f conftest.err conftest.$ac_objext \
3954 conftest$ac_exeext conftest.$ac_ext
3955 LIBS=$ac_check_lib_save_LIBS
3956 fi
3957 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
3958 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
3959 if test $ac_cv_lib_asound_snd_seq_open = yes; then
3960 COMPILE_ALSA=yes
3961 else
3962 COMPILE_ALSA=no
3963 fi
3964
3965 else
3966 COMPILE_ALSA=no
3967 fi
3968
3969 done
3970
3971 fi;
3972
3973
3974 if test "x${COMPILE_ALSA}" = xyes; then
3975 CREATE_ALSA_LIBRARIES_TRUE=
3976 CREATE_ALSA_LIBRARIES_FALSE='#'
3977 else
3978 CREATE_ALSA_LIBRARIES_TRUE='#'
3979 CREATE_ALSA_LIBRARIES_FALSE=
3980 fi
3981
3982
3983 # Check whether --enable-dssi or --disable-dssi was given.
3984 if test "${enable_dssi+set}" = set; then
3985 enableval="$enable_dssi"
3986 case "${enableval}" in
3987 yes) COMPILE_DSSI=yes ;;
3988 no) COMPILE_DSSI=no ;;
3989 *) COMPILE_DSSI=yes ;;
3990 esac
3991 else
3992
3993 for ac_header in dssi.h
3994 do
3995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3997 echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 fi
4002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4004 else
4005 # Is the header compilable?
4006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 $ac_includes_default
4015 #include <$ac_header>
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_header_compiler=yes
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 ac_header_compiler=no
4045 fi
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4048 echo "${ECHO_T}$ac_header_compiler" >&6
4049
4050 # Is the header present?
4051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 #include <$ac_header>
4060 _ACEOF
4061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev/null; then
4069 if test -s conftest.err; then
4070 ac_cpp_err=$ac_c_preproc_warn_flag
4071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4072 else
4073 ac_cpp_err=
4074 fi
4075 else
4076 ac_cpp_err=yes
4077 fi
4078 if test -z "$ac_cpp_err"; then
4079 ac_header_preproc=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ac_header_preproc=no
4085 fi
4086 rm -f conftest.err conftest.$ac_ext
4087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4088 echo "${ECHO_T}$ac_header_preproc" >&6
4089
4090 # So? What about this header?
4091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4092 yes:no: )
4093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4097 ac_header_preproc=yes
4098 ;;
4099 no:yes:* )
4100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4112 (
4113 cat <<\_ASBOX
4114 ## -------------------------------- ##
4115 ## Report this to classpath@gnu.org ##
4116 ## -------------------------------- ##
4117 _ASBOX
4118 ) |
4119 sed "s/^/$as_me: WARNING: /" >&2
4120 ;;
4121 esac
4122 echo "$as_me:$LINENO: checking for $ac_header" >&5
4123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 eval "$as_ac_Header=\$ac_header_preproc"
4128 fi
4129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4131
4132 fi
4133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4134 cat >>confdefs.h <<_ACEOF
4135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136 _ACEOF
4137 COMPILE_DSSI=yes
4138 else
4139 COMPILE_DSSI=no
4140 fi
4141
4142 done
4143
4144 fi;
4145
4146
4147 if test "x${COMPILE_DSSI}" = xyes; then
4148 CREATE_DSSI_LIBRARIES_TRUE=
4149 CREATE_DSSI_LIBRARIES_FALSE='#'
4150 else
4151 CREATE_DSSI_LIBRARIES_TRUE='#'
4152 CREATE_DSSI_LIBRARIES_FALSE=
4153 fi
4154
4155
4156 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4157 if test "${enable_gtk_peer+set}" = set; then
4158 enableval="$enable_gtk_peer"
4159 case "${enableval}" in
4160 yes) COMPILE_GTK_PEER=yes ;;
4161 no) COMPILE_GTK_PEER=no ;;
4162 *) COMPILE_GTK_PEER=yes ;;
4163 esac
4164 else
4165 COMPILE_GTK_PEER=yes
4166 fi;
4167
4168
4169 if test "x${COMPILE_GTK_PEER}" = xyes; then
4170 CREATE_GTK_PEER_LIBRARIES_TRUE=
4171 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4172 else
4173 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4174 CREATE_GTK_PEER_LIBRARIES_FALSE=
4175 fi
4176
4177
4178 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4179 if test "${enable_gtk_peers+set}" = set; then
4180 enableval="$enable_gtk_peers"
4181 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4182 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4183 { (exit 1); exit 1; }; }
4184 fi;
4185
4186 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4187 if test "${enable_qt_peer+set}" = set; then
4188 enableval="$enable_qt_peer"
4189 case "${enableval}" in
4190 yes) COMPILE_QT_PEER=yes ;;
4191 no) COMPILE_QT_PEER=no ;;
4192 *) COMPILE_QT_PEER=yes ;;
4193 esac
4194 else
4195 COMPILE_QT_PEER=no
4196 fi;
4197
4198
4199 if test "x${COMPILE_QT_PEER}" = xyes; then
4200 CREATE_QT_PEER_LIBRARIES_TRUE=
4201 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4202 else
4203 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4204 CREATE_QT_PEER_LIBRARIES_FALSE=
4205 fi
4206
4207
4208 # Check whether --enable-plugin or --disable-plugin was given.
4209 if test "${enable_plugin+set}" = set; then
4210 enableval="$enable_plugin"
4211 case "${enableval}" in
4212 yes) COMPILE_PLUGIN=yes ;;
4213 no) COMPILE_PLUGIN=no ;;
4214 *) COMPILE_PLUGIN=yes ;;
4215 esac
4216 else
4217 COMPILE_PLUGIN=yes
4218 fi;
4219
4220
4221 if test "x${COMPILE_PLUGIN}" = xyes; then
4222 CREATE_PLUGIN_TRUE=
4223 CREATE_PLUGIN_FALSE='#'
4224 else
4225 CREATE_PLUGIN_TRUE='#'
4226 CREATE_PLUGIN_FALSE=
4227 fi
4228
4229
4230
4231 # Check whether --with-native-libdir or --without-native-libdir was given.
4232 if test "${with_native_libdir+set}" = set; then
4233 withval="$with_native_libdir"
4234
4235 nativeexeclibdir=${withval}
4236
4237 else
4238
4239 nativeexeclibdir='${libdir}/${PACKAGE}'
4240
4241 fi;
4242
4243
4244
4245
4246 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4247 if test "${with_glibj_dir+set}" = set; then
4248 withval="$with_glibj_dir"
4249
4250 glibjdir=${withval}
4251
4252 else
4253
4254 glibjdir='${datadir}/${PACKAGE}'
4255
4256 fi;
4257
4258
4259
4260
4261 # Check whether --with-vm or --without-vm was given.
4262 if test "${with_vm+set}" = set; then
4263 withval="$with_vm"
4264
4265 VM_BINARY=${withval}
4266
4267 else
4268
4269 VM_BINARY='${prefix}/bin/jamvm'
4270
4271 fi;
4272
4273
4274
4275
4276 if test "x`basename $VM_BINARY`" = xcacao; then
4277 FOUND_CACAO_TRUE=
4278 FOUND_CACAO_FALSE='#'
4279 else
4280 FOUND_CACAO_TRUE='#'
4281 FOUND_CACAO_FALSE=
4282 fi
4283
4284
4285 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4286 if test "${enable_regen_headers+set}" = set; then
4287 enableval="$enable_regen_headers"
4288 case "${enableval}" in
4289 yes) REGENERATE_JNI_HEADERS=yes ;;
4290 no) REGENERATE_JNI_HEADERS=no ;;
4291 *) REGENERATE_JNI_HEADERS=no ;;
4292 esac
4293 else
4294 REGENERATE_JNI_HEADERS=no
4295 fi;
4296
4297
4298 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4299 CREATE_JNI_HEADERS_TRUE=
4300 CREATE_JNI_HEADERS_FALSE='#'
4301 else
4302 CREATE_JNI_HEADERS_TRUE='#'
4303 CREATE_JNI_HEADERS_FALSE=
4304 fi
4305
4306
4307 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4308 if test "${enable_tool_wrappers+set}" = set; then
4309 enableval="$enable_tool_wrappers"
4310 case x"${enableval}" in
4311 xyes) COMPILE_WRAPPERS=yes ;;
4312 xno) COMPILE_WRAPPERS=no ;;
4313 x) COMPILE_WRAPPERS=yes ;;
4314 *) COMPILE_WRAPPERS=yes ;;
4315 esac
4316 else
4317 COMPILE_WRAPPERS=no
4318 fi;
4319
4320
4321 if test "x${COMPILE_WRAPPERS}" = xyes; then
4322 CREATE_WRAPPERS_TRUE=
4323 CREATE_WRAPPERS_FALSE='#'
4324 else
4325 CREATE_WRAPPERS_TRUE='#'
4326 CREATE_WRAPPERS_FALSE=
4327 fi
4328
4329
4330 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4331 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4332 LN_S=$as_ln_s
4333 if test "$LN_S" = "ln -s"; then
4334 echo "$as_me:$LINENO: result: yes" >&5
4335 echo "${ECHO_T}yes" >&6
4336 else
4337 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4338 echo "${ECHO_T}no, using $LN_S" >&6
4339 fi
4340
4341 # Find a good install program. We prefer a C program (faster),
4342 # so one script is as good as another. But avoid the broken or
4343 # incompatible versions:
4344 # SysV /etc/install, /usr/sbin/install
4345 # SunOS /usr/etc/install
4346 # IRIX /sbin/install
4347 # AIX /bin/install
4348 # AmigaOS /C/install, which installs bootblocks on floppy discs
4349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4352 # OS/2's system install, which has a completely different semantic
4353 # ./install, which can be erroneously created by make from ./install.sh.
4354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4356 if test -z "$INSTALL"; then
4357 if test "${ac_cv_path_install+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 # Account for people who put trailing slashes in PATH elements.
4366 case $as_dir/ in
4367 ./ | .// | /cC/* | \
4368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4370 /usr/ucb/* ) ;;
4371 *)
4372 # OSF1 and SCO ODT 3.0 have their own names for install.
4373 # Don't use installbsd from OSF since it installs stuff as root
4374 # by default.
4375 for ac_prog in ginstall scoinst install; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4378 if test $ac_prog = install &&
4379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4380 # AIX install. It has an incompatible calling convention.
4381 :
4382 elif test $ac_prog = install &&
4383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4384 # program-specific install script used by HP pwplus--don't use.
4385 :
4386 else
4387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4388 break 3
4389 fi
4390 fi
4391 done
4392 done
4393 ;;
4394 esac
4395 done
4396
4397
4398 fi
4399 if test "${ac_cv_path_install+set}" = set; then
4400 INSTALL=$ac_cv_path_install
4401 else
4402 # As a last resort, use the slow shell script. We don't cache a
4403 # path for INSTALL within a source directory, because that will
4404 # break other packages using the cache if that directory is
4405 # removed, or if the path is relative.
4406 INSTALL=$ac_install_sh
4407 fi
4408 fi
4409 echo "$as_me:$LINENO: result: $INSTALL" >&5
4410 echo "${ECHO_T}$INSTALL" >&6
4411
4412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4413 # It thinks the first close brace ends the variable substitution.
4414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4415
4416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4417
4418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4419
4420
4421 ac_ext=cc
4422 ac_cpp='$CXXCPP $CPPFLAGS'
4423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4426 if test -n "$ac_tool_prefix"; then
4427 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4428 do
4429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_prog_CXX+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 if test -n "$CXX"; then
4437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450 done
4451 done
4452
4453 fi
4454 fi
4455 CXX=$ac_cv_prog_CXX
4456 if test -n "$CXX"; then
4457 echo "$as_me:$LINENO: result: $CXX" >&5
4458 echo "${ECHO_T}$CXX" >&6
4459 else
4460 echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4462 fi
4463
4464 test -n "$CXX" && break
4465 done
4466 fi
4467 if test -z "$CXX"; then
4468 ac_ct_CXX=$CXX
4469 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4470 do
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 if test -n "$ac_ct_CXX"; then
4479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 ac_cv_prog_ac_ct_CXX="$ac_prog"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492 done
4493 done
4494
4495 fi
4496 fi
4497 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4498 if test -n "$ac_ct_CXX"; then
4499 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4500 echo "${ECHO_T}$ac_ct_CXX" >&6
4501 else
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4504 fi
4505
4506 test -n "$ac_ct_CXX" && break
4507 done
4508 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4509
4510 CXX=$ac_ct_CXX
4511 fi
4512
4513
4514 # Provide some information about the compiler.
4515 echo "$as_me:$LINENO:" \
4516 "checking for C++ compiler version" >&5
4517 ac_compiler=`set X $ac_compile; echo $2`
4518 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4519 (eval $ac_compiler --version </dev/null >&5) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }
4523 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4524 (eval $ac_compiler -v </dev/null >&5) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }
4528 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4529 (eval $ac_compiler -V </dev/null >&5) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }
4533
4534 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4535 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4536 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549 #ifndef __GNUC__
4550 choke me
4551 #endif
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_cxx_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_compiler_gnu=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 ac_compiler_gnu=no
4585 fi
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4588
4589 fi
4590 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4591 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4592 GXX=`test $ac_compiler_gnu = yes && echo yes`
4593 ac_test_CXXFLAGS=${CXXFLAGS+set}
4594 ac_save_CXXFLAGS=$CXXFLAGS
4595 CXXFLAGS="-g"
4596 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4597 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4598 if test "${ac_cv_prog_cxx_g+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607
4608 int
4609 main ()
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_cxx_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_prog_cxx_g=yes
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 ac_cv_prog_cxx_g=no
4644 fi
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 fi
4647 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4649 if test "$ac_test_CXXFLAGS" = set; then
4650 CXXFLAGS=$ac_save_CXXFLAGS
4651 elif test $ac_cv_prog_cxx_g = yes; then
4652 if test "$GXX" = yes; then
4653 CXXFLAGS="-g -O2"
4654 else
4655 CXXFLAGS="-g"
4656 fi
4657 else
4658 if test "$GXX" = yes; then
4659 CXXFLAGS="-O2"
4660 else
4661 CXXFLAGS=
4662 fi
4663 fi
4664 for ac_declaration in \
4665 '' \
4666 'extern "C" void std::exit (int) throw (); using std::exit;' \
4667 'extern "C" void std::exit (int); using std::exit;' \
4668 'extern "C" void exit (int) throw ();' \
4669 'extern "C" void exit (int);' \
4670 'void exit (int);'
4671 do
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 $ac_declaration
4679 #include <stdlib.h>
4680 int
4681 main ()
4682 {
4683 exit (42);
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try='test -z "$ac_cxx_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 :
4711 else
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 continue
4716 fi
4717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718 cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h. */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_declaration
4725 int
4726 main ()
4727 {
4728 exit (42);
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 break
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762 done
4763 rm -f conftest*
4764 if test -n "$ac_declaration"; then
4765 echo '#ifdef __cplusplus' >>confdefs.h
4766 echo $ac_declaration >>confdefs.h
4767 echo '#endif' >>confdefs.h
4768 fi
4769
4770 ac_ext=c
4771 ac_cpp='$CPP $CPPFLAGS'
4772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775
4776 depcc="$CXX" am_compiler_list=
4777
4778 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4779 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4780 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4784 # We make a subdir and do the tests there. Otherwise we can end up
4785 # making bogus files that we don't know about and never remove. For
4786 # instance it was reported that on HP-UX the gcc test will end up
4787 # making a dummy file named `D' -- because `-MD' means `put the output
4788 # in D'.
4789 mkdir conftest.dir
4790 # Copy depcomp to subdir because otherwise we won't find it if we're
4791 # using a relative directory.
4792 cp "$am_depcomp" conftest.dir
4793 cd conftest.dir
4794 # We will build objects and dependencies in a subdirectory because
4795 # it helps to detect inapplicable dependency modes. For instance
4796 # both Tru64's cc and ICC support -MD to output dependencies as a
4797 # side effect of compilation, but ICC will put the dependencies in
4798 # the current directory while Tru64 will put them in the object
4799 # directory.
4800 mkdir sub
4801
4802 am_cv_CXX_dependencies_compiler_type=none
4803 if test "$am_compiler_list" = ""; then
4804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4805 fi
4806 for depmode in $am_compiler_list; do
4807 # Setup a source with many dependencies, because some compilers
4808 # like to wrap large dependency lists on column 80 (with \), and
4809 # we should not choose a depcomp mode which is confused by this.
4810 #
4811 # We need to recreate these files for each test, as the compiler may
4812 # overwrite some of them when testing with obscure command lines.
4813 # This happens at least with the AIX C compiler.
4814 : > sub/conftest.c
4815 for i in 1 2 3 4 5 6; do
4816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4818 # Solaris 8's {/usr,}/bin/sh.
4819 touch sub/conftst$i.h
4820 done
4821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4822
4823 case $depmode in
4824 nosideeffect)
4825 # after this tag, mechanisms are not by side-effect, so they'll
4826 # only be used when explicitly requested
4827 if test "x$enable_dependency_tracking" = xyes; then
4828 continue
4829 else
4830 break
4831 fi
4832 ;;
4833 none) break ;;
4834 esac
4835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4836 # mode. It turns out that the SunPro C++ compiler does not properly
4837 # handle `-M -o', and we need to detect this.
4838 if depmode=$depmode \
4839 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4840 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4841 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4842 >/dev/null 2>conftest.err &&
4843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4846 # icc doesn't choke on unknown options, it will just issue warnings
4847 # or remarks (even with -Werror). So we grep stderr for any message
4848 # that says an option was ignored or not supported.
4849 # When given -MP, icc 7.0 and 7.1 complain thusly:
4850 # icc: Command line warning: ignoring option '-M'; no argument required
4851 # The diagnosis changed in icc 8.0:
4852 # icc: Command line remark: option '-MP' not supported
4853 if (grep 'ignoring option' conftest.err ||
4854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4855 am_cv_CXX_dependencies_compiler_type=$depmode
4856 break
4857 fi
4858 fi
4859 done
4860
4861 cd ..
4862 rm -rf conftest.dir
4863 else
4864 am_cv_CXX_dependencies_compiler_type=none
4865 fi
4866
4867 fi
4868 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4869 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4870 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4871
4872
4873
4874 if
4875 test "x$enable_dependency_tracking" != xno \
4876 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4877 am__fastdepCXX_TRUE=
4878 am__fastdepCXX_FALSE='#'
4879 else
4880 am__fastdepCXX_TRUE='#'
4881 am__fastdepCXX_FALSE=
4882 fi
4883
4884
4885 # Check whether --enable-static or --disable-static was given.
4886 if test "${enable_static+set}" = set; then
4887 enableval="$enable_static"
4888 p=${PACKAGE-default}
4889 case $enableval in
4890 yes) enable_static=yes ;;
4891 no) enable_static=no ;;
4892 *)
4893 enable_static=no
4894 # Look at the argument we got. We use all the common list separators.
4895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4896 for pkg in $enableval; do
4897 if test "X$pkg" = "X$p"; then
4898 enable_static=yes
4899 fi
4900 done
4901 IFS="$ac_save_ifs"
4902 ;;
4903 esac
4904 else
4905 enable_static=no
4906 fi;
4907 # Check whether --enable-shared or --disable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909 enableval="$enable_shared"
4910 p=${PACKAGE-default}
4911 case $enableval in
4912 yes) enable_shared=yes ;;
4913 no) enable_shared=no ;;
4914 *)
4915 enable_shared=no
4916 # Look at the argument we got. We use all the common list separators.
4917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4918 for pkg in $enableval; do
4919 if test "X$pkg" = "X$p"; then
4920 enable_shared=yes
4921 fi
4922 done
4923 IFS="$ac_save_ifs"
4924 ;;
4925 esac
4926 else
4927 enable_shared=yes
4928 fi;
4929 # Check whether --enable-fast-install or --disable-fast-install was given.
4930 if test "${enable_fast_install+set}" = set; then
4931 enableval="$enable_fast_install"
4932 p=${PACKAGE-default}
4933 case $enableval in
4934 yes) enable_fast_install=yes ;;
4935 no) enable_fast_install=no ;;
4936 *)
4937 enable_fast_install=no
4938 # Look at the argument we got. We use all the common list separators.
4939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4940 for pkg in $enableval; do
4941 if test "X$pkg" = "X$p"; then
4942 enable_fast_install=yes
4943 fi
4944 done
4945 IFS="$ac_save_ifs"
4946 ;;
4947 esac
4948 else
4949 enable_fast_install=yes
4950 fi;
4951
4952 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4953 if test "${with_gnu_ld+set}" = set; then
4954 withval="$with_gnu_ld"
4955 test "$withval" = no || with_gnu_ld=yes
4956 else
4957 with_gnu_ld=no
4958 fi;
4959 ac_prog=ld
4960 if test "$GCC" = yes; then
4961 # Check if gcc -print-prog-name=ld gives a path.
4962 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4963 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4964 case $host in
4965 *-*-mingw*)
4966 # gcc leaves a trailing carriage return which upsets mingw
4967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4968 *)
4969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4970 esac
4971 case $ac_prog in
4972 # Accept absolute paths.
4973 [\\/]* | [A-Za-z]:[\\/]*)
4974 re_direlt='/[^/][^/]*/\.\./'
4975 # Canonicalize the path of ld
4976 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4977 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4978 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4979 done
4980 test -z "$LD" && LD="$ac_prog"
4981 ;;
4982 "")
4983 # If it fails, then pretend we aren't using GCC.
4984 ac_prog=ld
4985 ;;
4986 *)
4987 # If it is relative, then search for the first ld in PATH.
4988 with_gnu_ld=unknown
4989 ;;
4990 esac
4991 elif test "$with_gnu_ld" = yes; then
4992 echo "$as_me:$LINENO: checking for GNU ld" >&5
4993 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4994 else
4995 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4996 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4997 fi
4998 if test "${lt_cv_path_LD+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001 if test -z "$LD"; then
5002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5003 for ac_dir in $PATH; do
5004 test -z "$ac_dir" && ac_dir=.
5005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5006 lt_cv_path_LD="$ac_dir/$ac_prog"
5007 # Check to see if the program is GNU ld. I'd rather use --version,
5008 # but apparently some GNU ld's only accept -v.
5009 # Break only if it was the GNU/non-GNU ld that we prefer.
5010 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5011 test "$with_gnu_ld" != no && break
5012 else
5013 test "$with_gnu_ld" != yes && break
5014 fi
5015 fi
5016 done
5017 IFS="$ac_save_ifs"
5018 else
5019 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5020 fi
5021 fi
5022
5023 LD="$lt_cv_path_LD"
5024 if test -n "$LD"; then
5025 echo "$as_me:$LINENO: result: $LD" >&5
5026 echo "${ECHO_T}$LD" >&6
5027 else
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5030 fi
5031 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5032 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5033 { (exit 1); exit 1; }; }
5034 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5035 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5036 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5040 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5041 lt_cv_prog_gnu_ld=yes
5042 else
5043 lt_cv_prog_gnu_ld=no
5044 fi
5045 fi
5046 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5047 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5048 with_gnu_ld=$lt_cv_prog_gnu_ld
5049
5050
5051 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5052 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5053 if test "${lt_cv_ld_reload_flag+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 lt_cv_ld_reload_flag='-r'
5057 fi
5058 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5059 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5060 reload_flag=$lt_cv_ld_reload_flag
5061 test -n "$reload_flag" && reload_flag=" $reload_flag"
5062
5063 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5064 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5065 if test "${lt_cv_path_NM+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 if test -n "$NM"; then
5069 # Let the user override the test.
5070 lt_cv_path_NM="$NM"
5071 else
5072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5073 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5074 test -z "$ac_dir" && ac_dir=.
5075 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5076 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5077 # Check to see if the nm accepts a BSD-compat flag.
5078 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5079 # nm: unknown option "B" ignored
5080 # Tru64's nm complains that /dev/null is an invalid object file
5081 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5082 lt_cv_path_NM="$tmp_nm -B"
5083 break
5084 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5085 lt_cv_path_NM="$tmp_nm -p"
5086 break
5087 else
5088 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5089 continue # so that we can try to find one that supports BSD flags
5090 fi
5091 fi
5092 done
5093 IFS="$ac_save_ifs"
5094 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5095 fi
5096 fi
5097
5098 NM="$lt_cv_path_NM"
5099 echo "$as_me:$LINENO: result: $NM" >&5
5100 echo "${ECHO_T}$NM" >&6
5101
5102 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5103 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5104 if test "${lt_cv_deplibs_check_method+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 lt_cv_file_magic_cmd='$MAGIC_CMD'
5108 lt_cv_file_magic_test_file=
5109 lt_cv_deplibs_check_method='unknown'
5110 # Need to set the preceding variable on all platforms that support
5111 # interlibrary dependencies.
5112 # 'none' -- dependencies not supported.
5113 # `unknown' -- same as none, but documents that we really don't know.
5114 # 'pass_all' -- all dependencies passed with no checks.
5115 # 'test_compile' -- check by making test program.
5116 # 'file_magic [regex]' -- check by looking for files in library path
5117 # which responds to the $file_magic_cmd with a given egrep regex.
5118 # If you have `file' or equivalent on your system and you're not sure
5119 # whether `pass_all' will *always* work, you probably want this one.
5120
5121 case $host_os in
5122 aix*)
5123 lt_cv_deplibs_check_method=pass_all
5124 ;;
5125
5126 beos*)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
5129
5130 bsdi4*)
5131 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5132 lt_cv_file_magic_cmd='/usr/bin/file -L'
5133 lt_cv_file_magic_test_file=/shlib/libc.so
5134 ;;
5135
5136 cygwin* | mingw* |pw32*)
5137 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5138 lt_cv_file_magic_cmd='$OBJDUMP -f'
5139 ;;
5140
5141 darwin* | rhapsody*)
5142 # this will be overwritten by pass_all, but leave it in just in case
5143 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5144 lt_cv_file_magic_cmd='/usr/bin/file -L'
5145 case "$host_os" in
5146 rhapsody* | darwin1.012)
5147 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5148 ;;
5149 *) # Darwin 1.3 on
5150 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5151 ;;
5152 esac
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156 freebsd* | kfreebsd*-gnu)
5157 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5158 case $host_cpu in
5159 i*86 )
5160 # Not sure whether the presence of OpenBSD here was a mistake.
5161 # Let's accept both of them until this is cleared up.
5162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5163 lt_cv_file_magic_cmd=/usr/bin/file
5164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5165 ;;
5166 esac
5167 else
5168 lt_cv_deplibs_check_method=pass_all
5169 fi
5170 ;;
5171
5172 gnu*)
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175
5176 hpux10.20*|hpux11*)
5177 case $host_cpu in
5178 hppa*)
5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5180 lt_cv_file_magic_cmd=/usr/bin/file
5181 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5182 ;;
5183 ia64*)
5184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5185 lt_cv_file_magic_cmd=/usr/bin/file
5186 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5187 ;;
5188 esac
5189 ;;
5190
5191 irix5* | irix6*)
5192 case $host_os in
5193 irix5*)
5194 # this will be overridden with pass_all, but let us keep it just in case
5195 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5196 ;;
5197 *)
5198 case $LD in
5199 *-32|*"-32 ") libmagic=32-bit;;
5200 *-n32|*"-n32 ") libmagic=N32;;
5201 *-64|*"-64 ") libmagic=64-bit;;
5202 *) libmagic=never-match;;
5203 esac
5204 # this will be overridden with pass_all, but let us keep it just in case
5205 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5206 ;;
5207 esac
5208 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 # This must be Linux ELF.
5213 linux-gnu*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
5216
5217 netbsd* | knetbsd*-gnu)
5218 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5219 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5220 else
5221 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5222 fi
5223 ;;
5224
5225 newsos6)
5226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5227 lt_cv_file_magic_cmd=/usr/bin/file
5228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5229 ;;
5230
5231 osf3* | osf4* | osf5*)
5232 # this will be overridden with pass_all, but let us keep it just in case
5233 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5234 lt_cv_file_magic_test_file=/shlib/libc.so
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237
5238 sco3.2v5*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 solaris*)
5243 lt_cv_deplibs_check_method=pass_all
5244 lt_cv_file_magic_test_file=/lib/libc.so
5245 ;;
5246
5247 sysv5uw[78]* | sysv4*uw2*)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250
5251 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5252 case $host_vendor in
5253 ncr)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256 motorola)
5257 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]'
5258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5259 ;;
5260 esac
5261 ;;
5262 esac
5263
5264 fi
5265 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5266 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5267 file_magic_cmd=$lt_cv_file_magic_cmd
5268 deplibs_check_method=$lt_cv_deplibs_check_method
5269
5270
5271
5272
5273 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5274
5275 # find the maximum length of command line arguments
5276 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5277 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5278 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 i=0
5282 teststring="ABCD"
5283
5284 case $build_os in
5285 msdosdjgpp*)
5286 # On DJGPP, this test can blow up pretty badly due to problems in libc
5287 # (any single argument exceeding 2000 bytes causes a buffer overrun
5288 # during glob expansion). Even if it were fixed, the result of this
5289 # check would be larger than it should be.
5290 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5291 ;;
5292
5293 cygwin* | mingw*)
5294 # On Win9x/ME, this test blows up -- it succeeds, but takes
5295 # about 5 minutes as the teststring grows exponentially.
5296 # Worse, since 9x/ME are not pre-emptively multitasking,
5297 # you end up with a "frozen" computer, even though with patience
5298 # the test eventually succeeds (with a max line length of 256k).
5299 # Instead, let's just punt: use the minimum linelength reported by
5300 # all of the supported platforms: 8192 (on NT/2K/XP).
5301 lt_cv_sys_max_cmd_len=8192;
5302 ;;
5303
5304 amigaos*)
5305 # On AmigaOS with pdksh, this test takes hours, literally.
5306 # So we just punt and use a minimum line length of 8192.
5307 lt_cv_sys_max_cmd_len=8192;
5308 ;;
5309
5310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5311 # This has been around since 386BSD, at least. Likely further.
5312 if test -x /sbin/sysctl; then
5313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5314 elif test -x /usr/sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5316 else
5317 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5318 fi
5319 # And add a safety zone
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5322 ;;
5323 esac
5324
5325 fi
5326
5327 if test -n "$lt_cv_sys_max_cmd_len" ; then
5328 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5329 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5330 else
5331 echo "$as_me:$LINENO: result: none" >&5
5332 echo "${ECHO_T}none" >&6
5333 fi
5334
5335
5336 # Only perform the check for file, if the check method requires it
5337 case $deplibs_check_method in
5338 file_magic*)
5339 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5340 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5341 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5342 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 case $MAGIC_CMD in
5346 /*)
5347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5348 ;;
5349 ?:/*)
5350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5351 ;;
5352 *)
5353 ac_save_MAGIC_CMD="$MAGIC_CMD"
5354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5355 ac_dummy="/usr/bin:$PATH"
5356 for ac_dir in $ac_dummy; do
5357 test -z "$ac_dir" && ac_dir=.
5358 if test -f $ac_dir/${ac_tool_prefix}file; then
5359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5360 if test -n "$file_magic_test_file"; then
5361 case $deplibs_check_method in
5362 "file_magic "*)
5363 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5366 egrep "$file_magic_regex" > /dev/null; then
5367 :
5368 else
5369 cat <<EOF 1>&2
5370
5371 *** Warning: the command libtool uses to detect shared libraries,
5372 *** $file_magic_cmd, produces output that libtool cannot recognize.
5373 *** The result is that libtool may fail to recognize shared libraries
5374 *** as such. This will affect the creation of libtool libraries that
5375 *** depend on shared libraries, but programs linked with such libtool
5376 *** libraries will work regardless of this problem. Nevertheless, you
5377 *** may want to report the problem to your system manager and/or to
5378 *** bug-libtool@gnu.org
5379
5380 EOF
5381 fi ;;
5382 esac
5383 fi
5384 break
5385 fi
5386 done
5387 IFS="$ac_save_ifs"
5388 MAGIC_CMD="$ac_save_MAGIC_CMD"
5389 ;;
5390 esac
5391 fi
5392
5393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5394 if test -n "$MAGIC_CMD"; then
5395 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5396 echo "${ECHO_T}$MAGIC_CMD" >&6
5397 else
5398 echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401
5402 if test -z "$lt_cv_path_MAGIC_CMD"; then
5403 if test -n "$ac_tool_prefix"; then
5404 echo "$as_me:$LINENO: checking for file" >&5
5405 echo $ECHO_N "checking for file... $ECHO_C" >&6
5406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 case $MAGIC_CMD in
5410 /*)
5411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5412 ;;
5413 ?:/*)
5414 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5415 ;;
5416 *)
5417 ac_save_MAGIC_CMD="$MAGIC_CMD"
5418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5419 ac_dummy="/usr/bin:$PATH"
5420 for ac_dir in $ac_dummy; do
5421 test -z "$ac_dir" && ac_dir=.
5422 if test -f $ac_dir/file; then
5423 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5424 if test -n "$file_magic_test_file"; then
5425 case $deplibs_check_method in
5426 "file_magic "*)
5427 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5430 egrep "$file_magic_regex" > /dev/null; then
5431 :
5432 else
5433 cat <<EOF 1>&2
5434
5435 *** Warning: the command libtool uses to detect shared libraries,
5436 *** $file_magic_cmd, produces output that libtool cannot recognize.
5437 *** The result is that libtool may fail to recognize shared libraries
5438 *** as such. This will affect the creation of libtool libraries that
5439 *** depend on shared libraries, but programs linked with such libtool
5440 *** libraries will work regardless of this problem. Nevertheless, you
5441 *** may want to report the problem to your system manager and/or to
5442 *** bug-libtool@gnu.org
5443
5444 EOF
5445 fi ;;
5446 esac
5447 fi
5448 break
5449 fi
5450 done
5451 IFS="$ac_save_ifs"
5452 MAGIC_CMD="$ac_save_MAGIC_CMD"
5453 ;;
5454 esac
5455 fi
5456
5457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5458 if test -n "$MAGIC_CMD"; then
5459 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5460 echo "${ECHO_T}$MAGIC_CMD" >&6
5461 else
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5464 fi
5465
5466 else
5467 MAGIC_CMD=:
5468 fi
5469 fi
5470
5471 fi
5472 ;;
5473 esac
5474
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5478 echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480 if test "${ac_cv_prog_RANLIB+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 if test -n "$RANLIB"; then
5484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497 done
5498 done
5499
5500 fi
5501 fi
5502 RANLIB=$ac_cv_prog_RANLIB
5503 if test -n "$RANLIB"; then
5504 echo "$as_me:$LINENO: result: $RANLIB" >&5
5505 echo "${ECHO_T}$RANLIB" >&6
5506 else
5507 echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6
5509 fi
5510
5511 fi
5512 if test -z "$ac_cv_prog_RANLIB"; then
5513 ac_ct_RANLIB=$RANLIB
5514 # Extract the first word of "ranlib", so it can be a program name with args.
5515 set dummy ranlib; ac_word=$2
5516 echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 if test -n "$ac_ct_RANLIB"; then
5522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_ac_ct_RANLIB="ranlib"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537
5538 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5539 fi
5540 fi
5541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5542 if test -n "$ac_ct_RANLIB"; then
5543 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5544 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5545 else
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548 fi
5549
5550 RANLIB=$ac_ct_RANLIB
5551 else
5552 RANLIB="$ac_cv_prog_RANLIB"
5553 fi
5554
5555 if test -n "$ac_tool_prefix"; then
5556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5557 set dummy ${ac_tool_prefix}strip; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_prog_STRIP+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 if test -n "$STRIP"; then
5564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577 done
5578 done
5579
5580 fi
5581 fi
5582 STRIP=$ac_cv_prog_STRIP
5583 if test -n "$STRIP"; then
5584 echo "$as_me:$LINENO: result: $STRIP" >&5
5585 echo "${ECHO_T}$STRIP" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5589 fi
5590
5591 fi
5592 if test -z "$ac_cv_prog_STRIP"; then
5593 ac_ct_STRIP=$STRIP
5594 # Extract the first word of "strip", so it can be a program name with args.
5595 set dummy strip; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601 if test -n "$ac_ct_STRIP"; then
5602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_ac_ct_STRIP="strip"
5612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615 done
5616 done
5617
5618 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5619 fi
5620 fi
5621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5622 if test -n "$ac_ct_STRIP"; then
5623 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5624 echo "${ECHO_T}$ac_ct_STRIP" >&6
5625 else
5626 echo "$as_me:$LINENO: result: no" >&5
5627 echo "${ECHO_T}no" >&6
5628 fi
5629
5630 STRIP=$ac_ct_STRIP
5631 else
5632 STRIP="$ac_cv_prog_STRIP"
5633 fi
5634
5635
5636 # Check for any special flags to pass to ltconfig.
5637 libtool_flags="--cache-file=$cache_file"
5638 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5639 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5640 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5641 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5642 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5643
5644
5645 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5646 if test "${enable_libtool_lock+set}" = set; then
5647 enableval="$enable_libtool_lock"
5648
5649 fi;
5650 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5651 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5652
5653
5654 # Check whether --with-pic or --without-pic was given.
5655 if test "${with_pic+set}" = set; then
5656 withval="$with_pic"
5657 pic_mode="$withval"
5658 else
5659 pic_mode=default
5660 fi;
5661 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5662 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5663
5664 # Some flags need to be propagated to the compiler or linker for good
5665 # libtool support.
5666 case $host in
5667 *-*-irix6*)
5668 # Find out which ABI we are using.
5669 echo '#line 5669 "configure"' > conftest.$ac_ext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671 (eval $ac_compile) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; then
5675 if test "$lt_cv_prog_gnu_ld" = yes; then
5676 case `/usr/bin/file conftest.$ac_objext` in
5677 *32-bit*)
5678 LD="${LD-ld} -melf32bsmip"
5679 ;;
5680 *N32*)
5681 LD="${LD-ld} -melf32bmipn32"
5682 ;;
5683 *64-bit*)
5684 LD="${LD-ld} -melf64bmip"
5685 ;;
5686 esac
5687 else
5688 case `/usr/bin/file conftest.$ac_objext` in
5689 *32-bit*)
5690 LD="${LD-ld} -32"
5691 ;;
5692 *N32*)
5693 LD="${LD-ld} -n32"
5694 ;;
5695 *64-bit*)
5696 LD="${LD-ld} -64"
5697 ;;
5698 esac
5699 fi
5700 fi
5701 rm -rf conftest*
5702 ;;
5703
5704 ia64-*-hpux*)
5705 # Find out which ABI we are using.
5706 echo 'int i;' > conftest.$ac_ext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; then
5712 case "`/usr/bin/file conftest.o`" in
5713 *ELF-32*)
5714 HPUX_IA64_MODE="32"
5715 ;;
5716 *ELF-64*)
5717 HPUX_IA64_MODE="64"
5718 ;;
5719 esac
5720 fi
5721 rm -rf conftest*
5722 ;;
5723
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725 # Find out which ABI we are using.
5726 echo 'int i;' > conftest.$ac_ext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; then
5732 case "`/usr/bin/file conftest.o`" in
5733 *32-bit*)
5734 case $host in
5735 x86_64-*linux*)
5736 LD="${LD-ld} -m elf_i386"
5737 ;;
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5740 ;;
5741 s390x-*linux*)
5742 LD="${LD-ld} -m elf_s390"
5743 ;;
5744 sparc64-*linux*)
5745 LD="${LD-ld} -m elf32_sparc"
5746 ;;
5747 esac
5748 ;;
5749 *64-bit*)
5750 case $host in
5751 x86_64-*linux*)
5752 LD="${LD-ld} -m elf_x86_64"
5753 ;;
5754 ppc*-*linux*|powerpc*-*linux*)
5755 LD="${LD-ld} -m elf64ppc"
5756 ;;
5757 s390*-*linux*)
5758 LD="${LD-ld} -m elf64_s390"
5759 ;;
5760 sparc*-*linux*)
5761 LD="${LD-ld} -m elf64_sparc"
5762 ;;
5763 esac
5764 ;;
5765 esac
5766 fi
5767 rm -rf conftest*
5768 ;;
5769
5770 *-*-sco3.2v5*)
5771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772 SAVE_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -belf"
5774 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779
5780
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793
5794 int
5795 main ()
5796 {
5797
5798 ;
5799 return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest$ac_exeext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 lt_cv_cc_needs_belf=yes
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 lt_cv_cc_needs_belf=no
5830 fi
5831 rm -f conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833 ac_ext=c
5834 ac_cpp='$CPP $CPPFLAGS'
5835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838
5839 fi
5840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5842 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5843 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5844 CFLAGS="$SAVE_CFLAGS"
5845 fi
5846 ;;
5847
5848
5849 esac
5850
5851
5852 # Save cache, so that ltconfig can load it
5853 cat >confcache <<\_ACEOF
5854 # This file is a shell script that caches the results of configure
5855 # tests run on this system so they can be shared between configure
5856 # scripts and configure runs, see configure's option --config-cache.
5857 # It is not useful on other systems. If it contains results you don't
5858 # want to keep, you may remove or edit it.
5859 #
5860 # config.status only pays attention to the cache file if you give it
5861 # the --recheck option to rerun configure.
5862 #
5863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5865 # following values.
5866
5867 _ACEOF
5868
5869 # The following way of writing the cache mishandles newlines in values,
5870 # but we know of no workaround that is simple, portable, and efficient.
5871 # So, don't put newlines in cache variables' values.
5872 # Ultrix sh set writes to stderr and can't be redirected directly,
5873 # and sets the high bit in the cache file unless we assign to the vars.
5874 {
5875 (set) 2>&1 |
5876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5877 *ac_space=\ *)
5878 # `set' does not quote correctly, so add quotes (double-quote
5879 # substitution turns \\\\ into \\, and sed turns \\ into \).
5880 sed -n \
5881 "s/'/'\\\\''/g;
5882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5883 ;;
5884 *)
5885 # `set' quotes correctly as required by POSIX, so do not add quotes.
5886 sed -n \
5887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5888 ;;
5889 esac;
5890 } |
5891 sed '
5892 t clear
5893 : clear
5894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5895 t end
5896 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5897 : end' >>confcache
5898 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5899 if test -w $cache_file; then
5900 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5901 cat confcache >$cache_file
5902 else
5903 echo "not updating unwritable cache $cache_file"
5904 fi
5905 fi
5906 rm -f confcache
5907
5908 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5909 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5910 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5911 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5912 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5913 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5914 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5915 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5916 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5917 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5918 echo "$as_me: error: libtool configure failed" >&2;}
5919 { (exit 1); exit 1; }; }
5920
5921 # Reload cache, that may have been modified by ltconfig
5922 if test -r "$cache_file"; then
5923 # Some versions of bash will fail to source /dev/null (special
5924 # files actually), so we avoid doing that.
5925 if test -f "$cache_file"; then
5926 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5927 echo "$as_me: loading cache $cache_file" >&6;}
5928 case $cache_file in
5929 [\\/]* | ?:[\\/]* ) . $cache_file;;
5930 *) . ./$cache_file;;
5931 esac
5932 fi
5933 else
5934 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5935 echo "$as_me: creating cache $cache_file" >&6;}
5936 >$cache_file
5937 fi
5938
5939
5940 # This can be used to rebuild libtool when needed
5941 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5942
5943 # Always use our own libtool.
5944 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5945
5946 # Redirect the config.log output again, so that the ltconfig log is not
5947 # clobbered by the next message.
5948 exec 5>>./config.log
5949
5950 ac_ext=cc
5951 ac_cpp='$CXXCPP $CPPFLAGS'
5952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5955 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5956 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5957 if test -z "$CXXCPP"; then
5958 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 # Double quotes because CXXCPP needs to be expanded
5962 for CXXCPP in "$CXX -E" "/lib/cpp"
5963 do
5964 ac_preproc_ok=false
5965 for ac_cxx_preproc_warn_flag in '' yes
5966 do
5967 # Use a header file that comes with gcc, so configuring glibc
5968 # with a fresh cross-compiler works.
5969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 # <limits.h> exists even on freestanding compilers.
5971 # On the NeXT, cc -E runs the code through the compiler's parser,
5972 # not just through cpp. "Syntax error" is here to catch this case.
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #ifdef __STDC__
5980 # include <limits.h>
5981 #else
5982 # include <assert.h>
5983 #endif
5984 Syntax error
5985 _ACEOF
5986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null; then
5994 if test -s conftest.err; then
5995 ac_cpp_err=$ac_cxx_preproc_warn_flag
5996 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5997 else
5998 ac_cpp_err=
5999 fi
6000 else
6001 ac_cpp_err=yes
6002 fi
6003 if test -z "$ac_cpp_err"; then
6004 :
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 # Broken: fails on valid input.
6010 continue
6011 fi
6012 rm -f conftest.err conftest.$ac_ext
6013
6014 # OK, works on sane cases. Now check whether non-existent headers
6015 # can be detected and how.
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <ac_nonexistent.h>
6023 _ACEOF
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev/null; then
6032 if test -s conftest.err; then
6033 ac_cpp_err=$ac_cxx_preproc_warn_flag
6034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6035 else
6036 ac_cpp_err=
6037 fi
6038 else
6039 ac_cpp_err=yes
6040 fi
6041 if test -z "$ac_cpp_err"; then
6042 # Broken: success on invalid input.
6043 continue
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048 # Passes both tests.
6049 ac_preproc_ok=:
6050 break
6051 fi
6052 rm -f conftest.err conftest.$ac_ext
6053
6054 done
6055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056 rm -f conftest.err conftest.$ac_ext
6057 if $ac_preproc_ok; then
6058 break
6059 fi
6060
6061 done
6062 ac_cv_prog_CXXCPP=$CXXCPP
6063
6064 fi
6065 CXXCPP=$ac_cv_prog_CXXCPP
6066 else
6067 ac_cv_prog_CXXCPP=$CXXCPP
6068 fi
6069 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6070 echo "${ECHO_T}$CXXCPP" >&6
6071 ac_preproc_ok=false
6072 for ac_cxx_preproc_warn_flag in '' yes
6073 do
6074 # Use a header file that comes with gcc, so configuring glibc
6075 # with a fresh cross-compiler works.
6076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6077 # <limits.h> exists even on freestanding compilers.
6078 # On the NeXT, cc -E runs the code through the compiler's parser,
6079 # not just through cpp. "Syntax error" is here to catch this case.
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #ifdef __STDC__
6087 # include <limits.h>
6088 #else
6089 # include <assert.h>
6090 #endif
6091 Syntax error
6092 _ACEOF
6093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null; then
6101 if test -s conftest.err; then
6102 ac_cpp_err=$ac_cxx_preproc_warn_flag
6103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6104 else
6105 ac_cpp_err=
6106 fi
6107 else
6108 ac_cpp_err=yes
6109 fi
6110 if test -z "$ac_cpp_err"; then
6111 :
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 # Broken: fails on valid input.
6117 continue
6118 fi
6119 rm -f conftest.err conftest.$ac_ext
6120
6121 # OK, works on sane cases. Now check whether non-existent headers
6122 # can be detected and how.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <ac_nonexistent.h>
6130 _ACEOF
6131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null; then
6139 if test -s conftest.err; then
6140 ac_cpp_err=$ac_cxx_preproc_warn_flag
6141 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6142 else
6143 ac_cpp_err=
6144 fi
6145 else
6146 ac_cpp_err=yes
6147 fi
6148 if test -z "$ac_cpp_err"; then
6149 # Broken: success on invalid input.
6150 continue
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 # Passes both tests.
6156 ac_preproc_ok=:
6157 break
6158 fi
6159 rm -f conftest.err conftest.$ac_ext
6160
6161 done
6162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6163 rm -f conftest.err conftest.$ac_ext
6164 if $ac_preproc_ok; then
6165 :
6166 else
6167 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6168 See \`config.log' for more details." >&5
6169 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6170 See \`config.log' for more details." >&2;}
6171 { (exit 1); exit 1; }; }
6172 fi
6173
6174 ac_ext=c
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180
6181
6182 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6183 lt_save_CC="$CC"
6184 lt_save_CFLAGS="$CFLAGS"
6185 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6186 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6187 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6188 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6189 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6190 deplibs_check_method="$deplibs_check_method" \
6191 file_magic_cmd="$file_magic_cmd" \
6192 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6193 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6194 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6195 echo "$as_me: error: libtool tag configuration failed" >&2;}
6196 { (exit 1); exit 1; }; }
6197 CC="$lt_save_CC"
6198 CFLAGS="$lt_save_CFLAGS"
6199
6200 # Redirect the config.log output again, so that the ltconfig log is not
6201 # clobbered by the next message.
6202 exec 5>>./config.log
6203
6204
6205
6206
6207
6208
6209 ac_ext=c
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214 if test -n "$ac_tool_prefix"; then
6215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6217 echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6219 if test "${ac_cv_prog_CC+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 if test -n "$CC"; then
6223 ac_cv_prog_CC="$CC" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236 done
6237 done
6238
6239 fi
6240 fi
6241 CC=$ac_cv_prog_CC
6242 if test -n "$CC"; then
6243 echo "$as_me:$LINENO: result: $CC" >&5
6244 echo "${ECHO_T}$CC" >&6
6245 else
6246 echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 fi
6249
6250 fi
6251 if test -z "$ac_cv_prog_CC"; then
6252 ac_ct_CC=$CC
6253 # Extract the first word of "gcc", so it can be a program name with args.
6254 set dummy gcc; ac_word=$2
6255 echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 if test -n "$ac_ct_CC"; then
6261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_ac_ct_CC="gcc"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276
6277 fi
6278 fi
6279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6280 if test -n "$ac_ct_CC"; then
6281 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6282 echo "${ECHO_T}$ac_ct_CC" >&6
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288 CC=$ac_ct_CC
6289 else
6290 CC="$ac_cv_prog_CC"
6291 fi
6292
6293 if test -z "$CC"; then
6294 if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}cc; ac_word=$2
6297 echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299 if test "${ac_cv_prog_CC+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 if test -n "$CC"; then
6303 ac_cv_prog_CC="$CC" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312 ac_cv_prog_CC="${ac_tool_prefix}cc"
6313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6315 fi
6316 done
6317 done
6318
6319 fi
6320 fi
6321 CC=$ac_cv_prog_CC
6322 if test -n "$CC"; then
6323 echo "$as_me:$LINENO: result: $CC" >&5
6324 echo "${ECHO_T}$CC" >&6
6325 else
6326 echo "$as_me:$LINENO: result: no" >&5
6327 echo "${ECHO_T}no" >&6
6328 fi
6329
6330 fi
6331 if test -z "$ac_cv_prog_CC"; then
6332 ac_ct_CC=$CC
6333 # Extract the first word of "cc", so it can be a program name with args.
6334 set dummy cc; ac_word=$2
6335 echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 if test -n "$ac_ct_CC"; then
6341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_ac_ct_CC="cc"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356
6357 fi
6358 fi
6359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6360 if test -n "$ac_ct_CC"; then
6361 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6362 echo "${ECHO_T}$ac_ct_CC" >&6
6363 else
6364 echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6366 fi
6367
6368 CC=$ac_ct_CC
6369 else
6370 CC="$ac_cv_prog_CC"
6371 fi
6372
6373 fi
6374 if test -z "$CC"; then
6375 # Extract the first word of "cc", so it can be a program name with args.
6376 set dummy cc; ac_word=$2
6377 echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6379 if test "${ac_cv_prog_CC+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382 if test -n "$CC"; then
6383 ac_cv_prog_CC="$CC" # Let the user override the test.
6384 else
6385 ac_prog_rejected=no
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6394 ac_prog_rejected=yes
6395 continue
6396 fi
6397 ac_cv_prog_CC="cc"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401 done
6402 done
6403
6404 if test $ac_prog_rejected = yes; then
6405 # We found a bogon in the path, so make sure we never use it.
6406 set dummy $ac_cv_prog_CC
6407 shift
6408 if test $# != 0; then
6409 # We chose a different compiler from the bogus one.
6410 # However, it has the same basename, so the bogon will be chosen
6411 # first if we set CC to just the basename; use the full file name.
6412 shift
6413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6414 fi
6415 fi
6416 fi
6417 fi
6418 CC=$ac_cv_prog_CC
6419 if test -n "$CC"; then
6420 echo "$as_me:$LINENO: result: $CC" >&5
6421 echo "${ECHO_T}$CC" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424 echo "${ECHO_T}no" >&6
6425 fi
6426
6427 fi
6428 if test -z "$CC"; then
6429 if test -n "$ac_tool_prefix"; then
6430 for ac_prog in cl
6431 do
6432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6434 echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6436 if test "${ac_cv_prog_CC+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 if test -n "$CC"; then
6440 ac_cv_prog_CC="$CC" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455
6456 fi
6457 fi
6458 CC=$ac_cv_prog_CC
6459 if test -n "$CC"; then
6460 echo "$as_me:$LINENO: result: $CC" >&5
6461 echo "${ECHO_T}$CC" >&6
6462 else
6463 echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6
6465 fi
6466
6467 test -n "$CC" && break
6468 done
6469 fi
6470 if test -z "$CC"; then
6471 ac_ct_CC=$CC
6472 for ac_prog in cl
6473 do
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 if test -n "$ac_ct_CC"; then
6482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_ac_ct_CC="$ac_prog"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495 done
6496 done
6497
6498 fi
6499 fi
6500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6501 if test -n "$ac_ct_CC"; then
6502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6503 echo "${ECHO_T}$ac_ct_CC" >&6
6504 else
6505 echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6
6507 fi
6508
6509 test -n "$ac_ct_CC" && break
6510 done
6511
6512 CC=$ac_ct_CC
6513 fi
6514
6515 fi
6516
6517
6518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: no acceptable C compiler found in \$PATH
6521 See \`config.log' for more details." >&2;}
6522 { (exit 1); exit 1; }; }
6523
6524 # Provide some information about the compiler.
6525 echo "$as_me:$LINENO:" \
6526 "checking for C compiler version" >&5
6527 ac_compiler=`set X $ac_compile; echo $2`
6528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6529 (eval $ac_compiler --version </dev/null >&5) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }
6533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6534 (eval $ac_compiler -v </dev/null >&5) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }
6538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6539 (eval $ac_compiler -V </dev/null >&5) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }
6543
6544 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6545 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555
6556 int
6557 main ()
6558 {
6559 #ifndef __GNUC__
6560 choke me
6561 #endif
6562
6563 ;
6564 return 0;
6565 }
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569 (eval $ac_compile) 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_compiler_gnu=yes
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_compiler_gnu=no
6595 fi
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6598
6599 fi
6600 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6601 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6602 GCC=`test $ac_compiler_gnu = yes && echo yes`
6603 ac_test_CFLAGS=${CFLAGS+set}
6604 ac_save_CFLAGS=$CFLAGS
6605 CFLAGS="-g"
6606 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6607 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6608 if test "${ac_cv_prog_cc_g+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617
6618 int
6619 main ()
6620 {
6621
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628 (eval $ac_compile) 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_c_werror_flag"
6636 || test ! -s conftest.err'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 (eval $ac_try) 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest.$ac_objext'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_prog_cc_g=yes
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_cv_prog_cc_g=no
6654 fi
6655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6656 fi
6657 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6658 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6659 if test "$ac_test_CFLAGS" = set; then
6660 CFLAGS=$ac_save_CFLAGS
6661 elif test $ac_cv_prog_cc_g = yes; then
6662 if test "$GCC" = yes; then
6663 CFLAGS="-g -O2"
6664 else
6665 CFLAGS="-g"
6666 fi
6667 else
6668 if test "$GCC" = yes; then
6669 CFLAGS="-O2"
6670 else
6671 CFLAGS=
6672 fi
6673 fi
6674 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6675 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6676 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679 ac_cv_prog_cc_stdc=no
6680 ac_save_CC=$CC
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <stdarg.h>
6688 #include <stdio.h>
6689 #include <sys/types.h>
6690 #include <sys/stat.h>
6691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6692 struct buf { int x; };
6693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6694 static char *e (p, i)
6695 char **p;
6696 int i;
6697 {
6698 return p[i];
6699 }
6700 static char *f (char * (*g) (char **, int), char **p, ...)
6701 {
6702 char *s;
6703 va_list v;
6704 va_start (v,p);
6705 s = g (p, va_arg (v,int));
6706 va_end (v);
6707 return s;
6708 }
6709
6710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6711 function prototypes and stuff, but not '\xHH' hex character constants.
6712 These don't provoke an error unfortunately, instead are silently treated
6713 as 'x'. The following induces an error, until -std1 is added to get
6714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6715 array size at least. It's necessary to write '\x00'==0 to get something
6716 that's true only with -std1. */
6717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6718
6719 int test (int i, double x);
6720 struct s1 {int (*f) (int a);};
6721 struct s2 {int (*f) (double a);};
6722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6723 int argc;
6724 char **argv;
6725 int
6726 main ()
6727 {
6728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6729 ;
6730 return 0;
6731 }
6732 _ACEOF
6733 # Don't try gcc -ansi; that turns off useful extensions and
6734 # breaks some systems' header files.
6735 # AIX -qlanglvl=ansi
6736 # Ultrix and OSF/1 -std1
6737 # HP-UX 10.20 and later -Ae
6738 # HP-UX older versions -Aa -D_HPUX_SOURCE
6739 # SVR4 -Xc -D__EXTENSIONS__
6740 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6741 do
6742 CC="$ac_save_CC $ac_arg"
6743 rm -f conftest.$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag"
6753 || test ! -s conftest.err'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest.$ac_objext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_prog_cc_stdc=$ac_arg
6766 break
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771 fi
6772 rm -f conftest.err conftest.$ac_objext
6773 done
6774 rm -f conftest.$ac_ext conftest.$ac_objext
6775 CC=$ac_save_CC
6776
6777 fi
6778
6779 case "x$ac_cv_prog_cc_stdc" in
6780 x|xno)
6781 echo "$as_me:$LINENO: result: none needed" >&5
6782 echo "${ECHO_T}none needed" >&6 ;;
6783 *)
6784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6785 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6786 CC="$CC $ac_cv_prog_cc_stdc" ;;
6787 esac
6788
6789 # Some people use a C++ compiler to compile C. Since we use `exit',
6790 # in C++ we need to declare it. In case someone uses the same compiler
6791 # for both compiling C and C++ we need to have the C++ compiler decide
6792 # the declaration of exit, since it's the most demanding environment.
6793 cat >conftest.$ac_ext <<_ACEOF
6794 #ifndef __cplusplus
6795 choke me
6796 #endif
6797 _ACEOF
6798 rm -f conftest.$ac_objext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6800 (eval $ac_compile) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest.$ac_objext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 for ac_declaration in \
6821 '' \
6822 'extern "C" void std::exit (int) throw (); using std::exit;' \
6823 'extern "C" void std::exit (int); using std::exit;' \
6824 'extern "C" void exit (int) throw ();' \
6825 'extern "C" void exit (int);' \
6826 'void exit (int);'
6827 do
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 $ac_declaration
6835 #include <stdlib.h>
6836 int
6837 main ()
6838 {
6839 exit (42);
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_c_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest.$ac_objext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 :
6867 else
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6870
6871 continue
6872 fi
6873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_declaration
6881 int
6882 main ()
6883 {
6884 exit (42);
6885 ;
6886 return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -z "$ac_c_werror_flag"
6899 || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 break
6912 else
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 fi
6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6918 done
6919 rm -f conftest*
6920 if test -n "$ac_declaration"; then
6921 echo '#ifdef __cplusplus' >>confdefs.h
6922 echo $ac_declaration >>confdefs.h
6923 echo '#endif' >>confdefs.h
6924 fi
6925
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 fi
6931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6932 ac_ext=c
6933 ac_cpp='$CPP $CPPFLAGS'
6934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6937
6938 depcc="$CC" am_compiler_list=
6939
6940 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6941 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6942 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6946 # We make a subdir and do the tests there. Otherwise we can end up
6947 # making bogus files that we don't know about and never remove. For
6948 # instance it was reported that on HP-UX the gcc test will end up
6949 # making a dummy file named `D' -- because `-MD' means `put the output
6950 # in D'.
6951 mkdir conftest.dir
6952 # Copy depcomp to subdir because otherwise we won't find it if we're
6953 # using a relative directory.
6954 cp "$am_depcomp" conftest.dir
6955 cd conftest.dir
6956 # We will build objects and dependencies in a subdirectory because
6957 # it helps to detect inapplicable dependency modes. For instance
6958 # both Tru64's cc and ICC support -MD to output dependencies as a
6959 # side effect of compilation, but ICC will put the dependencies in
6960 # the current directory while Tru64 will put them in the object
6961 # directory.
6962 mkdir sub
6963
6964 am_cv_CC_dependencies_compiler_type=none
6965 if test "$am_compiler_list" = ""; then
6966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6967 fi
6968 for depmode in $am_compiler_list; do
6969 # Setup a source with many dependencies, because some compilers
6970 # like to wrap large dependency lists on column 80 (with \), and
6971 # we should not choose a depcomp mode which is confused by this.
6972 #
6973 # We need to recreate these files for each test, as the compiler may
6974 # overwrite some of them when testing with obscure command lines.
6975 # This happens at least with the AIX C compiler.
6976 : > sub/conftest.c
6977 for i in 1 2 3 4 5 6; do
6978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6980 # Solaris 8's {/usr,}/bin/sh.
6981 touch sub/conftst$i.h
6982 done
6983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6984
6985 case $depmode in
6986 nosideeffect)
6987 # after this tag, mechanisms are not by side-effect, so they'll
6988 # only be used when explicitly requested
6989 if test "x$enable_dependency_tracking" = xyes; then
6990 continue
6991 else
6992 break
6993 fi
6994 ;;
6995 none) break ;;
6996 esac
6997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6998 # mode. It turns out that the SunPro C++ compiler does not properly
6999 # handle `-M -o', and we need to detect this.
7000 if depmode=$depmode \
7001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7004 >/dev/null 2>conftest.err &&
7005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7006 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7008 # icc doesn't choke on unknown options, it will just issue warnings
7009 # or remarks (even with -Werror). So we grep stderr for any message
7010 # that says an option was ignored or not supported.
7011 # When given -MP, icc 7.0 and 7.1 complain thusly:
7012 # icc: Command line warning: ignoring option '-M'; no argument required
7013 # The diagnosis changed in icc 8.0:
7014 # icc: Command line remark: option '-MP' not supported
7015 if (grep 'ignoring option' conftest.err ||
7016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7017 am_cv_CC_dependencies_compiler_type=$depmode
7018 break
7019 fi
7020 fi
7021 done
7022
7023 cd ..
7024 rm -rf conftest.dir
7025 else
7026 am_cv_CC_dependencies_compiler_type=none
7027 fi
7028
7029 fi
7030 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7031 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7033
7034
7035
7036 if
7037 test "x$enable_dependency_tracking" != xno \
7038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7039 am__fastdepCC_TRUE=
7040 am__fastdepCC_FALSE='#'
7041 else
7042 am__fastdepCC_TRUE='#'
7043 am__fastdepCC_FALSE=
7044 fi
7045
7046
7047 ac_ext=c
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7053 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7054 # On Suns, sometimes $CPP names a directory.
7055 if test -n "$CPP" && test -d "$CPP"; then
7056 CPP=
7057 fi
7058 if test -z "$CPP"; then
7059 if test "${ac_cv_prog_CPP+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 else
7062 # Double quotes because CPP needs to be expanded
7063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7064 do
7065 ac_preproc_ok=false
7066 for ac_c_preproc_warn_flag in '' yes
7067 do
7068 # Use a header file that comes with gcc, so configuring glibc
7069 # with a fresh cross-compiler works.
7070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 # <limits.h> exists even on freestanding compilers.
7072 # On the NeXT, cc -E runs the code through the compiler's parser,
7073 # not just through cpp. "Syntax error" is here to catch this case.
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h. */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 #ifdef __STDC__
7081 # include <limits.h>
7082 #else
7083 # include <assert.h>
7084 #endif
7085 Syntax error
7086 _ACEOF
7087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } >/dev/null; then
7095 if test -s conftest.err; then
7096 ac_cpp_err=$ac_c_preproc_warn_flag
7097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7098 else
7099 ac_cpp_err=
7100 fi
7101 else
7102 ac_cpp_err=yes
7103 fi
7104 if test -z "$ac_cpp_err"; then
7105 :
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 # Broken: fails on valid input.
7111 continue
7112 fi
7113 rm -f conftest.err conftest.$ac_ext
7114
7115 # OK, works on sane cases. Now check whether non-existent headers
7116 # can be detected and how.
7117 cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h. */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 #include <ac_nonexistent.h>
7124 _ACEOF
7125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7127 ac_status=$?
7128 grep -v '^ *+' conftest.er1 >conftest.err
7129 rm -f conftest.er1
7130 cat conftest.err >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } >/dev/null; then
7133 if test -s conftest.err; then
7134 ac_cpp_err=$ac_c_preproc_warn_flag
7135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7136 else
7137 ac_cpp_err=
7138 fi
7139 else
7140 ac_cpp_err=yes
7141 fi
7142 if test -z "$ac_cpp_err"; then
7143 # Broken: success on invalid input.
7144 continue
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 # Passes both tests.
7150 ac_preproc_ok=:
7151 break
7152 fi
7153 rm -f conftest.err conftest.$ac_ext
7154
7155 done
7156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7157 rm -f conftest.err conftest.$ac_ext
7158 if $ac_preproc_ok; then
7159 break
7160 fi
7161
7162 done
7163 ac_cv_prog_CPP=$CPP
7164
7165 fi
7166 CPP=$ac_cv_prog_CPP
7167 else
7168 ac_cv_prog_CPP=$CPP
7169 fi
7170 echo "$as_me:$LINENO: result: $CPP" >&5
7171 echo "${ECHO_T}$CPP" >&6
7172 ac_preproc_ok=false
7173 for ac_c_preproc_warn_flag in '' yes
7174 do
7175 # Use a header file that comes with gcc, so configuring glibc
7176 # with a fresh cross-compiler works.
7177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178 # <limits.h> exists even on freestanding compilers.
7179 # On the NeXT, cc -E runs the code through the compiler's parser,
7180 # not just through cpp. "Syntax error" is here to catch this case.
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 #ifdef __STDC__
7188 # include <limits.h>
7189 #else
7190 # include <assert.h>
7191 #endif
7192 Syntax error
7193 _ACEOF
7194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } >/dev/null; then
7202 if test -s conftest.err; then
7203 ac_cpp_err=$ac_c_preproc_warn_flag
7204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7205 else
7206 ac_cpp_err=
7207 fi
7208 else
7209 ac_cpp_err=yes
7210 fi
7211 if test -z "$ac_cpp_err"; then
7212 :
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 # Broken: fails on valid input.
7218 continue
7219 fi
7220 rm -f conftest.err conftest.$ac_ext
7221
7222 # OK, works on sane cases. Now check whether non-existent headers
7223 # can be detected and how.
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #include <ac_nonexistent.h>
7231 _ACEOF
7232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } >/dev/null; then
7240 if test -s conftest.err; then
7241 ac_cpp_err=$ac_c_preproc_warn_flag
7242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7243 else
7244 ac_cpp_err=
7245 fi
7246 else
7247 ac_cpp_err=yes
7248 fi
7249 if test -z "$ac_cpp_err"; then
7250 # Broken: success on invalid input.
7251 continue
7252 else
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7255
7256 # Passes both tests.
7257 ac_preproc_ok=:
7258 break
7259 fi
7260 rm -f conftest.err conftest.$ac_ext
7261
7262 done
7263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7264 rm -f conftest.err conftest.$ac_ext
7265 if $ac_preproc_ok; then
7266 :
7267 else
7268 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7269 See \`config.log' for more details." >&5
7270 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7271 See \`config.log' for more details." >&2;}
7272 { (exit 1); exit 1; }; }
7273 fi
7274
7275 ac_ext=c
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7280
7281
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.
7293 ;;
7294 *)
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
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
7305 fi
7306 done
7307 done
7308
7309 ;;
7310 esac
7311 fi
7312 PERL=$ac_cv_path_PERL
7313
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
7320 fi
7321
7322
7323
7324 ac_config_files="$ac_config_files lib/mkcollections.pl"
7325
7326 ac_config_commands="$ac_config_commands mkcollections.pl"
7327
7328 fi
7329
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>
7346
7347 int
7348 main ()
7349 {
7350
7351 ;
7352 return 0;
7353 }
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
7381
7382 ac_cv_header_stdc=no
7383 fi
7384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7385
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>
7395
7396 _ACEOF
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398 $EGREP "memchr" >/dev/null 2>&1; then
7399 :
7400 else
7401 ac_cv_header_stdc=no
7402 fi
7403 rm -f conftest*
7404
7405 fi
7406
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>
7416
7417 _ACEOF
7418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7419 $EGREP "free" >/dev/null 2>&1; then
7420 :
7421 else
7422 ac_cv_header_stdc=no
7423 fi
7424 rm -f conftest*
7425
7426 fi
7427
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
7431 :
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
7450
7451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7452 int
7453 main ()
7454 {
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);
7461 }
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
7474 :
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
7479
7480 ( exit $ac_status )
7481 ac_cv_header_stdc=no
7482 fi
7483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7484 fi
7485 fi
7486 fi
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
7490
7491 cat >>confdefs.h <<\_ACEOF
7492 #define STDC_HEADERS 1
7493 _ACEOF
7494
7495 fi
7496
7497
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>
7512
7513
7514 int
7515 main ()
7516 {
7517 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7518 ;
7519 return 0;
7520 }
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
7548
7549 fi
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
7553
7554 fi
7555
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; }; }
7560 fi
7561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7562 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7566 _ACEOF
7567
7568
7569
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>
7585 int
7586 main ()
7587 {
7588
7589 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7590 bogus endian macros
7591 #endif
7592 ;
7593 return 0;
7594 }
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>
7627 int
7628 main ()
7629 {
7630
7631 #if BYTE_ORDER != BIG_ENDIAN
7632 not big endian
7633 #endif
7634 ;
7635 return 0;
7636 }
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
7664
7665 ac_cv_c_bigendian=no
7666 fi
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
7671
7672 fi
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
7687 {
7688 long l;
7689 char c[sizeof (long)];
7690 } u;
7691 u.l = 1;
7692 exit (u.c[sizeof (long) - 1] == 1);
7693 }
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
7711
7712 ( exit $ac_status )
7713 ac_cv_c_bigendian=yes
7714 fi
7715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7716 fi
7717 fi
7718 fi
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
7724
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; }
7733 EOF
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
7739 fi
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
7746 fi
7747 fi
7748 echo $ac_n 'guessing bigendian ... ' >&6
7749 fi
7750 fi
7751 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7752 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7753 fi
7754 if test $ac_cv_c_bigendian = yes; then
7755
7756 cat >>confdefs.h <<\_ACEOF
7757 #define WORDS_BIGENDIAN 1
7758 _ACEOF
7759
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HOST_WORDS_BIG_ENDIAN 1
7763 _ACEOF
7764
7765 BYTEORDER=4321
7766 else
7767 BYTEORDER=1234
7768 fi
7769
7770 cat >>confdefs.h <<_ACEOF
7771 #define BYTEORDER $BYTEORDER
7772 _ACEOF
7773
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; }; }
7778 fi
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
7798 asm/ioctls.h \
7799 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
7800 sys/time.h \
7801 sys/select.h \
7802 crt_externs.h \
7803 fcntl.h \
7804 sys/mman.h \
7805 magic.h
7806 do
7807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7809 echo "$as_me:$LINENO: checking for $ac_header" >&5
7810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 fi
7814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7816 else
7817 # Is the header compilable?
7818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 $ac_includes_default
7827 #include <$ac_header>
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7831 (eval $ac_compile) 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -z "$ac_c_werror_flag"
7839 || test ! -s conftest.err'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_header_compiler=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 ac_header_compiler=no
7857 fi
7858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7860 echo "${ECHO_T}$ac_header_compiler" >&6
7861
7862 # Is the header present?
7863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <$ac_header>
7872 _ACEOF
7873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } >/dev/null; then
7881 if test -s conftest.err; then
7882 ac_cpp_err=$ac_c_preproc_warn_flag
7883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7884 else
7885 ac_cpp_err=
7886 fi
7887 else
7888 ac_cpp_err=yes
7889 fi
7890 if test -z "$ac_cpp_err"; then
7891 ac_header_preproc=yes
7892 else
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896 ac_header_preproc=no
7897 fi
7898 rm -f conftest.err conftest.$ac_ext
7899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7900 echo "${ECHO_T}$ac_header_preproc" >&6
7901
7902 # So? What about this header?
7903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7904 yes:no: )
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7909 ac_header_preproc=yes
7910 ;;
7911 no:yes:* )
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7924 (
7925 cat <<\_ASBOX
7926 ## -------------------------------- ##
7927 ## Report this to classpath@gnu.org ##
7928 ## -------------------------------- ##
7929 _ASBOX
7930 ) |
7931 sed "s/^/$as_me: WARNING: /" >&2
7932 ;;
7933 esac
7934 echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 eval "$as_ac_Header=\$ac_header_preproc"
7940 fi
7941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7943
7944 fi
7945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7946 cat >>confdefs.h <<_ACEOF
7947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948 _ACEOF
7949
7950 fi
7951
7952 done
7953
7954
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 #include <stdint.h>
7962
7963 _ACEOF
7964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7965 $EGREP "uint32_t" >/dev/null 2>&1; then
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_INT32_DEFINED 1
7969 _ACEOF
7970
7971 fi
7972 rm -f conftest*
7973
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <inttypes.h>
7981
7982 _ACEOF
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984 $EGREP "uint32_t" >/dev/null 2>&1; then
7985
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_INT32_DEFINED 1
7988 _ACEOF
7989
7990 fi
7991 rm -f conftest*
7992
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 #include <sys/types.h>
8000
8001 _ACEOF
8002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8003 $EGREP "u_int32_t" >/dev/null 2>&1; then
8004
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_BSD_INT32_DEFINED 1
8007 _ACEOF
8008
8009 fi
8010 rm -f conftest*
8011
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 #include <sys/config.h>
8019
8020 _ACEOF
8021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8022 $EGREP "u_int32_t" >/dev/null 2>&1; then
8023
8024 cat >>confdefs.h <<\_ACEOF
8025 #define HAVE_BSD_INT32_DEFINED 1
8026 _ACEOF
8027
8028 fi
8029 rm -f conftest*
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 for ac_func in ftruncate fsync select \
8076 gethostname socket strerror fork pipe execve open close \
8077 lseek fstat read write htonl memset htons connect \
8078 getsockname getpeername bind listen accept \
8079 recvfrom send sendto setsockopt getsockopt time mktime \
8080 localtime_r \
8081 strerror_r \
8082 fcntl \
8083 mmap munmap mincore msync madvise getpagesize sysconf \
8084 lstat readlink \
8085
8086 do
8087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8088 echo "$as_me:$LINENO: checking for $ac_func" >&5
8089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8090 if eval "test \"\${$as_ac_var+set}\" = set"; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8101 #define $ac_func innocuous_$ac_func
8102
8103 /* System header to define __stub macros and hopefully few prototypes,
8104 which can conflict with char $ac_func (); below.
8105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8106 <limits.h> exists even on freestanding compilers. */
8107
8108 #ifdef __STDC__
8109 # include <limits.h>
8110 #else
8111 # include <assert.h>
8112 #endif
8113
8114 #undef $ac_func
8115
8116 /* Override any gcc2 internal prototype to avoid an error. */
8117 #ifdef __cplusplus
8118 extern "C"
8119 {
8120 #endif
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char $ac_func ();
8124 /* The GNU C library defines this for functions which it implements
8125 to always fail with ENOSYS. Some functions are actually named
8126 something starting with __ and the normal name is an alias. */
8127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8128 choke me
8129 #else
8130 char (*f) () = $ac_func;
8131 #endif
8132 #ifdef __cplusplus
8133 }
8134 #endif
8135
8136 int
8137 main ()
8138 {
8139 return f != $ac_func;
8140 ;
8141 return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag"
8154 || test ! -s conftest.err'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 eval "$as_ac_var=yes"
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 eval "$as_ac_var=no"
8172 fi
8173 rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 fi
8176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8178 if test `eval echo '${'$as_ac_var'}'` = yes; then
8179 cat >>confdefs.h <<_ACEOF
8180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8181 _ACEOF
8182
8183 fi
8184 done
8185
8186
8187 LIBMAGIC=
8188 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
8189 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
8190 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 ac_check_lib_save_LIBS=$LIBS
8194 LIBS="-lmagic $LIBS"
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h. */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201
8202 /* Override any gcc2 internal prototype to avoid an error. */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8208 char magic_open ();
8209 int
8210 main ()
8211 {
8212 magic_open ();
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219 (eval $ac_link) 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_c_werror_flag"
8227 || test ! -s conftest.err'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_magic_magic_open=yes
8240 else
8241 echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_cv_lib_magic_magic_open=no
8245 fi
8246 rm -f conftest.err conftest.$ac_objext \
8247 conftest$ac_exeext conftest.$ac_ext
8248 LIBS=$ac_check_lib_save_LIBS
8249 fi
8250 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
8251 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
8252 if test $ac_cv_lib_magic_magic_open = yes; then
8253 LIBMAGIC=-lmagic
8254 fi
8255
8256
8257
8258 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8259 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8260 if test "${ac_cv_header_time+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 #include <sys/types.h>
8270 #include <sys/time.h>
8271 #include <time.h>
8272
8273 int
8274 main ()
8275 {
8276 if ((struct tm *) 0)
8277 return 0;
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_header_time=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 ac_cv_header_time=no
8310 fi
8311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8312 fi
8313 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8314 echo "${ECHO_T}$ac_cv_header_time" >&6
8315 if test $ac_cv_header_time = yes; then
8316
8317 cat >>confdefs.h <<\_ACEOF
8318 #define TIME_WITH_SYS_TIME 1
8319 _ACEOF
8320
8321 fi
8322
8323 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8324 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8325 if test "${ac_cv_struct_tm+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 #include <sys/types.h>
8335 #include <time.h>
8336
8337 int
8338 main ()
8339 {
8340 struct tm *tp; tp->tm_sec;
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347 (eval $ac_compile) 2>conftest.er1
8348 ac_status=$?
8349 grep -v '^ *+' conftest.er1 >conftest.err
8350 rm -f conftest.er1
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -z "$ac_c_werror_flag"
8355 || test ! -s conftest.err'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; } &&
8361 { ac_try='test -s conftest.$ac_objext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_struct_tm=time.h
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372 ac_cv_struct_tm=sys/time.h
8373 fi
8374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8377 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8378 if test $ac_cv_struct_tm = sys/time.h; then
8379
8380 cat >>confdefs.h <<\_ACEOF
8381 #define TM_IN_SYS_TIME 1
8382 _ACEOF
8383
8384 fi
8385
8386 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8387 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8388 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 #include <sys/types.h>
8398 #include <$ac_cv_struct_tm>
8399
8400
8401 int
8402 main ()
8403 {
8404 static struct tm ac_aggr;
8405 if (ac_aggr.tm_zone)
8406 return 0;
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>conftest.er1
8414 ac_status=$?
8415 grep -v '^ *+' conftest.er1 >conftest.err
8416 rm -f conftest.er1
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -z "$ac_c_werror_flag"
8421 || test ! -s conftest.err'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest.$ac_objext'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_cv_member_struct_tm_tm_zone=yes
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 #include <sys/types.h>
8445 #include <$ac_cv_struct_tm>
8446
8447
8448 int
8449 main ()
8450 {
8451 static struct tm ac_aggr;
8452 if (sizeof ac_aggr.tm_zone)
8453 return 0;
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag"
8468 || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_member_struct_tm_tm_zone=yes
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 ac_cv_member_struct_tm_tm_zone=no
8486 fi
8487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8490 fi
8491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8492 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8493 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define HAVE_STRUCT_TM_TM_ZONE 1
8497 _ACEOF
8498
8499
8500 fi
8501
8502 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define HAVE_TM_ZONE 1
8506 _ACEOF
8507
8508 else
8509 echo "$as_me:$LINENO: checking for tzname" >&5
8510 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8511 if test "${ac_cv_var_tzname+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 else
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>
8521 #ifndef tzname /* For SGI. */
8522 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8523 #endif
8524
8525 int
8526 main ()
8527 {
8528 atoi(*tzname);
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>conftest.er1
8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } &&
8542 { ac_try='test -z "$ac_c_werror_flag"
8543 || test ! -s conftest.err'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_var_tzname=yes
8556 else
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560 ac_cv_var_tzname=no
8561 fi
8562 rm -f conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
8564 fi
8565 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8566 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8567 if test $ac_cv_var_tzname = yes; then
8568
8569 cat >>confdefs.h <<\_ACEOF
8570 #define HAVE_TZNAME 1
8571 _ACEOF
8572
8573 fi
8574 fi
8575
8576
8577 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
8578 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <time.h>
8586 int
8587 main ()
8588 {
8589 struct tm tim; tim.tm_gmtoff = 0;
8590 ;
8591 return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596 (eval $ac_compile) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag"
8604 || test ! -s conftest.err'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest.$ac_objext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616
8617 cat >>confdefs.h <<\_ACEOF
8618 #define STRUCT_TM_HAS_GMTOFF 1
8619 _ACEOF
8620
8621 echo "$as_me:$LINENO: result: yes" >&5
8622 echo "${ECHO_T}yes" >&6
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8629 echo "$as_me:$LINENO: checking for global timezone variable" >&5
8630 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 #include <time.h>
8638 int
8639 main ()
8640 {
8641 void i(){long z2 = 2*timezone;}
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest.$ac_objext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_TIMEZONE 1
8671 _ACEOF
8672
8673 echo "$as_me:$LINENO: result: yes" >&5
8674 echo "${ECHO_T}yes" >&6
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
8682 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
8683 cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h. */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 #include <time.h>
8690 int
8691 main ()
8692 {
8693 long z2 = _timezone;
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag"
8708 || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 (eval $ac_try) 2>&5
8711 ac_status=$?
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try='test -s conftest.$ac_objext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720
8721 cat >>confdefs.h <<\_ACEOF
8722 #define HAVE_UNDERSCORE_TIMEZONE 1
8723 _ACEOF
8724
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6
8733 fi
8734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8737 fi
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739
8740 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8741 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8742 if test "${ac_cv_c_const+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h. */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751
8752 int
8753 main ()
8754 {
8755 /* FIXME: Include the comments suggested by Paul. */
8756 #ifndef __cplusplus
8757 /* Ultrix mips cc rejects this. */
8758 typedef int charset[2];
8759 const charset x;
8760 /* SunOS 4.1.1 cc rejects this. */
8761 char const *const *ccp;
8762 char **p;
8763 /* NEC SVR4.0.2 mips cc rejects this. */
8764 struct point {int x, y;};
8765 static struct point const zero = {0,0};
8766 /* AIX XL C 1.02.0.0 rejects this.
8767 It does not let you subtract one const X* pointer from another in
8768 an arm of an if-expression whose if-part is not a constant
8769 expression */
8770 const char *g = "string";
8771 ccp = &g + (g ? g-g : 0);
8772 /* HPUX 7.0 cc rejects these. */
8773 ++ccp;
8774 p = (char**) ccp;
8775 ccp = (char const *const *) p;
8776 { /* SCO 3.2v4 cc rejects this. */
8777 char *t;
8778 char const *s = 0 ? (char *) 0 : (char const *) 0;
8779
8780 *t++ = 0;
8781 }
8782 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8783 int x[] = {25, 17};
8784 const int *foo = &x[0];
8785 ++foo;
8786 }
8787 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8788 typedef const int *iptr;
8789 iptr p = 0;
8790 ++p;
8791 }
8792 { /* AIX XL C 1.02.0.0 rejects this saying
8793 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8794 struct s { int j; const int *ap[3]; };
8795 struct s *b; b->j = 5;
8796 }
8797 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8798 const int foo = 10;
8799 }
8800 #endif
8801
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_cv_c_const=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_cv_c_const=no
8834 fi
8835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8838 echo "${ECHO_T}$ac_cv_c_const" >&6
8839 if test $ac_cv_c_const = no; then
8840
8841 cat >>confdefs.h <<\_ACEOF
8842 #define const
8843 _ACEOF
8844
8845 fi
8846
8847 echo "$as_me:$LINENO: checking for __attribute__" >&5
8848 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
8849 if test "${ac_cv_c_attribute+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 void foo(void) __attribute__ ((__noreturn__));
8860
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest.$ac_objext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_c_attribute=yes
8885 else
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 ac_cv_c_attribute=no
8890
8891 fi
8892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8893
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
8896 echo "${ECHO_T}$ac_cv_c_attribute" >&6
8897
8898
8899 case $ac_cv_c_attribute in
8900 yes) ;;
8901 no)
8902 cat >>confdefs.h <<_ACEOF
8903 #define __attribute__(x) /* nothing */
8904 _ACEOF
8905 ;;
8906 esac
8907
8908
8909
8910 if test "X$prefix" = "XNONE"; then
8911 acl_final_prefix="$ac_default_prefix"
8912 else
8913 acl_final_prefix="$prefix"
8914 fi
8915 if test "X$exec_prefix" = "XNONE"; then
8916 acl_final_exec_prefix='${prefix}'
8917 else
8918 acl_final_exec_prefix="$exec_prefix"
8919 fi
8920 acl_save_prefix="$prefix"
8921 prefix="$acl_final_prefix"
8922 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8923 prefix="$acl_save_prefix"
8924
8925
8926 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8927 if test "${with_gnu_ld+set}" = set; then
8928 withval="$with_gnu_ld"
8929 test "$withval" = no || with_gnu_ld=yes
8930 else
8931 with_gnu_ld=no
8932 fi;
8933 # Prepare PATH_SEPARATOR.
8934 # The user is always right.
8935 if test "${PATH_SEPARATOR+set}" != set; then
8936 echo "#! /bin/sh" >conf$$.sh
8937 echo "exit 0" >>conf$$.sh
8938 chmod +x conf$$.sh
8939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8940 PATH_SEPARATOR=';'
8941 else
8942 PATH_SEPARATOR=:
8943 fi
8944 rm -f conf$$.sh
8945 fi
8946 ac_prog=ld
8947 if test "$GCC" = yes; then
8948 # Check if gcc -print-prog-name=ld gives a path.
8949 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8950 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
8951 case $host in
8952 *-*-mingw*)
8953 # gcc leaves a trailing carriage return which upsets mingw
8954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8955 *)
8956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8957 esac
8958 case $ac_prog in
8959 # Accept absolute paths.
8960 [\\/]* | [A-Za-z]:[\\/]*)
8961 re_direlt='/[^/][^/]*/\.\./'
8962 # Canonicalize the path of ld
8963 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8965 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8966 done
8967 test -z "$LD" && LD="$ac_prog"
8968 ;;
8969 "")
8970 # If it fails, then pretend we aren't using GCC.
8971 ac_prog=ld
8972 ;;
8973 *)
8974 # If it is relative, then search for the first ld in PATH.
8975 with_gnu_ld=unknown
8976 ;;
8977 esac
8978 elif test "$with_gnu_ld" = yes; then
8979 echo "$as_me:$LINENO: checking for GNU ld" >&5
8980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8981 else
8982 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8984 fi
8985 if test "${acl_cv_path_LD+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988 if test -z "$LD"; then
8989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8990 for ac_dir in $PATH; do
8991 test -z "$ac_dir" && ac_dir=.
8992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8993 acl_cv_path_LD="$ac_dir/$ac_prog"
8994 # Check to see if the program is GNU ld. I'd rather use --version,
8995 # but apparently some GNU ld's only accept -v.
8996 # Break only if it was the GNU/non-GNU ld that we prefer.
8997 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8998 test "$with_gnu_ld" != no && break
8999 else
9000 test "$with_gnu_ld" != yes && break
9001 fi
9002 fi
9003 done
9004 IFS="$ac_save_ifs"
9005 else
9006 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9007 fi
9008 fi
9009
9010 LD="$acl_cv_path_LD"
9011 if test -n "$LD"; then
9012 echo "$as_me:$LINENO: result: $LD" >&5
9013 echo "${ECHO_T}$LD" >&6
9014 else
9015 echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6
9017 fi
9018 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9019 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9020 { (exit 1); exit 1; }; }
9021 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9022 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9023 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9027 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9028 acl_cv_prog_gnu_ld=yes
9029 else
9030 acl_cv_prog_gnu_ld=no
9031 fi
9032 fi
9033 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9034 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9035 with_gnu_ld=$acl_cv_prog_gnu_ld
9036
9037
9038
9039 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9040 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9041 if test "${acl_cv_rpath+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044
9045 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9046 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9047 . ./conftest.sh
9048 rm -f ./conftest.sh
9049 acl_cv_rpath=done
9050
9051 fi
9052 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9053 echo "${ECHO_T}$acl_cv_rpath" >&6
9054 wl="$acl_cv_wl"
9055 libext="$acl_cv_libext"
9056 shlibext="$acl_cv_shlibext"
9057 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9058 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9059 hardcode_direct="$acl_cv_hardcode_direct"
9060 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9061 # Check whether --enable-rpath or --disable-rpath was given.
9062 if test "${enable_rpath+set}" = set; then
9063 enableval="$enable_rpath"
9064 :
9065 else
9066 enable_rpath=yes
9067 fi;
9068
9069
9070
9071
9072
9073
9074
9075 use_additional=yes
9076
9077 acl_save_prefix="$prefix"
9078 prefix="$acl_final_prefix"
9079 acl_save_exec_prefix="$exec_prefix"
9080 exec_prefix="$acl_final_exec_prefix"
9081
9082 eval additional_includedir=\"$includedir\"
9083 eval additional_libdir=\"$libdir\"
9084
9085 exec_prefix="$acl_save_exec_prefix"
9086 prefix="$acl_save_prefix"
9087
9088
9089 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9090 if test "${with_libiconv_prefix+set}" = set; then
9091 withval="$with_libiconv_prefix"
9092
9093 if test "X$withval" = "Xno"; then
9094 use_additional=no
9095 else
9096 if test "X$withval" = "X"; then
9097
9098 acl_save_prefix="$prefix"
9099 prefix="$acl_final_prefix"
9100 acl_save_exec_prefix="$exec_prefix"
9101 exec_prefix="$acl_final_exec_prefix"
9102
9103 eval additional_includedir=\"$includedir\"
9104 eval additional_libdir=\"$libdir\"
9105
9106 exec_prefix="$acl_save_exec_prefix"
9107 prefix="$acl_save_prefix"
9108
9109 else
9110 additional_includedir="$withval/include"
9111 additional_libdir="$withval/lib"
9112 fi
9113 fi
9114
9115 fi;
9116 LIBICONV=
9117 LTLIBICONV=
9118 INCICONV=
9119 rpathdirs=
9120 ltrpathdirs=
9121 names_already_handled=
9122 names_next_round='iconv '
9123 while test -n "$names_next_round"; do
9124 names_this_round="$names_next_round"
9125 names_next_round=
9126 for name in $names_this_round; do
9127 already_handled=
9128 for n in $names_already_handled; do
9129 if test "$n" = "$name"; then
9130 already_handled=yes
9131 break
9132 fi
9133 done
9134 if test -z "$already_handled"; then
9135 names_already_handled="$names_already_handled $name"
9136 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9137 eval value=\"\$HAVE_LIB$uppername\"
9138 if test -n "$value"; then
9139 if test "$value" = yes; then
9140 eval value=\"\$LIB$uppername\"
9141 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9142 eval value=\"\$LTLIB$uppername\"
9143 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9144 else
9145 :
9146 fi
9147 else
9148 found_dir=
9149 found_la=
9150 found_so=
9151 found_a=
9152 if test $use_additional = yes; then
9153 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9154 found_dir="$additional_libdir"
9155 found_so="$additional_libdir/lib$name.$shlibext"
9156 if test -f "$additional_libdir/lib$name.la"; then
9157 found_la="$additional_libdir/lib$name.la"
9158 fi
9159 else
9160 if test -f "$additional_libdir/lib$name.$libext"; then
9161 found_dir="$additional_libdir"
9162 found_a="$additional_libdir/lib$name.$libext"
9163 if test -f "$additional_libdir/lib$name.la"; then
9164 found_la="$additional_libdir/lib$name.la"
9165 fi
9166 fi
9167 fi
9168 fi
9169 if test "X$found_dir" = "X"; then
9170 for x in $LDFLAGS $LTLIBICONV; do
9171
9172 acl_save_prefix="$prefix"
9173 prefix="$acl_final_prefix"
9174 acl_save_exec_prefix="$exec_prefix"
9175 exec_prefix="$acl_final_exec_prefix"
9176 eval x=\"$x\"
9177 exec_prefix="$acl_save_exec_prefix"
9178 prefix="$acl_save_prefix"
9179
9180 case "$x" in
9181 -L*)
9182 dir=`echo "X$x" | sed -e 's/^X-L//'`
9183 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9184 found_dir="$dir"
9185 found_so="$dir/lib$name.$shlibext"
9186 if test -f "$dir/lib$name.la"; then
9187 found_la="$dir/lib$name.la"
9188 fi
9189 else
9190 if test -f "$dir/lib$name.$libext"; then
9191 found_dir="$dir"
9192 found_a="$dir/lib$name.$libext"
9193 if test -f "$dir/lib$name.la"; then
9194 found_la="$dir/lib$name.la"
9195 fi
9196 fi
9197 fi
9198 ;;
9199 esac
9200 if test "X$found_dir" != "X"; then
9201 break
9202 fi
9203 done
9204 fi
9205 if test "X$found_dir" != "X"; then
9206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9207 if test "X$found_so" != "X"; then
9208 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9209 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9210 else
9211 haveit=
9212 for x in $ltrpathdirs; do
9213 if test "X$x" = "X$found_dir"; then
9214 haveit=yes
9215 break
9216 fi
9217 done
9218 if test -z "$haveit"; then
9219 ltrpathdirs="$ltrpathdirs $found_dir"
9220 fi
9221 if test "$hardcode_direct" = yes; then
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9223 else
9224 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9225 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9226 haveit=
9227 for x in $rpathdirs; do
9228 if test "X$x" = "X$found_dir"; then
9229 haveit=yes
9230 break
9231 fi
9232 done
9233 if test -z "$haveit"; then
9234 rpathdirs="$rpathdirs $found_dir"
9235 fi
9236 else
9237 haveit=
9238 for x in $LDFLAGS $LIBICONV; do
9239
9240 acl_save_prefix="$prefix"
9241 prefix="$acl_final_prefix"
9242 acl_save_exec_prefix="$exec_prefix"
9243 exec_prefix="$acl_final_exec_prefix"
9244 eval x=\"$x\"
9245 exec_prefix="$acl_save_exec_prefix"
9246 prefix="$acl_save_prefix"
9247
9248 if test "X$x" = "X-L$found_dir"; then
9249 haveit=yes
9250 break
9251 fi
9252 done
9253 if test -z "$haveit"; then
9254 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9255 fi
9256 if test "$hardcode_minus_L" != no; then
9257 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9258 else
9259 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9260 fi
9261 fi
9262 fi
9263 fi
9264 else
9265 if test "X$found_a" != "X"; then
9266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9267 else
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9269 fi
9270 fi
9271 additional_includedir=
9272 case "$found_dir" in
9273 */lib | */lib/)
9274 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9275 additional_includedir="$basedir/include"
9276 ;;
9277 esac
9278 if test "X$additional_includedir" != "X"; then
9279 if test "X$additional_includedir" != "X/usr/include"; then
9280 haveit=
9281 if test "X$additional_includedir" = "X/usr/local/include"; then
9282 if test -n "$GCC"; then
9283 case $host_os in
9284 linux*) haveit=yes;;
9285 esac
9286 fi
9287 fi
9288 if test -z "$haveit"; then
9289 for x in $CPPFLAGS $INCICONV; do
9290
9291 acl_save_prefix="$prefix"
9292 prefix="$acl_final_prefix"
9293 acl_save_exec_prefix="$exec_prefix"
9294 exec_prefix="$acl_final_exec_prefix"
9295 eval x=\"$x\"
9296 exec_prefix="$acl_save_exec_prefix"
9297 prefix="$acl_save_prefix"
9298
9299 if test "X$x" = "X-I$additional_includedir"; then
9300 haveit=yes
9301 break
9302 fi
9303 done
9304 if test -z "$haveit"; then
9305 if test -d "$additional_includedir"; then
9306 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9307 fi
9308 fi
9309 fi
9310 fi
9311 fi
9312 if test -n "$found_la"; then
9313 save_libdir="$libdir"
9314 case "$found_la" in
9315 */* | *\\*) . "$found_la" ;;
9316 *) . "./$found_la" ;;
9317 esac
9318 libdir="$save_libdir"
9319 for dep in $dependency_libs; do
9320 case "$dep" in
9321 -L*)
9322 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9323 if test "X$additional_libdir" != "X/usr/lib"; then
9324 haveit=
9325 if test "X$additional_libdir" = "X/usr/local/lib"; then
9326 if test -n "$GCC"; then
9327 case $host_os in
9328 linux*) haveit=yes;;
9329 esac
9330 fi
9331 fi
9332 if test -z "$haveit"; then
9333 haveit=
9334 for x in $LDFLAGS $LIBICONV; do
9335
9336 acl_save_prefix="$prefix"
9337 prefix="$acl_final_prefix"
9338 acl_save_exec_prefix="$exec_prefix"
9339 exec_prefix="$acl_final_exec_prefix"
9340 eval x=\"$x\"
9341 exec_prefix="$acl_save_exec_prefix"
9342 prefix="$acl_save_prefix"
9343
9344 if test "X$x" = "X-L$additional_libdir"; then
9345 haveit=yes
9346 break
9347 fi
9348 done
9349 if test -z "$haveit"; then
9350 if test -d "$additional_libdir"; then
9351 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9352 fi
9353 fi
9354 haveit=
9355 for x in $LDFLAGS $LTLIBICONV; do
9356
9357 acl_save_prefix="$prefix"
9358 prefix="$acl_final_prefix"
9359 acl_save_exec_prefix="$exec_prefix"
9360 exec_prefix="$acl_final_exec_prefix"
9361 eval x=\"$x\"
9362 exec_prefix="$acl_save_exec_prefix"
9363 prefix="$acl_save_prefix"
9364
9365 if test "X$x" = "X-L$additional_libdir"; then
9366 haveit=yes
9367 break
9368 fi
9369 done
9370 if test -z "$haveit"; then
9371 if test -d "$additional_libdir"; then
9372 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9373 fi
9374 fi
9375 fi
9376 fi
9377 ;;
9378 -R*)
9379 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9380 if test "$enable_rpath" != no; then
9381 haveit=
9382 for x in $rpathdirs; do
9383 if test "X$x" = "X$dir"; then
9384 haveit=yes
9385 break
9386 fi
9387 done
9388 if test -z "$haveit"; then
9389 rpathdirs="$rpathdirs $dir"
9390 fi
9391 haveit=
9392 for x in $ltrpathdirs; do
9393 if test "X$x" = "X$dir"; then
9394 haveit=yes
9395 break
9396 fi
9397 done
9398 if test -z "$haveit"; then
9399 ltrpathdirs="$ltrpathdirs $dir"
9400 fi
9401 fi
9402 ;;
9403 -l*)
9404 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9405 ;;
9406 *.la)
9407 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9408 ;;
9409 *)
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9412 ;;
9413 esac
9414 done
9415 fi
9416 else
9417 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9418 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9419 fi
9420 fi
9421 fi
9422 done
9423 done
9424 if test "X$rpathdirs" != "X"; then
9425 if test -n "$hardcode_libdir_separator"; then
9426 alldirs=
9427 for found_dir in $rpathdirs; do
9428 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9429 done
9430 acl_save_libdir="$libdir"
9431 libdir="$alldirs"
9432 eval flag=\"$hardcode_libdir_flag_spec\"
9433 libdir="$acl_save_libdir"
9434 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9435 else
9436 for found_dir in $rpathdirs; do
9437 acl_save_libdir="$libdir"
9438 libdir="$found_dir"
9439 eval flag=\"$hardcode_libdir_flag_spec\"
9440 libdir="$acl_save_libdir"
9441 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9442 done
9443 fi
9444 fi
9445 if test "X$ltrpathdirs" != "X"; then
9446 for found_dir in $ltrpathdirs; do
9447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9448 done
9449 fi
9450
9451
9452
9453
9454
9455
9456
9457 am_save_CPPFLAGS="$CPPFLAGS"
9458
9459 for element in $INCICONV; do
9460 haveit=
9461 for x in $CPPFLAGS; do
9462
9463 acl_save_prefix="$prefix"
9464 prefix="$acl_final_prefix"
9465 acl_save_exec_prefix="$exec_prefix"
9466 exec_prefix="$acl_final_exec_prefix"
9467 eval x=\"$x\"
9468 exec_prefix="$acl_save_exec_prefix"
9469 prefix="$acl_save_prefix"
9470
9471 if test "X$x" = "X$element"; then
9472 haveit=yes
9473 break
9474 fi
9475 done
9476 if test -z "$haveit"; then
9477 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9478 fi
9479 done
9480
9481
9482 echo "$as_me:$LINENO: checking for iconv" >&5
9483 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9484 if test "${am_cv_func_iconv+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487
9488 am_cv_func_iconv="no, consider installing GNU libiconv"
9489 am_cv_lib_iconv=no
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 #include <stdlib.h>
9497 #include <iconv.h>
9498 int
9499 main ()
9500 {
9501 iconv_t cd = iconv_open("","");
9502 iconv(cd,NULL,NULL,NULL,NULL);
9503 iconv_close(cd);
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510 (eval $ac_link) 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -z "$ac_c_werror_flag"
9518 || test ! -s conftest.err'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; } &&
9524 { ac_try='test -s conftest$ac_exeext'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 am_cv_func_iconv=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535 fi
9536 rm -f conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 if test "$am_cv_func_iconv" != yes; then
9539 am_save_LIBS="$LIBS"
9540 LIBS="$LIBS $LIBICONV"
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 #include <stdlib.h>
9548 #include <iconv.h>
9549 int
9550 main ()
9551 {
9552 iconv_t cd = iconv_open("","");
9553 iconv(cd,NULL,NULL,NULL,NULL);
9554 iconv_close(cd);
9555 ;
9556 return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest$ac_exeext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 am_cv_lib_iconv=yes
9582 am_cv_func_iconv=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 fi
9588 rm -f conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LIBS="$am_save_LIBS"
9591 fi
9592
9593 fi
9594 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9595 echo "${ECHO_T}$am_cv_func_iconv" >&6
9596 if test "$am_cv_func_iconv" = yes; then
9597
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_ICONV 1
9600 _ACEOF
9601
9602 fi
9603 if test "$am_cv_lib_iconv" = yes; then
9604 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9605 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9606 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9607 echo "${ECHO_T}$LIBICONV" >&6
9608 else
9609 CPPFLAGS="$am_save_CPPFLAGS"
9610 LIBICONV=
9611 LTLIBICONV=
9612 fi
9613
9614
9615
9616 if test "$am_cv_func_iconv" = yes; then
9617 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9618 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9619 if test "${am_cv_proto_iconv+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629
9630 #include <stdlib.h>
9631 #include <iconv.h>
9632 extern
9633 #ifdef __cplusplus
9634 "C"
9635 #endif
9636 #if defined(__STDC__) || defined(__cplusplus)
9637 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9638 #else
9639 size_t iconv();
9640 #endif
9641
9642 int
9643 main ()
9644 {
9645
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 am_cv_proto_iconv_arg1=""
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 am_cv_proto_iconv_arg1="const"
9678 fi
9679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680 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);"
9681 fi
9682
9683 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9684 echo "$as_me:$LINENO: result: ${ac_t:-
9685 }$am_cv_proto_iconv" >&5
9686 echo "${ECHO_T}${ac_t:-
9687 }$am_cv_proto_iconv" >&6
9688
9689 cat >>confdefs.h <<_ACEOF
9690 #define ICONV_CONST $am_cv_proto_iconv_arg1
9691 _ACEOF
9692
9693 fi
9694
9695
9696 if test "x${GCC}" = xyes; then
9697
9698 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
9699
9700
9701 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
9702
9703
9704 ERROR_CFLAGS=
9705 if test "x${ENABLE_WERROR}" = xyes; then
9706 ERROR_CFLAGS='-Werror'
9707 fi
9708
9709 fi
9710
9711 if test "x${COMPILE_XMLJ}" = xyes; then
9712
9713 succeeded=no
9714
9715 if test -z "$PKG_CONFIG"; then
9716 # Extract the first word of "pkg-config", so it can be a program name with args.
9717 set dummy pkg-config; ac_word=$2
9718 echo "$as_me:$LINENO: checking for $ac_word" >&5
9719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 case $PKG_CONFIG in
9724 [\\/]* | ?:[\\/]*)
9725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9726 ;;
9727 *)
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9730 do
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9738 fi
9739 done
9740 done
9741
9742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9743 ;;
9744 esac
9745 fi
9746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9747
9748 if test -n "$PKG_CONFIG"; then
9749 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9750 echo "${ECHO_T}$PKG_CONFIG" >&6
9751 else
9752 echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9754 fi
9755
9756 fi
9757
9758 if test "$PKG_CONFIG" = "no" ; then
9759 echo "*** The pkg-config script could not be found. Make sure it is"
9760 echo "*** in your path, or set the PKG_CONFIG environment variable"
9761 echo "*** to the full path to pkg-config."
9762 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9763 else
9764 PKG_CONFIG_MIN_VERSION=0.9.0
9765 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9766 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
9767 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
9768
9769 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
9770 echo "$as_me:$LINENO: result: yes" >&5
9771 echo "${ECHO_T}yes" >&6
9772 succeeded=yes
9773
9774 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9775 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9776 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
9777 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9778 echo "${ECHO_T}$XML_CFLAGS" >&6
9779
9780 echo "$as_me:$LINENO: checking XML_LIBS" >&5
9781 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9782 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
9783 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9784 echo "${ECHO_T}$XML_LIBS" >&6
9785 else
9786 XML_CFLAGS=""
9787 XML_LIBS=""
9788 ## If we have a custom action on failure, don't print errors, but
9789 ## do set a variable so people can do so.
9790 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
9791 echo $XML_PKG_ERRORS
9792 fi
9793
9794
9795
9796 else
9797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9799 fi
9800 fi
9801
9802 if test $succeeded = yes; then
9803 :
9804 else
9805 { { 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
9806 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;}
9807 { (exit 1); exit 1; }; }
9808 fi
9809
9810
9811 succeeded=no
9812
9813 if test -z "$PKG_CONFIG"; then
9814 # Extract the first word of "pkg-config", so it can be a program name with args.
9815 set dummy pkg-config; ac_word=$2
9816 echo "$as_me:$LINENO: checking for $ac_word" >&5
9817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 case $PKG_CONFIG in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9824 ;;
9825 *)
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837 done
9838 done
9839
9840 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9841 ;;
9842 esac
9843 fi
9844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9845
9846 if test -n "$PKG_CONFIG"; then
9847 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9848 echo "${ECHO_T}$PKG_CONFIG" >&6
9849 else
9850 echo "$as_me:$LINENO: result: no" >&5
9851 echo "${ECHO_T}no" >&6
9852 fi
9853
9854 fi
9855
9856 if test "$PKG_CONFIG" = "no" ; then
9857 echo "*** The pkg-config script could not be found. Make sure it is"
9858 echo "*** in your path, or set the PKG_CONFIG environment variable"
9859 echo "*** to the full path to pkg-config."
9860 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9861 else
9862 PKG_CONFIG_MIN_VERSION=0.9.0
9863 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9864 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
9865 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
9866
9867 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
9868 echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6
9870 succeeded=yes
9871
9872 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
9873 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
9874 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
9875 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
9876 echo "${ECHO_T}$XSLT_CFLAGS" >&6
9877
9878 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
9879 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
9880 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
9881 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
9882 echo "${ECHO_T}$XSLT_LIBS" >&6
9883 else
9884 XSLT_CFLAGS=""
9885 XSLT_LIBS=""
9886 ## If we have a custom action on failure, don't print errors, but
9887 ## do set a variable so people can do so.
9888 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
9889 echo $XSLT_PKG_ERRORS
9890 fi
9891
9892
9893
9894 else
9895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9897 fi
9898 fi
9899
9900 if test $succeeded = yes; then
9901 :
9902 else
9903 { { 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
9904 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;}
9905 { (exit 1); exit 1; }; }
9906 fi
9907
9908
9909
9910
9911
9912 fi
9913
9914 if test "x${COMPILE_GTK_PEER}" = xyes; then
9915 echo "$as_me:$LINENO: checking for X" >&5
9916 echo $ECHO_N "checking for X... $ECHO_C" >&6
9917
9918
9919 # Check whether --with-x or --without-x was given.
9920 if test "${with_x+set}" = set; then
9921 withval="$with_x"
9922
9923 fi;
9924 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9925 if test "x$with_x" = xno; then
9926 # The user explicitly disabled X.
9927 have_x=disabled
9928 else
9929 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9930 # Both variables are already set.
9931 have_x=yes
9932 else
9933 if test "${ac_cv_have_x+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 # One or both of the vars are not set, and there is no cached value.
9937 ac_x_includes=no ac_x_libraries=no
9938 rm -fr conftest.dir
9939 if mkdir conftest.dir; then
9940 cd conftest.dir
9941 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9942 cat >Imakefile <<'_ACEOF'
9943 acfindx:
9944 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9945 _ACEOF
9946 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9948 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9949 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9950 for ac_extension in a so sl; do
9951 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9952 test -f $ac_im_libdir/libX11.$ac_extension; then
9953 ac_im_usrlibdir=$ac_im_libdir; break
9954 fi
9955 done
9956 # Screen out bogus values from the imake configuration. They are
9957 # bogus both because they are the default anyway, and because
9958 # using them would break gcc on systems where it needs fixed includes.
9959 case $ac_im_incroot in
9960 /usr/include) ;;
9961 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9962 esac
9963 case $ac_im_usrlibdir in
9964 /usr/lib | /lib) ;;
9965 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9966 esac
9967 fi
9968 cd ..
9969 rm -fr conftest.dir
9970 fi
9971
9972 # Standard set of common directories for X headers.
9973 # Check X11 before X11Rn because it is often a symlink to the current release.
9974 ac_x_header_dirs='
9975 /usr/X11/include
9976 /usr/X11R6/include
9977 /usr/X11R5/include
9978 /usr/X11R4/include
9979
9980 /usr/include/X11
9981 /usr/include/X11R6
9982 /usr/include/X11R5
9983 /usr/include/X11R4
9984
9985 /usr/local/X11/include
9986 /usr/local/X11R6/include
9987 /usr/local/X11R5/include
9988 /usr/local/X11R4/include
9989
9990 /usr/local/include/X11
9991 /usr/local/include/X11R6
9992 /usr/local/include/X11R5
9993 /usr/local/include/X11R4
9994
9995 /usr/X386/include
9996 /usr/x386/include
9997 /usr/XFree86/include/X11
9998
9999 /usr/include
10000 /usr/local/include
10001 /usr/unsupported/include
10002 /usr/athena/include
10003 /usr/local/x11r5/include
10004 /usr/lpp/Xamples/include
10005
10006 /usr/openwin/include
10007 /usr/openwin/share/include'
10008
10009 if test "$ac_x_includes" = no; then
10010 # Guess where to find include files, by looking for Intrinsic.h.
10011 # First, try using that file with no special directory specified.
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 #include <X11/Intrinsic.h>
10019 _ACEOF
10020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } >/dev/null; then
10028 if test -s conftest.err; then
10029 ac_cpp_err=$ac_c_preproc_warn_flag
10030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10031 else
10032 ac_cpp_err=
10033 fi
10034 else
10035 ac_cpp_err=yes
10036 fi
10037 if test -z "$ac_cpp_err"; then
10038 # We can compile using X headers with no special include directory.
10039 ac_x_includes=
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 for ac_dir in $ac_x_header_dirs; do
10045 if test -r "$ac_dir/X11/Intrinsic.h"; then
10046 ac_x_includes=$ac_dir
10047 break
10048 fi
10049 done
10050 fi
10051 rm -f conftest.err conftest.$ac_ext
10052 fi # $ac_x_includes = no
10053
10054 if test "$ac_x_libraries" = no; then
10055 # Check for the libraries.
10056 # See if we find them without any special options.
10057 # Don't add to $LIBS permanently.
10058 ac_save_LIBS=$LIBS
10059 LIBS="-lXt $LIBS"
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <X11/Intrinsic.h>
10067 int
10068 main ()
10069 {
10070 XtMalloc (0)
10071 ;
10072 return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077 (eval $ac_link) 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 LIBS=$ac_save_LIBS
10098 # We can link X programs with no special library path.
10099 ac_x_libraries=
10100 else
10101 echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 LIBS=$ac_save_LIBS
10105 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10106 do
10107 # Don't even attempt the hair of trying to link an X program!
10108 for ac_extension in a so sl; do
10109 if test -r $ac_dir/libXt.$ac_extension; then
10110 ac_x_libraries=$ac_dir
10111 break 2
10112 fi
10113 done
10114 done
10115 fi
10116 rm -f conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 fi # $ac_x_libraries = no
10119
10120 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10121 # Didn't find X anywhere. Cache the known absence of X.
10122 ac_cv_have_x="have_x=no"
10123 else
10124 # Record where we found X for the cache.
10125 ac_cv_have_x="have_x=yes \
10126 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10127 fi
10128 fi
10129
10130 fi
10131 eval "$ac_cv_have_x"
10132 fi # $with_x != no
10133
10134 if test "$have_x" != yes; then
10135 echo "$as_me:$LINENO: result: $have_x" >&5
10136 echo "${ECHO_T}$have_x" >&6
10137 no_x=yes
10138 else
10139 # If each of the values was on the command line, it overrides each guess.
10140 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10141 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10142 # Update the cache value to reflect the command line values.
10143 ac_cv_have_x="have_x=yes \
10144 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10145 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10146 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10147 fi
10148
10149 if test "$no_x" = yes; then
10150 # Not all programs may use this symbol, but it does not hurt to define it.
10151
10152 cat >>confdefs.h <<\_ACEOF
10153 #define X_DISPLAY_MISSING 1
10154 _ACEOF
10155
10156 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10157 else
10158 if test -n "$x_includes"; then
10159 X_CFLAGS="$X_CFLAGS -I$x_includes"
10160 fi
10161
10162 # It would also be nice to do this for all -L options, not just this one.
10163 if test -n "$x_libraries"; then
10164 X_LIBS="$X_LIBS -L$x_libraries"
10165 # For Solaris; some versions of Sun CC require a space after -R and
10166 # others require no space. Words are not sufficient . . . .
10167 case `(uname -sr) 2>/dev/null` in
10168 "SunOS 5"*)
10169 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10170 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10171 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178
10179 int
10180 main ()
10181 {
10182
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag"
10197 || test ! -s conftest.err'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10209 ac_R_nospace=yes
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10213
10214 ac_R_nospace=no
10215 fi
10216 rm -f conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 if test $ac_R_nospace = yes; then
10219 echo "$as_me:$LINENO: result: no" >&5
10220 echo "${ECHO_T}no" >&6
10221 X_LIBS="$X_LIBS -R$x_libraries"
10222 else
10223 LIBS="$ac_xsave_LIBS -R $x_libraries"
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230
10231 int
10232 main ()
10233 {
10234
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext conftest$ac_exeext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 (eval $ac_link) 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -z "$ac_c_werror_flag"
10249 || test ! -s conftest.err'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_R_space=yes
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 ac_R_space=no
10267 fi
10268 rm -f conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 if test $ac_R_space = yes; then
10271 echo "$as_me:$LINENO: result: yes" >&5
10272 echo "${ECHO_T}yes" >&6
10273 X_LIBS="$X_LIBS -R $x_libraries"
10274 else
10275 echo "$as_me:$LINENO: result: neither works" >&5
10276 echo "${ECHO_T}neither works" >&6
10277 fi
10278 fi
10279 LIBS=$ac_xsave_LIBS
10280 esac
10281 fi
10282
10283 # Check for system-dependent libraries X programs must link with.
10284 # Do this before checking for the system-independent R6 libraries
10285 # (-lICE), since we may need -lsocket or whatever for X linking.
10286
10287 if test "$ISC" = yes; then
10288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10289 else
10290 # Martyn Johnson says this is needed for Ultrix, if the X
10291 # libraries were built with DECnet support. And Karl Berry says
10292 # the Alpha needs dnet_stub (dnet does not exist).
10293 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10294 cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h. */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300
10301 /* Override any gcc2 internal prototype to avoid an error. */
10302 #ifdef __cplusplus
10303 extern "C"
10304 #endif
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10307 char XOpenDisplay ();
10308 int
10309 main ()
10310 {
10311 XOpenDisplay ();
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318 (eval $ac_link) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -z "$ac_c_werror_flag"
10326 || test ! -s conftest.err'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest$ac_exeext'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; }; then
10338 :
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10344 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10345 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 ac_check_lib_save_LIBS=$LIBS
10349 LIBS="-ldnet $LIBS"
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h. */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356
10357 /* Override any gcc2 internal prototype to avoid an error. */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 /* We use char because int might match the return type of a gcc2
10362 builtin and then its argument prototype would still apply. */
10363 char dnet_ntoa ();
10364 int
10365 main ()
10366 {
10367 dnet_ntoa ();
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374 (eval $ac_link) 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag"
10382 || test ! -s conftest.err'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; } &&
10388 { ac_try='test -s conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_lib_dnet_dnet_ntoa=yes
10395 else
10396 echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ac_cv_lib_dnet_dnet_ntoa=no
10400 fi
10401 rm -f conftest.err conftest.$ac_objext \
10402 conftest$ac_exeext conftest.$ac_ext
10403 LIBS=$ac_check_lib_save_LIBS
10404 fi
10405 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10406 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10407 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10408 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10409 fi
10410
10411 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10412 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10413 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10414 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417 ac_check_lib_save_LIBS=$LIBS
10418 LIBS="-ldnet_stub $LIBS"
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10425
10426 /* Override any gcc2 internal prototype to avoid an error. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 /* We use char because int might match the return type of a gcc2
10431 builtin and then its argument prototype would still apply. */
10432 char dnet_ntoa ();
10433 int
10434 main ()
10435 {
10436 dnet_ntoa ();
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10443 (eval $ac_link) 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -z "$ac_c_werror_flag"
10451 || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest$ac_exeext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ac_cv_lib_dnet_stub_dnet_ntoa=no
10469 fi
10470 rm -f conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10473 fi
10474 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10475 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10476 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10477 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10478 fi
10479
10480 fi
10481 fi
10482 rm -f conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 LIBS="$ac_xsave_LIBS"
10485
10486 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10487 # to get the SysV transport functions.
10488 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10489 # needs -lnsl.
10490 # The nsl library prevents programs from opening the X display
10491 # on Irix 5.2, according to T.E. Dickey.
10492 # The functions gethostbyname, getservbyname, and inet_addr are
10493 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10494 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10495 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10496 if test "${ac_cv_func_gethostbyname+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10507 #define gethostbyname innocuous_gethostbyname
10508
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char gethostbyname (); below.
10511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10512 <limits.h> exists even on freestanding compilers. */
10513
10514 #ifdef __STDC__
10515 # include <limits.h>
10516 #else
10517 # include <assert.h>
10518 #endif
10519
10520 #undef gethostbyname
10521
10522 /* Override any gcc2 internal prototype to avoid an error. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 {
10526 #endif
10527 /* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10529 char gethostbyname ();
10530 /* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10534 choke me
10535 #else
10536 char (*f) () = gethostbyname;
10537 #endif
10538 #ifdef __cplusplus
10539 }
10540 #endif
10541
10542 int
10543 main ()
10544 {
10545 return f != gethostbyname;
10546 ;
10547 return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_func_gethostbyname=yes
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ac_cv_func_gethostbyname=no
10578 fi
10579 rm -f conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 fi
10582 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10583 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10584
10585 if test $ac_cv_func_gethostbyname = no; then
10586 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10587 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10588 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 ac_check_lib_save_LIBS=$LIBS
10592 LIBS="-lnsl $LIBS"
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599
10600 /* Override any gcc2 internal prototype to avoid an error. */
10601 #ifdef __cplusplus
10602 extern "C"
10603 #endif
10604 /* We use char because int might match the return type of a gcc2
10605 builtin and then its argument prototype would still apply. */
10606 char gethostbyname ();
10607 int
10608 main ()
10609 {
10610 gethostbyname ();
10611 ;
10612 return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10617 (eval $ac_link) 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag"
10625 || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest$ac_exeext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_lib_nsl_gethostbyname=yes
10638 else
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642 ac_cv_lib_nsl_gethostbyname=no
10643 fi
10644 rm -f conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10647 fi
10648 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10649 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10650 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10652 fi
10653
10654 if test $ac_cv_lib_nsl_gethostbyname = no; then
10655 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10656 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10657 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660 ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-lbsd $LIBS"
10662 cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h. */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668
10669 /* Override any gcc2 internal prototype to avoid an error. */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 /* We use char because int might match the return type of a gcc2
10674 builtin and then its argument prototype would still apply. */
10675 char gethostbyname ();
10676 int
10677 main ()
10678 {
10679 gethostbyname ();
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag"
10694 || test ! -s conftest.err'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_lib_bsd_gethostbyname=yes
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 ac_cv_lib_bsd_gethostbyname=no
10712 fi
10713 rm -f conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10716 fi
10717 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10718 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10719 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10721 fi
10722
10723 fi
10724 fi
10725
10726 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10727 # socket/setsockopt and other routines are undefined under SCO ODT
10728 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10729 # on later versions), says Simon Leinen: it contains gethostby*
10730 # variants that don't use the name server (or something). -lsocket
10731 # must be given before -lnsl if both are needed. We assume that
10732 # if connect needs -lnsl, so does gethostbyname.
10733 echo "$as_me:$LINENO: checking for connect" >&5
10734 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10735 if test "${ac_cv_func_connect+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10746 #define connect innocuous_connect
10747
10748 /* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char connect (); below.
10750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10751 <limits.h> exists even on freestanding compilers. */
10752
10753 #ifdef __STDC__
10754 # include <limits.h>
10755 #else
10756 # include <assert.h>
10757 #endif
10758
10759 #undef connect
10760
10761 /* Override any gcc2 internal prototype to avoid an error. */
10762 #ifdef __cplusplus
10763 extern "C"
10764 {
10765 #endif
10766 /* We use char because int might match the return type of a gcc2
10767 builtin and then its argument prototype would still apply. */
10768 char connect ();
10769 /* The GNU C library defines this for functions which it implements
10770 to always fail with ENOSYS. Some functions are actually named
10771 something starting with __ and the normal name is an alias. */
10772 #if defined (__stub_connect) || defined (__stub___connect)
10773 choke me
10774 #else
10775 char (*f) () = connect;
10776 #endif
10777 #ifdef __cplusplus
10778 }
10779 #endif
10780
10781 int
10782 main ()
10783 {
10784 return f != connect;
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 rm -f conftest.$ac_objext conftest$ac_exeext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791 (eval $ac_link) 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
10798 { ac_try='test -z "$ac_c_werror_flag"
10799 || test ! -s conftest.err'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_func_connect=yes
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816 ac_cv_func_connect=no
10817 fi
10818 rm -f conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 fi
10821 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10822 echo "${ECHO_T}$ac_cv_func_connect" >&6
10823
10824 if test $ac_cv_func_connect = no; then
10825 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10826 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10827 if test "${ac_cv_lib_socket_connect+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
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. */
10838
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 ();
10846 int
10847 main ()
10848 {
10849 connect ();
10850 ;
10851 return 0;
10852 }
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
10880
10881 ac_cv_lib_socket_connect=no
10882 fi
10883 rm -f conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LIBS=$ac_check_lib_save_LIBS
10886 fi
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"
10891 fi
10892
10893 fi
10894
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 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h. */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10909 #define remove innocuous_remove
10910
10911 /* System header to define __stub macros and hopefully few prototypes,
10912 which can conflict with char remove (); below.
10913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10914 <limits.h> exists even on freestanding compilers. */
10915
10916 #ifdef __STDC__
10917 # include <limits.h>
10918 #else
10919 # include <assert.h>
10920 #endif
10921
10922 #undef remove
10923
10924 /* Override any gcc2 internal prototype to avoid an error. */
10925 #ifdef __cplusplus
10926 extern "C"
10927 {
10928 #endif
10929 /* We use char because int might match the return type of a gcc2
10930 builtin and then its argument prototype would still apply. */
10931 char remove ();
10932 /* The GNU C library defines this for functions which it implements
10933 to always fail with ENOSYS. Some functions are actually named
10934 something starting with __ and the normal name is an alias. */
10935 #if defined (__stub_remove) || defined (__stub___remove)
10936 choke me
10937 #else
10938 char (*f) () = remove;
10939 #endif
10940 #ifdef __cplusplus
10941 }
10942 #endif
10943
10944 int
10945 main ()
10946 {
10947 return f != remove;
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954 (eval $ac_link) 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -z "$ac_c_werror_flag"
10962 || test ! -s conftest.err'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_func_remove=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979 ac_cv_func_remove=no
10980 fi
10981 rm -f conftest.err conftest.$ac_objext \
10982 conftest$ac_exeext conftest.$ac_ext
10983 fi
10984 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10985 echo "${ECHO_T}$ac_cv_func_remove" >&6
10986
10987 if test $ac_cv_func_remove = no; then
10988 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10989 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10990 if test "${ac_cv_lib_posix_remove+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993 ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-lposix $LIBS"
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001
11002 /* Override any gcc2 internal prototype to avoid an error. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 /* We use char because int might match the return type of a gcc2
11007 builtin and then its argument prototype would still apply. */
11008 char remove ();
11009 int
11010 main ()
11011 {
11012 remove ();
11013 ;
11014 return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019 (eval $ac_link) 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag"
11027 || test ! -s conftest.err'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_cv_lib_posix_remove=yes
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 ac_cv_lib_posix_remove=no
11045 fi
11046 rm -f conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
11051 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
11052 if test $ac_cv_lib_posix_remove = yes; then
11053 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11054 fi
11055
11056 fi
11057
11058 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11059 echo "$as_me:$LINENO: checking for shmat" >&5
11060 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
11061 if test "${ac_cv_func_shmat+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
11071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11072 #define shmat innocuous_shmat
11073
11074 /* System header to define __stub macros and hopefully few prototypes,
11075 which can conflict with char shmat (); below.
11076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11077 <limits.h> exists even on freestanding compilers. */
11078
11079 #ifdef __STDC__
11080 # include <limits.h>
11081 #else
11082 # include <assert.h>
11083 #endif
11084
11085 #undef shmat
11086
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 #ifdef __cplusplus
11089 extern "C"
11090 {
11091 #endif
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11094 char shmat ();
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined (__stub_shmat) || defined (__stub___shmat)
11099 choke me
11100 #else
11101 char (*f) () = shmat;
11102 #endif
11103 #ifdef __cplusplus
11104 }
11105 #endif
11106
11107 int
11108 main ()
11109 {
11110 return f != shmat;
11111 ;
11112 return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag"
11125 || test ! -s conftest.err'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; } &&
11131 { ac_try='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_cv_func_shmat=yes
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 ac_cv_func_shmat=no
11143 fi
11144 rm -f conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 fi
11147 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11148 echo "${ECHO_T}$ac_cv_func_shmat" >&6
11149
11150 if test $ac_cv_func_shmat = no; then
11151 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11152 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11153 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 ac_check_lib_save_LIBS=$LIBS
11157 LIBS="-lipc $LIBS"
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164
11165 /* Override any gcc2 internal prototype to avoid an error. */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 /* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11171 char shmat ();
11172 int
11173 main ()
11174 {
11175 shmat ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182 (eval $ac_link) 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -z "$ac_c_werror_flag"
11190 || test ! -s conftest.err'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 ac_cv_lib_ipc_shmat=yes
11203 else
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 ac_cv_lib_ipc_shmat=no
11208 fi
11209 rm -f conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11212 fi
11213 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11214 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11215 if test $ac_cv_lib_ipc_shmat = yes; then
11216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11217 fi
11218
11219 fi
11220 fi
11221
11222 # Check for libraries that X11R6 Xt/Xaw programs need.
11223 ac_save_LDFLAGS=$LDFLAGS
11224 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11225 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11226 # check for ICE first), but we must link in the order -lSM -lICE or
11227 # we get undefined symbols. So assume we have SM if we have ICE.
11228 # These have to be linked with before -lX11, unlike the other
11229 # libraries we check for below, so use a different variable.
11230 # John Interrante, Karl Berry
11231 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11232 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11233 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244
11245 /* Override any gcc2 internal prototype to avoid an error. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 /* We use char because int might match the return type of a gcc2
11250 builtin and then its argument prototype would still apply. */
11251 char IceConnectionNumber ();
11252 int
11253 main ()
11254 {
11255 IceConnectionNumber ();
11256 ;
11257 return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_lib_ICE_IceConnectionNumber=yes
11283 else
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_lib_ICE_IceConnectionNumber=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11294 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11295 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11296 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11297 fi
11298
11299 LDFLAGS=$ac_save_LDFLAGS
11300
11301 fi
11302
11303 if test "$no_x" = yes; then
11304 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
11305 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
11306 { (exit 1); exit 1; }; }
11307 fi
11308 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
11309 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
11310 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313 ac_check_lib_save_LIBS=$LIBS
11314 LIBS="-lXtst ${X_LIBS} $LIBS"
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321
11322 /* Override any gcc2 internal prototype to avoid an error. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11328 char XTestQueryExtension ();
11329 int
11330 main ()
11331 {
11332 XTestQueryExtension ();
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339 (eval $ac_link) 2>conftest.er1
11340 ac_status=$?
11341 grep -v '^ *+' conftest.er1 >conftest.err
11342 rm -f conftest.er1
11343 cat conftest.err >&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } &&
11346 { ac_try='test -z "$ac_c_werror_flag"
11347 || test ! -s conftest.err'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest$ac_exeext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 ac_cv_lib_Xtst_XTestQueryExtension=yes
11360 else
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_lib_Xtst_XTestQueryExtension=no
11365 fi
11366 rm -f conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
11371 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
11372 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
11373 XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
11374 else
11375 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
11376 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
11377 { (exit 1); exit 1; }; }
11378 fi
11379
11380
11381
11382 succeeded=no
11383
11384 if test -z "$PKG_CONFIG"; then
11385 # Extract the first word of "pkg-config", so it can be a program name with args.
11386 set dummy pkg-config; ac_word=$2
11387 echo "$as_me:$LINENO: checking for $ac_word" >&5
11388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11389 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392 case $PKG_CONFIG in
11393 [\\/]* | ?:[\\/]*)
11394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11395 ;;
11396 *)
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11399 do
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11407 fi
11408 done
11409 done
11410
11411 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11412 ;;
11413 esac
11414 fi
11415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11416
11417 if test -n "$PKG_CONFIG"; then
11418 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11419 echo "${ECHO_T}$PKG_CONFIG" >&6
11420 else
11421 echo "$as_me:$LINENO: result: no" >&5
11422 echo "${ECHO_T}no" >&6
11423 fi
11424
11425 fi
11426
11427 if test "$PKG_CONFIG" = "no" ; then
11428 echo "*** The pkg-config script could not be found. Make sure it is"
11429 echo "*** in your path, or set the PKG_CONFIG environment variable"
11430 echo "*** to the full path to pkg-config."
11431 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11432 else
11433 PKG_CONFIG_MIN_VERSION=0.9.0
11434 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11435 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
11436 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
11437
11438 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
11439 echo "$as_me:$LINENO: result: yes" >&5
11440 echo "${ECHO_T}yes" >&6
11441 succeeded=yes
11442
11443 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11444 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
11445 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11446 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11447 echo "${ECHO_T}$GTK_CFLAGS" >&6
11448
11449 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11450 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
11451 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11452 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11453 echo "${ECHO_T}$GTK_LIBS" >&6
11454 else
11455 GTK_CFLAGS=""
11456 GTK_LIBS=""
11457 ## If we have a custom action on failure, don't print errors, but
11458 ## do set a variable so people can do so.
11459 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11460 echo $GTK_PKG_ERRORS
11461 fi
11462
11463
11464
11465 else
11466 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11467 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11468 fi
11469 fi
11470
11471 if test $succeeded = yes; then
11472 :
11473 else
11474 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.8 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
11475 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.8 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;}
11476 { (exit 1); exit 1; }; }
11477 fi
11478
11479
11480 succeeded=no
11481
11482 if test -z "$PKG_CONFIG"; then
11483 # Extract the first word of "pkg-config", so it can be a program name with args.
11484 set dummy pkg-config; ac_word=$2
11485 echo "$as_me:$LINENO: checking for $ac_word" >&5
11486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11487 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490 case $PKG_CONFIG in
11491 [\\/]* | ?:[\\/]*)
11492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11493 ;;
11494 *)
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11505 fi
11506 done
11507 done
11508
11509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11510 ;;
11511 esac
11512 fi
11513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11514
11515 if test -n "$PKG_CONFIG"; then
11516 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11517 echo "${ECHO_T}$PKG_CONFIG" >&6
11518 else
11519 echo "$as_me:$LINENO: result: no" >&5
11520 echo "${ECHO_T}no" >&6
11521 fi
11522
11523 fi
11524
11525 if test "$PKG_CONFIG" = "no" ; then
11526 echo "*** The pkg-config script could not be found. Make sure it is"
11527 echo "*** in your path, or set the PKG_CONFIG environment variable"
11528 echo "*** to the full path to pkg-config."
11529 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11530 else
11531 PKG_CONFIG_MIN_VERSION=0.9.0
11532 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11533 echo "$as_me:$LINENO: checking for freetype2" >&5
11534 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
11535
11536 if $PKG_CONFIG --exists "freetype2" ; then
11537 echo "$as_me:$LINENO: result: yes" >&5
11538 echo "${ECHO_T}yes" >&6
11539 succeeded=yes
11540
11541 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11542 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
11543 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
11544 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11545 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
11546
11547 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11548 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
11549 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
11550 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11551 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
11552 else
11553 FREETYPE2_CFLAGS=""
11554 FREETYPE2_LIBS=""
11555 ## If we have a custom action on failure, don't print errors, but
11556 ## do set a variable so people can do so.
11557 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11558 echo $FREETYPE2_PKG_ERRORS
11559 fi
11560
11561
11562
11563 else
11564 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11565 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11566 fi
11567 fi
11568
11569 if test $succeeded = yes; then
11570 :
11571 else
11572 { { 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
11573 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;}
11574 { (exit 1); exit 1; }; }
11575 fi
11576
11577
11578 succeeded=no
11579
11580 if test -z "$PKG_CONFIG"; then
11581 # Extract the first word of "pkg-config", so it can be a program name with args.
11582 set dummy pkg-config; ac_word=$2
11583 echo "$as_me:$LINENO: checking for $ac_word" >&5
11584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11585 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588 case $PKG_CONFIG in
11589 [\\/]* | ?:[\\/]*)
11590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11591 ;;
11592 *)
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11595 do
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11603 fi
11604 done
11605 done
11606
11607 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11608 ;;
11609 esac
11610 fi
11611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11612
11613 if test -n "$PKG_CONFIG"; then
11614 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11615 echo "${ECHO_T}$PKG_CONFIG" >&6
11616 else
11617 echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6
11619 fi
11620
11621 fi
11622
11623 if test "$PKG_CONFIG" = "no" ; then
11624 echo "*** The pkg-config script could not be found. Make sure it is"
11625 echo "*** in your path, or set the PKG_CONFIG environment variable"
11626 echo "*** to the full path to pkg-config."
11627 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11628 else
11629 PKG_CONFIG_MIN_VERSION=0.9.0
11630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11631 echo "$as_me:$LINENO: checking for pangoft2" >&5
11632 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
11633
11634 if $PKG_CONFIG --exists "pangoft2" ; then
11635 echo "$as_me:$LINENO: result: yes" >&5
11636 echo "${ECHO_T}yes" >&6
11637 succeeded=yes
11638
11639 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
11640 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
11641 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11642 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
11643 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
11644
11645 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
11646 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
11647 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11648 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
11649 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
11650 else
11651 PANGOFT2_CFLAGS=""
11652 PANGOFT2_LIBS=""
11653 ## If we have a custom action on failure, don't print errors, but
11654 ## do set a variable so people can do so.
11655 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11656 echo $PANGOFT2_PKG_ERRORS
11657 fi
11658
11659
11660
11661 else
11662 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11663 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11664 fi
11665 fi
11666
11667 if test $succeeded = yes; then
11668 :
11669 else
11670 { { 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
11671 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;}
11672 { (exit 1); exit 1; }; }
11673 fi
11674
11675 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
11676 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
11677 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-lXrender ${X_LIBS} $LIBS"
11682 cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h. */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688
11689 /* Override any gcc2 internal prototype to avoid an error. */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11695 char XRenderQueryExtension ();
11696 int
11697 main ()
11698 {
11699 XRenderQueryExtension ();
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11727 else
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 ac_cv_lib_Xrender_XRenderQueryExtension=no
11732 fi
11733 rm -f conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11738 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
11739 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
11740
11741 cat >>confdefs.h <<\_ACEOF
11742 #define HAVE_XRENDER 1
11743 _ACEOF
11744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
11745 else
11746 true
11747 fi
11748
11749
11750 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
11751 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
11752 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-lXrandr ${X_LIBS} $LIBS"
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763
11764 /* Override any gcc2 internal prototype to avoid an error. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11770 char XRRQueryExtension ();
11771 int
11772 main ()
11773 {
11774 XRRQueryExtension ();
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_lib_Xrandr_XRRQueryExtension=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_cv_lib_Xrandr_XRRQueryExtension=no
11807 fi
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11811 fi
11812 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
11813 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
11814 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
11815
11816 cat >>confdefs.h <<\_ACEOF
11817 #define HAVE_XRANDR 1
11818 _ACEOF
11819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
11820 else
11821 true
11822 fi
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832 fi
11833
11834 if test "x${COMPILE_QT_PEER}" = xyes; then
11835
11836 succeeded=no
11837
11838 if test -z "$PKG_CONFIG"; then
11839 # Extract the first word of "pkg-config", so it can be a program name with args.
11840 set dummy pkg-config; ac_word=$2
11841 echo "$as_me:$LINENO: checking for $ac_word" >&5
11842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846 case $PKG_CONFIG in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11849 ;;
11850 *)
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11861 fi
11862 done
11863 done
11864
11865 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11866 ;;
11867 esac
11868 fi
11869 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11870
11871 if test -n "$PKG_CONFIG"; then
11872 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11873 echo "${ECHO_T}$PKG_CONFIG" >&6
11874 else
11875 echo "$as_me:$LINENO: result: no" >&5
11876 echo "${ECHO_T}no" >&6
11877 fi
11878
11879 fi
11880
11881 if test "$PKG_CONFIG" = "no" ; then
11882 echo "*** The pkg-config script could not be found. Make sure it is"
11883 echo "*** in your path, or set the PKG_CONFIG environment variable"
11884 echo "*** to the full path to pkg-config."
11885 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11886 else
11887 PKG_CONFIG_MIN_VERSION=0.9.0
11888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11889 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
11890 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
11891
11892 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
11893 echo "$as_me:$LINENO: result: yes" >&5
11894 echo "${ECHO_T}yes" >&6
11895 succeeded=yes
11896
11897 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
11898 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
11899 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
11900 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
11901 echo "${ECHO_T}$QT_CFLAGS" >&6
11902
11903 echo "$as_me:$LINENO: checking QT_LIBS" >&5
11904 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
11905 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
11906 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
11907 echo "${ECHO_T}$QT_LIBS" >&6
11908 else
11909 QT_CFLAGS=""
11910 QT_LIBS=""
11911 ## If we have a custom action on failure, don't print errors, but
11912 ## do set a variable so people can do so.
11913 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
11914
11915 fi
11916
11917
11918
11919 else
11920 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11921 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11922 fi
11923 fi
11924
11925 if test $succeeded = yes; then
11926 HAVE_QT4="yes"
11927 else
11928 HAVE_QT4="no"
11929 fi
11930
11931 if test "x$HAVE_QT4" = "xyes"; then
11932 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
11933 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
11934 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11935 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
11936 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11937 if eval "test \"\${$as_ac_File+set}\" = set"; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940 test "$cross_compiling" = yes &&
11941 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11942 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11943 { (exit 1); exit 1; }; }
11944 if test -r "$QT_INCLUDE_DIR/QWidget"; then
11945 eval "$as_ac_File=yes"
11946 else
11947 eval "$as_ac_File=no"
11948 fi
11949 fi
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11952 if test `eval echo '${'$as_ac_File'}'` = yes; then
11953 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
11954 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
11955 else
11956 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
11957 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
11958 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
11959 if eval "test \"\${$as_ac_File+set}\" = set"; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 test "$cross_compiling" = yes &&
11963 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11964 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11965 { (exit 1); exit 1; }; }
11966 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
11967 eval "$as_ac_File=yes"
11968 else
11969 eval "$as_ac_File=no"
11970 fi
11971 fi
11972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11973 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11974 if test `eval echo '${'$as_ac_File'}'` = yes; then
11975 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
11976 else
11977 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
11978 echo "$as_me: WARNING: QWidget not found" >&2;}
11979 fi
11980
11981 fi
11982
11983 # Extract the first word of "moc", so it can be a program name with args.
11984 set dummy moc; ac_word=$2
11985 echo "$as_me:$LINENO: checking for $ac_word" >&5
11986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11987 if test "${ac_cv_prog_MOC+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 if test -n "$MOC"; then
11991 ac_cv_prog_MOC="$MOC" # Let the user override the test.
11992 else
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994 for as_dir in $PATH
11995 do
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
11999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12000 ac_cv_prog_MOC="moc"
12001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12003 fi
12004 done
12005 done
12006
12007 fi
12008 fi
12009 MOC=$ac_cv_prog_MOC
12010 if test -n "$MOC"; then
12011 echo "$as_me:$LINENO: result: $MOC" >&5
12012 echo "${ECHO_T}$MOC" >&6
12013 else
12014 echo "$as_me:$LINENO: result: no" >&5
12015 echo "${ECHO_T}no" >&6
12016 fi
12017
12018 fi
12019 if test "x$HAVE_QT4" = "xno"; then
12020 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
12021 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
12022 case "$host_os" in
12023 darwin*)
12024
12025 # Check whether --with-qt4dir or --without-qt4dir was given.
12026 if test "${with_qt4dir+set}" = set; then
12027 withval="$with_qt4dir"
12028 QT4DIR=$withval
12029
12030 fi;
12031 if test x"$QT4DIR" = x ; then
12032 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
12033 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
12034 { (exit 1); exit 1; }; }
12035 fi
12036 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
12037 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
12038 # Extract the first word of "moc", so it can be a program name with args.
12039 set dummy moc; ac_word=$2
12040 echo "$as_me:$LINENO: checking for $ac_word" >&5
12041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12042 if test "${ac_cv_prog_MOC+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 if test -n "$MOC"; then
12046 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12047 else
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $QT4DIR/bin
12050 do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_MOC="$QT4DIR/bin/moc"
12056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059 done
12060 done
12061
12062 fi
12063 fi
12064 MOC=$ac_cv_prog_MOC
12065 if test -n "$MOC"; then
12066 echo "$as_me:$LINENO: result: $MOC" >&5
12067 echo "${ECHO_T}$MOC" >&6
12068 else
12069 echo "$as_me:$LINENO: result: no" >&5
12070 echo "${ECHO_T}no" >&6
12071 fi
12072
12073 if test x"$MOC" = x; then
12074 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
12075 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
12076 { (exit 1); exit 1; }; }
12077 fi
12078 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
12079 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
12080 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
12081 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
12082 ;;
12083 *)
12084 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
12085 of your installed Qt4 installation." >&5
12086 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
12087 of your installed Qt4 installation." >&2;}
12088 { (exit 1); exit 1; }; }
12089 ;;
12090 esac
12091 fi
12092 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
12093 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
12094
12095
12096 fi
12097
12098 if test "x${COMPILE_PLUGIN}" = xyes; then
12099
12100 succeeded=no
12101
12102 if test -z "$PKG_CONFIG"; then
12103 # Extract the first word of "pkg-config", so it can be a program name with args.
12104 set dummy pkg-config; ac_word=$2
12105 echo "$as_me:$LINENO: checking for $ac_word" >&5
12106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12107 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 else
12110 case $PKG_CONFIG in
12111 [\\/]* | ?:[\\/]*)
12112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12113 ;;
12114 *)
12115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116 for as_dir in $PATH
12117 do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
12121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 break 2
12125 fi
12126 done
12127 done
12128
12129 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12130 ;;
12131 esac
12132 fi
12133 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12134
12135 if test -n "$PKG_CONFIG"; then
12136 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12137 echo "${ECHO_T}$PKG_CONFIG" >&6
12138 else
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12141 fi
12142
12143 fi
12144
12145 if test "$PKG_CONFIG" = "no" ; then
12146 echo "*** The pkg-config script could not be found. Make sure it is"
12147 echo "*** in your path, or set the PKG_CONFIG environment variable"
12148 echo "*** to the full path to pkg-config."
12149 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12150 else
12151 PKG_CONFIG_MIN_VERSION=0.9.0
12152 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12153 echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
12154 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
12155
12156 if $PKG_CONFIG --exists "mozilla-plugin" ; then
12157 echo "$as_me:$LINENO: result: yes" >&5
12158 echo "${ECHO_T}yes" >&6
12159 succeeded=yes
12160
12161 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12162 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12163 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
12164 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12165 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12166
12167 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12168 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12169 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
12170 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12171 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12172 else
12173 MOZILLA_CFLAGS=""
12174 MOZILLA_LIBS=""
12175 ## If we have a custom action on failure, don't print errors, but
12176 ## do set a variable so people can do so.
12177 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
12178
12179 fi
12180
12181
12182
12183 else
12184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12186 fi
12187 fi
12188
12189 if test $succeeded = yes; then
12190 MOZILLA_FOUND=yes
12191 else
12192 MOZILLA_FOUND=no
12193 fi
12194
12195 if test "x${MOZILLA_FOUND}" = xno; then
12196
12197 succeeded=no
12198
12199 if test -z "$PKG_CONFIG"; then
12200 # Extract the first word of "pkg-config", so it can be a program name with args.
12201 set dummy pkg-config; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 case $PKG_CONFIG in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12210 ;;
12211 *)
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12214 do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12222 fi
12223 done
12224 done
12225
12226 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12227 ;;
12228 esac
12229 fi
12230 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12231
12232 if test -n "$PKG_CONFIG"; then
12233 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12234 echo "${ECHO_T}$PKG_CONFIG" >&6
12235 else
12236 echo "$as_me:$LINENO: result: no" >&5
12237 echo "${ECHO_T}no" >&6
12238 fi
12239
12240 fi
12241
12242 if test "$PKG_CONFIG" = "no" ; then
12243 echo "*** The pkg-config script could not be found. Make sure it is"
12244 echo "*** in your path, or set the PKG_CONFIG environment variable"
12245 echo "*** to the full path to pkg-config."
12246 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12247 else
12248 PKG_CONFIG_MIN_VERSION=0.9.0
12249 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12250 echo "$as_me:$LINENO: checking for firefox-plugin" >&5
12251 echo $ECHO_N "checking for firefox-plugin... $ECHO_C" >&6
12252
12253 if $PKG_CONFIG --exists "firefox-plugin" ; then
12254 echo "$as_me:$LINENO: result: yes" >&5
12255 echo "${ECHO_T}yes" >&6
12256 succeeded=yes
12257
12258 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12259 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12260 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin"`
12261 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12262 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12263
12264 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12265 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12266 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin"`
12267 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12268 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12269 else
12270 MOZILLA_CFLAGS=""
12271 MOZILLA_LIBS=""
12272 ## If we have a custom action on failure, don't print errors, but
12273 ## do set a variable so people can do so.
12274 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin"`
12275
12276 fi
12277
12278
12279
12280 else
12281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12283 fi
12284 fi
12285
12286 if test $succeeded = yes; then
12287 MOZILLA_FOUND=yes
12288 else
12289 MOZILLA_FOUND=no
12290 fi
12291
12292 fi
12293 if test "x${MOZILLA_FOUND}" = xno; then
12294
12295 succeeded=no
12296
12297 if test -z "$PKG_CONFIG"; then
12298 # Extract the first word of "pkg-config", so it can be a program name with args.
12299 set dummy pkg-config; ac_word=$2
12300 echo "$as_me:$LINENO: checking for $ac_word" >&5
12301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 case $PKG_CONFIG in
12306 [\\/]* | ?:[\\/]*)
12307 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12308 ;;
12309 *)
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12312 do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321 done
12322 done
12323
12324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12325 ;;
12326 esac
12327 fi
12328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12329
12330 if test -n "$PKG_CONFIG"; then
12331 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12332 echo "${ECHO_T}$PKG_CONFIG" >&6
12333 else
12334 echo "$as_me:$LINENO: result: no" >&5
12335 echo "${ECHO_T}no" >&6
12336 fi
12337
12338 fi
12339
12340 if test "$PKG_CONFIG" = "no" ; then
12341 echo "*** The pkg-config script could not be found. Make sure it is"
12342 echo "*** in your path, or set the PKG_CONFIG environment variable"
12343 echo "*** to the full path to pkg-config."
12344 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12345 else
12346 PKG_CONFIG_MIN_VERSION=0.9.0
12347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12348 echo "$as_me:$LINENO: checking for xulrunner-plugin" >&5
12349 echo $ECHO_N "checking for xulrunner-plugin... $ECHO_C" >&6
12350
12351 if $PKG_CONFIG --exists "xulrunner-plugin" ; then
12352 echo "$as_me:$LINENO: result: yes" >&5
12353 echo "${ECHO_T}yes" >&6
12354 succeeded=yes
12355
12356 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12357 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12358 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin"`
12359 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12360 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12361
12362 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12363 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12364 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin"`
12365 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12366 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12367 else
12368 MOZILLA_CFLAGS=""
12369 MOZILLA_LIBS=""
12370 ## If we have a custom action on failure, don't print errors, but
12371 ## do set a variable so people can do so.
12372 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin"`
12373
12374 fi
12375
12376
12377
12378 else
12379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12381 fi
12382 fi
12383
12384 if test $succeeded = yes; then
12385 MOZILLA_FOUND=yes
12386 else
12387 MOZILLA_FOUND=no
12388 fi
12389
12390 fi
12391
12392 succeeded=no
12393
12394 if test -z "$PKG_CONFIG"; then
12395 # Extract the first word of "pkg-config", so it can be a program name with args.
12396 set dummy pkg-config; ac_word=$2
12397 echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12399 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 case $PKG_CONFIG in
12403 [\\/]* | ?:[\\/]*)
12404 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12405 ;;
12406 *)
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12409 do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12414 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 break 2
12417 fi
12418 done
12419 done
12420
12421 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12422 ;;
12423 esac
12424 fi
12425 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12426
12427 if test -n "$PKG_CONFIG"; then
12428 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12429 echo "${ECHO_T}$PKG_CONFIG" >&6
12430 else
12431 echo "$as_me:$LINENO: result: no" >&5
12432 echo "${ECHO_T}no" >&6
12433 fi
12434
12435 fi
12436
12437 if test "$PKG_CONFIG" = "no" ; then
12438 echo "*** The pkg-config script could not be found. Make sure it is"
12439 echo "*** in your path, or set the PKG_CONFIG environment variable"
12440 echo "*** to the full path to pkg-config."
12441 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12442 else
12443 PKG_CONFIG_MIN_VERSION=0.9.0
12444 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12445 echo "$as_me:$LINENO: checking for glib-2.0" >&5
12446 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
12447
12448 if $PKG_CONFIG --exists "glib-2.0" ; then
12449 echo "$as_me:$LINENO: result: yes" >&5
12450 echo "${ECHO_T}yes" >&6
12451 succeeded=yes
12452
12453 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12454 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12455 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
12456 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12457 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12458
12459 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12460 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12461 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
12462 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12463 echo "${ECHO_T}$GLIB_LIBS" >&6
12464 else
12465 GLIB_CFLAGS=""
12466 GLIB_LIBS=""
12467 ## If we have a custom action on failure, don't print errors, but
12468 ## do set a variable so people can do so.
12469 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
12470 echo $GLIB_PKG_ERRORS
12471 fi
12472
12473
12474
12475 else
12476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12478 fi
12479 fi
12480
12481 if test $succeeded = yes; then
12482 :
12483 else
12484 { { echo "$as_me:$LINENO: error: Library requirements (glib-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
12485 echo "$as_me: error: Library requirements (glib-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;}
12486 { (exit 1); exit 1; }; }
12487 fi
12488
12489
12490
12491
12492
12493
12494
12495 PLUGIN_DIR=$HOME/.mozilla/plugins/
12496
12497 fi
12498 fi
12499
12500
12501
12502 # Check whether --with-javah or --without-javah was given.
12503 if test "${with_javah+set}" = set; then
12504 withval="$with_javah"
12505
12506 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12507
12508 if test "x${withval}" != x; then
12509 if test -f "${withval}"; then
12510 USER_JAVAH="${withval}"
12511 else
12512 # Extract the first word of ""${withval}"", so it can be a program name with args.
12513 set dummy "${withval}"; ac_word=$2
12514 echo "$as_me:$LINENO: checking for $ac_word" >&5
12515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12516 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 case $USER_JAVAH in
12520 [\\/]* | ?:[\\/]*)
12521 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12522 ;;
12523 *)
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12534 fi
12535 done
12536 done
12537
12538 ;;
12539 esac
12540 fi
12541 USER_JAVAH=$ac_cv_path_USER_JAVAH
12542
12543 if test -n "$USER_JAVAH"; then
12544 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12545 echo "${ECHO_T}$USER_JAVAH" >&6
12546 else
12547 echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6
12549 fi
12550
12551 fi
12552 else
12553 for javah_name in gcjh javah; do
12554 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12555 set dummy "$javah_name"; ac_word=$2
12556 echo "$as_me:$LINENO: checking for $ac_word" >&5
12557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12558 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 case $USER_JAVAH in
12562 [\\/]* | ?:[\\/]*)
12563 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12564 ;;
12565 *)
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12568 do
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12576 fi
12577 done
12578 done
12579
12580 ;;
12581 esac
12582 fi
12583 USER_JAVAH=$ac_cv_path_USER_JAVAH
12584
12585 if test -n "$USER_JAVAH"; then
12586 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12587 echo "${ECHO_T}$USER_JAVAH" >&6
12588 else
12589 echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6
12591 fi
12592
12593 if test "x${USER_JAVAH}" != x; then
12594 break
12595 fi
12596 done
12597 fi
12598
12599 # if test "x${USER_JAVAH}" = x; then
12600 # echo "configure: cannot find javah" 1>&2
12601 # exit 1
12602 # fi
12603
12604 else
12605
12606 if test "x" != x; then
12607 if test -f ""; then
12608 USER_JAVAH=""
12609 else
12610 # Extract the first word of """", so it can be a program name with args.
12611 set dummy ""; ac_word=$2
12612 echo "$as_me:$LINENO: checking for $ac_word" >&5
12613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12614 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 else
12617 case $USER_JAVAH in
12618 [\\/]* | ?:[\\/]*)
12619 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12620 ;;
12621 *)
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12632 fi
12633 done
12634 done
12635
12636 ;;
12637 esac
12638 fi
12639 USER_JAVAH=$ac_cv_path_USER_JAVAH
12640
12641 if test -n "$USER_JAVAH"; then
12642 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12643 echo "${ECHO_T}$USER_JAVAH" >&6
12644 else
12645 echo "$as_me:$LINENO: result: no" >&5
12646 echo "${ECHO_T}no" >&6
12647 fi
12648
12649 fi
12650 else
12651 for javah_name in gcjh javah; do
12652 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12653 set dummy "$javah_name"; ac_word=$2
12654 echo "$as_me:$LINENO: checking for $ac_word" >&5
12655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12656 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 case $USER_JAVAH in
12660 [\\/]* | ?:[\\/]*)
12661 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12662 ;;
12663 *)
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12666 do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675 done
12676 done
12677
12678 ;;
12679 esac
12680 fi
12681 USER_JAVAH=$ac_cv_path_USER_JAVAH
12682
12683 if test -n "$USER_JAVAH"; then
12684 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12685 echo "${ECHO_T}$USER_JAVAH" >&6
12686 else
12687 echo "$as_me:$LINENO: result: no" >&5
12688 echo "${ECHO_T}no" >&6
12689 fi
12690
12691 if test "x${USER_JAVAH}" != x; then
12692 break
12693 fi
12694 done
12695 fi
12696
12697 # if test "x${USER_JAVAH}" = x; then
12698 # echo "configure: cannot find javah" 1>&2
12699 # exit 1
12700 # fi
12701
12702 fi
12703
12704 else
12705
12706
12707 if test "x" != x; then
12708 if test -f ""; then
12709 USER_JAVAH=""
12710 else
12711 # Extract the first word of """", so it can be a program name with args.
12712 set dummy ""; ac_word=$2
12713 echo "$as_me:$LINENO: checking for $ac_word" >&5
12714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12715 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718 case $USER_JAVAH in
12719 [\\/]* | ?:[\\/]*)
12720 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12721 ;;
12722 *)
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12725 do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734 done
12735 done
12736
12737 ;;
12738 esac
12739 fi
12740 USER_JAVAH=$ac_cv_path_USER_JAVAH
12741
12742 if test -n "$USER_JAVAH"; then
12743 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12744 echo "${ECHO_T}$USER_JAVAH" >&6
12745 else
12746 echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6
12748 fi
12749
12750 fi
12751 else
12752 for javah_name in gcjh javah; do
12753 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12754 set dummy "$javah_name"; ac_word=$2
12755 echo "$as_me:$LINENO: checking for $ac_word" >&5
12756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12757 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760 case $USER_JAVAH in
12761 [\\/]* | ?:[\\/]*)
12762 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12763 ;;
12764 *)
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778
12779 ;;
12780 esac
12781 fi
12782 USER_JAVAH=$ac_cv_path_USER_JAVAH
12783
12784 if test -n "$USER_JAVAH"; then
12785 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12786 echo "${ECHO_T}$USER_JAVAH" >&6
12787 else
12788 echo "$as_me:$LINENO: result: no" >&5
12789 echo "${ECHO_T}no" >&6
12790 fi
12791
12792 if test "x${USER_JAVAH}" != x; then
12793 break
12794 fi
12795 done
12796 fi
12797
12798 # if test "x${USER_JAVAH}" = x; then
12799 # echo "configure: cannot find javah" 1>&2
12800 # exit 1
12801 # fi
12802
12803
12804 fi;
12805
12806
12807 if test "x${USER_JAVAH}" != x; then
12808 USER_SPECIFIED_JAVAH_TRUE=
12809 USER_SPECIFIED_JAVAH_FALSE='#'
12810 else
12811 USER_SPECIFIED_JAVAH_TRUE='#'
12812 USER_SPECIFIED_JAVAH_FALSE=
12813 fi
12814
12815
12816
12817
12818 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
12819
12820
12821 if test "x${COMPILE_JNI}" = xyes; then
12822 echo "$as_me:$LINENO: checking jni_md.h support" >&5
12823 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
12824 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
12825 echo "$as_me:$LINENO: result: yes" >&5
12826 echo "${ECHO_T}yes" >&6
12827 else
12828 target_cpu=x86
12829 target_os=linux-gnu
12830 { echo "$as_me:$LINENO: WARNING: no" >&5
12831 echo "$as_me: WARNING: no" >&2;}
12832 fi
12833 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
12834 ac_dests="include/jni_md.h"
12835 while test -n "$ac_sources"; do
12836 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
12837 set $ac_sources; ac_source=$1; shift; ac_sources=$*
12838 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
12839 done
12840 ac_config_links="$ac_config_links $ac_config_links_1"
12841
12842 fi
12843
12844
12845 user_specified_javac=
12846
12847
12848
12849 # Check whether --with-gcj or --without-gcj was given.
12850 if test "${with_gcj+set}" = set; then
12851 withval="$with_gcj"
12852
12853 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12854
12855 if test "x${withval}" != x; then
12856 if test -f "${withval}"; then
12857 GCJ="${withval}"
12858 else
12859 # Extract the first word of ""${withval}"", so it can be a program name with args.
12860 set dummy "${withval}"; ac_word=$2
12861 echo "$as_me:$LINENO: checking for $ac_word" >&5
12862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12863 if test "${ac_cv_path_GCJ+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 case $GCJ in
12867 [\\/]* | ?:[\\/]*)
12868 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12869 ;;
12870 *)
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12873 do
12874 IFS=$as_save_IFS
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12878 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12881 fi
12882 done
12883 done
12884
12885 ;;
12886 esac
12887 fi
12888 GCJ=$ac_cv_path_GCJ
12889
12890 if test -n "$GCJ"; then
12891 echo "$as_me:$LINENO: result: $GCJ" >&5
12892 echo "${ECHO_T}$GCJ" >&6
12893 else
12894 echo "$as_me:$LINENO: result: no" >&5
12895 echo "${ECHO_T}no" >&6
12896 fi
12897
12898 fi
12899 else
12900 # Extract the first word of ""gcj"", so it can be a program name with args.
12901 set dummy "gcj"; ac_word=$2
12902 echo "$as_me:$LINENO: checking for $ac_word" >&5
12903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12904 if test "${ac_cv_path_GCJ+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907 case $GCJ in
12908 [\\/]* | ?:[\\/]*)
12909 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12910 ;;
12911 *)
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in $PATH
12914 do
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12919 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923 done
12924 done
12925
12926 ;;
12927 esac
12928 fi
12929 GCJ=$ac_cv_path_GCJ
12930
12931 if test -n "$GCJ"; then
12932 echo "$as_me:$LINENO: result: $GCJ" >&5
12933 echo "${ECHO_T}$GCJ" >&6
12934 else
12935 echo "$as_me:$LINENO: result: no" >&5
12936 echo "${ECHO_T}no" >&6
12937 fi
12938
12939 fi
12940 if test "x$GCJ" != x; then
12941 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
12942 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
12943 ac_ext=c
12944 ac_cpp='$CPP $CPPFLAGS'
12945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12948
12949 cat >conftest.$ac_ext <<_ACEOF
12950 #if __GNUC__ <= 3
12951 #error GCJ 4.0.0 or higher is required
12952 #endif
12953
12954 _ACEOF
12955 $GCJ -E conftest.c > /dev/null
12956 gcj_4_result=$?
12957 if test "x$gcj_4_result" = "x0"; then
12958 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
12959 echo "${ECHO_T}4.0 or higher found" >&6
12960 else
12961 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
12962 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
12963 fi
12964 ac_ext=c
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12969
12970 fi
12971
12972 else
12973 if test "x${withval}" != xno; then
12974
12975 if test "x" != x; then
12976 if test -f ""; then
12977 GCJ=""
12978 else
12979 # Extract the first word of """", so it can be a program name with args.
12980 set dummy ""; ac_word=$2
12981 echo "$as_me:$LINENO: checking for $ac_word" >&5
12982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12983 if test "${ac_cv_path_GCJ+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 case $GCJ in
12987 [\\/]* | ?:[\\/]*)
12988 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
12989 ;;
12990 *)
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12993 do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12998 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002 done
13003 done
13004
13005 ;;
13006 esac
13007 fi
13008 GCJ=$ac_cv_path_GCJ
13009
13010 if test -n "$GCJ"; then
13011 echo "$as_me:$LINENO: result: $GCJ" >&5
13012 echo "${ECHO_T}$GCJ" >&6
13013 else
13014 echo "$as_me:$LINENO: result: no" >&5
13015 echo "${ECHO_T}no" >&6
13016 fi
13017
13018 fi
13019 else
13020 # Extract the first word of ""gcj"", so it can be a program name with args.
13021 set dummy "gcj"; ac_word=$2
13022 echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13024 if test "${ac_cv_path_GCJ+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027 case $GCJ in
13028 [\\/]* | ?:[\\/]*)
13029 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13030 ;;
13031 *)
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13034 do
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13039 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13042 fi
13043 done
13044 done
13045
13046 ;;
13047 esac
13048 fi
13049 GCJ=$ac_cv_path_GCJ
13050
13051 if test -n "$GCJ"; then
13052 echo "$as_me:$LINENO: result: $GCJ" >&5
13053 echo "${ECHO_T}$GCJ" >&6
13054 else
13055 echo "$as_me:$LINENO: result: no" >&5
13056 echo "${ECHO_T}no" >&6
13057 fi
13058
13059 fi
13060 if test "x$GCJ" != x; then
13061 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13062 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13063 ac_ext=c
13064 ac_cpp='$CPP $CPPFLAGS'
13065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13068
13069 cat >conftest.$ac_ext <<_ACEOF
13070 #if __GNUC__ <= 3
13071 #error GCJ 4.0.0 or higher is required
13072 #endif
13073
13074 _ACEOF
13075 $GCJ -E conftest.c > /dev/null
13076 gcj_4_result=$?
13077 if test "x$gcj_4_result" = "x0"; then
13078 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13079 echo "${ECHO_T}4.0 or higher found" >&6
13080 else
13081 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13082 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13083 fi
13084 ac_ext=c
13085 ac_cpp='$CPP $CPPFLAGS'
13086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089
13090 fi
13091
13092 fi
13093 fi
13094 user_specified_javac=gcj
13095
13096 else
13097
13098
13099 if test "x" != x; then
13100 if test -f ""; then
13101 GCJ=""
13102 else
13103 # Extract the first word of """", so it can be a program name with args.
13104 set dummy ""; ac_word=$2
13105 echo "$as_me:$LINENO: checking for $ac_word" >&5
13106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13107 if test "${ac_cv_path_GCJ+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110 case $GCJ in
13111 [\\/]* | ?:[\\/]*)
13112 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13113 ;;
13114 *)
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13122 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126 done
13127 done
13128
13129 ;;
13130 esac
13131 fi
13132 GCJ=$ac_cv_path_GCJ
13133
13134 if test -n "$GCJ"; then
13135 echo "$as_me:$LINENO: result: $GCJ" >&5
13136 echo "${ECHO_T}$GCJ" >&6
13137 else
13138 echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6
13140 fi
13141
13142 fi
13143 else
13144 # Extract the first word of ""gcj"", so it can be a program name with args.
13145 set dummy "gcj"; ac_word=$2
13146 echo "$as_me:$LINENO: checking for $ac_word" >&5
13147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13148 if test "${ac_cv_path_GCJ+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151 case $GCJ in
13152 [\\/]* | ?:[\\/]*)
13153 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13154 ;;
13155 *)
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167 done
13168 done
13169
13170 ;;
13171 esac
13172 fi
13173 GCJ=$ac_cv_path_GCJ
13174
13175 if test -n "$GCJ"; then
13176 echo "$as_me:$LINENO: result: $GCJ" >&5
13177 echo "${ECHO_T}$GCJ" >&6
13178 else
13179 echo "$as_me:$LINENO: result: no" >&5
13180 echo "${ECHO_T}no" >&6
13181 fi
13182
13183 fi
13184 if test "x$GCJ" != x; then
13185 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13186 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13187 ac_ext=c
13188 ac_cpp='$CPP $CPPFLAGS'
13189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13192
13193 cat >conftest.$ac_ext <<_ACEOF
13194 #if __GNUC__ <= 3
13195 #error GCJ 4.0.0 or higher is required
13196 #endif
13197
13198 _ACEOF
13199 $GCJ -E conftest.c > /dev/null
13200 gcj_4_result=$?
13201 if test "x$gcj_4_result" = "x0"; then
13202 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13203 echo "${ECHO_T}4.0 or higher found" >&6
13204 else
13205 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13206 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13207 fi
13208 ac_ext=c
13209 ac_cpp='$CPP $CPPFLAGS'
13210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13213
13214 fi
13215
13216
13217 fi;
13218
13219
13220
13221
13222 # Check whether --with-jikes or --without-jikes was given.
13223 if test "${with_jikes+set}" = set; then
13224 withval="$with_jikes"
13225
13226 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13227
13228 if test "x${withval}" != x; then
13229 if test -f "${withval}"; then
13230 JIKES="${withval}"
13231 else
13232 # Extract the first word of ""${withval}"", so it can be a program name with args.
13233 set dummy "${withval}"; ac_word=$2
13234 echo "$as_me:$LINENO: checking for $ac_word" >&5
13235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13236 if test "${ac_cv_path_JIKES+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239 case $JIKES in
13240 [\\/]* | ?:[\\/]*)
13241 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13242 ;;
13243 *)
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13246 do
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13254 fi
13255 done
13256 done
13257
13258 ;;
13259 esac
13260 fi
13261 JIKES=$ac_cv_path_JIKES
13262
13263 if test -n "$JIKES"; then
13264 echo "$as_me:$LINENO: result: $JIKES" >&5
13265 echo "${ECHO_T}$JIKES" >&6
13266 else
13267 echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6
13269 fi
13270
13271 fi
13272 else
13273 # Extract the first word of ""jikes"", so it can be a program name with args.
13274 set dummy "jikes"; ac_word=$2
13275 echo "$as_me:$LINENO: checking for $ac_word" >&5
13276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13277 if test "${ac_cv_path_JIKES+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280 case $JIKES in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13283 ;;
13284 *)
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13295 fi
13296 done
13297 done
13298
13299 ;;
13300 esac
13301 fi
13302 JIKES=$ac_cv_path_JIKES
13303
13304 if test -n "$JIKES"; then
13305 echo "$as_me:$LINENO: result: $JIKES" >&5
13306 echo "${ECHO_T}$JIKES" >&6
13307 else
13308 echo "$as_me:$LINENO: result: no" >&5
13309 echo "${ECHO_T}no" >&6
13310 fi
13311
13312 fi
13313 if test "x$JIKES" != "x"; then
13314 echo "$as_me:$LINENO: checking jikes version" >&5
13315 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13316 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13317 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13318 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13319 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13320 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13321 JIKES=""
13322 fi
13323 fi
13324 if test "x$JIKES" != "x"; then
13325 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13326 echo "${ECHO_T}$JIKES_VERSION" >&6
13327 else
13328 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13329 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13330 fi
13331
13332 JIKESENCODING=
13333 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13334 JIKESENCODING='-encoding UTF-8'
13335 fi
13336
13337
13338 JIKESWARNINGS="+Pno-switchcheck"
13339 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13340 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13341 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13342 fi
13343 fi
13344
13345
13346 fi
13347
13348 else
13349 if test "x${withval}" != xno; then
13350
13351 if test "x" != x; then
13352 if test -f ""; then
13353 JIKES=""
13354 else
13355 # Extract the first word of """", so it can be a program name with args.
13356 set dummy ""; ac_word=$2
13357 echo "$as_me:$LINENO: checking for $ac_word" >&5
13358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13359 if test "${ac_cv_path_JIKES+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 case $JIKES in
13363 [\\/]* | ?:[\\/]*)
13364 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13365 ;;
13366 *)
13367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368 for as_dir in $PATH
13369 do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 break 2
13377 fi
13378 done
13379 done
13380
13381 ;;
13382 esac
13383 fi
13384 JIKES=$ac_cv_path_JIKES
13385
13386 if test -n "$JIKES"; then
13387 echo "$as_me:$LINENO: result: $JIKES" >&5
13388 echo "${ECHO_T}$JIKES" >&6
13389 else
13390 echo "$as_me:$LINENO: result: no" >&5
13391 echo "${ECHO_T}no" >&6
13392 fi
13393
13394 fi
13395 else
13396 # Extract the first word of ""jikes"", so it can be a program name with args.
13397 set dummy "jikes"; ac_word=$2
13398 echo "$as_me:$LINENO: checking for $ac_word" >&5
13399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13400 if test "${ac_cv_path_JIKES+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 case $JIKES in
13404 [\\/]* | ?:[\\/]*)
13405 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13406 ;;
13407 *)
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13410 do
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13418 fi
13419 done
13420 done
13421
13422 ;;
13423 esac
13424 fi
13425 JIKES=$ac_cv_path_JIKES
13426
13427 if test -n "$JIKES"; then
13428 echo "$as_me:$LINENO: result: $JIKES" >&5
13429 echo "${ECHO_T}$JIKES" >&6
13430 else
13431 echo "$as_me:$LINENO: result: no" >&5
13432 echo "${ECHO_T}no" >&6
13433 fi
13434
13435 fi
13436 if test "x$JIKES" != "x"; then
13437 echo "$as_me:$LINENO: checking jikes version" >&5
13438 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13439 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13440 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13441 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13442 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13443 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13444 JIKES=""
13445 fi
13446 fi
13447 if test "x$JIKES" != "x"; then
13448 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13449 echo "${ECHO_T}$JIKES_VERSION" >&6
13450 else
13451 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13452 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13453 fi
13454
13455 JIKESENCODING=
13456 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13457 JIKESENCODING='-encoding UTF-8'
13458 fi
13459
13460
13461 JIKESWARNINGS="+Pno-switchcheck"
13462 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13463 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13464 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13465 fi
13466 fi
13467
13468
13469 fi
13470
13471 fi
13472 fi
13473 user_specified_javac=jikes
13474
13475 else
13476
13477
13478 if test "x" != x; then
13479 if test -f ""; then
13480 JIKES=""
13481 else
13482 # Extract the first word of """", so it can be a program name with args.
13483 set dummy ""; ac_word=$2
13484 echo "$as_me:$LINENO: checking for $ac_word" >&5
13485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13486 if test "${ac_cv_path_JIKES+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489 case $JIKES in
13490 [\\/]* | ?:[\\/]*)
13491 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13492 ;;
13493 *)
13494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13496 do
13497 IFS=$as_save_IFS
13498 test -z "$as_dir" && as_dir=.
13499 for ac_exec_ext in '' $ac_executable_extensions; do
13500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13501 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13503 break 2
13504 fi
13505 done
13506 done
13507
13508 ;;
13509 esac
13510 fi
13511 JIKES=$ac_cv_path_JIKES
13512
13513 if test -n "$JIKES"; then
13514 echo "$as_me:$LINENO: result: $JIKES" >&5
13515 echo "${ECHO_T}$JIKES" >&6
13516 else
13517 echo "$as_me:$LINENO: result: no" >&5
13518 echo "${ECHO_T}no" >&6
13519 fi
13520
13521 fi
13522 else
13523 # Extract the first word of ""jikes"", so it can be a program name with args.
13524 set dummy "jikes"; ac_word=$2
13525 echo "$as_me:$LINENO: checking for $ac_word" >&5
13526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13527 if test "${ac_cv_path_JIKES+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530 case $JIKES in
13531 [\\/]* | ?:[\\/]*)
13532 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13533 ;;
13534 *)
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13545 fi
13546 done
13547 done
13548
13549 ;;
13550 esac
13551 fi
13552 JIKES=$ac_cv_path_JIKES
13553
13554 if test -n "$JIKES"; then
13555 echo "$as_me:$LINENO: result: $JIKES" >&5
13556 echo "${ECHO_T}$JIKES" >&6
13557 else
13558 echo "$as_me:$LINENO: result: no" >&5
13559 echo "${ECHO_T}no" >&6
13560 fi
13561
13562 fi
13563 if test "x$JIKES" != "x"; then
13564 echo "$as_me:$LINENO: checking jikes version" >&5
13565 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13566 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13567 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13568 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13569 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13570 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13571 JIKES=""
13572 fi
13573 fi
13574 if test "x$JIKES" != "x"; then
13575 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13576 echo "${ECHO_T}$JIKES_VERSION" >&6
13577 else
13578 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13579 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13580 fi
13581
13582 JIKESENCODING=
13583 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13584 JIKESENCODING='-encoding UTF-8'
13585 fi
13586
13587
13588 JIKESWARNINGS="+Pno-switchcheck"
13589 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13590 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13591 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13592 fi
13593 fi
13594
13595
13596 fi
13597
13598
13599 fi;
13600
13601
13602
13603
13604 # Check whether --with-kjc or --without-kjc was given.
13605 if test "${with_kjc+set}" = set; then
13606 withval="$with_kjc"
13607
13608 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13609
13610 if test "x${withval}" != x; then
13611 if test -f "${withval}"; then
13612 KJC="${withval}"
13613 else
13614 # Extract the first word of ""${withval}"", so it can be a program name with args.
13615 set dummy "${withval}"; ac_word=$2
13616 echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13618 if test "${ac_cv_path_KJC+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 case $KJC in
13622 [\\/]* | ?:[\\/]*)
13623 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13624 ;;
13625 *)
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13628 do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637 done
13638 done
13639
13640 ;;
13641 esac
13642 fi
13643 KJC=$ac_cv_path_KJC
13644
13645 if test -n "$KJC"; then
13646 echo "$as_me:$LINENO: result: $KJC" >&5
13647 echo "${ECHO_T}$KJC" >&6
13648 else
13649 echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13651 fi
13652
13653 fi
13654 else
13655 # Extract the first word of ""kJC"", so it can be a program name with args.
13656 set dummy "kJC"; ac_word=$2
13657 echo "$as_me:$LINENO: checking for $ac_word" >&5
13658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13659 if test "${ac_cv_path_KJC+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 case $KJC in
13663 [\\/]* | ?:[\\/]*)
13664 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13665 ;;
13666 *)
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13669 do
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13677 fi
13678 done
13679 done
13680
13681 ;;
13682 esac
13683 fi
13684 KJC=$ac_cv_path_KJC
13685
13686 if test -n "$KJC"; then
13687 echo "$as_me:$LINENO: result: $KJC" >&5
13688 echo "${ECHO_T}$KJC" >&6
13689 else
13690 echo "$as_me:$LINENO: result: no" >&5
13691 echo "${ECHO_T}no" >&6
13692 fi
13693
13694 fi
13695
13696 else
13697 if test "x${withval}" != xno; then
13698
13699 if test "x" != x; then
13700 if test -f ""; then
13701 KJC=""
13702 else
13703 # Extract the first word of """", so it can be a program name with args.
13704 set dummy ""; ac_word=$2
13705 echo "$as_me:$LINENO: checking for $ac_word" >&5
13706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13707 if test "${ac_cv_path_KJC+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710 case $KJC in
13711 [\\/]* | ?:[\\/]*)
13712 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13713 ;;
13714 *)
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13717 do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13725 fi
13726 done
13727 done
13728
13729 ;;
13730 esac
13731 fi
13732 KJC=$ac_cv_path_KJC
13733
13734 if test -n "$KJC"; then
13735 echo "$as_me:$LINENO: result: $KJC" >&5
13736 echo "${ECHO_T}$KJC" >&6
13737 else
13738 echo "$as_me:$LINENO: result: no" >&5
13739 echo "${ECHO_T}no" >&6
13740 fi
13741
13742 fi
13743 else
13744 # Extract the first word of ""kJC"", so it can be a program name with args.
13745 set dummy "kJC"; ac_word=$2
13746 echo "$as_me:$LINENO: checking for $ac_word" >&5
13747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13748 if test "${ac_cv_path_KJC+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750 else
13751 case $KJC in
13752 [\\/]* | ?:[\\/]*)
13753 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13754 ;;
13755 *)
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13758 do
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13766 fi
13767 done
13768 done
13769
13770 ;;
13771 esac
13772 fi
13773 KJC=$ac_cv_path_KJC
13774
13775 if test -n "$KJC"; then
13776 echo "$as_me:$LINENO: result: $KJC" >&5
13777 echo "${ECHO_T}$KJC" >&6
13778 else
13779 echo "$as_me:$LINENO: result: no" >&5
13780 echo "${ECHO_T}no" >&6
13781 fi
13782
13783 fi
13784
13785 fi
13786 fi
13787 user_specified_javac=kjc
13788
13789 else
13790
13791
13792 if test "x" != x; then
13793 if test -f ""; then
13794 KJC=""
13795 else
13796 # Extract the first word of """", so it can be a program name with args.
13797 set dummy ""; ac_word=$2
13798 echo "$as_me:$LINENO: checking for $ac_word" >&5
13799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13800 if test "${ac_cv_path_KJC+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 else
13803 case $KJC in
13804 [\\/]* | ?:[\\/]*)
13805 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13806 ;;
13807 *)
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811 IFS=$as_save_IFS
13812 test -z "$as_dir" && as_dir=.
13813 for ac_exec_ext in '' $ac_executable_extensions; do
13814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13815 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817 break 2
13818 fi
13819 done
13820 done
13821
13822 ;;
13823 esac
13824 fi
13825 KJC=$ac_cv_path_KJC
13826
13827 if test -n "$KJC"; then
13828 echo "$as_me:$LINENO: result: $KJC" >&5
13829 echo "${ECHO_T}$KJC" >&6
13830 else
13831 echo "$as_me:$LINENO: result: no" >&5
13832 echo "${ECHO_T}no" >&6
13833 fi
13834
13835 fi
13836 else
13837 # Extract the first word of ""kJC"", so it can be a program name with args.
13838 set dummy "kJC"; ac_word=$2
13839 echo "$as_me:$LINENO: checking for $ac_word" >&5
13840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13841 if test "${ac_cv_path_KJC+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844 case $KJC in
13845 [\\/]* | ?:[\\/]*)
13846 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
13847 ;;
13848 *)
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
13857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860 done
13861 done
13862
13863 ;;
13864 esac
13865 fi
13866 KJC=$ac_cv_path_KJC
13867
13868 if test -n "$KJC"; then
13869 echo "$as_me:$LINENO: result: $KJC" >&5
13870 echo "${ECHO_T}$KJC" >&6
13871 else
13872 echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6
13874 fi
13875
13876 fi
13877
13878
13879 fi;
13880
13881
13882
13883
13884 # Check whether --with-gcjx or --without-gcjx was given.
13885 if test "${with_gcjx+set}" = set; then
13886 withval="$with_gcjx"
13887
13888 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13889
13890 if test "x${withval}" != x; then
13891 if test -f "${withval}"; then
13892 GCJX="${withval}"
13893 else
13894 # Extract the first word of ""${withval}"", so it can be a program name with args.
13895 set dummy "${withval}"; ac_word=$2
13896 echo "$as_me:$LINENO: checking for $ac_word" >&5
13897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13898 if test "${ac_cv_path_GCJX+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901 case $GCJX in
13902 [\\/]* | ?:[\\/]*)
13903 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13904 ;;
13905 *)
13906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
13911 for ac_exec_ext in '' $ac_executable_extensions; do
13912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13913 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 break 2
13916 fi
13917 done
13918 done
13919
13920 ;;
13921 esac
13922 fi
13923 GCJX=$ac_cv_path_GCJX
13924
13925 if test -n "$GCJX"; then
13926 echo "$as_me:$LINENO: result: $GCJX" >&5
13927 echo "${ECHO_T}$GCJX" >&6
13928 else
13929 echo "$as_me:$LINENO: result: no" >&5
13930 echo "${ECHO_T}no" >&6
13931 fi
13932
13933 fi
13934 else
13935 # Extract the first word of ""gcjx"", so it can be a program name with args.
13936 set dummy "gcjx"; ac_word=$2
13937 echo "$as_me:$LINENO: checking for $ac_word" >&5
13938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13939 if test "${ac_cv_path_GCJX+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942 case $GCJX in
13943 [\\/]* | ?:[\\/]*)
13944 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13945 ;;
13946 *)
13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948 for as_dir in $PATH
13949 do
13950 IFS=$as_save_IFS
13951 test -z "$as_dir" && as_dir=.
13952 for ac_exec_ext in '' $ac_executable_extensions; do
13953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13954 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
13955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 break 2
13957 fi
13958 done
13959 done
13960
13961 ;;
13962 esac
13963 fi
13964 GCJX=$ac_cv_path_GCJX
13965
13966 if test -n "$GCJX"; then
13967 echo "$as_me:$LINENO: result: $GCJX" >&5
13968 echo "${ECHO_T}$GCJX" >&6
13969 else
13970 echo "$as_me:$LINENO: result: no" >&5
13971 echo "${ECHO_T}no" >&6
13972 fi
13973
13974 fi
13975
13976 else
13977 if test "x${withval}" != xno; then
13978
13979 if test "x" != x; then
13980 if test -f ""; then
13981 GCJX=""
13982 else
13983 # Extract the first word of """", so it can be a program name with args.
13984 set dummy ""; ac_word=$2
13985 echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13987 if test "${ac_cv_path_GCJX+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990 case $GCJX in
13991 [\\/]* | ?:[\\/]*)
13992 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
13993 ;;
13994 *)
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in $PATH
13997 do
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
14000 for ac_exec_ext in '' $ac_executable_extensions; do
14001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14004 break 2
14005 fi
14006 done
14007 done
14008
14009 ;;
14010 esac
14011 fi
14012 GCJX=$ac_cv_path_GCJX
14013
14014 if test -n "$GCJX"; then
14015 echo "$as_me:$LINENO: result: $GCJX" >&5
14016 echo "${ECHO_T}$GCJX" >&6
14017 else
14018 echo "$as_me:$LINENO: result: no" >&5
14019 echo "${ECHO_T}no" >&6
14020 fi
14021
14022 fi
14023 else
14024 # Extract the first word of ""gcjx"", so it can be a program name with args.
14025 set dummy "gcjx"; ac_word=$2
14026 echo "$as_me:$LINENO: checking for $ac_word" >&5
14027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14028 if test "${ac_cv_path_GCJX+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031 case $GCJX in
14032 [\\/]* | ?:[\\/]*)
14033 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14034 ;;
14035 *)
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14038 do
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
14042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14043 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 break 2
14046 fi
14047 done
14048 done
14049
14050 ;;
14051 esac
14052 fi
14053 GCJX=$ac_cv_path_GCJX
14054
14055 if test -n "$GCJX"; then
14056 echo "$as_me:$LINENO: result: $GCJX" >&5
14057 echo "${ECHO_T}$GCJX" >&6
14058 else
14059 echo "$as_me:$LINENO: result: no" >&5
14060 echo "${ECHO_T}no" >&6
14061 fi
14062
14063 fi
14064
14065 fi
14066 fi
14067 user_specified_javac=gcjx
14068
14069 else
14070
14071
14072 if test "x" != x; then
14073 if test -f ""; then
14074 GCJX=""
14075 else
14076 # Extract the first word of """", so it can be a program name with args.
14077 set dummy ""; ac_word=$2
14078 echo "$as_me:$LINENO: checking for $ac_word" >&5
14079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14080 if test "${ac_cv_path_GCJX+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083 case $GCJX in
14084 [\\/]* | ?:[\\/]*)
14085 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14086 ;;
14087 *)
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14090 do
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14098 fi
14099 done
14100 done
14101
14102 ;;
14103 esac
14104 fi
14105 GCJX=$ac_cv_path_GCJX
14106
14107 if test -n "$GCJX"; then
14108 echo "$as_me:$LINENO: result: $GCJX" >&5
14109 echo "${ECHO_T}$GCJX" >&6
14110 else
14111 echo "$as_me:$LINENO: result: no" >&5
14112 echo "${ECHO_T}no" >&6
14113 fi
14114
14115 fi
14116 else
14117 # Extract the first word of ""gcjx"", so it can be a program name with args.
14118 set dummy "gcjx"; ac_word=$2
14119 echo "$as_me:$LINENO: checking for $ac_word" >&5
14120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14121 if test "${ac_cv_path_GCJX+set}" = set; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124 case $GCJX in
14125 [\\/]* | ?:[\\/]*)
14126 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14127 ;;
14128 *)
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14131 do
14132 IFS=$as_save_IFS
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 break 2
14139 fi
14140 done
14141 done
14142
14143 ;;
14144 esac
14145 fi
14146 GCJX=$ac_cv_path_GCJX
14147
14148 if test -n "$GCJX"; then
14149 echo "$as_me:$LINENO: result: $GCJX" >&5
14150 echo "${ECHO_T}$GCJX" >&6
14151 else
14152 echo "$as_me:$LINENO: result: no" >&5
14153 echo "${ECHO_T}no" >&6
14154 fi
14155
14156 fi
14157
14158
14159 fi;
14160
14161
14162
14163
14164 # Check whether --with-ecj or --without-ecj was given.
14165 if test "${with_ecj+set}" = set; then
14166 withval="$with_ecj"
14167
14168 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14169
14170 if test "x${withval}" != x; then
14171 if test -f "${withval}"; then
14172 ECJ="${withval}"
14173 else
14174 # Extract the first word of ""${withval}"", so it can be a program name with args.
14175 set dummy "${withval}"; ac_word=$2
14176 echo "$as_me:$LINENO: checking for $ac_word" >&5
14177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14178 if test "${ac_cv_path_ECJ+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181 case $ECJ in
14182 [\\/]* | ?:[\\/]*)
14183 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14184 ;;
14185 *)
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14188 do
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 break 2
14196 fi
14197 done
14198 done
14199
14200 ;;
14201 esac
14202 fi
14203 ECJ=$ac_cv_path_ECJ
14204
14205 if test -n "$ECJ"; then
14206 echo "$as_me:$LINENO: result: $ECJ" >&5
14207 echo "${ECHO_T}$ECJ" >&6
14208 else
14209 echo "$as_me:$LINENO: result: no" >&5
14210 echo "${ECHO_T}no" >&6
14211 fi
14212
14213 fi
14214 else
14215 # Extract the first word of ""ecj"", so it can be a program name with args.
14216 set dummy "ecj"; ac_word=$2
14217 echo "$as_me:$LINENO: checking for $ac_word" >&5
14218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14219 if test "${ac_cv_path_ECJ+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 case $ECJ in
14223 [\\/]* | ?:[\\/]*)
14224 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14225 ;;
14226 *)
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14229 do
14230 IFS=$as_save_IFS
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14234 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 break 2
14237 fi
14238 done
14239 done
14240
14241 ;;
14242 esac
14243 fi
14244 ECJ=$ac_cv_path_ECJ
14245
14246 if test -n "$ECJ"; then
14247 echo "$as_me:$LINENO: result: $ECJ" >&5
14248 echo "${ECHO_T}$ECJ" >&6
14249 else
14250 echo "$as_me:$LINENO: result: no" >&5
14251 echo "${ECHO_T}no" >&6
14252 fi
14253
14254 fi
14255
14256 else
14257 if test "x${withval}" != xno; then
14258
14259 if test "x" != x; then
14260 if test -f ""; then
14261 ECJ=""
14262 else
14263 # Extract the first word of """", so it can be a program name with args.
14264 set dummy ""; ac_word=$2
14265 echo "$as_me:$LINENO: checking for $ac_word" >&5
14266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14267 if test "${ac_cv_path_ECJ+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270 case $ECJ in
14271 [\\/]* | ?:[\\/]*)
14272 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14273 ;;
14274 *)
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $PATH
14277 do
14278 IFS=$as_save_IFS
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14284 break 2
14285 fi
14286 done
14287 done
14288
14289 ;;
14290 esac
14291 fi
14292 ECJ=$ac_cv_path_ECJ
14293
14294 if test -n "$ECJ"; then
14295 echo "$as_me:$LINENO: result: $ECJ" >&5
14296 echo "${ECHO_T}$ECJ" >&6
14297 else
14298 echo "$as_me:$LINENO: result: no" >&5
14299 echo "${ECHO_T}no" >&6
14300 fi
14301
14302 fi
14303 else
14304 # Extract the first word of ""ecj"", so it can be a program name with args.
14305 set dummy "ecj"; ac_word=$2
14306 echo "$as_me:$LINENO: checking for $ac_word" >&5
14307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14308 if test "${ac_cv_path_ECJ+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311 case $ECJ in
14312 [\\/]* | ?:[\\/]*)
14313 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14314 ;;
14315 *)
14316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317 for as_dir in $PATH
14318 do
14319 IFS=$as_save_IFS
14320 test -z "$as_dir" && as_dir=.
14321 for ac_exec_ext in '' $ac_executable_extensions; do
14322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14323 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14325 break 2
14326 fi
14327 done
14328 done
14329
14330 ;;
14331 esac
14332 fi
14333 ECJ=$ac_cv_path_ECJ
14334
14335 if test -n "$ECJ"; then
14336 echo "$as_me:$LINENO: result: $ECJ" >&5
14337 echo "${ECHO_T}$ECJ" >&6
14338 else
14339 echo "$as_me:$LINENO: result: no" >&5
14340 echo "${ECHO_T}no" >&6
14341 fi
14342
14343 fi
14344
14345 fi
14346 fi
14347 user_specified_javac=ecj
14348
14349 else
14350
14351
14352 if test "x" != x; then
14353 if test -f ""; then
14354 ECJ=""
14355 else
14356 # Extract the first word of """", so it can be a program name with args.
14357 set dummy ""; ac_word=$2
14358 echo "$as_me:$LINENO: checking for $ac_word" >&5
14359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14360 if test "${ac_cv_path_ECJ+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363 case $ECJ in
14364 [\\/]* | ?:[\\/]*)
14365 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14366 ;;
14367 *)
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14370 do
14371 IFS=$as_save_IFS
14372 test -z "$as_dir" && as_dir=.
14373 for ac_exec_ext in '' $ac_executable_extensions; do
14374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14377 break 2
14378 fi
14379 done
14380 done
14381
14382 ;;
14383 esac
14384 fi
14385 ECJ=$ac_cv_path_ECJ
14386
14387 if test -n "$ECJ"; then
14388 echo "$as_me:$LINENO: result: $ECJ" >&5
14389 echo "${ECHO_T}$ECJ" >&6
14390 else
14391 echo "$as_me:$LINENO: result: no" >&5
14392 echo "${ECHO_T}no" >&6
14393 fi
14394
14395 fi
14396 else
14397 # Extract the first word of ""ecj"", so it can be a program name with args.
14398 set dummy "ecj"; ac_word=$2
14399 echo "$as_me:$LINENO: checking for $ac_word" >&5
14400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14401 if test "${ac_cv_path_ECJ+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404 case $ECJ in
14405 [\\/]* | ?:[\\/]*)
14406 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14407 ;;
14408 *)
14409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14410 for as_dir in $PATH
14411 do
14412 IFS=$as_save_IFS
14413 test -z "$as_dir" && as_dir=.
14414 for ac_exec_ext in '' $ac_executable_extensions; do
14415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14416 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14418 break 2
14419 fi
14420 done
14421 done
14422
14423 ;;
14424 esac
14425 fi
14426 ECJ=$ac_cv_path_ECJ
14427
14428 if test -n "$ECJ"; then
14429 echo "$as_me:$LINENO: result: $ECJ" >&5
14430 echo "${ECHO_T}$ECJ" >&6
14431 else
14432 echo "$as_me:$LINENO: result: no" >&5
14433 echo "${ECHO_T}no" >&6
14434 fi
14435
14436 fi
14437
14438
14439 fi;
14440
14441
14442
14443 if test "x${user_specified_javac}" = x; then
14444
14445
14446 if test "x${GCJ}" != x; then
14447 FOUND_GCJ_TRUE=
14448 FOUND_GCJ_FALSE='#'
14449 else
14450 FOUND_GCJ_TRUE='#'
14451 FOUND_GCJ_FALSE=
14452 fi
14453
14454
14455
14456 if test "x${JIKES}" != x; then
14457 FOUND_JIKES_TRUE=
14458 FOUND_JIKES_FALSE='#'
14459 else
14460 FOUND_JIKES_TRUE='#'
14461 FOUND_JIKES_FALSE=
14462 fi
14463
14464
14465
14466 if test "x${ECJ}" != x; then
14467 FOUND_ECJ_TRUE=
14468 FOUND_ECJ_FALSE='#'
14469 else
14470 FOUND_ECJ_TRUE='#'
14471 FOUND_ECJ_FALSE=
14472 fi
14473
14474 else
14475
14476
14477 if test "x${user_specified_javac}" = xgcj; then
14478 FOUND_GCJ_TRUE=
14479 FOUND_GCJ_FALSE='#'
14480 else
14481 FOUND_GCJ_TRUE='#'
14482 FOUND_GCJ_FALSE=
14483 fi
14484
14485
14486
14487 if test "x${user_specified_javac}" = xjikes; then
14488 FOUND_JIKES_TRUE=
14489 FOUND_JIKES_FALSE='#'
14490 else
14491 FOUND_JIKES_TRUE='#'
14492 FOUND_JIKES_FALSE=
14493 fi
14494
14495
14496
14497 if test "x${user_specified_javac}" = xecj; then
14498 FOUND_ECJ_TRUE=
14499 FOUND_ECJ_FALSE='#'
14500 else
14501 FOUND_ECJ_TRUE='#'
14502 FOUND_ECJ_FALSE=
14503 fi
14504
14505 fi
14506
14507
14508 if test "x${user_specified_javac}" = xkjc; then
14509 FOUND_KJC_TRUE=
14510 FOUND_KJC_FALSE='#'
14511 else
14512 FOUND_KJC_TRUE='#'
14513 FOUND_KJC_FALSE=
14514 fi
14515
14516
14517
14518 if test "x${user_specified_javac}" = xgcjx; then
14519 FOUND_GCJX_TRUE=
14520 FOUND_GCJX_FALSE='#'
14521 else
14522 FOUND_GCJX_TRUE='#'
14523 FOUND_GCJX_FALSE=
14524 fi
14525
14526
14527 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
14528 { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
14529 echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
14530 { (exit 1); exit 1; }; }
14531 fi
14532
14533
14534
14535
14536 # Check whether --with-classpath or --without-classpath was given.
14537 if test "${with_classpath+set}" = set; then
14538 withval="$with_classpath"
14539
14540 if test "x${withval}" = xyes; then
14541 # set user classpath to CLASSPATH from env
14542 echo "$as_me:$LINENO: checking for classlib" >&5
14543 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14544 USER_CLASSLIB=${CLASSPATH}
14545
14546 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
14547 echo "${ECHO_T}${USER_CLASSLIB}" >&6
14548 conditional_with_classlib=true
14549 elif test "x${withval}" != x && test "x${withval}" != xno; then
14550 # set user classpath to specified value
14551 echo "$as_me:$LINENO: checking for classlib" >&5
14552 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14553 USER_CLASSLIB=${withval}
14554
14555 echo "$as_me:$LINENO: result: ${withval}" >&5
14556 echo "${ECHO_T}${withval}" >&6
14557 conditional_with_classlib=true
14558 fi
14559
14560 else
14561 conditional_with_classlib=false
14562 fi;
14563
14564
14565 if test "x${conditional_with_classlib}" = xtrue; then
14566 USER_SPECIFIED_CLASSLIB_TRUE=
14567 USER_SPECIFIED_CLASSLIB_FALSE='#'
14568 else
14569 USER_SPECIFIED_CLASSLIB_TRUE='#'
14570 USER_SPECIFIED_CLASSLIB_FALSE=
14571 fi
14572
14573
14574
14575 # Check whether --with-vm-classes or --without-vm-classes was given.
14576 if test "${with_vm_classes+set}" = set; then
14577 withval="$with_vm_classes"
14578 vm_classes="$with_vm_classes"
14579 else
14580 vm_classes='${top_srcdir}/vm/reference'
14581 fi;
14582
14583
14584
14585 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14586 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14587 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14588 if test "${enable_maintainer_mode+set}" = set; then
14589 enableval="$enable_maintainer_mode"
14590 USE_MAINTAINER_MODE=$enableval
14591 else
14592 USE_MAINTAINER_MODE=no
14593 fi;
14594 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
14595 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
14596
14597
14598 if test $USE_MAINTAINER_MODE = yes; then
14599 MAINTAINER_MODE_TRUE=
14600 MAINTAINER_MODE_FALSE='#'
14601 else
14602 MAINTAINER_MODE_TRUE='#'
14603 MAINTAINER_MODE_FALSE=
14604 fi
14605
14606 MAINT=$MAINTAINER_MODE_TRUE
14607
14608
14609
14610 # Check whether --enable-debug or --disable-debug was given.
14611 if test "${enable_debug+set}" = set; then
14612 enableval="$enable_debug"
14613 case "${enableval}" in
14614 yes)
14615 LIBDEBUG="true"
14616
14617 cat >>confdefs.h <<\_ACEOF
14618 #define DEBUG 1
14619 _ACEOF
14620
14621 ;;
14622 no) LIBDEBUG="false" ;;
14623 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14624 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14625 { (exit 1); exit 1; }; } ;;
14626 esac
14627 else
14628 LIBDEBUG="false"
14629 fi;
14630
14631
14632 # Check whether --enable-load-library or --disable-load-library was given.
14633 if test "${enable_load_library+set}" = set; then
14634 enableval="$enable_load_library"
14635 case "${enableval}" in
14636 yes) INIT_LOAD_LIBRARY="true" ;;
14637 no) INIT_LOAD_LIBRARY="false" ;;
14638 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
14639 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
14640 { (exit 1); exit 1; }; } ;;
14641 esac
14642 else
14643 INIT_LOAD_LIBRARY="true"
14644 fi;
14645
14646
14647
14648 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
14649 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
14650 enableval="$enable_java_lang_system_explicit_initialization"
14651 case "${enableval}" in
14652 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
14653 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
14654 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
14655 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
14656 { (exit 1); exit 1; }; } ;;
14657 esac
14658 else
14659 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
14660 fi;
14661
14662
14663
14664 REMOVE=""
14665
14666
14667 # Extract the first word of "mkdir", so it can be a program name with args.
14668 set dummy mkdir; ac_word=$2
14669 echo "$as_me:$LINENO: checking for $ac_word" >&5
14670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14671 if test "${ac_cv_path_MKDIR+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674 case $MKDIR in
14675 [\\/]* | ?:[\\/]*)
14676 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
14677 ;;
14678 *)
14679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14680 for as_dir in $PATH
14681 do
14682 IFS=$as_save_IFS
14683 test -z "$as_dir" && as_dir=.
14684 for ac_exec_ext in '' $ac_executable_extensions; do
14685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14686 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
14687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14688 break 2
14689 fi
14690 done
14691 done
14692
14693 ;;
14694 esac
14695 fi
14696 MKDIR=$ac_cv_path_MKDIR
14697
14698 if test -n "$MKDIR"; then
14699 echo "$as_me:$LINENO: result: $MKDIR" >&5
14700 echo "${ECHO_T}$MKDIR" >&6
14701 else
14702 echo "$as_me:$LINENO: result: no" >&5
14703 echo "${ECHO_T}no" >&6
14704 fi
14705
14706 # Extract the first word of "cp", so it can be a program name with args.
14707 set dummy cp; ac_word=$2
14708 echo "$as_me:$LINENO: checking for $ac_word" >&5
14709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14710 if test "${ac_cv_path_CP+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 case $CP in
14714 [\\/]* | ?:[\\/]*)
14715 ac_cv_path_CP="$CP" # Let the user override the test with a path.
14716 ;;
14717 *)
14718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719 for as_dir in $PATH
14720 do
14721 IFS=$as_save_IFS
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
14726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729 done
14730 done
14731
14732 ;;
14733 esac
14734 fi
14735 CP=$ac_cv_path_CP
14736
14737 if test -n "$CP"; then
14738 echo "$as_me:$LINENO: result: $CP" >&5
14739 echo "${ECHO_T}$CP" >&6
14740 else
14741 echo "$as_me:$LINENO: result: no" >&5
14742 echo "${ECHO_T}no" >&6
14743 fi
14744
14745 # Extract the first word of "date", so it can be a program name with args.
14746 set dummy date; ac_word=$2
14747 echo "$as_me:$LINENO: checking for $ac_word" >&5
14748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14749 if test "${ac_cv_path_DATE+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 case $DATE in
14753 [\\/]* | ?:[\\/]*)
14754 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
14755 ;;
14756 *)
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $PATH
14759 do
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14764 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
14765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 break 2
14767 fi
14768 done
14769 done
14770
14771 ;;
14772 esac
14773 fi
14774 DATE=$ac_cv_path_DATE
14775
14776 if test -n "$DATE"; then
14777 echo "$as_me:$LINENO: result: $DATE" >&5
14778 echo "${ECHO_T}$DATE" >&6
14779 else
14780 echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6
14782 fi
14783
14784
14785 # Extract the first word of "find", so it can be a program name with args.
14786 set dummy find; ac_word=$2
14787 echo "$as_me:$LINENO: checking for $ac_word" >&5
14788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14789 if test "${ac_cv_path_FIND+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 else
14792 case $FIND in
14793 [\\/]* | ?:[\\/]*)
14794 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
14795 ;;
14796 *)
14797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 for as_dir in $PATH
14799 do
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 for ac_exec_ext in '' $ac_executable_extensions; do
14803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14804 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
14805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14806 break 2
14807 fi
14808 done
14809 done
14810
14811 ;;
14812 esac
14813 fi
14814 FIND=$ac_cv_path_FIND
14815
14816 if test -n "$FIND"; then
14817 echo "$as_me:$LINENO: result: $FIND" >&5
14818 echo "${ECHO_T}$FIND" >&6
14819 else
14820 echo "$as_me:$LINENO: result: no" >&5
14821 echo "${ECHO_T}no" >&6
14822 fi
14823
14824
14825
14826 # Extract the first word of "zip", so it can be a program name with args.
14827 set dummy zip; ac_word=$2
14828 echo "$as_me:$LINENO: checking for $ac_word" >&5
14829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14830 if test "${ac_cv_path_ZIP+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 case $ZIP in
14834 [\\/]* | ?:[\\/]*)
14835 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
14836 ;;
14837 *)
14838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14839 for as_dir in $PATH
14840 do
14841 IFS=$as_save_IFS
14842 test -z "$as_dir" && as_dir=.
14843 for ac_exec_ext in '' $ac_executable_extensions; do
14844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14845 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
14846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14847 break 2
14848 fi
14849 done
14850 done
14851
14852 ;;
14853 esac
14854 fi
14855 ZIP=$ac_cv_path_ZIP
14856
14857 if test -n "$ZIP"; then
14858 echo "$as_me:$LINENO: result: $ZIP" >&5
14859 echo "${ECHO_T}$ZIP" >&6
14860 else
14861 echo "$as_me:$LINENO: result: no" >&5
14862 echo "${ECHO_T}no" >&6
14863 fi
14864
14865
14866 # Check whether --with-fastjar or --without-fastjar was given.
14867 if test "${with_fastjar+set}" = set; then
14868 withval="$with_fastjar"
14869
14870 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
14871 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
14872 FASTJAR=${withval}
14873 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
14874 echo "${ECHO_T}${FASTJAR}" >&6
14875
14876 else
14877 # Extract the first word of "fastjar", so it can be a program name with args.
14878 set dummy fastjar; ac_word=$2
14879 echo "$as_me:$LINENO: checking for $ac_word" >&5
14880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14881 if test "${ac_cv_path_FASTJAR+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 else
14884 case $FASTJAR in
14885 [\\/]* | ?:[\\/]*)
14886 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
14887 ;;
14888 *)
14889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14890 for as_dir in $PATH
14891 do
14892 IFS=$as_save_IFS
14893 test -z "$as_dir" && as_dir=.
14894 for ac_exec_ext in '' $ac_executable_extensions; do
14895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14896 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
14897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 break 2
14899 fi
14900 done
14901 done
14902
14903 ;;
14904 esac
14905 fi
14906 FASTJAR=$ac_cv_path_FASTJAR
14907
14908 if test -n "$FASTJAR"; then
14909 echo "$as_me:$LINENO: result: $FASTJAR" >&5
14910 echo "${ECHO_T}$FASTJAR" >&6
14911 else
14912 echo "$as_me:$LINENO: result: no" >&5
14913 echo "${ECHO_T}no" >&6
14914 fi
14915
14916 fi;
14917 if test x"${FASTJAR}" != x; then
14918 ZIP=""
14919 fi
14920
14921
14922 # Check whether --with-glibj or --without-glibj was given.
14923 if test "${with_glibj+set}" = set; then
14924 withval="$with_glibj"
14925
14926 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
14927 install_class_files=no
14928 build_class_files=yes
14929 use_zip=yes
14930 elif test "x${withval}" = xboth; then
14931 install_class_files=yes
14932 build_class_files=yes
14933 use_zip=yes
14934 elif test "x${withval}" = xflat; then
14935 install_class_files=yes
14936 build_class_files=yes
14937 use_zip=no
14938 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
14939 install_class_files=no
14940 build_class_files=no
14941 use_zip=no
14942 elif test "x${withval}" = xbuild; then
14943 install_class_files=no
14944 build_class_files=yes
14945 use_zip=no
14946 else
14947 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
14948 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
14949 { (exit 1); exit 1; }; }
14950 fi
14951
14952 else
14953
14954 install_class_files=no
14955 use_zip=yes
14956
14957 fi;
14958
14959
14960 if test "x${use_zip}" = xyes; then
14961 INSTALL_GLIBJ_ZIP_TRUE=
14962 INSTALL_GLIBJ_ZIP_FALSE='#'
14963 else
14964 INSTALL_GLIBJ_ZIP_TRUE='#'
14965 INSTALL_GLIBJ_ZIP_FALSE=
14966 fi
14967
14968
14969
14970 if test "x${install_class_files}" = xyes; then
14971 INSTALL_CLASS_FILES_TRUE=
14972 INSTALL_CLASS_FILES_FALSE='#'
14973 else
14974 INSTALL_CLASS_FILES_TRUE='#'
14975 INSTALL_CLASS_FILES_FALSE=
14976 fi
14977
14978
14979
14980 if test "x${build_class_files}" = xyes; then
14981 BUILD_CLASS_FILES_TRUE=
14982 BUILD_CLASS_FILES_FALSE='#'
14983 else
14984 BUILD_CLASS_FILES_TRUE='#'
14985 BUILD_CLASS_FILES_FALSE=
14986 fi
14987
14988
14989 # Check whether --enable-examples or --disable-examples was given.
14990 if test "${enable_examples+set}" = set; then
14991 enableval="$enable_examples"
14992 case "${enableval}" in
14993 yes) EXAMPLESDIR="examples" ;;
14994 no) EXAMPLESDIR="" ;;
14995 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
14996 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
14997 { (exit 1); exit 1; }; } ;;
14998 esac
14999 else
15000 EXAMPLESDIR="examples"
15001 fi;
15002 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
15003 EXAMPLESDIR=""
15004 fi
15005
15006
15007
15008
15009
15010 # Check whether --with-gjdoc or --without-gjdoc was given.
15011 if test "${with_gjdoc+set}" = set; then
15012 withval="$with_gjdoc"
15013 if test "x${withval}" = xno; then
15014 WITH_GJDOC=no;
15015 elif test "x${withval}" = xyes -o "x{withval}" = x; then
15016 WITH_GJDOC=yes;
15017 # Extract the first word of "gjdoc", so it can be a program name with args.
15018 set dummy gjdoc; ac_word=$2
15019 echo "$as_me:$LINENO: checking for $ac_word" >&5
15020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15021 if test "${ac_cv_path_GJDOC+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024 case $GJDOC in
15025 [\\/]* | ?:[\\/]*)
15026 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
15027 ;;
15028 *)
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15031 do
15032 IFS=$as_save_IFS
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15036 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
15037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15038 break 2
15039 fi
15040 done
15041 done
15042
15043 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
15044 ;;
15045 esac
15046 fi
15047 GJDOC=$ac_cv_path_GJDOC
15048
15049 if test -n "$GJDOC"; then
15050 echo "$as_me:$LINENO: result: $GJDOC" >&5
15051 echo "${ECHO_T}$GJDOC" >&6
15052 else
15053 echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6
15055 fi
15056
15057 if test "x${GJDOC}" = xno; then
15058 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
15059 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
15060 { (exit 1); exit 1; }; };
15061 fi
15062 else
15063 WITH_GJDOC=yes
15064 GJDOC="${withval}"
15065 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
15066 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
15067 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
15068 if eval "test \"\${$as_ac_File+set}\" = set"; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 test "$cross_compiling" = yes &&
15072 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15073 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15074 { (exit 1); exit 1; }; }
15075 if test -r "${GJDOC}"; then
15076 eval "$as_ac_File=yes"
15077 else
15078 eval "$as_ac_File=no"
15079 fi
15080 fi
15081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15082 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15083 if test `eval echo '${'$as_ac_File'}'` = yes; then
15084 :
15085 else
15086 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
15087 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
15088 { (exit 1); exit 1; }; }
15089 fi
15090
15091 fi
15092 else
15093 WITH_GJDOC=no
15094 fi;
15095
15096
15097
15098 if test "x${WITH_GJDOC}" = xyes; then
15099 CREATE_API_DOCS_TRUE=
15100 CREATE_API_DOCS_FALSE='#'
15101 else
15102 CREATE_API_DOCS_TRUE='#'
15103 CREATE_API_DOCS_FALSE=
15104 fi
15105
15106
15107
15108
15109
15110 # Check whether --with-jay or --without-jay was given.
15111 if test "${with_jay+set}" = set; then
15112 withval="$with_jay"
15113
15114 if test -d "${withval}"; then
15115 JAY_DIR_PATH="${withval}"
15116 # Extract the first word of "jay", so it can be a program name with args.
15117 set dummy jay; ac_word=$2
15118 echo "$as_me:$LINENO: checking for $ac_word" >&5
15119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15120 if test "${ac_cv_path_JAY+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123 case $JAY in
15124 [\\/]* | ?:[\\/]*)
15125 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
15126 ;;
15127 *)
15128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129 for as_dir in ${JAY_DIR_PATH}
15130 do
15131 IFS=$as_save_IFS
15132 test -z "$as_dir" && as_dir=.
15133 for ac_exec_ext in '' $ac_executable_extensions; do
15134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
15136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15137 break 2
15138 fi
15139 done
15140 done
15141
15142 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
15143 ;;
15144 esac
15145 fi
15146 JAY=$ac_cv_path_JAY
15147
15148 if test -n "$JAY"; then
15149 echo "$as_me:$LINENO: result: $JAY" >&5
15150 echo "${ECHO_T}$JAY" >&6
15151 else
15152 echo "$as_me:$LINENO: result: no" >&5
15153 echo "${ECHO_T}no" >&6
15154 fi
15155
15156 if test "x${JAY}" = xno; then
15157 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
15158 echo "$as_me: error: \"jay executable not found\"" >&2;}
15159 { (exit 1); exit 1; }; };
15160 fi
15161 else
15162 JAY_DIR_PATH=`dirname "${withval}"`
15163 JAY="${withval}"
15164
15165 fi
15166 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
15167 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
15168 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
15169 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
15170 if eval "test \"\${$as_ac_File+set}\" = set"; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173 test "$cross_compiling" = yes &&
15174 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15175 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15176 { (exit 1); exit 1; }; }
15177 if test -r "${JAY_SKELETON}"; then
15178 eval "$as_ac_File=yes"
15179 else
15180 eval "$as_ac_File=no"
15181 fi
15182 fi
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15185 if test `eval echo '${'$as_ac_File'}'` = yes; then
15186 :
15187 else
15188 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
15189 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
15190 { (exit 1); exit 1; }; }
15191 fi
15192
15193 JAY_FOUND=yes
15194
15195 else
15196
15197 JAY_FOUND=no
15198
15199 fi;
15200
15201
15202 if test "x${JAY_FOUND}" = xyes; then
15203 REGEN_PARSERS_TRUE=
15204 REGEN_PARSERS_FALSE='#'
15205 else
15206 REGEN_PARSERS_TRUE='#'
15207 REGEN_PARSERS_FALSE=
15208 fi
15209
15210
15211
15212 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
15213 if test "${enable_portable_native_sync+set}" = set; then
15214 enableval="$enable_portable_native_sync"
15215 case "${enableval}" in
15216 yes)
15217
15218 cat >>confdefs.h <<\_ACEOF
15219 #define PORTABLE_NATIVE_SYNC 1
15220 _ACEOF
15221
15222 ;;
15223 no) ;;
15224 *)
15225 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
15226 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
15227 { (exit 1); exit 1; }; }
15228 ;;
15229 esac
15230 fi;
15231
15232 # ------ AX CREATE STDINT H -------------------------------------
15233 echo "$as_me:$LINENO: checking for stdint types" >&5
15234 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
15235 ac_stdint_h=`echo include/config-int.h`
15236 # try to shortcircuit - if the default include path of the compiler
15237 # can find a "stdint.h" header then we assume that all compilers can.
15238 if test "${ac_cv_header_stdint_t+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241
15242 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15243 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15244 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #include <stdint.h>
15252 int
15253 main ()
15254 {
15255 int_least32_t v = 0;
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_c_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_stdint_result="(assuming C99 compatible system)"
15283 ac_cv_header_stdint_t="stdint.h";
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288 ac_cv_header_stdint_t=""
15289 fi
15290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15291 CXXFLAGS="$old_CXXFLAGS"
15292 CPPFLAGS="$old_CPPFLAGS"
15293 CFLAGS="$old_CFLAGS"
15294 fi
15295
15296
15297 v="... $ac_cv_header_stdint_h"
15298 if test "$ac_stdint_h" = "stdint.h" ; then
15299 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
15300 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
15301 elif test "$ac_stdint_h" = "inttypes.h" ; then
15302 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
15303 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
15304 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15305 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
15306 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
15307 else
15308 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15309 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
15310 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
15311 fi
15312
15313 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
15314
15315
15316 inttype_headers=`echo | sed -e 's/,/ /g'`
15317
15318 ac_cv_stdint_result="(no helpful system typedefs seen)"
15319
15320 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15321 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15322 if test "${ac_cv_header_stdint_x+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325
15326 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15327 echo "$as_me:$LINENO: result: (..)" >&5
15328 echo "${ECHO_T}(..)" >&6
15329 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
15330 unset ac_cv_type_uintptr_t
15331 unset ac_cv_type_uint64_t
15332 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15333 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15334 if test "${ac_cv_type_uintptr_t+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h. */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 #include <$i>
15344
15345 int
15346 main ()
15347 {
15348 if ((uintptr_t *) 0)
15349 return 0;
15350 if (sizeof (uintptr_t))
15351 return 0;
15352 ;
15353 return 0;
15354 }
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag"
15366 || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_cv_type_uintptr_t=yes
15379 else
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 ac_cv_type_uintptr_t=no
15384 fi
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386 fi
15387 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15388 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15389 if test $ac_cv_type_uintptr_t = yes; then
15390 ac_cv_header_stdint_x=$i
15391 else
15392 continue
15393 fi
15394
15395 echo "$as_me:$LINENO: checking for uint64_t" >&5
15396 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15397 if test "${ac_cv_type_uint64_t+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 else
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #include<$i>
15407
15408 int
15409 main ()
15410 {
15411 if ((uint64_t *) 0)
15412 return 0;
15413 if (sizeof (uint64_t))
15414 return 0;
15415 ;
15416 return 0;
15417 }
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag"
15429 || test ! -s conftest.err'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 ac_cv_type_uint64_t=yes
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_cv_type_uint64_t=no
15447 fi
15448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15449 fi
15450 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15451 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15452 if test $ac_cv_type_uint64_t = yes; then
15453 and64="/uint64_t"
15454 else
15455 and64=""
15456 fi
15457
15458 stdint.h inttypes.h sys/inttypes.h $inttype_headers
15459 break
15460 done
15461 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15462 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15463
15464 fi
15465 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
15466 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
15467
15468
15469 if test "_$ac_cv_header_stdint_x" = "_" ; then
15470
15471 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
15472 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
15473 if test "${ac_cv_header_stdint_o+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476
15477 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15478 echo "$as_me:$LINENO: result: (..)" >&5
15479 echo "${ECHO_T}(..)" >&6
15480 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
15481 unset ac_cv_type_uint32_t
15482 unset ac_cv_type_uint64_t
15483 echo "$as_me:$LINENO: checking for uint32_t" >&5
15484 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
15485 if test "${ac_cv_type_uint32_t+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h. */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 #include <$i>
15495
15496 int
15497 main ()
15498 {
15499 if ((uint32_t *) 0)
15500 return 0;
15501 if (sizeof (uint32_t))
15502 return 0;
15503 ;
15504 return 0;
15505 }
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>conftest.er1
15510 ac_status=$?
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_type_uint32_t=yes
15530 else
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 ac_cv_type_uint32_t=no
15535 fi
15536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15537 fi
15538 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15539 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
15540 if test $ac_cv_type_uint32_t = yes; then
15541 ac_cv_header_stdint_o=$i
15542 else
15543 continue
15544 fi
15545
15546 echo "$as_me:$LINENO: checking for uint64_t" >&5
15547 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15548 if test "${ac_cv_type_uint64_t+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h. */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include<$i>
15558
15559 int
15560 main ()
15561 {
15562 if ((uint64_t *) 0)
15563 return 0;
15564 if (sizeof (uint64_t))
15565 return 0;
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 rm -f conftest.$ac_objext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15572 (eval $ac_compile) 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag"
15580 || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_type_uint64_t=yes
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_cv_type_uint64_t=no
15598 fi
15599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15600 fi
15601 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15602 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15603 if test $ac_cv_type_uint64_t = yes; then
15604 and64="/uint64_t"
15605 else
15606 and64=""
15607 fi
15608
15609 inttypes.h sys/inttypes.h stdint.h $inttype_headers
15610 break
15611 break;
15612 done
15613 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
15614 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
15615
15616 fi
15617 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
15618 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
15619
15620 fi
15621
15622 if test "_$ac_cv_header_stdint_x" = "_" ; then
15623 if test "_$ac_cv_header_stdint_o" = "_" ; then
15624
15625 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
15626 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
15627 if test "${ac_cv_header_stdint_u+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630
15631 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
15632 echo "$as_me:$LINENO: result: (..)" >&5
15633 echo "${ECHO_T}(..)" >&6
15634 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
15635 unset ac_cv_type_u_int32_t
15636 unset ac_cv_type_u_int64_t
15637 echo "$as_me:$LINENO: checking for u_int32_t" >&5
15638 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
15639 if test "${ac_cv_type_u_int32_t+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h. */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 #include <$i>
15649
15650 int
15651 main ()
15652 {
15653 if ((u_int32_t *) 0)
15654 return 0;
15655 if (sizeof (u_int32_t))
15656 return 0;
15657 ;
15658 return 0;
15659 }
15660 _ACEOF
15661 rm -f conftest.$ac_objext
15662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15663 (eval $ac_compile) 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } &&
15670 { ac_try='test -z "$ac_c_werror_flag"
15671 || test ! -s conftest.err'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_type_u_int32_t=yes
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688 ac_cv_type_u_int32_t=no
15689 fi
15690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15691 fi
15692 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
15693 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
15694 if test $ac_cv_type_u_int32_t = yes; then
15695 ac_cv_header_stdint_u=$i
15696 else
15697 continue
15698 fi
15699
15700 echo "$as_me:$LINENO: checking for u_int64_t" >&5
15701 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
15702 if test "${ac_cv_type_u_int64_t+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 #include<$i>
15712
15713 int
15714 main ()
15715 {
15716 if ((u_int64_t *) 0)
15717 return 0;
15718 if (sizeof (u_int64_t))
15719 return 0;
15720 ;
15721 return 0;
15722 }
15723 _ACEOF
15724 rm -f conftest.$ac_objext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15726 (eval $ac_compile) 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } &&
15733 { ac_try='test -z "$ac_c_werror_flag"
15734 || test ! -s conftest.err'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_cv_type_u_int64_t=yes
15747 else
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751 ac_cv_type_u_int64_t=no
15752 fi
15753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15754 fi
15755 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15756 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
15757 if test $ac_cv_type_u_int64_t = yes; then
15758 and64="/u_int64_t"
15759 else
15760 and64=""
15761 fi
15762
15763 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
15764 break
15765 break;
15766 done
15767 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
15768 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
15769
15770 fi
15771 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
15772 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
15773
15774 fi fi
15775
15776 if test "_$ac_cv_header_stdint_x" = "_" ; then
15777 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
15778 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
15779 echo "$as_me:$LINENO: result: (..)" >&5
15780 echo "${ECHO_T}(..)" >&6
15781
15782 echo "$as_me:$LINENO: checking for char" >&5
15783 echo $ECHO_N "checking for char... $ECHO_C" >&6
15784 if test "${ac_cv_type_char+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787 cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 $ac_includes_default
15794 int
15795 main ()
15796 {
15797 if ((char *) 0)
15798 return 0;
15799 if (sizeof (char))
15800 return 0;
15801 ;
15802 return 0;
15803 }
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15807 (eval $ac_compile) 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest.$ac_objext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 ac_cv_type_char=yes
15828 else
15829 echo "$as_me: failed program was:" >&5
15830 sed 's/^/| /' conftest.$ac_ext >&5
15831
15832 ac_cv_type_char=no
15833 fi
15834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15835 fi
15836 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15837 echo "${ECHO_T}$ac_cv_type_char" >&6
15838
15839 echo "$as_me:$LINENO: checking size of char" >&5
15840 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15841 if test "${ac_cv_sizeof_char+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844 if test "$ac_cv_type_char" = yes; then
15845 # The cast to unsigned long works around a bug in the HP C Compiler
15846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15848 # This bug is HP SR number 8606223364.
15849 if test "$cross_compiling" = yes; then
15850 # Depending upon the size, compute the lo and hi bounds.
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15858 int
15859 main ()
15860 {
15861 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15862 test_array [0] = 0
15863
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15870 (eval $ac_compile) 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -z "$ac_c_werror_flag"
15878 || test ! -s conftest.err'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest.$ac_objext'
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_lo=0 ac_mid=0
15891 while :; do
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h. */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 $ac_includes_default
15899 int
15900 main ()
15901 {
15902 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15903 test_array [0] = 0
15904
15905 ;
15906 return 0;
15907 }
15908 _ACEOF
15909 rm -f conftest.$ac_objext
15910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15911 (eval $ac_compile) 2>conftest.er1
15912 ac_status=$?
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
15918 { ac_try='test -z "$ac_c_werror_flag"
15919 || test ! -s conftest.err'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest.$ac_objext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_hi=$ac_mid; break
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_lo=`expr $ac_mid + 1`
15937 if test $ac_lo -le $ac_mid; then
15938 ac_lo= ac_hi=
15939 break
15940 fi
15941 ac_mid=`expr 2 '*' $ac_mid + 1`
15942 fi
15943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15944 done
15945 else
15946 echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h. */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15955 $ac_includes_default
15956 int
15957 main ()
15958 {
15959 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15960 test_array [0] = 0
15961
15962 ;
15963 return 0;
15964 }
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15968 (eval $ac_compile) 2>conftest.er1
15969 ac_status=$?
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -z "$ac_c_werror_flag"
15976 || test ! -s conftest.err'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_hi=-1 ac_mid=-1
15989 while :; do
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 $ac_includes_default
15997 int
15998 main ()
15999 {
16000 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16001 test_array [0] = 0
16002
16003 ;
16004 return 0;
16005 }
16006 _ACEOF
16007 rm -f conftest.$ac_objext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16009 (eval $ac_compile) 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } &&
16016 { ac_try='test -z "$ac_c_werror_flag"
16017 || test ! -s conftest.err'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_lo=$ac_mid; break
16030 else
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 ac_hi=`expr '(' $ac_mid ')' - 1`
16035 if test $ac_mid -le $ac_hi; then
16036 ac_lo= ac_hi=
16037 break
16038 fi
16039 ac_mid=`expr 2 '*' $ac_mid`
16040 fi
16041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16042 done
16043 else
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 ac_lo= ac_hi=
16048 fi
16049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16050 fi
16051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16052 # Binary search between lo and hi bounds.
16053 while test "x$ac_lo" != "x$ac_hi"; do
16054 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 $ac_includes_default
16062 int
16063 main ()
16064 {
16065 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16066 test_array [0] = 0
16067
16068 ;
16069 return 0;
16070 }
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16074 (eval $ac_compile) 2>conftest.er1
16075 ac_status=$?
16076 grep -v '^ *+' conftest.er1 >conftest.err
16077 rm -f conftest.er1
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try='test -z "$ac_c_werror_flag"
16082 || test ! -s conftest.err'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; }; then
16094 ac_hi=$ac_mid
16095 else
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099 ac_lo=`expr '(' $ac_mid ')' + 1`
16100 fi
16101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16102 done
16103 case $ac_lo in
16104 ?*) ac_cv_sizeof_char=$ac_lo;;
16105 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16106 See \`config.log' for more details." >&5
16107 echo "$as_me: error: cannot compute sizeof (char), 77
16108 See \`config.log' for more details." >&2;}
16109 { (exit 1); exit 1; }; } ;;
16110 esac
16111 else
16112 if test "$cross_compiling" = yes; then
16113 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16114 See \`config.log' for more details." >&5
16115 echo "$as_me: error: cannot run test program while cross compiling
16116 See \`config.log' for more details." >&2;}
16117 { (exit 1); exit 1; }; }
16118 else
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 $ac_includes_default
16126 long longval () { return (long) (sizeof (char)); }
16127 unsigned long ulongval () { return (long) (sizeof (char)); }
16128 #include <stdio.h>
16129 #include <stdlib.h>
16130 int
16131 main ()
16132 {
16133
16134 FILE *f = fopen ("conftest.val", "w");
16135 if (! f)
16136 exit (1);
16137 if (((long) (sizeof (char))) < 0)
16138 {
16139 long i = longval ();
16140 if (i != ((long) (sizeof (char))))
16141 exit (1);
16142 fprintf (f, "%ld\n", i);
16143 }
16144 else
16145 {
16146 unsigned long i = ulongval ();
16147 if (i != ((long) (sizeof (char))))
16148 exit (1);
16149 fprintf (f, "%lu\n", i);
16150 }
16151 exit (ferror (f) || fclose (f) != 0);
16152
16153 ;
16154 return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest$ac_exeext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16159 (eval $ac_link) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_cv_sizeof_char=`cat conftest.val`
16169 else
16170 echo "$as_me: program exited with status $ac_status" >&5
16171 echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 ( exit $ac_status )
16175 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16176 See \`config.log' for more details." >&5
16177 echo "$as_me: error: cannot compute sizeof (char), 77
16178 See \`config.log' for more details." >&2;}
16179 { (exit 1); exit 1; }; }
16180 fi
16181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16182 fi
16183 fi
16184 rm -f conftest.val
16185 else
16186 ac_cv_sizeof_char=0
16187 fi
16188 fi
16189 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16190 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16191 cat >>confdefs.h <<_ACEOF
16192 #define SIZEOF_CHAR $ac_cv_sizeof_char
16193 _ACEOF
16194
16195
16196 echo "$as_me:$LINENO: checking for short" >&5
16197 echo $ECHO_N "checking for short... $ECHO_C" >&6
16198 if test "${ac_cv_type_short+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 $ac_includes_default
16208 int
16209 main ()
16210 {
16211 if ((short *) 0)
16212 return 0;
16213 if (sizeof (short))
16214 return 0;
16215 ;
16216 return 0;
16217 }
16218 _ACEOF
16219 rm -f conftest.$ac_objext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221 (eval $ac_compile) 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag"
16229 || test ! -s conftest.err'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_short=yes
16242 else
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246 ac_cv_type_short=no
16247 fi
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249 fi
16250 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16251 echo "${ECHO_T}$ac_cv_type_short" >&6
16252
16253 echo "$as_me:$LINENO: checking size of short" >&5
16254 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16255 if test "${ac_cv_sizeof_short+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 if test "$ac_cv_type_short" = yes; then
16259 # The cast to unsigned long works around a bug in the HP C Compiler
16260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16262 # This bug is HP SR number 8606223364.
16263 if test "$cross_compiling" = yes; then
16264 # Depending upon the size, compute the lo and hi bounds.
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h. */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 $ac_includes_default
16272 int
16273 main ()
16274 {
16275 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16276 test_array [0] = 0
16277
16278 ;
16279 return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16284 (eval $ac_compile) 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest.$ac_objext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_lo=0 ac_mid=0
16305 while :; do
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 $ac_includes_default
16313 int
16314 main ()
16315 {
16316 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16317 test_array [0] = 0
16318
16319 ;
16320 return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325 (eval $ac_compile) 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag"
16333 || test ! -s conftest.err'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_hi=$ac_mid; break
16346 else
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16349
16350 ac_lo=`expr $ac_mid + 1`
16351 if test $ac_lo -le $ac_mid; then
16352 ac_lo= ac_hi=
16353 break
16354 fi
16355 ac_mid=`expr 2 '*' $ac_mid + 1`
16356 fi
16357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16358 done
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 int
16371 main ()
16372 {
16373 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16374 test_array [0] = 0
16375
16376 ;
16377 return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16382 (eval $ac_compile) 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_hi=-1 ac_mid=-1
16403 while :; do
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 $ac_includes_default
16411 int
16412 main ()
16413 {
16414 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16415 test_array [0] = 0
16416
16417 ;
16418 return 0;
16419 }
16420 _ACEOF
16421 rm -f conftest.$ac_objext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>conftest.er1
16424 ac_status=$?
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_lo=$ac_mid; break
16444 else
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 ac_hi=`expr '(' $ac_mid ')' - 1`
16449 if test $ac_mid -le $ac_hi; then
16450 ac_lo= ac_hi=
16451 break
16452 fi
16453 ac_mid=`expr 2 '*' $ac_mid`
16454 fi
16455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16456 done
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 ac_lo= ac_hi=
16462 fi
16463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16464 fi
16465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16466 # Binary search between lo and hi bounds.
16467 while test "x$ac_lo" != "x$ac_hi"; do
16468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475 $ac_includes_default
16476 int
16477 main ()
16478 {
16479 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16480 test_array [0] = 0
16481
16482 ;
16483 return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_hi=$ac_mid
16509 else
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 ac_lo=`expr '(' $ac_mid ')' + 1`
16514 fi
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516 done
16517 case $ac_lo in
16518 ?*) ac_cv_sizeof_short=$ac_lo;;
16519 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16520 See \`config.log' for more details." >&5
16521 echo "$as_me: error: cannot compute sizeof (short), 77
16522 See \`config.log' for more details." >&2;}
16523 { (exit 1); exit 1; }; } ;;
16524 esac
16525 else
16526 if test "$cross_compiling" = yes; then
16527 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16528 See \`config.log' for more details." >&5
16529 echo "$as_me: error: cannot run test program while cross compiling
16530 See \`config.log' for more details." >&2;}
16531 { (exit 1); exit 1; }; }
16532 else
16533 cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 $ac_includes_default
16540 long longval () { return (long) (sizeof (short)); }
16541 unsigned long ulongval () { return (long) (sizeof (short)); }
16542 #include <stdio.h>
16543 #include <stdlib.h>
16544 int
16545 main ()
16546 {
16547
16548 FILE *f = fopen ("conftest.val", "w");
16549 if (! f)
16550 exit (1);
16551 if (((long) (sizeof (short))) < 0)
16552 {
16553 long i = longval ();
16554 if (i != ((long) (sizeof (short))))
16555 exit (1);
16556 fprintf (f, "%ld\n", i);
16557 }
16558 else
16559 {
16560 unsigned long i = ulongval ();
16561 if (i != ((long) (sizeof (short))))
16562 exit (1);
16563 fprintf (f, "%lu\n", i);
16564 }
16565 exit (ferror (f) || fclose (f) != 0);
16566
16567 ;
16568 return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 ac_cv_sizeof_short=`cat conftest.val`
16583 else
16584 echo "$as_me: program exited with status $ac_status" >&5
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 ( exit $ac_status )
16589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16590 See \`config.log' for more details." >&5
16591 echo "$as_me: error: cannot compute sizeof (short), 77
16592 See \`config.log' for more details." >&2;}
16593 { (exit 1); exit 1; }; }
16594 fi
16595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16596 fi
16597 fi
16598 rm -f conftest.val
16599 else
16600 ac_cv_sizeof_short=0
16601 fi
16602 fi
16603 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16604 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16605 cat >>confdefs.h <<_ACEOF
16606 #define SIZEOF_SHORT $ac_cv_sizeof_short
16607 _ACEOF
16608
16609
16610 echo "$as_me:$LINENO: checking for int" >&5
16611 echo $ECHO_N "checking for int... $ECHO_C" >&6
16612 if test "${ac_cv_type_int+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 $ac_includes_default
16622 int
16623 main ()
16624 {
16625 if ((int *) 0)
16626 return 0;
16627 if (sizeof (int))
16628 return 0;
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16635 (eval $ac_compile) 2>conftest.er1
16636 ac_status=$?
16637 grep -v '^ *+' conftest.er1 >conftest.err
16638 rm -f conftest.er1
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -z "$ac_c_werror_flag"
16643 || test ! -s conftest.err'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest.$ac_objext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_type_int=yes
16656 else
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660 ac_cv_type_int=no
16661 fi
16662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 fi
16664 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16665 echo "${ECHO_T}$ac_cv_type_int" >&6
16666
16667 echo "$as_me:$LINENO: checking size of int" >&5
16668 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16669 if test "${ac_cv_sizeof_int+set}" = set; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672 if test "$ac_cv_type_int" = yes; then
16673 # The cast to unsigned long works around a bug in the HP C Compiler
16674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16676 # This bug is HP SR number 8606223364.
16677 if test "$cross_compiling" = yes; then
16678 # Depending upon the size, compute the lo and hi bounds.
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 $ac_includes_default
16686 int
16687 main ()
16688 {
16689 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16690 test_array [0] = 0
16691
16692 ;
16693 return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16698 (eval $ac_compile) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest.$ac_objext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_lo=0 ac_mid=0
16719 while :; do
16720 cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h. */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 $ac_includes_default
16727 int
16728 main ()
16729 {
16730 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16731 test_array [0] = 0
16732
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739 (eval $ac_compile) 2>conftest.er1
16740 ac_status=$?
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_hi=$ac_mid; break
16760 else
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 ac_lo=`expr $ac_mid + 1`
16765 if test $ac_lo -le $ac_mid; then
16766 ac_lo= ac_hi=
16767 break
16768 fi
16769 ac_mid=`expr 2 '*' $ac_mid + 1`
16770 fi
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16772 done
16773 else
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777 cat >conftest.$ac_ext <<_ACEOF
16778 /* confdefs.h. */
16779 _ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 $ac_includes_default
16784 int
16785 main ()
16786 {
16787 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16788 test_array [0] = 0
16789
16790 ;
16791 return 0;
16792 }
16793 _ACEOF
16794 rm -f conftest.$ac_objext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16796 (eval $ac_compile) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest.$ac_objext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_hi=-1 ac_mid=-1
16817 while :; do
16818 cat >conftest.$ac_ext <<_ACEOF
16819 /* confdefs.h. */
16820 _ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 $ac_includes_default
16825 int
16826 main ()
16827 {
16828 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16829 test_array [0] = 0
16830
16831 ;
16832 return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837 (eval $ac_compile) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_lo=$ac_mid; break
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 ac_hi=`expr '(' $ac_mid ')' - 1`
16863 if test $ac_mid -le $ac_hi; then
16864 ac_lo= ac_hi=
16865 break
16866 fi
16867 ac_mid=`expr 2 '*' $ac_mid`
16868 fi
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 done
16871 else
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875 ac_lo= ac_hi=
16876 fi
16877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16878 fi
16879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16880 # Binary search between lo and hi bounds.
16881 while test "x$ac_lo" != "x$ac_hi"; do
16882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 $ac_includes_default
16890 int
16891 main ()
16892 {
16893 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16894 test_array [0] = 0
16895
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16902 (eval $ac_compile) 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try='test -z "$ac_c_werror_flag"
16910 || test ! -s conftest.err'
16911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_hi=$ac_mid
16923 else
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927 ac_lo=`expr '(' $ac_mid ')' + 1`
16928 fi
16929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16930 done
16931 case $ac_lo in
16932 ?*) ac_cv_sizeof_int=$ac_lo;;
16933 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16934 See \`config.log' for more details." >&5
16935 echo "$as_me: error: cannot compute sizeof (int), 77
16936 See \`config.log' for more details." >&2;}
16937 { (exit 1); exit 1; }; } ;;
16938 esac
16939 else
16940 if test "$cross_compiling" = yes; then
16941 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16942 See \`config.log' for more details." >&5
16943 echo "$as_me: error: cannot run test program while cross compiling
16944 See \`config.log' for more details." >&2;}
16945 { (exit 1); exit 1; }; }
16946 else
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 $ac_includes_default
16954 long longval () { return (long) (sizeof (int)); }
16955 unsigned long ulongval () { return (long) (sizeof (int)); }
16956 #include <stdio.h>
16957 #include <stdlib.h>
16958 int
16959 main ()
16960 {
16961
16962 FILE *f = fopen ("conftest.val", "w");
16963 if (! f)
16964 exit (1);
16965 if (((long) (sizeof (int))) < 0)
16966 {
16967 long i = longval ();
16968 if (i != ((long) (sizeof (int))))
16969 exit (1);
16970 fprintf (f, "%ld\n", i);
16971 }
16972 else
16973 {
16974 unsigned long i = ulongval ();
16975 if (i != ((long) (sizeof (int))))
16976 exit (1);
16977 fprintf (f, "%lu\n", i);
16978 }
16979 exit (ferror (f) || fclose (f) != 0);
16980
16981 ;
16982 return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987 (eval $ac_link) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_sizeof_int=`cat conftest.val`
16997 else
16998 echo "$as_me: program exited with status $ac_status" >&5
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 ( exit $ac_status )
17003 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17004 See \`config.log' for more details." >&5
17005 echo "$as_me: error: cannot compute sizeof (int), 77
17006 See \`config.log' for more details." >&2;}
17007 { (exit 1); exit 1; }; }
17008 fi
17009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 fi
17012 rm -f conftest.val
17013 else
17014 ac_cv_sizeof_int=0
17015 fi
17016 fi
17017 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17018 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17019 cat >>confdefs.h <<_ACEOF
17020 #define SIZEOF_INT $ac_cv_sizeof_int
17021 _ACEOF
17022
17023
17024 echo "$as_me:$LINENO: checking for long" >&5
17025 echo $ECHO_N "checking for long... $ECHO_C" >&6
17026 if test "${ac_cv_type_long+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029 cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h. */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 $ac_includes_default
17036 int
17037 main ()
17038 {
17039 if ((long *) 0)
17040 return 0;
17041 if (sizeof (long))
17042 return 0;
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext
17048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17049 (eval $ac_compile) 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag"
17057 || test ! -s conftest.err'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest.$ac_objext'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 ac_cv_type_long=yes
17070 else
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074 ac_cv_type_long=no
17075 fi
17076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17077 fi
17078 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17079 echo "${ECHO_T}$ac_cv_type_long" >&6
17080
17081 echo "$as_me:$LINENO: checking size of long" >&5
17082 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17083 if test "${ac_cv_sizeof_long+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 if test "$ac_cv_type_long" = yes; then
17087 # The cast to unsigned long works around a bug in the HP C Compiler
17088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17090 # This bug is HP SR number 8606223364.
17091 if test "$cross_compiling" = yes; then
17092 # Depending upon the size, compute the lo and hi bounds.
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h. */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 $ac_includes_default
17100 int
17101 main ()
17102 {
17103 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17104 test_array [0] = 0
17105
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17112 (eval $ac_compile) 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_lo=0 ac_mid=0
17133 while :; do
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h. */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 $ac_includes_default
17141 int
17142 main ()
17143 {
17144 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17145 test_array [0] = 0
17146
17147 ;
17148 return 0;
17149 }
17150 _ACEOF
17151 rm -f conftest.$ac_objext
17152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17153 (eval $ac_compile) 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_hi=$ac_mid; break
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 ac_lo=`expr $ac_mid + 1`
17179 if test $ac_lo -le $ac_mid; then
17180 ac_lo= ac_hi=
17181 break
17182 fi
17183 ac_mid=`expr 2 '*' $ac_mid + 1`
17184 fi
17185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17186 done
17187 else
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191 cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h. */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 $ac_includes_default
17198 int
17199 main ()
17200 {
17201 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17202 test_array [0] = 0
17203
17204 ;
17205 return 0;
17206 }
17207 _ACEOF
17208 rm -f conftest.$ac_objext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210 (eval $ac_compile) 2>conftest.er1
17211 ac_status=$?
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag"
17218 || test ! -s conftest.err'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest.$ac_objext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_hi=-1 ac_mid=-1
17231 while :; do
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17239 int
17240 main ()
17241 {
17242 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17243 test_array [0] = 0
17244
17245 ;
17246 return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_lo=$ac_mid; break
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ac_hi=`expr '(' $ac_mid ')' - 1`
17277 if test $ac_mid -le $ac_hi; then
17278 ac_lo= ac_hi=
17279 break
17280 fi
17281 ac_mid=`expr 2 '*' $ac_mid`
17282 fi
17283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17284 done
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 ac_lo= ac_hi=
17290 fi
17291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17292 fi
17293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17294 # Binary search between lo and hi bounds.
17295 while test "x$ac_lo" != "x$ac_hi"; do
17296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 $ac_includes_default
17304 int
17305 main ()
17306 {
17307 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17308 test_array [0] = 0
17309
17310 ;
17311 return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316 (eval $ac_compile) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } &&
17323 { ac_try='test -z "$ac_c_werror_flag"
17324 || test ! -s conftest.err'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; } &&
17330 { ac_try='test -s conftest.$ac_objext'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336 ac_hi=$ac_mid
17337 else
17338 echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_lo=`expr '(' $ac_mid ')' + 1`
17342 fi
17343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17344 done
17345 case $ac_lo in
17346 ?*) ac_cv_sizeof_long=$ac_lo;;
17347 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17348 See \`config.log' for more details." >&5
17349 echo "$as_me: error: cannot compute sizeof (long), 77
17350 See \`config.log' for more details." >&2;}
17351 { (exit 1); exit 1; }; } ;;
17352 esac
17353 else
17354 if test "$cross_compiling" = yes; then
17355 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17356 See \`config.log' for more details." >&5
17357 echo "$as_me: error: cannot run test program while cross compiling
17358 See \`config.log' for more details." >&2;}
17359 { (exit 1); exit 1; }; }
17360 else
17361 cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h. */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17367 $ac_includes_default
17368 long longval () { return (long) (sizeof (long)); }
17369 unsigned long ulongval () { return (long) (sizeof (long)); }
17370 #include <stdio.h>
17371 #include <stdlib.h>
17372 int
17373 main ()
17374 {
17375
17376 FILE *f = fopen ("conftest.val", "w");
17377 if (! f)
17378 exit (1);
17379 if (((long) (sizeof (long))) < 0)
17380 {
17381 long i = longval ();
17382 if (i != ((long) (sizeof (long))))
17383 exit (1);
17384 fprintf (f, "%ld\n", i);
17385 }
17386 else
17387 {
17388 unsigned long i = ulongval ();
17389 if (i != ((long) (sizeof (long))))
17390 exit (1);
17391 fprintf (f, "%lu\n", i);
17392 }
17393 exit (ferror (f) || fclose (f) != 0);
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_sizeof_long=`cat conftest.val`
17411 else
17412 echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 ( exit $ac_status )
17417 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17418 See \`config.log' for more details." >&5
17419 echo "$as_me: error: cannot compute sizeof (long), 77
17420 See \`config.log' for more details." >&2;}
17421 { (exit 1); exit 1; }; }
17422 fi
17423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17424 fi
17425 fi
17426 rm -f conftest.val
17427 else
17428 ac_cv_sizeof_long=0
17429 fi
17430 fi
17431 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17432 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17433 cat >>confdefs.h <<_ACEOF
17434 #define SIZEOF_LONG $ac_cv_sizeof_long
17435 _ACEOF
17436
17437
17438 echo "$as_me:$LINENO: checking for void*" >&5
17439 echo $ECHO_N "checking for void*... $ECHO_C" >&6
17440 if test "${ac_cv_type_voidp+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 $ac_includes_default
17450 int
17451 main ()
17452 {
17453 if ((void* *) 0)
17454 return 0;
17455 if (sizeof (void*))
17456 return 0;
17457 ;
17458 return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17463 (eval $ac_compile) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest.$ac_objext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_cv_type_voidp=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488 ac_cv_type_voidp=no
17489 fi
17490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17491 fi
17492 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
17493 echo "${ECHO_T}$ac_cv_type_voidp" >&6
17494
17495 echo "$as_me:$LINENO: checking size of void*" >&5
17496 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
17497 if test "${ac_cv_sizeof_voidp+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500 if test "$ac_cv_type_voidp" = yes; then
17501 # The cast to unsigned long works around a bug in the HP C Compiler
17502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17504 # This bug is HP SR number 8606223364.
17505 if test "$cross_compiling" = yes; then
17506 # Depending upon the size, compute the lo and hi bounds.
17507 cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h. */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 $ac_includes_default
17514 int
17515 main ()
17516 {
17517 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
17518 test_array [0] = 0
17519
17520 ;
17521 return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526 (eval $ac_compile) 2>conftest.er1
17527 ac_status=$?
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag"
17534 || test ! -s conftest.err'
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest.$ac_objext'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 ac_lo=0 ac_mid=0
17547 while :; do
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 $ac_includes_default
17555 int
17556 main ()
17557 {
17558 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17559 test_array [0] = 0
17560
17561 ;
17562 return 0;
17563 }
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_hi=$ac_mid; break
17588 else
17589 echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592 ac_lo=`expr $ac_mid + 1`
17593 if test $ac_lo -le $ac_mid; then
17594 ac_lo= ac_hi=
17595 break
17596 fi
17597 ac_mid=`expr 2 '*' $ac_mid + 1`
17598 fi
17599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17600 done
17601 else
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
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 $ac_includes_default
17612 int
17613 main ()
17614 {
17615 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
17616 test_array [0] = 0
17617
17618 ;
17619 return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17624 (eval $ac_compile) 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest.$ac_objext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_hi=-1 ac_mid=-1
17645 while :; do
17646 cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h. */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 $ac_includes_default
17653 int
17654 main ()
17655 {
17656 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
17657 test_array [0] = 0
17658
17659 ;
17660 return 0;
17661 }
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665 (eval $ac_compile) 2>conftest.er1
17666 ac_status=$?
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -f conftest.er1
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag"
17673 || test ! -s conftest.err'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; } &&
17679 { ac_try='test -s conftest.$ac_objext'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17682 ac_status=$?
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; }; then
17685 ac_lo=$ac_mid; break
17686 else
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690 ac_hi=`expr '(' $ac_mid ')' - 1`
17691 if test $ac_mid -le $ac_hi; then
17692 ac_lo= ac_hi=
17693 break
17694 fi
17695 ac_mid=`expr 2 '*' $ac_mid`
17696 fi
17697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17698 done
17699 else
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 ac_lo= ac_hi=
17704 fi
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17708 # Binary search between lo and hi bounds.
17709 while test "x$ac_lo" != "x$ac_hi"; do
17710 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 $ac_includes_default
17718 int
17719 main ()
17720 {
17721 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17722 test_array [0] = 0
17723
17724 ;
17725 return 0;
17726 }
17727 _ACEOF
17728 rm -f conftest.$ac_objext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17730 (eval $ac_compile) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag"
17738 || test ! -s conftest.err'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest.$ac_objext'
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; }; then
17750 ac_hi=$ac_mid
17751 else
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 ac_lo=`expr '(' $ac_mid ')' + 1`
17756 fi
17757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17758 done
17759 case $ac_lo in
17760 ?*) ac_cv_sizeof_voidp=$ac_lo;;
17761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17762 See \`config.log' for more details." >&5
17763 echo "$as_me: error: cannot compute sizeof (void*), 77
17764 See \`config.log' for more details." >&2;}
17765 { (exit 1); exit 1; }; } ;;
17766 esac
17767 else
17768 if test "$cross_compiling" = yes; then
17769 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17770 See \`config.log' for more details." >&5
17771 echo "$as_me: error: cannot run test program while cross compiling
17772 See \`config.log' for more details." >&2;}
17773 { (exit 1); exit 1; }; }
17774 else
17775 cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 $ac_includes_default
17782 long longval () { return (long) (sizeof (void*)); }
17783 unsigned long ulongval () { return (long) (sizeof (void*)); }
17784 #include <stdio.h>
17785 #include <stdlib.h>
17786 int
17787 main ()
17788 {
17789
17790 FILE *f = fopen ("conftest.val", "w");
17791 if (! f)
17792 exit (1);
17793 if (((long) (sizeof (void*))) < 0)
17794 {
17795 long i = longval ();
17796 if (i != ((long) (sizeof (void*))))
17797 exit (1);
17798 fprintf (f, "%ld\n", i);
17799 }
17800 else
17801 {
17802 unsigned long i = ulongval ();
17803 if (i != ((long) (sizeof (void*))))
17804 exit (1);
17805 fprintf (f, "%lu\n", i);
17806 }
17807 exit (ferror (f) || fclose (f) != 0);
17808
17809 ;
17810 return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest$ac_exeext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17815 (eval $ac_link) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17821 ac_status=$?
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_sizeof_voidp=`cat conftest.val`
17825 else
17826 echo "$as_me: program exited with status $ac_status" >&5
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 ( exit $ac_status )
17831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17832 See \`config.log' for more details." >&5
17833 echo "$as_me: error: cannot compute sizeof (void*), 77
17834 See \`config.log' for more details." >&2;}
17835 { (exit 1); exit 1; }; }
17836 fi
17837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17838 fi
17839 fi
17840 rm -f conftest.val
17841 else
17842 ac_cv_sizeof_voidp=0
17843 fi
17844 fi
17845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
17846 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
17847 cat >>confdefs.h <<_ACEOF
17848 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
17849 _ACEOF
17850
17851
17852 ac_cv_char_data_model=""
17853 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17854 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17855 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17856 ac_cv_long_data_model=""
17857 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17858 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17859 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17860 echo "$as_me:$LINENO: checking data model" >&5
17861 echo $ECHO_N "checking data model... $ECHO_C" >&6
17862 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17863 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
17864 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
17865 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
17866 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17867 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
17868 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17869 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
17870 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17871 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
17872 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17873 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17874 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17875 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17876 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17877 222/*|333/*|444/*|666/*|888/*) :
17878 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
17879 *) ac_cv_data_model="none" ; n="very unusual model" ;;
17880 esac
17881 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17882 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
17883
17884 fi
17885
17886 if test "_$ac_cv_header_stdint_x" != "_" ; then
17887 ac_cv_header_stdint="$ac_cv_header_stdint_x"
17888 elif test "_$ac_cv_header_stdint_o" != "_" ; then
17889 ac_cv_header_stdint="$ac_cv_header_stdint_o"
17890 elif test "_$ac_cv_header_stdint_u" != "_" ; then
17891 ac_cv_header_stdint="$ac_cv_header_stdint_u"
17892 else
17893 ac_cv_header_stdint="stddef.h"
17894 fi
17895
17896 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
17897 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
17898 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
17899 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
17900 unset ac_cv_type_int_least32_t
17901 unset ac_cv_type_int_fast32_t
17902 echo "$as_me:$LINENO: checking for int_least32_t" >&5
17903 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
17904 if test "${ac_cv_type_int_least32_t+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 else
17907 cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h. */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17913 #include <$ac_cv_header_stdint>
17914
17915 int
17916 main ()
17917 {
17918 if ((int_least32_t *) 0)
17919 return 0;
17920 if (sizeof (int_least32_t))
17921 return 0;
17922 ;
17923 return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17928 (eval $ac_compile) 2>conftest.er1
17929 ac_status=$?
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -z "$ac_c_werror_flag"
17936 || test ! -s conftest.err'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; } &&
17942 { ac_try='test -s conftest.$ac_objext'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; }; then
17948 ac_cv_type_int_least32_t=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ac_cv_type_int_least32_t=no
17954 fi
17955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17956 fi
17957 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
17958 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
17959
17960 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
17961 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
17962 if test "${ac_cv_type_int_fast32_t+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 #include<$ac_cv_header_stdint>
17972
17973 int
17974 main ()
17975 {
17976 if ((int_fast32_t *) 0)
17977 return 0;
17978 if (sizeof (int_fast32_t))
17979 return 0;
17980 ;
17981 return 0;
17982 }
17983 _ACEOF
17984 rm -f conftest.$ac_objext
17985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17986 (eval $ac_compile) 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_c_werror_flag"
17994 || test ! -s conftest.err'
17995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest.$ac_objext'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18006 ac_cv_type_int_fast32_t=yes
18007 else
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ac_cv_type_int_fast32_t=no
18012 fi
18013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18014 fi
18015 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
18016 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
18017
18018 echo "$as_me:$LINENO: checking for intmax_t" >&5
18019 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
18020 if test "${ac_cv_type_intmax_t+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h. */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 #include <$ac_cv_header_stdint>
18030
18031 int
18032 main ()
18033 {
18034 if ((intmax_t *) 0)
18035 return 0;
18036 if (sizeof (intmax_t))
18037 return 0;
18038 ;
18039 return 0;
18040 }
18041 _ACEOF
18042 rm -f conftest.$ac_objext
18043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18044 (eval $ac_compile) 2>conftest.er1
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -z "$ac_c_werror_flag"
18052 || test ! -s conftest.err'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; } &&
18058 { ac_try='test -s conftest.$ac_objext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_cv_type_intmax_t=yes
18065 else
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18068
18069 ac_cv_type_intmax_t=no
18070 fi
18071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18072 fi
18073 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
18074 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
18075
18076
18077 fi # shortcircut to system "stdint.h"
18078 # ------------------ PREPARE VARIABLES ------------------------------
18079 if test "$GCC" = "yes" ; then
18080 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
18081 else
18082 ac_cv_stdint_message="using $CC"
18083 fi
18084
18085 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
18086 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
18087
18088 # ----------------- DONE inttypes.h checks START header -------------
18089 ac_config_commands="$ac_config_commands $ac_stdint_h"
18090
18091
18092
18093
18094 # Check whether --with-glibj_zip or --without-glibj_zip was given.
18095 if test "${with_glibj_zip+set}" = set; then
18096 withval="$with_glibj_zip"
18097
18098 fi;
18099
18100 case "$with_glibj_zip" in
18101 "")
18102 use_glibj_zip=false
18103 ;;
18104 "no" )
18105 use_glibj_zip=false
18106 ;;
18107 "yes")
18108 { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
18109 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
18110 { (exit 1); exit 1; }; }
18111 ;;
18112 *)
18113 use_glibj_zip=true
18114 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
18115 ;;
18116 esac;
18117
18118
18119
18120 if test x$use_glibj_zip = xtrue; then
18121 USE_PREBUILT_GLIBJ_ZIP_TRUE=
18122 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
18123 else
18124 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
18125 USE_PREBUILT_GLIBJ_ZIP_FALSE=
18126 fi
18127
18128
18129
18130
18131 # Check whether --enable-local-sockets or --disable-local-sockets was given.
18132 if test "${enable_local_sockets+set}" = set; then
18133 enableval="$enable_local_sockets"
18134 case "${enableval}" in
18135 yes)
18136 ENABLE_LOCAL_SOCKETS=yes
18137 ;;
18138 *)
18139 ENABLE_LOCAL_SOCKETS=no
18140 ;;
18141 esac
18142 fi;
18143 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
18144 then
18145 if test "${ac_cv_header_sys_un_h+set}" = set; then
18146 echo "$as_me:$LINENO: checking for sys/un.h" >&5
18147 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
18148 if test "${ac_cv_header_sys_un_h+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 fi
18151 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
18152 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
18153 else
18154 # Is the header compilable?
18155 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
18156 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
18157 cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h. */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18163 $ac_includes_default
18164 #include <sys/un.h>
18165 _ACEOF
18166 rm -f conftest.$ac_objext
18167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18168 (eval $ac_compile) 2>conftest.er1
18169 ac_status=$?
18170 grep -v '^ *+' conftest.er1 >conftest.err
18171 rm -f conftest.er1
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_c_werror_flag"
18176 || test ! -s conftest.err'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest.$ac_objext'
18183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184 (eval $ac_try) 2>&5
18185 ac_status=$?
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); }; }; then
18188 ac_header_compiler=yes
18189 else
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.$ac_ext >&5
18192
18193 ac_header_compiler=no
18194 fi
18195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18197 echo "${ECHO_T}$ac_header_compiler" >&6
18198
18199 # Is the header present?
18200 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
18201 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h. */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h. */
18208 #include <sys/un.h>
18209 _ACEOF
18210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } >/dev/null; then
18218 if test -s conftest.err; then
18219 ac_cpp_err=$ac_c_preproc_warn_flag
18220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18221 else
18222 ac_cpp_err=
18223 fi
18224 else
18225 ac_cpp_err=yes
18226 fi
18227 if test -z "$ac_cpp_err"; then
18228 ac_header_preproc=yes
18229 else
18230 echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233 ac_header_preproc=no
18234 fi
18235 rm -f conftest.err conftest.$ac_ext
18236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18237 echo "${ECHO_T}$ac_header_preproc" >&6
18238
18239 # So? What about this header?
18240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18241 yes:no: )
18242 { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
18243 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18244 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
18245 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
18246 ac_header_preproc=yes
18247 ;;
18248 no:yes:* )
18249 { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
18250 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
18251 { echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
18252 echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
18253 { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
18254 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
18255 { echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
18256 echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
18257 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
18258 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
18259 { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
18260 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
18261 (
18262 cat <<\_ASBOX
18263 ## -------------------------------- ##
18264 ## Report this to classpath@gnu.org ##
18265 ## -------------------------------- ##
18266 _ASBOX
18267 ) |
18268 sed "s/^/$as_me: WARNING: /" >&2
18269 ;;
18270 esac
18271 echo "$as_me:$LINENO: checking for sys/un.h" >&5
18272 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
18273 if test "${ac_cv_header_sys_un_h+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 else
18276 ac_cv_header_sys_un_h=$ac_header_preproc
18277 fi
18278 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
18279 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
18280
18281 fi
18282
18283
18284
18285
18286
18287
18288
18289
18290 for ac_func in read write bind listen accept shutdown
18291 do
18292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18293 echo "$as_me:$LINENO: checking for $ac_func" >&5
18294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18295 if eval "test \"\${$as_ac_var+set}\" = set"; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 else
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18306 #define $ac_func innocuous_$ac_func
18307
18308 /* System header to define __stub macros and hopefully few prototypes,
18309 which can conflict with char $ac_func (); below.
18310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18311 <limits.h> exists even on freestanding compilers. */
18312
18313 #ifdef __STDC__
18314 # include <limits.h>
18315 #else
18316 # include <assert.h>
18317 #endif
18318
18319 #undef $ac_func
18320
18321 /* Override any gcc2 internal prototype to avoid an error. */
18322 #ifdef __cplusplus
18323 extern "C"
18324 {
18325 #endif
18326 /* We use char because int might match the return type of a gcc2
18327 builtin and then its argument prototype would still apply. */
18328 char $ac_func ();
18329 /* The GNU C library defines this for functions which it implements
18330 to always fail with ENOSYS. Some functions are actually named
18331 something starting with __ and the normal name is an alias. */
18332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18333 choke me
18334 #else
18335 char (*f) () = $ac_func;
18336 #endif
18337 #ifdef __cplusplus
18338 }
18339 #endif
18340
18341 int
18342 main ()
18343 {
18344 return f != $ac_func;
18345 ;
18346 return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18351 (eval $ac_link) 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
18358 { ac_try='test -z "$ac_c_werror_flag"
18359 || test ! -s conftest.err'
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest$ac_exeext'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 eval "$as_ac_var=yes"
18372 else
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 eval "$as_ac_var=no"
18377 fi
18378 rm -f conftest.err conftest.$ac_objext \
18379 conftest$ac_exeext conftest.$ac_ext
18380 fi
18381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18383 if test `eval echo '${'$as_ac_var'}'` = yes; then
18384 cat >>confdefs.h <<_ACEOF
18385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18386 _ACEOF
18387
18388 else
18389 { { echo "$as_me:$LINENO: error: networking support not available" >&5
18390 echo "$as_me: error: networking support not available" >&2;}
18391 { (exit 1); exit 1; }; }
18392 fi
18393 done
18394
18395
18396 cat >>confdefs.h <<\_ACEOF
18397 #define ENABLE_LOCAL_SOCKETS 1
18398 _ACEOF
18399
18400 fi
18401
18402
18403 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
18404 ENABLE_LOCAL_SOCKETS_TRUE=
18405 ENABLE_LOCAL_SOCKETS_FALSE='#'
18406 else
18407 ENABLE_LOCAL_SOCKETS_TRUE='#'
18408 ENABLE_LOCAL_SOCKETS_FALSE=
18409 fi
18410
18411
18412
18413 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/plugin/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"
18414
18415
18416 if test "x${COMPILE_WRAPPERS}" = xno
18417 then
18418 ac_config_files="$ac_config_files tools/appletviewer tools/jarsigner tools/keytool"
18419
18420 ac_config_commands="$ac_config_commands appletviewer"
18421
18422 ac_config_commands="$ac_config_commands jarsigner"
18423
18424 ac_config_commands="$ac_config_commands keytool"
18425
18426 fi
18427
18428 ac_config_commands="$ac_config_commands gen-classlist"
18429
18430 ac_config_commands="$ac_config_commands copy-vmresources"
18431
18432 cat >confcache <<\_ACEOF
18433 # This file is a shell script that caches the results of configure
18434 # tests run on this system so they can be shared between configure
18435 # scripts and configure runs, see configure's option --config-cache.
18436 # It is not useful on other systems. If it contains results you don't
18437 # want to keep, you may remove or edit it.
18438 #
18439 # config.status only pays attention to the cache file if you give it
18440 # the --recheck option to rerun configure.
18441 #
18442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18444 # following values.
18445
18446 _ACEOF
18447
18448 # The following way of writing the cache mishandles newlines in values,
18449 # but we know of no workaround that is simple, portable, and efficient.
18450 # So, don't put newlines in cache variables' values.
18451 # Ultrix sh set writes to stderr and can't be redirected directly,
18452 # and sets the high bit in the cache file unless we assign to the vars.
18453 {
18454 (set) 2>&1 |
18455 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18456 *ac_space=\ *)
18457 # `set' does not quote correctly, so add quotes (double-quote
18458 # substitution turns \\\\ into \\, and sed turns \\ into \).
18459 sed -n \
18460 "s/'/'\\\\''/g;
18461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18462 ;;
18463 *)
18464 # `set' quotes correctly as required by POSIX, so do not add quotes.
18465 sed -n \
18466 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18467 ;;
18468 esac;
18469 } |
18470 sed '
18471 t clear
18472 : clear
18473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18474 t end
18475 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18476 : end' >>confcache
18477 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18478 if test -w $cache_file; then
18479 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18480 cat confcache >$cache_file
18481 else
18482 echo "not updating unwritable cache $cache_file"
18483 fi
18484 fi
18485 rm -f confcache
18486
18487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18488 # Let make expand exec_prefix.
18489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18490
18491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18493 # trailing colons and then remove the whole line if VPATH becomes empty
18494 # (actually we leave an empty line to preserve line numbers).
18495 if test "x$srcdir" = x.; then
18496 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18497 s/:*\$(srcdir):*/:/;
18498 s/:*\${srcdir}:*/:/;
18499 s/:*@srcdir@:*/:/;
18500 s/^\([^=]*=[ ]*\):*/\1/;
18501 s/:*$//;
18502 s/^[^=]*=[ ]*$//;
18503 }'
18504 fi
18505
18506 DEFS=-DHAVE_CONFIG_H
18507
18508 ac_libobjs=
18509 ac_ltlibobjs=
18510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18511 # 1. Remove the extension, and $U if already installed.
18512 ac_i=`echo "$ac_i" |
18513 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18514 # 2. Add them.
18515 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18516 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18517 done
18518 LIBOBJS=$ac_libobjs
18519
18520 LTLIBOBJS=$ac_ltlibobjs
18521
18522
18523 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
18524 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
18525 Usually this means the macro was only invoked conditionally." >&5
18526 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
18527 Usually this means the macro was only invoked conditionally." >&2;}
18528 { (exit 1); exit 1; }; }
18529 fi
18530 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
18531 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
18532 Usually this means the macro was only invoked conditionally." >&5
18533 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
18534 Usually this means the macro was only invoked conditionally." >&2;}
18535 { (exit 1); exit 1; }; }
18536 fi
18537 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
18538 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
18539 Usually this means the macro was only invoked conditionally." >&5
18540 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
18541 Usually this means the macro was only invoked conditionally." >&2;}
18542 { (exit 1); exit 1; }; }
18543 fi
18544 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
18545 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
18546 Usually this means the macro was only invoked conditionally." >&5
18547 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
18548 Usually this means the macro was only invoked conditionally." >&2;}
18549 { (exit 1); exit 1; }; }
18550 fi
18551 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18552 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18553 Usually this means the macro was only invoked conditionally." >&5
18554 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18555 Usually this means the macro was only invoked conditionally." >&2;}
18556 { (exit 1); exit 1; }; }
18557 fi
18558 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18559 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18560 Usually this means the macro was only invoked conditionally." >&5
18561 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18562 Usually this means the macro was only invoked conditionally." >&2;}
18563 { (exit 1); exit 1; }; }
18564 fi
18565 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
18566 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
18567 Usually this means the macro was only invoked conditionally." >&5
18568 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
18569 Usually this means the macro was only invoked conditionally." >&2;}
18570 { (exit 1); exit 1; }; }
18571 fi
18572 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
18573 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
18574 Usually this means the macro was only invoked conditionally." >&5
18575 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
18576 Usually this means the macro was only invoked conditionally." >&2;}
18577 { (exit 1); exit 1; }; }
18578 fi
18579 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
18580 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
18581 Usually this means the macro was only invoked conditionally." >&5
18582 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
18583 Usually this means the macro was only invoked conditionally." >&2;}
18584 { (exit 1); exit 1; }; }
18585 fi
18586 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
18587 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
18588 Usually this means the macro was only invoked conditionally." >&5
18589 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
18590 Usually this means the macro was only invoked conditionally." >&2;}
18591 { (exit 1); exit 1; }; }
18592 fi
18593 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
18594 { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
18595 Usually this means the macro was only invoked conditionally." >&5
18596 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
18597 Usually this means the macro was only invoked conditionally." >&2;}
18598 { (exit 1); exit 1; }; }
18599 fi
18600 if test -z "${FOUND_CACAO_TRUE}" && test -z "${FOUND_CACAO_FALSE}"; then
18601 { { echo "$as_me:$LINENO: error: conditional \"FOUND_CACAO\" was never defined.
18602 Usually this means the macro was only invoked conditionally." >&5
18603 echo "$as_me: error: conditional \"FOUND_CACAO\" was never defined.
18604 Usually this means the macro was only invoked conditionally." >&2;}
18605 { (exit 1); exit 1; }; }
18606 fi
18607 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
18608 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
18609 Usually this means the macro was only invoked conditionally." >&5
18610 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
18611 Usually this means the macro was only invoked conditionally." >&2;}
18612 { (exit 1); exit 1; }; }
18613 fi
18614 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
18615 { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
18616 Usually this means the macro was only invoked conditionally." >&5
18617 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
18618 Usually this means the macro was only invoked conditionally." >&2;}
18619 { (exit 1); exit 1; }; }
18620 fi
18621 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18622 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18623 Usually this means the macro was only invoked conditionally." >&5
18624 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18625 Usually this means the macro was only invoked conditionally." >&2;}
18626 { (exit 1); exit 1; }; }
18627 fi
18628 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18629 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18630 Usually this means the macro was only invoked conditionally." >&5
18631 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18632 Usually this means the macro was only invoked conditionally." >&2;}
18633 { (exit 1); exit 1; }; }
18634 fi
18635 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
18636 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
18637 Usually this means the macro was only invoked conditionally." >&5
18638 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
18639 Usually this means the macro was only invoked conditionally." >&2;}
18640 { (exit 1); exit 1; }; }
18641 fi
18642 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
18643 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
18644 Usually this means the macro was only invoked conditionally." >&5
18645 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
18646 Usually this means the macro was only invoked conditionally." >&2;}
18647 { (exit 1); exit 1; }; }
18648 fi
18649 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
18650 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
18651 Usually this means the macro was only invoked conditionally." >&5
18652 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
18653 Usually this means the macro was only invoked conditionally." >&2;}
18654 { (exit 1); exit 1; }; }
18655 fi
18656 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
18657 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
18658 Usually this means the macro was only invoked conditionally." >&5
18659 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
18660 Usually this means the macro was only invoked conditionally." >&2;}
18661 { (exit 1); exit 1; }; }
18662 fi
18663 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
18664 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
18665 Usually this means the macro was only invoked conditionally." >&5
18666 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
18667 Usually this means the macro was only invoked conditionally." >&2;}
18668 { (exit 1); exit 1; }; }
18669 fi
18670 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
18671 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
18672 Usually this means the macro was only invoked conditionally." >&5
18673 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
18674 Usually this means the macro was only invoked conditionally." >&2;}
18675 { (exit 1); exit 1; }; }
18676 fi
18677 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
18678 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
18679 Usually this means the macro was only invoked conditionally." >&5
18680 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
18681 Usually this means the macro was only invoked conditionally." >&2;}
18682 { (exit 1); exit 1; }; }
18683 fi
18684 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
18685 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
18686 Usually this means the macro was only invoked conditionally." >&5
18687 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
18688 Usually this means the macro was only invoked conditionally." >&2;}
18689 { (exit 1); exit 1; }; }
18690 fi
18691 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
18692 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
18693 Usually this means the macro was only invoked conditionally." >&5
18694 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
18695 Usually this means the macro was only invoked conditionally." >&2;}
18696 { (exit 1); exit 1; }; }
18697 fi
18698 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
18699 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
18700 Usually this means the macro was only invoked conditionally." >&5
18701 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
18702 Usually this means the macro was only invoked conditionally." >&2;}
18703 { (exit 1); exit 1; }; }
18704 fi
18705 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18706 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18707 Usually this means the macro was only invoked conditionally." >&5
18708 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18709 Usually this means the macro was only invoked conditionally." >&2;}
18710 { (exit 1); exit 1; }; }
18711 fi
18712 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
18713 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
18714 Usually this means the macro was only invoked conditionally." >&5
18715 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
18716 Usually this means the macro was only invoked conditionally." >&2;}
18717 { (exit 1); exit 1; }; }
18718 fi
18719 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
18720 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
18721 Usually this means the macro was only invoked conditionally." >&5
18722 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
18723 Usually this means the macro was only invoked conditionally." >&2;}
18724 { (exit 1); exit 1; }; }
18725 fi
18726 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
18727 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
18728 Usually this means the macro was only invoked conditionally." >&5
18729 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
18730 Usually this means the macro was only invoked conditionally." >&2;}
18731 { (exit 1); exit 1; }; }
18732 fi
18733 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
18734 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
18735 Usually this means the macro was only invoked conditionally." >&5
18736 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
18737 Usually this means the macro was only invoked conditionally." >&2;}
18738 { (exit 1); exit 1; }; }
18739 fi
18740 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
18741 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
18742 Usually this means the macro was only invoked conditionally." >&5
18743 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
18744 Usually this means the macro was only invoked conditionally." >&2;}
18745 { (exit 1); exit 1; }; }
18746 fi
18747 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
18748 { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
18749 Usually this means the macro was only invoked conditionally." >&5
18750 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
18751 Usually this means the macro was only invoked conditionally." >&2;}
18752 { (exit 1); exit 1; }; }
18753 fi
18754 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
18755 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
18756 Usually this means the macro was only invoked conditionally." >&5
18757 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
18758 Usually this means the macro was only invoked conditionally." >&2;}
18759 { (exit 1); exit 1; }; }
18760 fi
18761
18762 : ${CONFIG_STATUS=./config.status}
18763 ac_clean_files_save=$ac_clean_files
18764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18765 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18766 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18767 cat >$CONFIG_STATUS <<_ACEOF
18768 #! $SHELL
18769 # Generated by $as_me.
18770 # Run this file to recreate the current configuration.
18771 # Compiler output produced by configure, useful for debugging
18772 # configure, is in config.log if it exists.
18773
18774 debug=false
18775 ac_cs_recheck=false
18776 ac_cs_silent=false
18777 SHELL=\${CONFIG_SHELL-$SHELL}
18778 _ACEOF
18779
18780 cat >>$CONFIG_STATUS <<\_ACEOF
18781 ## --------------------- ##
18782 ## M4sh Initialization. ##
18783 ## --------------------- ##
18784
18785 # Be Bourne compatible
18786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18787 emulate sh
18788 NULLCMD=:
18789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18790 # is contrary to our usage. Disable this feature.
18791 alias -g '${1+"$@"}'='"$@"'
18792 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18793 set -o posix
18794 fi
18795 DUALCASE=1; export DUALCASE # for MKS sh
18796
18797 # Support unset when possible.
18798 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18799 as_unset=unset
18800 else
18801 as_unset=false
18802 fi
18803
18804
18805 # Work around bugs in pre-3.0 UWIN ksh.
18806 $as_unset ENV MAIL MAILPATH
18807 PS1='$ '
18808 PS2='> '
18809 PS4='+ '
18810
18811 # NLS nuisances.
18812 for as_var in \
18813 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18814 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18815 LC_TELEPHONE LC_TIME
18816 do
18817 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18818 eval $as_var=C; export $as_var
18819 else
18820 $as_unset $as_var
18821 fi
18822 done
18823
18824 # Required to use basename.
18825 if expr a : '\(a\)' >/dev/null 2>&1; then
18826 as_expr=expr
18827 else
18828 as_expr=false
18829 fi
18830
18831 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18832 as_basename=basename
18833 else
18834 as_basename=false
18835 fi
18836
18837
18838 # Name of the executable.
18839 as_me=`$as_basename "$0" ||
18840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18841 X"$0" : 'X\(//\)$' \| \
18842 X"$0" : 'X\(/\)$' \| \
18843 . : '\(.\)' 2>/dev/null ||
18844 echo X/"$0" |
18845 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18846 /^X\/\(\/\/\)$/{ s//\1/; q; }
18847 /^X\/\(\/\).*/{ s//\1/; q; }
18848 s/.*/./; q'`
18849
18850
18851 # PATH needs CR, and LINENO needs CR and PATH.
18852 # Avoid depending upon Character Ranges.
18853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18856 as_cr_digits='0123456789'
18857 as_cr_alnum=$as_cr_Letters$as_cr_digits
18858
18859 # The user is always right.
18860 if test "${PATH_SEPARATOR+set}" != set; then
18861 echo "#! /bin/sh" >conf$$.sh
18862 echo "exit 0" >>conf$$.sh
18863 chmod +x conf$$.sh
18864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18865 PATH_SEPARATOR=';'
18866 else
18867 PATH_SEPARATOR=:
18868 fi
18869 rm -f conf$$.sh
18870 fi
18871
18872
18873 as_lineno_1=$LINENO
18874 as_lineno_2=$LINENO
18875 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18876 test "x$as_lineno_1" != "x$as_lineno_2" &&
18877 test "x$as_lineno_3" = "x$as_lineno_2" || {
18878 # Find who we are. Look in the path if we contain no path at all
18879 # relative or not.
18880 case $0 in
18881 *[\\/]* ) as_myself=$0 ;;
18882 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18884 do
18885 IFS=$as_save_IFS
18886 test -z "$as_dir" && as_dir=.
18887 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18888 done
18889
18890 ;;
18891 esac
18892 # We did not find ourselves, most probably we were run as `sh COMMAND'
18893 # in which case we are not to be found in the path.
18894 if test "x$as_myself" = x; then
18895 as_myself=$0
18896 fi
18897 if test ! -f "$as_myself"; then
18898 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18899 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18900 { (exit 1); exit 1; }; }
18901 fi
18902 case $CONFIG_SHELL in
18903 '')
18904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18905 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18906 do
18907 IFS=$as_save_IFS
18908 test -z "$as_dir" && as_dir=.
18909 for as_base in sh bash ksh sh5; do
18910 case $as_dir in
18911 /*)
18912 if ("$as_dir/$as_base" -c '
18913 as_lineno_1=$LINENO
18914 as_lineno_2=$LINENO
18915 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18916 test "x$as_lineno_1" != "x$as_lineno_2" &&
18917 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18918 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18919 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18920 CONFIG_SHELL=$as_dir/$as_base
18921 export CONFIG_SHELL
18922 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18923 fi;;
18924 esac
18925 done
18926 done
18927 ;;
18928 esac
18929
18930 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18931 # uniformly replaced by the line number. The first 'sed' inserts a
18932 # line-number line before each line; the second 'sed' does the real
18933 # work. The second script uses 'N' to pair each line-number line
18934 # with the numbered line, and appends trailing '-' during
18935 # substitution so that $LINENO is not a special case at line end.
18936 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18937 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18938 sed '=' <$as_myself |
18939 sed '
18940 N
18941 s,$,-,
18942 : loop
18943 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18944 t loop
18945 s,-$,,
18946 s,^['$as_cr_digits']*\n,,
18947 ' >$as_me.lineno &&
18948 chmod +x $as_me.lineno ||
18949 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18950 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18951 { (exit 1); exit 1; }; }
18952
18953 # Don't try to exec as it changes $[0], causing all sort of problems
18954 # (the dirname of $[0] is not the place where we might find the
18955 # original and so on. Autoconf is especially sensible to this).
18956 . ./$as_me.lineno
18957 # Exit status is that of the last command.
18958 exit
18959 }
18960
18961
18962 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18963 *c*,-n*) ECHO_N= ECHO_C='
18964 ' ECHO_T=' ' ;;
18965 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18966 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18967 esac
18968
18969 if expr a : '\(a\)' >/dev/null 2>&1; then
18970 as_expr=expr
18971 else
18972 as_expr=false
18973 fi
18974
18975 rm -f conf$$ conf$$.exe conf$$.file
18976 echo >conf$$.file
18977 if ln -s conf$$.file conf$$ 2>/dev/null; then
18978 # We could just check for DJGPP; but this test a) works b) is more generic
18979 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18980 if test -f conf$$.exe; then
18981 # Don't use ln at all; we don't have any links
18982 as_ln_s='cp -p'
18983 else
18984 as_ln_s='ln -s'
18985 fi
18986 elif ln conf$$.file conf$$ 2>/dev/null; then
18987 as_ln_s=ln
18988 else
18989 as_ln_s='cp -p'
18990 fi
18991 rm -f conf$$ conf$$.exe conf$$.file
18992
18993 if mkdir -p . 2>/dev/null; then
18994 as_mkdir_p=:
18995 else
18996 test -d ./-p && rmdir ./-p
18997 as_mkdir_p=false
18998 fi
18999
19000 as_executable_p="test -f"
19001
19002 # Sed expression to map a string onto a valid CPP name.
19003 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19004
19005 # Sed expression to map a string onto a valid variable name.
19006 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19007
19008
19009 # IFS
19010 # We need space, tab and new line, in precisely that order.
19011 as_nl='
19012 '
19013 IFS=" $as_nl"
19014
19015 # CDPATH.
19016 $as_unset CDPATH
19017
19018 exec 6>&1
19019
19020 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19021 # report actual input values of CONFIG_FILES etc. instead of their
19022 # values after options handling. Logging --version etc. is OK.
19023 exec 5>>config.log
19024 {
19025 echo
19026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19027 ## Running $as_me. ##
19028 _ASBOX
19029 } >&5
19030 cat >&5 <<_CSEOF
19031
19032 This file was extended by GNU Classpath $as_me 0.92-pre, which was
19033 generated by GNU Autoconf 2.59. Invocation command line was
19034
19035 CONFIG_FILES = $CONFIG_FILES
19036 CONFIG_HEADERS = $CONFIG_HEADERS
19037 CONFIG_LINKS = $CONFIG_LINKS
19038 CONFIG_COMMANDS = $CONFIG_COMMANDS
19039 $ $0 $@
19040
19041 _CSEOF
19042 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19043 echo >&5
19044 _ACEOF
19045
19046 # Files that config.status was made for.
19047 if test -n "$ac_config_files"; then
19048 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19049 fi
19050
19051 if test -n "$ac_config_headers"; then
19052 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19053 fi
19054
19055 if test -n "$ac_config_links"; then
19056 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19057 fi
19058
19059 if test -n "$ac_config_commands"; then
19060 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19061 fi
19062
19063 cat >>$CONFIG_STATUS <<\_ACEOF
19064
19065 ac_cs_usage="\
19066 \`$as_me' instantiates files from templates according to the
19067 current configuration.
19068
19069 Usage: $0 [OPTIONS] [FILE]...
19070
19071 -h, --help print this help, then exit
19072 -V, --version print version number, then exit
19073 -q, --quiet do not print progress messages
19074 -d, --debug don't remove temporary files
19075 --recheck update $as_me by reconfiguring in the same conditions
19076 --file=FILE[:TEMPLATE]
19077 instantiate the configuration file FILE
19078 --header=FILE[:TEMPLATE]
19079 instantiate the configuration header FILE
19080
19081 Configuration files:
19082 $config_files
19083
19084 Configuration headers:
19085 $config_headers
19086
19087 Configuration links:
19088 $config_links
19089
19090 Configuration commands:
19091 $config_commands
19092
19093 Report bugs to <bug-autoconf@gnu.org>."
19094 _ACEOF
19095
19096 cat >>$CONFIG_STATUS <<_ACEOF
19097 ac_cs_version="\\
19098 GNU Classpath config.status 0.92-pre
19099 configured by $0, generated by GNU Autoconf 2.59,
19100 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19101
19102 Copyright (C) 2003 Free Software Foundation, Inc.
19103 This config.status script is free software; the Free Software Foundation
19104 gives unlimited permission to copy, distribute and modify it."
19105 srcdir=$srcdir
19106 INSTALL="$INSTALL"
19107 _ACEOF
19108
19109 cat >>$CONFIG_STATUS <<\_ACEOF
19110 # If no file are specified by the user, then we need to provide default
19111 # value. By we need to know if files were specified by the user.
19112 ac_need_defaults=:
19113 while test $# != 0
19114 do
19115 case $1 in
19116 --*=*)
19117 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19118 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19119 ac_shift=:
19120 ;;
19121 -*)
19122 ac_option=$1
19123 ac_optarg=$2
19124 ac_shift=shift
19125 ;;
19126 *) # This is not an option, so the user has probably given explicit
19127 # arguments.
19128 ac_option=$1
19129 ac_need_defaults=false;;
19130 esac
19131
19132 case $ac_option in
19133 # Handling of the options.
19134 _ACEOF
19135 cat >>$CONFIG_STATUS <<\_ACEOF
19136 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19137 ac_cs_recheck=: ;;
19138 --version | --vers* | -V )
19139 echo "$ac_cs_version"; exit 0 ;;
19140 --he | --h)
19141 # Conflict between --help and --header
19142 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19143 Try \`$0 --help' for more information." >&5
19144 echo "$as_me: error: ambiguous option: $1
19145 Try \`$0 --help' for more information." >&2;}
19146 { (exit 1); exit 1; }; };;
19147 --help | --hel | -h )
19148 echo "$ac_cs_usage"; exit 0 ;;
19149 --debug | --d* | -d )
19150 debug=: ;;
19151 --file | --fil | --fi | --f )
19152 $ac_shift
19153 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19154 ac_need_defaults=false;;
19155 --header | --heade | --head | --hea )
19156 $ac_shift
19157 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19158 ac_need_defaults=false;;
19159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19161 ac_cs_silent=: ;;
19162
19163 # This is an error.
19164 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19165 Try \`$0 --help' for more information." >&5
19166 echo "$as_me: error: unrecognized option: $1
19167 Try \`$0 --help' for more information." >&2;}
19168 { (exit 1); exit 1; }; } ;;
19169
19170 *) ac_config_targets="$ac_config_targets $1" ;;
19171
19172 esac
19173 shift
19174 done
19175
19176 ac_configure_extra_args=
19177
19178 if $ac_cs_silent; then
19179 exec 6>/dev/null
19180 ac_configure_extra_args="$ac_configure_extra_args --silent"
19181 fi
19182
19183 _ACEOF
19184 cat >>$CONFIG_STATUS <<_ACEOF
19185 if \$ac_cs_recheck; then
19186 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19187 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19188 fi
19189
19190 _ACEOF
19191
19192 cat >>$CONFIG_STATUS <<_ACEOF
19193 #
19194 # INIT-COMMANDS section.
19195 #
19196
19197 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19198 # variables for create stdint.h replacement
19199 PACKAGE="$PACKAGE"
19200 VERSION="$VERSION"
19201 ac_stdint_h="$ac_stdint_h"
19202 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19203 ac_cv_stdint_message="$ac_cv_stdint_message"
19204 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19205 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19206 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19207 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19208 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19209 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19210 ac_cv_char_data_model="$ac_cv_char_data_model"
19211 ac_cv_long_data_model="$ac_cv_long_data_model"
19212 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19213 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19214 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19215
19216
19217 _ACEOF
19218
19219
19220
19221 cat >>$CONFIG_STATUS <<\_ACEOF
19222 for ac_config_target in $ac_config_targets
19223 do
19224 case "$ac_config_target" in
19225 # Handling of arguments.
19226 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
19227 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19228 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19229 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
19230 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
19231 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
19232 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
19233 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
19234 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
19235 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19236 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
19237 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
19238 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
19239 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
19240 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
19241 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
19242 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
19243 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
19244 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
19245 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
19246 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
19247 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
19248 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
19249 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
19250 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
19251 "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
19252 "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
19253 "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
19254 "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
19255 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
19256 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19257 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
19258 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19259 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
19260 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
19261 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19262 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19263 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
19264 "tools/appletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/appletviewer" ;;
19265 "tools/jarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/jarsigner" ;;
19266 "tools/keytool" ) CONFIG_FILES="$CONFIG_FILES tools/keytool" ;;
19267 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
19268 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19269 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
19270 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19271 "appletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS appletviewer" ;;
19272 "jarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS jarsigner" ;;
19273 "keytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS keytool" ;;
19274 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
19275 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
19276 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19279 { (exit 1); exit 1; }; };;
19280 esac
19281 done
19282
19283 # If the user did not use the arguments to specify the items to instantiate,
19284 # then the envvar interface is used. Set only those that are not.
19285 # We use the long form for the default assignment because of an extremely
19286 # bizarre bug on SunOS 4.1.3.
19287 if $ac_need_defaults; then
19288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19290 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19291 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19292 fi
19293
19294 # Have a temporary directory for convenience. Make it in the build tree
19295 # simply because there is no reason to put it here, and in addition,
19296 # creating and moving files from /tmp can sometimes cause problems.
19297 # Create a temporary directory, and hook for its removal unless debugging.
19298 $debug ||
19299 {
19300 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19301 trap '{ (exit 1); exit 1; }' 1 2 13 15
19302 }
19303
19304 # Create a (secure) tmp directory for tmp files.
19305
19306 {
19307 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19308 test -n "$tmp" && test -d "$tmp"
19309 } ||
19310 {
19311 tmp=./confstat$$-$RANDOM
19312 (umask 077 && mkdir $tmp)
19313 } ||
19314 {
19315 echo "$me: cannot create a temporary directory in ." >&2
19316 { (exit 1); exit 1; }
19317 }
19318
19319 _ACEOF
19320
19321 cat >>$CONFIG_STATUS <<_ACEOF
19322
19323 #
19324 # CONFIG_FILES section.
19325 #
19326
19327 # No need to generate the scripts if there are no CONFIG_FILES.
19328 # This happens for instance when ./config.status config.h
19329 if test -n "\$CONFIG_FILES"; then
19330 # Protect against being on the right side of a sed subst in config.status.
19331 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19332 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19333 s,@SHELL@,$SHELL,;t t
19334 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19335 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19336 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19337 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19338 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19339 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19340 s,@exec_prefix@,$exec_prefix,;t t
19341 s,@prefix@,$prefix,;t t
19342 s,@program_transform_name@,$program_transform_name,;t t
19343 s,@bindir@,$bindir,;t t
19344 s,@sbindir@,$sbindir,;t t
19345 s,@libexecdir@,$libexecdir,;t t
19346 s,@datadir@,$datadir,;t t
19347 s,@sysconfdir@,$sysconfdir,;t t
19348 s,@sharedstatedir@,$sharedstatedir,;t t
19349 s,@localstatedir@,$localstatedir,;t t
19350 s,@libdir@,$libdir,;t t
19351 s,@includedir@,$includedir,;t t
19352 s,@oldincludedir@,$oldincludedir,;t t
19353 s,@infodir@,$infodir,;t t
19354 s,@mandir@,$mandir,;t t
19355 s,@build_alias@,$build_alias,;t t
19356 s,@host_alias@,$host_alias,;t t
19357 s,@target_alias@,$target_alias,;t t
19358 s,@DEFS@,$DEFS,;t t
19359 s,@ECHO_C@,$ECHO_C,;t t
19360 s,@ECHO_N@,$ECHO_N,;t t
19361 s,@ECHO_T@,$ECHO_T,;t t
19362 s,@LIBS@,$LIBS,;t t
19363 s,@build@,$build,;t t
19364 s,@build_cpu@,$build_cpu,;t t
19365 s,@build_vendor@,$build_vendor,;t t
19366 s,@build_os@,$build_os,;t t
19367 s,@host@,$host,;t t
19368 s,@host_cpu@,$host_cpu,;t t
19369 s,@host_vendor@,$host_vendor,;t t
19370 s,@host_os@,$host_os,;t t
19371 s,@target@,$target,;t t
19372 s,@target_cpu@,$target_cpu,;t t
19373 s,@target_vendor@,$target_vendor,;t t
19374 s,@target_os@,$target_os,;t t
19375 s,@LIBVERSION@,$LIBVERSION,;t t
19376 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
19377 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
19378 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19379 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19380 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19381 s,@CYGPATH_W@,$CYGPATH_W,;t t
19382 s,@PACKAGE@,$PACKAGE,;t t
19383 s,@VERSION@,$VERSION,;t t
19384 s,@ACLOCAL@,$ACLOCAL,;t t
19385 s,@AUTOCONF@,$AUTOCONF,;t t
19386 s,@AUTOMAKE@,$AUTOMAKE,;t t
19387 s,@AUTOHEADER@,$AUTOHEADER,;t t
19388 s,@MAKEINFO@,$MAKEINFO,;t t
19389 s,@install_sh@,$install_sh,;t t
19390 s,@STRIP@,$STRIP,;t t
19391 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19392 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19393 s,@mkdir_p@,$mkdir_p,;t t
19394 s,@AWK@,$AWK,;t t
19395 s,@SET_MAKE@,$SET_MAKE,;t t
19396 s,@am__leading_dot@,$am__leading_dot,;t t
19397 s,@AMTAR@,$AMTAR,;t t
19398 s,@am__tar@,$am__tar,;t t
19399 s,@am__untar@,$am__untar,;t t
19400 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
19401 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
19402 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
19403 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
19404 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
19405 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
19406 s,@default_toolkit@,$default_toolkit,;t t
19407 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
19408 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
19409 s,@CC@,$CC,;t t
19410 s,@CFLAGS@,$CFLAGS,;t t
19411 s,@LDFLAGS@,$LDFLAGS,;t t
19412 s,@CPPFLAGS@,$CPPFLAGS,;t t
19413 s,@ac_ct_CC@,$ac_ct_CC,;t t
19414 s,@EXEEXT@,$EXEEXT,;t t
19415 s,@OBJEXT@,$OBJEXT,;t t
19416 s,@DEPDIR@,$DEPDIR,;t t
19417 s,@am__include@,$am__include,;t t
19418 s,@am__quote@,$am__quote,;t t
19419 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19420 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19421 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19422 s,@CCDEPMODE@,$CCDEPMODE,;t t
19423 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19424 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19425 s,@CPP@,$CPP,;t t
19426 s,@EGREP@,$EGREP,;t t
19427 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
19428 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
19429 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
19430 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
19431 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
19432 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
19433 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
19434 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
19435 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
19436 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
19437 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
19438 s,@glibjdir@,$glibjdir,;t t
19439 s,@VM_BINARY@,$VM_BINARY,;t t
19440 s,@FOUND_CACAO_TRUE@,$FOUND_CACAO_TRUE,;t t
19441 s,@FOUND_CACAO_FALSE@,$FOUND_CACAO_FALSE,;t t
19442 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
19443 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
19444 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
19445 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
19446 s,@LN_S@,$LN_S,;t t
19447 s,@CXX@,$CXX,;t t
19448 s,@CXXFLAGS@,$CXXFLAGS,;t t
19449 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19450 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19451 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19452 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19453 s,@RANLIB@,$RANLIB,;t t
19454 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19455 s,@LIBTOOL@,$LIBTOOL,;t t
19456 s,@CXXCPP@,$CXXCPP,;t t
19457 s,@PERL@,$PERL,;t t
19458 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
19459 s,@LIBMAGIC@,$LIBMAGIC,;t t
19460 s,@LIBICONV@,$LIBICONV,;t t
19461 s,@LTLIBICONV@,$LTLIBICONV,;t t
19462 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
19463 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
19464 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
19465 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19466 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
19467 s,@XML_LIBS@,$XML_LIBS,;t t
19468 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
19469 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
19470 s,@X_CFLAGS@,$X_CFLAGS,;t t
19471 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19472 s,@X_LIBS@,$X_LIBS,;t t
19473 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19474 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19475 s,@GTK_LIBS@,$GTK_LIBS,;t t
19476 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
19477 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
19478 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
19479 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
19480 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
19481 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
19482 s,@QT_LIBS@,$QT_LIBS,;t t
19483 s,@MOC@,$MOC,;t t
19484 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
19485 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
19486 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
19487 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
19488 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
19489 s,@USER_JAVAH@,$USER_JAVAH,;t t
19490 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
19491 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
19492 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
19493 s,@GCJ@,$GCJ,;t t
19494 s,@JIKES@,$JIKES,;t t
19495 s,@JIKESENCODING@,$JIKESENCODING,;t t
19496 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
19497 s,@KJC@,$KJC,;t t
19498 s,@GCJX@,$GCJX,;t t
19499 s,@ECJ@,$ECJ,;t t
19500 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
19501 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
19502 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
19503 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
19504 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
19505 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
19506 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
19507 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
19508 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
19509 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
19510 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
19511 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
19512 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
19513 s,@vm_classes@,$vm_classes,;t t
19514 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19515 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19516 s,@MAINT@,$MAINT,;t t
19517 s,@LIBDEBUG@,$LIBDEBUG,;t t
19518 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
19519 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
19520 s,@REMOVE@,$REMOVE,;t t
19521 s,@MKDIR@,$MKDIR,;t t
19522 s,@CP@,$CP,;t t
19523 s,@DATE@,$DATE,;t t
19524 s,@FIND@,$FIND,;t t
19525 s,@ZIP@,$ZIP,;t t
19526 s,@FASTJAR@,$FASTJAR,;t t
19527 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
19528 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
19529 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
19530 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
19531 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
19532 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
19533 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
19534 s,@GJDOC@,$GJDOC,;t t
19535 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
19536 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
19537 s,@JAY@,$JAY,;t t
19538 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
19539 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
19540 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
19541 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
19542 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
19543 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
19544 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
19545 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
19546 s,@LIBOBJS@,$LIBOBJS,;t t
19547 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19548 CEOF
19549
19550 _ACEOF
19551
19552 cat >>$CONFIG_STATUS <<\_ACEOF
19553 # Split the substitutions into bite-sized pieces for seds with
19554 # small command number limits, like on Digital OSF/1 and HP-UX.
19555 ac_max_sed_lines=48
19556 ac_sed_frag=1 # Number of current file.
19557 ac_beg=1 # First line for current file.
19558 ac_end=$ac_max_sed_lines # Line after last line for current file.
19559 ac_more_lines=:
19560 ac_sed_cmds=
19561 while $ac_more_lines; do
19562 if test $ac_beg -gt 1; then
19563 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19564 else
19565 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19566 fi
19567 if test ! -s $tmp/subs.frag; then
19568 ac_more_lines=false
19569 else
19570 # The purpose of the label and of the branching condition is to
19571 # speed up the sed processing (if there are no `@' at all, there
19572 # is no need to browse any of the substitutions).
19573 # These are the two extra sed commands mentioned above.
19574 (echo ':t
19575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19576 if test -z "$ac_sed_cmds"; then
19577 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19578 else
19579 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19580 fi
19581 ac_sed_frag=`expr $ac_sed_frag + 1`
19582 ac_beg=$ac_end
19583 ac_end=`expr $ac_end + $ac_max_sed_lines`
19584 fi
19585 done
19586 if test -z "$ac_sed_cmds"; then
19587 ac_sed_cmds=cat
19588 fi
19589 fi # test -n "$CONFIG_FILES"
19590
19591 _ACEOF
19592 cat >>$CONFIG_STATUS <<\_ACEOF
19593 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19595 case $ac_file in
19596 - | *:- | *:-:* ) # input from stdin
19597 cat >$tmp/stdin
19598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19602 * ) ac_file_in=$ac_file.in ;;
19603 esac
19604
19605 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19606 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19608 X"$ac_file" : 'X\(//\)[^/]' \| \
19609 X"$ac_file" : 'X\(//\)$' \| \
19610 X"$ac_file" : 'X\(/\)' \| \
19611 . : '\(.\)' 2>/dev/null ||
19612 echo X"$ac_file" |
19613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19615 /^X\(\/\/\)$/{ s//\1/; q; }
19616 /^X\(\/\).*/{ s//\1/; q; }
19617 s/.*/./; q'`
19618 { if $as_mkdir_p; then
19619 mkdir -p "$ac_dir"
19620 else
19621 as_dir="$ac_dir"
19622 as_dirs=
19623 while test ! -d "$as_dir"; do
19624 as_dirs="$as_dir $as_dirs"
19625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19627 X"$as_dir" : 'X\(//\)[^/]' \| \
19628 X"$as_dir" : 'X\(//\)$' \| \
19629 X"$as_dir" : 'X\(/\)' \| \
19630 . : '\(.\)' 2>/dev/null ||
19631 echo X"$as_dir" |
19632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19634 /^X\(\/\/\)$/{ s//\1/; q; }
19635 /^X\(\/\).*/{ s//\1/; q; }
19636 s/.*/./; q'`
19637 done
19638 test ! -n "$as_dirs" || mkdir $as_dirs
19639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19641 { (exit 1); exit 1; }; }; }
19642
19643 ac_builddir=.
19644
19645 if test "$ac_dir" != .; then
19646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19647 # A "../" for each directory in $ac_dir_suffix.
19648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19649 else
19650 ac_dir_suffix= ac_top_builddir=
19651 fi
19652
19653 case $srcdir in
19654 .) # No --srcdir option. We are building in place.
19655 ac_srcdir=.
19656 if test -z "$ac_top_builddir"; then
19657 ac_top_srcdir=.
19658 else
19659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19660 fi ;;
19661 [\\/]* | ?:[\\/]* ) # Absolute path.
19662 ac_srcdir=$srcdir$ac_dir_suffix;
19663 ac_top_srcdir=$srcdir ;;
19664 *) # Relative path.
19665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19667 esac
19668
19669 # Do not use `cd foo && pwd` to compute absolute paths, because
19670 # the directories may not exist.
19671 case `pwd` in
19672 .) ac_abs_builddir="$ac_dir";;
19673 *)
19674 case "$ac_dir" in
19675 .) ac_abs_builddir=`pwd`;;
19676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19678 esac;;
19679 esac
19680 case $ac_abs_builddir in
19681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19682 *)
19683 case ${ac_top_builddir}. in
19684 .) ac_abs_top_builddir=$ac_abs_builddir;;
19685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19687 esac;;
19688 esac
19689 case $ac_abs_builddir in
19690 .) ac_abs_srcdir=$ac_srcdir;;
19691 *)
19692 case $ac_srcdir in
19693 .) ac_abs_srcdir=$ac_abs_builddir;;
19694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19696 esac;;
19697 esac
19698 case $ac_abs_builddir in
19699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19700 *)
19701 case $ac_top_srcdir in
19702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19705 esac;;
19706 esac
19707
19708
19709 case $INSTALL in
19710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19711 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19712 esac
19713
19714 if test x"$ac_file" != x-; then
19715 { echo "$as_me:$LINENO: creating $ac_file" >&5
19716 echo "$as_me: creating $ac_file" >&6;}
19717 rm -f "$ac_file"
19718 fi
19719 # Let's still pretend it is `configure' which instantiates (i.e., don't
19720 # use $as_me), people would be surprised to read:
19721 # /* config.h. Generated by config.status. */
19722 if test x"$ac_file" = x-; then
19723 configure_input=
19724 else
19725 configure_input="$ac_file. "
19726 fi
19727 configure_input=$configure_input"Generated from `echo $ac_file_in |
19728 sed 's,.*/,,'` by configure."
19729
19730 # First look for the input files in the build tree, otherwise in the
19731 # src tree.
19732 ac_file_inputs=`IFS=:
19733 for f in $ac_file_in; do
19734 case $f in
19735 -) echo $tmp/stdin ;;
19736 [\\/$]*)
19737 # Absolute (can't be DOS-style, as IFS=:)
19738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19739 echo "$as_me: error: cannot find input file: $f" >&2;}
19740 { (exit 1); exit 1; }; }
19741 echo "$f";;
19742 *) # Relative
19743 if test -f "$f"; then
19744 # Build tree
19745 echo "$f"
19746 elif test -f "$srcdir/$f"; then
19747 # Source tree
19748 echo "$srcdir/$f"
19749 else
19750 # /dev/null tree
19751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19752 echo "$as_me: error: cannot find input file: $f" >&2;}
19753 { (exit 1); exit 1; }; }
19754 fi;;
19755 esac
19756 done` || { (exit 1); exit 1; }
19757 _ACEOF
19758 cat >>$CONFIG_STATUS <<_ACEOF
19759 sed "$ac_vpsub
19760 $extrasub
19761 _ACEOF
19762 cat >>$CONFIG_STATUS <<\_ACEOF
19763 :t
19764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19765 s,@configure_input@,$configure_input,;t t
19766 s,@srcdir@,$ac_srcdir,;t t
19767 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19768 s,@top_srcdir@,$ac_top_srcdir,;t t
19769 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19770 s,@builddir@,$ac_builddir,;t t
19771 s,@abs_builddir@,$ac_abs_builddir,;t t
19772 s,@top_builddir@,$ac_top_builddir,;t t
19773 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19774 s,@INSTALL@,$ac_INSTALL,;t t
19775 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19776 rm -f $tmp/stdin
19777 if test x"$ac_file" != x-; then
19778 mv $tmp/out $ac_file
19779 else
19780 cat $tmp/out
19781 rm -f $tmp/out
19782 fi
19783
19784 done
19785 _ACEOF
19786 cat >>$CONFIG_STATUS <<\_ACEOF
19787
19788 #
19789 # CONFIG_HEADER section.
19790 #
19791
19792 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19793 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19794 #
19795 # ac_d sets the value in "#define NAME VALUE" lines.
19796 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19797 ac_dB='[ ].*$,\1#\2'
19798 ac_dC=' '
19799 ac_dD=',;t'
19800 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19801 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19802 ac_uB='$,\1#\2define\3'
19803 ac_uC=' '
19804 ac_uD=',;t'
19805
19806 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19808 case $ac_file in
19809 - | *:- | *:-:* ) # input from stdin
19810 cat >$tmp/stdin
19811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19815 * ) ac_file_in=$ac_file.in ;;
19816 esac
19817
19818 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19819 echo "$as_me: creating $ac_file" >&6;}
19820
19821 # First look for the input files in the build tree, otherwise in the
19822 # src tree.
19823 ac_file_inputs=`IFS=:
19824 for f in $ac_file_in; do
19825 case $f in
19826 -) echo $tmp/stdin ;;
19827 [\\/$]*)
19828 # Absolute (can't be DOS-style, as IFS=:)
19829 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19830 echo "$as_me: error: cannot find input file: $f" >&2;}
19831 { (exit 1); exit 1; }; }
19832 # Do quote $f, to prevent DOS paths from being IFS'd.
19833 echo "$f";;
19834 *) # Relative
19835 if test -f "$f"; then
19836 # Build tree
19837 echo "$f"
19838 elif test -f "$srcdir/$f"; then
19839 # Source tree
19840 echo "$srcdir/$f"
19841 else
19842 # /dev/null tree
19843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19844 echo "$as_me: error: cannot find input file: $f" >&2;}
19845 { (exit 1); exit 1; }; }
19846 fi;;
19847 esac
19848 done` || { (exit 1); exit 1; }
19849 # Remove the trailing spaces.
19850 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19851
19852 _ACEOF
19853
19854 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19855 # `conftest.undefs', that substitutes the proper values into
19856 # config.h.in to produce config.h. The first handles `#define'
19857 # templates, and the second `#undef' templates.
19858 # And first: Protect against being on the right side of a sed subst in
19859 # config.status. Protect against being in an unquoted here document
19860 # in config.status.
19861 rm -f conftest.defines conftest.undefs
19862 # Using a here document instead of a string reduces the quoting nightmare.
19863 # Putting comments in sed scripts is not portable.
19864 #
19865 # `end' is used to avoid that the second main sed command (meant for
19866 # 0-ary CPP macros) applies to n-ary macro definitions.
19867 # See the Autoconf documentation for `clear'.
19868 cat >confdef2sed.sed <<\_ACEOF
19869 s/[\\&,]/\\&/g
19870 s,[\\$`],\\&,g
19871 t clear
19872 : clear
19873 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19874 t end
19875 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19876 : end
19877 _ACEOF
19878 # If some macros were called several times there might be several times
19879 # the same #defines, which is useless. Nevertheless, we may not want to
19880 # sort them, since we want the *last* AC-DEFINE to be honored.
19881 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19882 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19883 rm -f confdef2sed.sed
19884
19885 # This sed command replaces #undef with comments. This is necessary, for
19886 # example, in the case of _POSIX_SOURCE, which is predefined and required
19887 # on some systems where configure will not decide to define it.
19888 cat >>conftest.undefs <<\_ACEOF
19889 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19890 _ACEOF
19891
19892 # Break up conftest.defines because some shells have a limit on the size
19893 # of here documents, and old seds have small limits too (100 cmds).
19894 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19895 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19896 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19897 echo ' :' >>$CONFIG_STATUS
19898 rm -f conftest.tail
19899 while grep . conftest.defines >/dev/null
19900 do
19901 # Write a limited-size here document to $tmp/defines.sed.
19902 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19903 # Speed up: don't consider the non `#define' lines.
19904 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19905 # Work around the forget-to-reset-the-flag bug.
19906 echo 't clr' >>$CONFIG_STATUS
19907 echo ': clr' >>$CONFIG_STATUS
19908 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19909 echo 'CEOF
19910 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19911 rm -f $tmp/in
19912 mv $tmp/out $tmp/in
19913 ' >>$CONFIG_STATUS
19914 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19915 rm -f conftest.defines
19916 mv conftest.tail conftest.defines
19917 done
19918 rm -f conftest.defines
19919 echo ' fi # grep' >>$CONFIG_STATUS
19920 echo >>$CONFIG_STATUS
19921
19922 # Break up conftest.undefs because some shells have a limit on the size
19923 # of here documents, and old seds have small limits too (100 cmds).
19924 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19925 rm -f conftest.tail
19926 while grep . conftest.undefs >/dev/null
19927 do
19928 # Write a limited-size here document to $tmp/undefs.sed.
19929 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19930 # Speed up: don't consider the non `#undef'
19931 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19932 # Work around the forget-to-reset-the-flag bug.
19933 echo 't clr' >>$CONFIG_STATUS
19934 echo ': clr' >>$CONFIG_STATUS
19935 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19936 echo 'CEOF
19937 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19938 rm -f $tmp/in
19939 mv $tmp/out $tmp/in
19940 ' >>$CONFIG_STATUS
19941 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19942 rm -f conftest.undefs
19943 mv conftest.tail conftest.undefs
19944 done
19945 rm -f conftest.undefs
19946
19947 cat >>$CONFIG_STATUS <<\_ACEOF
19948 # Let's still pretend it is `configure' which instantiates (i.e., don't
19949 # use $as_me), people would be surprised to read:
19950 # /* config.h. Generated by config.status. */
19951 if test x"$ac_file" = x-; then
19952 echo "/* Generated by configure. */" >$tmp/config.h
19953 else
19954 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19955 fi
19956 cat $tmp/in >>$tmp/config.h
19957 rm -f $tmp/in
19958 if test x"$ac_file" != x-; then
19959 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19960 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19961 echo "$as_me: $ac_file is unchanged" >&6;}
19962 else
19963 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19965 X"$ac_file" : 'X\(//\)[^/]' \| \
19966 X"$ac_file" : 'X\(//\)$' \| \
19967 X"$ac_file" : 'X\(/\)' \| \
19968 . : '\(.\)' 2>/dev/null ||
19969 echo X"$ac_file" |
19970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19972 /^X\(\/\/\)$/{ s//\1/; q; }
19973 /^X\(\/\).*/{ s//\1/; q; }
19974 s/.*/./; q'`
19975 { if $as_mkdir_p; then
19976 mkdir -p "$ac_dir"
19977 else
19978 as_dir="$ac_dir"
19979 as_dirs=
19980 while test ! -d "$as_dir"; do
19981 as_dirs="$as_dir $as_dirs"
19982 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19984 X"$as_dir" : 'X\(//\)[^/]' \| \
19985 X"$as_dir" : 'X\(//\)$' \| \
19986 X"$as_dir" : 'X\(/\)' \| \
19987 . : '\(.\)' 2>/dev/null ||
19988 echo X"$as_dir" |
19989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19991 /^X\(\/\/\)$/{ s//\1/; q; }
19992 /^X\(\/\).*/{ s//\1/; q; }
19993 s/.*/./; q'`
19994 done
19995 test ! -n "$as_dirs" || mkdir $as_dirs
19996 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19997 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19998 { (exit 1); exit 1; }; }; }
19999
20000 rm -f $ac_file
20001 mv $tmp/config.h $ac_file
20002 fi
20003 else
20004 cat $tmp/config.h
20005 rm -f $tmp/config.h
20006 fi
20007 # Compute $ac_file's index in $config_headers.
20008 _am_stamp_count=1
20009 for _am_header in $config_headers :; do
20010 case $_am_header in
20011 $ac_file | $ac_file:* )
20012 break ;;
20013 * )
20014 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20015 esac
20016 done
20017 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20018 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20019 X$ac_file : 'X\(//\)[^/]' \| \
20020 X$ac_file : 'X\(//\)$' \| \
20021 X$ac_file : 'X\(/\)' \| \
20022 . : '\(.\)' 2>/dev/null ||
20023 echo X$ac_file |
20024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20026 /^X\(\/\/\)$/{ s//\1/; q; }
20027 /^X\(\/\).*/{ s//\1/; q; }
20028 s/.*/./; q'`/stamp-h$_am_stamp_count
20029 done
20030 _ACEOF
20031 cat >>$CONFIG_STATUS <<\_ACEOF
20032
20033 #
20034 # CONFIG_LINKS section.
20035 #
20036
20037 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
20038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20040
20041 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
20042 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
20043
20044 if test ! -r $srcdir/$ac_source; then
20045 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
20046 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
20047 { (exit 1); exit 1; }; }
20048 fi
20049 rm -f $ac_dest
20050
20051 # Make relative symlinks.
20052 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
20053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054 X"$ac_dest" : 'X\(//\)[^/]' \| \
20055 X"$ac_dest" : 'X\(//\)$' \| \
20056 X"$ac_dest" : 'X\(/\)' \| \
20057 . : '\(.\)' 2>/dev/null ||
20058 echo X"$ac_dest" |
20059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061 /^X\(\/\/\)$/{ s//\1/; q; }
20062 /^X\(\/\).*/{ s//\1/; q; }
20063 s/.*/./; q'`
20064 { if $as_mkdir_p; then
20065 mkdir -p "$ac_dest_dir"
20066 else
20067 as_dir="$ac_dest_dir"
20068 as_dirs=
20069 while test ! -d "$as_dir"; do
20070 as_dirs="$as_dir $as_dirs"
20071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073 X"$as_dir" : 'X\(//\)[^/]' \| \
20074 X"$as_dir" : 'X\(//\)$' \| \
20075 X"$as_dir" : 'X\(/\)' \| \
20076 . : '\(.\)' 2>/dev/null ||
20077 echo X"$as_dir" |
20078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080 /^X\(\/\/\)$/{ s//\1/; q; }
20081 /^X\(\/\).*/{ s//\1/; q; }
20082 s/.*/./; q'`
20083 done
20084 test ! -n "$as_dirs" || mkdir $as_dirs
20085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
20087 { (exit 1); exit 1; }; }; }
20088
20089 ac_builddir=.
20090
20091 if test "$ac_dest_dir" != .; then
20092 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
20093 # A "../" for each directory in $ac_dir_suffix.
20094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20095 else
20096 ac_dir_suffix= ac_top_builddir=
20097 fi
20098
20099 case $srcdir in
20100 .) # No --srcdir option. We are building in place.
20101 ac_srcdir=.
20102 if test -z "$ac_top_builddir"; then
20103 ac_top_srcdir=.
20104 else
20105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20106 fi ;;
20107 [\\/]* | ?:[\\/]* ) # Absolute path.
20108 ac_srcdir=$srcdir$ac_dir_suffix;
20109 ac_top_srcdir=$srcdir ;;
20110 *) # Relative path.
20111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20113 esac
20114
20115 # Do not use `cd foo && pwd` to compute absolute paths, because
20116 # the directories may not exist.
20117 case `pwd` in
20118 .) ac_abs_builddir="$ac_dest_dir";;
20119 *)
20120 case "$ac_dest_dir" in
20121 .) ac_abs_builddir=`pwd`;;
20122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
20123 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
20124 esac;;
20125 esac
20126 case $ac_abs_builddir in
20127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20128 *)
20129 case ${ac_top_builddir}. in
20130 .) ac_abs_top_builddir=$ac_abs_builddir;;
20131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20133 esac;;
20134 esac
20135 case $ac_abs_builddir in
20136 .) ac_abs_srcdir=$ac_srcdir;;
20137 *)
20138 case $ac_srcdir in
20139 .) ac_abs_srcdir=$ac_abs_builddir;;
20140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20142 esac;;
20143 esac
20144 case $ac_abs_builddir in
20145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20146 *)
20147 case $ac_top_srcdir in
20148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20151 esac;;
20152 esac
20153
20154
20155 case $srcdir in
20156 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
20157 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
20158 esac
20159
20160 # Try a symlink, then a hard link, then a copy.
20161 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20162 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
20163 cp -p $srcdir/$ac_source $ac_dest ||
20164 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
20165 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
20166 { (exit 1); exit 1; }; }
20167 done
20168 _ACEOF
20169 cat >>$CONFIG_STATUS <<\_ACEOF
20170
20171 #
20172 # CONFIG_COMMANDS section.
20173 #
20174 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20175 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20176 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20177 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20179 X"$ac_dest" : 'X\(//\)[^/]' \| \
20180 X"$ac_dest" : 'X\(//\)$' \| \
20181 X"$ac_dest" : 'X\(/\)' \| \
20182 . : '\(.\)' 2>/dev/null ||
20183 echo X"$ac_dest" |
20184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20186 /^X\(\/\/\)$/{ s//\1/; q; }
20187 /^X\(\/\).*/{ s//\1/; q; }
20188 s/.*/./; q'`
20189 { if $as_mkdir_p; then
20190 mkdir -p "$ac_dir"
20191 else
20192 as_dir="$ac_dir"
20193 as_dirs=
20194 while test ! -d "$as_dir"; do
20195 as_dirs="$as_dir $as_dirs"
20196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20198 X"$as_dir" : 'X\(//\)[^/]' \| \
20199 X"$as_dir" : 'X\(//\)$' \| \
20200 X"$as_dir" : 'X\(/\)' \| \
20201 . : '\(.\)' 2>/dev/null ||
20202 echo X"$as_dir" |
20203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20205 /^X\(\/\/\)$/{ s//\1/; q; }
20206 /^X\(\/\).*/{ s//\1/; q; }
20207 s/.*/./; q'`
20208 done
20209 test ! -n "$as_dirs" || mkdir $as_dirs
20210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20211 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20212 { (exit 1); exit 1; }; }; }
20213
20214 ac_builddir=.
20215
20216 if test "$ac_dir" != .; then
20217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20218 # A "../" for each directory in $ac_dir_suffix.
20219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20220 else
20221 ac_dir_suffix= ac_top_builddir=
20222 fi
20223
20224 case $srcdir in
20225 .) # No --srcdir option. We are building in place.
20226 ac_srcdir=.
20227 if test -z "$ac_top_builddir"; then
20228 ac_top_srcdir=.
20229 else
20230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20231 fi ;;
20232 [\\/]* | ?:[\\/]* ) # Absolute path.
20233 ac_srcdir=$srcdir$ac_dir_suffix;
20234 ac_top_srcdir=$srcdir ;;
20235 *) # Relative path.
20236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20238 esac
20239
20240 # Do not use `cd foo && pwd` to compute absolute paths, because
20241 # the directories may not exist.
20242 case `pwd` in
20243 .) ac_abs_builddir="$ac_dir";;
20244 *)
20245 case "$ac_dir" in
20246 .) ac_abs_builddir=`pwd`;;
20247 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20248 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20249 esac;;
20250 esac
20251 case $ac_abs_builddir in
20252 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20253 *)
20254 case ${ac_top_builddir}. in
20255 .) ac_abs_top_builddir=$ac_abs_builddir;;
20256 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20257 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20258 esac;;
20259 esac
20260 case $ac_abs_builddir in
20261 .) ac_abs_srcdir=$ac_srcdir;;
20262 *)
20263 case $ac_srcdir in
20264 .) ac_abs_srcdir=$ac_abs_builddir;;
20265 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20266 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20267 esac;;
20268 esac
20269 case $ac_abs_builddir in
20270 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20271 *)
20272 case $ac_top_srcdir in
20273 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20274 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20275 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20276 esac;;
20277 esac
20278
20279
20280 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20281 echo "$as_me: executing $ac_dest commands" >&6;}
20282 case $ac_dest in
20283 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20284 # Strip MF so we end up with the name of the file.
20285 mf=`echo "$mf" | sed -e 's/:.*$//'`
20286 # Check whether this is an Automake generated Makefile or not.
20287 # We used to match only the files named `Makefile.in', but
20288 # some people rename them; so instead we look at the file content.
20289 # Grep'ing the first line is not enough: some people post-process
20290 # each Makefile.in and add a new line on top of each file to say so.
20291 # So let's grep whole file.
20292 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20293 dirpart=`(dirname "$mf") 2>/dev/null ||
20294 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20295 X"$mf" : 'X\(//\)[^/]' \| \
20296 X"$mf" : 'X\(//\)$' \| \
20297 X"$mf" : 'X\(/\)' \| \
20298 . : '\(.\)' 2>/dev/null ||
20299 echo X"$mf" |
20300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20302 /^X\(\/\/\)$/{ s//\1/; q; }
20303 /^X\(\/\).*/{ s//\1/; q; }
20304 s/.*/./; q'`
20305 else
20306 continue
20307 fi
20308 # Extract the definition of DEPDIR, am__include, and am__quote
20309 # from the Makefile without running `make'.
20310 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20311 test -z "$DEPDIR" && continue
20312 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20313 test -z "am__include" && continue
20314 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20315 # When using ansi2knr, U may be empty or an underscore; expand it
20316 U=`sed -n 's/^U = //p' < "$mf"`
20317 # Find all dependency output files, they are included files with
20318 # $(DEPDIR) in their names. We invoke sed twice because it is the
20319 # simplest approach to changing $(DEPDIR) to its actual value in the
20320 # expansion.
20321 for file in `sed -n "
20322 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20323 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20324 # Make sure the directory exists.
20325 test -f "$dirpart/$file" && continue
20326 fdir=`(dirname "$file") 2>/dev/null ||
20327 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20328 X"$file" : 'X\(//\)[^/]' \| \
20329 X"$file" : 'X\(//\)$' \| \
20330 X"$file" : 'X\(/\)' \| \
20331 . : '\(.\)' 2>/dev/null ||
20332 echo X"$file" |
20333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20335 /^X\(\/\/\)$/{ s//\1/; q; }
20336 /^X\(\/\).*/{ s//\1/; q; }
20337 s/.*/./; q'`
20338 { if $as_mkdir_p; then
20339 mkdir -p $dirpart/$fdir
20340 else
20341 as_dir=$dirpart/$fdir
20342 as_dirs=
20343 while test ! -d "$as_dir"; do
20344 as_dirs="$as_dir $as_dirs"
20345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20347 X"$as_dir" : 'X\(//\)[^/]' \| \
20348 X"$as_dir" : 'X\(//\)$' \| \
20349 X"$as_dir" : 'X\(/\)' \| \
20350 . : '\(.\)' 2>/dev/null ||
20351 echo X"$as_dir" |
20352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20354 /^X\(\/\/\)$/{ s//\1/; q; }
20355 /^X\(\/\).*/{ s//\1/; q; }
20356 s/.*/./; q'`
20357 done
20358 test ! -n "$as_dirs" || mkdir $as_dirs
20359 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20360 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20361 { (exit 1); exit 1; }; }; }
20362
20363 # echo "creating $dirpart/$file"
20364 echo '# dummy' > "$dirpart/$file"
20365 done
20366 done
20367 ;;
20368 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
20369 $ac_stdint_h )
20370 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
20371 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20372 ac_stdint=$tmp/_stdint.h
20373
20374 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20375 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20376 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20377 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20378 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20379 if test "_$ac_cv_header_stdint_t" != "_" ; then
20380 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20381 echo "#include <stdint.h>" >>$ac_stdint
20382 echo "#endif" >>$ac_stdint
20383 echo "#endif" >>$ac_stdint
20384 else
20385
20386 cat >>$ac_stdint <<STDINT_EOF
20387
20388 /* ................... shortcircuit part ........................... */
20389
20390 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20391 #include <stdint.h>
20392 #else
20393 #include <stddef.h>
20394
20395 /* .................... configured part ............................ */
20396
20397 STDINT_EOF
20398
20399 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20400 if test "_$ac_cv_header_stdint_x" != "_" ; then
20401 ac_header="$ac_cv_header_stdint_x"
20402 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20403 else
20404 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20405 fi
20406
20407 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20408 if test "_$ac_cv_header_stdint_o" != "_" ; then
20409 ac_header="$ac_cv_header_stdint_o"
20410 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20411 else
20412 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20413 fi
20414
20415 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20416 if test "_$ac_cv_header_stdint_u" != "_" ; then
20417 ac_header="$ac_cv_header_stdint_u"
20418 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20419 else
20420 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20421 fi
20422
20423 echo "" >>$ac_stdint
20424
20425 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20426 echo "#include <$ac_header>" >>$ac_stdint
20427 echo "" >>$ac_stdint
20428 fi fi
20429
20430 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20431 if test "$ac_cv_type_uint64_t" = "yes" ; then
20432 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20433 else
20434 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20435 fi
20436 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20437 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20438 else
20439 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20440 fi
20441 echo "" >>$ac_stdint
20442
20443 echo "/* which type model has been detected */" >>$ac_stdint
20444 if test "_$ac_cv_char_data_model" != "_" ; then
20445 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20446 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20447 else
20448 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20449 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20450 fi
20451 echo "" >>$ac_stdint
20452
20453 echo "/* whether int_least types were detected */" >>$ac_stdint
20454 if test "$ac_cv_type_int_least32_t" = "yes"; then
20455 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20456 else
20457 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20458 fi
20459 echo "/* whether int_fast types were detected */" >>$ac_stdint
20460 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20461 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20462 else
20463 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20464 fi
20465 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20466 if test "$ac_cv_type_intmax_t" = "yes"; then
20467 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20468 else
20469 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20470 fi
20471 echo "" >>$ac_stdint
20472
20473 cat >>$ac_stdint <<STDINT_EOF
20474 /* .................... detections part ............................ */
20475
20476 /* whether we need to define bitspecific types from compiler base types */
20477 #ifndef _STDINT_HEADER_INTPTR
20478 #ifndef _STDINT_HEADER_UINT32
20479 #ifndef _STDINT_HEADER_U_INT32
20480 #define _STDINT_NEED_INT_MODEL_T
20481 #else
20482 #define _STDINT_HAVE_U_INT_TYPES
20483 #endif
20484 #endif
20485 #endif
20486
20487 #ifdef _STDINT_HAVE_U_INT_TYPES
20488 #undef _STDINT_NEED_INT_MODEL_T
20489 #endif
20490
20491 #ifdef _STDINT_CHAR_MODEL
20492 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20493 #ifndef _STDINT_BYTE_MODEL
20494 #define _STDINT_BYTE_MODEL 12
20495 #endif
20496 #endif
20497 #endif
20498
20499 #ifndef _STDINT_HAVE_INT_LEAST32_T
20500 #define _STDINT_NEED_INT_LEAST_T
20501 #endif
20502
20503 #ifndef _STDINT_HAVE_INT_FAST32_T
20504 #define _STDINT_NEED_INT_FAST_T
20505 #endif
20506
20507 #ifndef _STDINT_HEADER_INTPTR
20508 #define _STDINT_NEED_INTPTR_T
20509 #ifndef _STDINT_HAVE_INTMAX_T
20510 #define _STDINT_NEED_INTMAX_T
20511 #endif
20512 #endif
20513
20514
20515 /* .................... definition part ............................ */
20516
20517 /* some system headers have good uint64_t */
20518 #ifndef _HAVE_UINT64_T
20519 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
20520 #define _HAVE_UINT64_T
20521 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
20522 #define _HAVE_UINT64_T
20523 typedef u_int64_t uint64_t;
20524 #endif
20525 #endif
20526
20527 #ifndef _HAVE_UINT64_T
20528 /* .. here are some common heuristics using compiler runtime specifics */
20529 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
20530 #define _HAVE_UINT64_T
20531 #define _HAVE_LONGLONG_UINT64_T
20532 typedef long long int64_t;
20533 typedef unsigned long long uint64_t;
20534
20535 #elif !defined __STRICT_ANSI__
20536 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20537 #define _HAVE_UINT64_T
20538 typedef __int64 int64_t;
20539 typedef unsigned __int64 uint64_t;
20540
20541 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
20542 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
20543 #if !defined _NO_LONGLONG
20544 #define _HAVE_UINT64_T
20545 #define _HAVE_LONGLONG_UINT64_T
20546 typedef long long int64_t;
20547 typedef unsigned long long uint64_t;
20548 #endif
20549
20550 #elif defined __alpha || (defined __mips && defined _ABIN32)
20551 #if !defined _NO_LONGLONG
20552 typedef long int64_t;
20553 typedef unsigned long uint64_t;
20554 #endif
20555 /* compiler/cpu type to define int64_t */
20556 #endif
20557 #endif
20558 #endif
20559
20560 #if defined _STDINT_HAVE_U_INT_TYPES
20561 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
20562 typedef u_int8_t uint8_t;
20563 typedef u_int16_t uint16_t;
20564 typedef u_int32_t uint32_t;
20565
20566 /* glibc compatibility */
20567 #ifndef __int8_t_defined
20568 #define __int8_t_defined
20569 #endif
20570 #endif
20571
20572 #ifdef _STDINT_NEED_INT_MODEL_T
20573 /* we must guess all the basic types. Apart from byte-adressable system, */
20574 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
20575 /* (btw, those nibble-addressable systems are way off, or so we assume) */
20576
20577
20578 #if defined _STDINT_BYTE_MODEL
20579 #if _STDINT_LONG_MODEL+0 == 242
20580 /* 2:4:2 = IP16 = a normal 16-bit system */
20581 typedef unsigned char uint8_t;
20582 typedef unsigned short uint16_t;
20583 typedef unsigned long uint32_t;
20584 #ifndef __int8_t_defined
20585 #define __int8_t_defined
20586 typedef char int8_t;
20587 typedef short int16_t;
20588 typedef long int32_t;
20589 #endif
20590 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
20591 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
20592 /* 4:4:4 = ILP32 = a normal 32-bit system */
20593 typedef unsigned char uint8_t;
20594 typedef unsigned short uint16_t;
20595 typedef unsigned int uint32_t;
20596 #ifndef __int8_t_defined
20597 #define __int8_t_defined
20598 typedef char int8_t;
20599 typedef short int16_t;
20600 typedef int int32_t;
20601 #endif
20602 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
20603 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
20604 /* 4:8:8 = LP64 = a normal 64-bit system */
20605 typedef unsigned char uint8_t;
20606 typedef unsigned short uint16_t;
20607 typedef unsigned int uint32_t;
20608 #ifndef __int8_t_defined
20609 #define __int8_t_defined
20610 typedef char int8_t;
20611 typedef short int16_t;
20612 typedef int int32_t;
20613 #endif
20614 /* this system has a "long" of 64bit */
20615 #ifndef _HAVE_UINT64_T
20616 #define _HAVE_UINT64_T
20617 typedef unsigned long uint64_t;
20618 typedef long int64_t;
20619 #endif
20620 #elif _STDINT_LONG_MODEL+0 == 448
20621 /* LLP64 a 64-bit system derived from a 32-bit system */
20622 typedef unsigned char uint8_t;
20623 typedef unsigned short uint16_t;
20624 typedef unsigned int uint32_t;
20625 #ifndef __int8_t_defined
20626 #define __int8_t_defined
20627 typedef char int8_t;
20628 typedef short int16_t;
20629 typedef int int32_t;
20630 #endif
20631 /* assuming the system has a "long long" */
20632 #ifndef _HAVE_UINT64_T
20633 #define _HAVE_UINT64_T
20634 #define _HAVE_LONGLONG_UINT64_T
20635 typedef unsigned long long uint64_t;
20636 typedef long long int64_t;
20637 #endif
20638 #else
20639 #define _STDINT_NO_INT32_T
20640 #endif
20641 #else
20642 #define _STDINT_NO_INT8_T
20643 #define _STDINT_NO_INT32_T
20644 #endif
20645 #endif
20646
20647 /*
20648 * quote from SunOS-5.8 sys/inttypes.h:
20649 * Use at your own risk. As of February 1996, the committee is squarely
20650 * behind the fixed sized types; the "least" and "fast" types are still being
20651 * discussed. The probability that the "fast" types may be removed before
20652 * the standard is finalized is high enough that they are not currently
20653 * implemented.
20654 */
20655
20656 #if defined _STDINT_NEED_INT_LEAST_T
20657 typedef int8_t int_least8_t;
20658 typedef int16_t int_least16_t;
20659 typedef int32_t int_least32_t;
20660 #ifdef _HAVE_UINT64_T
20661 typedef int64_t int_least64_t;
20662 #endif
20663
20664 typedef uint8_t uint_least8_t;
20665 typedef uint16_t uint_least16_t;
20666 typedef uint32_t uint_least32_t;
20667 #ifdef _HAVE_UINT64_T
20668 typedef uint64_t uint_least64_t;
20669 #endif
20670 /* least types */
20671 #endif
20672
20673 #if defined _STDINT_NEED_INT_FAST_T
20674 typedef int8_t int_fast8_t;
20675 typedef int int_fast16_t;
20676 typedef int32_t int_fast32_t;
20677 #ifdef _HAVE_UINT64_T
20678 typedef int64_t int_fast64_t;
20679 #endif
20680
20681 typedef uint8_t uint_fast8_t;
20682 typedef unsigned uint_fast16_t;
20683 typedef uint32_t uint_fast32_t;
20684 #ifdef _HAVE_UINT64_T
20685 typedef uint64_t uint_fast64_t;
20686 #endif
20687 /* fast types */
20688 #endif
20689
20690 #ifdef _STDINT_NEED_INTMAX_T
20691 #ifdef _HAVE_UINT64_T
20692 typedef int64_t intmax_t;
20693 typedef uint64_t uintmax_t;
20694 #else
20695 typedef long intmax_t;
20696 typedef unsigned long uintmax_t;
20697 #endif
20698 #endif
20699
20700 #ifdef _STDINT_NEED_INTPTR_T
20701 #ifndef __intptr_t_defined
20702 #define __intptr_t_defined
20703 /* we encourage using "long" to store pointer values, never use "int" ! */
20704 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
20705 typedef unsigned int uintptr_t;
20706 typedef int intptr_t;
20707 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
20708 typedef unsigned long uintptr_t;
20709 typedef long intptr_t;
20710 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
20711 typedef uint64_t uintptr_t;
20712 typedef int64_t intptr_t;
20713 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
20714 typedef unsigned long uintptr_t;
20715 typedef long intptr_t;
20716 #endif
20717 #endif
20718 #endif
20719
20720 /* The ISO C99 standard specifies that in C++ implementations these
20721 should only be defined if explicitly requested. */
20722 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
20723 #ifndef UINT32_C
20724
20725 /* Signed. */
20726 # define INT8_C(c) c
20727 # define INT16_C(c) c
20728 # define INT32_C(c) c
20729 # ifdef _HAVE_LONGLONG_UINT64_T
20730 # define INT64_C(c) c ## L
20731 # else
20732 # define INT64_C(c) c ## LL
20733 # endif
20734
20735 /* Unsigned. */
20736 # define UINT8_C(c) c ## U
20737 # define UINT16_C(c) c ## U
20738 # define UINT32_C(c) c ## U
20739 # ifdef _HAVE_LONGLONG_UINT64_T
20740 # define UINT64_C(c) c ## UL
20741 # else
20742 # define UINT64_C(c) c ## ULL
20743 # endif
20744
20745 /* Maximal type. */
20746 # ifdef _HAVE_LONGLONG_UINT64_T
20747 # define INTMAX_C(c) c ## L
20748 # define UINTMAX_C(c) c ## UL
20749 # else
20750 # define INTMAX_C(c) c ## LL
20751 # define UINTMAX_C(c) c ## ULL
20752 # endif
20753
20754 /* literalnumbers */
20755 #endif
20756 #endif
20757
20758 /* These limits are merily those of a two complement byte-oriented system */
20759
20760 /* Minimum of signed integral types. */
20761 # define INT8_MIN (-128)
20762 # define INT16_MIN (-32767-1)
20763 # define INT32_MIN (-2147483647-1)
20764 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
20765 /* Maximum of signed integral types. */
20766 # define INT8_MAX (127)
20767 # define INT16_MAX (32767)
20768 # define INT32_MAX (2147483647)
20769 # define INT64_MAX (__INT64_C(9223372036854775807))
20770
20771 /* Maximum of unsigned integral types. */
20772 # define UINT8_MAX (255)
20773 # define UINT16_MAX (65535)
20774 # define UINT32_MAX (4294967295U)
20775 # define UINT64_MAX (__UINT64_C(18446744073709551615))
20776
20777 /* Minimum of signed integral types having a minimum size. */
20778 # define INT_LEAST8_MIN INT8_MIN
20779 # define INT_LEAST16_MIN INT16_MIN
20780 # define INT_LEAST32_MIN INT32_MIN
20781 # define INT_LEAST64_MIN INT64_MIN
20782 /* Maximum of signed integral types having a minimum size. */
20783 # define INT_LEAST8_MAX INT8_MAX
20784 # define INT_LEAST16_MAX INT16_MAX
20785 # define INT_LEAST32_MAX INT32_MAX
20786 # define INT_LEAST64_MAX INT64_MAX
20787
20788 /* Maximum of unsigned integral types having a minimum size. */
20789 # define UINT_LEAST8_MAX UINT8_MAX
20790 # define UINT_LEAST16_MAX UINT16_MAX
20791 # define UINT_LEAST32_MAX UINT32_MAX
20792 # define UINT_LEAST64_MAX UINT64_MAX
20793
20794 /* shortcircuit*/
20795 #endif
20796 /* once */
20797 #endif
20798 #endif
20799 STDINT_EOF
20800 fi
20801 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
20802 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
20803 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
20804 else
20805 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
20806 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20807 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
20808 X"$ac_stdint_h" : 'X\(//\)$' \| \
20809 X"$ac_stdint_h" : 'X\(/\)' \| \
20810 . : '\(.\)' 2>/dev/null ||
20811 echo X"$ac_stdint_h" |
20812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20814 /^X\(\/\/\)$/{ s//\1/; q; }
20815 /^X\(\/\).*/{ s//\1/; q; }
20816 s/.*/./; q'`
20817 { if $as_mkdir_p; then
20818 mkdir -p "$ac_dir"
20819 else
20820 as_dir="$ac_dir"
20821 as_dirs=
20822 while test ! -d "$as_dir"; do
20823 as_dirs="$as_dir $as_dirs"
20824 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20826 X"$as_dir" : 'X\(//\)[^/]' \| \
20827 X"$as_dir" : 'X\(//\)$' \| \
20828 X"$as_dir" : 'X\(/\)' \| \
20829 . : '\(.\)' 2>/dev/null ||
20830 echo X"$as_dir" |
20831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20833 /^X\(\/\/\)$/{ s//\1/; q; }
20834 /^X\(\/\).*/{ s//\1/; q; }
20835 s/.*/./; q'`
20836 done
20837 test ! -n "$as_dirs" || mkdir $as_dirs
20838 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20839 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20840 { (exit 1); exit 1; }; }; }
20841
20842 rm -f $ac_stdint_h
20843 mv $ac_stdint $ac_stdint_h
20844 fi
20845 ;;
20846 appletviewer ) chmod 755 tools/appletviewer ;;
20847 jarsigner ) chmod 755 tools/jarsigner ;;
20848 keytool ) chmod 755 tools/keytool ;;
20849 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
20850 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
20851 esac
20852 done
20853 _ACEOF
20854
20855 cat >>$CONFIG_STATUS <<\_ACEOF
20856
20857 { (exit 0); exit 0; }
20858 _ACEOF
20859 chmod +x $CONFIG_STATUS
20860 ac_clean_files=$ac_clean_files_save
20861
20862
20863 # configure is writing to config.log, and then calls config.status.
20864 # config.status does its own redirection, appending to config.log.
20865 # Unfortunately, on DOS this fails, as config.log is still kept open
20866 # by configure, so config.status won't be able to write to it; its
20867 # output is simply discarded. So we exec the FD to /dev/null,
20868 # effectively closing config.log, so it can be properly (re)opened and
20869 # appended to by config.status. When coming back to configure, we
20870 # need to make the FD available again.
20871 if test "$no_create" != yes; then
20872 ac_cs_success=:
20873 ac_config_status_args=
20874 test "$silent" = yes &&
20875 ac_config_status_args="$ac_config_status_args --quiet"
20876 exec 5>/dev/null
20877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20878 exec 5>>config.log
20879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20880 # would make configure fail if this is the last instruction.
20881 $ac_cs_success || { (exit 1); exit 1; }
20882 fi
20883