re PR libgcj/27890 (lib/logging.properties pollutes common namespace)
[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.
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'
273 PACKAGE_STRING='GNU Classpath 0.92'
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 CREATE_GCONF_PEER_LIBRARIES_TRUE CREATE_GCONF_PEER_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 toolexeclibdir 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 GCONF_CFLAGS GCONF_LIBS GDK_CFLAGS GDK_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 USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER 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 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:";;
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-default-preferences-peer
878 fully qualified class name of default Preferences
879 API Backend
880 --disable-gconf-peer compile GConf native peers (disabled by
881 --disable-jni) default=yes
882
883 --enable-Werror whether to compile C code with -Werror which turns
884 any compiler warning into a compilation failure
885 default=no
886 --enable-default-toolkit
887 fully qualified class name of default AWT toolkit
888 --enable-xmlj compile native libxml/xslt library default=no
889 --disable-alsa compile ALSA providers (enable by --enable-alsa)
890 default=yes
891 --disable-dependency-tracking speeds up one-time build
892 --enable-dependency-tracking do not reject slow dependency extractors
893 --disable-dssi compile DSSI providers (enable by --enable-dssi)
894 default=yes
895 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
896 default=yes
897 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
898 default=no
899 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
900 default=yes
901 --enable-regen-headers automatically regenerate JNI headers default=no
902 --enable-tool-wrappers create tool wrapper binaries default=no
903 --enable-static=PKGS build static libraries default=no
904 --enable-shared=PKGS build shared libraries default=yes
905 --enable-fast-install=PKGS optimize for fast installation default=yes
906 --disable-libtool-lock avoid locking (might break parallel builds)
907 --disable-rpath do not hardcode runtime library paths
908 --enable-maintainer-mode enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-debug enable runtime debugging code
911 --enable-load-library enable to use JNI native methods default=yes
912 --enable-java-lang-system-explicit-initialization
913 will the VM explicitly invoke java.lang.System's
914 static initialization methods default=no
915 --enable-examples enable build of the examples default=yes
916 --enable-portable-native-sync
917 synchronize VM threads portably
918 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
919
920 Optional Packages:
921 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
922 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
923 --with-native-libdir sets the installation directory for native libraries
924 default='${libdir}/${PACKAGE}'
925 --with-glibj-dir sets the installation directory for glibj.zip
926 default='${libdir}/${PACKAGE}'
927 --with-vm sets the VM binary name
928 default='${prefix}/bin/jamvm'
929 --with-gnu-ld assume the C compiler uses GNU ld default=no
930 --with-pic try to use only PIC/non-PIC objects default=use both
931 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
932 --without-libiconv-prefix don't search for libiconv in includedir and libdir
933 --with-x use the X Window System
934 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
935 systems use pkg-config.
936 --with-javah specify path or name of a javah-like program
937 --with-gcj bytecode compilation with gcj
938 --with-jikes bytecode compilation with jikes
939 --with-kjc bytecode compilation with kjc
940 --with-gcjx bytecode compilation with gcjx
941 --with-ecj bytecode compilation with ecj
942 --with-classpath specify path to a classes.zip like file
943 --with-vm-classes specify path to VM override source files
944 --with-fastjar=PATH define to use a fastjar style tool
945 --with-glibj define what to install (zip|flat|both|none|build)
946 [default=zip]
947 --with-gjdoc generate documentation using gjdoc (default is NO)
948 --with-jay Regenerate the parsers with jay must be given the
949 path to the jay executable
950 --with-glibj-zip=ABS.PATH
951 use prebuilt glibj.zip class library
952 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
953
954 Some influential environment variables:
955 CC C compiler command
956 CFLAGS C compiler flags
957 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
958 nonstandard directory <lib dir>
959 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
960 headers in a nonstandard directory <include dir>
961 CPP C preprocessor
962 CXX C++ compiler command
963 CXXFLAGS C++ compiler flags
964 CXXCPP C++ preprocessor
965
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
968
969 Report bugs to <classpath@gnu.org>.
970 _ACEOF
971 fi
972
973 if test "$ac_init_help" = "recursive"; then
974 # If there are subdirs, report their specific --help.
975 ac_popdir=`pwd`
976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977 test -d $ac_dir || continue
978 ac_builddir=.
979
980 if test "$ac_dir" != .; then
981 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
982 # A "../" for each directory in $ac_dir_suffix.
983 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 else
985 ac_dir_suffix= ac_top_builddir=
986 fi
987
988 case $srcdir in
989 .) # No --srcdir option. We are building in place.
990 ac_srcdir=.
991 if test -z "$ac_top_builddir"; then
992 ac_top_srcdir=.
993 else
994 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995 fi ;;
996 [\\/]* | ?:[\\/]* ) # Absolute path.
997 ac_srcdir=$srcdir$ac_dir_suffix;
998 ac_top_srcdir=$srcdir ;;
999 *) # Relative path.
1000 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1002 esac
1003
1004 # Do not use `cd foo && pwd` to compute absolute paths, because
1005 # the directories may not exist.
1006 case `pwd` in
1007 .) ac_abs_builddir="$ac_dir";;
1008 *)
1009 case "$ac_dir" in
1010 .) ac_abs_builddir=`pwd`;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1013 esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1017 *)
1018 case ${ac_top_builddir}. in
1019 .) ac_abs_top_builddir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1022 esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1026 *)
1027 case $ac_srcdir in
1028 .) ac_abs_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1031 esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1035 *)
1036 case $ac_top_srcdir in
1037 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1040 esac;;
1041 esac
1042
1043 cd $ac_dir
1044 # Check for guested configure; otherwise get Cygnus style configure.
1045 if test -f $ac_srcdir/configure.gnu; then
1046 echo
1047 $SHELL $ac_srcdir/configure.gnu --help=recursive
1048 elif test -f $ac_srcdir/configure; then
1049 echo
1050 $SHELL $ac_srcdir/configure --help=recursive
1051 elif test -f $ac_srcdir/configure.ac ||
1052 test -f $ac_srcdir/configure.in; then
1053 echo
1054 $ac_configure --help
1055 else
1056 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1057 fi
1058 cd $ac_popdir
1059 done
1060 fi
1061
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1064 cat <<\_ACEOF
1065 GNU Classpath configure 0.92
1066 generated by GNU Autoconf 2.59
1067
1068 Copyright (C) 2003 Free Software Foundation, Inc.
1069 This configure script is free software; the Free Software Foundation
1070 gives unlimited permission to copy, distribute and modify it.
1071 _ACEOF
1072 exit 0
1073 fi
1074 exec 5>config.log
1075 cat >&5 <<_ACEOF
1076 This file contains any messages produced by compilers while
1077 running configure, to aid debugging if configure makes a mistake.
1078
1079 It was created by GNU Classpath $as_me 0.92, which was
1080 generated by GNU Autoconf 2.59. Invocation command line was
1081
1082 $ $0 $@
1083
1084 _ACEOF
1085 {
1086 cat <<_ASUNAME
1087 ## --------- ##
1088 ## Platform. ##
1089 ## --------- ##
1090
1091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1096
1097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1099
1100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1103 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1107
1108 _ASUNAME
1109
1110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1111 for as_dir in $PATH
1112 do
1113 IFS=$as_save_IFS
1114 test -z "$as_dir" && as_dir=.
1115 echo "PATH: $as_dir"
1116 done
1117
1118 } >&5
1119
1120 cat >&5 <<_ACEOF
1121
1122
1123 ## ----------- ##
1124 ## Core tests. ##
1125 ## ----------- ##
1126
1127 _ACEOF
1128
1129
1130 # Keep a trace of the command line.
1131 # Strip out --no-create and --no-recursion so they do not pile up.
1132 # Strip out --silent because we don't want to record it for future runs.
1133 # Also quote any args containing shell meta-characters.
1134 # Make two passes to allow for proper duplicate-argument suppression.
1135 ac_configure_args=
1136 ac_configure_args0=
1137 ac_configure_args1=
1138 ac_sep=
1139 ac_must_keep_next=false
1140 for ac_pass in 1 2
1141 do
1142 for ac_arg
1143 do
1144 case $ac_arg in
1145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 continue ;;
1149 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1150 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1151 esac
1152 case $ac_pass in
1153 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1154 2)
1155 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1156 if test $ac_must_keep_next = true; then
1157 ac_must_keep_next=false # Got value, back to normal.
1158 else
1159 case $ac_arg in
1160 *=* | --config-cache | -C | -disable-* | --disable-* \
1161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1163 | -with-* | --with-* | -without-* | --without-* | --x)
1164 case "$ac_configure_args0 " in
1165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1166 esac
1167 ;;
1168 -* ) ac_must_keep_next=true ;;
1169 esac
1170 fi
1171 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1172 # Get rid of the leading space.
1173 ac_sep=" "
1174 ;;
1175 esac
1176 done
1177 done
1178 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1179 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1180
1181 # When interrupted or exit'd, cleanup temporary files, and complete
1182 # config.log. We remove comments because anyway the quotes in there
1183 # would cause problems or look ugly.
1184 # WARNING: Be sure not to use single quotes in there, as some shells,
1185 # such as our DU 5.0 friend, will then `close' the trap.
1186 trap 'exit_status=$?
1187 # Save into config.log some information that might help in debugging.
1188 {
1189 echo
1190
1191 cat <<\_ASBOX
1192 ## ---------------- ##
1193 ## Cache variables. ##
1194 ## ---------------- ##
1195 _ASBOX
1196 echo
1197 # The following way of writing the cache mishandles newlines in values,
1198 {
1199 (set) 2>&1 |
1200 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1201 *ac_space=\ *)
1202 sed -n \
1203 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1205 ;;
1206 *)
1207 sed -n \
1208 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1209 ;;
1210 esac;
1211 }
1212 echo
1213
1214 cat <<\_ASBOX
1215 ## ----------------- ##
1216 ## Output variables. ##
1217 ## ----------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_vars
1221 do
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1226
1227 if test -n "$ac_subst_files"; then
1228 cat <<\_ASBOX
1229 ## ------------- ##
1230 ## Output files. ##
1231 ## ------------- ##
1232 _ASBOX
1233 echo
1234 for ac_var in $ac_subst_files
1235 do
1236 eval ac_val=$`echo $ac_var`
1237 echo "$ac_var='"'"'$ac_val'"'"'"
1238 done | sort
1239 echo
1240 fi
1241
1242 if test -s confdefs.h; then
1243 cat <<\_ASBOX
1244 ## ----------- ##
1245 ## confdefs.h. ##
1246 ## ----------- ##
1247 _ASBOX
1248 echo
1249 sed "/^$/d" confdefs.h | sort
1250 echo
1251 fi
1252 test "$ac_signal" != 0 &&
1253 echo "$as_me: caught signal $ac_signal"
1254 echo "$as_me: exit $exit_status"
1255 } >&5
1256 rm -f core *.core &&
1257 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1258 exit $exit_status
1259 ' 0
1260 for ac_signal in 1 2 13 15; do
1261 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1262 done
1263 ac_signal=0
1264
1265 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1266 rm -rf conftest* confdefs.h
1267 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1268 echo >confdefs.h
1269
1270 # Predefined preprocessor variables.
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_NAME "$PACKAGE_NAME"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1284 _ACEOF
1285
1286
1287 cat >>confdefs.h <<_ACEOF
1288 #define PACKAGE_STRING "$PACKAGE_STRING"
1289 _ACEOF
1290
1291
1292 cat >>confdefs.h <<_ACEOF
1293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1294 _ACEOF
1295
1296
1297 # Let the site file select an alternate cache file if it wants to.
1298 # Prefer explicitly selected file to automatically selected ones.
1299 if test -z "$CONFIG_SITE"; then
1300 if test "x$prefix" != xNONE; then
1301 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1302 else
1303 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1304 fi
1305 fi
1306 for ac_site_file in $CONFIG_SITE; do
1307 if test -r "$ac_site_file"; then
1308 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1309 echo "$as_me: loading site script $ac_site_file" >&6;}
1310 sed 's/^/| /' "$ac_site_file" >&5
1311 . "$ac_site_file"
1312 fi
1313 done
1314
1315 if test -r "$cache_file"; then
1316 # Some versions of bash will fail to source /dev/null (special
1317 # files actually), so we avoid doing that.
1318 if test -f "$cache_file"; then
1319 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1320 echo "$as_me: loading cache $cache_file" >&6;}
1321 case $cache_file in
1322 [\\/]* | ?:[\\/]* ) . $cache_file;;
1323 *) . ./$cache_file;;
1324 esac
1325 fi
1326 else
1327 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1328 echo "$as_me: creating cache $cache_file" >&6;}
1329 >$cache_file
1330 fi
1331
1332 # Check that the precious variables saved in the cache have kept the same
1333 # value.
1334 ac_cache_corrupted=false
1335 for ac_var in `(set) 2>&1 |
1336 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1337 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1338 eval ac_new_set=\$ac_env_${ac_var}_set
1339 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1340 eval ac_new_val="\$ac_env_${ac_var}_value"
1341 case $ac_old_set,$ac_new_set in
1342 set,)
1343 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1344 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1345 ac_cache_corrupted=: ;;
1346 ,set)
1347 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1348 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1349 ac_cache_corrupted=: ;;
1350 ,);;
1351 *)
1352 if test "x$ac_old_val" != "x$ac_new_val"; then
1353 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1354 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1355 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1356 echo "$as_me: former value: $ac_old_val" >&2;}
1357 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1358 echo "$as_me: current value: $ac_new_val" >&2;}
1359 ac_cache_corrupted=:
1360 fi;;
1361 esac
1362 # Pass precious variables to config.status.
1363 if test "$ac_new_set" = set; then
1364 case $ac_new_val in
1365 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1366 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1367 *) ac_arg=$ac_var=$ac_new_val ;;
1368 esac
1369 case " $ac_configure_args " in
1370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1371 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1372 esac
1373 fi
1374 done
1375 if $ac_cache_corrupted; then
1376 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1377 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1378 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1379 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1380 { (exit 1); exit 1; }; }
1381 fi
1382
1383 ac_ext=c
1384 ac_cpp='$CPP $CPPFLAGS'
1385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417 ac_aux_dir=
1418 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1419 if test -f $ac_dir/install-sh; then
1420 ac_aux_dir=$ac_dir
1421 ac_install_sh="$ac_aux_dir/install-sh -c"
1422 break
1423 elif test -f $ac_dir/install.sh; then
1424 ac_aux_dir=$ac_dir
1425 ac_install_sh="$ac_aux_dir/install.sh -c"
1426 break
1427 elif test -f $ac_dir/shtool; then
1428 ac_aux_dir=$ac_dir
1429 ac_install_sh="$ac_aux_dir/shtool install -c"
1430 break
1431 fi
1432 done
1433 if test -z "$ac_aux_dir"; then
1434 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1435 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1436 { (exit 1); exit 1; }; }
1437 fi
1438 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1439 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1440 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1441
1442 # Make sure we can run config.sub.
1443 $ac_config_sub sun4 >/dev/null 2>&1 ||
1444 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1445 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448 echo "$as_me:$LINENO: checking build system type" >&5
1449 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1450 if test "${ac_cv_build+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453 ac_cv_build_alias=$build_alias
1454 test -z "$ac_cv_build_alias" &&
1455 ac_cv_build_alias=`$ac_config_guess`
1456 test -z "$ac_cv_build_alias" &&
1457 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1458 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1459 { (exit 1); exit 1; }; }
1460 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1461 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1463 { (exit 1); exit 1; }; }
1464
1465 fi
1466 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1467 echo "${ECHO_T}$ac_cv_build" >&6
1468 build=$ac_cv_build
1469 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472
1473
1474 echo "$as_me:$LINENO: checking host system type" >&5
1475 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1476 if test "${ac_cv_host+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 ac_cv_host_alias=$host_alias
1480 test -z "$ac_cv_host_alias" &&
1481 ac_cv_host_alias=$ac_cv_build_alias
1482 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1483 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1485 { (exit 1); exit 1; }; }
1486
1487 fi
1488 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1489 echo "${ECHO_T}$ac_cv_host" >&6
1490 host=$ac_cv_host
1491 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495
1496 echo "$as_me:$LINENO: checking target system type" >&5
1497 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1498 if test "${ac_cv_target+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 ac_cv_target_alias=$target_alias
1502 test "x$ac_cv_target_alias" = "x" &&
1503 ac_cv_target_alias=$ac_cv_host_alias
1504 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1505 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1506 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1507 { (exit 1); exit 1; }; }
1508
1509 fi
1510 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1511 echo "${ECHO_T}$ac_cv_target" >&6
1512 target=$ac_cv_target
1513 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516
1517
1518 # The aliases save the names the user supplied, while $host etc.
1519 # will get canonicalized.
1520 test -n "$target_alias" &&
1521 test "$program_prefix$program_suffix$program_transform_name" = \
1522 NONENONEs,x,x, &&
1523 program_prefix=${target_alias}-
1524
1525 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1526
1527 LIBVERSION="0:0:0"
1528
1529 case "$host_os" in
1530 darwin*)
1531 cp_module=""
1532 ;;
1533 *)
1534 cp_module="-module"
1535 ;;
1536 esac
1537
1538 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1539
1540
1541 CLASSPATH_CONVENIENCE="-no-undefined"
1542
1543
1544
1545 am__api_version="1.9"
1546 # Find a good install program. We prefer a C program (faster),
1547 # so one script is as good as another. But avoid the broken or
1548 # incompatible versions:
1549 # SysV /etc/install, /usr/sbin/install
1550 # SunOS /usr/etc/install
1551 # IRIX /sbin/install
1552 # AIX /bin/install
1553 # AmigaOS /C/install, which installs bootblocks on floppy discs
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557 # OS/2's system install, which has a completely different semantic
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561 if test -z "$INSTALL"; then
1562 if test "${ac_cv_path_install+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 # Account for people who put trailing slashes in PATH elements.
1571 case $as_dir/ in
1572 ./ | .// | /cC/* | \
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 /usr/ucb/* ) ;;
1576 *)
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 # Don't use installbsd from OSF since it installs stuff as root
1579 # by default.
1580 for ac_prog in ginstall scoinst install; do
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583 if test $ac_prog = install &&
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 :
1587 elif test $ac_prog = install &&
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # program-specific install script used by HP pwplus--don't use.
1590 :
1591 else
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 break 3
1594 fi
1595 fi
1596 done
1597 done
1598 ;;
1599 esac
1600 done
1601
1602
1603 fi
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL=$ac_cv_path_install
1606 else
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL=$ac_install_sh
1612 fi
1613 fi
1614 echo "$as_me:$LINENO: result: $INSTALL" >&5
1615 echo "${ECHO_T}$INSTALL" >&6
1616
1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618 # It thinks the first close brace ends the variable substitution.
1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 # Just in case
1628 sleep 1
1629 echo timestamp > conftest.file
1630 # Do `set' in a subshell so we don't clobber the current shell's
1631 # arguments. Must try -L first in case configure is actually a
1632 # symlink; some systems play weird games with the mod time of symlinks
1633 # (eg FreeBSD returns the mod time of the symlink's containing
1634 # directory).
1635 if (
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637 if test "$*" = "X"; then
1638 # -L didn't work.
1639 set X `ls -t $srcdir/configure conftest.file`
1640 fi
1641 rm -f conftest.file
1642 if test "$*" != "X $srcdir/configure conftest.file" \
1643 && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645 # If neither matched, then we have a broken ls. This can happen
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
1647 # broken ls alias from the environment. This has actually
1648 # happened. Such a system could not be considered "sane".
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&5
1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652 alias in your environment" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 test "$2" = conftest.file
1657 )
1658 then
1659 # Ok.
1660 :
1661 else
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663 Check your system clock" >&5
1664 echo "$as_me: error: newly created file is older than distributed files!
1665 Check your system clock" >&2;}
1666 { (exit 1); exit 1; }; }
1667 fi
1668 echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1670 test "$program_prefix" != NONE &&
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672 # Use a double $ so make ignores it.
1673 test "$program_suffix" != NONE &&
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675 # Double any \ or $. echo might interpret backslashes.
1676 # By default was `s,x,x', remove it if useless.
1677 cat <<\_ACEOF >conftest.sed
1678 s/[\\$]/&&/g;s/;s,x,x,$//
1679 _ACEOF
1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681 rm conftest.sed
1682
1683 # expand $ac_aux_dir to an absolute path
1684 am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687 # Use eval to expand $SHELL
1688 if eval "$MISSING --run true"; then
1689 am_missing_run="$MISSING --run "
1690 else
1691 am_missing_run=
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 fi
1695
1696 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697 # We used to keeping the `.' as first argument, in order to
1698 # allow $(mkdir_p) to be used without argument. As in
1699 # $(mkdir_p) $(somedir)
1700 # where $(somedir) is conditionally defined. However this is wrong
1701 # for two reasons:
1702 # 1. if the package is installed by a user who cannot write `.'
1703 # make install will fail,
1704 # 2. the above comment should most certainly read
1705 # $(mkdir_p) $(DESTDIR)$(somedir)
1706 # so it does not work when $(somedir) is undefined and
1707 # $(DESTDIR) is not.
1708 # To support the latter case, we have to write
1709 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710 # so the `.' trick is pointless.
1711 mkdir_p='mkdir -p --'
1712 else
1713 # On NextStep and OpenStep, the `mkdir' command does not
1714 # recognize any option. It will interpret all options as
1715 # directories to create, and then abort because `.' already
1716 # exists.
1717 for d in ./-p ./--version;
1718 do
1719 test -d $d && rmdir $d
1720 done
1721 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722 if test -f "$ac_aux_dir/mkinstalldirs"; then
1723 mkdir_p='$(mkinstalldirs)'
1724 else
1725 mkdir_p='$(install_sh) -d'
1726 fi
1727 fi
1728
1729 for ac_prog in gawk mawk nawk awk
1730 do
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_AWK+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 if test -n "$AWK"; then
1739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_AWK="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752 done
1753 done
1754
1755 fi
1756 fi
1757 AWK=$ac_cv_prog_AWK
1758 if test -n "$AWK"; then
1759 echo "$as_me:$LINENO: result: $AWK" >&5
1760 echo "${ECHO_T}$AWK" >&6
1761 else
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1764 fi
1765
1766 test -n "$AWK" && break
1767 done
1768
1769 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1771 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1772 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 cat >conftest.make <<\_ACEOF
1776 all:
1777 @echo 'ac_maketemp="$(MAKE)"'
1778 _ACEOF
1779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781 if test -n "$ac_maketemp"; then
1782 eval ac_cv_prog_make_${ac_make}_set=yes
1783 else
1784 eval ac_cv_prog_make_${ac_make}_set=no
1785 fi
1786 rm -f conftest.make
1787 fi
1788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 SET_MAKE=
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 SET_MAKE="MAKE=${MAKE-make}"
1796 fi
1797
1798 rm -rf .tst 2>/dev/null
1799 mkdir .tst 2>/dev/null
1800 if test -d .tst; then
1801 am__leading_dot=.
1802 else
1803 am__leading_dot=_
1804 fi
1805 rmdir .tst 2>/dev/null
1806
1807 # test to see if srcdir already configured
1808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809 test -f $srcdir/config.status; then
1810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812 { (exit 1); exit 1; }; }
1813 fi
1814
1815 # test whether we have cygpath
1816 if test -z "$CYGPATH_W"; then
1817 if (cygpath --version) >/dev/null 2>/dev/null; then
1818 CYGPATH_W='cygpath -w'
1819 else
1820 CYGPATH_W=echo
1821 fi
1822 fi
1823
1824
1825 # Define the identity of the package.
1826 PACKAGE='classpath'
1827 VERSION='0.92'
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE "$PACKAGE"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define VERSION "$VERSION"
1837 _ACEOF
1838
1839 # Some tools Automake needs.
1840
1841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
1843
1844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
1846
1847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
1849
1850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
1852
1853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1854
1855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1856
1857 # Installed binaries are usually stripped using `strip' when the user
1858 # run `make install-strip'. However `strip' might not be the right
1859 # tool to use in cross-compilation environments, therefore Automake
1860 # will honor the `STRIP' environment variable to overrule this program.
1861 if test "$cross_compiling" != no; then
1862 if test -n "$ac_tool_prefix"; then
1863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1864 set dummy ${ac_tool_prefix}strip; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_STRIP+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870 if test -n "$STRIP"; then
1871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876 IFS=$as_save_IFS
1877 test -z "$as_dir" && as_dir=.
1878 for ac_exec_ext in '' $ac_executable_extensions; do
1879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 break 2
1883 fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 STRIP=$ac_cv_prog_STRIP
1890 if test -n "$STRIP"; then
1891 echo "$as_me:$LINENO: result: $STRIP" >&5
1892 echo "${ECHO_T}$STRIP" >&6
1893 else
1894 echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898 fi
1899 if test -z "$ac_cv_prog_STRIP"; then
1900 ac_ct_STRIP=$STRIP
1901 # Extract the first word of "strip", so it can be a program name with args.
1902 set dummy strip; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$ac_ct_STRIP"; then
1909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_ac_ct_STRIP="strip"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1921 fi
1922 done
1923 done
1924
1925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926 fi
1927 fi
1928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1929 if test -n "$ac_ct_STRIP"; then
1930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1931 echo "${ECHO_T}$ac_ct_STRIP" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 STRIP=$ac_ct_STRIP
1938 else
1939 STRIP="$ac_cv_prog_STRIP"
1940 fi
1941
1942 fi
1943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1944
1945 # We need awk for the "check" target. The system "awk" is bad on
1946 # some platforms.
1947 # Always define AMTAR for backward compatibility.
1948
1949 AMTAR=${AMTAR-"${am_missing_run}tar"}
1950
1951
1952 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
1953 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
1954 # Loop over all known methods to create a tar archive until one works.
1955 _am_tools='gnutar plaintar pax cpio none'
1956 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
1957 # Do not fold the above two line into one, because Tru64 sh and
1958 # Solaris sh will not grok spaces in the rhs of `-'.
1959 for _am_tool in $_am_tools
1960 do
1961 case $_am_tool in
1962 gnutar)
1963 for _am_tar in tar gnutar gtar;
1964 do
1965 { echo "$as_me:$LINENO: $_am_tar --version" >&5
1966 ($_am_tar --version) >&5 2>&5
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } && break
1970 done
1971 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
1972 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
1973 am__untar="$_am_tar -xf -"
1974 ;;
1975 plaintar)
1976 # Must skip GNU tar: if it does not support --format= it doesn't create
1977 # ustar tarball either.
1978 (tar --version) >/dev/null 2>&1 && continue
1979 am__tar='tar chf - "$$tardir"'
1980 am__tar_='tar chf - "$tardir"'
1981 am__untar='tar xf -'
1982 ;;
1983 pax)
1984 am__tar='pax -L -x ustar -w "$$tardir"'
1985 am__tar_='pax -L -x ustar -w "$tardir"'
1986 am__untar='pax -r'
1987 ;;
1988 cpio)
1989 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
1990 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
1991 am__untar='cpio -i -H ustar -d'
1992 ;;
1993 none)
1994 am__tar=false
1995 am__tar_=false
1996 am__untar=false
1997 ;;
1998 esac
1999
2000 # If the value was cached, stop now. We just wanted to have am__tar
2001 # and am__untar set.
2002 test -n "${am_cv_prog_tar_ustar}" && break
2003
2004 # tar/untar a dummy directory, and stop if the command works
2005 rm -rf conftest.dir
2006 mkdir conftest.dir
2007 echo GrepMe > conftest.dir/file
2008 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2009 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2013 rm -rf conftest.dir
2014 if test -s conftest.tar; then
2015 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2016 ($am__untar <conftest.tar) >&5 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2021 fi
2022 done
2023 rm -rf conftest.dir
2024
2025 if test "${am_cv_prog_tar_ustar+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 am_cv_prog_tar_ustar=$_am_tool
2029 fi
2030
2031 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2032 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2033
2034
2035
2036
2037
2038 ac_config_headers="$ac_config_headers include/config.h"
2039
2040
2041
2042 # Check whether --enable-collections or --disable-collections was given.
2043 if test "${enable_collections+set}" = set; then
2044 enableval="$enable_collections"
2045 case x"${enableval}" in
2046 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2047 xno) COMPILE_COLLECTIONS=no ;;
2048 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2049 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2050 esac
2051 else
2052 COMPILE_COLLECTIONS=no
2053 fi;
2054
2055
2056 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2057 CREATE_COLLECTIONS_TRUE=
2058 CREATE_COLLECTIONS_FALSE='#'
2059 else
2060 CREATE_COLLECTIONS_TRUE='#'
2061 CREATE_COLLECTIONS_FALSE=
2062 fi
2063
2064
2065 # Check whether --enable-jni or --disable-jni was given.
2066 if test "${enable_jni+set}" = set; then
2067 enableval="$enable_jni"
2068 case "${enableval}" in
2069 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2070 no) COMPILE_JNI=no ;;
2071 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2072 esac
2073 else
2074 COMPILE_JNI=yes
2075 fi;
2076
2077
2078 if test "x${COMPILE_JNI}" = xyes; then
2079 CREATE_JNI_LIBRARIES_TRUE=
2080 CREATE_JNI_LIBRARIES_FALSE='#'
2081 else
2082 CREATE_JNI_LIBRARIES_TRUE='#'
2083 CREATE_JNI_LIBRARIES_FALSE=
2084 fi
2085
2086
2087 # Check whether --enable-core-jni or --disable-core-jni was given.
2088 if test "${enable_core_jni+set}" = set; then
2089 enableval="$enable_core_jni"
2090 case "${enableval}" in
2091 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2092 no) COMPILE_CORE_JNI=no ;;
2093 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2094 esac
2095 else
2096 COMPILE_CORE_JNI=yes
2097 fi;
2098
2099
2100 if test "x${COMPILE_CORE_JNI}" = xyes; then
2101 CREATE_CORE_JNI_LIBRARIES_TRUE=
2102 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2103 else
2104 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2105 CREATE_CORE_JNI_LIBRARIES_FALSE=
2106 fi
2107
2108
2109 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2110 if test "${enable_default_preferences_peer+set}" = set; then
2111 enableval="$enable_default_preferences_peer"
2112
2113 fi;
2114 DEFAULT_PREFS_PEER=$enable_default_preferences_peer
2115 if test "$DEFAULT_PREFS_PEER" = ""; then
2116 DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory
2117 fi
2118
2119 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2120 if test "${enable_gconf_peer+set}" = set; then
2121 enableval="$enable_gconf_peer"
2122 case "${enableval}" in
2123 yes) COMPILE_GCONF_PEER=yes ;;
2124 no) COMPILE_GCONF_PEER=no ;;
2125 *) COMPILE_GCONF_PEER=yes ;;
2126 esac
2127 else
2128 COMPILE_GCONF_PEER=yes
2129 fi;
2130
2131
2132 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2133 CREATE_GCONF_PEER_LIBRARIES_TRUE=
2134 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2135 else
2136 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2137 CREATE_GCONF_PEER_LIBRARIES_FALSE=
2138 fi
2139
2140
2141 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2142 if test "${enable_gconf_peers+set}" = set; then
2143 enableval="$enable_gconf_peers"
2144 { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2145 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi;
2148
2149 # Check whether --enable-Werror or --disable-Werror was given.
2150 if test "${enable_Werror+set}" = set; then
2151 enableval="$enable_Werror"
2152 case "${enableval}" in
2153 yes) ENABLE_WERROR=yes ;;
2154 no) ENABLE_WERROR=no ;;
2155 *) ENABLE_WERROR=no ;;
2156 esac
2157 else
2158 ENABLE_WERROR=no
2159 fi;
2160
2161 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2162 if test "${enable_default_toolkit+set}" = set; then
2163 enableval="$enable_default_toolkit"
2164
2165 fi;
2166 default_toolkit=$enable_default_toolkit
2167 if test "$default_toolkit" = ""; then
2168 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2169 fi
2170
2171
2172 # Check whether --enable-xmlj or --disable-xmlj was given.
2173 if test "${enable_xmlj+set}" = set; then
2174 enableval="$enable_xmlj"
2175 case "${enableval}" in
2176 yes) COMPILE_XMLJ=yes ;;
2177 no) COMPILE_XMLJ=no ;;
2178 *) COMPILE_XMLJ=no ;;
2179 esac
2180 else
2181 COMPILE_XMLJ=no
2182 fi;
2183
2184
2185 if test "x${COMPILE_XMLJ}" = xyes; then
2186 CREATE_XMLJ_LIBRARY_TRUE=
2187 CREATE_XMLJ_LIBRARY_FALSE='#'
2188 else
2189 CREATE_XMLJ_LIBRARY_TRUE='#'
2190 CREATE_XMLJ_LIBRARY_FALSE=
2191 fi
2192
2193
2194 DEPDIR="${am__leading_dot}deps"
2195
2196 ac_config_commands="$ac_config_commands depfiles"
2197
2198
2199 am_make=${MAKE-make}
2200 cat > confinc << 'END'
2201 am__doit:
2202 @echo done
2203 .PHONY: am__doit
2204 END
2205 # If we don't find an include directive, just comment out the code.
2206 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2207 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2208 am__include="#"
2209 am__quote=
2210 _am_result=none
2211 # First try GNU make style include.
2212 echo "include confinc" > confmf
2213 # We grep out `Entering directory' and `Leaving directory'
2214 # messages which can occur if `w' ends up in MAKEFLAGS.
2215 # In particular we don't look at `^make:' because GNU make might
2216 # be invoked under some other name (usually "gmake"), in which
2217 # case it prints its new name instead of `make'.
2218 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2219 am__include=include
2220 am__quote=
2221 _am_result=GNU
2222 fi
2223 # Now try BSD make style include.
2224 if test "$am__include" = "#"; then
2225 echo '.include "confinc"' > confmf
2226 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2227 am__include=.include
2228 am__quote="\""
2229 _am_result=BSD
2230 fi
2231 fi
2232
2233
2234 echo "$as_me:$LINENO: result: $_am_result" >&5
2235 echo "${ECHO_T}$_am_result" >&6
2236 rm -f confinc confmf
2237
2238 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2239 if test "${enable_dependency_tracking+set}" = set; then
2240 enableval="$enable_dependency_tracking"
2241
2242 fi;
2243 if test "x$enable_dependency_tracking" != xno; then
2244 am_depcomp="$ac_aux_dir/depcomp"
2245 AMDEPBACKSLASH='\'
2246 fi
2247
2248
2249 if test "x$enable_dependency_tracking" != xno; then
2250 AMDEP_TRUE=
2251 AMDEP_FALSE='#'
2252 else
2253 AMDEP_TRUE='#'
2254 AMDEP_FALSE=
2255 fi
2256
2257
2258
2259 ac_ext=c
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264 if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286 done
2287 done
2288
2289 fi
2290 fi
2291 CC=$ac_cv_prog_CC
2292 if test -n "$CC"; then
2293 echo "$as_me:$LINENO: result: $CC" >&5
2294 echo "${ECHO_T}$CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300 fi
2301 if test -z "$ac_cv_prog_CC"; then
2302 ac_ct_CC=$CC
2303 # Extract the first word of "gcc", so it can be a program name with args.
2304 set dummy gcc; ac_word=$2
2305 echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$ac_ct_CC"; then
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 ac_cv_prog_ac_ct_CC="gcc"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326
2327 fi
2328 fi
2329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330 if test -n "$ac_ct_CC"; then
2331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332 echo "${ECHO_T}$ac_ct_CC" >&6
2333 else
2334 echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2336 fi
2337
2338 CC=$ac_ct_CC
2339 else
2340 CC="$ac_cv_prog_CC"
2341 fi
2342
2343 if test -z "$CC"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}cc; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_CC="${ac_tool_prefix}cc"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366 done
2367 done
2368
2369 fi
2370 fi
2371 CC=$ac_cv_prog_CC
2372 if test -n "$CC"; then
2373 echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2375 else
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380 fi
2381 if test -z "$ac_cv_prog_CC"; then
2382 ac_ct_CC=$CC
2383 # Extract the first word of "cc", so it can be a program name with args.
2384 set dummy cc; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$ac_ct_CC"; then
2391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_ac_ct_CC="cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404 done
2405 done
2406
2407 fi
2408 fi
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412 echo "${ECHO_T}$ac_ct_CC" >&6
2413 else
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2416 fi
2417
2418 CC=$ac_ct_CC
2419 else
2420 CC="$ac_cv_prog_CC"
2421 fi
2422
2423 fi
2424 if test -z "$CC"; then
2425 # Extract the first word of "cc", so it can be a program name with args.
2426 set dummy cc; ac_word=$2
2427 echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 else
2435 ac_prog_rejected=no
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2444 ac_prog_rejected=yes
2445 continue
2446 fi
2447 ac_cv_prog_CC="cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453
2454 if test $ac_prog_rejected = yes; then
2455 # We found a bogon in the path, so make sure we never use it.
2456 set dummy $ac_cv_prog_CC
2457 shift
2458 if test $# != 0; then
2459 # We chose a different compiler from the bogus one.
2460 # However, it has the same basename, so the bogon will be chosen
2461 # first if we set CC to just the basename; use the full file name.
2462 shift
2463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2464 fi
2465 fi
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477 fi
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 for ac_prog in cl
2481 do
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505
2506 fi
2507 fi
2508 CC=$ac_cv_prog_CC
2509 if test -n "$CC"; then
2510 echo "$as_me:$LINENO: result: $CC" >&5
2511 echo "${ECHO_T}$CC" >&6
2512 else
2513 echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6
2515 fi
2516
2517 test -n "$CC" && break
2518 done
2519 fi
2520 if test -z "$CC"; then
2521 ac_ct_CC=$CC
2522 for ac_prog in cl
2523 do
2524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2525 set dummy $ac_prog; ac_word=$2
2526 echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_CC="$ac_prog"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547
2548 fi
2549 fi
2550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2551 if test -n "$ac_ct_CC"; then
2552 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2553 echo "${ECHO_T}$ac_ct_CC" >&6
2554 else
2555 echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2557 fi
2558
2559 test -n "$ac_ct_CC" && break
2560 done
2561
2562 CC=$ac_ct_CC
2563 fi
2564
2565 fi
2566
2567
2568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: no acceptable C compiler found in \$PATH
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2573
2574 # Provide some information about the compiler.
2575 echo "$as_me:$LINENO:" \
2576 "checking for C compiler version" >&5
2577 ac_compiler=`set X $ac_compile; echo $2`
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2593
2594 cat >conftest.$ac_ext <<_ACEOF
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600
2601 int
2602 main ()
2603 {
2604
2605 ;
2606 return 0;
2607 }
2608 _ACEOF
2609 ac_clean_files_save=$ac_clean_files
2610 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2611 # Try to create an executable without -o first, disregard a.out.
2612 # It will help us diagnose broken compilers, and finding out an intuition
2613 # of exeext.
2614 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2615 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2616 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2617 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2618 (eval $ac_link_default) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 # Find the output, starting from the most likely. This scheme is
2623 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2624 # resort.
2625
2626 # Be careful to initialize this variable, since it used to be cached.
2627 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2628 ac_cv_exeext=
2629 # b.out is created by i960 compilers.
2630 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2631 do
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2635 ;;
2636 conftest.$ac_ext )
2637 # This is the source file.
2638 ;;
2639 [ab].out )
2640 # We found the default executable, but exeext='' is most
2641 # certainly right.
2642 break;;
2643 *.* )
2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645 # FIXME: I believe we export ac_cv_exeext for Libtool,
2646 # but it would be cool to find out if it's true. Does anybody
2647 # maintain Libtool? --akim.
2648 export ac_cv_exeext
2649 break;;
2650 * )
2651 break;;
2652 esac
2653 done
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: C compiler cannot create executables
2661 See \`config.log' for more details." >&2;}
2662 { (exit 77); exit 77; }; }
2663 fi
2664
2665 ac_exeext=$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_file" >&5
2667 echo "${ECHO_T}$ac_file" >&6
2668
2669 # Check the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2672 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2673 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2674 # If not cross compiling, check that we can run a simple program.
2675 if test "$cross_compiling" != yes; then
2676 if { ac_try='./$ac_file'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 cross_compiling=no
2683 else
2684 if test "$cross_compiling" = maybe; then
2685 cross_compiling=yes
2686 else
2687 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: cannot run C compiled programs.
2691 If you meant to cross compile, use \`--host'.
2692 See \`config.log' for more details." >&2;}
2693 { (exit 1); exit 1; }; }
2694 fi
2695 fi
2696 fi
2697 echo "$as_me:$LINENO: result: yes" >&5
2698 echo "${ECHO_T}yes" >&6
2699
2700 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2701 ac_clean_files=$ac_clean_files_save
2702 # Check the compiler produces executables we can run. If not, either
2703 # the compiler is broken, or we cross compile.
2704 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2705 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2706 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2707 echo "${ECHO_T}$cross_compiling" >&6
2708
2709 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2710 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2712 (eval $ac_link) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; then
2716 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2717 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2718 # work properly (i.e., refer to `conftest.exe'), while it won't with
2719 # `rm'.
2720 for ac_file in conftest.exe conftest conftest.*; do
2721 test -f "$ac_file" || continue
2722 case $ac_file in
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2724 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2725 export ac_cv_exeext
2726 break;;
2727 * ) break;;
2728 esac
2729 done
2730 else
2731 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2734 See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
2736 fi
2737
2738 rm -f conftest$ac_cv_exeext
2739 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2740 echo "${ECHO_T}$ac_cv_exeext" >&6
2741
2742 rm -f conftest.$ac_ext
2743 EXEEXT=$ac_cv_exeext
2744 ac_exeext=$EXEEXT
2745 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2746 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2747 if test "${ac_cv_objext+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756
2757 int
2758 main ()
2759 {
2760
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.o conftest.obj
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; then
2771 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2775 break;;
2776 esac
2777 done
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2790 fi
2791 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2792 echo "${ECHO_T}$ac_cv_objext" >&6
2793 OBJEXT=$ac_cv_objext
2794 ac_objext=$OBJEXT
2795 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810 #ifndef __GNUC__
2811 choke me
2812 #endif
2813
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag"
2828 || test ! -s conftest.err'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 ac_compiler_gnu=yes
2841 else
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
2846 fi
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2853 GCC=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 CFLAGS="-g"
2857 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_g+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868
2869 int
2870 main ()
2871 {
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879 (eval $ac_compile) 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 ac_cv_prog_cc_g=yes
2900 else
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 ac_cv_prog_cc_g=no
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 fi
2908 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2909 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2910 if test "$ac_test_CFLAGS" = set; then
2911 CFLAGS=$ac_save_CFLAGS
2912 elif test $ac_cv_prog_cc_g = yes; then
2913 if test "$GCC" = yes; then
2914 CFLAGS="-g -O2"
2915 else
2916 CFLAGS="-g"
2917 fi
2918 else
2919 if test "$GCC" = yes; then
2920 CFLAGS="-O2"
2921 else
2922 CFLAGS=
2923 fi
2924 fi
2925 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2926 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2927 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 ac_cv_prog_cc_stdc=no
2931 ac_save_CC=$CC
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 #include <stdarg.h>
2939 #include <stdio.h>
2940 #include <sys/types.h>
2941 #include <sys/stat.h>
2942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2943 struct buf { int x; };
2944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2945 static char *e (p, i)
2946 char **p;
2947 int i;
2948 {
2949 return p[i];
2950 }
2951 static char *f (char * (*g) (char **, int), char **p, ...)
2952 {
2953 char *s;
2954 va_list v;
2955 va_start (v,p);
2956 s = g (p, va_arg (v,int));
2957 va_end (v);
2958 return s;
2959 }
2960
2961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2962 function prototypes and stuff, but not '\xHH' hex character constants.
2963 These don't provoke an error unfortunately, instead are silently treated
2964 as 'x'. The following induces an error, until -std1 is added to get
2965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2966 array size at least. It's necessary to write '\x00'==0 to get something
2967 that's true only with -std1. */
2968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2969
2970 int test (int i, double x);
2971 struct s1 {int (*f) (int a);};
2972 struct s2 {int (*f) (double a);};
2973 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2974 int argc;
2975 char **argv;
2976 int
2977 main ()
2978 {
2979 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2980 ;
2981 return 0;
2982 }
2983 _ACEOF
2984 # Don't try gcc -ansi; that turns off useful extensions and
2985 # breaks some systems' header files.
2986 # AIX -qlanglvl=ansi
2987 # Ultrix and OSF/1 -std1
2988 # HP-UX 10.20 and later -Ae
2989 # HP-UX older versions -Aa -D_HPUX_SOURCE
2990 # SVR4 -Xc -D__EXTENSIONS__
2991 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992 do
2993 CC="$ac_save_CC $ac_arg"
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2997 ac_status=$?
2998 grep -v '^ *+' conftest.er1 >conftest.err
2999 rm -f conftest.er1
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 ac_cv_prog_cc_stdc=$ac_arg
3017 break
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 fi
3023 rm -f conftest.err conftest.$ac_objext
3024 done
3025 rm -f conftest.$ac_ext conftest.$ac_objext
3026 CC=$ac_save_CC
3027
3028 fi
3029
3030 case "x$ac_cv_prog_cc_stdc" in
3031 x|xno)
3032 echo "$as_me:$LINENO: result: none needed" >&5
3033 echo "${ECHO_T}none needed" >&6 ;;
3034 *)
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3036 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3037 CC="$CC $ac_cv_prog_cc_stdc" ;;
3038 esac
3039
3040 # Some people use a C++ compiler to compile C. Since we use `exit',
3041 # in C++ we need to declare it. In case someone uses the same compiler
3042 # for both compiling C and C++ we need to have the C++ compiler decide
3043 # the declaration of exit, since it's the most demanding environment.
3044 cat >conftest.$ac_ext <<_ACEOF
3045 #ifndef __cplusplus
3046 choke me
3047 #endif
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 for ac_declaration in \
3072 '' \
3073 'extern "C" void std::exit (int) throw (); using std::exit;' \
3074 'extern "C" void std::exit (int); using std::exit;' \
3075 'extern "C" void exit (int) throw ();' \
3076 'extern "C" void exit (int);' \
3077 'void exit (int);'
3078 do
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 #include <stdlib.h>
3087 int
3088 main ()
3089 {
3090 exit (42);
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3097 (eval $ac_compile) 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag"
3105 || test ! -s conftest.err'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; } &&
3111 { ac_try='test -s conftest.$ac_objext'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 :
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3121
3122 continue
3123 fi
3124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 $ac_declaration
3132 int
3133 main ()
3134 {
3135 exit (42);
3136 ;
3137 return 0;
3138 }
3139 _ACEOF
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag"
3150 || test ! -s conftest.err'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 break
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 fi
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169 done
3170 rm -f conftest*
3171 if test -n "$ac_declaration"; then
3172 echo '#ifdef __cplusplus' >>confdefs.h
3173 echo $ac_declaration >>confdefs.h
3174 echo '#endif' >>confdefs.h
3175 fi
3176
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 fi
3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188
3189 depcc="$CC" am_compiler_list=
3190
3191 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3192 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3193 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3197 # We make a subdir and do the tests there. Otherwise we can end up
3198 # making bogus files that we don't know about and never remove. For
3199 # instance it was reported that on HP-UX the gcc test will end up
3200 # making a dummy file named `D' -- because `-MD' means `put the output
3201 # in D'.
3202 mkdir conftest.dir
3203 # Copy depcomp to subdir because otherwise we won't find it if we're
3204 # using a relative directory.
3205 cp "$am_depcomp" conftest.dir
3206 cd conftest.dir
3207 # We will build objects and dependencies in a subdirectory because
3208 # it helps to detect inapplicable dependency modes. For instance
3209 # both Tru64's cc and ICC support -MD to output dependencies as a
3210 # side effect of compilation, but ICC will put the dependencies in
3211 # the current directory while Tru64 will put them in the object
3212 # directory.
3213 mkdir sub
3214
3215 am_cv_CC_dependencies_compiler_type=none
3216 if test "$am_compiler_list" = ""; then
3217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3218 fi
3219 for depmode in $am_compiler_list; do
3220 # Setup a source with many dependencies, because some compilers
3221 # like to wrap large dependency lists on column 80 (with \), and
3222 # we should not choose a depcomp mode which is confused by this.
3223 #
3224 # We need to recreate these files for each test, as the compiler may
3225 # overwrite some of them when testing with obscure command lines.
3226 # This happens at least with the AIX C compiler.
3227 : > sub/conftest.c
3228 for i in 1 2 3 4 5 6; do
3229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3231 # Solaris 8's {/usr,}/bin/sh.
3232 touch sub/conftst$i.h
3233 done
3234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3235
3236 case $depmode in
3237 nosideeffect)
3238 # after this tag, mechanisms are not by side-effect, so they'll
3239 # only be used when explicitly requested
3240 if test "x$enable_dependency_tracking" = xyes; then
3241 continue
3242 else
3243 break
3244 fi
3245 ;;
3246 none) break ;;
3247 esac
3248 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3249 # mode. It turns out that the SunPro C++ compiler does not properly
3250 # handle `-M -o', and we need to detect this.
3251 if depmode=$depmode \
3252 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3254 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3255 >/dev/null 2>conftest.err &&
3256 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3257 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3258 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3259 # icc doesn't choke on unknown options, it will just issue warnings
3260 # or remarks (even with -Werror). So we grep stderr for any message
3261 # that says an option was ignored or not supported.
3262 # When given -MP, icc 7.0 and 7.1 complain thusly:
3263 # icc: Command line warning: ignoring option '-M'; no argument required
3264 # The diagnosis changed in icc 8.0:
3265 # icc: Command line remark: option '-MP' not supported
3266 if (grep 'ignoring option' conftest.err ||
3267 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3268 am_cv_CC_dependencies_compiler_type=$depmode
3269 break
3270 fi
3271 fi
3272 done
3273
3274 cd ..
3275 rm -rf conftest.dir
3276 else
3277 am_cv_CC_dependencies_compiler_type=none
3278 fi
3279
3280 fi
3281 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3282 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3283 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3284
3285
3286
3287 if
3288 test "x$enable_dependency_tracking" != xno \
3289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3290 am__fastdepCC_TRUE=
3291 am__fastdepCC_FALSE='#'
3292 else
3293 am__fastdepCC_TRUE='#'
3294 am__fastdepCC_FALSE=
3295 fi
3296
3297
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3306 # On Suns, sometimes $CPP names a directory.
3307 if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3309 fi
3310 if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 do
3317 ac_preproc_ok=false
3318 for ac_c_preproc_warn_flag in '' yes
3319 do
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 #ifdef __STDC__
3333 # include <limits.h>
3334 #else
3335 # include <assert.h>
3336 #endif
3337 Syntax error
3338 _ACEOF
3339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } >/dev/null; then
3347 if test -s conftest.err; then
3348 ac_cpp_err=$ac_c_preproc_warn_flag
3349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3350 else
3351 ac_cpp_err=
3352 fi
3353 else
3354 ac_cpp_err=yes
3355 fi
3356 if test -z "$ac_cpp_err"; then
3357 :
3358 else
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 # Broken: fails on valid input.
3363 continue
3364 fi
3365 rm -f conftest.err conftest.$ac_ext
3366
3367 # OK, works on sane cases. Now check whether non-existent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379 ac_status=$?
3380 grep -v '^ *+' conftest.er1 >conftest.err
3381 rm -f conftest.er1
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388 else
3389 ac_cpp_err=
3390 fi
3391 else
3392 ac_cpp_err=yes
3393 fi
3394 if test -z "$ac_cpp_err"; then
3395 # Broken: success on invalid input.
3396 continue
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 # Passes both tests.
3402 ac_preproc_ok=:
3403 break
3404 fi
3405 rm -f conftest.err conftest.$ac_ext
3406
3407 done
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.err conftest.$ac_ext
3410 if $ac_preproc_ok; then
3411 break
3412 fi
3413
3414 done
3415 ac_cv_prog_CPP=$CPP
3416
3417 fi
3418 CPP=$ac_cv_prog_CPP
3419 else
3420 ac_cv_prog_CPP=$CPP
3421 fi
3422 echo "$as_me:$LINENO: result: $CPP" >&5
3423 echo "${ECHO_T}$CPP" >&6
3424 ac_preproc_ok=false
3425 for ac_c_preproc_warn_flag in '' yes
3426 do
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457 else
3458 ac_cpp_err=
3459 fi
3460 else
3461 ac_cpp_err=yes
3462 fi
3463 if test -z "$ac_cpp_err"; then
3464 :
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 # Broken: fails on valid input.
3470 continue
3471 fi
3472 rm -f conftest.err conftest.$ac_ext
3473
3474 # OK, works on sane cases. Now check whether non-existent headers
3475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 #include <ac_nonexistent.h>
3483 _ACEOF
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495 else
3496 ac_cpp_err=
3497 fi
3498 else
3499 ac_cpp_err=yes
3500 fi
3501 if test -z "$ac_cpp_err"; then
3502 # Broken: success on invalid input.
3503 continue
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 # Passes both tests.
3509 ac_preproc_ok=:
3510 break
3511 fi
3512 rm -f conftest.err conftest.$ac_ext
3513
3514 done
3515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3516 rm -f conftest.err conftest.$ac_ext
3517 if $ac_preproc_ok; then
3518 :
3519 else
3520 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3521 See \`config.log' for more details." >&5
3522 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&2;}
3524 { (exit 1); exit 1; }; }
3525 fi
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534 echo "$as_me:$LINENO: checking for egrep" >&5
3535 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3536 if test "${ac_cv_prog_egrep+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3540 then ac_cv_prog_egrep='grep -E'
3541 else ac_cv_prog_egrep='egrep'
3542 fi
3543 fi
3544 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3545 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3546 EGREP=$ac_cv_prog_egrep
3547
3548
3549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3551 if test "${ac_cv_header_stdc+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #include <stdlib.h>
3561 #include <stdarg.h>
3562 #include <string.h>
3563 #include <float.h>
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_header_stdc=yes
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3599
3600 ac_cv_header_stdc=no
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603
3604 if test $ac_cv_header_stdc = yes; then
3605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <string.h>
3613
3614 _ACEOF
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 $EGREP "memchr" >/dev/null 2>&1; then
3617 :
3618 else
3619 ac_cv_header_stdc=no
3620 fi
3621 rm -f conftest*
3622
3623 fi
3624
3625 if test $ac_cv_header_stdc = yes; then
3626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h. */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #include <stdlib.h>
3634
3635 _ACEOF
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "free" >/dev/null 2>&1; then
3638 :
3639 else
3640 ac_cv_header_stdc=no
3641 fi
3642 rm -f conftest*
3643
3644 fi
3645
3646 if test $ac_cv_header_stdc = yes; then
3647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3648 if test "$cross_compiling" = yes; then
3649 :
3650 else
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657 #include <ctype.h>
3658 #if ((' ' & 0x0FF) == 0x020)
3659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3661 #else
3662 # define ISLOWER(c) \
3663 (('a' <= (c) && (c) <= 'i') \
3664 || ('j' <= (c) && (c) <= 'r') \
3665 || ('s' <= (c) && (c) <= 'z'))
3666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3667 #endif
3668
3669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3670 int
3671 main ()
3672 {
3673 int i;
3674 for (i = 0; i < 256; i++)
3675 if (XOR (islower (i), ISLOWER (i))
3676 || toupper (i) != TOUPPER (i))
3677 exit(2);
3678 exit (0);
3679 }
3680 _ACEOF
3681 rm -f conftest$ac_exeext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 :
3693 else
3694 echo "$as_me: program exited with status $ac_status" >&5
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 ( exit $ac_status )
3699 ac_cv_header_stdc=no
3700 fi
3701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3702 fi
3703 fi
3704 fi
3705 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3706 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3707 if test $ac_cv_header_stdc = yes; then
3708
3709 cat >>confdefs.h <<\_ACEOF
3710 #define STDC_HEADERS 1
3711 _ACEOF
3712
3713 fi
3714
3715 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3726 inttypes.h stdint.h unistd.h
3727 do
3728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3729 echo "$as_me:$LINENO: checking for $ac_header" >&5
3730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 $ac_includes_default
3741
3742 #include <$ac_header>
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3746 (eval $ac_compile) 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } &&
3753 { ac_try='test -z "$ac_c_werror_flag"
3754 || test ! -s conftest.err'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; } &&
3760 { ac_try='test -s conftest.$ac_objext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762 (eval $ac_try) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 eval "$as_ac_Header=yes"
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771 eval "$as_ac_Header=no"
3772 fi
3773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3778 cat >>confdefs.h <<_ACEOF
3779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3780 _ACEOF
3781
3782 fi
3783
3784 done
3785
3786
3787 # Check whether --enable-alsa or --disable-alsa was given.
3788 if test "${enable_alsa+set}" = set; then
3789 enableval="$enable_alsa"
3790 case "${enableval}" in
3791 yes) COMPILE_ALSA=yes ;;
3792 no) COMPILE_ALSA=no ;;
3793 *) COMPILE_ALSA=yes ;;
3794 esac
3795 else
3796
3797 for ac_header in alsa/asoundlib.h
3798 do
3799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3801 echo "$as_me:$LINENO: checking for $ac_header" >&5
3802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 fi
3806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3808 else
3809 # Is the header compilable?
3810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3812 cat >conftest.$ac_ext <<_ACEOF
3813 /* confdefs.h. */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 #include <$ac_header>
3820 _ACEOF
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_header_compiler=yes
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 ac_header_compiler=no
3849 fi
3850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3852 echo "${ECHO_T}$ac_header_compiler" >&6
3853
3854 # Is the header present?
3855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <$ac_header>
3864 _ACEOF
3865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } >/dev/null; then
3873 if test -s conftest.err; then
3874 ac_cpp_err=$ac_c_preproc_warn_flag
3875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3876 else
3877 ac_cpp_err=
3878 fi
3879 else
3880 ac_cpp_err=yes
3881 fi
3882 if test -z "$ac_cpp_err"; then
3883 ac_header_preproc=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 ac_header_preproc=no
3889 fi
3890 rm -f conftest.err conftest.$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3892 echo "${ECHO_T}$ac_header_preproc" >&6
3893
3894 # So? What about this header?
3895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3896 yes:no: )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3901 ac_header_preproc=yes
3902 ;;
3903 no:yes:* )
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3916 (
3917 cat <<\_ASBOX
3918 ## -------------------------------- ##
3919 ## Report this to classpath@gnu.org ##
3920 ## -------------------------------- ##
3921 _ASBOX
3922 ) |
3923 sed "s/^/$as_me: WARNING: /" >&2
3924 ;;
3925 esac
3926 echo "$as_me:$LINENO: checking for $ac_header" >&5
3927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 eval "$as_ac_Header=\$ac_header_preproc"
3932 fi
3933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935
3936 fi
3937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3938 cat >>confdefs.h <<_ACEOF
3939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 _ACEOF
3941 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
3942 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
3943 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 ac_check_lib_save_LIBS=$LIBS
3947 LIBS="-lasound $LIBS"
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 #ifdef __cplusplus
3957 extern "C"
3958 #endif
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char snd_seq_open ();
3962 int
3963 main ()
3964 {
3965 snd_seq_open ();
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.$ac_objext conftest$ac_exeext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -z "$ac_c_werror_flag"
3980 || test ! -s conftest.err'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; } &&
3986 { ac_try='test -s conftest$ac_exeext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_lib_asound_snd_seq_open=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 ac_cv_lib_asound_snd_seq_open=no
3998 fi
3999 rm -f conftest.err conftest.$ac_objext \
4000 conftest$ac_exeext conftest.$ac_ext
4001 LIBS=$ac_check_lib_save_LIBS
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4004 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4005 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4006 COMPILE_ALSA=yes
4007 else
4008 COMPILE_ALSA=no
4009 fi
4010
4011 else
4012 COMPILE_ALSA=no
4013 fi
4014
4015 done
4016
4017 fi;
4018
4019
4020 if test "x${COMPILE_ALSA}" = xyes; then
4021 CREATE_ALSA_LIBRARIES_TRUE=
4022 CREATE_ALSA_LIBRARIES_FALSE='#'
4023 else
4024 CREATE_ALSA_LIBRARIES_TRUE='#'
4025 CREATE_ALSA_LIBRARIES_FALSE=
4026 fi
4027
4028
4029 # Check whether --enable-dssi or --disable-dssi was given.
4030 if test "${enable_dssi+set}" = set; then
4031 enableval="$enable_dssi"
4032 case "${enableval}" in
4033 yes) COMPILE_DSSI=yes ;;
4034 no) COMPILE_DSSI=no ;;
4035 *) COMPILE_DSSI=yes ;;
4036 esac
4037 else
4038
4039 for ac_header in dssi.h
4040 do
4041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043 echo "$as_me:$LINENO: checking for $ac_header" >&5
4044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 fi
4048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4050 else
4051 # Is the header compilable?
4052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4061 #include <$ac_header>
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4065 (eval $ac_compile) 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag"
4073 || test ! -s conftest.err'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; } &&
4079 { ac_try='test -s conftest.$ac_objext'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_header_compiler=yes
4086 else
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 ac_header_compiler=no
4091 fi
4092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4094 echo "${ECHO_T}$ac_header_compiler" >&6
4095
4096 # Is the header present?
4097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h. */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <$ac_header>
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118 else
4119 ac_cpp_err=
4120 fi
4121 else
4122 ac_cpp_err=yes
4123 fi
4124 if test -z "$ac_cpp_err"; then
4125 ac_header_preproc=yes
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 ac_header_preproc=no
4131 fi
4132 rm -f conftest.err conftest.$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4134 echo "${ECHO_T}$ac_header_preproc" >&6
4135
4136 # So? What about this header?
4137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4138 yes:no: )
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4143 ac_header_preproc=yes
4144 ;;
4145 no:yes:* )
4146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4158 (
4159 cat <<\_ASBOX
4160 ## -------------------------------- ##
4161 ## Report this to classpath@gnu.org ##
4162 ## -------------------------------- ##
4163 _ASBOX
4164 ) |
4165 sed "s/^/$as_me: WARNING: /" >&2
4166 ;;
4167 esac
4168 echo "$as_me:$LINENO: checking for $ac_header" >&5
4169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 eval "$as_ac_Header=\$ac_header_preproc"
4174 fi
4175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4177
4178 fi
4179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4180 cat >>confdefs.h <<_ACEOF
4181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4182 _ACEOF
4183 COMPILE_DSSI=yes
4184 else
4185 COMPILE_DSSI=no
4186 fi
4187
4188 done
4189
4190 fi;
4191
4192
4193 if test "x${COMPILE_DSSI}" = xyes; then
4194 CREATE_DSSI_LIBRARIES_TRUE=
4195 CREATE_DSSI_LIBRARIES_FALSE='#'
4196 else
4197 CREATE_DSSI_LIBRARIES_TRUE='#'
4198 CREATE_DSSI_LIBRARIES_FALSE=
4199 fi
4200
4201
4202 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4203 if test "${enable_gtk_peer+set}" = set; then
4204 enableval="$enable_gtk_peer"
4205 case "${enableval}" in
4206 yes) COMPILE_GTK_PEER=yes ;;
4207 no) COMPILE_GTK_PEER=no ;;
4208 *) COMPILE_GTK_PEER=yes ;;
4209 esac
4210 else
4211 COMPILE_GTK_PEER=yes
4212 fi;
4213
4214
4215 if test "x${COMPILE_GTK_PEER}" = xyes; then
4216 CREATE_GTK_PEER_LIBRARIES_TRUE=
4217 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4218 else
4219 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4220 CREATE_GTK_PEER_LIBRARIES_FALSE=
4221 fi
4222
4223
4224 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4225 if test "${enable_gtk_peers+set}" = set; then
4226 enableval="$enable_gtk_peers"
4227 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4228 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4229 { (exit 1); exit 1; }; }
4230 fi;
4231
4232 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4233 if test "${enable_qt_peer+set}" = set; then
4234 enableval="$enable_qt_peer"
4235 case "${enableval}" in
4236 yes) COMPILE_QT_PEER=yes ;;
4237 no) COMPILE_QT_PEER=no ;;
4238 *) COMPILE_QT_PEER=yes ;;
4239 esac
4240 else
4241 COMPILE_QT_PEER=no
4242 fi;
4243
4244
4245 if test "x${COMPILE_QT_PEER}" = xyes; then
4246 CREATE_QT_PEER_LIBRARIES_TRUE=
4247 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4248 else
4249 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4250 CREATE_QT_PEER_LIBRARIES_FALSE=
4251 fi
4252
4253
4254 # Check whether --enable-plugin or --disable-plugin was given.
4255 if test "${enable_plugin+set}" = set; then
4256 enableval="$enable_plugin"
4257 case "${enableval}" in
4258 yes) COMPILE_PLUGIN=yes ;;
4259 no) COMPILE_PLUGIN=no ;;
4260 *) COMPILE_PLUGIN=yes ;;
4261 esac
4262 else
4263 COMPILE_PLUGIN=yes
4264 fi;
4265
4266
4267 if test "x${COMPILE_PLUGIN}" = xyes; then
4268 CREATE_PLUGIN_TRUE=
4269 CREATE_PLUGIN_FALSE='#'
4270 else
4271 CREATE_PLUGIN_TRUE='#'
4272 CREATE_PLUGIN_FALSE=
4273 fi
4274
4275
4276
4277 multi_os_directory=`$CC -print-multi-os-directory`
4278 case $multi_os_directory in
4279 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
4280 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
4281 esac
4282
4283
4284
4285
4286 # Check whether --with-native-libdir or --without-native-libdir was given.
4287 if test "${with_native_libdir+set}" = set; then
4288 withval="$with_native_libdir"
4289
4290 nativeexeclibdir=${withval}
4291
4292 else
4293
4294 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`
4295
4296 fi;
4297
4298
4299
4300
4301 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4302 if test "${with_glibj_dir+set}" = set; then
4303 withval="$with_glibj_dir"
4304
4305 glibjdir=${withval}
4306
4307 else
4308
4309 glibjdir='${datadir}/${PACKAGE}'
4310
4311 fi;
4312
4313
4314
4315
4316 # Check whether --with-vm or --without-vm was given.
4317 if test "${with_vm+set}" = set; then
4318 withval="$with_vm"
4319
4320 VM_BINARY=${withval}
4321
4322 else
4323
4324 VM_BINARY='${prefix}/bin/jamvm'
4325
4326 fi;
4327
4328
4329
4330
4331 if test "x`basename $VM_BINARY`" = xcacao; then
4332 FOUND_CACAO_TRUE=
4333 FOUND_CACAO_FALSE='#'
4334 else
4335 FOUND_CACAO_TRUE='#'
4336 FOUND_CACAO_FALSE=
4337 fi
4338
4339
4340 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4341 if test "${enable_regen_headers+set}" = set; then
4342 enableval="$enable_regen_headers"
4343 case "${enableval}" in
4344 yes) REGENERATE_JNI_HEADERS=yes ;;
4345 no) REGENERATE_JNI_HEADERS=no ;;
4346 *) REGENERATE_JNI_HEADERS=no ;;
4347 esac
4348 else
4349 REGENERATE_JNI_HEADERS=no
4350 fi;
4351
4352
4353 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4354 CREATE_JNI_HEADERS_TRUE=
4355 CREATE_JNI_HEADERS_FALSE='#'
4356 else
4357 CREATE_JNI_HEADERS_TRUE='#'
4358 CREATE_JNI_HEADERS_FALSE=
4359 fi
4360
4361
4362 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4363 if test "${enable_tool_wrappers+set}" = set; then
4364 enableval="$enable_tool_wrappers"
4365 case x"${enableval}" in
4366 xyes) COMPILE_WRAPPERS=yes ;;
4367 xno) COMPILE_WRAPPERS=no ;;
4368 x) COMPILE_WRAPPERS=yes ;;
4369 *) COMPILE_WRAPPERS=yes ;;
4370 esac
4371 else
4372 COMPILE_WRAPPERS=no
4373 fi;
4374
4375
4376 if test "x${COMPILE_WRAPPERS}" = xyes; then
4377 CREATE_WRAPPERS_TRUE=
4378 CREATE_WRAPPERS_FALSE='#'
4379 else
4380 CREATE_WRAPPERS_TRUE='#'
4381 CREATE_WRAPPERS_FALSE=
4382 fi
4383
4384
4385 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4386 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4387 LN_S=$as_ln_s
4388 if test "$LN_S" = "ln -s"; then
4389 echo "$as_me:$LINENO: result: yes" >&5
4390 echo "${ECHO_T}yes" >&6
4391 else
4392 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4393 echo "${ECHO_T}no, using $LN_S" >&6
4394 fi
4395
4396 # Find a good install program. We prefer a C program (faster),
4397 # so one script is as good as another. But avoid the broken or
4398 # incompatible versions:
4399 # SysV /etc/install, /usr/sbin/install
4400 # SunOS /usr/etc/install
4401 # IRIX /sbin/install
4402 # AIX /bin/install
4403 # AmigaOS /C/install, which installs bootblocks on floppy discs
4404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4407 # OS/2's system install, which has a completely different semantic
4408 # ./install, which can be erroneously created by make from ./install.sh.
4409 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4411 if test -z "$INSTALL"; then
4412 if test "${ac_cv_path_install+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 # Account for people who put trailing slashes in PATH elements.
4421 case $as_dir/ in
4422 ./ | .// | /cC/* | \
4423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4424 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4425 /usr/ucb/* ) ;;
4426 *)
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4429 # by default.
4430 for ac_prog in ginstall scoinst install; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4433 if test $ac_prog = install &&
4434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4436 :
4437 elif test $ac_prog = install &&
4438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4440 :
4441 else
4442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4443 break 3
4444 fi
4445 fi
4446 done
4447 done
4448 ;;
4449 esac
4450 done
4451
4452
4453 fi
4454 if test "${ac_cv_path_install+set}" = set; then
4455 INSTALL=$ac_cv_path_install
4456 else
4457 # As a last resort, use the slow shell script. We don't cache a
4458 # path for INSTALL within a source directory, because that will
4459 # break other packages using the cache if that directory is
4460 # removed, or if the path is relative.
4461 INSTALL=$ac_install_sh
4462 fi
4463 fi
4464 echo "$as_me:$LINENO: result: $INSTALL" >&5
4465 echo "${ECHO_T}$INSTALL" >&6
4466
4467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4468 # It thinks the first close brace ends the variable substitution.
4469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4470
4471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4472
4473 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4474
4475
4476 ac_ext=cc
4477 ac_cpp='$CXXCPP $CPPFLAGS'
4478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4481 if test -n "$ac_tool_prefix"; then
4482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4483 do
4484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4486 echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488 if test "${ac_cv_prog_CXX+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -n "$CXX"; then
4492 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507
4508 fi
4509 fi
4510 CXX=$ac_cv_prog_CXX
4511 if test -n "$CXX"; then
4512 echo "$as_me:$LINENO: result: $CXX" >&5
4513 echo "${ECHO_T}$CXX" >&6
4514 else
4515 echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6
4517 fi
4518
4519 test -n "$CXX" && break
4520 done
4521 fi
4522 if test -z "$CXX"; then
4523 ac_ct_CXX=$CXX
4524 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4525 do
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$ac_ct_CXX"; then
4534 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_ac_ct_CXX="$ac_prog"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549
4550 fi
4551 fi
4552 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4553 if test -n "$ac_ct_CXX"; then
4554 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4555 echo "${ECHO_T}$ac_ct_CXX" >&6
4556 else
4557 echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6
4559 fi
4560
4561 test -n "$ac_ct_CXX" && break
4562 done
4563 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4564
4565 CXX=$ac_ct_CXX
4566 fi
4567
4568
4569 # Provide some information about the compiler.
4570 echo "$as_me:$LINENO:" \
4571 "checking for C++ compiler version" >&5
4572 ac_compiler=`set X $ac_compile; echo $2`
4573 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4574 (eval $ac_compiler --version </dev/null >&5) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }
4578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4579 (eval $ac_compiler -v </dev/null >&5) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }
4583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4584 (eval $ac_compiler -V </dev/null >&5) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }
4588
4589 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4590 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4591 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600
4601 int
4602 main ()
4603 {
4604 #ifndef __GNUC__
4605 choke me
4606 #endif
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614 (eval $ac_compile) 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_cxx_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest.$ac_objext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 ac_compiler_gnu=yes
4635 else
4636 echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 ac_compiler_gnu=no
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4643
4644 fi
4645 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4646 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4647 GXX=`test $ac_compiler_gnu = yes && echo yes`
4648 ac_test_CXXFLAGS=${CXXFLAGS+set}
4649 ac_save_CXXFLAGS=$CXXFLAGS
4650 CXXFLAGS="-g"
4651 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4652 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4653 if test "${ac_cv_prog_cxx_g+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h. */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662
4663 int
4664 main ()
4665 {
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_cxx_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_cv_prog_cxx_g=no
4699 fi
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4703 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4704 if test "$ac_test_CXXFLAGS" = set; then
4705 CXXFLAGS=$ac_save_CXXFLAGS
4706 elif test $ac_cv_prog_cxx_g = yes; then
4707 if test "$GXX" = yes; then
4708 CXXFLAGS="-g -O2"
4709 else
4710 CXXFLAGS="-g"
4711 fi
4712 else
4713 if test "$GXX" = yes; then
4714 CXXFLAGS="-O2"
4715 else
4716 CXXFLAGS=
4717 fi
4718 fi
4719 for ac_declaration in \
4720 '' \
4721 'extern "C" void std::exit (int) throw (); using std::exit;' \
4722 'extern "C" void std::exit (int); using std::exit;' \
4723 'extern "C" void exit (int) throw ();' \
4724 'extern "C" void exit (int);' \
4725 'void exit (int);'
4726 do
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 $ac_declaration
4734 #include <stdlib.h>
4735 int
4736 main ()
4737 {
4738 exit (42);
4739 ;
4740 return 0;
4741 }
4742 _ACEOF
4743 rm -f conftest.$ac_objext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4745 (eval $ac_compile) 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } &&
4752 { ac_try='test -z "$ac_cxx_werror_flag"
4753 || test ! -s conftest.err'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 :
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 continue
4771 fi
4772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_declaration
4780 int
4781 main ()
4782 {
4783 exit (42);
4784 ;
4785 return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4791 ac_status=$?
4792 grep -v '^ *+' conftest.er1 >conftest.err
4793 rm -f conftest.er1
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_cxx_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 break
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 fi
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4817 done
4818 rm -f conftest*
4819 if test -n "$ac_declaration"; then
4820 echo '#ifdef __cplusplus' >>confdefs.h
4821 echo $ac_declaration >>confdefs.h
4822 echo '#endif' >>confdefs.h
4823 fi
4824
4825 ac_ext=c
4826 ac_cpp='$CPP $CPPFLAGS'
4827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
4831 depcc="$CXX" am_compiler_list=
4832
4833 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4834 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4835 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4839 # We make a subdir and do the tests there. Otherwise we can end up
4840 # making bogus files that we don't know about and never remove. For
4841 # instance it was reported that on HP-UX the gcc test will end up
4842 # making a dummy file named `D' -- because `-MD' means `put the output
4843 # in D'.
4844 mkdir conftest.dir
4845 # Copy depcomp to subdir because otherwise we won't find it if we're
4846 # using a relative directory.
4847 cp "$am_depcomp" conftest.dir
4848 cd conftest.dir
4849 # We will build objects and dependencies in a subdirectory because
4850 # it helps to detect inapplicable dependency modes. For instance
4851 # both Tru64's cc and ICC support -MD to output dependencies as a
4852 # side effect of compilation, but ICC will put the dependencies in
4853 # the current directory while Tru64 will put them in the object
4854 # directory.
4855 mkdir sub
4856
4857 am_cv_CXX_dependencies_compiler_type=none
4858 if test "$am_compiler_list" = ""; then
4859 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4860 fi
4861 for depmode in $am_compiler_list; do
4862 # Setup a source with many dependencies, because some compilers
4863 # like to wrap large dependency lists on column 80 (with \), and
4864 # we should not choose a depcomp mode which is confused by this.
4865 #
4866 # We need to recreate these files for each test, as the compiler may
4867 # overwrite some of them when testing with obscure command lines.
4868 # This happens at least with the AIX C compiler.
4869 : > sub/conftest.c
4870 for i in 1 2 3 4 5 6; do
4871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4873 # Solaris 8's {/usr,}/bin/sh.
4874 touch sub/conftst$i.h
4875 done
4876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4877
4878 case $depmode in
4879 nosideeffect)
4880 # after this tag, mechanisms are not by side-effect, so they'll
4881 # only be used when explicitly requested
4882 if test "x$enable_dependency_tracking" = xyes; then
4883 continue
4884 else
4885 break
4886 fi
4887 ;;
4888 none) break ;;
4889 esac
4890 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle `-M -o', and we need to detect this.
4893 if depmode=$depmode \
4894 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4896 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4897 >/dev/null 2>conftest.err &&
4898 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4899 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4900 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4901 # icc doesn't choke on unknown options, it will just issue warnings
4902 # or remarks (even with -Werror). So we grep stderr for any message
4903 # that says an option was ignored or not supported.
4904 # When given -MP, icc 7.0 and 7.1 complain thusly:
4905 # icc: Command line warning: ignoring option '-M'; no argument required
4906 # The diagnosis changed in icc 8.0:
4907 # icc: Command line remark: option '-MP' not supported
4908 if (grep 'ignoring option' conftest.err ||
4909 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4910 am_cv_CXX_dependencies_compiler_type=$depmode
4911 break
4912 fi
4913 fi
4914 done
4915
4916 cd ..
4917 rm -rf conftest.dir
4918 else
4919 am_cv_CXX_dependencies_compiler_type=none
4920 fi
4921
4922 fi
4923 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4924 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4925 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4926
4927
4928
4929 if
4930 test "x$enable_dependency_tracking" != xno \
4931 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4932 am__fastdepCXX_TRUE=
4933 am__fastdepCXX_FALSE='#'
4934 else
4935 am__fastdepCXX_TRUE='#'
4936 am__fastdepCXX_FALSE=
4937 fi
4938
4939
4940 # Check whether --enable-static or --disable-static was given.
4941 if test "${enable_static+set}" = set; then
4942 enableval="$enable_static"
4943 p=${PACKAGE-default}
4944 case $enableval in
4945 yes) enable_static=yes ;;
4946 no) enable_static=no ;;
4947 *)
4948 enable_static=no
4949 # Look at the argument we got. We use all the common list separators.
4950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4951 for pkg in $enableval; do
4952 if test "X$pkg" = "X$p"; then
4953 enable_static=yes
4954 fi
4955 done
4956 IFS="$ac_save_ifs"
4957 ;;
4958 esac
4959 else
4960 enable_static=no
4961 fi;
4962 # Check whether --enable-shared or --disable-shared was given.
4963 if test "${enable_shared+set}" = set; then
4964 enableval="$enable_shared"
4965 p=${PACKAGE-default}
4966 case $enableval in
4967 yes) enable_shared=yes ;;
4968 no) enable_shared=no ;;
4969 *)
4970 enable_shared=no
4971 # Look at the argument we got. We use all the common list separators.
4972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4973 for pkg in $enableval; do
4974 if test "X$pkg" = "X$p"; then
4975 enable_shared=yes
4976 fi
4977 done
4978 IFS="$ac_save_ifs"
4979 ;;
4980 esac
4981 else
4982 enable_shared=yes
4983 fi;
4984 # Check whether --enable-fast-install or --disable-fast-install was given.
4985 if test "${enable_fast_install+set}" = set; then
4986 enableval="$enable_fast_install"
4987 p=${PACKAGE-default}
4988 case $enableval in
4989 yes) enable_fast_install=yes ;;
4990 no) enable_fast_install=no ;;
4991 *)
4992 enable_fast_install=no
4993 # Look at the argument we got. We use all the common list separators.
4994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4995 for pkg in $enableval; do
4996 if test "X$pkg" = "X$p"; then
4997 enable_fast_install=yes
4998 fi
4999 done
5000 IFS="$ac_save_ifs"
5001 ;;
5002 esac
5003 else
5004 enable_fast_install=yes
5005 fi;
5006
5007 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5008 if test "${with_gnu_ld+set}" = set; then
5009 withval="$with_gnu_ld"
5010 test "$withval" = no || with_gnu_ld=yes
5011 else
5012 with_gnu_ld=no
5013 fi;
5014 ac_prog=ld
5015 if test "$GCC" = yes; then
5016 # Check if gcc -print-prog-name=ld gives a path.
5017 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5018 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5019 case $host in
5020 *-*-mingw*)
5021 # gcc leaves a trailing carriage return which upsets mingw
5022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5023 *)
5024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5025 esac
5026 case $ac_prog in
5027 # Accept absolute paths.
5028 [\\/]* | [A-Za-z]:[\\/]*)
5029 re_direlt='/[^/][^/]*/\.\./'
5030 # Canonicalize the path of ld
5031 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5033 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5034 done
5035 test -z "$LD" && LD="$ac_prog"
5036 ;;
5037 "")
5038 # If it fails, then pretend we aren't using GCC.
5039 ac_prog=ld
5040 ;;
5041 *)
5042 # If it is relative, then search for the first ld in PATH.
5043 with_gnu_ld=unknown
5044 ;;
5045 esac
5046 elif test "$with_gnu_ld" = yes; then
5047 echo "$as_me:$LINENO: checking for GNU ld" >&5
5048 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5049 else
5050 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5051 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5052 fi
5053 if test "${lt_cv_path_LD+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 if test -z "$LD"; then
5057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5058 for ac_dir in $PATH; do
5059 test -z "$ac_dir" && ac_dir=.
5060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5061 lt_cv_path_LD="$ac_dir/$ac_prog"
5062 # Check to see if the program is GNU ld. I'd rather use --version,
5063 # but apparently some GNU ld's only accept -v.
5064 # Break only if it was the GNU/non-GNU ld that we prefer.
5065 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5066 test "$with_gnu_ld" != no && break
5067 else
5068 test "$with_gnu_ld" != yes && break
5069 fi
5070 fi
5071 done
5072 IFS="$ac_save_ifs"
5073 else
5074 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5075 fi
5076 fi
5077
5078 LD="$lt_cv_path_LD"
5079 if test -n "$LD"; then
5080 echo "$as_me:$LINENO: result: $LD" >&5
5081 echo "${ECHO_T}$LD" >&6
5082 else
5083 echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6
5085 fi
5086 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5087 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5088 { (exit 1); exit 1; }; }
5089 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5090 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5091 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5095 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5096 lt_cv_prog_gnu_ld=yes
5097 else
5098 lt_cv_prog_gnu_ld=no
5099 fi
5100 fi
5101 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5102 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5103 with_gnu_ld=$lt_cv_prog_gnu_ld
5104
5105
5106 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5107 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5108 if test "${lt_cv_ld_reload_flag+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 lt_cv_ld_reload_flag='-r'
5112 fi
5113 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5114 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5115 reload_flag=$lt_cv_ld_reload_flag
5116 test -n "$reload_flag" && reload_flag=" $reload_flag"
5117
5118 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5119 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5120 if test "${lt_cv_path_NM+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123 if test -n "$NM"; then
5124 # Let the user override the test.
5125 lt_cv_path_NM="$NM"
5126 else
5127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5128 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5129 test -z "$ac_dir" && ac_dir=.
5130 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5131 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5132 # Check to see if the nm accepts a BSD-compat flag.
5133 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5134 # nm: unknown option "B" ignored
5135 # Tru64's nm complains that /dev/null is an invalid object file
5136 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5137 lt_cv_path_NM="$tmp_nm -B"
5138 break
5139 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5140 lt_cv_path_NM="$tmp_nm -p"
5141 break
5142 else
5143 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5144 continue # so that we can try to find one that supports BSD flags
5145 fi
5146 fi
5147 done
5148 IFS="$ac_save_ifs"
5149 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5150 fi
5151 fi
5152
5153 NM="$lt_cv_path_NM"
5154 echo "$as_me:$LINENO: result: $NM" >&5
5155 echo "${ECHO_T}$NM" >&6
5156
5157 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5158 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5159 if test "${lt_cv_deplibs_check_method+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 lt_cv_file_magic_cmd='$MAGIC_CMD'
5163 lt_cv_file_magic_test_file=
5164 lt_cv_deplibs_check_method='unknown'
5165 # Need to set the preceding variable on all platforms that support
5166 # interlibrary dependencies.
5167 # 'none' -- dependencies not supported.
5168 # `unknown' -- same as none, but documents that we really don't know.
5169 # 'pass_all' -- all dependencies passed with no checks.
5170 # 'test_compile' -- check by making test program.
5171 # 'file_magic [regex]' -- check by looking for files in library path
5172 # which responds to the $file_magic_cmd with a given egrep regex.
5173 # If you have `file' or equivalent on your system and you're not sure
5174 # whether `pass_all' will *always* work, you probably want this one.
5175
5176 case $host_os in
5177 aix*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181 beos*)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184
5185 bsdi4*)
5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5187 lt_cv_file_magic_cmd='/usr/bin/file -L'
5188 lt_cv_file_magic_test_file=/shlib/libc.so
5189 ;;
5190
5191 cygwin* | mingw* |pw32*)
5192 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5193 lt_cv_file_magic_cmd='$OBJDUMP -f'
5194 ;;
5195
5196 darwin* | rhapsody*)
5197 # this will be overwritten by pass_all, but leave it in just in case
5198 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5199 lt_cv_file_magic_cmd='/usr/bin/file -L'
5200 case "$host_os" in
5201 rhapsody* | darwin1.012)
5202 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5203 ;;
5204 *) # Darwin 1.3 on
5205 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5206 ;;
5207 esac
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 freebsd* | kfreebsd*-gnu)
5212 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5213 case $host_cpu in
5214 i*86 )
5215 # Not sure whether the presence of OpenBSD here was a mistake.
5216 # Let's accept both of them until this is cleared up.
5217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5218 lt_cv_file_magic_cmd=/usr/bin/file
5219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5220 ;;
5221 esac
5222 else
5223 lt_cv_deplibs_check_method=pass_all
5224 fi
5225 ;;
5226
5227 gnu*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231 hpux10.20*|hpux11*)
5232 case $host_cpu in
5233 hppa*)
5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5235 lt_cv_file_magic_cmd=/usr/bin/file
5236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5237 ;;
5238 ia64*)
5239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5240 lt_cv_file_magic_cmd=/usr/bin/file
5241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5242 ;;
5243 esac
5244 ;;
5245
5246 irix5* | irix6*)
5247 case $host_os in
5248 irix5*)
5249 # this will be overridden with pass_all, but let us keep it just in case
5250 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5251 ;;
5252 *)
5253 case $LD in
5254 *-32|*"-32 ") libmagic=32-bit;;
5255 *-n32|*"-n32 ") libmagic=N32;;
5256 *-64|*"-64 ") libmagic=64-bit;;
5257 *) libmagic=never-match;;
5258 esac
5259 # this will be overridden with pass_all, but let us keep it just in case
5260 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5261 ;;
5262 esac
5263 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266
5267 # This must be Linux ELF.
5268 linux-gnu*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271
5272 netbsd* | knetbsd*-gnu)
5273 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5274 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5275 else
5276 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5277 fi
5278 ;;
5279
5280 newsos6)
5281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5282 lt_cv_file_magic_cmd=/usr/bin/file
5283 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5284 ;;
5285
5286 osf3* | osf4* | osf5*)
5287 # this will be overridden with pass_all, but let us keep it just in case
5288 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5289 lt_cv_file_magic_test_file=/shlib/libc.so
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293 sco3.2v5*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297 solaris*)
5298 lt_cv_deplibs_check_method=pass_all
5299 lt_cv_file_magic_test_file=/lib/libc.so
5300 ;;
5301
5302 sysv5uw[78]* | sysv4*uw2*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5307 case $host_vendor in
5308 ncr)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311 motorola)
5312 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]'
5313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5314 ;;
5315 esac
5316 ;;
5317 esac
5318
5319 fi
5320 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5321 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5322 file_magic_cmd=$lt_cv_file_magic_cmd
5323 deplibs_check_method=$lt_cv_deplibs_check_method
5324
5325
5326
5327
5328 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5329
5330 # find the maximum length of command line arguments
5331 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5332 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5333 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 i=0
5337 teststring="ABCD"
5338
5339 case $build_os in
5340 msdosdjgpp*)
5341 # On DJGPP, this test can blow up pretty badly due to problems in libc
5342 # (any single argument exceeding 2000 bytes causes a buffer overrun
5343 # during glob expansion). Even if it were fixed, the result of this
5344 # check would be larger than it should be.
5345 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5346 ;;
5347
5348 cygwin* | mingw*)
5349 # On Win9x/ME, this test blows up -- it succeeds, but takes
5350 # about 5 minutes as the teststring grows exponentially.
5351 # Worse, since 9x/ME are not pre-emptively multitasking,
5352 # you end up with a "frozen" computer, even though with patience
5353 # the test eventually succeeds (with a max line length of 256k).
5354 # Instead, let's just punt: use the minimum linelength reported by
5355 # all of the supported platforms: 8192 (on NT/2K/XP).
5356 lt_cv_sys_max_cmd_len=8192;
5357 ;;
5358
5359 amigaos*)
5360 # On AmigaOS with pdksh, this test takes hours, literally.
5361 # So we just punt and use a minimum line length of 8192.
5362 lt_cv_sys_max_cmd_len=8192;
5363 ;;
5364
5365 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5366 # This has been around since 386BSD, at least. Likely further.
5367 if test -x /sbin/sysctl; then
5368 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5369 elif test -x /usr/sbin/sysctl; then
5370 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5371 else
5372 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5373 fi
5374 # And add a safety zone
5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5377 ;;
5378 esac
5379
5380 fi
5381
5382 if test -n "$lt_cv_sys_max_cmd_len" ; then
5383 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5384 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5385 else
5386 echo "$as_me:$LINENO: result: none" >&5
5387 echo "${ECHO_T}none" >&6
5388 fi
5389
5390
5391 # Only perform the check for file, if the check method requires it
5392 case $deplibs_check_method in
5393 file_magic*)
5394 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5395 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5396 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5397 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 case $MAGIC_CMD in
5401 /*)
5402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5403 ;;
5404 ?:/*)
5405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5406 ;;
5407 *)
5408 ac_save_MAGIC_CMD="$MAGIC_CMD"
5409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5410 ac_dummy="/usr/bin:$PATH"
5411 for ac_dir in $ac_dummy; do
5412 test -z "$ac_dir" && ac_dir=.
5413 if test -f $ac_dir/${ac_tool_prefix}file; then
5414 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5415 if test -n "$file_magic_test_file"; then
5416 case $deplibs_check_method in
5417 "file_magic "*)
5418 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5421 egrep "$file_magic_regex" > /dev/null; then
5422 :
5423 else
5424 cat <<EOF 1>&2
5425
5426 *** Warning: the command libtool uses to detect shared libraries,
5427 *** $file_magic_cmd, produces output that libtool cannot recognize.
5428 *** The result is that libtool may fail to recognize shared libraries
5429 *** as such. This will affect the creation of libtool libraries that
5430 *** depend on shared libraries, but programs linked with such libtool
5431 *** libraries will work regardless of this problem. Nevertheless, you
5432 *** may want to report the problem to your system manager and/or to
5433 *** bug-libtool@gnu.org
5434
5435 EOF
5436 fi ;;
5437 esac
5438 fi
5439 break
5440 fi
5441 done
5442 IFS="$ac_save_ifs"
5443 MAGIC_CMD="$ac_save_MAGIC_CMD"
5444 ;;
5445 esac
5446 fi
5447
5448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5449 if test -n "$MAGIC_CMD"; then
5450 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5451 echo "${ECHO_T}$MAGIC_CMD" >&6
5452 else
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455 fi
5456
5457 if test -z "$lt_cv_path_MAGIC_CMD"; then
5458 if test -n "$ac_tool_prefix"; then
5459 echo "$as_me:$LINENO: checking for file" >&5
5460 echo $ECHO_N "checking for file... $ECHO_C" >&6
5461 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 case $MAGIC_CMD in
5465 /*)
5466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5467 ;;
5468 ?:/*)
5469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5470 ;;
5471 *)
5472 ac_save_MAGIC_CMD="$MAGIC_CMD"
5473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5474 ac_dummy="/usr/bin:$PATH"
5475 for ac_dir in $ac_dummy; do
5476 test -z "$ac_dir" && ac_dir=.
5477 if test -f $ac_dir/file; then
5478 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5479 if test -n "$file_magic_test_file"; then
5480 case $deplibs_check_method in
5481 "file_magic "*)
5482 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5485 egrep "$file_magic_regex" > /dev/null; then
5486 :
5487 else
5488 cat <<EOF 1>&2
5489
5490 *** Warning: the command libtool uses to detect shared libraries,
5491 *** $file_magic_cmd, produces output that libtool cannot recognize.
5492 *** The result is that libtool may fail to recognize shared libraries
5493 *** as such. This will affect the creation of libtool libraries that
5494 *** depend on shared libraries, but programs linked with such libtool
5495 *** libraries will work regardless of this problem. Nevertheless, you
5496 *** may want to report the problem to your system manager and/or to
5497 *** bug-libtool@gnu.org
5498
5499 EOF
5500 fi ;;
5501 esac
5502 fi
5503 break
5504 fi
5505 done
5506 IFS="$ac_save_ifs"
5507 MAGIC_CMD="$ac_save_MAGIC_CMD"
5508 ;;
5509 esac
5510 fi
5511
5512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5513 if test -n "$MAGIC_CMD"; then
5514 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5515 echo "${ECHO_T}$MAGIC_CMD" >&6
5516 else
5517 echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6
5519 fi
5520
5521 else
5522 MAGIC_CMD=:
5523 fi
5524 fi
5525
5526 fi
5527 ;;
5528 esac
5529
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_prog_RANLIB+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 if test -n "$RANLIB"; then
5539 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554
5555 fi
5556 fi
5557 RANLIB=$ac_cv_prog_RANLIB
5558 if test -n "$RANLIB"; then
5559 echo "$as_me:$LINENO: result: $RANLIB" >&5
5560 echo "${ECHO_T}$RANLIB" >&6
5561 else
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5564 fi
5565
5566 fi
5567 if test -z "$ac_cv_prog_RANLIB"; then
5568 ac_ct_RANLIB=$RANLIB
5569 # Extract the first word of "ranlib", so it can be a program name with args.
5570 set dummy ranlib; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 if test -n "$ac_ct_RANLIB"; then
5577 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_RANLIB="ranlib"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592
5593 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5594 fi
5595 fi
5596 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5597 if test -n "$ac_ct_RANLIB"; then
5598 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5599 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5603 fi
5604
5605 RANLIB=$ac_ct_RANLIB
5606 else
5607 RANLIB="$ac_cv_prog_RANLIB"
5608 fi
5609
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}strip; ac_word=$2
5613 echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615 if test "${ac_cv_prog_STRIP+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 if test -n "$STRIP"; then
5619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632 done
5633 done
5634
5635 fi
5636 fi
5637 STRIP=$ac_cv_prog_STRIP
5638 if test -n "$STRIP"; then
5639 echo "$as_me:$LINENO: result: $STRIP" >&5
5640 echo "${ECHO_T}$STRIP" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646 fi
5647 if test -z "$ac_cv_prog_STRIP"; then
5648 ac_ct_STRIP=$STRIP
5649 # Extract the first word of "strip", so it can be a program name with args.
5650 set dummy strip; ac_word=$2
5651 echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5653 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 if test -n "$ac_ct_STRIP"; then
5657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 ac_cv_prog_ac_ct_STRIP="strip"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672
5673 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5674 fi
5675 fi
5676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5677 if test -n "$ac_ct_STRIP"; then
5678 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5679 echo "${ECHO_T}$ac_ct_STRIP" >&6
5680 else
5681 echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5683 fi
5684
5685 STRIP=$ac_ct_STRIP
5686 else
5687 STRIP="$ac_cv_prog_STRIP"
5688 fi
5689
5690
5691 # Check for any special flags to pass to ltconfig.
5692 libtool_flags="--cache-file=$cache_file"
5693 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5694 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5695 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5696 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5697 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5698
5699
5700 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5701 if test "${enable_libtool_lock+set}" = set; then
5702 enableval="$enable_libtool_lock"
5703
5704 fi;
5705 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5706 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5707
5708
5709 # Check whether --with-pic or --without-pic was given.
5710 if test "${with_pic+set}" = set; then
5711 withval="$with_pic"
5712 pic_mode="$withval"
5713 else
5714 pic_mode=default
5715 fi;
5716 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5717 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5718
5719 # Some flags need to be propagated to the compiler or linker for good
5720 # libtool support.
5721 case $host in
5722 *-*-irix6*)
5723 # Find out which ABI we are using.
5724 echo '#line 5724 "configure"' > conftest.$ac_ext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; then
5730 if test "$lt_cv_prog_gnu_ld" = yes; then
5731 case `/usr/bin/file conftest.$ac_objext` in
5732 *32-bit*)
5733 LD="${LD-ld} -melf32bsmip"
5734 ;;
5735 *N32*)
5736 LD="${LD-ld} -melf32bmipn32"
5737 ;;
5738 *64-bit*)
5739 LD="${LD-ld} -melf64bmip"
5740 ;;
5741 esac
5742 else
5743 case `/usr/bin/file conftest.$ac_objext` in
5744 *32-bit*)
5745 LD="${LD-ld} -32"
5746 ;;
5747 *N32*)
5748 LD="${LD-ld} -n32"
5749 ;;
5750 *64-bit*)
5751 LD="${LD-ld} -64"
5752 ;;
5753 esac
5754 fi
5755 fi
5756 rm -rf conftest*
5757 ;;
5758
5759 ia64-*-hpux*)
5760 # Find out which ABI we are using.
5761 echo 'int i;' > conftest.$ac_ext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; then
5767 case "`/usr/bin/file conftest.o`" in
5768 *ELF-32*)
5769 HPUX_IA64_MODE="32"
5770 ;;
5771 *ELF-64*)
5772 HPUX_IA64_MODE="64"
5773 ;;
5774 esac
5775 fi
5776 rm -rf conftest*
5777 ;;
5778
5779 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5780 # Find out which ABI we are using.
5781 echo 'int i;' > conftest.$ac_ext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783 (eval $ac_compile) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; then
5787 case "`/usr/bin/file conftest.o`" in
5788 *32-bit*)
5789 case $host in
5790 x86_64-*linux*)
5791 LD="${LD-ld} -m elf_i386"
5792 ;;
5793 ppc64-*linux*|powerpc64-*linux*)
5794 LD="${LD-ld} -m elf32ppclinux"
5795 ;;
5796 s390x-*linux*)
5797 LD="${LD-ld} -m elf_s390"
5798 ;;
5799 sparc64-*linux*)
5800 LD="${LD-ld} -m elf32_sparc"
5801 ;;
5802 esac
5803 ;;
5804 *64-bit*)
5805 case $host in
5806 x86_64-*linux*)
5807 LD="${LD-ld} -m elf_x86_64"
5808 ;;
5809 ppc*-*linux*|powerpc*-*linux*)
5810 LD="${LD-ld} -m elf64ppc"
5811 ;;
5812 s390*-*linux*)
5813 LD="${LD-ld} -m elf64_s390"
5814 ;;
5815 sparc*-*linux*)
5816 LD="${LD-ld} -m elf64_sparc"
5817 ;;
5818 esac
5819 ;;
5820 esac
5821 fi
5822 rm -rf conftest*
5823 ;;
5824
5825 *-*-sco3.2v5*)
5826 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5827 SAVE_CFLAGS="$CFLAGS"
5828 CFLAGS="$CFLAGS -belf"
5829 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5830 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5831 if test "${lt_cv_cc_needs_belf+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834
5835
5836 ac_ext=c
5837 ac_cpp='$CPP $CPPFLAGS'
5838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848
5849 int
5850 main ()
5851 {
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 lt_cv_cc_needs_belf=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 lt_cv_cc_needs_belf=no
5885 fi
5886 rm -f conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 ac_ext=c
5889 ac_cpp='$CPP $CPPFLAGS'
5890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893
5894 fi
5895 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5896 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5899 CFLAGS="$SAVE_CFLAGS"
5900 fi
5901 ;;
5902
5903
5904 esac
5905
5906
5907 # Save cache, so that ltconfig can load it
5908 cat >confcache <<\_ACEOF
5909 # This file is a shell script that caches the results of configure
5910 # tests run on this system so they can be shared between configure
5911 # scripts and configure runs, see configure's option --config-cache.
5912 # It is not useful on other systems. If it contains results you don't
5913 # want to keep, you may remove or edit it.
5914 #
5915 # config.status only pays attention to the cache file if you give it
5916 # the --recheck option to rerun configure.
5917 #
5918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5920 # following values.
5921
5922 _ACEOF
5923
5924 # The following way of writing the cache mishandles newlines in values,
5925 # but we know of no workaround that is simple, portable, and efficient.
5926 # So, don't put newlines in cache variables' values.
5927 # Ultrix sh set writes to stderr and can't be redirected directly,
5928 # and sets the high bit in the cache file unless we assign to the vars.
5929 {
5930 (set) 2>&1 |
5931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5932 *ac_space=\ *)
5933 # `set' does not quote correctly, so add quotes (double-quote
5934 # substitution turns \\\\ into \\, and sed turns \\ into \).
5935 sed -n \
5936 "s/'/'\\\\''/g;
5937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5938 ;;
5939 *)
5940 # `set' quotes correctly as required by POSIX, so do not add quotes.
5941 sed -n \
5942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5943 ;;
5944 esac;
5945 } |
5946 sed '
5947 t clear
5948 : clear
5949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5950 t end
5951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5952 : end' >>confcache
5953 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5954 if test -w $cache_file; then
5955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5956 cat confcache >$cache_file
5957 else
5958 echo "not updating unwritable cache $cache_file"
5959 fi
5960 fi
5961 rm -f confcache
5962
5963 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5964 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5965 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5966 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5967 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5968 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5969 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5970 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5971 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5972 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5973 echo "$as_me: error: libtool configure failed" >&2;}
5974 { (exit 1); exit 1; }; }
5975
5976 # Reload cache, that may have been modified by ltconfig
5977 if test -r "$cache_file"; then
5978 # Some versions of bash will fail to source /dev/null (special
5979 # files actually), so we avoid doing that.
5980 if test -f "$cache_file"; then
5981 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5982 echo "$as_me: loading cache $cache_file" >&6;}
5983 case $cache_file in
5984 [\\/]* | ?:[\\/]* ) . $cache_file;;
5985 *) . ./$cache_file;;
5986 esac
5987 fi
5988 else
5989 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5990 echo "$as_me: creating cache $cache_file" >&6;}
5991 >$cache_file
5992 fi
5993
5994
5995 # This can be used to rebuild libtool when needed
5996 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5997
5998 # Always use our own libtool.
5999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6000
6001 # Redirect the config.log output again, so that the ltconfig log is not
6002 # clobbered by the next message.
6003 exec 5>>./config.log
6004
6005 ac_ext=cc
6006 ac_cpp='$CXXCPP $CPPFLAGS'
6007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6010 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6011 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6012 if test -z "$CXXCPP"; then
6013 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 # Double quotes because CXXCPP needs to be expanded
6017 for CXXCPP in "$CXX -E" "/lib/cpp"
6018 do
6019 ac_preproc_ok=false
6020 for ac_cxx_preproc_warn_flag in '' yes
6021 do
6022 # Use a header file that comes with gcc, so configuring glibc
6023 # with a fresh cross-compiler works.
6024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6025 # <limits.h> exists even on freestanding compilers.
6026 # On the NeXT, cc -E runs the code through the compiler's parser,
6027 # not just through cpp. "Syntax error" is here to catch this case.
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #ifdef __STDC__
6035 # include <limits.h>
6036 #else
6037 # include <assert.h>
6038 #endif
6039 Syntax error
6040 _ACEOF
6041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } >/dev/null; then
6049 if test -s conftest.err; then
6050 ac_cpp_err=$ac_cxx_preproc_warn_flag
6051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6052 else
6053 ac_cpp_err=
6054 fi
6055 else
6056 ac_cpp_err=yes
6057 fi
6058 if test -z "$ac_cpp_err"; then
6059 :
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 # Broken: fails on valid input.
6065 continue
6066 fi
6067 rm -f conftest.err conftest.$ac_ext
6068
6069 # OK, works on sane cases. Now check whether non-existent headers
6070 # can be detected and how.
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <ac_nonexistent.h>
6078 _ACEOF
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null; then
6087 if test -s conftest.err; then
6088 ac_cpp_err=$ac_cxx_preproc_warn_flag
6089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6090 else
6091 ac_cpp_err=
6092 fi
6093 else
6094 ac_cpp_err=yes
6095 fi
6096 if test -z "$ac_cpp_err"; then
6097 # Broken: success on invalid input.
6098 continue
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 # Passes both tests.
6104 ac_preproc_ok=:
6105 break
6106 fi
6107 rm -f conftest.err conftest.$ac_ext
6108
6109 done
6110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6111 rm -f conftest.err conftest.$ac_ext
6112 if $ac_preproc_ok; then
6113 break
6114 fi
6115
6116 done
6117 ac_cv_prog_CXXCPP=$CXXCPP
6118
6119 fi
6120 CXXCPP=$ac_cv_prog_CXXCPP
6121 else
6122 ac_cv_prog_CXXCPP=$CXXCPP
6123 fi
6124 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6125 echo "${ECHO_T}$CXXCPP" >&6
6126 ac_preproc_ok=false
6127 for ac_cxx_preproc_warn_flag in '' yes
6128 do
6129 # Use a header file that comes with gcc, so configuring glibc
6130 # with a fresh cross-compiler works.
6131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132 # <limits.h> exists even on freestanding compilers.
6133 # On the NeXT, cc -E runs the code through the compiler's parser,
6134 # not just through cpp. "Syntax error" is here to catch this case.
6135 cat >conftest.$ac_ext <<_ACEOF
6136 /* confdefs.h. */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #ifdef __STDC__
6142 # include <limits.h>
6143 #else
6144 # include <assert.h>
6145 #endif
6146 Syntax error
6147 _ACEOF
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null; then
6156 if test -s conftest.err; then
6157 ac_cpp_err=$ac_cxx_preproc_warn_flag
6158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6159 else
6160 ac_cpp_err=
6161 fi
6162 else
6163 ac_cpp_err=yes
6164 fi
6165 if test -z "$ac_cpp_err"; then
6166 :
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171 # Broken: fails on valid input.
6172 continue
6173 fi
6174 rm -f conftest.err conftest.$ac_ext
6175
6176 # OK, works on sane cases. Now check whether non-existent headers
6177 # can be detected and how.
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <ac_nonexistent.h>
6185 _ACEOF
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null; then
6194 if test -s conftest.err; then
6195 ac_cpp_err=$ac_cxx_preproc_warn_flag
6196 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6197 else
6198 ac_cpp_err=
6199 fi
6200 else
6201 ac_cpp_err=yes
6202 fi
6203 if test -z "$ac_cpp_err"; then
6204 # Broken: success on invalid input.
6205 continue
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 # Passes both tests.
6211 ac_preproc_ok=:
6212 break
6213 fi
6214 rm -f conftest.err conftest.$ac_ext
6215
6216 done
6217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6218 rm -f conftest.err conftest.$ac_ext
6219 if $ac_preproc_ok; then
6220 :
6221 else
6222 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6223 See \`config.log' for more details." >&5
6224 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6225 See \`config.log' for more details." >&2;}
6226 { (exit 1); exit 1; }; }
6227 fi
6228
6229 ac_ext=c
6230 ac_cpp='$CPP $CPPFLAGS'
6231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235
6236
6237 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6238 lt_save_CC="$CC"
6239 lt_save_CFLAGS="$CFLAGS"
6240 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6241 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6242 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6243 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6244 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6245 deplibs_check_method="$deplibs_check_method" \
6246 file_magic_cmd="$file_magic_cmd" \
6247 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6248 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6249 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6250 echo "$as_me: error: libtool tag configuration failed" >&2;}
6251 { (exit 1); exit 1; }; }
6252 CC="$lt_save_CC"
6253 CFLAGS="$lt_save_CFLAGS"
6254
6255 # Redirect the config.log output again, so that the ltconfig log is not
6256 # clobbered by the next message.
6257 exec 5>>./config.log
6258
6259
6260
6261
6262
6263
6264 ac_ext=c
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269 if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6272 echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6274 if test "${ac_cv_prog_CC+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$CC"; then
6278 ac_cv_prog_CC="$CC" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293
6294 fi
6295 fi
6296 CC=$ac_cv_prog_CC
6297 if test -n "$CC"; then
6298 echo "$as_me:$LINENO: result: $CC" >&5
6299 echo "${ECHO_T}$CC" >&6
6300 else
6301 echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6
6303 fi
6304
6305 fi
6306 if test -z "$ac_cv_prog_CC"; then
6307 ac_ct_CC=$CC
6308 # Extract the first word of "gcc", so it can be a program name with args.
6309 set dummy gcc; ac_word=$2
6310 echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 if test -n "$ac_ct_CC"; then
6316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_ac_ct_CC="gcc"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329 done
6330 done
6331
6332 fi
6333 fi
6334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6335 if test -n "$ac_ct_CC"; then
6336 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6337 echo "${ECHO_T}$ac_ct_CC" >&6
6338 else
6339 echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6
6341 fi
6342
6343 CC=$ac_ct_CC
6344 else
6345 CC="$ac_cv_prog_CC"
6346 fi
6347
6348 if test -z "$CC"; then
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}cc; ac_word=$2
6352 echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6354 if test "${ac_cv_prog_CC+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357 if test -n "$CC"; then
6358 ac_cv_prog_CC="$CC" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_CC="${ac_tool_prefix}cc"
6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6370 fi
6371 done
6372 done
6373
6374 fi
6375 fi
6376 CC=$ac_cv_prog_CC
6377 if test -n "$CC"; then
6378 echo "$as_me:$LINENO: result: $CC" >&5
6379 echo "${ECHO_T}$CC" >&6
6380 else
6381 echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6
6383 fi
6384
6385 fi
6386 if test -z "$ac_cv_prog_CC"; then
6387 ac_ct_CC=$CC
6388 # Extract the first word of "cc", so it can be a program name with args.
6389 set dummy cc; ac_word=$2
6390 echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 if test -n "$ac_ct_CC"; then
6396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ac_ct_CC="cc"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411
6412 fi
6413 fi
6414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6415 if test -n "$ac_ct_CC"; then
6416 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6417 echo "${ECHO_T}$ac_ct_CC" >&6
6418 else
6419 echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6
6421 fi
6422
6423 CC=$ac_ct_CC
6424 else
6425 CC="$ac_cv_prog_CC"
6426 fi
6427
6428 fi
6429 if test -z "$CC"; then
6430 # Extract the first word of "cc", so it can be a program name with args.
6431 set dummy cc; ac_word=$2
6432 echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434 if test "${ac_cv_prog_CC+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 if test -n "$CC"; then
6438 ac_cv_prog_CC="$CC" # Let the user override the test.
6439 else
6440 ac_prog_rejected=no
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6449 ac_prog_rejected=yes
6450 continue
6451 fi
6452 ac_cv_prog_CC="cc"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458
6459 if test $ac_prog_rejected = yes; then
6460 # We found a bogon in the path, so make sure we never use it.
6461 set dummy $ac_cv_prog_CC
6462 shift
6463 if test $# != 0; then
6464 # We chose a different compiler from the bogus one.
6465 # However, it has the same basename, so the bogon will be chosen
6466 # first if we set CC to just the basename; use the full file name.
6467 shift
6468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6469 fi
6470 fi
6471 fi
6472 fi
6473 CC=$ac_cv_prog_CC
6474 if test -n "$CC"; then
6475 echo "$as_me:$LINENO: result: $CC" >&5
6476 echo "${ECHO_T}$CC" >&6
6477 else
6478 echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6
6480 fi
6481
6482 fi
6483 if test -z "$CC"; then
6484 if test -n "$ac_tool_prefix"; then
6485 for ac_prog in cl
6486 do
6487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_prog_CC+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 if test -n "$CC"; then
6495 ac_cv_prog_CC="$CC" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508 done
6509 done
6510
6511 fi
6512 fi
6513 CC=$ac_cv_prog_CC
6514 if test -n "$CC"; then
6515 echo "$as_me:$LINENO: result: $CC" >&5
6516 echo "${ECHO_T}$CC" >&6
6517 else
6518 echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6520 fi
6521
6522 test -n "$CC" && break
6523 done
6524 fi
6525 if test -z "$CC"; then
6526 ac_ct_CC=$CC
6527 for ac_prog in cl
6528 do
6529 # Extract the first word of "$ac_prog", so it can be a program name with args.
6530 set dummy $ac_prog; ac_word=$2
6531 echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 if test -n "$ac_ct_CC"; then
6537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_ac_ct_CC="$ac_prog"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550 done
6551 done
6552
6553 fi
6554 fi
6555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6556 if test -n "$ac_ct_CC"; then
6557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6558 echo "${ECHO_T}$ac_ct_CC" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6
6562 fi
6563
6564 test -n "$ac_ct_CC" && break
6565 done
6566
6567 CC=$ac_ct_CC
6568 fi
6569
6570 fi
6571
6572
6573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6574 See \`config.log' for more details." >&5
6575 echo "$as_me: error: no acceptable C compiler found in \$PATH
6576 See \`config.log' for more details." >&2;}
6577 { (exit 1); exit 1; }; }
6578
6579 # Provide some information about the compiler.
6580 echo "$as_me:$LINENO:" \
6581 "checking for C compiler version" >&5
6582 ac_compiler=`set X $ac_compile; echo $2`
6583 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6584 (eval $ac_compiler --version </dev/null >&5) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }
6588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6589 (eval $ac_compiler -v </dev/null >&5) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }
6593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6594 (eval $ac_compiler -V </dev/null >&5) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }
6598
6599 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6600 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6601 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610
6611 int
6612 main ()
6613 {
6614 #ifndef __GNUC__
6615 choke me
6616 #endif
6617
6618 ;
6619 return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624 (eval $ac_compile) 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_c_werror_flag"
6632 || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest.$ac_objext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_compiler_gnu=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_compiler_gnu=no
6650 fi
6651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6652 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6653
6654 fi
6655 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6656 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
6657 GCC=`test $ac_compiler_gnu = yes && echo yes`
6658 ac_test_CFLAGS=${CFLAGS+set}
6659 ac_save_CFLAGS=$CFLAGS
6660 CFLAGS="-g"
6661 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6662 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
6663 if test "${ac_cv_prog_cc_g+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672
6673 int
6674 main ()
6675 {
6676
6677 ;
6678 return 0;
6679 }
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_prog_cc_g=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_cv_prog_cc_g=no
6709 fi
6710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 fi
6712 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
6714 if test "$ac_test_CFLAGS" = set; then
6715 CFLAGS=$ac_save_CFLAGS
6716 elif test $ac_cv_prog_cc_g = yes; then
6717 if test "$GCC" = yes; then
6718 CFLAGS="-g -O2"
6719 else
6720 CFLAGS="-g"
6721 fi
6722 else
6723 if test "$GCC" = yes; then
6724 CFLAGS="-O2"
6725 else
6726 CFLAGS=
6727 fi
6728 fi
6729 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
6730 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6731 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 ac_cv_prog_cc_stdc=no
6735 ac_save_CC=$CC
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 #include <stdarg.h>
6743 #include <stdio.h>
6744 #include <sys/types.h>
6745 #include <sys/stat.h>
6746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6747 struct buf { int x; };
6748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6749 static char *e (p, i)
6750 char **p;
6751 int i;
6752 {
6753 return p[i];
6754 }
6755 static char *f (char * (*g) (char **, int), char **p, ...)
6756 {
6757 char *s;
6758 va_list v;
6759 va_start (v,p);
6760 s = g (p, va_arg (v,int));
6761 va_end (v);
6762 return s;
6763 }
6764
6765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6766 function prototypes and stuff, but not '\xHH' hex character constants.
6767 These don't provoke an error unfortunately, instead are silently treated
6768 as 'x'. The following induces an error, until -std1 is added to get
6769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6770 array size at least. It's necessary to write '\x00'==0 to get something
6771 that's true only with -std1. */
6772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6773
6774 int test (int i, double x);
6775 struct s1 {int (*f) (int a);};
6776 struct s2 {int (*f) (double a);};
6777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6778 int argc;
6779 char **argv;
6780 int
6781 main ()
6782 {
6783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6784 ;
6785 return 0;
6786 }
6787 _ACEOF
6788 # Don't try gcc -ansi; that turns off useful extensions and
6789 # breaks some systems' header files.
6790 # AIX -qlanglvl=ansi
6791 # Ultrix and OSF/1 -std1
6792 # HP-UX 10.20 and later -Ae
6793 # HP-UX older versions -Aa -D_HPUX_SOURCE
6794 # SVR4 -Xc -D__EXTENSIONS__
6795 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6796 do
6797 CC="$ac_save_CC $ac_arg"
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 ac_cv_prog_cc_stdc=$ac_arg
6821 break
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 fi
6827 rm -f conftest.err conftest.$ac_objext
6828 done
6829 rm -f conftest.$ac_ext conftest.$ac_objext
6830 CC=$ac_save_CC
6831
6832 fi
6833
6834 case "x$ac_cv_prog_cc_stdc" in
6835 x|xno)
6836 echo "$as_me:$LINENO: result: none needed" >&5
6837 echo "${ECHO_T}none needed" >&6 ;;
6838 *)
6839 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6840 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6841 CC="$CC $ac_cv_prog_cc_stdc" ;;
6842 esac
6843
6844 # Some people use a C++ compiler to compile C. Since we use `exit',
6845 # in C++ we need to declare it. In case someone uses the same compiler
6846 # for both compiling C and C++ we need to have the C++ compiler decide
6847 # the declaration of exit, since it's the most demanding environment.
6848 cat >conftest.$ac_ext <<_ACEOF
6849 #ifndef __cplusplus
6850 choke me
6851 #endif
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 for ac_declaration in \
6876 '' \
6877 'extern "C" void std::exit (int) throw (); using std::exit;' \
6878 'extern "C" void std::exit (int); using std::exit;' \
6879 'extern "C" void exit (int) throw ();' \
6880 'extern "C" void exit (int);' \
6881 'void exit (int);'
6882 do
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 $ac_declaration
6890 #include <stdlib.h>
6891 int
6892 main ()
6893 {
6894 exit (42);
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 :
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 continue
6927 fi
6928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_declaration
6936 int
6937 main ()
6938 {
6939 exit (42);
6940 ;
6941 return 0;
6942 }
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag"
6954 || test ! -s conftest.err'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 break
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 fi
6972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6973 done
6974 rm -f conftest*
6975 if test -n "$ac_declaration"; then
6976 echo '#ifdef __cplusplus' >>confdefs.h
6977 echo $ac_declaration >>confdefs.h
6978 echo '#endif' >>confdefs.h
6979 fi
6980
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 fi
6986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6987 ac_ext=c
6988 ac_cpp='$CPP $CPPFLAGS'
6989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
6993 depcc="$CC" am_compiler_list=
6994
6995 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6996 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6997 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7001 # We make a subdir and do the tests there. Otherwise we can end up
7002 # making bogus files that we don't know about and never remove. For
7003 # instance it was reported that on HP-UX the gcc test will end up
7004 # making a dummy file named `D' -- because `-MD' means `put the output
7005 # in D'.
7006 mkdir conftest.dir
7007 # Copy depcomp to subdir because otherwise we won't find it if we're
7008 # using a relative directory.
7009 cp "$am_depcomp" conftest.dir
7010 cd conftest.dir
7011 # We will build objects and dependencies in a subdirectory because
7012 # it helps to detect inapplicable dependency modes. For instance
7013 # both Tru64's cc and ICC support -MD to output dependencies as a
7014 # side effect of compilation, but ICC will put the dependencies in
7015 # the current directory while Tru64 will put them in the object
7016 # directory.
7017 mkdir sub
7018
7019 am_cv_CC_dependencies_compiler_type=none
7020 if test "$am_compiler_list" = ""; then
7021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7022 fi
7023 for depmode in $am_compiler_list; do
7024 # Setup a source with many dependencies, because some compilers
7025 # like to wrap large dependency lists on column 80 (with \), and
7026 # we should not choose a depcomp mode which is confused by this.
7027 #
7028 # We need to recreate these files for each test, as the compiler may
7029 # overwrite some of them when testing with obscure command lines.
7030 # This happens at least with the AIX C compiler.
7031 : > sub/conftest.c
7032 for i in 1 2 3 4 5 6; do
7033 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7034 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7035 # Solaris 8's {/usr,}/bin/sh.
7036 touch sub/conftst$i.h
7037 done
7038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7039
7040 case $depmode in
7041 nosideeffect)
7042 # after this tag, mechanisms are not by side-effect, so they'll
7043 # only be used when explicitly requested
7044 if test "x$enable_dependency_tracking" = xyes; then
7045 continue
7046 else
7047 break
7048 fi
7049 ;;
7050 none) break ;;
7051 esac
7052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7053 # mode. It turns out that the SunPro C++ compiler does not properly
7054 # handle `-M -o', and we need to detect this.
7055 if depmode=$depmode \
7056 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7058 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7059 >/dev/null 2>conftest.err &&
7060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7063 # icc doesn't choke on unknown options, it will just issue warnings
7064 # or remarks (even with -Werror). So we grep stderr for any message
7065 # that says an option was ignored or not supported.
7066 # When given -MP, icc 7.0 and 7.1 complain thusly:
7067 # icc: Command line warning: ignoring option '-M'; no argument required
7068 # The diagnosis changed in icc 8.0:
7069 # icc: Command line remark: option '-MP' not supported
7070 if (grep 'ignoring option' conftest.err ||
7071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7072 am_cv_CC_dependencies_compiler_type=$depmode
7073 break
7074 fi
7075 fi
7076 done
7077
7078 cd ..
7079 rm -rf conftest.dir
7080 else
7081 am_cv_CC_dependencies_compiler_type=none
7082 fi
7083
7084 fi
7085 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7086 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7088
7089
7090
7091 if
7092 test "x$enable_dependency_tracking" != xno \
7093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7094 am__fastdepCC_TRUE=
7095 am__fastdepCC_FALSE='#'
7096 else
7097 am__fastdepCC_TRUE='#'
7098 am__fastdepCC_FALSE=
7099 fi
7100
7101
7102 ac_ext=c
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7108 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7109 # On Suns, sometimes $CPP names a directory.
7110 if test -n "$CPP" && test -d "$CPP"; then
7111 CPP=
7112 fi
7113 if test -z "$CPP"; then
7114 if test "${ac_cv_prog_CPP+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 # Double quotes because CPP needs to be expanded
7118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7119 do
7120 ac_preproc_ok=false
7121 for ac_c_preproc_warn_flag in '' yes
7122 do
7123 # Use a header file that comes with gcc, so configuring glibc
7124 # with a fresh cross-compiler works.
7125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7126 # <limits.h> exists even on freestanding compilers.
7127 # On the NeXT, cc -E runs the code through the compiler's parser,
7128 # not just through cpp. "Syntax error" is here to catch this case.
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 #ifdef __STDC__
7136 # include <limits.h>
7137 #else
7138 # include <assert.h>
7139 #endif
7140 Syntax error
7141 _ACEOF
7142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } >/dev/null; then
7150 if test -s conftest.err; then
7151 ac_cpp_err=$ac_c_preproc_warn_flag
7152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7153 else
7154 ac_cpp_err=
7155 fi
7156 else
7157 ac_cpp_err=yes
7158 fi
7159 if test -z "$ac_cpp_err"; then
7160 :
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 # Broken: fails on valid input.
7166 continue
7167 fi
7168 rm -f conftest.err conftest.$ac_ext
7169
7170 # OK, works on sane cases. Now check whether non-existent headers
7171 # can be detected and how.
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 #include <ac_nonexistent.h>
7179 _ACEOF
7180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } >/dev/null; then
7188 if test -s conftest.err; then
7189 ac_cpp_err=$ac_c_preproc_warn_flag
7190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7191 else
7192 ac_cpp_err=
7193 fi
7194 else
7195 ac_cpp_err=yes
7196 fi
7197 if test -z "$ac_cpp_err"; then
7198 # Broken: success on invalid input.
7199 continue
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 # Passes both tests.
7205 ac_preproc_ok=:
7206 break
7207 fi
7208 rm -f conftest.err conftest.$ac_ext
7209
7210 done
7211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7212 rm -f conftest.err conftest.$ac_ext
7213 if $ac_preproc_ok; then
7214 break
7215 fi
7216
7217 done
7218 ac_cv_prog_CPP=$CPP
7219
7220 fi
7221 CPP=$ac_cv_prog_CPP
7222 else
7223 ac_cv_prog_CPP=$CPP
7224 fi
7225 echo "$as_me:$LINENO: result: $CPP" >&5
7226 echo "${ECHO_T}$CPP" >&6
7227 ac_preproc_ok=false
7228 for ac_c_preproc_warn_flag in '' yes
7229 do
7230 # Use a header file that comes with gcc, so configuring glibc
7231 # with a fresh cross-compiler works.
7232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 # <limits.h> exists even on freestanding compilers.
7234 # On the NeXT, cc -E runs the code through the compiler's parser,
7235 # not just through cpp. "Syntax error" is here to catch this case.
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h. */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 #ifdef __STDC__
7243 # include <limits.h>
7244 #else
7245 # include <assert.h>
7246 #endif
7247 Syntax error
7248 _ACEOF
7249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } >/dev/null; then
7257 if test -s conftest.err; then
7258 ac_cpp_err=$ac_c_preproc_warn_flag
7259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7260 else
7261 ac_cpp_err=
7262 fi
7263 else
7264 ac_cpp_err=yes
7265 fi
7266 if test -z "$ac_cpp_err"; then
7267 :
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 # Broken: fails on valid input.
7273 continue
7274 fi
7275 rm -f conftest.err conftest.$ac_ext
7276
7277 # OK, works on sane cases. Now check whether non-existent headers
7278 # can be detected and how.
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h. */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 #include <ac_nonexistent.h>
7286 _ACEOF
7287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7289 ac_status=$?
7290 grep -v '^ *+' conftest.er1 >conftest.err
7291 rm -f conftest.er1
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } >/dev/null; then
7295 if test -s conftest.err; then
7296 ac_cpp_err=$ac_c_preproc_warn_flag
7297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7298 else
7299 ac_cpp_err=
7300 fi
7301 else
7302 ac_cpp_err=yes
7303 fi
7304 if test -z "$ac_cpp_err"; then
7305 # Broken: success on invalid input.
7306 continue
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 # Passes both tests.
7312 ac_preproc_ok=:
7313 break
7314 fi
7315 rm -f conftest.err conftest.$ac_ext
7316
7317 done
7318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319 rm -f conftest.err conftest.$ac_ext
7320 if $ac_preproc_ok; then
7321 :
7322 else
7323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7324 See \`config.log' for more details." >&5
7325 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7326 See \`config.log' for more details." >&2;}
7327 { (exit 1); exit 1; }; }
7328 fi
7329
7330 ac_ext=c
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336
7337 if test "x${COMPILE_COLLECTIONS}" = xyes; then
7338 # Extract the first word of "perl", so it can be a program name with args.
7339 set dummy perl; ac_word=$2
7340 echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7342 if test "${ac_cv_path_PERL+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 case $PERL in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7348 ;;
7349 *)
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363
7364 ;;
7365 esac
7366 fi
7367 PERL=$ac_cv_path_PERL
7368
7369 if test -n "$PERL"; then
7370 echo "$as_me:$LINENO: result: $PERL" >&5
7371 echo "${ECHO_T}$PERL" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378
7379 ac_config_files="$ac_config_files lib/mkcollections.pl"
7380
7381 ac_config_commands="$ac_config_commands mkcollections.pl"
7382
7383 fi
7384
7385 if test "x${COMPILE_JNI}" = xyes; then
7386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7388 if test "${ac_cv_header_stdc+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h. */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 #include <stdlib.h>
7398 #include <stdarg.h>
7399 #include <string.h>
7400 #include <float.h>
7401
7402 int
7403 main ()
7404 {
7405
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } &&
7419 { ac_try='test -z "$ac_c_werror_flag"
7420 || test ! -s conftest.err'
7421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 (eval $ac_try) 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; } &&
7426 { ac_try='test -s conftest.$ac_objext'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432 ac_cv_header_stdc=yes
7433 else
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437 ac_cv_header_stdc=no
7438 fi
7439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7440
7441 if test $ac_cv_header_stdc = yes; then
7442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 #include <string.h>
7450
7451 _ACEOF
7452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7453 $EGREP "memchr" >/dev/null 2>&1; then
7454 :
7455 else
7456 ac_cv_header_stdc=no
7457 fi
7458 rm -f conftest*
7459
7460 fi
7461
7462 if test $ac_cv_header_stdc = yes; then
7463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7464 cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h. */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 #include <stdlib.h>
7471
7472 _ACEOF
7473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7474 $EGREP "free" >/dev/null 2>&1; then
7475 :
7476 else
7477 ac_cv_header_stdc=no
7478 fi
7479 rm -f conftest*
7480
7481 fi
7482
7483 if test $ac_cv_header_stdc = yes; then
7484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7485 if test "$cross_compiling" = yes; then
7486 :
7487 else
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 #include <ctype.h>
7495 #if ((' ' & 0x0FF) == 0x020)
7496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7498 #else
7499 # define ISLOWER(c) \
7500 (('a' <= (c) && (c) <= 'i') \
7501 || ('j' <= (c) && (c) <= 'r') \
7502 || ('s' <= (c) && (c) <= 'z'))
7503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7504 #endif
7505
7506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7507 int
7508 main ()
7509 {
7510 int i;
7511 for (i = 0; i < 256; i++)
7512 if (XOR (islower (i), ISLOWER (i))
7513 || toupper (i) != TOUPPER (i))
7514 exit(2);
7515 exit (0);
7516 }
7517 _ACEOF
7518 rm -f conftest$ac_exeext
7519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7520 (eval $ac_link) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 :
7530 else
7531 echo "$as_me: program exited with status $ac_status" >&5
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ( exit $ac_status )
7536 ac_cv_header_stdc=no
7537 fi
7538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 fi
7541 fi
7542 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7543 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7544 if test $ac_cv_header_stdc = yes; then
7545
7546 cat >>confdefs.h <<\_ACEOF
7547 #define STDC_HEADERS 1
7548 _ACEOF
7549
7550 fi
7551
7552
7553 echo "$as_me:$LINENO: checking size of void *" >&5
7554 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
7555 if test "${ac_cv_sizeof_void_p+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 #include "confdefs.h"
7566 #include <sys/types.h>
7567
7568
7569 int
7570 main ()
7571 {
7572 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7573 ;
7574 return 0;
7575 }
7576 _ACEOF
7577 rm -f conftest.$ac_objext
7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 (eval $ac_compile) 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try='test -z "$ac_c_werror_flag"
7587 || test ! -s conftest.err'
7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 (eval $ac_try) 2>&5
7590 ac_status=$?
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); }; } &&
7593 { ac_try='test -s conftest.$ac_objext'
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; }; then
7599 ac_cv_sizeof_void_p=$ac_size
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7603
7604 fi
7605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7607 done
7608
7609 fi
7610
7611 if test x$ac_cv_sizeof_void_p = x ; then
7612 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
7613 echo "$as_me: error: cannot determine a size for void *" >&2;}
7614 { (exit 1); exit 1; }; }
7615 fi
7616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7617 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7621 _ACEOF
7622
7623
7624
7625 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7626 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7627 if test "${ac_cv_c_bigendian+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 else
7630 ac_cv_c_bigendian=unknown
7631 # See if sys/param.h defines the BYTE_ORDER macro.
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7638 #include <sys/types.h>
7639 #include <sys/param.h>
7640 int
7641 main ()
7642 {
7643
7644 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7645 bogus endian macros
7646 #endif
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7653 (eval $ac_compile) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try='test -z "$ac_c_werror_flag"
7661 || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try='test -s conftest.$ac_objext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 # It does; now see whether it defined to BIG_ENDIAN or not.
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #include <sys/types.h>
7681 #include <sys/param.h>
7682 int
7683 main ()
7684 {
7685
7686 #if BYTE_ORDER != BIG_ENDIAN
7687 not big endian
7688 #endif
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try='test -z "$ac_c_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 (eval $ac_try) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 ac_cv_c_bigendian=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 ac_cv_c_bigendian=no
7721 fi
7722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 fi
7728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729 if test $ac_cv_c_bigendian = unknown; then
7730 if test "$cross_compiling" = yes; then
7731 echo $ac_n "cross-compiling... " 2>&6
7732 else
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 main () {
7740 /* Are we little or big endian? From Harbison&Steele. */
7741 union
7742 {
7743 long l;
7744 char c[sizeof (long)];
7745 } u;
7746 u.l = 1;
7747 exit (u.c[sizeof (long) - 1] == 1);
7748 }
7749 _ACEOF
7750 rm -f conftest$ac_exeext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752 (eval $ac_link) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_c_bigendian=no
7762 else
7763 echo "$as_me: program exited with status $ac_status" >&5
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 ( exit $ac_status )
7768 ac_cv_c_bigendian=yes
7769 fi
7770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7771 fi
7772 fi
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7775 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7776 if test $ac_cv_c_bigendian = unknown; then
7777 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
7778 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
7779
7780 cat >conftest.c <<EOF
7781 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7782 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7783 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
7784 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7785 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7786 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
7787 int main() { _ascii (); _ebcdic (); return 0; }
7788 EOF
7789 if test -f conftest.c ; then
7790 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
7791 if test `grep -l BIGenDianSyS conftest.o` ; then
7792 echo $ac_n ' big endian probe OK, ' 1>&6
7793 ac_cv_c_bigendian=yes
7794 fi
7795 if test `grep -l LiTTleEnDian conftest.o` ; then
7796 echo $ac_n ' little endian probe OK, ' 1>&6
7797 if test $ac_cv_c_bigendian = yes ; then
7798 ac_cv_c_bigendian=unknown;
7799 else
7800 ac_cv_c_bigendian=no
7801 fi
7802 fi
7803 echo $ac_n 'guessing bigendian ... ' >&6
7804 fi
7805 fi
7806 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7807 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7808 fi
7809 if test $ac_cv_c_bigendian = yes; then
7810
7811 cat >>confdefs.h <<\_ACEOF
7812 #define WORDS_BIGENDIAN 1
7813 _ACEOF
7814
7815
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HOST_WORDS_BIG_ENDIAN 1
7818 _ACEOF
7819
7820 BYTEORDER=4321
7821 else
7822 BYTEORDER=1234
7823 fi
7824
7825 cat >>confdefs.h <<_ACEOF
7826 #define BYTEORDER $BYTEORDER
7827 _ACEOF
7828
7829 if test $ac_cv_c_bigendian = unknown; then
7830 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
7831 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
7832 { (exit 1); exit 1; }; }
7833 fi
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
7853 asm/ioctls.h \
7854 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
7855 sys/time.h \
7856 sys/select.h \
7857 crt_externs.h \
7858 fcntl.h \
7859 sys/mman.h \
7860 magic.h
7861 do
7862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7864 echo "$as_me:$LINENO: checking for $ac_header" >&5
7865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 fi
7869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7871 else
7872 # Is the header compilable?
7873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 $ac_includes_default
7882 #include <$ac_header>
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7886 (eval $ac_compile) 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -z "$ac_c_werror_flag"
7894 || test ! -s conftest.err'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; } &&
7900 { ac_try='test -s conftest.$ac_objext'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 ac_header_compiler=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 ac_header_compiler=no
7912 fi
7913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7915 echo "${ECHO_T}$ac_header_compiler" >&6
7916
7917 # Is the header present?
7918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <$ac_header>
7927 _ACEOF
7928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } >/dev/null; then
7936 if test -s conftest.err; then
7937 ac_cpp_err=$ac_c_preproc_warn_flag
7938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7939 else
7940 ac_cpp_err=
7941 fi
7942 else
7943 ac_cpp_err=yes
7944 fi
7945 if test -z "$ac_cpp_err"; then
7946 ac_header_preproc=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_header_preproc=no
7952 fi
7953 rm -f conftest.err conftest.$ac_ext
7954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7955 echo "${ECHO_T}$ac_header_preproc" >&6
7956
7957 # So? What about this header?
7958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7959 yes:no: )
7960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7964 ac_header_preproc=yes
7965 ;;
7966 no:yes:* )
7967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7979 (
7980 cat <<\_ASBOX
7981 ## -------------------------------- ##
7982 ## Report this to classpath@gnu.org ##
7983 ## -------------------------------- ##
7984 _ASBOX
7985 ) |
7986 sed "s/^/$as_me: WARNING: /" >&2
7987 ;;
7988 esac
7989 echo "$as_me:$LINENO: checking for $ac_header" >&5
7990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994 eval "$as_ac_Header=\$ac_header_preproc"
7995 fi
7996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7998
7999 fi
8000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8001 cat >>confdefs.h <<_ACEOF
8002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8003 _ACEOF
8004
8005 fi
8006
8007 done
8008
8009
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <stdint.h>
8017
8018 _ACEOF
8019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8020 $EGREP "uint32_t" >/dev/null 2>&1; then
8021
8022 cat >>confdefs.h <<\_ACEOF
8023 #define HAVE_INT32_DEFINED 1
8024 _ACEOF
8025
8026 fi
8027 rm -f conftest*
8028
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 #include <inttypes.h>
8036
8037 _ACEOF
8038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8039 $EGREP "uint32_t" >/dev/null 2>&1; then
8040
8041 cat >>confdefs.h <<\_ACEOF
8042 #define HAVE_INT32_DEFINED 1
8043 _ACEOF
8044
8045 fi
8046 rm -f conftest*
8047
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <sys/types.h>
8055
8056 _ACEOF
8057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8058 $EGREP "u_int32_t" >/dev/null 2>&1; then
8059
8060 cat >>confdefs.h <<\_ACEOF
8061 #define HAVE_BSD_INT32_DEFINED 1
8062 _ACEOF
8063
8064 fi
8065 rm -f conftest*
8066
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 #include <sys/config.h>
8074
8075 _ACEOF
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "u_int32_t" >/dev/null 2>&1; then
8078
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_BSD_INT32_DEFINED 1
8081 _ACEOF
8082
8083 fi
8084 rm -f conftest*
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130 for ac_func in ftruncate fsync select \
8131 gethostname socket strerror fork pipe execve open close \
8132 lseek fstat read write htonl memset htons connect \
8133 getsockname getpeername bind listen accept \
8134 recvfrom send sendto setsockopt getsockopt time mktime \
8135 localtime_r \
8136 strerror_r \
8137 fcntl \
8138 mmap munmap mincore msync madvise getpagesize sysconf \
8139 lstat readlink \
8140
8141 do
8142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8143 echo "$as_me:$LINENO: checking for $ac_func" >&5
8144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8145 if eval "test \"\${$as_ac_var+set}\" = set"; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8156 #define $ac_func innocuous_$ac_func
8157
8158 /* System header to define __stub macros and hopefully few prototypes,
8159 which can conflict with char $ac_func (); below.
8160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8161 <limits.h> exists even on freestanding compilers. */
8162
8163 #ifdef __STDC__
8164 # include <limits.h>
8165 #else
8166 # include <assert.h>
8167 #endif
8168
8169 #undef $ac_func
8170
8171 /* Override any gcc2 internal prototype to avoid an error. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 {
8175 #endif
8176 /* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8178 char $ac_func ();
8179 /* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8183 choke me
8184 #else
8185 char (*f) () = $ac_func;
8186 #endif
8187 #ifdef __cplusplus
8188 }
8189 #endif
8190
8191 int
8192 main ()
8193 {
8194 return f != $ac_func;
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -z "$ac_c_werror_flag"
8209 || test ! -s conftest.err'
8210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 (eval $ac_try) 2>&5
8218 ac_status=$?
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 eval "$as_ac_var=yes"
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 eval "$as_ac_var=no"
8227 fi
8228 rm -f conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 fi
8231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8233 if test `eval echo '${'$as_ac_var'}'` = yes; then
8234 cat >>confdefs.h <<_ACEOF
8235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8236 _ACEOF
8237
8238 fi
8239 done
8240
8241
8242 LIBMAGIC=
8243 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
8244 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
8245 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 ac_check_lib_save_LIBS=$LIBS
8249 LIBS="-lmagic $LIBS"
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 #ifdef __cplusplus
8259 extern "C"
8260 #endif
8261 /* We use char because int might match the return type of a gcc2
8262 builtin and then its argument prototype would still apply. */
8263 char magic_open ();
8264 int
8265 main ()
8266 {
8267 magic_open ();
8268 ;
8269 return 0;
8270 }
8271 _ACEOF
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest$ac_exeext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_cv_lib_magic_magic_open=yes
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 ac_cv_lib_magic_magic_open=no
8300 fi
8301 rm -f conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 LIBS=$ac_check_lib_save_LIBS
8304 fi
8305 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
8306 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
8307 if test $ac_cv_lib_magic_magic_open = yes; then
8308 LIBMAGIC=-lmagic
8309 fi
8310
8311
8312
8313 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8314 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8315 if test "${ac_cv_header_time+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 #include <sys/types.h>
8325 #include <sys/time.h>
8326 #include <time.h>
8327
8328 int
8329 main ()
8330 {
8331 if ((struct tm *) 0)
8332 return 0;
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 rm -f conftest.$ac_objext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8339 (eval $ac_compile) 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag"
8347 || test ! -s conftest.err'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; } &&
8353 { ac_try='test -s conftest.$ac_objext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; }; then
8359 ac_cv_header_time=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 ac_cv_header_time=no
8365 fi
8366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8367 fi
8368 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8369 echo "${ECHO_T}$ac_cv_header_time" >&6
8370 if test $ac_cv_header_time = yes; then
8371
8372 cat >>confdefs.h <<\_ACEOF
8373 #define TIME_WITH_SYS_TIME 1
8374 _ACEOF
8375
8376 fi
8377
8378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8380 if test "${ac_cv_struct_tm+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383 cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h. */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <time.h>
8391
8392 int
8393 main ()
8394 {
8395 struct tm *tp; tp->tm_sec;
8396 ;
8397 return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402 (eval $ac_compile) 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -z "$ac_c_werror_flag"
8410 || test ! -s conftest.err'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest.$ac_objext'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418 (eval $ac_try) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_struct_tm=time.h
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_struct_tm=sys/time.h
8428 fi
8429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8430 fi
8431 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8432 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8433 if test $ac_cv_struct_tm = sys/time.h; then
8434
8435 cat >>confdefs.h <<\_ACEOF
8436 #define TM_IN_SYS_TIME 1
8437 _ACEOF
8438
8439 fi
8440
8441 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8442 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8443 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 #include <$ac_cv_struct_tm>
8454
8455
8456 int
8457 main ()
8458 {
8459 static struct tm ac_aggr;
8460 if (ac_aggr.tm_zone)
8461 return 0;
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 rm -f conftest.$ac_objext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_member_struct_tm_tm_zone=yes
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 #include <sys/types.h>
8500 #include <$ac_cv_struct_tm>
8501
8502
8503 int
8504 main ()
8505 {
8506 static struct tm ac_aggr;
8507 if (sizeof ac_aggr.tm_zone)
8508 return 0;
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag"
8523 || test ! -s conftest.err'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 (eval $ac_try) 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; } &&
8529 { ac_try='test -s conftest.$ac_objext'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 ac_cv_member_struct_tm_tm_zone=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_cv_member_struct_tm_tm_zone=no
8541 fi
8542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543 fi
8544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8547 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8548 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8549
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_STRUCT_TM_TM_ZONE 1
8552 _ACEOF
8553
8554
8555 fi
8556
8557 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define HAVE_TM_ZONE 1
8561 _ACEOF
8562
8563 else
8564 echo "$as_me:$LINENO: checking for tzname" >&5
8565 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8566 if test "${ac_cv_var_tzname+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 #include <time.h>
8576 #ifndef tzname /* For SGI. */
8577 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8578 #endif
8579
8580 int
8581 main ()
8582 {
8583 atoi(*tzname);
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590 (eval $ac_link) 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag"
8598 || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8610 ac_cv_var_tzname=yes
8611 else
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 ac_cv_var_tzname=no
8616 fi
8617 rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 fi
8620 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8621 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8622 if test $ac_cv_var_tzname = yes; then
8623
8624 cat >>confdefs.h <<\_ACEOF
8625 #define HAVE_TZNAME 1
8626 _ACEOF
8627
8628 fi
8629 fi
8630
8631
8632 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
8633 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <time.h>
8641 int
8642 main ()
8643 {
8644 struct tm tim; tim.tm_gmtoff = 0;
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671
8672 cat >>confdefs.h <<\_ACEOF
8673 #define STRUCT_TM_HAS_GMTOFF 1
8674 _ACEOF
8675
8676 echo "$as_me:$LINENO: result: yes" >&5
8677 echo "${ECHO_T}yes" >&6
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 echo "$as_me:$LINENO: result: no" >&5
8683 echo "${ECHO_T}no" >&6
8684 echo "$as_me:$LINENO: checking for global timezone variable" >&5
8685 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h. */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 #include <time.h>
8693 int
8694 main ()
8695 {
8696 void i(){long z2 = 2*timezone;}
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8703 (eval $ac_compile) 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag"
8711 || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723
8724 cat >>confdefs.h <<\_ACEOF
8725 #define HAVE_TIMEZONE 1
8726 _ACEOF
8727
8728 echo "$as_me:$LINENO: result: yes" >&5
8729 echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 echo "$as_me:$LINENO: result: no" >&5
8735 echo "${ECHO_T}no" >&6
8736 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
8737 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 #include <time.h>
8745 int
8746 main ()
8747 {
8748 long z2 = _timezone;
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag"
8763 || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_UNDERSCORE_TIMEZONE 1
8778 _ACEOF
8779
8780 echo "$as_me:$LINENO: result: yes" >&5
8781 echo "${ECHO_T}yes" >&6
8782 else
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 echo "$as_me:$LINENO: result: no" >&5
8787 echo "${ECHO_T}no" >&6
8788 fi
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792 fi
8793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8794
8795 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8797 if test "${ac_cv_c_const+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806
8807 int
8808 main ()
8809 {
8810 /* FIXME: Include the comments suggested by Paul. */
8811 #ifndef __cplusplus
8812 /* Ultrix mips cc rejects this. */
8813 typedef int charset[2];
8814 const charset x;
8815 /* SunOS 4.1.1 cc rejects this. */
8816 char const *const *ccp;
8817 char **p;
8818 /* NEC SVR4.0.2 mips cc rejects this. */
8819 struct point {int x, y;};
8820 static struct point const zero = {0,0};
8821 /* AIX XL C 1.02.0.0 rejects this.
8822 It does not let you subtract one const X* pointer from another in
8823 an arm of an if-expression whose if-part is not a constant
8824 expression */
8825 const char *g = "string";
8826 ccp = &g + (g ? g-g : 0);
8827 /* HPUX 7.0 cc rejects these. */
8828 ++ccp;
8829 p = (char**) ccp;
8830 ccp = (char const *const *) p;
8831 { /* SCO 3.2v4 cc rejects this. */
8832 char *t;
8833 char const *s = 0 ? (char *) 0 : (char const *) 0;
8834
8835 *t++ = 0;
8836 }
8837 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8838 int x[] = {25, 17};
8839 const int *foo = &x[0];
8840 ++foo;
8841 }
8842 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8843 typedef const int *iptr;
8844 iptr p = 0;
8845 ++p;
8846 }
8847 { /* AIX XL C 1.02.0.0 rejects this saying
8848 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8849 struct s { int j; const int *ap[3]; };
8850 struct s *b; b->j = 5;
8851 }
8852 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8853 const int foo = 10;
8854 }
8855 #endif
8856
8857 ;
8858 return 0;
8859 }
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest.$ac_objext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_cv_c_const=yes
8884 else
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ac_cv_c_const=no
8889 fi
8890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8891 fi
8892 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8893 echo "${ECHO_T}$ac_cv_c_const" >&6
8894 if test $ac_cv_c_const = no; then
8895
8896 cat >>confdefs.h <<\_ACEOF
8897 #define const
8898 _ACEOF
8899
8900 fi
8901
8902 echo "$as_me:$LINENO: checking for __attribute__" >&5
8903 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
8904 if test "${ac_cv_c_attribute+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907
8908 cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h. */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 void foo(void) __attribute__ ((__noreturn__));
8915
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest.$ac_objext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
8939 ac_cv_c_attribute=yes
8940 else
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 ac_cv_c_attribute=no
8945
8946 fi
8947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8948
8949 fi
8950 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
8951 echo "${ECHO_T}$ac_cv_c_attribute" >&6
8952
8953
8954 case $ac_cv_c_attribute in
8955 yes) ;;
8956 no)
8957 cat >>confdefs.h <<_ACEOF
8958 #define __attribute__(x) /* nothing */
8959 _ACEOF
8960 ;;
8961 esac
8962
8963
8964
8965 if test "X$prefix" = "XNONE"; then
8966 acl_final_prefix="$ac_default_prefix"
8967 else
8968 acl_final_prefix="$prefix"
8969 fi
8970 if test "X$exec_prefix" = "XNONE"; then
8971 acl_final_exec_prefix='${prefix}'
8972 else
8973 acl_final_exec_prefix="$exec_prefix"
8974 fi
8975 acl_save_prefix="$prefix"
8976 prefix="$acl_final_prefix"
8977 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8978 prefix="$acl_save_prefix"
8979
8980
8981 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8982 if test "${with_gnu_ld+set}" = set; then
8983 withval="$with_gnu_ld"
8984 test "$withval" = no || with_gnu_ld=yes
8985 else
8986 with_gnu_ld=no
8987 fi;
8988 # Prepare PATH_SEPARATOR.
8989 # The user is always right.
8990 if test "${PATH_SEPARATOR+set}" != set; then
8991 echo "#! /bin/sh" >conf$$.sh
8992 echo "exit 0" >>conf$$.sh
8993 chmod +x conf$$.sh
8994 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8995 PATH_SEPARATOR=';'
8996 else
8997 PATH_SEPARATOR=:
8998 fi
8999 rm -f conf$$.sh
9000 fi
9001 ac_prog=ld
9002 if test "$GCC" = yes; then
9003 # Check if gcc -print-prog-name=ld gives a path.
9004 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9005 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9006 case $host in
9007 *-*-mingw*)
9008 # gcc leaves a trailing carriage return which upsets mingw
9009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9010 *)
9011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9012 esac
9013 case $ac_prog in
9014 # Accept absolute paths.
9015 [\\/]* | [A-Za-z]:[\\/]*)
9016 re_direlt='/[^/][^/]*/\.\./'
9017 # Canonicalize the path of ld
9018 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9019 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9020 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9021 done
9022 test -z "$LD" && LD="$ac_prog"
9023 ;;
9024 "")
9025 # If it fails, then pretend we aren't using GCC.
9026 ac_prog=ld
9027 ;;
9028 *)
9029 # If it is relative, then search for the first ld in PATH.
9030 with_gnu_ld=unknown
9031 ;;
9032 esac
9033 elif test "$with_gnu_ld" = yes; then
9034 echo "$as_me:$LINENO: checking for GNU ld" >&5
9035 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9036 else
9037 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9038 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9039 fi
9040 if test "${acl_cv_path_LD+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 if test -z "$LD"; then
9044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9045 for ac_dir in $PATH; do
9046 test -z "$ac_dir" && ac_dir=.
9047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9048 acl_cv_path_LD="$ac_dir/$ac_prog"
9049 # Check to see if the program is GNU ld. I'd rather use --version,
9050 # but apparently some GNU ld's only accept -v.
9051 # Break only if it was the GNU/non-GNU ld that we prefer.
9052 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9053 test "$with_gnu_ld" != no && break
9054 else
9055 test "$with_gnu_ld" != yes && break
9056 fi
9057 fi
9058 done
9059 IFS="$ac_save_ifs"
9060 else
9061 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9062 fi
9063 fi
9064
9065 LD="$acl_cv_path_LD"
9066 if test -n "$LD"; then
9067 echo "$as_me:$LINENO: result: $LD" >&5
9068 echo "${ECHO_T}$LD" >&6
9069 else
9070 echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9072 fi
9073 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9074 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9075 { (exit 1); exit 1; }; }
9076 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9077 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9078 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9082 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9083 acl_cv_prog_gnu_ld=yes
9084 else
9085 acl_cv_prog_gnu_ld=no
9086 fi
9087 fi
9088 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9089 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9090 with_gnu_ld=$acl_cv_prog_gnu_ld
9091
9092
9093
9094 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9095 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9096 if test "${acl_cv_rpath+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 else
9099
9100 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9101 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9102 . ./conftest.sh
9103 rm -f ./conftest.sh
9104 acl_cv_rpath=done
9105
9106 fi
9107 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9108 echo "${ECHO_T}$acl_cv_rpath" >&6
9109 wl="$acl_cv_wl"
9110 libext="$acl_cv_libext"
9111 shlibext="$acl_cv_shlibext"
9112 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9113 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9114 hardcode_direct="$acl_cv_hardcode_direct"
9115 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9116 # Check whether --enable-rpath or --disable-rpath was given.
9117 if test "${enable_rpath+set}" = set; then
9118 enableval="$enable_rpath"
9119 :
9120 else
9121 enable_rpath=yes
9122 fi;
9123
9124
9125
9126
9127
9128
9129
9130 use_additional=yes
9131
9132 acl_save_prefix="$prefix"
9133 prefix="$acl_final_prefix"
9134 acl_save_exec_prefix="$exec_prefix"
9135 exec_prefix="$acl_final_exec_prefix"
9136
9137 eval additional_includedir=\"$includedir\"
9138 eval additional_libdir=\"$libdir\"
9139
9140 exec_prefix="$acl_save_exec_prefix"
9141 prefix="$acl_save_prefix"
9142
9143
9144 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9145 if test "${with_libiconv_prefix+set}" = set; then
9146 withval="$with_libiconv_prefix"
9147
9148 if test "X$withval" = "Xno"; then
9149 use_additional=no
9150 else
9151 if test "X$withval" = "X"; then
9152
9153 acl_save_prefix="$prefix"
9154 prefix="$acl_final_prefix"
9155 acl_save_exec_prefix="$exec_prefix"
9156 exec_prefix="$acl_final_exec_prefix"
9157
9158 eval additional_includedir=\"$includedir\"
9159 eval additional_libdir=\"$libdir\"
9160
9161 exec_prefix="$acl_save_exec_prefix"
9162 prefix="$acl_save_prefix"
9163
9164 else
9165 additional_includedir="$withval/include"
9166 additional_libdir="$withval/lib"
9167 fi
9168 fi
9169
9170 fi;
9171 LIBICONV=
9172 LTLIBICONV=
9173 INCICONV=
9174 rpathdirs=
9175 ltrpathdirs=
9176 names_already_handled=
9177 names_next_round='iconv '
9178 while test -n "$names_next_round"; do
9179 names_this_round="$names_next_round"
9180 names_next_round=
9181 for name in $names_this_round; do
9182 already_handled=
9183 for n in $names_already_handled; do
9184 if test "$n" = "$name"; then
9185 already_handled=yes
9186 break
9187 fi
9188 done
9189 if test -z "$already_handled"; then
9190 names_already_handled="$names_already_handled $name"
9191 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9192 eval value=\"\$HAVE_LIB$uppername\"
9193 if test -n "$value"; then
9194 if test "$value" = yes; then
9195 eval value=\"\$LIB$uppername\"
9196 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9197 eval value=\"\$LTLIB$uppername\"
9198 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9199 else
9200 :
9201 fi
9202 else
9203 found_dir=
9204 found_la=
9205 found_so=
9206 found_a=
9207 if test $use_additional = yes; then
9208 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9209 found_dir="$additional_libdir"
9210 found_so="$additional_libdir/lib$name.$shlibext"
9211 if test -f "$additional_libdir/lib$name.la"; then
9212 found_la="$additional_libdir/lib$name.la"
9213 fi
9214 else
9215 if test -f "$additional_libdir/lib$name.$libext"; then
9216 found_dir="$additional_libdir"
9217 found_a="$additional_libdir/lib$name.$libext"
9218 if test -f "$additional_libdir/lib$name.la"; then
9219 found_la="$additional_libdir/lib$name.la"
9220 fi
9221 fi
9222 fi
9223 fi
9224 if test "X$found_dir" = "X"; then
9225 for x in $LDFLAGS $LTLIBICONV; do
9226
9227 acl_save_prefix="$prefix"
9228 prefix="$acl_final_prefix"
9229 acl_save_exec_prefix="$exec_prefix"
9230 exec_prefix="$acl_final_exec_prefix"
9231 eval x=\"$x\"
9232 exec_prefix="$acl_save_exec_prefix"
9233 prefix="$acl_save_prefix"
9234
9235 case "$x" in
9236 -L*)
9237 dir=`echo "X$x" | sed -e 's/^X-L//'`
9238 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9239 found_dir="$dir"
9240 found_so="$dir/lib$name.$shlibext"
9241 if test -f "$dir/lib$name.la"; then
9242 found_la="$dir/lib$name.la"
9243 fi
9244 else
9245 if test -f "$dir/lib$name.$libext"; then
9246 found_dir="$dir"
9247 found_a="$dir/lib$name.$libext"
9248 if test -f "$dir/lib$name.la"; then
9249 found_la="$dir/lib$name.la"
9250 fi
9251 fi
9252 fi
9253 ;;
9254 esac
9255 if test "X$found_dir" != "X"; then
9256 break
9257 fi
9258 done
9259 fi
9260 if test "X$found_dir" != "X"; then
9261 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9262 if test "X$found_so" != "X"; then
9263 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9264 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9265 else
9266 haveit=
9267 for x in $ltrpathdirs; do
9268 if test "X$x" = "X$found_dir"; then
9269 haveit=yes
9270 break
9271 fi
9272 done
9273 if test -z "$haveit"; then
9274 ltrpathdirs="$ltrpathdirs $found_dir"
9275 fi
9276 if test "$hardcode_direct" = yes; then
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9278 else
9279 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9280 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9281 haveit=
9282 for x in $rpathdirs; do
9283 if test "X$x" = "X$found_dir"; then
9284 haveit=yes
9285 break
9286 fi
9287 done
9288 if test -z "$haveit"; then
9289 rpathdirs="$rpathdirs $found_dir"
9290 fi
9291 else
9292 haveit=
9293 for x in $LDFLAGS $LIBICONV; do
9294
9295 acl_save_prefix="$prefix"
9296 prefix="$acl_final_prefix"
9297 acl_save_exec_prefix="$exec_prefix"
9298 exec_prefix="$acl_final_exec_prefix"
9299 eval x=\"$x\"
9300 exec_prefix="$acl_save_exec_prefix"
9301 prefix="$acl_save_prefix"
9302
9303 if test "X$x" = "X-L$found_dir"; then
9304 haveit=yes
9305 break
9306 fi
9307 done
9308 if test -z "$haveit"; then
9309 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9310 fi
9311 if test "$hardcode_minus_L" != no; then
9312 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9313 else
9314 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9315 fi
9316 fi
9317 fi
9318 fi
9319 else
9320 if test "X$found_a" != "X"; then
9321 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9322 else
9323 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9324 fi
9325 fi
9326 additional_includedir=
9327 case "$found_dir" in
9328 */lib | */lib/)
9329 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9330 additional_includedir="$basedir/include"
9331 ;;
9332 esac
9333 if test "X$additional_includedir" != "X"; then
9334 if test "X$additional_includedir" != "X/usr/include"; then
9335 haveit=
9336 if test "X$additional_includedir" = "X/usr/local/include"; then
9337 if test -n "$GCC"; then
9338 case $host_os in
9339 linux*) haveit=yes;;
9340 esac
9341 fi
9342 fi
9343 if test -z "$haveit"; then
9344 for x in $CPPFLAGS $INCICONV; do
9345
9346 acl_save_prefix="$prefix"
9347 prefix="$acl_final_prefix"
9348 acl_save_exec_prefix="$exec_prefix"
9349 exec_prefix="$acl_final_exec_prefix"
9350 eval x=\"$x\"
9351 exec_prefix="$acl_save_exec_prefix"
9352 prefix="$acl_save_prefix"
9353
9354 if test "X$x" = "X-I$additional_includedir"; then
9355 haveit=yes
9356 break
9357 fi
9358 done
9359 if test -z "$haveit"; then
9360 if test -d "$additional_includedir"; then
9361 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9362 fi
9363 fi
9364 fi
9365 fi
9366 fi
9367 if test -n "$found_la"; then
9368 save_libdir="$libdir"
9369 case "$found_la" in
9370 */* | *\\*) . "$found_la" ;;
9371 *) . "./$found_la" ;;
9372 esac
9373 libdir="$save_libdir"
9374 for dep in $dependency_libs; do
9375 case "$dep" in
9376 -L*)
9377 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9378 if test "X$additional_libdir" != "X/usr/lib"; then
9379 haveit=
9380 if test "X$additional_libdir" = "X/usr/local/lib"; then
9381 if test -n "$GCC"; then
9382 case $host_os in
9383 linux*) haveit=yes;;
9384 esac
9385 fi
9386 fi
9387 if test -z "$haveit"; then
9388 haveit=
9389 for x in $LDFLAGS $LIBICONV; do
9390
9391 acl_save_prefix="$prefix"
9392 prefix="$acl_final_prefix"
9393 acl_save_exec_prefix="$exec_prefix"
9394 exec_prefix="$acl_final_exec_prefix"
9395 eval x=\"$x\"
9396 exec_prefix="$acl_save_exec_prefix"
9397 prefix="$acl_save_prefix"
9398
9399 if test "X$x" = "X-L$additional_libdir"; then
9400 haveit=yes
9401 break
9402 fi
9403 done
9404 if test -z "$haveit"; then
9405 if test -d "$additional_libdir"; then
9406 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9407 fi
9408 fi
9409 haveit=
9410 for x in $LDFLAGS $LTLIBICONV; do
9411
9412 acl_save_prefix="$prefix"
9413 prefix="$acl_final_prefix"
9414 acl_save_exec_prefix="$exec_prefix"
9415 exec_prefix="$acl_final_exec_prefix"
9416 eval x=\"$x\"
9417 exec_prefix="$acl_save_exec_prefix"
9418 prefix="$acl_save_prefix"
9419
9420 if test "X$x" = "X-L$additional_libdir"; then
9421 haveit=yes
9422 break
9423 fi
9424 done
9425 if test -z "$haveit"; then
9426 if test -d "$additional_libdir"; then
9427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9428 fi
9429 fi
9430 fi
9431 fi
9432 ;;
9433 -R*)
9434 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9435 if test "$enable_rpath" != no; then
9436 haveit=
9437 for x in $rpathdirs; do
9438 if test "X$x" = "X$dir"; then
9439 haveit=yes
9440 break
9441 fi
9442 done
9443 if test -z "$haveit"; then
9444 rpathdirs="$rpathdirs $dir"
9445 fi
9446 haveit=
9447 for x in $ltrpathdirs; do
9448 if test "X$x" = "X$dir"; then
9449 haveit=yes
9450 break
9451 fi
9452 done
9453 if test -z "$haveit"; then
9454 ltrpathdirs="$ltrpathdirs $dir"
9455 fi
9456 fi
9457 ;;
9458 -l*)
9459 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9460 ;;
9461 *.la)
9462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9463 ;;
9464 *)
9465 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9466 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9467 ;;
9468 esac
9469 done
9470 fi
9471 else
9472 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9473 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9474 fi
9475 fi
9476 fi
9477 done
9478 done
9479 if test "X$rpathdirs" != "X"; then
9480 if test -n "$hardcode_libdir_separator"; then
9481 alldirs=
9482 for found_dir in $rpathdirs; do
9483 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9484 done
9485 acl_save_libdir="$libdir"
9486 libdir="$alldirs"
9487 eval flag=\"$hardcode_libdir_flag_spec\"
9488 libdir="$acl_save_libdir"
9489 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9490 else
9491 for found_dir in $rpathdirs; do
9492 acl_save_libdir="$libdir"
9493 libdir="$found_dir"
9494 eval flag=\"$hardcode_libdir_flag_spec\"
9495 libdir="$acl_save_libdir"
9496 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9497 done
9498 fi
9499 fi
9500 if test "X$ltrpathdirs" != "X"; then
9501 for found_dir in $ltrpathdirs; do
9502 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9503 done
9504 fi
9505
9506
9507
9508
9509
9510
9511
9512 am_save_CPPFLAGS="$CPPFLAGS"
9513
9514 for element in $INCICONV; do
9515 haveit=
9516 for x in $CPPFLAGS; do
9517
9518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 acl_save_exec_prefix="$exec_prefix"
9521 exec_prefix="$acl_final_exec_prefix"
9522 eval x=\"$x\"
9523 exec_prefix="$acl_save_exec_prefix"
9524 prefix="$acl_save_prefix"
9525
9526 if test "X$x" = "X$element"; then
9527 haveit=yes
9528 break
9529 fi
9530 done
9531 if test -z "$haveit"; then
9532 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9533 fi
9534 done
9535
9536
9537 echo "$as_me:$LINENO: checking for iconv" >&5
9538 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9539 if test "${am_cv_func_iconv+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542
9543 am_cv_func_iconv="no, consider installing GNU libiconv"
9544 am_cv_lib_iconv=no
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 #include <stdlib.h>
9552 #include <iconv.h>
9553 int
9554 main ()
9555 {
9556 iconv_t cd = iconv_open("","");
9557 iconv(cd,NULL,NULL,NULL,NULL);
9558 iconv_close(cd);
9559 ;
9560 return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag"
9573 || test ! -s conftest.err'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest$ac_exeext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 am_cv_func_iconv=yes
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 fi
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 if test "$am_cv_func_iconv" != yes; then
9594 am_save_LIBS="$LIBS"
9595 LIBS="$LIBS $LIBICONV"
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 #include <stdlib.h>
9603 #include <iconv.h>
9604 int
9605 main ()
9606 {
9607 iconv_t cd = iconv_open("","");
9608 iconv(cd,NULL,NULL,NULL,NULL);
9609 iconv_close(cd);
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616 (eval $ac_link) 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } &&
9623 { ac_try='test -z "$ac_c_werror_flag"
9624 || test ! -s conftest.err'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; } &&
9630 { ac_try='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 (eval $ac_try) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 am_cv_lib_iconv=yes
9637 am_cv_func_iconv=yes
9638 else
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 fi
9643 rm -f conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9645 LIBS="$am_save_LIBS"
9646 fi
9647
9648 fi
9649 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9650 echo "${ECHO_T}$am_cv_func_iconv" >&6
9651 if test "$am_cv_func_iconv" = yes; then
9652
9653 cat >>confdefs.h <<\_ACEOF
9654 #define HAVE_ICONV 1
9655 _ACEOF
9656
9657 fi
9658 if test "$am_cv_lib_iconv" = yes; then
9659 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9660 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9661 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9662 echo "${ECHO_T}$LIBICONV" >&6
9663 else
9664 CPPFLAGS="$am_save_CPPFLAGS"
9665 LIBICONV=
9666 LTLIBICONV=
9667 fi
9668
9669
9670
9671 if test "$am_cv_func_iconv" = yes; then
9672 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9673 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9674 if test "${am_cv_proto_iconv+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684
9685 #include <stdlib.h>
9686 #include <iconv.h>
9687 extern
9688 #ifdef __cplusplus
9689 "C"
9690 #endif
9691 #if defined(__STDC__) || defined(__cplusplus)
9692 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9693 #else
9694 size_t iconv();
9695 #endif
9696
9697 int
9698 main ()
9699 {
9700
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707 (eval $ac_compile) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 am_cv_proto_iconv_arg1=""
9728 else
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 am_cv_proto_iconv_arg1="const"
9733 fi
9734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9735 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);"
9736 fi
9737
9738 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9739 echo "$as_me:$LINENO: result: ${ac_t:-
9740 }$am_cv_proto_iconv" >&5
9741 echo "${ECHO_T}${ac_t:-
9742 }$am_cv_proto_iconv" >&6
9743
9744 cat >>confdefs.h <<_ACEOF
9745 #define ICONV_CONST $am_cv_proto_iconv_arg1
9746 _ACEOF
9747
9748 fi
9749
9750
9751 if test "x${GCC}" = xyes; then
9752
9753 WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
9754
9755
9756 STRICT_WARNING_CFLAGS=-Wstrict-prototypes
9757
9758
9759 ERROR_CFLAGS=
9760 if test "x${ENABLE_WERROR}" = xyes; then
9761 ERROR_CFLAGS='-Werror'
9762 fi
9763
9764 fi
9765
9766 if test "x${COMPILE_XMLJ}" = xyes; then
9767
9768 succeeded=no
9769
9770 if test -z "$PKG_CONFIG"; then
9771 # Extract the first word of "pkg-config", so it can be a program name with args.
9772 set dummy pkg-config; ac_word=$2
9773 echo "$as_me:$LINENO: checking for $ac_word" >&5
9774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 case $PKG_CONFIG in
9779 [\\/]* | ?:[\\/]*)
9780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9781 ;;
9782 *)
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9785 do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794 done
9795 done
9796
9797 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9798 ;;
9799 esac
9800 fi
9801 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9802
9803 if test -n "$PKG_CONFIG"; then
9804 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9805 echo "${ECHO_T}$PKG_CONFIG" >&6
9806 else
9807 echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6
9809 fi
9810
9811 fi
9812
9813 if test "$PKG_CONFIG" = "no" ; then
9814 echo "*** The pkg-config script could not be found. Make sure it is"
9815 echo "*** in your path, or set the PKG_CONFIG environment variable"
9816 echo "*** to the full path to pkg-config."
9817 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9818 else
9819 PKG_CONFIG_MIN_VERSION=0.9.0
9820 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9821 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
9822 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
9823
9824 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
9825 echo "$as_me:$LINENO: result: yes" >&5
9826 echo "${ECHO_T}yes" >&6
9827 succeeded=yes
9828
9829 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
9830 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
9831 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
9832 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
9833 echo "${ECHO_T}$XML_CFLAGS" >&6
9834
9835 echo "$as_me:$LINENO: checking XML_LIBS" >&5
9836 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
9837 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
9838 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
9839 echo "${ECHO_T}$XML_LIBS" >&6
9840 else
9841 XML_CFLAGS=""
9842 XML_LIBS=""
9843 ## If we have a custom action on failure, don't print errors, but
9844 ## do set a variable so people can do so.
9845 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
9846 echo $XML_PKG_ERRORS
9847 fi
9848
9849
9850
9851 else
9852 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9853 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9854 fi
9855 fi
9856
9857 if test $succeeded = yes; then
9858 :
9859 else
9860 { { 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
9861 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;}
9862 { (exit 1); exit 1; }; }
9863 fi
9864
9865
9866 succeeded=no
9867
9868 if test -z "$PKG_CONFIG"; then
9869 # Extract the first word of "pkg-config", so it can be a program name with args.
9870 set dummy pkg-config; ac_word=$2
9871 echo "$as_me:$LINENO: checking for $ac_word" >&5
9872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 case $PKG_CONFIG in
9877 [\\/]* | ?:[\\/]*)
9878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9879 ;;
9880 *)
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9883 do
9884 IFS=$as_save_IFS
9885 test -z "$as_dir" && as_dir=.
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 break 2
9891 fi
9892 done
9893 done
9894
9895 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9896 ;;
9897 esac
9898 fi
9899 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9900
9901 if test -n "$PKG_CONFIG"; then
9902 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9903 echo "${ECHO_T}$PKG_CONFIG" >&6
9904 else
9905 echo "$as_me:$LINENO: result: no" >&5
9906 echo "${ECHO_T}no" >&6
9907 fi
9908
9909 fi
9910
9911 if test "$PKG_CONFIG" = "no" ; then
9912 echo "*** The pkg-config script could not be found. Make sure it is"
9913 echo "*** in your path, or set the PKG_CONFIG environment variable"
9914 echo "*** to the full path to pkg-config."
9915 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9916 else
9917 PKG_CONFIG_MIN_VERSION=0.9.0
9918 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9919 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
9920 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
9921
9922 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
9923 echo "$as_me:$LINENO: result: yes" >&5
9924 echo "${ECHO_T}yes" >&6
9925 succeeded=yes
9926
9927 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
9928 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
9929 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
9930 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
9931 echo "${ECHO_T}$XSLT_CFLAGS" >&6
9932
9933 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
9934 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
9935 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
9936 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
9937 echo "${ECHO_T}$XSLT_LIBS" >&6
9938 else
9939 XSLT_CFLAGS=""
9940 XSLT_LIBS=""
9941 ## If we have a custom action on failure, don't print errors, but
9942 ## do set a variable so people can do so.
9943 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
9944 echo $XSLT_PKG_ERRORS
9945 fi
9946
9947
9948
9949 else
9950 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9951 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9952 fi
9953 fi
9954
9955 if test $succeeded = yes; then
9956 :
9957 else
9958 { { 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
9959 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;}
9960 { (exit 1); exit 1; }; }
9961 fi
9962
9963
9964
9965
9966
9967 fi
9968
9969 if test "x${COMPILE_GTK_PEER}" = xyes; then
9970 echo "$as_me:$LINENO: checking for X" >&5
9971 echo $ECHO_N "checking for X... $ECHO_C" >&6
9972
9973
9974 # Check whether --with-x or --without-x was given.
9975 if test "${with_x+set}" = set; then
9976 withval="$with_x"
9977
9978 fi;
9979 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9980 if test "x$with_x" = xno; then
9981 # The user explicitly disabled X.
9982 have_x=disabled
9983 else
9984 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9985 # Both variables are already set.
9986 have_x=yes
9987 else
9988 if test "${ac_cv_have_x+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 # One or both of the vars are not set, and there is no cached value.
9992 ac_x_includes=no ac_x_libraries=no
9993 rm -fr conftest.dir
9994 if mkdir conftest.dir; then
9995 cd conftest.dir
9996 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9997 cat >Imakefile <<'_ACEOF'
9998 acfindx:
9999 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10000 _ACEOF
10001 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10003 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10004 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10005 for ac_extension in a so sl; do
10006 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10007 test -f $ac_im_libdir/libX11.$ac_extension; then
10008 ac_im_usrlibdir=$ac_im_libdir; break
10009 fi
10010 done
10011 # Screen out bogus values from the imake configuration. They are
10012 # bogus both because they are the default anyway, and because
10013 # using them would break gcc on systems where it needs fixed includes.
10014 case $ac_im_incroot in
10015 /usr/include) ;;
10016 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10017 esac
10018 case $ac_im_usrlibdir in
10019 /usr/lib | /lib) ;;
10020 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10021 esac
10022 fi
10023 cd ..
10024 rm -fr conftest.dir
10025 fi
10026
10027 # Standard set of common directories for X headers.
10028 # Check X11 before X11Rn because it is often a symlink to the current release.
10029 ac_x_header_dirs='
10030 /usr/X11/include
10031 /usr/X11R6/include
10032 /usr/X11R5/include
10033 /usr/X11R4/include
10034
10035 /usr/include/X11
10036 /usr/include/X11R6
10037 /usr/include/X11R5
10038 /usr/include/X11R4
10039
10040 /usr/local/X11/include
10041 /usr/local/X11R6/include
10042 /usr/local/X11R5/include
10043 /usr/local/X11R4/include
10044
10045 /usr/local/include/X11
10046 /usr/local/include/X11R6
10047 /usr/local/include/X11R5
10048 /usr/local/include/X11R4
10049
10050 /usr/X386/include
10051 /usr/x386/include
10052 /usr/XFree86/include/X11
10053
10054 /usr/include
10055 /usr/local/include
10056 /usr/unsupported/include
10057 /usr/athena/include
10058 /usr/local/x11r5/include
10059 /usr/lpp/Xamples/include
10060
10061 /usr/openwin/include
10062 /usr/openwin/share/include'
10063
10064 if test "$ac_x_includes" = no; then
10065 # Guess where to find include files, by looking for Xlib.h.
10066 # First, try using that file with no special directory specified.
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h. */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 #include <X11/Xlib.h>
10074 _ACEOF
10075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } >/dev/null; then
10083 if test -s conftest.err; then
10084 ac_cpp_err=$ac_c_preproc_warn_flag
10085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10086 else
10087 ac_cpp_err=
10088 fi
10089 else
10090 ac_cpp_err=yes
10091 fi
10092 if test -z "$ac_cpp_err"; then
10093 # We can compile using X headers with no special include directory.
10094 ac_x_includes=
10095 else
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 for ac_dir in $ac_x_header_dirs; do
10100 if test -r "$ac_dir/X11/Xlib.h"; then
10101 ac_x_includes=$ac_dir
10102 break
10103 fi
10104 done
10105 fi
10106 rm -f conftest.err conftest.$ac_ext
10107 fi # $ac_x_includes = no
10108
10109 if test "$ac_x_libraries" = no; then
10110 # Check for the libraries.
10111 # See if we find them without any special options.
10112 # Don't add to $LIBS permanently.
10113 ac_save_LIBS=$LIBS
10114 LIBS="-lXt $LIBS"
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <X11/Xlib.h>
10122 int
10123 main ()
10124 {
10125 XrmInitialize ()
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 LIBS=$ac_save_LIBS
10153 # We can link X programs with no special library path.
10154 ac_x_libraries=
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 LIBS=$ac_save_LIBS
10160 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10161 do
10162 # Don't even attempt the hair of trying to link an X program!
10163 for ac_extension in a so sl; do
10164 if test -r $ac_dir/libXt.$ac_extension; then
10165 ac_x_libraries=$ac_dir
10166 break 2
10167 fi
10168 done
10169 done
10170 fi
10171 rm -f conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 fi # $ac_x_libraries = no
10174
10175 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10176 # Didn't find X anywhere. Cache the known absence of X.
10177 ac_cv_have_x="have_x=no"
10178 else
10179 # Record where we found X for the cache.
10180 ac_cv_have_x="have_x=yes \
10181 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10182 fi
10183 fi
10184
10185 fi
10186 eval "$ac_cv_have_x"
10187 fi # $with_x != no
10188
10189 if test "$have_x" != yes; then
10190 echo "$as_me:$LINENO: result: $have_x" >&5
10191 echo "${ECHO_T}$have_x" >&6
10192 no_x=yes
10193 else
10194 # If each of the values was on the command line, it overrides each guess.
10195 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10196 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10197 # Update the cache value to reflect the command line values.
10198 ac_cv_have_x="have_x=yes \
10199 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10200 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10201 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10202 fi
10203
10204 if test "$no_x" = yes; then
10205 # Not all programs may use this symbol, but it does not hurt to define it.
10206
10207 cat >>confdefs.h <<\_ACEOF
10208 #define X_DISPLAY_MISSING 1
10209 _ACEOF
10210
10211 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10212 else
10213 if test -n "$x_includes"; then
10214 X_CFLAGS="$X_CFLAGS -I$x_includes"
10215 fi
10216
10217 # It would also be nice to do this for all -L options, not just this one.
10218 if test -n "$x_libraries"; then
10219 X_LIBS="$X_LIBS -L$x_libraries"
10220 # For Solaris; some versions of Sun CC require a space after -R and
10221 # others require no space. Words are not sufficient . . . .
10222 case `(uname -sr) 2>/dev/null` in
10223 "SunOS 5"*)
10224 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
10225 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10226 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10227 cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h. */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233
10234 int
10235 main ()
10236 {
10237
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>conftest.er1
10245 ac_status=$?
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag"
10252 || test ! -s conftest.err'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10255 ac_status=$?
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s conftest$ac_exeext'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_R_nospace=yes
10265 else
10266 echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 ac_R_nospace=no
10270 fi
10271 rm -f conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 if test $ac_R_nospace = yes; then
10274 echo "$as_me:$LINENO: result: no" >&5
10275 echo "${ECHO_T}no" >&6
10276 X_LIBS="$X_LIBS -R$x_libraries"
10277 else
10278 LIBS="$ac_xsave_LIBS -R $x_libraries"
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h. */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285
10286 int
10287 main ()
10288 {
10289
10290 ;
10291 return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296 (eval $ac_link) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag"
10304 || test ! -s conftest.err'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; } &&
10310 { ac_try='test -s conftest$ac_exeext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_R_space=yes
10317 else
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 ac_R_space=no
10322 fi
10323 rm -f conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 if test $ac_R_space = yes; then
10326 echo "$as_me:$LINENO: result: yes" >&5
10327 echo "${ECHO_T}yes" >&6
10328 X_LIBS="$X_LIBS -R $x_libraries"
10329 else
10330 echo "$as_me:$LINENO: result: neither works" >&5
10331 echo "${ECHO_T}neither works" >&6
10332 fi
10333 fi
10334 LIBS=$ac_xsave_LIBS
10335 esac
10336 fi
10337
10338 # Check for system-dependent libraries X programs must link with.
10339 # Do this before checking for the system-independent R6 libraries
10340 # (-lICE), since we may need -lsocket or whatever for X linking.
10341
10342 if test "$ISC" = yes; then
10343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10344 else
10345 # Martyn Johnson says this is needed for Ultrix, if the X
10346 # libraries were built with DECnet support. And Karl Berry says
10347 # the Alpha needs dnet_stub (dnet does not exist).
10348 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char XOpenDisplay ();
10363 int
10364 main ()
10365 {
10366 XOpenDisplay ();
10367 ;
10368 return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -z "$ac_c_werror_flag"
10381 || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 :
10394 else
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10399 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10400 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403 ac_check_lib_save_LIBS=$LIBS
10404 LIBS="-ldnet $LIBS"
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411
10412 /* Override any gcc2 internal prototype to avoid an error. */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */
10418 char dnet_ntoa ();
10419 int
10420 main ()
10421 {
10422 dnet_ntoa ();
10423 ;
10424 return 0;
10425 }
10426 _ACEOF
10427 rm -f conftest.$ac_objext conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag"
10437 || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_lib_dnet_dnet_ntoa=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_lib_dnet_dnet_ntoa=no
10455 fi
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS=$ac_check_lib_save_LIBS
10459 fi
10460 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10461 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10462 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10464 fi
10465
10466 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10467 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10468 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10469 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 else
10472 ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-ldnet_stub $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480
10481 /* Override any gcc2 internal prototype to avoid an error. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char dnet_ntoa ();
10488 int
10489 main ()
10490 {
10491 dnet_ntoa ();
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10499 ac_status=$?
10500 grep -v '^ *+' conftest.er1 >conftest.err
10501 rm -f conftest.er1
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_cv_lib_dnet_stub_dnet_ntoa=no
10524 fi
10525 rm -f conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10528 fi
10529 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10530 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10531 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10532 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10533 fi
10534
10535 fi
10536 fi
10537 rm -f conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS="$ac_xsave_LIBS"
10540
10541 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10542 # to get the SysV transport functions.
10543 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10544 # needs -lnsl.
10545 # The nsl library prevents programs from opening the X display
10546 # on Irix 5.2, according to T.E. Dickey.
10547 # The functions gethostbyname, getservbyname, and inet_addr are
10548 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10549 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10550 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10551 if test "${ac_cv_func_gethostbyname+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10562 #define gethostbyname innocuous_gethostbyname
10563
10564 /* System header to define __stub macros and hopefully few prototypes,
10565 which can conflict with char gethostbyname (); below.
10566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10567 <limits.h> exists even on freestanding compilers. */
10568
10569 #ifdef __STDC__
10570 # include <limits.h>
10571 #else
10572 # include <assert.h>
10573 #endif
10574
10575 #undef gethostbyname
10576
10577 /* Override any gcc2 internal prototype to avoid an error. */
10578 #ifdef __cplusplus
10579 extern "C"
10580 {
10581 #endif
10582 /* We use char because int might match the return type of a gcc2
10583 builtin and then its argument prototype would still apply. */
10584 char gethostbyname ();
10585 /* The GNU C library defines this for functions which it implements
10586 to always fail with ENOSYS. Some functions are actually named
10587 something starting with __ and the normal name is an alias. */
10588 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10589 choke me
10590 #else
10591 char (*f) () = gethostbyname;
10592 #endif
10593 #ifdef __cplusplus
10594 }
10595 #endif
10596
10597 int
10598 main ()
10599 {
10600 return f != gethostbyname;
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_c_werror_flag"
10615 || test ! -s conftest.err'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_func_gethostbyname=yes
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 ac_cv_func_gethostbyname=no
10633 fi
10634 rm -f conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636 fi
10637 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10638 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10639
10640 if test $ac_cv_func_gethostbyname = no; then
10641 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10642 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10643 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lnsl $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654
10655 /* Override any gcc2 internal prototype to avoid an error. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10661 char gethostbyname ();
10662 int
10663 main ()
10664 {
10665 gethostbyname ();
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest$ac_exeext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_lib_nsl_gethostbyname=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_lib_nsl_gethostbyname=no
10698 fi
10699 rm -f conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10704 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10705 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10707 fi
10708
10709 if test $ac_cv_lib_nsl_gethostbyname = no; then
10710 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10711 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10712 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-lbsd $LIBS"
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723
10724 /* Override any gcc2 internal prototype to avoid an error. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char gethostbyname ();
10731 int
10732 main ()
10733 {
10734 gethostbyname ();
10735 ;
10736 return 0;
10737 }
10738 _ACEOF
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag"
10749 || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try='test -s conftest$ac_exeext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 ac_cv_lib_bsd_gethostbyname=yes
10762 else
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 ac_cv_lib_bsd_gethostbyname=no
10767 fi
10768 rm -f conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_lib_save_LIBS
10771 fi
10772 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10773 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10774 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10776 fi
10777
10778 fi
10779 fi
10780
10781 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10782 # socket/setsockopt and other routines are undefined under SCO ODT
10783 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10784 # on later versions), says Simon Leinen: it contains gethostby*
10785 # variants that don't use the name server (or something). -lsocket
10786 # must be given before -lnsl if both are needed. We assume that
10787 # if connect needs -lnsl, so does gethostbyname.
10788 echo "$as_me:$LINENO: checking for connect" >&5
10789 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10790 if test "${ac_cv_func_connect+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10799 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10801 #define connect innocuous_connect
10802
10803 /* System header to define __stub macros and hopefully few prototypes,
10804 which can conflict with char connect (); below.
10805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10806 <limits.h> exists even on freestanding compilers. */
10807
10808 #ifdef __STDC__
10809 # include <limits.h>
10810 #else
10811 # include <assert.h>
10812 #endif
10813
10814 #undef connect
10815
10816 /* Override any gcc2 internal prototype to avoid an error. */
10817 #ifdef __cplusplus
10818 extern "C"
10819 {
10820 #endif
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char connect ();
10824 /* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
10827 #if defined (__stub_connect) || defined (__stub___connect)
10828 choke me
10829 #else
10830 char (*f) () = connect;
10831 #endif
10832 #ifdef __cplusplus
10833 }
10834 #endif
10835
10836 int
10837 main ()
10838 {
10839 return f != connect;
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_func_connect=yes
10867 else
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871 ac_cv_func_connect=no
10872 fi
10873 rm -f conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 fi
10876 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10877 echo "${ECHO_T}$ac_cv_func_connect" >&6
10878
10879 if test $ac_cv_func_connect = no; then
10880 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10881 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10882 if test "${ac_cv_lib_socket_connect+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893
10894 /* Override any gcc2 internal prototype to avoid an error. */
10895 #ifdef __cplusplus
10896 extern "C"
10897 #endif
10898 /* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10900 char connect ();
10901 int
10902 main ()
10903 {
10904 connect ();
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_cv_lib_socket_connect=yes
10932 else
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ac_cv_lib_socket_connect=no
10937 fi
10938 rm -f conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LIBS=$ac_check_lib_save_LIBS
10941 fi
10942 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10943 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10944 if test $ac_cv_lib_socket_connect = yes; then
10945 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10946 fi
10947
10948 fi
10949
10950 # Guillermo Gomez says -lposix is necessary on A/UX.
10951 echo "$as_me:$LINENO: checking for remove" >&5
10952 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10953 if test "${ac_cv_func_remove+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10964 #define remove innocuous_remove
10965
10966 /* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char remove (); below.
10968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10969 <limits.h> exists even on freestanding compilers. */
10970
10971 #ifdef __STDC__
10972 # include <limits.h>
10973 #else
10974 # include <assert.h>
10975 #endif
10976
10977 #undef remove
10978
10979 /* Override any gcc2 internal prototype to avoid an error. */
10980 #ifdef __cplusplus
10981 extern "C"
10982 {
10983 #endif
10984 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */
10986 char remove ();
10987 /* The GNU C library defines this for functions which it implements
10988 to always fail with ENOSYS. Some functions are actually named
10989 something starting with __ and the normal name is an alias. */
10990 #if defined (__stub_remove) || defined (__stub___remove)
10991 choke me
10992 #else
10993 char (*f) () = remove;
10994 #endif
10995 #ifdef __cplusplus
10996 }
10997 #endif
10998
10999 int
11000 main ()
11001 {
11002 return f != remove;
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_func_remove=yes
11030 else
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_func_remove=no
11035 fi
11036 rm -f conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 fi
11039 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
11040 echo "${ECHO_T}$ac_cv_func_remove" >&6
11041
11042 if test $ac_cv_func_remove = no; then
11043 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
11044 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
11045 if test "${ac_cv_lib_posix_remove+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 ac_check_lib_save_LIBS=$LIBS
11049 LIBS="-lposix $LIBS"
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h. */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056
11057 /* Override any gcc2 internal prototype to avoid an error. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 /* We use char because int might match the return type of a gcc2
11062 builtin and then its argument prototype would still apply. */
11063 char remove ();
11064 int
11065 main ()
11066 {
11067 remove ();
11068 ;
11069 return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext conftest$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -z "$ac_c_werror_flag"
11082 || test ! -s conftest.err'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest$ac_exeext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_cv_lib_posix_remove=yes
11095 else
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_lib_posix_remove=no
11100 fi
11101 rm -f conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_lib_save_LIBS
11104 fi
11105 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
11106 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
11107 if test $ac_cv_lib_posix_remove = yes; then
11108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11109 fi
11110
11111 fi
11112
11113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11114 echo "$as_me:$LINENO: checking for shmat" >&5
11115 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
11116 if test "${ac_cv_func_shmat+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h. */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
11126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11127 #define shmat innocuous_shmat
11128
11129 /* System header to define __stub macros and hopefully few prototypes,
11130 which can conflict with char shmat (); below.
11131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132 <limits.h> exists even on freestanding compilers. */
11133
11134 #ifdef __STDC__
11135 # include <limits.h>
11136 #else
11137 # include <assert.h>
11138 #endif
11139
11140 #undef shmat
11141
11142 /* Override any gcc2 internal prototype to avoid an error. */
11143 #ifdef __cplusplus
11144 extern "C"
11145 {
11146 #endif
11147 /* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11149 char shmat ();
11150 /* The GNU C library defines this for functions which it implements
11151 to always fail with ENOSYS. Some functions are actually named
11152 something starting with __ and the normal name is an alias. */
11153 #if defined (__stub_shmat) || defined (__stub___shmat)
11154 choke me
11155 #else
11156 char (*f) () = shmat;
11157 #endif
11158 #ifdef __cplusplus
11159 }
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165 return f != shmat;
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_func_shmat=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ac_cv_func_shmat=no
11198 fi
11199 rm -f conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 fi
11202 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
11203 echo "${ECHO_T}$ac_cv_func_shmat" >&6
11204
11205 if test $ac_cv_func_shmat = no; then
11206 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
11207 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
11208 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211 ac_check_lib_save_LIBS=$LIBS
11212 LIBS="-lipc $LIBS"
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219
11220 /* Override any gcc2 internal prototype to avoid an error. */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 /* We use char because int might match the return type of a gcc2
11225 builtin and then its argument prototype would still apply. */
11226 char shmat ();
11227 int
11228 main ()
11229 {
11230 shmat ();
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 rm -f conftest.$ac_objext conftest$ac_exeext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237 (eval $ac_link) 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag"
11245 || test ! -s conftest.err'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; } &&
11251 { ac_try='test -s conftest$ac_exeext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 ac_cv_lib_ipc_shmat=yes
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 ac_cv_lib_ipc_shmat=no
11263 fi
11264 rm -f conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LIBS=$ac_check_lib_save_LIBS
11267 fi
11268 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
11269 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11270 if test $ac_cv_lib_ipc_shmat = yes; then
11271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11272 fi
11273
11274 fi
11275 fi
11276
11277 # Check for libraries that X11R6 Xt/Xaw programs need.
11278 ac_save_LDFLAGS=$LDFLAGS
11279 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11280 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11281 # check for ICE first), but we must link in the order -lSM -lICE or
11282 # we get undefined symbols. So assume we have SM if we have ICE.
11283 # These have to be linked with before -lX11, unlike the other
11284 # libraries we check for below, so use a different variable.
11285 # John Interrante, Karl Berry
11286 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
11287 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11288 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291 ac_check_lib_save_LIBS=$LIBS
11292 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299
11300 /* Override any gcc2 internal prototype to avoid an error. */
11301 #ifdef __cplusplus
11302 extern "C"
11303 #endif
11304 /* We use char because int might match the return type of a gcc2
11305 builtin and then its argument prototype would still apply. */
11306 char IceConnectionNumber ();
11307 int
11308 main ()
11309 {
11310 IceConnectionNumber ();
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag"
11325 || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest$ac_exeext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 ac_cv_lib_ICE_IceConnectionNumber=yes
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_cv_lib_ICE_IceConnectionNumber=no
11343 fi
11344 rm -f conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11347 fi
11348 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11349 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11350 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11351 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11352 fi
11353
11354 LDFLAGS=$ac_save_LDFLAGS
11355
11356 fi
11357
11358 if test "$no_x" = yes; then
11359 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
11360 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
11361 { (exit 1); exit 1; }; }
11362 fi
11363 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
11364 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
11365 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368 ac_check_lib_save_LIBS=$LIBS
11369 LIBS="-lXtst ${X_LIBS} $LIBS"
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376
11377 /* Override any gcc2 internal prototype to avoid an error. */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 /* We use char because int might match the return type of a gcc2
11382 builtin and then its argument prototype would still apply. */
11383 char XTestQueryExtension ();
11384 int
11385 main ()
11386 {
11387 XTestQueryExtension ();
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11394 (eval $ac_link) 2>conftest.er1
11395 ac_status=$?
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
11401 { ac_try='test -z "$ac_c_werror_flag"
11402 || test ! -s conftest.err'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest$ac_exeext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_lib_Xtst_XTestQueryExtension=yes
11415 else
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419 ac_cv_lib_Xtst_XTestQueryExtension=no
11420 fi
11421 rm -f conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11424 fi
11425 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
11426 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
11427 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
11428 XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
11429 else
11430 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
11431 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
11432 { (exit 1); exit 1; }; }
11433 fi
11434
11435
11436
11437 succeeded=no
11438
11439 if test -z "$PKG_CONFIG"; then
11440 # Extract the first word of "pkg-config", so it can be a program name with args.
11441 set dummy pkg-config; ac_word=$2
11442 echo "$as_me:$LINENO: checking for $ac_word" >&5
11443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 case $PKG_CONFIG in
11448 [\\/]* | ?:[\\/]*)
11449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11450 ;;
11451 *)
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465
11466 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11467 ;;
11468 esac
11469 fi
11470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11471
11472 if test -n "$PKG_CONFIG"; then
11473 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11474 echo "${ECHO_T}$PKG_CONFIG" >&6
11475 else
11476 echo "$as_me:$LINENO: result: no" >&5
11477 echo "${ECHO_T}no" >&6
11478 fi
11479
11480 fi
11481
11482 if test "$PKG_CONFIG" = "no" ; then
11483 echo "*** The pkg-config script could not be found. Make sure it is"
11484 echo "*** in your path, or set the PKG_CONFIG environment variable"
11485 echo "*** to the full path to pkg-config."
11486 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11487 else
11488 PKG_CONFIG_MIN_VERSION=0.9.0
11489 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11490 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
11491 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
11492
11493 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
11494 echo "$as_me:$LINENO: result: yes" >&5
11495 echo "${ECHO_T}yes" >&6
11496 succeeded=yes
11497
11498 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11499 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
11500 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11501 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11502 echo "${ECHO_T}$GTK_CFLAGS" >&6
11503
11504 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11505 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
11506 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11507 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11508 echo "${ECHO_T}$GTK_LIBS" >&6
11509 else
11510 GTK_CFLAGS=""
11511 GTK_LIBS=""
11512 ## If we have a custom action on failure, don't print errors, but
11513 ## do set a variable so people can do so.
11514 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
11515 echo $GTK_PKG_ERRORS
11516 fi
11517
11518
11519
11520 else
11521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11523 fi
11524 fi
11525
11526 if test $succeeded = yes; then
11527 :
11528 else
11529 { { 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
11530 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;}
11531 { (exit 1); exit 1; }; }
11532 fi
11533
11534
11535 succeeded=no
11536
11537 if test -z "$PKG_CONFIG"; then
11538 # Extract the first word of "pkg-config", so it can be a program name with args.
11539 set dummy pkg-config; ac_word=$2
11540 echo "$as_me:$LINENO: checking for $ac_word" >&5
11541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11542 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545 case $PKG_CONFIG in
11546 [\\/]* | ?:[\\/]*)
11547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11548 ;;
11549 *)
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11552 do
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11560 fi
11561 done
11562 done
11563
11564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11565 ;;
11566 esac
11567 fi
11568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11569
11570 if test -n "$PKG_CONFIG"; then
11571 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11572 echo "${ECHO_T}$PKG_CONFIG" >&6
11573 else
11574 echo "$as_me:$LINENO: result: no" >&5
11575 echo "${ECHO_T}no" >&6
11576 fi
11577
11578 fi
11579
11580 if test "$PKG_CONFIG" = "no" ; then
11581 echo "*** The pkg-config script could not be found. Make sure it is"
11582 echo "*** in your path, or set the PKG_CONFIG environment variable"
11583 echo "*** to the full path to pkg-config."
11584 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11585 else
11586 PKG_CONFIG_MIN_VERSION=0.9.0
11587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11588 echo "$as_me:$LINENO: checking for freetype2" >&5
11589 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
11590
11591 if $PKG_CONFIG --exists "freetype2" ; then
11592 echo "$as_me:$LINENO: result: yes" >&5
11593 echo "${ECHO_T}yes" >&6
11594 succeeded=yes
11595
11596 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11597 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
11598 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
11599 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11600 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
11601
11602 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11603 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
11604 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
11605 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11606 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
11607 else
11608 FREETYPE2_CFLAGS=""
11609 FREETYPE2_LIBS=""
11610 ## If we have a custom action on failure, don't print errors, but
11611 ## do set a variable so people can do so.
11612 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11613 echo $FREETYPE2_PKG_ERRORS
11614 fi
11615
11616
11617
11618 else
11619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11621 fi
11622 fi
11623
11624 if test $succeeded = yes; then
11625 :
11626 else
11627 { { 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
11628 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;}
11629 { (exit 1); exit 1; }; }
11630 fi
11631
11632
11633 succeeded=no
11634
11635 if test -z "$PKG_CONFIG"; then
11636 # Extract the first word of "pkg-config", so it can be a program name with args.
11637 set dummy pkg-config; ac_word=$2
11638 echo "$as_me:$LINENO: checking for $ac_word" >&5
11639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11640 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643 case $PKG_CONFIG in
11644 [\\/]* | ?:[\\/]*)
11645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11646 ;;
11647 *)
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11650 do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11658 fi
11659 done
11660 done
11661
11662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11663 ;;
11664 esac
11665 fi
11666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11667
11668 if test -n "$PKG_CONFIG"; then
11669 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11670 echo "${ECHO_T}$PKG_CONFIG" >&6
11671 else
11672 echo "$as_me:$LINENO: result: no" >&5
11673 echo "${ECHO_T}no" >&6
11674 fi
11675
11676 fi
11677
11678 if test "$PKG_CONFIG" = "no" ; then
11679 echo "*** The pkg-config script could not be found. Make sure it is"
11680 echo "*** in your path, or set the PKG_CONFIG environment variable"
11681 echo "*** to the full path to pkg-config."
11682 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11683 else
11684 PKG_CONFIG_MIN_VERSION=0.9.0
11685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11686 echo "$as_me:$LINENO: checking for pangoft2" >&5
11687 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
11688
11689 if $PKG_CONFIG --exists "pangoft2" ; then
11690 echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11692 succeeded=yes
11693
11694 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
11695 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
11696 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
11697 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
11698 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
11699
11700 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
11701 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
11702 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
11703 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
11704 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
11705 else
11706 PANGOFT2_CFLAGS=""
11707 PANGOFT2_LIBS=""
11708 ## If we have a custom action on failure, don't print errors, but
11709 ## do set a variable so people can do so.
11710 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
11711 echo $PANGOFT2_PKG_ERRORS
11712 fi
11713
11714
11715
11716 else
11717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11719 fi
11720 fi
11721
11722 if test $succeeded = yes; then
11723 :
11724 else
11725 { { 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
11726 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;}
11727 { (exit 1); exit 1; }; }
11728 fi
11729
11730 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
11731 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
11732 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lXrender ${X_LIBS} $LIBS"
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743
11744 /* Override any gcc2 internal prototype to avoid an error. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 /* We use char because int might match the return type of a gcc2
11749 builtin and then its argument prototype would still apply. */
11750 char XRenderQueryExtension ();
11751 int
11752 main ()
11753 {
11754 XRenderQueryExtension ();
11755 ;
11756 return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag"
11769 || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11782 else
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_lib_Xrender_XRenderQueryExtension=no
11787 fi
11788 rm -f conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11793 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
11794 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
11795
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_XRENDER 1
11798 _ACEOF
11799 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
11800 else
11801 true
11802 fi
11803
11804
11805 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
11806 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
11807 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-lXrandr ${X_LIBS} $LIBS"
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 #ifdef __cplusplus
11821 extern "C"
11822 #endif
11823 /* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */
11825 char XRRQueryExtension ();
11826 int
11827 main ()
11828 {
11829 XRRQueryExtension ();
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11836 (eval $ac_link) 2>conftest.er1
11837 ac_status=$?
11838 grep -v '^ *+' conftest.er1 >conftest.err
11839 rm -f conftest.er1
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } &&
11843 { ac_try='test -z "$ac_c_werror_flag"
11844 || test ! -s conftest.err'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest$ac_exeext'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 ac_cv_lib_Xrandr_XRRQueryExtension=yes
11857 else
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 ac_cv_lib_Xrandr_XRRQueryExtension=no
11862 fi
11863 rm -f conftest.err conftest.$ac_objext \
11864 conftest$ac_exeext conftest.$ac_ext
11865 LIBS=$ac_check_lib_save_LIBS
11866 fi
11867 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
11868 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
11869 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_XRANDR 1
11873 _ACEOF
11874 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
11875 else
11876 true
11877 fi
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887 fi
11888
11889 if test "x${COMPILE_GCONF_PEER}" = xyes; then
11890
11891 succeeded=no
11892
11893 if test -z "$PKG_CONFIG"; then
11894 # Extract the first word of "pkg-config", so it can be a program name with args.
11895 set dummy pkg-config; ac_word=$2
11896 echo "$as_me:$LINENO: checking for $ac_word" >&5
11897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11898 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901 case $PKG_CONFIG in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11904 ;;
11905 *)
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917 done
11918 done
11919
11920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11921 ;;
11922 esac
11923 fi
11924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11925
11926 if test -n "$PKG_CONFIG"; then
11927 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11928 echo "${ECHO_T}$PKG_CONFIG" >&6
11929 else
11930 echo "$as_me:$LINENO: result: no" >&5
11931 echo "${ECHO_T}no" >&6
11932 fi
11933
11934 fi
11935
11936 if test "$PKG_CONFIG" = "no" ; then
11937 echo "*** The pkg-config script could not be found. Make sure it is"
11938 echo "*** in your path, or set the PKG_CONFIG environment variable"
11939 echo "*** to the full path to pkg-config."
11940 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11941 else
11942 PKG_CONFIG_MIN_VERSION=0.9.0
11943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11944 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.11.2" >&5
11945 echo $ECHO_N "checking for gconf-2.0 >= 2.11.2... $ECHO_C" >&6
11946
11947 if $PKG_CONFIG --exists "gconf-2.0 >= 2.11.2" ; then
11948 echo "$as_me:$LINENO: result: yes" >&5
11949 echo "${ECHO_T}yes" >&6
11950 succeeded=yes
11951
11952 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
11953 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
11954 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.11.2"`
11955 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
11956 echo "${ECHO_T}$GCONF_CFLAGS" >&6
11957
11958 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
11959 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
11960 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.11.2"`
11961 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
11962 echo "${ECHO_T}$GCONF_LIBS" >&6
11963 else
11964 GCONF_CFLAGS=""
11965 GCONF_LIBS=""
11966 ## If we have a custom action on failure, don't print errors, but
11967 ## do set a variable so people can do so.
11968 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.11.2"`
11969 echo $GCONF_PKG_ERRORS
11970 fi
11971
11972
11973
11974 else
11975 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11976 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11977 fi
11978 fi
11979
11980 if test $succeeded = yes; then
11981 :
11982 else
11983 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.11.2) 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
11984 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.11.2) 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;}
11985 { (exit 1); exit 1; }; }
11986 fi
11987
11988
11989
11990
11991 succeeded=no
11992
11993 if test -z "$PKG_CONFIG"; then
11994 # Extract the first word of "pkg-config", so it can be a program name with args.
11995 set dummy pkg-config; ac_word=$2
11996 echo "$as_me:$LINENO: checking for $ac_word" >&5
11997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 case $PKG_CONFIG in
12002 [\\/]* | ?:[\\/]*)
12003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12004 ;;
12005 *)
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017 done
12018 done
12019
12020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12021 ;;
12022 esac
12023 fi
12024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12025
12026 if test -n "$PKG_CONFIG"; then
12027 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12028 echo "${ECHO_T}$PKG_CONFIG" >&6
12029 else
12030 echo "$as_me:$LINENO: result: no" >&5
12031 echo "${ECHO_T}no" >&6
12032 fi
12033
12034 fi
12035
12036 if test "$PKG_CONFIG" = "no" ; then
12037 echo "*** The pkg-config script could not be found. Make sure it is"
12038 echo "*** in your path, or set the PKG_CONFIG environment variable"
12039 echo "*** to the full path to pkg-config."
12040 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12041 else
12042 PKG_CONFIG_MIN_VERSION=0.9.0
12043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12044 echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
12045 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
12046
12047 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
12048 echo "$as_me:$LINENO: result: yes" >&5
12049 echo "${ECHO_T}yes" >&6
12050 succeeded=yes
12051
12052 echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
12053 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
12054 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
12055 echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
12056 echo "${ECHO_T}$GDK_CFLAGS" >&6
12057
12058 echo "$as_me:$LINENO: checking GDK_LIBS" >&5
12059 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
12060 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
12061 echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
12062 echo "${ECHO_T}$GDK_LIBS" >&6
12063 else
12064 GDK_CFLAGS=""
12065 GDK_LIBS=""
12066 ## If we have a custom action on failure, don't print errors, but
12067 ## do set a variable so people can do so.
12068 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
12069 echo $GDK_PKG_ERRORS
12070 fi
12071
12072
12073
12074 else
12075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12077 fi
12078 fi
12079
12080 if test $succeeded = yes; then
12081 :
12082 else
12083 { { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.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
12084 echo "$as_me: error: Library requirements (gdk-2.0 >= 2.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;}
12085 { (exit 1); exit 1; }; }
12086 fi
12087
12088
12089
12090 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
12091 if test "$USE_GCONF_PREFS_PEER" = ""; then
12092 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
12093 fi
12094 fi
12095
12096 if test "x${COMPILE_QT_PEER}" = xyes; then
12097
12098 succeeded=no
12099
12100 if test -z "$PKG_CONFIG"; then
12101 # Extract the first word of "pkg-config", so it can be a program name with args.
12102 set dummy pkg-config; ac_word=$2
12103 echo "$as_me:$LINENO: checking for $ac_word" >&5
12104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 case $PKG_CONFIG in
12109 [\\/]* | ?:[\\/]*)
12110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12111 ;;
12112 *)
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116 IFS=$as_save_IFS
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12122 break 2
12123 fi
12124 done
12125 done
12126
12127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12128 ;;
12129 esac
12130 fi
12131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12132
12133 if test -n "$PKG_CONFIG"; then
12134 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12135 echo "${ECHO_T}$PKG_CONFIG" >&6
12136 else
12137 echo "$as_me:$LINENO: result: no" >&5
12138 echo "${ECHO_T}no" >&6
12139 fi
12140
12141 fi
12142
12143 if test "$PKG_CONFIG" = "no" ; then
12144 echo "*** The pkg-config script could not be found. Make sure it is"
12145 echo "*** in your path, or set the PKG_CONFIG environment variable"
12146 echo "*** to the full path to pkg-config."
12147 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12148 else
12149 PKG_CONFIG_MIN_VERSION=0.9.0
12150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12151 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
12152 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
12153
12154 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
12155 echo "$as_me:$LINENO: result: yes" >&5
12156 echo "${ECHO_T}yes" >&6
12157 succeeded=yes
12158
12159 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
12160 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
12161 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
12162 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
12163 echo "${ECHO_T}$QT_CFLAGS" >&6
12164
12165 echo "$as_me:$LINENO: checking QT_LIBS" >&5
12166 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
12167 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
12168 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
12169 echo "${ECHO_T}$QT_LIBS" >&6
12170 else
12171 QT_CFLAGS=""
12172 QT_LIBS=""
12173 ## If we have a custom action on failure, don't print errors, but
12174 ## do set a variable so people can do so.
12175 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
12176
12177 fi
12178
12179
12180
12181 else
12182 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12183 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12184 fi
12185 fi
12186
12187 if test $succeeded = yes; then
12188 HAVE_QT4="yes"
12189 else
12190 HAVE_QT4="no"
12191 fi
12192
12193 if test "x$HAVE_QT4" = "xyes"; then
12194 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
12195 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
12196 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12197 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
12198 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12199 if eval "test \"\${$as_ac_File+set}\" = set"; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 test "$cross_compiling" = yes &&
12203 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12204 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12205 { (exit 1); exit 1; }; }
12206 if test -r "$QT_INCLUDE_DIR/QWidget"; then
12207 eval "$as_ac_File=yes"
12208 else
12209 eval "$as_ac_File=no"
12210 fi
12211 fi
12212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12213 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12214 if test `eval echo '${'$as_ac_File'}'` = yes; then
12215 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
12216 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
12217 else
12218 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
12219 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
12220 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
12221 if eval "test \"\${$as_ac_File+set}\" = set"; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 test "$cross_compiling" = yes &&
12225 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
12226 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
12227 { (exit 1); exit 1; }; }
12228 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
12229 eval "$as_ac_File=yes"
12230 else
12231 eval "$as_ac_File=no"
12232 fi
12233 fi
12234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
12235 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
12236 if test `eval echo '${'$as_ac_File'}'` = yes; then
12237 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
12238 else
12239 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
12240 echo "$as_me: WARNING: QWidget not found" >&2;}
12241 fi
12242
12243 fi
12244
12245 # Extract the first word of "moc", so it can be a program name with args.
12246 set dummy moc; ac_word=$2
12247 echo "$as_me:$LINENO: checking for $ac_word" >&5
12248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12249 if test "${ac_cv_prog_MOC+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252 if test -n "$MOC"; then
12253 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12254 else
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12257 do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_prog_MOC="moc"
12263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 break 2
12265 fi
12266 done
12267 done
12268
12269 fi
12270 fi
12271 MOC=$ac_cv_prog_MOC
12272 if test -n "$MOC"; then
12273 echo "$as_me:$LINENO: result: $MOC" >&5
12274 echo "${ECHO_T}$MOC" >&6
12275 else
12276 echo "$as_me:$LINENO: result: no" >&5
12277 echo "${ECHO_T}no" >&6
12278 fi
12279
12280 # Extract the first word of "moc-qt4", so it can be a program name with args.
12281 set dummy moc-qt4; ac_word=$2
12282 echo "$as_me:$LINENO: checking for $ac_word" >&5
12283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12284 if test "${ac_cv_prog_MOC+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287 if test -n "$MOC"; then
12288 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_prog_MOC="moc-qt4"
12298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 break 2
12300 fi
12301 done
12302 done
12303
12304 fi
12305 fi
12306 MOC=$ac_cv_prog_MOC
12307 if test -n "$MOC"; then
12308 echo "$as_me:$LINENO: result: $MOC" >&5
12309 echo "${ECHO_T}$MOC" >&6
12310 else
12311 echo "$as_me:$LINENO: result: no" >&5
12312 echo "${ECHO_T}no" >&6
12313 fi
12314
12315 fi
12316 if test "x$HAVE_QT4" = "xno"; then
12317 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
12318 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
12319 case "$host_os" in
12320 darwin*)
12321
12322 # Check whether --with-qt4dir or --without-qt4dir was given.
12323 if test "${with_qt4dir+set}" = set; then
12324 withval="$with_qt4dir"
12325 QT4DIR=$withval
12326
12327 fi;
12328 if test x"$QT4DIR" = x ; then
12329 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
12330 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
12331 { (exit 1); exit 1; }; }
12332 fi
12333 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
12334 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
12335 # Extract the first word of "moc", so it can be a program name with args.
12336 set dummy moc; ac_word=$2
12337 echo "$as_me:$LINENO: checking for $ac_word" >&5
12338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12339 if test "${ac_cv_prog_MOC+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342 if test -n "$MOC"; then
12343 ac_cv_prog_MOC="$MOC" # Let the user override the test.
12344 else
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $QT4DIR/bin
12347 do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352 ac_cv_prog_MOC="$QT4DIR/bin/moc"
12353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 break 2
12355 fi
12356 done
12357 done
12358
12359 fi
12360 fi
12361 MOC=$ac_cv_prog_MOC
12362 if test -n "$MOC"; then
12363 echo "$as_me:$LINENO: result: $MOC" >&5
12364 echo "${ECHO_T}$MOC" >&6
12365 else
12366 echo "$as_me:$LINENO: result: no" >&5
12367 echo "${ECHO_T}no" >&6
12368 fi
12369
12370 if test x"$MOC" = x; then
12371 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
12372 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
12373 { (exit 1); exit 1; }; }
12374 fi
12375 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
12376 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
12377 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
12378 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
12379 ;;
12380 *)
12381 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
12382 of your installed Qt4 installation." >&5
12383 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
12384 of your installed Qt4 installation." >&2;}
12385 { (exit 1); exit 1; }; }
12386 ;;
12387 esac
12388 fi
12389 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
12390 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
12391
12392
12393 fi
12394
12395 if test "x${COMPILE_PLUGIN}" = xyes; then
12396
12397 succeeded=no
12398
12399 if test -z "$PKG_CONFIG"; then
12400 # Extract the first word of "pkg-config", so it can be a program name with args.
12401 set dummy pkg-config; ac_word=$2
12402 echo "$as_me:$LINENO: checking for $ac_word" >&5
12403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407 case $PKG_CONFIG in
12408 [\\/]* | ?:[\\/]*)
12409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12410 ;;
12411 *)
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423 done
12424 done
12425
12426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12427 ;;
12428 esac
12429 fi
12430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12431
12432 if test -n "$PKG_CONFIG"; then
12433 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12434 echo "${ECHO_T}$PKG_CONFIG" >&6
12435 else
12436 echo "$as_me:$LINENO: result: no" >&5
12437 echo "${ECHO_T}no" >&6
12438 fi
12439
12440 fi
12441
12442 if test "$PKG_CONFIG" = "no" ; then
12443 echo "*** The pkg-config script could not be found. Make sure it is"
12444 echo "*** in your path, or set the PKG_CONFIG environment variable"
12445 echo "*** to the full path to pkg-config."
12446 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12447 else
12448 PKG_CONFIG_MIN_VERSION=0.9.0
12449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12450 echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
12451 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
12452
12453 if $PKG_CONFIG --exists "mozilla-plugin" ; then
12454 echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6
12456 succeeded=yes
12457
12458 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12459 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12460 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
12461 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12462 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12463
12464 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12465 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12466 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
12467 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12468 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12469 else
12470 MOZILLA_CFLAGS=""
12471 MOZILLA_LIBS=""
12472 ## If we have a custom action on failure, don't print errors, but
12473 ## do set a variable so people can do so.
12474 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
12475
12476 fi
12477
12478
12479
12480 else
12481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12483 fi
12484 fi
12485
12486 if test $succeeded = yes; then
12487 MOZILLA_FOUND=yes
12488 else
12489 MOZILLA_FOUND=no
12490 fi
12491
12492 if test "x${MOZILLA_FOUND}" = xno; then
12493
12494 succeeded=no
12495
12496 if test -z "$PKG_CONFIG"; then
12497 # Extract the first word of "pkg-config", so it can be a program name with args.
12498 set dummy pkg-config; ac_word=$2
12499 echo "$as_me:$LINENO: checking for $ac_word" >&5
12500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504 case $PKG_CONFIG in
12505 [\\/]* | ?:[\\/]*)
12506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12507 ;;
12508 *)
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12511 do
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12518 break 2
12519 fi
12520 done
12521 done
12522
12523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12524 ;;
12525 esac
12526 fi
12527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12528
12529 if test -n "$PKG_CONFIG"; then
12530 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12531 echo "${ECHO_T}$PKG_CONFIG" >&6
12532 else
12533 echo "$as_me:$LINENO: result: no" >&5
12534 echo "${ECHO_T}no" >&6
12535 fi
12536
12537 fi
12538
12539 if test "$PKG_CONFIG" = "no" ; then
12540 echo "*** The pkg-config script could not be found. Make sure it is"
12541 echo "*** in your path, or set the PKG_CONFIG environment variable"
12542 echo "*** to the full path to pkg-config."
12543 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12544 else
12545 PKG_CONFIG_MIN_VERSION=0.9.0
12546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12547 echo "$as_me:$LINENO: checking for firefox-plugin" >&5
12548 echo $ECHO_N "checking for firefox-plugin... $ECHO_C" >&6
12549
12550 if $PKG_CONFIG --exists "firefox-plugin" ; then
12551 echo "$as_me:$LINENO: result: yes" >&5
12552 echo "${ECHO_T}yes" >&6
12553 succeeded=yes
12554
12555 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12556 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12557 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin"`
12558 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12559 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12560
12561 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12562 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12563 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin"`
12564 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12565 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12566 else
12567 MOZILLA_CFLAGS=""
12568 MOZILLA_LIBS=""
12569 ## If we have a custom action on failure, don't print errors, but
12570 ## do set a variable so people can do so.
12571 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin"`
12572
12573 fi
12574
12575
12576
12577 else
12578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12580 fi
12581 fi
12582
12583 if test $succeeded = yes; then
12584 MOZILLA_FOUND=yes
12585 else
12586 MOZILLA_FOUND=no
12587 fi
12588
12589 fi
12590 if test "x${MOZILLA_FOUND}" = xno; then
12591
12592 succeeded=no
12593
12594 if test -z "$PKG_CONFIG"; then
12595 # Extract the first word of "pkg-config", so it can be a program name with args.
12596 set dummy pkg-config; ac_word=$2
12597 echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12599 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602 case $PKG_CONFIG in
12603 [\\/]* | ?:[\\/]*)
12604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12605 ;;
12606 *)
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12614 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12617 fi
12618 done
12619 done
12620
12621 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12622 ;;
12623 esac
12624 fi
12625 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12626
12627 if test -n "$PKG_CONFIG"; then
12628 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12629 echo "${ECHO_T}$PKG_CONFIG" >&6
12630 else
12631 echo "$as_me:$LINENO: result: no" >&5
12632 echo "${ECHO_T}no" >&6
12633 fi
12634
12635 fi
12636
12637 if test "$PKG_CONFIG" = "no" ; then
12638 echo "*** The pkg-config script could not be found. Make sure it is"
12639 echo "*** in your path, or set the PKG_CONFIG environment variable"
12640 echo "*** to the full path to pkg-config."
12641 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12642 else
12643 PKG_CONFIG_MIN_VERSION=0.9.0
12644 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12645 echo "$as_me:$LINENO: checking for xulrunner-plugin" >&5
12646 echo $ECHO_N "checking for xulrunner-plugin... $ECHO_C" >&6
12647
12648 if $PKG_CONFIG --exists "xulrunner-plugin" ; then
12649 echo "$as_me:$LINENO: result: yes" >&5
12650 echo "${ECHO_T}yes" >&6
12651 succeeded=yes
12652
12653 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12654 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12655 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin"`
12656 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12657 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12658
12659 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12660 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12661 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin"`
12662 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12663 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12664 else
12665 MOZILLA_CFLAGS=""
12666 MOZILLA_LIBS=""
12667 ## If we have a custom action on failure, don't print errors, but
12668 ## do set a variable so people can do so.
12669 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin"`
12670
12671 fi
12672
12673
12674
12675 else
12676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12678 fi
12679 fi
12680
12681 if test $succeeded = yes; then
12682 MOZILLA_FOUND=yes
12683 else
12684 MOZILLA_FOUND=no
12685 fi
12686
12687 fi
12688 if test "x${MOZILLA_FOUND}" = xno; then
12689
12690 succeeded=no
12691
12692 if test -z "$PKG_CONFIG"; then
12693 # Extract the first word of "pkg-config", so it can be a program name with args.
12694 set dummy pkg-config; ac_word=$2
12695 echo "$as_me:$LINENO: checking for $ac_word" >&5
12696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 case $PKG_CONFIG in
12701 [\\/]* | ?:[\\/]*)
12702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12703 ;;
12704 *)
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12707 do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716 done
12717 done
12718
12719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12720 ;;
12721 esac
12722 fi
12723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12724
12725 if test -n "$PKG_CONFIG"; then
12726 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12727 echo "${ECHO_T}$PKG_CONFIG" >&6
12728 else
12729 echo "$as_me:$LINENO: result: no" >&5
12730 echo "${ECHO_T}no" >&6
12731 fi
12732
12733 fi
12734
12735 if test "$PKG_CONFIG" = "no" ; then
12736 echo "*** The pkg-config script could not be found. Make sure it is"
12737 echo "*** in your path, or set the PKG_CONFIG environment variable"
12738 echo "*** to the full path to pkg-config."
12739 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12740 else
12741 PKG_CONFIG_MIN_VERSION=0.9.0
12742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12743 echo "$as_me:$LINENO: checking for mozilla-firefox-plugin" >&5
12744 echo $ECHO_N "checking for mozilla-firefox-plugin... $ECHO_C" >&6
12745
12746 if $PKG_CONFIG --exists "mozilla-firefox-plugin" ; then
12747 echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6
12749 succeeded=yes
12750
12751 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
12752 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
12753 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin"`
12754 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
12755 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
12756
12757 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
12758 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
12759 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin"`
12760 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
12761 echo "${ECHO_T}$MOZILLA_LIBS" >&6
12762 else
12763 MOZILLA_CFLAGS=""
12764 MOZILLA_LIBS=""
12765 ## If we have a custom action on failure, don't print errors, but
12766 ## do set a variable so people can do so.
12767 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin"`
12768
12769 fi
12770
12771
12772
12773 else
12774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12776 fi
12777 fi
12778
12779 if test $succeeded = yes; then
12780 MOZILLA_FOUND=yes
12781 else
12782 MOZILLA_FOUND=no
12783 fi
12784
12785 fi
12786
12787 succeeded=no
12788
12789 if test -z "$PKG_CONFIG"; then
12790 # Extract the first word of "pkg-config", so it can be a program name with args.
12791 set dummy pkg-config; ac_word=$2
12792 echo "$as_me:$LINENO: checking for $ac_word" >&5
12793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797 case $PKG_CONFIG in
12798 [\\/]* | ?:[\\/]*)
12799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12800 ;;
12801 *)
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12804 do
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12812 fi
12813 done
12814 done
12815
12816 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12817 ;;
12818 esac
12819 fi
12820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12821
12822 if test -n "$PKG_CONFIG"; then
12823 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12824 echo "${ECHO_T}$PKG_CONFIG" >&6
12825 else
12826 echo "$as_me:$LINENO: result: no" >&5
12827 echo "${ECHO_T}no" >&6
12828 fi
12829
12830 fi
12831
12832 if test "$PKG_CONFIG" = "no" ; then
12833 echo "*** The pkg-config script could not be found. Make sure it is"
12834 echo "*** in your path, or set the PKG_CONFIG environment variable"
12835 echo "*** to the full path to pkg-config."
12836 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12837 else
12838 PKG_CONFIG_MIN_VERSION=0.9.0
12839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12840 echo "$as_me:$LINENO: checking for glib-2.0" >&5
12841 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
12842
12843 if $PKG_CONFIG --exists "glib-2.0" ; then
12844 echo "$as_me:$LINENO: result: yes" >&5
12845 echo "${ECHO_T}yes" >&6
12846 succeeded=yes
12847
12848 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12849 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12850 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
12851 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12852 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12853
12854 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12855 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12856 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
12857 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12858 echo "${ECHO_T}$GLIB_LIBS" >&6
12859 else
12860 GLIB_CFLAGS=""
12861 GLIB_LIBS=""
12862 ## If we have a custom action on failure, don't print errors, but
12863 ## do set a variable so people can do so.
12864 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
12865 echo $GLIB_PKG_ERRORS
12866 fi
12867
12868
12869
12870 else
12871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12873 fi
12874 fi
12875
12876 if test $succeeded = yes; then
12877 :
12878 else
12879 { { 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
12880 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;}
12881 { (exit 1); exit 1; }; }
12882 fi
12883
12884
12885
12886
12887
12888
12889
12890 PLUGIN_DIR=$HOME/.mozilla/plugins/
12891
12892 fi
12893 fi
12894
12895
12896
12897 # Check whether --with-javah or --without-javah was given.
12898 if test "${with_javah+set}" = set; then
12899 withval="$with_javah"
12900
12901 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
12902
12903 if test "x${withval}" != x; then
12904 if test -f "${withval}"; then
12905 USER_JAVAH="${withval}"
12906 else
12907 # Extract the first word of ""${withval}"", so it can be a program name with args.
12908 set dummy "${withval}"; ac_word=$2
12909 echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12911 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 case $USER_JAVAH in
12915 [\\/]* | ?:[\\/]*)
12916 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12917 ;;
12918 *)
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12921 do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12926 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930 done
12931 done
12932
12933 ;;
12934 esac
12935 fi
12936 USER_JAVAH=$ac_cv_path_USER_JAVAH
12937
12938 if test -n "$USER_JAVAH"; then
12939 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12940 echo "${ECHO_T}$USER_JAVAH" >&6
12941 else
12942 echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6
12944 fi
12945
12946 fi
12947 else
12948 for javah_name in gcjh javah; do
12949 # Extract the first word of ""$javah_name"", so it can be a program name with args.
12950 set dummy "$javah_name"; ac_word=$2
12951 echo "$as_me:$LINENO: checking for $ac_word" >&5
12952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12953 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956 case $USER_JAVAH in
12957 [\\/]* | ?:[\\/]*)
12958 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
12959 ;;
12960 *)
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12963 do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
12969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972 done
12973 done
12974
12975 ;;
12976 esac
12977 fi
12978 USER_JAVAH=$ac_cv_path_USER_JAVAH
12979
12980 if test -n "$USER_JAVAH"; then
12981 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
12982 echo "${ECHO_T}$USER_JAVAH" >&6
12983 else
12984 echo "$as_me:$LINENO: result: no" >&5
12985 echo "${ECHO_T}no" >&6
12986 fi
12987
12988 if test "x${USER_JAVAH}" != x; then
12989 break
12990 fi
12991 done
12992 fi
12993
12994 # if test "x${USER_JAVAH}" = x; then
12995 # echo "configure: cannot find javah" 1>&2
12996 # exit 1
12997 # fi
12998
12999 else
13000
13001 if test "x" != x; then
13002 if test -f ""; then
13003 USER_JAVAH=""
13004 else
13005 # Extract the first word of """", so it can be a program name with args.
13006 set dummy ""; ac_word=$2
13007 echo "$as_me:$LINENO: checking for $ac_word" >&5
13008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13009 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012 case $USER_JAVAH in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13015 ;;
13016 *)
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13019 do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13027 fi
13028 done
13029 done
13030
13031 ;;
13032 esac
13033 fi
13034 USER_JAVAH=$ac_cv_path_USER_JAVAH
13035
13036 if test -n "$USER_JAVAH"; then
13037 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13038 echo "${ECHO_T}$USER_JAVAH" >&6
13039 else
13040 echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6
13042 fi
13043
13044 fi
13045 else
13046 for javah_name in gcjh javah; do
13047 # Extract the first word of ""$javah_name"", so it can be a program name with args.
13048 set dummy "$javah_name"; ac_word=$2
13049 echo "$as_me:$LINENO: checking for $ac_word" >&5
13050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13051 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 else
13054 case $USER_JAVAH in
13055 [\\/]* | ?:[\\/]*)
13056 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13057 ;;
13058 *)
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13061 do
13062 IFS=$as_save_IFS
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13068 break 2
13069 fi
13070 done
13071 done
13072
13073 ;;
13074 esac
13075 fi
13076 USER_JAVAH=$ac_cv_path_USER_JAVAH
13077
13078 if test -n "$USER_JAVAH"; then
13079 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13080 echo "${ECHO_T}$USER_JAVAH" >&6
13081 else
13082 echo "$as_me:$LINENO: result: no" >&5
13083 echo "${ECHO_T}no" >&6
13084 fi
13085
13086 if test "x${USER_JAVAH}" != x; then
13087 break
13088 fi
13089 done
13090 fi
13091
13092 # if test "x${USER_JAVAH}" = x; then
13093 # echo "configure: cannot find javah" 1>&2
13094 # exit 1
13095 # fi
13096
13097 fi
13098
13099 else
13100
13101
13102 if test "x" != x; then
13103 if test -f ""; then
13104 USER_JAVAH=""
13105 else
13106 # Extract the first word of """", so it can be a program name with args.
13107 set dummy ""; ac_word=$2
13108 echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13110 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 case $USER_JAVAH in
13114 [\\/]* | ?:[\\/]*)
13115 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13116 ;;
13117 *)
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13125 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13128 fi
13129 done
13130 done
13131
13132 ;;
13133 esac
13134 fi
13135 USER_JAVAH=$ac_cv_path_USER_JAVAH
13136
13137 if test -n "$USER_JAVAH"; then
13138 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13139 echo "${ECHO_T}$USER_JAVAH" >&6
13140 else
13141 echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6
13143 fi
13144
13145 fi
13146 else
13147 for javah_name in gcjh javah; do
13148 # Extract the first word of ""$javah_name"", so it can be a program name with args.
13149 set dummy "$javah_name"; ac_word=$2
13150 echo "$as_me:$LINENO: checking for $ac_word" >&5
13151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13152 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 case $USER_JAVAH in
13156 [\\/]* | ?:[\\/]*)
13157 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
13158 ;;
13159 *)
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13162 do
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13167 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
13168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13170 fi
13171 done
13172 done
13173
13174 ;;
13175 esac
13176 fi
13177 USER_JAVAH=$ac_cv_path_USER_JAVAH
13178
13179 if test -n "$USER_JAVAH"; then
13180 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
13181 echo "${ECHO_T}$USER_JAVAH" >&6
13182 else
13183 echo "$as_me:$LINENO: result: no" >&5
13184 echo "${ECHO_T}no" >&6
13185 fi
13186
13187 if test "x${USER_JAVAH}" != x; then
13188 break
13189 fi
13190 done
13191 fi
13192
13193 # if test "x${USER_JAVAH}" = x; then
13194 # echo "configure: cannot find javah" 1>&2
13195 # exit 1
13196 # fi
13197
13198
13199 fi;
13200
13201
13202 if test "x${USER_JAVAH}" != x; then
13203 USER_SPECIFIED_JAVAH_TRUE=
13204 USER_SPECIFIED_JAVAH_FALSE='#'
13205 else
13206 USER_SPECIFIED_JAVAH_TRUE='#'
13207 USER_SPECIFIED_JAVAH_FALSE=
13208 fi
13209
13210
13211
13212
13213 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
13214
13215
13216 if test "x${COMPILE_JNI}" = xyes; then
13217 echo "$as_me:$LINENO: checking jni_md.h support" >&5
13218 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
13219 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
13220 echo "$as_me:$LINENO: result: yes" >&5
13221 echo "${ECHO_T}yes" >&6
13222 else
13223 target_cpu=x86
13224 target_os=linux-gnu
13225 { echo "$as_me:$LINENO: WARNING: no" >&5
13226 echo "$as_me: WARNING: no" >&2;}
13227 fi
13228 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
13229 ac_dests="include/jni_md.h"
13230 while test -n "$ac_sources"; do
13231 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13232 set $ac_sources; ac_source=$1; shift; ac_sources=$*
13233 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13234 done
13235 ac_config_links="$ac_config_links $ac_config_links_1"
13236
13237 fi
13238
13239
13240 user_specified_javac=
13241
13242
13243
13244 # Check whether --with-gcj or --without-gcj was given.
13245 if test "${with_gcj+set}" = set; then
13246 withval="$with_gcj"
13247
13248 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13249
13250 if test "x${withval}" != x; then
13251 if test -f "${withval}"; then
13252 GCJ="${withval}"
13253 else
13254 # Extract the first word of ""${withval}"", so it can be a program name with args.
13255 set dummy "${withval}"; ac_word=$2
13256 echo "$as_me:$LINENO: checking for $ac_word" >&5
13257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13258 if test "${ac_cv_path_GCJ+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261 case $GCJ in
13262 [\\/]* | ?:[\\/]*)
13263 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13264 ;;
13265 *)
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13268 do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13273 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13276 fi
13277 done
13278 done
13279
13280 ;;
13281 esac
13282 fi
13283 GCJ=$ac_cv_path_GCJ
13284
13285 if test -n "$GCJ"; then
13286 echo "$as_me:$LINENO: result: $GCJ" >&5
13287 echo "${ECHO_T}$GCJ" >&6
13288 else
13289 echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6
13291 fi
13292
13293 fi
13294 else
13295 # Extract the first word of ""gcj"", so it can be a program name with args.
13296 set dummy "gcj"; ac_word=$2
13297 echo "$as_me:$LINENO: checking for $ac_word" >&5
13298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13299 if test "${ac_cv_path_GCJ+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 else
13302 case $GCJ in
13303 [\\/]* | ?:[\\/]*)
13304 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13305 ;;
13306 *)
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13309 do
13310 IFS=$as_save_IFS
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 break 2
13317 fi
13318 done
13319 done
13320
13321 ;;
13322 esac
13323 fi
13324 GCJ=$ac_cv_path_GCJ
13325
13326 if test -n "$GCJ"; then
13327 echo "$as_me:$LINENO: result: $GCJ" >&5
13328 echo "${ECHO_T}$GCJ" >&6
13329 else
13330 echo "$as_me:$LINENO: result: no" >&5
13331 echo "${ECHO_T}no" >&6
13332 fi
13333
13334 fi
13335 if test "x$GCJ" != x; then
13336 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13337 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13338 ac_ext=c
13339 ac_cpp='$CPP $CPPFLAGS'
13340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13343
13344 cat >conftest.$ac_ext <<_ACEOF
13345 #if __GNUC__ <= 3
13346 #error GCJ 4.0.0 or higher is required
13347 #endif
13348
13349 _ACEOF
13350 $GCJ -E conftest.c > /dev/null
13351 gcj_4_result=$?
13352 if test "x$gcj_4_result" = "x0"; then
13353 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13354 echo "${ECHO_T}4.0 or higher found" >&6
13355 else
13356 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13357 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13358 fi
13359 ac_ext=c
13360 ac_cpp='$CPP $CPPFLAGS'
13361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13364
13365 fi
13366
13367 else
13368 if test "x${withval}" != xno; then
13369
13370 if test "x" != x; then
13371 if test -f ""; then
13372 GCJ=""
13373 else
13374 # Extract the first word of """", so it can be a program name with args.
13375 set dummy ""; ac_word=$2
13376 echo "$as_me:$LINENO: checking for $ac_word" >&5
13377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13378 if test "${ac_cv_path_GCJ+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381 case $GCJ in
13382 [\\/]* | ?:[\\/]*)
13383 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13384 ;;
13385 *)
13386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387 for as_dir in $PATH
13388 do
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
13391 for ac_exec_ext in '' $ac_executable_extensions; do
13392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13393 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13395 break 2
13396 fi
13397 done
13398 done
13399
13400 ;;
13401 esac
13402 fi
13403 GCJ=$ac_cv_path_GCJ
13404
13405 if test -n "$GCJ"; then
13406 echo "$as_me:$LINENO: result: $GCJ" >&5
13407 echo "${ECHO_T}$GCJ" >&6
13408 else
13409 echo "$as_me:$LINENO: result: no" >&5
13410 echo "${ECHO_T}no" >&6
13411 fi
13412
13413 fi
13414 else
13415 # Extract the first word of ""gcj"", so it can be a program name with args.
13416 set dummy "gcj"; ac_word=$2
13417 echo "$as_me:$LINENO: checking for $ac_word" >&5
13418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13419 if test "${ac_cv_path_GCJ+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422 case $GCJ in
13423 [\\/]* | ?:[\\/]*)
13424 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13425 ;;
13426 *)
13427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13428 for as_dir in $PATH
13429 do
13430 IFS=$as_save_IFS
13431 test -z "$as_dir" && as_dir=.
13432 for ac_exec_ext in '' $ac_executable_extensions; do
13433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13434 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13436 break 2
13437 fi
13438 done
13439 done
13440
13441 ;;
13442 esac
13443 fi
13444 GCJ=$ac_cv_path_GCJ
13445
13446 if test -n "$GCJ"; then
13447 echo "$as_me:$LINENO: result: $GCJ" >&5
13448 echo "${ECHO_T}$GCJ" >&6
13449 else
13450 echo "$as_me:$LINENO: result: no" >&5
13451 echo "${ECHO_T}no" >&6
13452 fi
13453
13454 fi
13455 if test "x$GCJ" != x; then
13456 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13457 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13458 ac_ext=c
13459 ac_cpp='$CPP $CPPFLAGS'
13460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13463
13464 cat >conftest.$ac_ext <<_ACEOF
13465 #if __GNUC__ <= 3
13466 #error GCJ 4.0.0 or higher is required
13467 #endif
13468
13469 _ACEOF
13470 $GCJ -E conftest.c > /dev/null
13471 gcj_4_result=$?
13472 if test "x$gcj_4_result" = "x0"; then
13473 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13474 echo "${ECHO_T}4.0 or higher found" >&6
13475 else
13476 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13477 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13478 fi
13479 ac_ext=c
13480 ac_cpp='$CPP $CPPFLAGS'
13481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13484
13485 fi
13486
13487 fi
13488 fi
13489 user_specified_javac=gcj
13490
13491 else
13492
13493
13494 if test "x" != x; then
13495 if test -f ""; then
13496 GCJ=""
13497 else
13498 # Extract the first word of """", so it can be a program name with args.
13499 set dummy ""; ac_word=$2
13500 echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13502 if test "${ac_cv_path_GCJ+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505 case $GCJ in
13506 [\\/]* | ?:[\\/]*)
13507 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13508 ;;
13509 *)
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13512 do
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13517 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 break 2
13520 fi
13521 done
13522 done
13523
13524 ;;
13525 esac
13526 fi
13527 GCJ=$ac_cv_path_GCJ
13528
13529 if test -n "$GCJ"; then
13530 echo "$as_me:$LINENO: result: $GCJ" >&5
13531 echo "${ECHO_T}$GCJ" >&6
13532 else
13533 echo "$as_me:$LINENO: result: no" >&5
13534 echo "${ECHO_T}no" >&6
13535 fi
13536
13537 fi
13538 else
13539 # Extract the first word of ""gcj"", so it can be a program name with args.
13540 set dummy "gcj"; ac_word=$2
13541 echo "$as_me:$LINENO: checking for $ac_word" >&5
13542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13543 if test "${ac_cv_path_GCJ+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546 case $GCJ in
13547 [\\/]* | ?:[\\/]*)
13548 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
13549 ;;
13550 *)
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554 IFS=$as_save_IFS
13555 test -z "$as_dir" && as_dir=.
13556 for ac_exec_ext in '' $ac_executable_extensions; do
13557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13558 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
13559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 break 2
13561 fi
13562 done
13563 done
13564
13565 ;;
13566 esac
13567 fi
13568 GCJ=$ac_cv_path_GCJ
13569
13570 if test -n "$GCJ"; then
13571 echo "$as_me:$LINENO: result: $GCJ" >&5
13572 echo "${ECHO_T}$GCJ" >&6
13573 else
13574 echo "$as_me:$LINENO: result: no" >&5
13575 echo "${ECHO_T}no" >&6
13576 fi
13577
13578 fi
13579 if test "x$GCJ" != x; then
13580 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
13581 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
13582 ac_ext=c
13583 ac_cpp='$CPP $CPPFLAGS'
13584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13587
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #if __GNUC__ <= 3
13590 #error GCJ 4.0.0 or higher is required
13591 #endif
13592
13593 _ACEOF
13594 $GCJ -E conftest.c > /dev/null
13595 gcj_4_result=$?
13596 if test "x$gcj_4_result" = "x0"; then
13597 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
13598 echo "${ECHO_T}4.0 or higher found" >&6
13599 else
13600 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
13601 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
13602 fi
13603 ac_ext=c
13604 ac_cpp='$CPP $CPPFLAGS'
13605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13608
13609 fi
13610
13611
13612 fi;
13613
13614
13615
13616
13617 # Check whether --with-jikes or --without-jikes was given.
13618 if test "${with_jikes+set}" = set; then
13619 withval="$with_jikes"
13620
13621 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
13622
13623 if test "x${withval}" != x; then
13624 if test -f "${withval}"; then
13625 JIKES="${withval}"
13626 else
13627 # Extract the first word of ""${withval}"", so it can be a program name with args.
13628 set dummy "${withval}"; ac_word=$2
13629 echo "$as_me:$LINENO: checking for $ac_word" >&5
13630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13631 if test "${ac_cv_path_JIKES+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 case $JIKES in
13635 [\\/]* | ?:[\\/]*)
13636 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13637 ;;
13638 *)
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13641 do
13642 IFS=$as_save_IFS
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
13645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13646 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 break 2
13649 fi
13650 done
13651 done
13652
13653 ;;
13654 esac
13655 fi
13656 JIKES=$ac_cv_path_JIKES
13657
13658 if test -n "$JIKES"; then
13659 echo "$as_me:$LINENO: result: $JIKES" >&5
13660 echo "${ECHO_T}$JIKES" >&6
13661 else
13662 echo "$as_me:$LINENO: result: no" >&5
13663 echo "${ECHO_T}no" >&6
13664 fi
13665
13666 fi
13667 else
13668 # Extract the first word of ""jikes"", so it can be a program name with args.
13669 set dummy "jikes"; ac_word=$2
13670 echo "$as_me:$LINENO: checking for $ac_word" >&5
13671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13672 if test "${ac_cv_path_JIKES+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 case $JIKES in
13676 [\\/]* | ?:[\\/]*)
13677 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13678 ;;
13679 *)
13680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13682 do
13683 IFS=$as_save_IFS
13684 test -z "$as_dir" && as_dir=.
13685 for ac_exec_ext in '' $ac_executable_extensions; do
13686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13689 break 2
13690 fi
13691 done
13692 done
13693
13694 ;;
13695 esac
13696 fi
13697 JIKES=$ac_cv_path_JIKES
13698
13699 if test -n "$JIKES"; then
13700 echo "$as_me:$LINENO: result: $JIKES" >&5
13701 echo "${ECHO_T}$JIKES" >&6
13702 else
13703 echo "$as_me:$LINENO: result: no" >&5
13704 echo "${ECHO_T}no" >&6
13705 fi
13706
13707 fi
13708 if test "x$JIKES" != "x"; then
13709 echo "$as_me:$LINENO: checking jikes version" >&5
13710 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13711 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13712 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13713 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13714 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13715 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13716 JIKES=""
13717 fi
13718 fi
13719 if test "x$JIKES" != "x"; then
13720 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13721 echo "${ECHO_T}$JIKES_VERSION" >&6
13722 else
13723 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13724 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13725 fi
13726
13727 JIKESENCODING=
13728 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13729 JIKESENCODING='-encoding UTF-8'
13730 fi
13731
13732
13733 JIKESWARNINGS="+Pno-switchcheck"
13734 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13735 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13736 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13737 fi
13738 fi
13739
13740
13741 fi
13742
13743 else
13744 if test "x${withval}" != xno; then
13745
13746 if test "x" != x; then
13747 if test -f ""; then
13748 JIKES=""
13749 else
13750 # Extract the first word of """", so it can be a program name with args.
13751 set dummy ""; ac_word=$2
13752 echo "$as_me:$LINENO: checking for $ac_word" >&5
13753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13754 if test "${ac_cv_path_JIKES+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757 case $JIKES in
13758 [\\/]* | ?:[\\/]*)
13759 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13760 ;;
13761 *)
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13764 do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13769 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13772 fi
13773 done
13774 done
13775
13776 ;;
13777 esac
13778 fi
13779 JIKES=$ac_cv_path_JIKES
13780
13781 if test -n "$JIKES"; then
13782 echo "$as_me:$LINENO: result: $JIKES" >&5
13783 echo "${ECHO_T}$JIKES" >&6
13784 else
13785 echo "$as_me:$LINENO: result: no" >&5
13786 echo "${ECHO_T}no" >&6
13787 fi
13788
13789 fi
13790 else
13791 # Extract the first word of ""jikes"", so it can be a program name with args.
13792 set dummy "jikes"; ac_word=$2
13793 echo "$as_me:$LINENO: checking for $ac_word" >&5
13794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13795 if test "${ac_cv_path_JIKES+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798 case $JIKES in
13799 [\\/]* | ?:[\\/]*)
13800 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13801 ;;
13802 *)
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13812 break 2
13813 fi
13814 done
13815 done
13816
13817 ;;
13818 esac
13819 fi
13820 JIKES=$ac_cv_path_JIKES
13821
13822 if test -n "$JIKES"; then
13823 echo "$as_me:$LINENO: result: $JIKES" >&5
13824 echo "${ECHO_T}$JIKES" >&6
13825 else
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13828 fi
13829
13830 fi
13831 if test "x$JIKES" != "x"; then
13832 echo "$as_me:$LINENO: checking jikes version" >&5
13833 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13834 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13835 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13836 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13837 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13838 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13839 JIKES=""
13840 fi
13841 fi
13842 if test "x$JIKES" != "x"; then
13843 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13844 echo "${ECHO_T}$JIKES_VERSION" >&6
13845 else
13846 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13847 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13848 fi
13849
13850 JIKESENCODING=
13851 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13852 JIKESENCODING='-encoding UTF-8'
13853 fi
13854
13855
13856 JIKESWARNINGS="+Pno-switchcheck"
13857 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13858 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13859 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13860 fi
13861 fi
13862
13863
13864 fi
13865
13866 fi
13867 fi
13868 user_specified_javac=jikes
13869
13870 else
13871
13872
13873 if test "x" != x; then
13874 if test -f ""; then
13875 JIKES=""
13876 else
13877 # Extract the first word of """", so it can be a program name with args.
13878 set dummy ""; ac_word=$2
13879 echo "$as_me:$LINENO: checking for $ac_word" >&5
13880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13881 if test "${ac_cv_path_JIKES+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 else
13884 case $JIKES in
13885 [\\/]* | ?:[\\/]*)
13886 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13887 ;;
13888 *)
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13891 do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900 done
13901 done
13902
13903 ;;
13904 esac
13905 fi
13906 JIKES=$ac_cv_path_JIKES
13907
13908 if test -n "$JIKES"; then
13909 echo "$as_me:$LINENO: result: $JIKES" >&5
13910 echo "${ECHO_T}$JIKES" >&6
13911 else
13912 echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6
13914 fi
13915
13916 fi
13917 else
13918 # Extract the first word of ""jikes"", so it can be a program name with args.
13919 set dummy "jikes"; ac_word=$2
13920 echo "$as_me:$LINENO: checking for $ac_word" >&5
13921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13922 if test "${ac_cv_path_JIKES+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925 case $JIKES in
13926 [\\/]* | ?:[\\/]*)
13927 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
13928 ;;
13929 *)
13930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931 for as_dir in $PATH
13932 do
13933 IFS=$as_save_IFS
13934 test -z "$as_dir" && as_dir=.
13935 for ac_exec_ext in '' $ac_executable_extensions; do
13936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13937 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
13938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13939 break 2
13940 fi
13941 done
13942 done
13943
13944 ;;
13945 esac
13946 fi
13947 JIKES=$ac_cv_path_JIKES
13948
13949 if test -n "$JIKES"; then
13950 echo "$as_me:$LINENO: result: $JIKES" >&5
13951 echo "${ECHO_T}$JIKES" >&6
13952 else
13953 echo "$as_me:$LINENO: result: no" >&5
13954 echo "${ECHO_T}no" >&6
13955 fi
13956
13957 fi
13958 if test "x$JIKES" != "x"; then
13959 echo "$as_me:$LINENO: checking jikes version" >&5
13960 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
13961 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
13962 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
13963 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
13964 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
13965 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
13966 JIKES=""
13967 fi
13968 fi
13969 if test "x$JIKES" != "x"; then
13970 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
13971 echo "${ECHO_T}$JIKES_VERSION" >&6
13972 else
13973 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
13974 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
13975 fi
13976
13977 JIKESENCODING=
13978 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
13979 JIKESENCODING='-encoding UTF-8'
13980 fi
13981
13982
13983 JIKESWARNINGS="+Pno-switchcheck"
13984 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
13985 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
13986 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
13987 fi
13988 fi
13989
13990
13991 fi
13992
13993
13994 fi;
13995
13996
13997
13998
13999 # Check whether --with-kjc or --without-kjc was given.
14000 if test "${with_kjc+set}" = set; then
14001 withval="$with_kjc"
14002
14003 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14004
14005 if test "x${withval}" != x; then
14006 if test -f "${withval}"; then
14007 KJC="${withval}"
14008 else
14009 # Extract the first word of ""${withval}"", so it can be a program name with args.
14010 set dummy "${withval}"; ac_word=$2
14011 echo "$as_me:$LINENO: checking for $ac_word" >&5
14012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14013 if test "${ac_cv_path_KJC+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016 case $KJC in
14017 [\\/]* | ?:[\\/]*)
14018 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14019 ;;
14020 *)
14021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
14027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14028 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030 break 2
14031 fi
14032 done
14033 done
14034
14035 ;;
14036 esac
14037 fi
14038 KJC=$ac_cv_path_KJC
14039
14040 if test -n "$KJC"; then
14041 echo "$as_me:$LINENO: result: $KJC" >&5
14042 echo "${ECHO_T}$KJC" >&6
14043 else
14044 echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6
14046 fi
14047
14048 fi
14049 else
14050 # Extract the first word of ""kJC"", so it can be a program name with args.
14051 set dummy "kJC"; ac_word=$2
14052 echo "$as_me:$LINENO: checking for $ac_word" >&5
14053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14054 if test "${ac_cv_path_KJC+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057 case $KJC in
14058 [\\/]* | ?:[\\/]*)
14059 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14060 ;;
14061 *)
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14064 do
14065 IFS=$as_save_IFS
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14069 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14071 break 2
14072 fi
14073 done
14074 done
14075
14076 ;;
14077 esac
14078 fi
14079 KJC=$ac_cv_path_KJC
14080
14081 if test -n "$KJC"; then
14082 echo "$as_me:$LINENO: result: $KJC" >&5
14083 echo "${ECHO_T}$KJC" >&6
14084 else
14085 echo "$as_me:$LINENO: result: no" >&5
14086 echo "${ECHO_T}no" >&6
14087 fi
14088
14089 fi
14090
14091 else
14092 if test "x${withval}" != xno; then
14093
14094 if test "x" != x; then
14095 if test -f ""; then
14096 KJC=""
14097 else
14098 # Extract the first word of """", so it can be a program name with args.
14099 set dummy ""; ac_word=$2
14100 echo "$as_me:$LINENO: checking for $ac_word" >&5
14101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14102 if test "${ac_cv_path_KJC+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105 case $KJC in
14106 [\\/]* | ?:[\\/]*)
14107 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14108 ;;
14109 *)
14110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111 for as_dir in $PATH
14112 do
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
14115 for ac_exec_ext in '' $ac_executable_extensions; do
14116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14117 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14119 break 2
14120 fi
14121 done
14122 done
14123
14124 ;;
14125 esac
14126 fi
14127 KJC=$ac_cv_path_KJC
14128
14129 if test -n "$KJC"; then
14130 echo "$as_me:$LINENO: result: $KJC" >&5
14131 echo "${ECHO_T}$KJC" >&6
14132 else
14133 echo "$as_me:$LINENO: result: no" >&5
14134 echo "${ECHO_T}no" >&6
14135 fi
14136
14137 fi
14138 else
14139 # Extract the first word of ""kJC"", so it can be a program name with args.
14140 set dummy "kJC"; ac_word=$2
14141 echo "$as_me:$LINENO: checking for $ac_word" >&5
14142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14143 if test "${ac_cv_path_KJC+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 case $KJC in
14147 [\\/]* | ?:[\\/]*)
14148 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14149 ;;
14150 *)
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14153 do
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14158 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14161 fi
14162 done
14163 done
14164
14165 ;;
14166 esac
14167 fi
14168 KJC=$ac_cv_path_KJC
14169
14170 if test -n "$KJC"; then
14171 echo "$as_me:$LINENO: result: $KJC" >&5
14172 echo "${ECHO_T}$KJC" >&6
14173 else
14174 echo "$as_me:$LINENO: result: no" >&5
14175 echo "${ECHO_T}no" >&6
14176 fi
14177
14178 fi
14179
14180 fi
14181 fi
14182 user_specified_javac=kjc
14183
14184 else
14185
14186
14187 if test "x" != x; then
14188 if test -f ""; then
14189 KJC=""
14190 else
14191 # Extract the first word of """", so it can be a program name with args.
14192 set dummy ""; ac_word=$2
14193 echo "$as_me:$LINENO: checking for $ac_word" >&5
14194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14195 if test "${ac_cv_path_KJC+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198 case $KJC in
14199 [\\/]* | ?:[\\/]*)
14200 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14201 ;;
14202 *)
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14210 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14213 fi
14214 done
14215 done
14216
14217 ;;
14218 esac
14219 fi
14220 KJC=$ac_cv_path_KJC
14221
14222 if test -n "$KJC"; then
14223 echo "$as_me:$LINENO: result: $KJC" >&5
14224 echo "${ECHO_T}$KJC" >&6
14225 else
14226 echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6
14228 fi
14229
14230 fi
14231 else
14232 # Extract the first word of ""kJC"", so it can be a program name with args.
14233 set dummy "kJC"; ac_word=$2
14234 echo "$as_me:$LINENO: checking for $ac_word" >&5
14235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14236 if test "${ac_cv_path_KJC+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 else
14239 case $KJC in
14240 [\\/]* | ?:[\\/]*)
14241 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
14242 ;;
14243 *)
14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14246 do
14247 IFS=$as_save_IFS
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
14250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14251 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
14252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14254 fi
14255 done
14256 done
14257
14258 ;;
14259 esac
14260 fi
14261 KJC=$ac_cv_path_KJC
14262
14263 if test -n "$KJC"; then
14264 echo "$as_me:$LINENO: result: $KJC" >&5
14265 echo "${ECHO_T}$KJC" >&6
14266 else
14267 echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6
14269 fi
14270
14271 fi
14272
14273
14274 fi;
14275
14276
14277
14278
14279 # Check whether --with-gcjx or --without-gcjx was given.
14280 if test "${with_gcjx+set}" = set; then
14281 withval="$with_gcjx"
14282
14283 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14284
14285 if test "x${withval}" != x; then
14286 if test -f "${withval}"; then
14287 GCJX="${withval}"
14288 else
14289 # Extract the first word of ""${withval}"", so it can be a program name with args.
14290 set dummy "${withval}"; ac_word=$2
14291 echo "$as_me:$LINENO: checking for $ac_word" >&5
14292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14293 if test "${ac_cv_path_GCJX+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296 case $GCJX in
14297 [\\/]* | ?:[\\/]*)
14298 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14299 ;;
14300 *)
14301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302 for as_dir in $PATH
14303 do
14304 IFS=$as_save_IFS
14305 test -z "$as_dir" && as_dir=.
14306 for ac_exec_ext in '' $ac_executable_extensions; do
14307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14308 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 break 2
14311 fi
14312 done
14313 done
14314
14315 ;;
14316 esac
14317 fi
14318 GCJX=$ac_cv_path_GCJX
14319
14320 if test -n "$GCJX"; then
14321 echo "$as_me:$LINENO: result: $GCJX" >&5
14322 echo "${ECHO_T}$GCJX" >&6
14323 else
14324 echo "$as_me:$LINENO: result: no" >&5
14325 echo "${ECHO_T}no" >&6
14326 fi
14327
14328 fi
14329 else
14330 # Extract the first word of ""gcjx"", so it can be a program name with args.
14331 set dummy "gcjx"; ac_word=$2
14332 echo "$as_me:$LINENO: checking for $ac_word" >&5
14333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14334 if test "${ac_cv_path_GCJX+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337 case $GCJX in
14338 [\\/]* | ?:[\\/]*)
14339 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14340 ;;
14341 *)
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14344 do
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14349 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14352 fi
14353 done
14354 done
14355
14356 ;;
14357 esac
14358 fi
14359 GCJX=$ac_cv_path_GCJX
14360
14361 if test -n "$GCJX"; then
14362 echo "$as_me:$LINENO: result: $GCJX" >&5
14363 echo "${ECHO_T}$GCJX" >&6
14364 else
14365 echo "$as_me:$LINENO: result: no" >&5
14366 echo "${ECHO_T}no" >&6
14367 fi
14368
14369 fi
14370
14371 else
14372 if test "x${withval}" != xno; then
14373
14374 if test "x" != x; then
14375 if test -f ""; then
14376 GCJX=""
14377 else
14378 # Extract the first word of """", so it can be a program name with args.
14379 set dummy ""; ac_word=$2
14380 echo "$as_me:$LINENO: checking for $ac_word" >&5
14381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14382 if test "${ac_cv_path_GCJX+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385 case $GCJX in
14386 [\\/]* | ?:[\\/]*)
14387 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14388 ;;
14389 *)
14390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391 for as_dir in $PATH
14392 do
14393 IFS=$as_save_IFS
14394 test -z "$as_dir" && as_dir=.
14395 for ac_exec_ext in '' $ac_executable_extensions; do
14396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14397 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 break 2
14400 fi
14401 done
14402 done
14403
14404 ;;
14405 esac
14406 fi
14407 GCJX=$ac_cv_path_GCJX
14408
14409 if test -n "$GCJX"; then
14410 echo "$as_me:$LINENO: result: $GCJX" >&5
14411 echo "${ECHO_T}$GCJX" >&6
14412 else
14413 echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6
14415 fi
14416
14417 fi
14418 else
14419 # Extract the first word of ""gcjx"", so it can be a program name with args.
14420 set dummy "gcjx"; ac_word=$2
14421 echo "$as_me:$LINENO: checking for $ac_word" >&5
14422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14423 if test "${ac_cv_path_GCJX+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426 case $GCJX in
14427 [\\/]* | ?:[\\/]*)
14428 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14429 ;;
14430 *)
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14433 do
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
14437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14438 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 break 2
14441 fi
14442 done
14443 done
14444
14445 ;;
14446 esac
14447 fi
14448 GCJX=$ac_cv_path_GCJX
14449
14450 if test -n "$GCJX"; then
14451 echo "$as_me:$LINENO: result: $GCJX" >&5
14452 echo "${ECHO_T}$GCJX" >&6
14453 else
14454 echo "$as_me:$LINENO: result: no" >&5
14455 echo "${ECHO_T}no" >&6
14456 fi
14457
14458 fi
14459
14460 fi
14461 fi
14462 user_specified_javac=gcjx
14463
14464 else
14465
14466
14467 if test "x" != x; then
14468 if test -f ""; then
14469 GCJX=""
14470 else
14471 # Extract the first word of """", so it can be a program name with args.
14472 set dummy ""; ac_word=$2
14473 echo "$as_me:$LINENO: checking for $ac_word" >&5
14474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14475 if test "${ac_cv_path_GCJX+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478 case $GCJX in
14479 [\\/]* | ?:[\\/]*)
14480 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14481 ;;
14482 *)
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14485 do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14493 fi
14494 done
14495 done
14496
14497 ;;
14498 esac
14499 fi
14500 GCJX=$ac_cv_path_GCJX
14501
14502 if test -n "$GCJX"; then
14503 echo "$as_me:$LINENO: result: $GCJX" >&5
14504 echo "${ECHO_T}$GCJX" >&6
14505 else
14506 echo "$as_me:$LINENO: result: no" >&5
14507 echo "${ECHO_T}no" >&6
14508 fi
14509
14510 fi
14511 else
14512 # Extract the first word of ""gcjx"", so it can be a program name with args.
14513 set dummy "gcjx"; ac_word=$2
14514 echo "$as_me:$LINENO: checking for $ac_word" >&5
14515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14516 if test "${ac_cv_path_GCJX+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519 case $GCJX in
14520 [\\/]* | ?:[\\/]*)
14521 ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
14522 ;;
14523 *)
14524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14525 for as_dir in $PATH
14526 do
14527 IFS=$as_save_IFS
14528 test -z "$as_dir" && as_dir=.
14529 for ac_exec_ext in '' $ac_executable_extensions; do
14530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14531 ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
14532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14533 break 2
14534 fi
14535 done
14536 done
14537
14538 ;;
14539 esac
14540 fi
14541 GCJX=$ac_cv_path_GCJX
14542
14543 if test -n "$GCJX"; then
14544 echo "$as_me:$LINENO: result: $GCJX" >&5
14545 echo "${ECHO_T}$GCJX" >&6
14546 else
14547 echo "$as_me:$LINENO: result: no" >&5
14548 echo "${ECHO_T}no" >&6
14549 fi
14550
14551 fi
14552
14553
14554 fi;
14555
14556
14557
14558
14559 # Check whether --with-ecj or --without-ecj was given.
14560 if test "${with_ecj+set}" = set; then
14561 withval="$with_ecj"
14562
14563 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
14564
14565 if test "x${withval}" != x; then
14566 if test -f "${withval}"; then
14567 ECJ="${withval}"
14568 else
14569 # Extract the first word of ""${withval}"", so it can be a program name with args.
14570 set dummy "${withval}"; ac_word=$2
14571 echo "$as_me:$LINENO: checking for $ac_word" >&5
14572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14573 if test "${ac_cv_path_ECJ+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576 case $ECJ in
14577 [\\/]* | ?:[\\/]*)
14578 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14579 ;;
14580 *)
14581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $PATH
14583 do
14584 IFS=$as_save_IFS
14585 test -z "$as_dir" && as_dir=.
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14588 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14590 break 2
14591 fi
14592 done
14593 done
14594
14595 ;;
14596 esac
14597 fi
14598 ECJ=$ac_cv_path_ECJ
14599
14600 if test -n "$ECJ"; then
14601 echo "$as_me:$LINENO: result: $ECJ" >&5
14602 echo "${ECHO_T}$ECJ" >&6
14603 else
14604 echo "$as_me:$LINENO: result: no" >&5
14605 echo "${ECHO_T}no" >&6
14606 fi
14607
14608 fi
14609 else
14610 # Extract the first word of ""ecj"", so it can be a program name with args.
14611 set dummy "ecj"; ac_word=$2
14612 echo "$as_me:$LINENO: checking for $ac_word" >&5
14613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14614 if test "${ac_cv_path_ECJ+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617 case $ECJ in
14618 [\\/]* | ?:[\\/]*)
14619 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14620 ;;
14621 *)
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14624 do
14625 IFS=$as_save_IFS
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14629 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 break 2
14632 fi
14633 done
14634 done
14635
14636 ;;
14637 esac
14638 fi
14639 ECJ=$ac_cv_path_ECJ
14640
14641 if test -n "$ECJ"; then
14642 echo "$as_me:$LINENO: result: $ECJ" >&5
14643 echo "${ECHO_T}$ECJ" >&6
14644 else
14645 echo "$as_me:$LINENO: result: no" >&5
14646 echo "${ECHO_T}no" >&6
14647 fi
14648
14649 fi
14650
14651 else
14652 if test "x${withval}" != xno; then
14653
14654 if test "x" != x; then
14655 if test -f ""; then
14656 ECJ=""
14657 else
14658 # Extract the first word of """", so it can be a program name with args.
14659 set dummy ""; ac_word=$2
14660 echo "$as_me:$LINENO: checking for $ac_word" >&5
14661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14662 if test "${ac_cv_path_ECJ+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 case $ECJ in
14666 [\\/]* | ?:[\\/]*)
14667 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14668 ;;
14669 *)
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14672 do
14673 IFS=$as_save_IFS
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14677 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14679 break 2
14680 fi
14681 done
14682 done
14683
14684 ;;
14685 esac
14686 fi
14687 ECJ=$ac_cv_path_ECJ
14688
14689 if test -n "$ECJ"; then
14690 echo "$as_me:$LINENO: result: $ECJ" >&5
14691 echo "${ECHO_T}$ECJ" >&6
14692 else
14693 echo "$as_me:$LINENO: result: no" >&5
14694 echo "${ECHO_T}no" >&6
14695 fi
14696
14697 fi
14698 else
14699 # Extract the first word of ""ecj"", so it can be a program name with args.
14700 set dummy "ecj"; ac_word=$2
14701 echo "$as_me:$LINENO: checking for $ac_word" >&5
14702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14703 if test "${ac_cv_path_ECJ+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706 case $ECJ in
14707 [\\/]* | ?:[\\/]*)
14708 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14709 ;;
14710 *)
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14713 do
14714 IFS=$as_save_IFS
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14720 break 2
14721 fi
14722 done
14723 done
14724
14725 ;;
14726 esac
14727 fi
14728 ECJ=$ac_cv_path_ECJ
14729
14730 if test -n "$ECJ"; then
14731 echo "$as_me:$LINENO: result: $ECJ" >&5
14732 echo "${ECHO_T}$ECJ" >&6
14733 else
14734 echo "$as_me:$LINENO: result: no" >&5
14735 echo "${ECHO_T}no" >&6
14736 fi
14737
14738 fi
14739
14740 fi
14741 fi
14742 user_specified_javac=ecj
14743
14744 else
14745
14746
14747 if test "x" != x; then
14748 if test -f ""; then
14749 ECJ=""
14750 else
14751 # Extract the first word of """", so it can be a program name with args.
14752 set dummy ""; ac_word=$2
14753 echo "$as_me:$LINENO: checking for $ac_word" >&5
14754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14755 if test "${ac_cv_path_ECJ+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758 case $ECJ in
14759 [\\/]* | ?:[\\/]*)
14760 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14761 ;;
14762 *)
14763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14764 for as_dir in $PATH
14765 do
14766 IFS=$as_save_IFS
14767 test -z "$as_dir" && as_dir=.
14768 for ac_exec_ext in '' $ac_executable_extensions; do
14769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14770 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14772 break 2
14773 fi
14774 done
14775 done
14776
14777 ;;
14778 esac
14779 fi
14780 ECJ=$ac_cv_path_ECJ
14781
14782 if test -n "$ECJ"; then
14783 echo "$as_me:$LINENO: result: $ECJ" >&5
14784 echo "${ECHO_T}$ECJ" >&6
14785 else
14786 echo "$as_me:$LINENO: result: no" >&5
14787 echo "${ECHO_T}no" >&6
14788 fi
14789
14790 fi
14791 else
14792 # Extract the first word of ""ecj"", so it can be a program name with args.
14793 set dummy "ecj"; ac_word=$2
14794 echo "$as_me:$LINENO: checking for $ac_word" >&5
14795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14796 if test "${ac_cv_path_ECJ+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 case $ECJ in
14800 [\\/]* | ?:[\\/]*)
14801 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
14802 ;;
14803 *)
14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807 IFS=$as_save_IFS
14808 test -z "$as_dir" && as_dir=.
14809 for ac_exec_ext in '' $ac_executable_extensions; do
14810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14811 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
14812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14813 break 2
14814 fi
14815 done
14816 done
14817
14818 ;;
14819 esac
14820 fi
14821 ECJ=$ac_cv_path_ECJ
14822
14823 if test -n "$ECJ"; then
14824 echo "$as_me:$LINENO: result: $ECJ" >&5
14825 echo "${ECHO_T}$ECJ" >&6
14826 else
14827 echo "$as_me:$LINENO: result: no" >&5
14828 echo "${ECHO_T}no" >&6
14829 fi
14830
14831 fi
14832
14833
14834 fi;
14835
14836
14837
14838 if test "x${user_specified_javac}" = x; then
14839
14840
14841 if test "x${GCJ}" != x; then
14842 FOUND_GCJ_TRUE=
14843 FOUND_GCJ_FALSE='#'
14844 else
14845 FOUND_GCJ_TRUE='#'
14846 FOUND_GCJ_FALSE=
14847 fi
14848
14849
14850
14851 if test "x${JIKES}" != x; then
14852 FOUND_JIKES_TRUE=
14853 FOUND_JIKES_FALSE='#'
14854 else
14855 FOUND_JIKES_TRUE='#'
14856 FOUND_JIKES_FALSE=
14857 fi
14858
14859
14860
14861 if test "x${ECJ}" != x; then
14862 FOUND_ECJ_TRUE=
14863 FOUND_ECJ_FALSE='#'
14864 else
14865 FOUND_ECJ_TRUE='#'
14866 FOUND_ECJ_FALSE=
14867 fi
14868
14869 else
14870
14871
14872 if test "x${user_specified_javac}" = xgcj; then
14873 FOUND_GCJ_TRUE=
14874 FOUND_GCJ_FALSE='#'
14875 else
14876 FOUND_GCJ_TRUE='#'
14877 FOUND_GCJ_FALSE=
14878 fi
14879
14880
14881
14882 if test "x${user_specified_javac}" = xjikes; then
14883 FOUND_JIKES_TRUE=
14884 FOUND_JIKES_FALSE='#'
14885 else
14886 FOUND_JIKES_TRUE='#'
14887 FOUND_JIKES_FALSE=
14888 fi
14889
14890
14891
14892 if test "x${user_specified_javac}" = xecj; then
14893 FOUND_ECJ_TRUE=
14894 FOUND_ECJ_FALSE='#'
14895 else
14896 FOUND_ECJ_TRUE='#'
14897 FOUND_ECJ_FALSE=
14898 fi
14899
14900 fi
14901
14902
14903 if test "x${user_specified_javac}" = xkjc; then
14904 FOUND_KJC_TRUE=
14905 FOUND_KJC_FALSE='#'
14906 else
14907 FOUND_KJC_TRUE='#'
14908 FOUND_KJC_FALSE=
14909 fi
14910
14911
14912
14913 if test "x${user_specified_javac}" = xgcjx; then
14914 FOUND_GCJX_TRUE=
14915 FOUND_GCJX_FALSE='#'
14916 else
14917 FOUND_GCJX_TRUE='#'
14918 FOUND_GCJX_FALSE=
14919 fi
14920
14921
14922 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
14923 { { echo "$as_me:$LINENO: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&5
14924 echo "$as_me: error: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, --with-ecj, or --with-gcjx" >&2;}
14925 { (exit 1); exit 1; }; }
14926 fi
14927
14928
14929
14930
14931 # Check whether --with-classpath or --without-classpath was given.
14932 if test "${with_classpath+set}" = set; then
14933 withval="$with_classpath"
14934
14935 if test "x${withval}" = xyes; then
14936 # set user classpath to CLASSPATH from env
14937 echo "$as_me:$LINENO: checking for classlib" >&5
14938 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14939 USER_CLASSLIB=${CLASSPATH}
14940
14941 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
14942 echo "${ECHO_T}${USER_CLASSLIB}" >&6
14943 conditional_with_classlib=true
14944 elif test "x${withval}" != x && test "x${withval}" != xno; then
14945 # set user classpath to specified value
14946 echo "$as_me:$LINENO: checking for classlib" >&5
14947 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
14948 USER_CLASSLIB=${withval}
14949
14950 echo "$as_me:$LINENO: result: ${withval}" >&5
14951 echo "${ECHO_T}${withval}" >&6
14952 conditional_with_classlib=true
14953 fi
14954
14955 else
14956 conditional_with_classlib=false
14957 fi;
14958
14959
14960 if test "x${conditional_with_classlib}" = xtrue; then
14961 USER_SPECIFIED_CLASSLIB_TRUE=
14962 USER_SPECIFIED_CLASSLIB_FALSE='#'
14963 else
14964 USER_SPECIFIED_CLASSLIB_TRUE='#'
14965 USER_SPECIFIED_CLASSLIB_FALSE=
14966 fi
14967
14968
14969
14970 # Check whether --with-vm-classes or --without-vm-classes was given.
14971 if test "${with_vm_classes+set}" = set; then
14972 withval="$with_vm_classes"
14973 vm_classes="$with_vm_classes"
14974 else
14975 vm_classes='${top_srcdir}/vm/reference'
14976 fi;
14977
14978
14979
14980 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
14981 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
14982 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
14983 if test "${enable_maintainer_mode+set}" = set; then
14984 enableval="$enable_maintainer_mode"
14985 USE_MAINTAINER_MODE=$enableval
14986 else
14987 USE_MAINTAINER_MODE=no
14988 fi;
14989 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
14990 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
14991
14992
14993 if test $USE_MAINTAINER_MODE = yes; then
14994 MAINTAINER_MODE_TRUE=
14995 MAINTAINER_MODE_FALSE='#'
14996 else
14997 MAINTAINER_MODE_TRUE='#'
14998 MAINTAINER_MODE_FALSE=
14999 fi
15000
15001 MAINT=$MAINTAINER_MODE_TRUE
15002
15003
15004
15005 # Check whether --enable-debug or --disable-debug was given.
15006 if test "${enable_debug+set}" = set; then
15007 enableval="$enable_debug"
15008 case "${enableval}" in
15009 yes)
15010 LIBDEBUG="true"
15011
15012 cat >>confdefs.h <<\_ACEOF
15013 #define DEBUG 1
15014 _ACEOF
15015
15016 ;;
15017 no) LIBDEBUG="false" ;;
15018 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
15019 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
15020 { (exit 1); exit 1; }; } ;;
15021 esac
15022 else
15023 LIBDEBUG="false"
15024 fi;
15025
15026
15027 # Check whether --enable-load-library or --disable-load-library was given.
15028 if test "${enable_load_library+set}" = set; then
15029 enableval="$enable_load_library"
15030 case "${enableval}" in
15031 yes) INIT_LOAD_LIBRARY="true" ;;
15032 no) INIT_LOAD_LIBRARY="false" ;;
15033 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
15034 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
15035 { (exit 1); exit 1; }; } ;;
15036 esac
15037 else
15038 INIT_LOAD_LIBRARY="true"
15039 fi;
15040
15041
15042
15043 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
15044 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
15045 enableval="$enable_java_lang_system_explicit_initialization"
15046 case "${enableval}" in
15047 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
15048 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
15049 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
15050 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
15051 { (exit 1); exit 1; }; } ;;
15052 esac
15053 else
15054 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
15055 fi;
15056
15057
15058
15059 REMOVE=""
15060
15061
15062 # Extract the first word of "mkdir", so it can be a program name with args.
15063 set dummy mkdir; ac_word=$2
15064 echo "$as_me:$LINENO: checking for $ac_word" >&5
15065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15066 if test "${ac_cv_path_MKDIR+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 else
15069 case $MKDIR in
15070 [\\/]* | ?:[\\/]*)
15071 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
15072 ;;
15073 *)
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15076 do
15077 IFS=$as_save_IFS
15078 test -z "$as_dir" && as_dir=.
15079 for ac_exec_ext in '' $ac_executable_extensions; do
15080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15081 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
15082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15083 break 2
15084 fi
15085 done
15086 done
15087
15088 ;;
15089 esac
15090 fi
15091 MKDIR=$ac_cv_path_MKDIR
15092
15093 if test -n "$MKDIR"; then
15094 echo "$as_me:$LINENO: result: $MKDIR" >&5
15095 echo "${ECHO_T}$MKDIR" >&6
15096 else
15097 echo "$as_me:$LINENO: result: no" >&5
15098 echo "${ECHO_T}no" >&6
15099 fi
15100
15101 # Extract the first word of "cp", so it can be a program name with args.
15102 set dummy cp; ac_word=$2
15103 echo "$as_me:$LINENO: checking for $ac_word" >&5
15104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15105 if test "${ac_cv_path_CP+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 else
15108 case $CP in
15109 [\\/]* | ?:[\\/]*)
15110 ac_cv_path_CP="$CP" # Let the user override the test with a path.
15111 ;;
15112 *)
15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114 for as_dir in $PATH
15115 do
15116 IFS=$as_save_IFS
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
15121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15122 break 2
15123 fi
15124 done
15125 done
15126
15127 ;;
15128 esac
15129 fi
15130 CP=$ac_cv_path_CP
15131
15132 if test -n "$CP"; then
15133 echo "$as_me:$LINENO: result: $CP" >&5
15134 echo "${ECHO_T}$CP" >&6
15135 else
15136 echo "$as_me:$LINENO: result: no" >&5
15137 echo "${ECHO_T}no" >&6
15138 fi
15139
15140 # Extract the first word of "date", so it can be a program name with args.
15141 set dummy date; ac_word=$2
15142 echo "$as_me:$LINENO: checking for $ac_word" >&5
15143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15144 if test "${ac_cv_path_DATE+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 case $DATE in
15148 [\\/]* | ?:[\\/]*)
15149 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
15150 ;;
15151 *)
15152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153 for as_dir in $PATH
15154 do
15155 IFS=$as_save_IFS
15156 test -z "$as_dir" && as_dir=.
15157 for ac_exec_ext in '' $ac_executable_extensions; do
15158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15159 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
15160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15161 break 2
15162 fi
15163 done
15164 done
15165
15166 ;;
15167 esac
15168 fi
15169 DATE=$ac_cv_path_DATE
15170
15171 if test -n "$DATE"; then
15172 echo "$as_me:$LINENO: result: $DATE" >&5
15173 echo "${ECHO_T}$DATE" >&6
15174 else
15175 echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6
15177 fi
15178
15179
15180 # Extract the first word of "find", so it can be a program name with args.
15181 set dummy find; ac_word=$2
15182 echo "$as_me:$LINENO: checking for $ac_word" >&5
15183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15184 if test "${ac_cv_path_FIND+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 case $FIND in
15188 [\\/]* | ?:[\\/]*)
15189 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
15190 ;;
15191 *)
15192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15193 for as_dir in $PATH
15194 do
15195 IFS=$as_save_IFS
15196 test -z "$as_dir" && as_dir=.
15197 for ac_exec_ext in '' $ac_executable_extensions; do
15198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15199 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
15200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15201 break 2
15202 fi
15203 done
15204 done
15205
15206 ;;
15207 esac
15208 fi
15209 FIND=$ac_cv_path_FIND
15210
15211 if test -n "$FIND"; then
15212 echo "$as_me:$LINENO: result: $FIND" >&5
15213 echo "${ECHO_T}$FIND" >&6
15214 else
15215 echo "$as_me:$LINENO: result: no" >&5
15216 echo "${ECHO_T}no" >&6
15217 fi
15218
15219
15220
15221 # Extract the first word of "zip", so it can be a program name with args.
15222 set dummy zip; ac_word=$2
15223 echo "$as_me:$LINENO: checking for $ac_word" >&5
15224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15225 if test "${ac_cv_path_ZIP+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 case $ZIP in
15229 [\\/]* | ?:[\\/]*)
15230 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
15231 ;;
15232 *)
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236 IFS=$as_save_IFS
15237 test -z "$as_dir" && as_dir=.
15238 for ac_exec_ext in '' $ac_executable_extensions; do
15239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
15241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15242 break 2
15243 fi
15244 done
15245 done
15246
15247 ;;
15248 esac
15249 fi
15250 ZIP=$ac_cv_path_ZIP
15251
15252 if test -n "$ZIP"; then
15253 echo "$as_me:$LINENO: result: $ZIP" >&5
15254 echo "${ECHO_T}$ZIP" >&6
15255 else
15256 echo "$as_me:$LINENO: result: no" >&5
15257 echo "${ECHO_T}no" >&6
15258 fi
15259
15260
15261 # Check whether --with-fastjar or --without-fastjar was given.
15262 if test "${with_fastjar+set}" = set; then
15263 withval="$with_fastjar"
15264
15265 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
15266 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
15267 FASTJAR=${withval}
15268 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
15269 echo "${ECHO_T}${FASTJAR}" >&6
15270
15271 else
15272 # Extract the first word of "fastjar", so it can be a program name with args.
15273 set dummy fastjar; ac_word=$2
15274 echo "$as_me:$LINENO: checking for $ac_word" >&5
15275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15276 if test "${ac_cv_path_FASTJAR+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279 case $FASTJAR in
15280 [\\/]* | ?:[\\/]*)
15281 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
15282 ;;
15283 *)
15284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15285 for as_dir in $PATH
15286 do
15287 IFS=$as_save_IFS
15288 test -z "$as_dir" && as_dir=.
15289 for ac_exec_ext in '' $ac_executable_extensions; do
15290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15291 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
15292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15293 break 2
15294 fi
15295 done
15296 done
15297
15298 ;;
15299 esac
15300 fi
15301 FASTJAR=$ac_cv_path_FASTJAR
15302
15303 if test -n "$FASTJAR"; then
15304 echo "$as_me:$LINENO: result: $FASTJAR" >&5
15305 echo "${ECHO_T}$FASTJAR" >&6
15306 else
15307 echo "$as_me:$LINENO: result: no" >&5
15308 echo "${ECHO_T}no" >&6
15309 fi
15310
15311 fi;
15312 if test x"${FASTJAR}" != x; then
15313 ZIP=""
15314 fi
15315
15316
15317 # Check whether --with-glibj or --without-glibj was given.
15318 if test "${with_glibj+set}" = set; then
15319 withval="$with_glibj"
15320
15321 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
15322 install_class_files=no
15323 build_class_files=yes
15324 use_zip=yes
15325 elif test "x${withval}" = xboth; then
15326 install_class_files=yes
15327 build_class_files=yes
15328 use_zip=yes
15329 elif test "x${withval}" = xflat; then
15330 install_class_files=yes
15331 build_class_files=yes
15332 use_zip=no
15333 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
15334 install_class_files=no
15335 build_class_files=no
15336 use_zip=no
15337 elif test "x${withval}" = xbuild; then
15338 install_class_files=no
15339 build_class_files=yes
15340 use_zip=no
15341 else
15342 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
15343 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
15344 { (exit 1); exit 1; }; }
15345 fi
15346
15347 else
15348
15349 install_class_files=no
15350 use_zip=yes
15351
15352 fi;
15353
15354
15355 if test "x${use_zip}" = xyes; then
15356 INSTALL_GLIBJ_ZIP_TRUE=
15357 INSTALL_GLIBJ_ZIP_FALSE='#'
15358 else
15359 INSTALL_GLIBJ_ZIP_TRUE='#'
15360 INSTALL_GLIBJ_ZIP_FALSE=
15361 fi
15362
15363
15364
15365 if test "x${install_class_files}" = xyes; then
15366 INSTALL_CLASS_FILES_TRUE=
15367 INSTALL_CLASS_FILES_FALSE='#'
15368 else
15369 INSTALL_CLASS_FILES_TRUE='#'
15370 INSTALL_CLASS_FILES_FALSE=
15371 fi
15372
15373
15374
15375 if test "x${build_class_files}" = xyes; then
15376 BUILD_CLASS_FILES_TRUE=
15377 BUILD_CLASS_FILES_FALSE='#'
15378 else
15379 BUILD_CLASS_FILES_TRUE='#'
15380 BUILD_CLASS_FILES_FALSE=
15381 fi
15382
15383
15384 # Check whether --enable-examples or --disable-examples was given.
15385 if test "${enable_examples+set}" = set; then
15386 enableval="$enable_examples"
15387 case "${enableval}" in
15388 yes) EXAMPLESDIR="examples" ;;
15389 no) EXAMPLESDIR="" ;;
15390 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
15391 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
15392 { (exit 1); exit 1; }; } ;;
15393 esac
15394 else
15395 EXAMPLESDIR="examples"
15396 fi;
15397 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
15398 EXAMPLESDIR=""
15399 fi
15400
15401
15402
15403
15404
15405 # Check whether --with-gjdoc or --without-gjdoc was given.
15406 if test "${with_gjdoc+set}" = set; then
15407 withval="$with_gjdoc"
15408 if test "x${withval}" = xno; then
15409 WITH_GJDOC=no;
15410 elif test "x${withval}" = xyes -o "x{withval}" = x; then
15411 WITH_GJDOC=yes;
15412 # Extract the first word of "gjdoc", so it can be a program name with args.
15413 set dummy gjdoc; ac_word=$2
15414 echo "$as_me:$LINENO: checking for $ac_word" >&5
15415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15416 if test "${ac_cv_path_GJDOC+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 case $GJDOC in
15420 [\\/]* | ?:[\\/]*)
15421 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
15422 ;;
15423 *)
15424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15425 for as_dir in $PATH
15426 do
15427 IFS=$as_save_IFS
15428 test -z "$as_dir" && as_dir=.
15429 for ac_exec_ext in '' $ac_executable_extensions; do
15430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15431 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
15432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15433 break 2
15434 fi
15435 done
15436 done
15437
15438 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
15439 ;;
15440 esac
15441 fi
15442 GJDOC=$ac_cv_path_GJDOC
15443
15444 if test -n "$GJDOC"; then
15445 echo "$as_me:$LINENO: result: $GJDOC" >&5
15446 echo "${ECHO_T}$GJDOC" >&6
15447 else
15448 echo "$as_me:$LINENO: result: no" >&5
15449 echo "${ECHO_T}no" >&6
15450 fi
15451
15452 if test "x${GJDOC}" = xno; then
15453 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
15454 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
15455 { (exit 1); exit 1; }; };
15456 fi
15457 else
15458 WITH_GJDOC=yes
15459 GJDOC="${withval}"
15460 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
15461 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
15462 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
15463 if eval "test \"\${$as_ac_File+set}\" = set"; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466 test "$cross_compiling" = yes &&
15467 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15468 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15469 { (exit 1); exit 1; }; }
15470 if test -r "${GJDOC}"; then
15471 eval "$as_ac_File=yes"
15472 else
15473 eval "$as_ac_File=no"
15474 fi
15475 fi
15476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15477 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15478 if test `eval echo '${'$as_ac_File'}'` = yes; then
15479 :
15480 else
15481 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
15482 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
15483 { (exit 1); exit 1; }; }
15484 fi
15485
15486 fi
15487 else
15488 WITH_GJDOC=no
15489 fi;
15490
15491
15492
15493 if test "x${WITH_GJDOC}" = xyes; then
15494 CREATE_API_DOCS_TRUE=
15495 CREATE_API_DOCS_FALSE='#'
15496 else
15497 CREATE_API_DOCS_TRUE='#'
15498 CREATE_API_DOCS_FALSE=
15499 fi
15500
15501
15502
15503
15504
15505 # Check whether --with-jay or --without-jay was given.
15506 if test "${with_jay+set}" = set; then
15507 withval="$with_jay"
15508
15509 if test -d "${withval}"; then
15510 JAY_DIR_PATH="${withval}"
15511 # Extract the first word of "jay", so it can be a program name with args.
15512 set dummy jay; ac_word=$2
15513 echo "$as_me:$LINENO: checking for $ac_word" >&5
15514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15515 if test "${ac_cv_path_JAY+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518 case $JAY in
15519 [\\/]* | ?:[\\/]*)
15520 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
15521 ;;
15522 *)
15523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15524 for as_dir in ${JAY_DIR_PATH}
15525 do
15526 IFS=$as_save_IFS
15527 test -z "$as_dir" && as_dir=.
15528 for ac_exec_ext in '' $ac_executable_extensions; do
15529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15530 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
15531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15532 break 2
15533 fi
15534 done
15535 done
15536
15537 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
15538 ;;
15539 esac
15540 fi
15541 JAY=$ac_cv_path_JAY
15542
15543 if test -n "$JAY"; then
15544 echo "$as_me:$LINENO: result: $JAY" >&5
15545 echo "${ECHO_T}$JAY" >&6
15546 else
15547 echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6
15549 fi
15550
15551 if test "x${JAY}" = xno; then
15552 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
15553 echo "$as_me: error: \"jay executable not found\"" >&2;}
15554 { (exit 1); exit 1; }; };
15555 fi
15556 else
15557 JAY_DIR_PATH=`dirname "${withval}"`
15558 JAY="${withval}"
15559
15560 fi
15561 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
15562 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
15563 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
15564 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
15565 if eval "test \"\${$as_ac_File+set}\" = set"; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568 test "$cross_compiling" = yes &&
15569 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15570 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15571 { (exit 1); exit 1; }; }
15572 if test -r "${JAY_SKELETON}"; then
15573 eval "$as_ac_File=yes"
15574 else
15575 eval "$as_ac_File=no"
15576 fi
15577 fi
15578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15579 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15580 if test `eval echo '${'$as_ac_File'}'` = yes; then
15581 :
15582 else
15583 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
15584 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
15585 { (exit 1); exit 1; }; }
15586 fi
15587
15588 JAY_FOUND=yes
15589
15590 else
15591
15592 JAY_FOUND=no
15593
15594 fi;
15595
15596
15597 if test "x${JAY_FOUND}" = xyes; then
15598 REGEN_PARSERS_TRUE=
15599 REGEN_PARSERS_FALSE='#'
15600 else
15601 REGEN_PARSERS_TRUE='#'
15602 REGEN_PARSERS_FALSE=
15603 fi
15604
15605
15606
15607 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
15608 if test "${enable_portable_native_sync+set}" = set; then
15609 enableval="$enable_portable_native_sync"
15610 case "${enableval}" in
15611 yes)
15612
15613 cat >>confdefs.h <<\_ACEOF
15614 #define PORTABLE_NATIVE_SYNC 1
15615 _ACEOF
15616
15617 ;;
15618 no) ;;
15619 *)
15620 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
15621 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
15622 { (exit 1); exit 1; }; }
15623 ;;
15624 esac
15625 fi;
15626
15627 # ------ AX CREATE STDINT H -------------------------------------
15628 echo "$as_me:$LINENO: checking for stdint types" >&5
15629 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
15630 ac_stdint_h=`echo include/config-int.h`
15631 # try to shortcircuit - if the default include path of the compiler
15632 # can find a "stdint.h" header then we assume that all compilers can.
15633 if test "${ac_cv_header_stdint_t+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636
15637 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
15638 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
15639 old_CFLAGS="$CFLAGS" ; CFLAGS=""
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <stdint.h>
15647 int
15648 main ()
15649 {
15650 int_least32_t v = 0;
15651 ;
15652 return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657 (eval $ac_compile) 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } &&
15664 { ac_try='test -z "$ac_c_werror_flag"
15665 || test ! -s conftest.err'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; } &&
15671 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15677 ac_cv_stdint_result="(assuming C99 compatible system)"
15678 ac_cv_header_stdint_t="stdint.h";
15679 else
15680 echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_cv_header_stdint_t=""
15684 fi
15685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15686 CXXFLAGS="$old_CXXFLAGS"
15687 CPPFLAGS="$old_CPPFLAGS"
15688 CFLAGS="$old_CFLAGS"
15689 fi
15690
15691
15692 v="... $ac_cv_header_stdint_h"
15693 if test "$ac_stdint_h" = "stdint.h" ; then
15694 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
15695 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
15696 elif test "$ac_stdint_h" = "inttypes.h" ; then
15697 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
15698 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
15699 elif test "_$ac_cv_header_stdint_t" = "_" ; then
15700 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
15701 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
15702 else
15703 ac_cv_header_stdint="$ac_cv_header_stdint_t"
15704 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
15705 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
15706 fi
15707
15708 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
15709
15710
15711 inttype_headers=`echo | sed -e 's/,/ /g'`
15712
15713 ac_cv_stdint_result="(no helpful system typedefs seen)"
15714
15715 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15716 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15717 if test "${ac_cv_header_stdint_x+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720
15721 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
15722 echo "$as_me:$LINENO: result: (..)" >&5
15723 echo "${ECHO_T}(..)" >&6
15724 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
15725 unset ac_cv_type_uintptr_t
15726 unset ac_cv_type_uint64_t
15727 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15728 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15729 if test "${ac_cv_type_uintptr_t+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <$i>
15739
15740 int
15741 main ()
15742 {
15743 if ((uintptr_t *) 0)
15744 return 0;
15745 if (sizeof (uintptr_t))
15746 return 0;
15747 ;
15748 return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext
15752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753 (eval $ac_compile) 2>conftest.er1
15754 ac_status=$?
15755 grep -v '^ *+' conftest.er1 >conftest.err
15756 rm -f conftest.er1
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } &&
15760 { ac_try='test -z "$ac_c_werror_flag"
15761 || test ! -s conftest.err'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; } &&
15767 { ac_try='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_type_uintptr_t=yes
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_cv_type_uintptr_t=no
15779 fi
15780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15781 fi
15782 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15783 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15784 if test $ac_cv_type_uintptr_t = yes; then
15785 ac_cv_header_stdint_x=$i
15786 else
15787 continue
15788 fi
15789
15790 echo "$as_me:$LINENO: checking for uint64_t" >&5
15791 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15792 if test "${ac_cv_type_uint64_t+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h. */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include<$i>
15802
15803 int
15804 main ()
15805 {
15806 if ((uint64_t *) 0)
15807 return 0;
15808 if (sizeof (uint64_t))
15809 return 0;
15810 ;
15811 return 0;
15812 }
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_type_uint64_t=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_cv_type_uint64_t=no
15842 fi
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844 fi
15845 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15846 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15847 if test $ac_cv_type_uint64_t = yes; then
15848 and64="/uint64_t"
15849 else
15850 and64=""
15851 fi
15852
15853 stdint.h inttypes.h sys/inttypes.h $inttype_headers
15854 break
15855 done
15856 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
15857 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
15858
15859 fi
15860 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
15861 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
15862
15863
15864 if test "_$ac_cv_header_stdint_x" = "_" ; then
15865
15866 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
15867 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
15868 if test "${ac_cv_header_stdint_o+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871
15872 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
15873 echo "$as_me:$LINENO: result: (..)" >&5
15874 echo "${ECHO_T}(..)" >&6
15875 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
15876 unset ac_cv_type_uint32_t
15877 unset ac_cv_type_uint64_t
15878 echo "$as_me:$LINENO: checking for uint32_t" >&5
15879 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
15880 if test "${ac_cv_type_uint32_t+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 #include <$i>
15890
15891 int
15892 main ()
15893 {
15894 if ((uint32_t *) 0)
15895 return 0;
15896 if (sizeof (uint32_t))
15897 return 0;
15898 ;
15899 return 0;
15900 }
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -z "$ac_c_werror_flag"
15912 || test ! -s conftest.err'
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; } &&
15918 { ac_try='test -s conftest.$ac_objext'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_cv_type_uint32_t=yes
15925 else
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15928
15929 ac_cv_type_uint32_t=no
15930 fi
15931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15932 fi
15933 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
15934 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
15935 if test $ac_cv_type_uint32_t = yes; then
15936 ac_cv_header_stdint_o=$i
15937 else
15938 continue
15939 fi
15940
15941 echo "$as_me:$LINENO: checking for uint64_t" >&5
15942 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
15943 if test "${ac_cv_type_uint64_t+set}" = set; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 #include<$i>
15953
15954 int
15955 main ()
15956 {
15957 if ((uint64_t *) 0)
15958 return 0;
15959 if (sizeof (uint64_t))
15960 return 0;
15961 ;
15962 return 0;
15963 }
15964 _ACEOF
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967 (eval $ac_compile) 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 ac_cv_type_uint64_t=yes
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_cv_type_uint64_t=no
15993 fi
15994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15997 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
15998 if test $ac_cv_type_uint64_t = yes; then
15999 and64="/uint64_t"
16000 else
16001 and64=""
16002 fi
16003
16004 inttypes.h sys/inttypes.h stdint.h $inttype_headers
16005 break
16006 break;
16007 done
16008 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
16009 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
16010
16011 fi
16012 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
16013 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
16014
16015 fi
16016
16017 if test "_$ac_cv_header_stdint_x" = "_" ; then
16018 if test "_$ac_cv_header_stdint_o" = "_" ; then
16019
16020 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
16021 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
16022 if test "${ac_cv_header_stdint_u+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025
16026 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
16027 echo "$as_me:$LINENO: result: (..)" >&5
16028 echo "${ECHO_T}(..)" >&6
16029 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
16030 unset ac_cv_type_u_int32_t
16031 unset ac_cv_type_u_int64_t
16032 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16033 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16034 if test "${ac_cv_type_u_int32_t+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 else
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <$i>
16044
16045 int
16046 main ()
16047 {
16048 if ((u_int32_t *) 0)
16049 return 0;
16050 if (sizeof (u_int32_t))
16051 return 0;
16052 ;
16053 return 0;
16054 }
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -z "$ac_c_werror_flag"
16066 || test ! -s conftest.err'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } &&
16072 { ac_try='test -s conftest.$ac_objext'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 ac_cv_type_u_int32_t=yes
16079 else
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 ac_cv_type_u_int32_t=no
16084 fi
16085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16086 fi
16087 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16088 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
16089 if test $ac_cv_type_u_int32_t = yes; then
16090 ac_cv_header_stdint_u=$i
16091 else
16092 continue
16093 fi
16094
16095 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16096 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
16097 if test "${ac_cv_type_u_int64_t+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include<$i>
16107
16108 int
16109 main ()
16110 {
16111 if ((u_int64_t *) 0)
16112 return 0;
16113 if (sizeof (u_int64_t))
16114 return 0;
16115 ;
16116 return 0;
16117 }
16118 _ACEOF
16119 rm -f conftest.$ac_objext
16120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16121 (eval $ac_compile) 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } &&
16128 { ac_try='test -z "$ac_c_werror_flag"
16129 || test ! -s conftest.err'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; } &&
16135 { ac_try='test -s conftest.$ac_objext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_cv_type_u_int64_t=yes
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_cv_type_u_int64_t=no
16147 fi
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149 fi
16150 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16151 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
16152 if test $ac_cv_type_u_int64_t = yes; then
16153 and64="/u_int64_t"
16154 else
16155 and64=""
16156 fi
16157
16158 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
16159 break
16160 break;
16161 done
16162 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
16163 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
16164
16165 fi
16166 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
16167 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
16168
16169 fi fi
16170
16171 if test "_$ac_cv_header_stdint_x" = "_" ; then
16172 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
16173 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
16174 echo "$as_me:$LINENO: result: (..)" >&5
16175 echo "${ECHO_T}(..)" >&6
16176
16177 echo "$as_me:$LINENO: checking for char" >&5
16178 echo $ECHO_N "checking for char... $ECHO_C" >&6
16179 if test "${ac_cv_type_char+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 cat >conftest.$ac_ext <<_ACEOF
16183 /* confdefs.h. */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16188 $ac_includes_default
16189 int
16190 main ()
16191 {
16192 if ((char *) 0)
16193 return 0;
16194 if (sizeof (char))
16195 return 0;
16196 ;
16197 return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } &&
16209 { ac_try='test -z "$ac_c_werror_flag"
16210 || test ! -s conftest.err'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } &&
16216 { ac_try='test -s conftest.$ac_objext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_cv_type_char=yes
16223 else
16224 echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_cv_type_char=no
16228 fi
16229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16230 fi
16231 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16232 echo "${ECHO_T}$ac_cv_type_char" >&6
16233
16234 echo "$as_me:$LINENO: checking size of char" >&5
16235 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16236 if test "${ac_cv_sizeof_char+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239 if test "$ac_cv_type_char" = yes; then
16240 # The cast to unsigned long works around a bug in the HP C Compiler
16241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16243 # This bug is HP SR number 8606223364.
16244 if test "$cross_compiling" = yes; then
16245 # Depending upon the size, compute the lo and hi bounds.
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 int
16254 main ()
16255 {
16256 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16257 test_array [0] = 0
16258
16259 ;
16260 return 0;
16261 }
16262 _ACEOF
16263 rm -f conftest.$ac_objext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag"
16273 || test ! -s conftest.err'
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_lo=0 ac_mid=0
16286 while :; do
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16294 int
16295 main ()
16296 {
16297 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16298 test_array [0] = 0
16299
16300 ;
16301 return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -z "$ac_c_werror_flag"
16314 || test ! -s conftest.err'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_hi=$ac_mid; break
16327 else
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 ac_lo=`expr $ac_mid + 1`
16332 if test $ac_lo -le $ac_mid; then
16333 ac_lo= ac_hi=
16334 break
16335 fi
16336 ac_mid=`expr 2 '*' $ac_mid + 1`
16337 fi
16338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 done
16340 else
16341 echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 cat >conftest.$ac_ext <<_ACEOF
16345 /* confdefs.h. */
16346 _ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 $ac_includes_default
16351 int
16352 main ()
16353 {
16354 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16355 test_array [0] = 0
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 rm -f conftest.$ac_objext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16363 (eval $ac_compile) 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest.$ac_objext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_hi=-1 ac_mid=-1
16384 while :; do
16385 cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h. */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 $ac_includes_default
16392 int
16393 main ()
16394 {
16395 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16396 test_array [0] = 0
16397
16398 ;
16399 return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag"
16412 || test ! -s conftest.err'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; } &&
16418 { ac_try='test -s conftest.$ac_objext'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16424 ac_lo=$ac_mid; break
16425 else
16426 echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429 ac_hi=`expr '(' $ac_mid ')' - 1`
16430 if test $ac_mid -le $ac_hi; then
16431 ac_lo= ac_hi=
16432 break
16433 fi
16434 ac_mid=`expr 2 '*' $ac_mid`
16435 fi
16436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16437 done
16438 else
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_lo= ac_hi=
16443 fi
16444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16445 fi
16446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16447 # Binary search between lo and hi bounds.
16448 while test "x$ac_lo" != "x$ac_hi"; do
16449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 $ac_includes_default
16457 int
16458 main ()
16459 {
16460 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16461 test_array [0] = 0
16462
16463 ;
16464 return 0;
16465 }
16466 _ACEOF
16467 rm -f conftest.$ac_objext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16469 (eval $ac_compile) 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } &&
16476 { ac_try='test -z "$ac_c_werror_flag"
16477 || test ! -s conftest.err'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
16484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485 (eval $ac_try) 2>&5
16486 ac_status=$?
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); }; }; then
16489 ac_hi=$ac_mid
16490 else
16491 echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16493
16494 ac_lo=`expr '(' $ac_mid ')' + 1`
16495 fi
16496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16497 done
16498 case $ac_lo in
16499 ?*) ac_cv_sizeof_char=$ac_lo;;
16500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16501 See \`config.log' for more details." >&5
16502 echo "$as_me: error: cannot compute sizeof (char), 77
16503 See \`config.log' for more details." >&2;}
16504 { (exit 1); exit 1; }; } ;;
16505 esac
16506 else
16507 if test "$cross_compiling" = yes; then
16508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16509 See \`config.log' for more details." >&5
16510 echo "$as_me: error: cannot run test program while cross compiling
16511 See \`config.log' for more details." >&2;}
16512 { (exit 1); exit 1; }; }
16513 else
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h. */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 $ac_includes_default
16521 long longval () { return (long) (sizeof (char)); }
16522 unsigned long ulongval () { return (long) (sizeof (char)); }
16523 #include <stdio.h>
16524 #include <stdlib.h>
16525 int
16526 main ()
16527 {
16528
16529 FILE *f = fopen ("conftest.val", "w");
16530 if (! f)
16531 exit (1);
16532 if (((long) (sizeof (char))) < 0)
16533 {
16534 long i = longval ();
16535 if (i != ((long) (sizeof (char))))
16536 exit (1);
16537 fprintf (f, "%ld\n", i);
16538 }
16539 else
16540 {
16541 unsigned long i = ulongval ();
16542 if (i != ((long) (sizeof (char))))
16543 exit (1);
16544 fprintf (f, "%lu\n", i);
16545 }
16546 exit (ferror (f) || fclose (f) != 0);
16547
16548 ;
16549 return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest$ac_exeext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16554 (eval $ac_link) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 ac_cv_sizeof_char=`cat conftest.val`
16564 else
16565 echo "$as_me: program exited with status $ac_status" >&5
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ( exit $ac_status )
16570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16571 See \`config.log' for more details." >&5
16572 echo "$as_me: error: cannot compute sizeof (char), 77
16573 See \`config.log' for more details." >&2;}
16574 { (exit 1); exit 1; }; }
16575 fi
16576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16577 fi
16578 fi
16579 rm -f conftest.val
16580 else
16581 ac_cv_sizeof_char=0
16582 fi
16583 fi
16584 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16585 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16586 cat >>confdefs.h <<_ACEOF
16587 #define SIZEOF_CHAR $ac_cv_sizeof_char
16588 _ACEOF
16589
16590
16591 echo "$as_me:$LINENO: checking for short" >&5
16592 echo $ECHO_N "checking for short... $ECHO_C" >&6
16593 if test "${ac_cv_type_short+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 $ac_includes_default
16603 int
16604 main ()
16605 {
16606 if ((short *) 0)
16607 return 0;
16608 if (sizeof (short))
16609 return 0;
16610 ;
16611 return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16616 (eval $ac_compile) 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag"
16624 || test ! -s conftest.err'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_type_short=yes
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 ac_cv_type_short=no
16642 fi
16643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16644 fi
16645 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16646 echo "${ECHO_T}$ac_cv_type_short" >&6
16647
16648 echo "$as_me:$LINENO: checking size of short" >&5
16649 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16650 if test "${ac_cv_sizeof_short+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653 if test "$ac_cv_type_short" = yes; then
16654 # The cast to unsigned long works around a bug in the HP C Compiler
16655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16657 # This bug is HP SR number 8606223364.
16658 if test "$cross_compiling" = yes; then
16659 # Depending upon the size, compute the lo and hi bounds.
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 $ac_includes_default
16667 int
16668 main ()
16669 {
16670 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16671 test_array [0] = 0
16672
16673 ;
16674 return 0;
16675 }
16676 _ACEOF
16677 rm -f conftest.$ac_objext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16679 (eval $ac_compile) 2>conftest.er1
16680 ac_status=$?
16681 grep -v '^ *+' conftest.er1 >conftest.err
16682 rm -f conftest.er1
16683 cat conftest.err >&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } &&
16686 { ac_try='test -z "$ac_c_werror_flag"
16687 || test ! -s conftest.err'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; } &&
16693 { ac_try='test -s conftest.$ac_objext'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699 ac_lo=0 ac_mid=0
16700 while :; do
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 int
16709 main ()
16710 {
16711 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16712 test_array [0] = 0
16713
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720 (eval $ac_compile) 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag"
16728 || test ! -s conftest.err'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; } &&
16734 { ac_try='test -s conftest.$ac_objext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_hi=$ac_mid; break
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 ac_lo=`expr $ac_mid + 1`
16746 if test $ac_lo -le $ac_mid; then
16747 ac_lo= ac_hi=
16748 break
16749 fi
16750 ac_mid=`expr 2 '*' $ac_mid + 1`
16751 fi
16752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16753 done
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 $ac_includes_default
16765 int
16766 main ()
16767 {
16768 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16769 test_array [0] = 0
16770
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777 (eval $ac_compile) 2>conftest.er1
16778 ac_status=$?
16779 grep -v '^ *+' conftest.er1 >conftest.err
16780 rm -f conftest.er1
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
16784 { ac_try='test -z "$ac_c_werror_flag"
16785 || test ! -s conftest.err'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } &&
16791 { ac_try='test -s conftest.$ac_objext'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797 ac_hi=-1 ac_mid=-1
16798 while :; do
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 $ac_includes_default
16806 int
16807 main ()
16808 {
16809 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16810 test_array [0] = 0
16811
16812 ;
16813 return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16818 (eval $ac_compile) 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag"
16826 || test ! -s conftest.err'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest.$ac_objext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_lo=$ac_mid; break
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 ac_hi=`expr '(' $ac_mid ')' - 1`
16844 if test $ac_mid -le $ac_hi; then
16845 ac_lo= ac_hi=
16846 break
16847 fi
16848 ac_mid=`expr 2 '*' $ac_mid`
16849 fi
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851 done
16852 else
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16855
16856 ac_lo= ac_hi=
16857 fi
16858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16859 fi
16860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 # Binary search between lo and hi bounds.
16862 while test "x$ac_lo" != "x$ac_hi"; do
16863 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16864 cat >conftest.$ac_ext <<_ACEOF
16865 /* confdefs.h. */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870 $ac_includes_default
16871 int
16872 main ()
16873 {
16874 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16875 test_array [0] = 0
16876
16877 ;
16878 return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag"
16891 || test ! -s conftest.err'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; } &&
16897 { ac_try='test -s conftest.$ac_objext'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; }; then
16903 ac_hi=$ac_mid
16904 else
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16907
16908 ac_lo=`expr '(' $ac_mid ')' + 1`
16909 fi
16910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16911 done
16912 case $ac_lo in
16913 ?*) ac_cv_sizeof_short=$ac_lo;;
16914 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16915 See \`config.log' for more details." >&5
16916 echo "$as_me: error: cannot compute sizeof (short), 77
16917 See \`config.log' for more details." >&2;}
16918 { (exit 1); exit 1; }; } ;;
16919 esac
16920 else
16921 if test "$cross_compiling" = yes; then
16922 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16923 See \`config.log' for more details." >&5
16924 echo "$as_me: error: cannot run test program while cross compiling
16925 See \`config.log' for more details." >&2;}
16926 { (exit 1); exit 1; }; }
16927 else
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 $ac_includes_default
16935 long longval () { return (long) (sizeof (short)); }
16936 unsigned long ulongval () { return (long) (sizeof (short)); }
16937 #include <stdio.h>
16938 #include <stdlib.h>
16939 int
16940 main ()
16941 {
16942
16943 FILE *f = fopen ("conftest.val", "w");
16944 if (! f)
16945 exit (1);
16946 if (((long) (sizeof (short))) < 0)
16947 {
16948 long i = longval ();
16949 if (i != ((long) (sizeof (short))))
16950 exit (1);
16951 fprintf (f, "%ld\n", i);
16952 }
16953 else
16954 {
16955 unsigned long i = ulongval ();
16956 if (i != ((long) (sizeof (short))))
16957 exit (1);
16958 fprintf (f, "%lu\n", i);
16959 }
16960 exit (ferror (f) || fclose (f) != 0);
16961
16962 ;
16963 return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest$ac_exeext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16968 (eval $ac_link) 2>&5
16969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_sizeof_short=`cat conftest.val`
16978 else
16979 echo "$as_me: program exited with status $ac_status" >&5
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ( exit $ac_status )
16984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16985 See \`config.log' for more details." >&5
16986 echo "$as_me: error: cannot compute sizeof (short), 77
16987 See \`config.log' for more details." >&2;}
16988 { (exit 1); exit 1; }; }
16989 fi
16990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16991 fi
16992 fi
16993 rm -f conftest.val
16994 else
16995 ac_cv_sizeof_short=0
16996 fi
16997 fi
16998 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16999 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17000 cat >>confdefs.h <<_ACEOF
17001 #define SIZEOF_SHORT $ac_cv_sizeof_short
17002 _ACEOF
17003
17004
17005 echo "$as_me:$LINENO: checking for int" >&5
17006 echo $ECHO_N "checking for int... $ECHO_C" >&6
17007 if test "${ac_cv_type_int+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17017 int
17018 main ()
17019 {
17020 if ((int *) 0)
17021 return 0;
17022 if (sizeof (int))
17023 return 0;
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17030 (eval $ac_compile) 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag"
17038 || test ! -s conftest.err'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_cv_type_int=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17054
17055 ac_cv_type_int=no
17056 fi
17057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17058 fi
17059 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17060 echo "${ECHO_T}$ac_cv_type_int" >&6
17061
17062 echo "$as_me:$LINENO: checking size of int" >&5
17063 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17064 if test "${ac_cv_sizeof_int+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067 if test "$ac_cv_type_int" = yes; then
17068 # The cast to unsigned long works around a bug in the HP C Compiler
17069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17071 # This bug is HP SR number 8606223364.
17072 if test "$cross_compiling" = yes; then
17073 # Depending upon the size, compute the lo and hi bounds.
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h. */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 $ac_includes_default
17081 int
17082 main ()
17083 {
17084 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17085 test_array [0] = 0
17086
17087 ;
17088 return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17093 (eval $ac_compile) 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag"
17101 || test ! -s conftest.err'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest.$ac_objext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_lo=0 ac_mid=0
17114 while :; do
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 $ac_includes_default
17122 int
17123 main ()
17124 {
17125 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17126 test_array [0] = 0
17127
17128 ;
17129 return 0;
17130 }
17131 _ACEOF
17132 rm -f conftest.$ac_objext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17134 (eval $ac_compile) 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest.$ac_objext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_hi=$ac_mid; break
17155 else
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 ac_lo=`expr $ac_mid + 1`
17160 if test $ac_lo -le $ac_mid; then
17161 ac_lo= ac_hi=
17162 break
17163 fi
17164 ac_mid=`expr 2 '*' $ac_mid + 1`
17165 fi
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17167 done
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h. */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 $ac_includes_default
17179 int
17180 main ()
17181 {
17182 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17183 test_array [0] = 0
17184
17185 ;
17186 return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17191 (eval $ac_compile) 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag"
17199 || test ! -s conftest.err'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest.$ac_objext'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211 ac_hi=-1 ac_mid=-1
17212 while :; do
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 $ac_includes_default
17220 int
17221 main ()
17222 {
17223 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17224 test_array [0] = 0
17225
17226 ;
17227 return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232 (eval $ac_compile) 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest.$ac_objext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_lo=$ac_mid; break
17253 else
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257 ac_hi=`expr '(' $ac_mid ')' - 1`
17258 if test $ac_mid -le $ac_hi; then
17259 ac_lo= ac_hi=
17260 break
17261 fi
17262 ac_mid=`expr 2 '*' $ac_mid`
17263 fi
17264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17265 done
17266 else
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_lo= ac_hi=
17271 fi
17272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17273 fi
17274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17275 # Binary search between lo and hi bounds.
17276 while test "x$ac_lo" != "x$ac_hi"; do
17277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17278 cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h. */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 $ac_includes_default
17285 int
17286 main ()
17287 {
17288 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17289 test_array [0] = 0
17290
17291 ;
17292 return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17297 (eval $ac_compile) 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -z "$ac_c_werror_flag"
17305 || test ! -s conftest.err'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; } &&
17311 { ac_try='test -s conftest.$ac_objext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_hi=$ac_mid
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 ac_lo=`expr '(' $ac_mid ')' + 1`
17323 fi
17324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17325 done
17326 case $ac_lo in
17327 ?*) ac_cv_sizeof_int=$ac_lo;;
17328 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17329 See \`config.log' for more details." >&5
17330 echo "$as_me: error: cannot compute sizeof (int), 77
17331 See \`config.log' for more details." >&2;}
17332 { (exit 1); exit 1; }; } ;;
17333 esac
17334 else
17335 if test "$cross_compiling" = yes; then
17336 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17337 See \`config.log' for more details." >&5
17338 echo "$as_me: error: cannot run test program while cross compiling
17339 See \`config.log' for more details." >&2;}
17340 { (exit 1); exit 1; }; }
17341 else
17342 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 $ac_includes_default
17349 long longval () { return (long) (sizeof (int)); }
17350 unsigned long ulongval () { return (long) (sizeof (int)); }
17351 #include <stdio.h>
17352 #include <stdlib.h>
17353 int
17354 main ()
17355 {
17356
17357 FILE *f = fopen ("conftest.val", "w");
17358 if (! f)
17359 exit (1);
17360 if (((long) (sizeof (int))) < 0)
17361 {
17362 long i = longval ();
17363 if (i != ((long) (sizeof (int))))
17364 exit (1);
17365 fprintf (f, "%ld\n", i);
17366 }
17367 else
17368 {
17369 unsigned long i = ulongval ();
17370 if (i != ((long) (sizeof (int))))
17371 exit (1);
17372 fprintf (f, "%lu\n", i);
17373 }
17374 exit (ferror (f) || fclose (f) != 0);
17375
17376 ;
17377 return 0;
17378 }
17379 _ACEOF
17380 rm -f conftest$ac_exeext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17382 (eval $ac_link) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 ac_cv_sizeof_int=`cat conftest.val`
17392 else
17393 echo "$as_me: program exited with status $ac_status" >&5
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397 ( exit $ac_status )
17398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17399 See \`config.log' for more details." >&5
17400 echo "$as_me: error: cannot compute sizeof (int), 77
17401 See \`config.log' for more details." >&2;}
17402 { (exit 1); exit 1; }; }
17403 fi
17404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17405 fi
17406 fi
17407 rm -f conftest.val
17408 else
17409 ac_cv_sizeof_int=0
17410 fi
17411 fi
17412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17413 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17414 cat >>confdefs.h <<_ACEOF
17415 #define SIZEOF_INT $ac_cv_sizeof_int
17416 _ACEOF
17417
17418
17419 echo "$as_me:$LINENO: checking for long" >&5
17420 echo $ECHO_N "checking for long... $ECHO_C" >&6
17421 if test "${ac_cv_type_long+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 $ac_includes_default
17431 int
17432 main ()
17433 {
17434 if ((long *) 0)
17435 return 0;
17436 if (sizeof (long))
17437 return 0;
17438 ;
17439 return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17444 (eval $ac_compile) 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest.$ac_objext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_cv_type_long=yes
17465 else
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 ac_cv_type_long=no
17470 fi
17471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17472 fi
17473 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17474 echo "${ECHO_T}$ac_cv_type_long" >&6
17475
17476 echo "$as_me:$LINENO: checking size of long" >&5
17477 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17478 if test "${ac_cv_sizeof_long+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480 else
17481 if test "$ac_cv_type_long" = yes; then
17482 # The cast to unsigned long works around a bug in the HP C Compiler
17483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17485 # This bug is HP SR number 8606223364.
17486 if test "$cross_compiling" = yes; then
17487 # Depending upon the size, compute the lo and hi bounds.
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17494 $ac_includes_default
17495 int
17496 main ()
17497 {
17498 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17499 test_array [0] = 0
17500
17501 ;
17502 return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest.$ac_objext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17507 (eval $ac_compile) 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -z "$ac_c_werror_flag"
17515 || test ! -s conftest.err'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest.$ac_objext'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; }; then
17527 ac_lo=0 ac_mid=0
17528 while :; do
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 $ac_includes_default
17536 int
17537 main ()
17538 {
17539 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17540 test_array [0] = 0
17541
17542 ;
17543 return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548 (eval $ac_compile) 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest.$ac_objext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 ac_hi=$ac_mid; break
17569 else
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 ac_lo=`expr $ac_mid + 1`
17574 if test $ac_lo -le $ac_mid; then
17575 ac_lo= ac_hi=
17576 break
17577 fi
17578 ac_mid=`expr 2 '*' $ac_mid + 1`
17579 fi
17580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17581 done
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 $ac_includes_default
17593 int
17594 main ()
17595 {
17596 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17597 test_array [0] = 0
17598
17599 ;
17600 return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17605 (eval $ac_compile) 2>conftest.er1
17606 ac_status=$?
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
17612 { ac_try='test -z "$ac_c_werror_flag"
17613 || test ! -s conftest.err'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest.$ac_objext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_hi=-1 ac_mid=-1
17626 while :; do
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17634 int
17635 main ()
17636 {
17637 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17638 test_array [0] = 0
17639
17640 ;
17641 return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17646 (eval $ac_compile) 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
17653 { ac_try='test -z "$ac_c_werror_flag"
17654 || test ! -s conftest.err'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest.$ac_objext'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_lo=$ac_mid; break
17667 else
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 ac_hi=`expr '(' $ac_mid ')' - 1`
17672 if test $ac_mid -le $ac_hi; then
17673 ac_lo= ac_hi=
17674 break
17675 fi
17676 ac_mid=`expr 2 '*' $ac_mid`
17677 fi
17678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17679 done
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_lo= ac_hi=
17685 fi
17686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17687 fi
17688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17689 # Binary search between lo and hi bounds.
17690 while test "x$ac_lo" != "x$ac_hi"; do
17691 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17692 cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h. */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 $ac_includes_default
17699 int
17700 main ()
17701 {
17702 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17703 test_array [0] = 0
17704
17705 ;
17706 return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext
17710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17711 (eval $ac_compile) 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag"
17719 || test ! -s conftest.err'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_hi=$ac_mid
17732 else
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736 ac_lo=`expr '(' $ac_mid ')' + 1`
17737 fi
17738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17739 done
17740 case $ac_lo in
17741 ?*) ac_cv_sizeof_long=$ac_lo;;
17742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17743 See \`config.log' for more details." >&5
17744 echo "$as_me: error: cannot compute sizeof (long), 77
17745 See \`config.log' for more details." >&2;}
17746 { (exit 1); exit 1; }; } ;;
17747 esac
17748 else
17749 if test "$cross_compiling" = yes; then
17750 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17751 See \`config.log' for more details." >&5
17752 echo "$as_me: error: cannot run test program while cross compiling
17753 See \`config.log' for more details." >&2;}
17754 { (exit 1); exit 1; }; }
17755 else
17756 cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 long longval () { return (long) (sizeof (long)); }
17764 unsigned long ulongval () { return (long) (sizeof (long)); }
17765 #include <stdio.h>
17766 #include <stdlib.h>
17767 int
17768 main ()
17769 {
17770
17771 FILE *f = fopen ("conftest.val", "w");
17772 if (! f)
17773 exit (1);
17774 if (((long) (sizeof (long))) < 0)
17775 {
17776 long i = longval ();
17777 if (i != ((long) (sizeof (long))))
17778 exit (1);
17779 fprintf (f, "%ld\n", i);
17780 }
17781 else
17782 {
17783 unsigned long i = ulongval ();
17784 if (i != ((long) (sizeof (long))))
17785 exit (1);
17786 fprintf (f, "%lu\n", i);
17787 }
17788 exit (ferror (f) || fclose (f) != 0);
17789
17790 ;
17791 return 0;
17792 }
17793 _ACEOF
17794 rm -f conftest$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_sizeof_long=`cat conftest.val`
17806 else
17807 echo "$as_me: program exited with status $ac_status" >&5
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17810
17811 ( exit $ac_status )
17812 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17813 See \`config.log' for more details." >&5
17814 echo "$as_me: error: cannot compute sizeof (long), 77
17815 See \`config.log' for more details." >&2;}
17816 { (exit 1); exit 1; }; }
17817 fi
17818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17819 fi
17820 fi
17821 rm -f conftest.val
17822 else
17823 ac_cv_sizeof_long=0
17824 fi
17825 fi
17826 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17827 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17828 cat >>confdefs.h <<_ACEOF
17829 #define SIZEOF_LONG $ac_cv_sizeof_long
17830 _ACEOF
17831
17832
17833 echo "$as_me:$LINENO: checking for void*" >&5
17834 echo $ECHO_N "checking for void*... $ECHO_C" >&6
17835 if test "${ac_cv_type_voidp+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 $ac_includes_default
17845 int
17846 main ()
17847 {
17848 if ((void* *) 0)
17849 return 0;
17850 if (sizeof (void*))
17851 return 0;
17852 ;
17853 return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_type_voidp=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 ac_cv_type_voidp=no
17884 fi
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17886 fi
17887 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
17888 echo "${ECHO_T}$ac_cv_type_voidp" >&6
17889
17890 echo "$as_me:$LINENO: checking size of void*" >&5
17891 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
17892 if test "${ac_cv_sizeof_voidp+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 else
17895 if test "$ac_cv_type_voidp" = yes; then
17896 # The cast to unsigned long works around a bug in the HP C Compiler
17897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17899 # This bug is HP SR number 8606223364.
17900 if test "$cross_compiling" = yes; then
17901 # Depending upon the size, compute the lo and hi bounds.
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 int
17910 main ()
17911 {
17912 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
17913 test_array [0] = 0
17914
17915 ;
17916 return 0;
17917 }
17918 _ACEOF
17919 rm -f conftest.$ac_objext
17920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17921 (eval $ac_compile) 2>conftest.er1
17922 ac_status=$?
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -z "$ac_c_werror_flag"
17929 || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_lo=0 ac_mid=0
17942 while :; do
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 $ac_includes_default
17950 int
17951 main ()
17952 {
17953 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17954 test_array [0] = 0
17955
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17962 (eval $ac_compile) 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag"
17970 || test ! -s conftest.err'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest.$ac_objext'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_hi=$ac_mid; break
17983 else
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17986
17987 ac_lo=`expr $ac_mid + 1`
17988 if test $ac_lo -le $ac_mid; then
17989 ac_lo= ac_hi=
17990 break
17991 fi
17992 ac_mid=`expr 2 '*' $ac_mid + 1`
17993 fi
17994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17995 done
17996 else
17997 echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
17999
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 $ac_includes_default
18007 int
18008 main ()
18009 {
18010 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
18011 test_array [0] = 0
18012
18013 ;
18014 return 0;
18015 }
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019 (eval $ac_compile) 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag"
18027 || test ! -s conftest.err'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_hi=-1 ac_mid=-1
18040 while :; do
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18048 int
18049 main ()
18050 {
18051 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
18052 test_array [0] = 0
18053
18054 ;
18055 return 0;
18056 }
18057 _ACEOF
18058 rm -f conftest.$ac_objext
18059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18060 (eval $ac_compile) 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest.$ac_objext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_lo=$ac_mid; break
18081 else
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 ac_hi=`expr '(' $ac_mid ')' - 1`
18086 if test $ac_mid -le $ac_hi; then
18087 ac_lo= ac_hi=
18088 break
18089 fi
18090 ac_mid=`expr 2 '*' $ac_mid`
18091 fi
18092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18093 done
18094 else
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ac_lo= ac_hi=
18099 fi
18100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18101 fi
18102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18103 # Binary search between lo and hi bounds.
18104 while test "x$ac_lo" != "x$ac_hi"; do
18105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h. */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 $ac_includes_default
18113 int
18114 main ()
18115 {
18116 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
18117 test_array [0] = 0
18118
18119 ;
18120 return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18125 (eval $ac_compile) 2>conftest.er1
18126 ac_status=$?
18127 grep -v '^ *+' conftest.er1 >conftest.err
18128 rm -f conftest.er1
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); } &&
18132 { ac_try='test -z "$ac_c_werror_flag"
18133 || test ! -s conftest.err'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest.$ac_objext'
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_hi=$ac_mid
18146 else
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18149
18150 ac_lo=`expr '(' $ac_mid ')' + 1`
18151 fi
18152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18153 done
18154 case $ac_lo in
18155 ?*) ac_cv_sizeof_voidp=$ac_lo;;
18156 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
18157 See \`config.log' for more details." >&5
18158 echo "$as_me: error: cannot compute sizeof (void*), 77
18159 See \`config.log' for more details." >&2;}
18160 { (exit 1); exit 1; }; } ;;
18161 esac
18162 else
18163 if test "$cross_compiling" = yes; then
18164 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18165 See \`config.log' for more details." >&5
18166 echo "$as_me: error: cannot run test program while cross compiling
18167 See \`config.log' for more details." >&2;}
18168 { (exit 1); exit 1; }; }
18169 else
18170 cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h. */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 $ac_includes_default
18177 long longval () { return (long) (sizeof (void*)); }
18178 unsigned long ulongval () { return (long) (sizeof (void*)); }
18179 #include <stdio.h>
18180 #include <stdlib.h>
18181 int
18182 main ()
18183 {
18184
18185 FILE *f = fopen ("conftest.val", "w");
18186 if (! f)
18187 exit (1);
18188 if (((long) (sizeof (void*))) < 0)
18189 {
18190 long i = longval ();
18191 if (i != ((long) (sizeof (void*))))
18192 exit (1);
18193 fprintf (f, "%ld\n", i);
18194 }
18195 else
18196 {
18197 unsigned long i = ulongval ();
18198 if (i != ((long) (sizeof (void*))))
18199 exit (1);
18200 fprintf (f, "%lu\n", i);
18201 }
18202 exit (ferror (f) || fclose (f) != 0);
18203
18204 ;
18205 return 0;
18206 }
18207 _ACEOF
18208 rm -f conftest$ac_exeext
18209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_sizeof_voidp=`cat conftest.val`
18220 else
18221 echo "$as_me: program exited with status $ac_status" >&5
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225 ( exit $ac_status )
18226 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
18227 See \`config.log' for more details." >&5
18228 echo "$as_me: error: cannot compute sizeof (void*), 77
18229 See \`config.log' for more details." >&2;}
18230 { (exit 1); exit 1; }; }
18231 fi
18232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18233 fi
18234 fi
18235 rm -f conftest.val
18236 else
18237 ac_cv_sizeof_voidp=0
18238 fi
18239 fi
18240 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
18241 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
18242 cat >>confdefs.h <<_ACEOF
18243 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
18244 _ACEOF
18245
18246
18247 ac_cv_char_data_model=""
18248 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
18249 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
18250 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
18251 ac_cv_long_data_model=""
18252 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
18253 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
18254 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
18255 echo "$as_me:$LINENO: checking data model" >&5
18256 echo $ECHO_N "checking data model... $ECHO_C" >&6
18257 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
18258 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
18259 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
18260 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
18261 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
18262 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
18263 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
18264 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
18265 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
18266 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
18267 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
18268 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
18269 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
18270 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
18271 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
18272 222/*|333/*|444/*|666/*|888/*) :
18273 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
18274 *) ac_cv_data_model="none" ; n="very unusual model" ;;
18275 esac
18276 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
18277 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
18278
18279 fi
18280
18281 if test "_$ac_cv_header_stdint_x" != "_" ; then
18282 ac_cv_header_stdint="$ac_cv_header_stdint_x"
18283 elif test "_$ac_cv_header_stdint_o" != "_" ; then
18284 ac_cv_header_stdint="$ac_cv_header_stdint_o"
18285 elif test "_$ac_cv_header_stdint_u" != "_" ; then
18286 ac_cv_header_stdint="$ac_cv_header_stdint_u"
18287 else
18288 ac_cv_header_stdint="stddef.h"
18289 fi
18290
18291 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
18292 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
18293 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
18294 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
18295 unset ac_cv_type_int_least32_t
18296 unset ac_cv_type_int_fast32_t
18297 echo "$as_me:$LINENO: checking for int_least32_t" >&5
18298 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
18299 if test "${ac_cv_type_int_least32_t+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h. */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 #include <$ac_cv_header_stdint>
18309
18310 int
18311 main ()
18312 {
18313 if ((int_least32_t *) 0)
18314 return 0;
18315 if (sizeof (int_least32_t))
18316 return 0;
18317 ;
18318 return 0;
18319 }
18320 _ACEOF
18321 rm -f conftest.$ac_objext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18323 (eval $ac_compile) 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag"
18331 || test ! -s conftest.err'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest.$ac_objext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_type_int_least32_t=yes
18344 else
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 ac_cv_type_int_least32_t=no
18349 fi
18350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18351 fi
18352 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
18353 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
18354
18355 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
18356 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
18357 if test "${ac_cv_type_int_fast32_t+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h. */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 #include<$ac_cv_header_stdint>
18367
18368 int
18369 main ()
18370 {
18371 if ((int_fast32_t *) 0)
18372 return 0;
18373 if (sizeof (int_fast32_t))
18374 return 0;
18375 ;
18376 return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18381 (eval $ac_compile) 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } &&
18388 { ac_try='test -z "$ac_c_werror_flag"
18389 || test ! -s conftest.err'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; } &&
18395 { ac_try='test -s conftest.$ac_objext'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; }; then
18401 ac_cv_type_int_fast32_t=yes
18402 else
18403 echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 ac_cv_type_int_fast32_t=no
18407 fi
18408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18409 fi
18410 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
18411 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
18412
18413 echo "$as_me:$LINENO: checking for intmax_t" >&5
18414 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
18415 if test "${ac_cv_type_intmax_t+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 else
18418 cat >conftest.$ac_ext <<_ACEOF
18419 /* confdefs.h. */
18420 _ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 #include <$ac_cv_header_stdint>
18425
18426 int
18427 main ()
18428 {
18429 if ((intmax_t *) 0)
18430 return 0;
18431 if (sizeof (intmax_t))
18432 return 0;
18433 ;
18434 return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest.$ac_objext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18439 (eval $ac_compile) 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag"
18447 || test ! -s conftest.err'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; } &&
18453 { ac_try='test -s conftest.$ac_objext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_type_intmax_t=yes
18460 else
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_cv_type_intmax_t=no
18465 fi
18466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18467 fi
18468 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
18469 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
18470
18471
18472 fi # shortcircut to system "stdint.h"
18473 # ------------------ PREPARE VARIABLES ------------------------------
18474 if test "$GCC" = "yes" ; then
18475 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
18476 else
18477 ac_cv_stdint_message="using $CC"
18478 fi
18479
18480 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
18481 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
18482
18483 # ----------------- DONE inttypes.h checks START header -------------
18484 ac_config_commands="$ac_config_commands $ac_stdint_h"
18485
18486
18487
18488
18489 # Check whether --with-glibj_zip or --without-glibj_zip was given.
18490 if test "${with_glibj_zip+set}" = set; then
18491 withval="$with_glibj_zip"
18492
18493 fi;
18494
18495 case "$with_glibj_zip" in
18496 "")
18497 use_glibj_zip=false
18498 ;;
18499 "no" )
18500 use_glibj_zip=false
18501 ;;
18502 "yes")
18503 { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
18504 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
18505 { (exit 1); exit 1; }; }
18506 ;;
18507 *)
18508 use_glibj_zip=true
18509 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
18510 ;;
18511 esac;
18512
18513
18514
18515 if test x$use_glibj_zip = xtrue; then
18516 USE_PREBUILT_GLIBJ_ZIP_TRUE=
18517 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
18518 else
18519 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
18520 USE_PREBUILT_GLIBJ_ZIP_FALSE=
18521 fi
18522
18523
18524
18525
18526 # Check whether --with-escher or --without-escher was given.
18527 if test "${with_escher+set}" = set; then
18528 withval="$with_escher"
18529
18530 fi;
18531 case "$with_escher" in
18532 "")
18533 use_escher=false
18534 ;;
18535 "no")
18536 use_escher=false
18537 ;;
18538 "yes")
18539 { { echo "$as_me:$LINENO: error: Please suply an absolute path to Escher library" >&5
18540 echo "$as_me: error: Please suply an absolute path to Escher library" >&2;}
18541 { (exit 1); exit 1; }; }
18542 ;;
18543 *)
18544 use_escher=true
18545 PATH_TO_ESCHER=$with_escher
18546 ;;
18547 esac;
18548
18549
18550
18551 if test x$use_escher = xtrue; then
18552 USE_ESCHER_TRUE=
18553 USE_ESCHER_FALSE='#'
18554 else
18555 USE_ESCHER_TRUE='#'
18556 USE_ESCHER_FALSE=
18557 fi
18558
18559
18560
18561 # Check whether --enable-local-sockets or --disable-local-sockets was given.
18562 if test "${enable_local_sockets+set}" = set; then
18563 enableval="$enable_local_sockets"
18564 case "${enableval}" in
18565 yes)
18566 ENABLE_LOCAL_SOCKETS=yes
18567 ;;
18568 *)
18569 ENABLE_LOCAL_SOCKETS=no
18570 ;;
18571 esac
18572 fi;
18573 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
18574 then
18575 if test "${ac_cv_header_sys_un_h+set}" = set; then
18576 echo "$as_me:$LINENO: checking for sys/un.h" >&5
18577 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
18578 if test "${ac_cv_header_sys_un_h+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 fi
18581 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
18582 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
18583 else
18584 # Is the header compilable?
18585 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
18586 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 $ac_includes_default
18594 #include <sys/un.h>
18595 _ACEOF
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_header_compiler=yes
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_header_compiler=no
18624 fi
18625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18627 echo "${ECHO_T}$ac_header_compiler" >&6
18628
18629 # Is the header present?
18630 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
18631 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
18632 cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h. */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18638 #include <sys/un.h>
18639 _ACEOF
18640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18642 ac_status=$?
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } >/dev/null; then
18648 if test -s conftest.err; then
18649 ac_cpp_err=$ac_c_preproc_warn_flag
18650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18651 else
18652 ac_cpp_err=
18653 fi
18654 else
18655 ac_cpp_err=yes
18656 fi
18657 if test -z "$ac_cpp_err"; then
18658 ac_header_preproc=yes
18659 else
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18662
18663 ac_header_preproc=no
18664 fi
18665 rm -f conftest.err conftest.$ac_ext
18666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18667 echo "${ECHO_T}$ac_header_preproc" >&6
18668
18669 # So? What about this header?
18670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18671 yes:no: )
18672 { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
18673 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18674 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
18675 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
18676 ac_header_preproc=yes
18677 ;;
18678 no:yes:* )
18679 { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
18680 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
18681 { echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
18682 echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
18683 { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
18684 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
18685 { echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
18686 echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
18687 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
18688 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
18689 { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
18690 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
18691 (
18692 cat <<\_ASBOX
18693 ## -------------------------------- ##
18694 ## Report this to classpath@gnu.org ##
18695 ## -------------------------------- ##
18696 _ASBOX
18697 ) |
18698 sed "s/^/$as_me: WARNING: /" >&2
18699 ;;
18700 esac
18701 echo "$as_me:$LINENO: checking for sys/un.h" >&5
18702 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
18703 if test "${ac_cv_header_sys_un_h+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706 ac_cv_header_sys_un_h=$ac_header_preproc
18707 fi
18708 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
18709 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
18710
18711 fi
18712
18713
18714
18715
18716
18717
18718
18719
18720 for ac_func in read write bind listen accept shutdown
18721 do
18722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18723 echo "$as_me:$LINENO: checking for $ac_func" >&5
18724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18725 if eval "test \"\${$as_ac_var+set}\" = set"; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 else
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18736 #define $ac_func innocuous_$ac_func
18737
18738 /* System header to define __stub macros and hopefully few prototypes,
18739 which can conflict with char $ac_func (); below.
18740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18741 <limits.h> exists even on freestanding compilers. */
18742
18743 #ifdef __STDC__
18744 # include <limits.h>
18745 #else
18746 # include <assert.h>
18747 #endif
18748
18749 #undef $ac_func
18750
18751 /* Override any gcc2 internal prototype to avoid an error. */
18752 #ifdef __cplusplus
18753 extern "C"
18754 {
18755 #endif
18756 /* We use char because int might match the return type of a gcc2
18757 builtin and then its argument prototype would still apply. */
18758 char $ac_func ();
18759 /* The GNU C library defines this for functions which it implements
18760 to always fail with ENOSYS. Some functions are actually named
18761 something starting with __ and the normal name is an alias. */
18762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18763 choke me
18764 #else
18765 char (*f) () = $ac_func;
18766 #endif
18767 #ifdef __cplusplus
18768 }
18769 #endif
18770
18771 int
18772 main ()
18773 {
18774 return f != $ac_func;
18775 ;
18776 return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18781 (eval $ac_link) 2>conftest.er1
18782 ac_status=$?
18783 grep -v '^ *+' conftest.er1 >conftest.err
18784 rm -f conftest.er1
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); } &&
18788 { ac_try='test -z "$ac_c_werror_flag"
18789 || test ! -s conftest.err'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 eval "$as_ac_var=yes"
18802 else
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 eval "$as_ac_var=no"
18807 fi
18808 rm -f conftest.err conftest.$ac_objext \
18809 conftest$ac_exeext conftest.$ac_ext
18810 fi
18811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18813 if test `eval echo '${'$as_ac_var'}'` = yes; then
18814 cat >>confdefs.h <<_ACEOF
18815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 _ACEOF
18817
18818 else
18819 { { echo "$as_me:$LINENO: error: networking support not available" >&5
18820 echo "$as_me: error: networking support not available" >&2;}
18821 { (exit 1); exit 1; }; }
18822 fi
18823 done
18824
18825
18826 cat >>confdefs.h <<\_ACEOF
18827 #define ENABLE_LOCAL_SOCKETS 1
18828 _ACEOF
18829
18830 fi
18831
18832
18833 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
18834 ENABLE_LOCAL_SOCKETS_TRUE=
18835 ENABLE_LOCAL_SOCKETS_FALSE='#'
18836 else
18837 ENABLE_LOCAL_SOCKETS_TRUE='#'
18838 ENABLE_LOCAL_SOCKETS_FALSE=
18839 fi
18840
18841
18842
18843
18844 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 gnu/java/security/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/gconf-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 resource/META-INF/services/java.util.prefs.PreferencesFactory scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
18845
18846
18847 if test "x${COMPILE_WRAPPERS}" = xno
18848 then
18849 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver"
18850
18851 ac_config_commands="$ac_config_commands gappletviewer"
18852
18853 ac_config_commands="$ac_config_commands gjarsigner"
18854
18855 ac_config_commands="$ac_config_commands gkeytool"
18856
18857 ac_config_commands="$ac_config_commands gjar"
18858
18859 ac_config_commands="$ac_config_commands gnative2ascii"
18860
18861 ac_config_commands="$ac_config_commands gserialver"
18862
18863 fi
18864
18865
18866 if test "x${COMPILE_WRAPPERS}" = xno
18867 then
18868 ac_config_files="$ac_config_files tools/appletviewer tools/jarsigner tools/keytool"
18869
18870 ac_config_commands="$ac_config_commands appletviewer"
18871
18872 ac_config_commands="$ac_config_commands jarsigner"
18873
18874 ac_config_commands="$ac_config_commands keytool"
18875
18876 fi
18877
18878 ac_config_commands="$ac_config_commands gen-classlist"
18879
18880 ac_config_commands="$ac_config_commands copy-vmresources"
18881
18882 cat >confcache <<\_ACEOF
18883 # This file is a shell script that caches the results of configure
18884 # tests run on this system so they can be shared between configure
18885 # scripts and configure runs, see configure's option --config-cache.
18886 # It is not useful on other systems. If it contains results you don't
18887 # want to keep, you may remove or edit it.
18888 #
18889 # config.status only pays attention to the cache file if you give it
18890 # the --recheck option to rerun configure.
18891 #
18892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18894 # following values.
18895
18896 _ACEOF
18897
18898 # The following way of writing the cache mishandles newlines in values,
18899 # but we know of no workaround that is simple, portable, and efficient.
18900 # So, don't put newlines in cache variables' values.
18901 # Ultrix sh set writes to stderr and can't be redirected directly,
18902 # and sets the high bit in the cache file unless we assign to the vars.
18903 {
18904 (set) 2>&1 |
18905 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18906 *ac_space=\ *)
18907 # `set' does not quote correctly, so add quotes (double-quote
18908 # substitution turns \\\\ into \\, and sed turns \\ into \).
18909 sed -n \
18910 "s/'/'\\\\''/g;
18911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18912 ;;
18913 *)
18914 # `set' quotes correctly as required by POSIX, so do not add quotes.
18915 sed -n \
18916 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18917 ;;
18918 esac;
18919 } |
18920 sed '
18921 t clear
18922 : clear
18923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18924 t end
18925 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18926 : end' >>confcache
18927 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18928 if test -w $cache_file; then
18929 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18930 cat confcache >$cache_file
18931 else
18932 echo "not updating unwritable cache $cache_file"
18933 fi
18934 fi
18935 rm -f confcache
18936
18937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18938 # Let make expand exec_prefix.
18939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18940
18941 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18943 # trailing colons and then remove the whole line if VPATH becomes empty
18944 # (actually we leave an empty line to preserve line numbers).
18945 if test "x$srcdir" = x.; then
18946 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18947 s/:*\$(srcdir):*/:/;
18948 s/:*\${srcdir}:*/:/;
18949 s/:*@srcdir@:*/:/;
18950 s/^\([^=]*=[ ]*\):*/\1/;
18951 s/:*$//;
18952 s/^[^=]*=[ ]*$//;
18953 }'
18954 fi
18955
18956 DEFS=-DHAVE_CONFIG_H
18957
18958 ac_libobjs=
18959 ac_ltlibobjs=
18960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18961 # 1. Remove the extension, and $U if already installed.
18962 ac_i=`echo "$ac_i" |
18963 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18964 # 2. Add them.
18965 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18966 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18967 done
18968 LIBOBJS=$ac_libobjs
18969
18970 LTLIBOBJS=$ac_ltlibobjs
18971
18972
18973 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
18974 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
18975 Usually this means the macro was only invoked conditionally." >&5
18976 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
18977 Usually this means the macro was only invoked conditionally." >&2;}
18978 { (exit 1); exit 1; }; }
18979 fi
18980 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
18981 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
18982 Usually this means the macro was only invoked conditionally." >&5
18983 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
18984 Usually this means the macro was only invoked conditionally." >&2;}
18985 { (exit 1); exit 1; }; }
18986 fi
18987 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
18988 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
18989 Usually this means the macro was only invoked conditionally." >&5
18990 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
18991 Usually this means the macro was only invoked conditionally." >&2;}
18992 { (exit 1); exit 1; }; }
18993 fi
18994 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
18995 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
18996 Usually this means the macro was only invoked conditionally." >&5
18997 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
18998 Usually this means the macro was only invoked conditionally." >&2;}
18999 { (exit 1); exit 1; }; }
19000 fi
19001 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
19002 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
19003 Usually this means the macro was only invoked conditionally." >&5
19004 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
19005 Usually this means the macro was only invoked conditionally." >&2;}
19006 { (exit 1); exit 1; }; }
19007 fi
19008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19009 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19010 Usually this means the macro was only invoked conditionally." >&5
19011 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19012 Usually this means the macro was only invoked conditionally." >&2;}
19013 { (exit 1); exit 1; }; }
19014 fi
19015 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19016 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19017 Usually this means the macro was only invoked conditionally." >&5
19018 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19019 Usually this means the macro was only invoked conditionally." >&2;}
19020 { (exit 1); exit 1; }; }
19021 fi
19022 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
19023 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19024 Usually this means the macro was only invoked conditionally." >&5
19025 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
19026 Usually this means the macro was only invoked conditionally." >&2;}
19027 { (exit 1); exit 1; }; }
19028 fi
19029 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
19030 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19031 Usually this means the macro was only invoked conditionally." >&5
19032 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
19033 Usually this means the macro was only invoked conditionally." >&2;}
19034 { (exit 1); exit 1; }; }
19035 fi
19036 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
19037 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19038 Usually this means the macro was only invoked conditionally." >&5
19039 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
19040 Usually this means the macro was only invoked conditionally." >&2;}
19041 { (exit 1); exit 1; }; }
19042 fi
19043 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
19044 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19045 Usually this means the macro was only invoked conditionally." >&5
19046 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
19047 Usually this means the macro was only invoked conditionally." >&2;}
19048 { (exit 1); exit 1; }; }
19049 fi
19050 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
19051 { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
19052 Usually this means the macro was only invoked conditionally." >&5
19053 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
19054 Usually this means the macro was only invoked conditionally." >&2;}
19055 { (exit 1); exit 1; }; }
19056 fi
19057 if test -z "${FOUND_CACAO_TRUE}" && test -z "${FOUND_CACAO_FALSE}"; then
19058 { { echo "$as_me:$LINENO: error: conditional \"FOUND_CACAO\" was never defined.
19059 Usually this means the macro was only invoked conditionally." >&5
19060 echo "$as_me: error: conditional \"FOUND_CACAO\" was never defined.
19061 Usually this means the macro was only invoked conditionally." >&2;}
19062 { (exit 1); exit 1; }; }
19063 fi
19064 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
19065 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
19066 Usually this means the macro was only invoked conditionally." >&5
19067 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
19068 Usually this means the macro was only invoked conditionally." >&2;}
19069 { (exit 1); exit 1; }; }
19070 fi
19071 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
19072 { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
19073 Usually this means the macro was only invoked conditionally." >&5
19074 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
19075 Usually this means the macro was only invoked conditionally." >&2;}
19076 { (exit 1); exit 1; }; }
19077 fi
19078 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19079 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19080 Usually this means the macro was only invoked conditionally." >&5
19081 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19082 Usually this means the macro was only invoked conditionally." >&2;}
19083 { (exit 1); exit 1; }; }
19084 fi
19085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19086 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19087 Usually this means the macro was only invoked conditionally." >&5
19088 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19089 Usually this means the macro was only invoked conditionally." >&2;}
19090 { (exit 1); exit 1; }; }
19091 fi
19092 if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
19093 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
19094 Usually this means the macro was only invoked conditionally." >&5
19095 echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
19096 Usually this means the macro was only invoked conditionally." >&2;}
19097 { (exit 1); exit 1; }; }
19098 fi
19099 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
19100 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
19101 Usually this means the macro was only invoked conditionally." >&5
19102 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
19103 Usually this means the macro was only invoked conditionally." >&2;}
19104 { (exit 1); exit 1; }; }
19105 fi
19106 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
19107 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
19108 Usually this means the macro was only invoked conditionally." >&5
19109 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
19110 Usually this means the macro was only invoked conditionally." >&2;}
19111 { (exit 1); exit 1; }; }
19112 fi
19113 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
19114 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
19115 Usually this means the macro was only invoked conditionally." >&5
19116 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
19117 Usually this means the macro was only invoked conditionally." >&2;}
19118 { (exit 1); exit 1; }; }
19119 fi
19120 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
19121 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
19122 Usually this means the macro was only invoked conditionally." >&5
19123 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
19124 Usually this means the macro was only invoked conditionally." >&2;}
19125 { (exit 1); exit 1; }; }
19126 fi
19127 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
19128 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
19129 Usually this means the macro was only invoked conditionally." >&5
19130 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
19131 Usually this means the macro was only invoked conditionally." >&2;}
19132 { (exit 1); exit 1; }; }
19133 fi
19134 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
19135 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
19136 Usually this means the macro was only invoked conditionally." >&5
19137 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
19138 Usually this means the macro was only invoked conditionally." >&2;}
19139 { (exit 1); exit 1; }; }
19140 fi
19141 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
19142 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
19143 Usually this means the macro was only invoked conditionally." >&5
19144 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
19145 Usually this means the macro was only invoked conditionally." >&2;}
19146 { (exit 1); exit 1; }; }
19147 fi
19148 if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
19149 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
19150 Usually this means the macro was only invoked conditionally." >&5
19151 echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
19152 Usually this means the macro was only invoked conditionally." >&2;}
19153 { (exit 1); exit 1; }; }
19154 fi
19155 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
19156 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
19157 Usually this means the macro was only invoked conditionally." >&5
19158 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
19159 Usually this means the macro was only invoked conditionally." >&2;}
19160 { (exit 1); exit 1; }; }
19161 fi
19162 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19163 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19164 Usually this means the macro was only invoked conditionally." >&5
19165 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19166 Usually this means the macro was only invoked conditionally." >&2;}
19167 { (exit 1); exit 1; }; }
19168 fi
19169 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
19170 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
19171 Usually this means the macro was only invoked conditionally." >&5
19172 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
19173 Usually this means the macro was only invoked conditionally." >&2;}
19174 { (exit 1); exit 1; }; }
19175 fi
19176 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
19177 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
19178 Usually this means the macro was only invoked conditionally." >&5
19179 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
19180 Usually this means the macro was only invoked conditionally." >&2;}
19181 { (exit 1); exit 1; }; }
19182 fi
19183 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
19184 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
19185 Usually this means the macro was only invoked conditionally." >&5
19186 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
19187 Usually this means the macro was only invoked conditionally." >&2;}
19188 { (exit 1); exit 1; }; }
19189 fi
19190 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
19191 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
19192 Usually this means the macro was only invoked conditionally." >&5
19193 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
19194 Usually this means the macro was only invoked conditionally." >&2;}
19195 { (exit 1); exit 1; }; }
19196 fi
19197 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
19198 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
19199 Usually this means the macro was only invoked conditionally." >&5
19200 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
19201 Usually this means the macro was only invoked conditionally." >&2;}
19202 { (exit 1); exit 1; }; }
19203 fi
19204 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
19205 { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
19206 Usually this means the macro was only invoked conditionally." >&5
19207 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
19208 Usually this means the macro was only invoked conditionally." >&2;}
19209 { (exit 1); exit 1; }; }
19210 fi
19211 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
19212 { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
19213 Usually this means the macro was only invoked conditionally." >&5
19214 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
19215 Usually this means the macro was only invoked conditionally." >&2;}
19216 { (exit 1); exit 1; }; }
19217 fi
19218 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
19219 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
19220 Usually this means the macro was only invoked conditionally." >&5
19221 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
19222 Usually this means the macro was only invoked conditionally." >&2;}
19223 { (exit 1); exit 1; }; }
19224 fi
19225
19226 : ${CONFIG_STATUS=./config.status}
19227 ac_clean_files_save=$ac_clean_files
19228 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19229 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19230 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19231 cat >$CONFIG_STATUS <<_ACEOF
19232 #! $SHELL
19233 # Generated by $as_me.
19234 # Run this file to recreate the current configuration.
19235 # Compiler output produced by configure, useful for debugging
19236 # configure, is in config.log if it exists.
19237
19238 debug=false
19239 ac_cs_recheck=false
19240 ac_cs_silent=false
19241 SHELL=\${CONFIG_SHELL-$SHELL}
19242 _ACEOF
19243
19244 cat >>$CONFIG_STATUS <<\_ACEOF
19245 ## --------------------- ##
19246 ## M4sh Initialization. ##
19247 ## --------------------- ##
19248
19249 # Be Bourne compatible
19250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19251 emulate sh
19252 NULLCMD=:
19253 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19254 # is contrary to our usage. Disable this feature.
19255 alias -g '${1+"$@"}'='"$@"'
19256 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19257 set -o posix
19258 fi
19259 DUALCASE=1; export DUALCASE # for MKS sh
19260
19261 # Support unset when possible.
19262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19263 as_unset=unset
19264 else
19265 as_unset=false
19266 fi
19267
19268
19269 # Work around bugs in pre-3.0 UWIN ksh.
19270 $as_unset ENV MAIL MAILPATH
19271 PS1='$ '
19272 PS2='> '
19273 PS4='+ '
19274
19275 # NLS nuisances.
19276 for as_var in \
19277 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19278 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19279 LC_TELEPHONE LC_TIME
19280 do
19281 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19282 eval $as_var=C; export $as_var
19283 else
19284 $as_unset $as_var
19285 fi
19286 done
19287
19288 # Required to use basename.
19289 if expr a : '\(a\)' >/dev/null 2>&1; then
19290 as_expr=expr
19291 else
19292 as_expr=false
19293 fi
19294
19295 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19296 as_basename=basename
19297 else
19298 as_basename=false
19299 fi
19300
19301
19302 # Name of the executable.
19303 as_me=`$as_basename "$0" ||
19304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19305 X"$0" : 'X\(//\)$' \| \
19306 X"$0" : 'X\(/\)$' \| \
19307 . : '\(.\)' 2>/dev/null ||
19308 echo X/"$0" |
19309 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19310 /^X\/\(\/\/\)$/{ s//\1/; q; }
19311 /^X\/\(\/\).*/{ s//\1/; q; }
19312 s/.*/./; q'`
19313
19314
19315 # PATH needs CR, and LINENO needs CR and PATH.
19316 # Avoid depending upon Character Ranges.
19317 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19320 as_cr_digits='0123456789'
19321 as_cr_alnum=$as_cr_Letters$as_cr_digits
19322
19323 # The user is always right.
19324 if test "${PATH_SEPARATOR+set}" != set; then
19325 echo "#! /bin/sh" >conf$$.sh
19326 echo "exit 0" >>conf$$.sh
19327 chmod +x conf$$.sh
19328 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19329 PATH_SEPARATOR=';'
19330 else
19331 PATH_SEPARATOR=:
19332 fi
19333 rm -f conf$$.sh
19334 fi
19335
19336
19337 as_lineno_1=$LINENO
19338 as_lineno_2=$LINENO
19339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19340 test "x$as_lineno_1" != "x$as_lineno_2" &&
19341 test "x$as_lineno_3" = "x$as_lineno_2" || {
19342 # Find who we are. Look in the path if we contain no path at all
19343 # relative or not.
19344 case $0 in
19345 *[\\/]* ) as_myself=$0 ;;
19346 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19347 for as_dir in $PATH
19348 do
19349 IFS=$as_save_IFS
19350 test -z "$as_dir" && as_dir=.
19351 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19352 done
19353
19354 ;;
19355 esac
19356 # We did not find ourselves, most probably we were run as `sh COMMAND'
19357 # in which case we are not to be found in the path.
19358 if test "x$as_myself" = x; then
19359 as_myself=$0
19360 fi
19361 if test ! -f "$as_myself"; then
19362 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19363 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19364 { (exit 1); exit 1; }; }
19365 fi
19366 case $CONFIG_SHELL in
19367 '')
19368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19369 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19370 do
19371 IFS=$as_save_IFS
19372 test -z "$as_dir" && as_dir=.
19373 for as_base in sh bash ksh sh5; do
19374 case $as_dir in
19375 /*)
19376 if ("$as_dir/$as_base" -c '
19377 as_lineno_1=$LINENO
19378 as_lineno_2=$LINENO
19379 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19380 test "x$as_lineno_1" != "x$as_lineno_2" &&
19381 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19382 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19383 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19384 CONFIG_SHELL=$as_dir/$as_base
19385 export CONFIG_SHELL
19386 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19387 fi;;
19388 esac
19389 done
19390 done
19391 ;;
19392 esac
19393
19394 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19395 # uniformly replaced by the line number. The first 'sed' inserts a
19396 # line-number line before each line; the second 'sed' does the real
19397 # work. The second script uses 'N' to pair each line-number line
19398 # with the numbered line, and appends trailing '-' during
19399 # substitution so that $LINENO is not a special case at line end.
19400 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19401 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19402 sed '=' <$as_myself |
19403 sed '
19404 N
19405 s,$,-,
19406 : loop
19407 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19408 t loop
19409 s,-$,,
19410 s,^['$as_cr_digits']*\n,,
19411 ' >$as_me.lineno &&
19412 chmod +x $as_me.lineno ||
19413 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19414 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19415 { (exit 1); exit 1; }; }
19416
19417 # Don't try to exec as it changes $[0], causing all sort of problems
19418 # (the dirname of $[0] is not the place where we might find the
19419 # original and so on. Autoconf is especially sensible to this).
19420 . ./$as_me.lineno
19421 # Exit status is that of the last command.
19422 exit
19423 }
19424
19425
19426 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19427 *c*,-n*) ECHO_N= ECHO_C='
19428 ' ECHO_T=' ' ;;
19429 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19430 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19431 esac
19432
19433 if expr a : '\(a\)' >/dev/null 2>&1; then
19434 as_expr=expr
19435 else
19436 as_expr=false
19437 fi
19438
19439 rm -f conf$$ conf$$.exe conf$$.file
19440 echo >conf$$.file
19441 if ln -s conf$$.file conf$$ 2>/dev/null; then
19442 # We could just check for DJGPP; but this test a) works b) is more generic
19443 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19444 if test -f conf$$.exe; then
19445 # Don't use ln at all; we don't have any links
19446 as_ln_s='cp -p'
19447 else
19448 as_ln_s='ln -s'
19449 fi
19450 elif ln conf$$.file conf$$ 2>/dev/null; then
19451 as_ln_s=ln
19452 else
19453 as_ln_s='cp -p'
19454 fi
19455 rm -f conf$$ conf$$.exe conf$$.file
19456
19457 if mkdir -p . 2>/dev/null; then
19458 as_mkdir_p=:
19459 else
19460 test -d ./-p && rmdir ./-p
19461 as_mkdir_p=false
19462 fi
19463
19464 as_executable_p="test -f"
19465
19466 # Sed expression to map a string onto a valid CPP name.
19467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19468
19469 # Sed expression to map a string onto a valid variable name.
19470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19471
19472
19473 # IFS
19474 # We need space, tab and new line, in precisely that order.
19475 as_nl='
19476 '
19477 IFS=" $as_nl"
19478
19479 # CDPATH.
19480 $as_unset CDPATH
19481
19482 exec 6>&1
19483
19484 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19485 # report actual input values of CONFIG_FILES etc. instead of their
19486 # values after options handling. Logging --version etc. is OK.
19487 exec 5>>config.log
19488 {
19489 echo
19490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19491 ## Running $as_me. ##
19492 _ASBOX
19493 } >&5
19494 cat >&5 <<_CSEOF
19495
19496 This file was extended by GNU Classpath $as_me 0.92, which was
19497 generated by GNU Autoconf 2.59. Invocation command line was
19498
19499 CONFIG_FILES = $CONFIG_FILES
19500 CONFIG_HEADERS = $CONFIG_HEADERS
19501 CONFIG_LINKS = $CONFIG_LINKS
19502 CONFIG_COMMANDS = $CONFIG_COMMANDS
19503 $ $0 $@
19504
19505 _CSEOF
19506 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19507 echo >&5
19508 _ACEOF
19509
19510 # Files that config.status was made for.
19511 if test -n "$ac_config_files"; then
19512 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19513 fi
19514
19515 if test -n "$ac_config_headers"; then
19516 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19517 fi
19518
19519 if test -n "$ac_config_links"; then
19520 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19521 fi
19522
19523 if test -n "$ac_config_commands"; then
19524 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19525 fi
19526
19527 cat >>$CONFIG_STATUS <<\_ACEOF
19528
19529 ac_cs_usage="\
19530 \`$as_me' instantiates files from templates according to the
19531 current configuration.
19532
19533 Usage: $0 [OPTIONS] [FILE]...
19534
19535 -h, --help print this help, then exit
19536 -V, --version print version number, then exit
19537 -q, --quiet do not print progress messages
19538 -d, --debug don't remove temporary files
19539 --recheck update $as_me by reconfiguring in the same conditions
19540 --file=FILE[:TEMPLATE]
19541 instantiate the configuration file FILE
19542 --header=FILE[:TEMPLATE]
19543 instantiate the configuration header FILE
19544
19545 Configuration files:
19546 $config_files
19547
19548 Configuration headers:
19549 $config_headers
19550
19551 Configuration links:
19552 $config_links
19553
19554 Configuration commands:
19555 $config_commands
19556
19557 Report bugs to <bug-autoconf@gnu.org>."
19558 _ACEOF
19559
19560 cat >>$CONFIG_STATUS <<_ACEOF
19561 ac_cs_version="\\
19562 GNU Classpath config.status 0.92
19563 configured by $0, generated by GNU Autoconf 2.59,
19564 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19565
19566 Copyright (C) 2003 Free Software Foundation, Inc.
19567 This config.status script is free software; the Free Software Foundation
19568 gives unlimited permission to copy, distribute and modify it."
19569 srcdir=$srcdir
19570 INSTALL="$INSTALL"
19571 _ACEOF
19572
19573 cat >>$CONFIG_STATUS <<\_ACEOF
19574 # If no file are specified by the user, then we need to provide default
19575 # value. By we need to know if files were specified by the user.
19576 ac_need_defaults=:
19577 while test $# != 0
19578 do
19579 case $1 in
19580 --*=*)
19581 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19582 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19583 ac_shift=:
19584 ;;
19585 -*)
19586 ac_option=$1
19587 ac_optarg=$2
19588 ac_shift=shift
19589 ;;
19590 *) # This is not an option, so the user has probably given explicit
19591 # arguments.
19592 ac_option=$1
19593 ac_need_defaults=false;;
19594 esac
19595
19596 case $ac_option in
19597 # Handling of the options.
19598 _ACEOF
19599 cat >>$CONFIG_STATUS <<\_ACEOF
19600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19601 ac_cs_recheck=: ;;
19602 --version | --vers* | -V )
19603 echo "$ac_cs_version"; exit 0 ;;
19604 --he | --h)
19605 # Conflict between --help and --header
19606 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19607 Try \`$0 --help' for more information." >&5
19608 echo "$as_me: error: ambiguous option: $1
19609 Try \`$0 --help' for more information." >&2;}
19610 { (exit 1); exit 1; }; };;
19611 --help | --hel | -h )
19612 echo "$ac_cs_usage"; exit 0 ;;
19613 --debug | --d* | -d )
19614 debug=: ;;
19615 --file | --fil | --fi | --f )
19616 $ac_shift
19617 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19618 ac_need_defaults=false;;
19619 --header | --heade | --head | --hea )
19620 $ac_shift
19621 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19622 ac_need_defaults=false;;
19623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19625 ac_cs_silent=: ;;
19626
19627 # This is an error.
19628 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19629 Try \`$0 --help' for more information." >&5
19630 echo "$as_me: error: unrecognized option: $1
19631 Try \`$0 --help' for more information." >&2;}
19632 { (exit 1); exit 1; }; } ;;
19633
19634 *) ac_config_targets="$ac_config_targets $1" ;;
19635
19636 esac
19637 shift
19638 done
19639
19640 ac_configure_extra_args=
19641
19642 if $ac_cs_silent; then
19643 exec 6>/dev/null
19644 ac_configure_extra_args="$ac_configure_extra_args --silent"
19645 fi
19646
19647 _ACEOF
19648 cat >>$CONFIG_STATUS <<_ACEOF
19649 if \$ac_cs_recheck; then
19650 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19651 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19652 fi
19653
19654 _ACEOF
19655
19656 cat >>$CONFIG_STATUS <<_ACEOF
19657 #
19658 # INIT-COMMANDS section.
19659 #
19660
19661 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19662 # variables for create stdint.h replacement
19663 PACKAGE="$PACKAGE"
19664 VERSION="$VERSION"
19665 ac_stdint_h="$ac_stdint_h"
19666 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
19667 ac_cv_stdint_message="$ac_cv_stdint_message"
19668 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
19669 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
19670 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
19671 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
19672 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19673 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19674 ac_cv_char_data_model="$ac_cv_char_data_model"
19675 ac_cv_long_data_model="$ac_cv_long_data_model"
19676 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19677 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19678 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
19679
19680
19681 _ACEOF
19682
19683
19684
19685 cat >>$CONFIG_STATUS <<\_ACEOF
19686 for ac_config_target in $ac_config_targets
19687 do
19688 case "$ac_config_target" in
19689 # Handling of arguments.
19690 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
19691 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19692 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19693 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
19694 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
19695 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
19696 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
19697 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
19698 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
19699 "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
19700 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19701 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
19702 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
19703 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
19704 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
19705 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
19706 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
19707 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
19708 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
19709 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
19710 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
19711 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
19712 "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
19713 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
19714 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
19715 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
19716 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
19717 "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
19718 "native/target/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
19719 "native/target/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
19720 "native/target/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
19721 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
19722 "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
19723 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19724 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
19725 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19726 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
19727 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
19728 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19729 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19730 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
19731 "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
19732 "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
19733 "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
19734 "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
19735 "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
19736 "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
19737 "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
19738 "tools/appletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/appletviewer" ;;
19739 "tools/jarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/jarsigner" ;;
19740 "tools/keytool" ) CONFIG_FILES="$CONFIG_FILES tools/keytool" ;;
19741 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
19742 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19743 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
19744 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
19745 "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
19746 "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
19747 "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
19748 "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
19749 "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
19750 "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
19751 "appletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS appletviewer" ;;
19752 "jarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS jarsigner" ;;
19753 "keytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS keytool" ;;
19754 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
19755 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
19756 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19757 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19758 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19759 { (exit 1); exit 1; }; };;
19760 esac
19761 done
19762
19763 # If the user did not use the arguments to specify the items to instantiate,
19764 # then the envvar interface is used. Set only those that are not.
19765 # We use the long form for the default assignment because of an extremely
19766 # bizarre bug on SunOS 4.1.3.
19767 if $ac_need_defaults; then
19768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19770 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19772 fi
19773
19774 # Have a temporary directory for convenience. Make it in the build tree
19775 # simply because there is no reason to put it here, and in addition,
19776 # creating and moving files from /tmp can sometimes cause problems.
19777 # Create a temporary directory, and hook for its removal unless debugging.
19778 $debug ||
19779 {
19780 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19781 trap '{ (exit 1); exit 1; }' 1 2 13 15
19782 }
19783
19784 # Create a (secure) tmp directory for tmp files.
19785
19786 {
19787 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19788 test -n "$tmp" && test -d "$tmp"
19789 } ||
19790 {
19791 tmp=./confstat$$-$RANDOM
19792 (umask 077 && mkdir $tmp)
19793 } ||
19794 {
19795 echo "$me: cannot create a temporary directory in ." >&2
19796 { (exit 1); exit 1; }
19797 }
19798
19799 _ACEOF
19800
19801 cat >>$CONFIG_STATUS <<_ACEOF
19802
19803 #
19804 # CONFIG_FILES section.
19805 #
19806
19807 # No need to generate the scripts if there are no CONFIG_FILES.
19808 # This happens for instance when ./config.status config.h
19809 if test -n "\$CONFIG_FILES"; then
19810 # Protect against being on the right side of a sed subst in config.status.
19811 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19812 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19813 s,@SHELL@,$SHELL,;t t
19814 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19815 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19816 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19817 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19818 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19819 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19820 s,@exec_prefix@,$exec_prefix,;t t
19821 s,@prefix@,$prefix,;t t
19822 s,@program_transform_name@,$program_transform_name,;t t
19823 s,@bindir@,$bindir,;t t
19824 s,@sbindir@,$sbindir,;t t
19825 s,@libexecdir@,$libexecdir,;t t
19826 s,@datadir@,$datadir,;t t
19827 s,@sysconfdir@,$sysconfdir,;t t
19828 s,@sharedstatedir@,$sharedstatedir,;t t
19829 s,@localstatedir@,$localstatedir,;t t
19830 s,@libdir@,$libdir,;t t
19831 s,@includedir@,$includedir,;t t
19832 s,@oldincludedir@,$oldincludedir,;t t
19833 s,@infodir@,$infodir,;t t
19834 s,@mandir@,$mandir,;t t
19835 s,@build_alias@,$build_alias,;t t
19836 s,@host_alias@,$host_alias,;t t
19837 s,@target_alias@,$target_alias,;t t
19838 s,@DEFS@,$DEFS,;t t
19839 s,@ECHO_C@,$ECHO_C,;t t
19840 s,@ECHO_N@,$ECHO_N,;t t
19841 s,@ECHO_T@,$ECHO_T,;t t
19842 s,@LIBS@,$LIBS,;t t
19843 s,@build@,$build,;t t
19844 s,@build_cpu@,$build_cpu,;t t
19845 s,@build_vendor@,$build_vendor,;t t
19846 s,@build_os@,$build_os,;t t
19847 s,@host@,$host,;t t
19848 s,@host_cpu@,$host_cpu,;t t
19849 s,@host_vendor@,$host_vendor,;t t
19850 s,@host_os@,$host_os,;t t
19851 s,@target@,$target,;t t
19852 s,@target_cpu@,$target_cpu,;t t
19853 s,@target_vendor@,$target_vendor,;t t
19854 s,@target_os@,$target_os,;t t
19855 s,@LIBVERSION@,$LIBVERSION,;t t
19856 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
19857 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
19858 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19859 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19860 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19861 s,@CYGPATH_W@,$CYGPATH_W,;t t
19862 s,@PACKAGE@,$PACKAGE,;t t
19863 s,@VERSION@,$VERSION,;t t
19864 s,@ACLOCAL@,$ACLOCAL,;t t
19865 s,@AUTOCONF@,$AUTOCONF,;t t
19866 s,@AUTOMAKE@,$AUTOMAKE,;t t
19867 s,@AUTOHEADER@,$AUTOHEADER,;t t
19868 s,@MAKEINFO@,$MAKEINFO,;t t
19869 s,@install_sh@,$install_sh,;t t
19870 s,@STRIP@,$STRIP,;t t
19871 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19872 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19873 s,@mkdir_p@,$mkdir_p,;t t
19874 s,@AWK@,$AWK,;t t
19875 s,@SET_MAKE@,$SET_MAKE,;t t
19876 s,@am__leading_dot@,$am__leading_dot,;t t
19877 s,@AMTAR@,$AMTAR,;t t
19878 s,@am__tar@,$am__tar,;t t
19879 s,@am__untar@,$am__untar,;t t
19880 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
19881 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
19882 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
19883 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
19884 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
19885 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
19886 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
19887 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
19888 s,@default_toolkit@,$default_toolkit,;t t
19889 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
19890 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
19891 s,@CC@,$CC,;t t
19892 s,@CFLAGS@,$CFLAGS,;t t
19893 s,@LDFLAGS@,$LDFLAGS,;t t
19894 s,@CPPFLAGS@,$CPPFLAGS,;t t
19895 s,@ac_ct_CC@,$ac_ct_CC,;t t
19896 s,@EXEEXT@,$EXEEXT,;t t
19897 s,@OBJEXT@,$OBJEXT,;t t
19898 s,@DEPDIR@,$DEPDIR,;t t
19899 s,@am__include@,$am__include,;t t
19900 s,@am__quote@,$am__quote,;t t
19901 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19902 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19903 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19904 s,@CCDEPMODE@,$CCDEPMODE,;t t
19905 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19906 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19907 s,@CPP@,$CPP,;t t
19908 s,@EGREP@,$EGREP,;t t
19909 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
19910 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
19911 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
19912 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
19913 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
19914 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
19915 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
19916 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
19917 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
19918 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
19919 s,@toolexeclibdir@,$toolexeclibdir,;t t
19920 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
19921 s,@glibjdir@,$glibjdir,;t t
19922 s,@VM_BINARY@,$VM_BINARY,;t t
19923 s,@FOUND_CACAO_TRUE@,$FOUND_CACAO_TRUE,;t t
19924 s,@FOUND_CACAO_FALSE@,$FOUND_CACAO_FALSE,;t t
19925 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
19926 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
19927 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
19928 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
19929 s,@LN_S@,$LN_S,;t t
19930 s,@CXX@,$CXX,;t t
19931 s,@CXXFLAGS@,$CXXFLAGS,;t t
19932 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19933 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19934 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19935 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19936 s,@RANLIB@,$RANLIB,;t t
19937 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19938 s,@LIBTOOL@,$LIBTOOL,;t t
19939 s,@CXXCPP@,$CXXCPP,;t t
19940 s,@PERL@,$PERL,;t t
19941 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
19942 s,@LIBMAGIC@,$LIBMAGIC,;t t
19943 s,@LIBICONV@,$LIBICONV,;t t
19944 s,@LTLIBICONV@,$LTLIBICONV,;t t
19945 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
19946 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
19947 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
19948 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19949 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
19950 s,@XML_LIBS@,$XML_LIBS,;t t
19951 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
19952 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
19953 s,@X_CFLAGS@,$X_CFLAGS,;t t
19954 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19955 s,@X_LIBS@,$X_LIBS,;t t
19956 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19957 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19958 s,@GTK_LIBS@,$GTK_LIBS,;t t
19959 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
19960 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
19961 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
19962 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
19963 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
19964 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
19965 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
19966 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
19967 s,@GDK_LIBS@,$GDK_LIBS,;t t
19968 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
19969 s,@QT_LIBS@,$QT_LIBS,;t t
19970 s,@MOC@,$MOC,;t t
19971 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
19972 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
19973 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
19974 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
19975 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
19976 s,@USER_JAVAH@,$USER_JAVAH,;t t
19977 s,@USER_SPECIFIED_JAVAH_TRUE@,$USER_SPECIFIED_JAVAH_TRUE,;t t
19978 s,@USER_SPECIFIED_JAVAH_FALSE@,$USER_SPECIFIED_JAVAH_FALSE,;t t
19979 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
19980 s,@GCJ@,$GCJ,;t t
19981 s,@JIKES@,$JIKES,;t t
19982 s,@JIKESENCODING@,$JIKESENCODING,;t t
19983 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
19984 s,@KJC@,$KJC,;t t
19985 s,@GCJX@,$GCJX,;t t
19986 s,@ECJ@,$ECJ,;t t
19987 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
19988 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
19989 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
19990 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
19991 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
19992 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
19993 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
19994 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
19995 s,@FOUND_GCJX_TRUE@,$FOUND_GCJX_TRUE,;t t
19996 s,@FOUND_GCJX_FALSE@,$FOUND_GCJX_FALSE,;t t
19997 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
19998 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
19999 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
20000 s,@vm_classes@,$vm_classes,;t t
20001 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20002 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20003 s,@MAINT@,$MAINT,;t t
20004 s,@LIBDEBUG@,$LIBDEBUG,;t t
20005 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
20006 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
20007 s,@REMOVE@,$REMOVE,;t t
20008 s,@MKDIR@,$MKDIR,;t t
20009 s,@CP@,$CP,;t t
20010 s,@DATE@,$DATE,;t t
20011 s,@FIND@,$FIND,;t t
20012 s,@ZIP@,$ZIP,;t t
20013 s,@FASTJAR@,$FASTJAR,;t t
20014 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
20015 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
20016 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
20017 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
20018 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
20019 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
20020 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
20021 s,@GJDOC@,$GJDOC,;t t
20022 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
20023 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
20024 s,@JAY@,$JAY,;t t
20025 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
20026 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
20027 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
20028 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
20029 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
20030 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
20031 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
20032 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
20033 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
20034 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
20035 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
20036 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
20037 s,@LIBOBJS@,$LIBOBJS,;t t
20038 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20039 CEOF
20040
20041 _ACEOF
20042
20043 cat >>$CONFIG_STATUS <<\_ACEOF
20044 # Split the substitutions into bite-sized pieces for seds with
20045 # small command number limits, like on Digital OSF/1 and HP-UX.
20046 ac_max_sed_lines=48
20047 ac_sed_frag=1 # Number of current file.
20048 ac_beg=1 # First line for current file.
20049 ac_end=$ac_max_sed_lines # Line after last line for current file.
20050 ac_more_lines=:
20051 ac_sed_cmds=
20052 while $ac_more_lines; do
20053 if test $ac_beg -gt 1; then
20054 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20055 else
20056 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20057 fi
20058 if test ! -s $tmp/subs.frag; then
20059 ac_more_lines=false
20060 else
20061 # The purpose of the label and of the branching condition is to
20062 # speed up the sed processing (if there are no `@' at all, there
20063 # is no need to browse any of the substitutions).
20064 # These are the two extra sed commands mentioned above.
20065 (echo ':t
20066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20067 if test -z "$ac_sed_cmds"; then
20068 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20069 else
20070 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20071 fi
20072 ac_sed_frag=`expr $ac_sed_frag + 1`
20073 ac_beg=$ac_end
20074 ac_end=`expr $ac_end + $ac_max_sed_lines`
20075 fi
20076 done
20077 if test -z "$ac_sed_cmds"; then
20078 ac_sed_cmds=cat
20079 fi
20080 fi # test -n "$CONFIG_FILES"
20081
20082 _ACEOF
20083 cat >>$CONFIG_STATUS <<\_ACEOF
20084 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20086 case $ac_file in
20087 - | *:- | *:-:* ) # input from stdin
20088 cat >$tmp/stdin
20089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20093 * ) ac_file_in=$ac_file.in ;;
20094 esac
20095
20096 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20099 X"$ac_file" : 'X\(//\)[^/]' \| \
20100 X"$ac_file" : 'X\(//\)$' \| \
20101 X"$ac_file" : 'X\(/\)' \| \
20102 . : '\(.\)' 2>/dev/null ||
20103 echo X"$ac_file" |
20104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20106 /^X\(\/\/\)$/{ s//\1/; q; }
20107 /^X\(\/\).*/{ s//\1/; q; }
20108 s/.*/./; q'`
20109 { if $as_mkdir_p; then
20110 mkdir -p "$ac_dir"
20111 else
20112 as_dir="$ac_dir"
20113 as_dirs=
20114 while test ! -d "$as_dir"; do
20115 as_dirs="$as_dir $as_dirs"
20116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20118 X"$as_dir" : 'X\(//\)[^/]' \| \
20119 X"$as_dir" : 'X\(//\)$' \| \
20120 X"$as_dir" : 'X\(/\)' \| \
20121 . : '\(.\)' 2>/dev/null ||
20122 echo X"$as_dir" |
20123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20125 /^X\(\/\/\)$/{ s//\1/; q; }
20126 /^X\(\/\).*/{ s//\1/; q; }
20127 s/.*/./; q'`
20128 done
20129 test ! -n "$as_dirs" || mkdir $as_dirs
20130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20132 { (exit 1); exit 1; }; }; }
20133
20134 ac_builddir=.
20135
20136 if test "$ac_dir" != .; then
20137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20138 # A "../" for each directory in $ac_dir_suffix.
20139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20140 else
20141 ac_dir_suffix= ac_top_builddir=
20142 fi
20143
20144 case $srcdir in
20145 .) # No --srcdir option. We are building in place.
20146 ac_srcdir=.
20147 if test -z "$ac_top_builddir"; then
20148 ac_top_srcdir=.
20149 else
20150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20151 fi ;;
20152 [\\/]* | ?:[\\/]* ) # Absolute path.
20153 ac_srcdir=$srcdir$ac_dir_suffix;
20154 ac_top_srcdir=$srcdir ;;
20155 *) # Relative path.
20156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20158 esac
20159
20160 # Do not use `cd foo && pwd` to compute absolute paths, because
20161 # the directories may not exist.
20162 case `pwd` in
20163 .) ac_abs_builddir="$ac_dir";;
20164 *)
20165 case "$ac_dir" in
20166 .) ac_abs_builddir=`pwd`;;
20167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20169 esac;;
20170 esac
20171 case $ac_abs_builddir in
20172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20173 *)
20174 case ${ac_top_builddir}. in
20175 .) ac_abs_top_builddir=$ac_abs_builddir;;
20176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20178 esac;;
20179 esac
20180 case $ac_abs_builddir in
20181 .) ac_abs_srcdir=$ac_srcdir;;
20182 *)
20183 case $ac_srcdir in
20184 .) ac_abs_srcdir=$ac_abs_builddir;;
20185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20187 esac;;
20188 esac
20189 case $ac_abs_builddir in
20190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20191 *)
20192 case $ac_top_srcdir in
20193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20196 esac;;
20197 esac
20198
20199
20200 case $INSTALL in
20201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20202 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20203 esac
20204
20205 if test x"$ac_file" != x-; then
20206 { echo "$as_me:$LINENO: creating $ac_file" >&5
20207 echo "$as_me: creating $ac_file" >&6;}
20208 rm -f "$ac_file"
20209 fi
20210 # Let's still pretend it is `configure' which instantiates (i.e., don't
20211 # use $as_me), people would be surprised to read:
20212 # /* config.h. Generated by config.status. */
20213 if test x"$ac_file" = x-; then
20214 configure_input=
20215 else
20216 configure_input="$ac_file. "
20217 fi
20218 configure_input=$configure_input"Generated from `echo $ac_file_in |
20219 sed 's,.*/,,'` by configure."
20220
20221 # First look for the input files in the build tree, otherwise in the
20222 # src tree.
20223 ac_file_inputs=`IFS=:
20224 for f in $ac_file_in; do
20225 case $f in
20226 -) echo $tmp/stdin ;;
20227 [\\/$]*)
20228 # Absolute (can't be DOS-style, as IFS=:)
20229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20230 echo "$as_me: error: cannot find input file: $f" >&2;}
20231 { (exit 1); exit 1; }; }
20232 echo "$f";;
20233 *) # Relative
20234 if test -f "$f"; then
20235 # Build tree
20236 echo "$f"
20237 elif test -f "$srcdir/$f"; then
20238 # Source tree
20239 echo "$srcdir/$f"
20240 else
20241 # /dev/null tree
20242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20243 echo "$as_me: error: cannot find input file: $f" >&2;}
20244 { (exit 1); exit 1; }; }
20245 fi;;
20246 esac
20247 done` || { (exit 1); exit 1; }
20248 _ACEOF
20249 cat >>$CONFIG_STATUS <<_ACEOF
20250 sed "$ac_vpsub
20251 $extrasub
20252 _ACEOF
20253 cat >>$CONFIG_STATUS <<\_ACEOF
20254 :t
20255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20256 s,@configure_input@,$configure_input,;t t
20257 s,@srcdir@,$ac_srcdir,;t t
20258 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20259 s,@top_srcdir@,$ac_top_srcdir,;t t
20260 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20261 s,@builddir@,$ac_builddir,;t t
20262 s,@abs_builddir@,$ac_abs_builddir,;t t
20263 s,@top_builddir@,$ac_top_builddir,;t t
20264 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20265 s,@INSTALL@,$ac_INSTALL,;t t
20266 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20267 rm -f $tmp/stdin
20268 if test x"$ac_file" != x-; then
20269 mv $tmp/out $ac_file
20270 else
20271 cat $tmp/out
20272 rm -f $tmp/out
20273 fi
20274
20275 done
20276 _ACEOF
20277 cat >>$CONFIG_STATUS <<\_ACEOF
20278
20279 #
20280 # CONFIG_HEADER section.
20281 #
20282
20283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20285 #
20286 # ac_d sets the value in "#define NAME VALUE" lines.
20287 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20288 ac_dB='[ ].*$,\1#\2'
20289 ac_dC=' '
20290 ac_dD=',;t'
20291 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20292 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20293 ac_uB='$,\1#\2define\3'
20294 ac_uC=' '
20295 ac_uD=',;t'
20296
20297 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20299 case $ac_file in
20300 - | *:- | *:-:* ) # input from stdin
20301 cat >$tmp/stdin
20302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20306 * ) ac_file_in=$ac_file.in ;;
20307 esac
20308
20309 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20310 echo "$as_me: creating $ac_file" >&6;}
20311
20312 # First look for the input files in the build tree, otherwise in the
20313 # src tree.
20314 ac_file_inputs=`IFS=:
20315 for f in $ac_file_in; do
20316 case $f in
20317 -) echo $tmp/stdin ;;
20318 [\\/$]*)
20319 # Absolute (can't be DOS-style, as IFS=:)
20320 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20321 echo "$as_me: error: cannot find input file: $f" >&2;}
20322 { (exit 1); exit 1; }; }
20323 # Do quote $f, to prevent DOS paths from being IFS'd.
20324 echo "$f";;
20325 *) # Relative
20326 if test -f "$f"; then
20327 # Build tree
20328 echo "$f"
20329 elif test -f "$srcdir/$f"; then
20330 # Source tree
20331 echo "$srcdir/$f"
20332 else
20333 # /dev/null tree
20334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20335 echo "$as_me: error: cannot find input file: $f" >&2;}
20336 { (exit 1); exit 1; }; }
20337 fi;;
20338 esac
20339 done` || { (exit 1); exit 1; }
20340 # Remove the trailing spaces.
20341 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20342
20343 _ACEOF
20344
20345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20346 # `conftest.undefs', that substitutes the proper values into
20347 # config.h.in to produce config.h. The first handles `#define'
20348 # templates, and the second `#undef' templates.
20349 # And first: Protect against being on the right side of a sed subst in
20350 # config.status. Protect against being in an unquoted here document
20351 # in config.status.
20352 rm -f conftest.defines conftest.undefs
20353 # Using a here document instead of a string reduces the quoting nightmare.
20354 # Putting comments in sed scripts is not portable.
20355 #
20356 # `end' is used to avoid that the second main sed command (meant for
20357 # 0-ary CPP macros) applies to n-ary macro definitions.
20358 # See the Autoconf documentation for `clear'.
20359 cat >confdef2sed.sed <<\_ACEOF
20360 s/[\\&,]/\\&/g
20361 s,[\\$`],\\&,g
20362 t clear
20363 : clear
20364 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20365 t end
20366 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20367 : end
20368 _ACEOF
20369 # If some macros were called several times there might be several times
20370 # the same #defines, which is useless. Nevertheless, we may not want to
20371 # sort them, since we want the *last* AC-DEFINE to be honored.
20372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20374 rm -f confdef2sed.sed
20375
20376 # This sed command replaces #undef with comments. This is necessary, for
20377 # example, in the case of _POSIX_SOURCE, which is predefined and required
20378 # on some systems where configure will not decide to define it.
20379 cat >>conftest.undefs <<\_ACEOF
20380 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20381 _ACEOF
20382
20383 # Break up conftest.defines because some shells have a limit on the size
20384 # of here documents, and old seds have small limits too (100 cmds).
20385 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20386 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20387 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20388 echo ' :' >>$CONFIG_STATUS
20389 rm -f conftest.tail
20390 while grep . conftest.defines >/dev/null
20391 do
20392 # Write a limited-size here document to $tmp/defines.sed.
20393 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20394 # Speed up: don't consider the non `#define' lines.
20395 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20396 # Work around the forget-to-reset-the-flag bug.
20397 echo 't clr' >>$CONFIG_STATUS
20398 echo ': clr' >>$CONFIG_STATUS
20399 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20400 echo 'CEOF
20401 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20402 rm -f $tmp/in
20403 mv $tmp/out $tmp/in
20404 ' >>$CONFIG_STATUS
20405 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20406 rm -f conftest.defines
20407 mv conftest.tail conftest.defines
20408 done
20409 rm -f conftest.defines
20410 echo ' fi # grep' >>$CONFIG_STATUS
20411 echo >>$CONFIG_STATUS
20412
20413 # Break up conftest.undefs because some shells have a limit on the size
20414 # of here documents, and old seds have small limits too (100 cmds).
20415 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20416 rm -f conftest.tail
20417 while grep . conftest.undefs >/dev/null
20418 do
20419 # Write a limited-size here document to $tmp/undefs.sed.
20420 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20421 # Speed up: don't consider the non `#undef'
20422 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20423 # Work around the forget-to-reset-the-flag bug.
20424 echo 't clr' >>$CONFIG_STATUS
20425 echo ': clr' >>$CONFIG_STATUS
20426 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20427 echo 'CEOF
20428 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20429 rm -f $tmp/in
20430 mv $tmp/out $tmp/in
20431 ' >>$CONFIG_STATUS
20432 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20433 rm -f conftest.undefs
20434 mv conftest.tail conftest.undefs
20435 done
20436 rm -f conftest.undefs
20437
20438 cat >>$CONFIG_STATUS <<\_ACEOF
20439 # Let's still pretend it is `configure' which instantiates (i.e., don't
20440 # use $as_me), people would be surprised to read:
20441 # /* config.h. Generated by config.status. */
20442 if test x"$ac_file" = x-; then
20443 echo "/* Generated by configure. */" >$tmp/config.h
20444 else
20445 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20446 fi
20447 cat $tmp/in >>$tmp/config.h
20448 rm -f $tmp/in
20449 if test x"$ac_file" != x-; then
20450 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20452 echo "$as_me: $ac_file is unchanged" >&6;}
20453 else
20454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20456 X"$ac_file" : 'X\(//\)[^/]' \| \
20457 X"$ac_file" : 'X\(//\)$' \| \
20458 X"$ac_file" : 'X\(/\)' \| \
20459 . : '\(.\)' 2>/dev/null ||
20460 echo X"$ac_file" |
20461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20463 /^X\(\/\/\)$/{ s//\1/; q; }
20464 /^X\(\/\).*/{ s//\1/; q; }
20465 s/.*/./; q'`
20466 { if $as_mkdir_p; then
20467 mkdir -p "$ac_dir"
20468 else
20469 as_dir="$ac_dir"
20470 as_dirs=
20471 while test ! -d "$as_dir"; do
20472 as_dirs="$as_dir $as_dirs"
20473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20475 X"$as_dir" : 'X\(//\)[^/]' \| \
20476 X"$as_dir" : 'X\(//\)$' \| \
20477 X"$as_dir" : 'X\(/\)' \| \
20478 . : '\(.\)' 2>/dev/null ||
20479 echo X"$as_dir" |
20480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20482 /^X\(\/\/\)$/{ s//\1/; q; }
20483 /^X\(\/\).*/{ s//\1/; q; }
20484 s/.*/./; q'`
20485 done
20486 test ! -n "$as_dirs" || mkdir $as_dirs
20487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20489 { (exit 1); exit 1; }; }; }
20490
20491 rm -f $ac_file
20492 mv $tmp/config.h $ac_file
20493 fi
20494 else
20495 cat $tmp/config.h
20496 rm -f $tmp/config.h
20497 fi
20498 # Compute $ac_file's index in $config_headers.
20499 _am_stamp_count=1
20500 for _am_header in $config_headers :; do
20501 case $_am_header in
20502 $ac_file | $ac_file:* )
20503 break ;;
20504 * )
20505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20506 esac
20507 done
20508 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510 X$ac_file : 'X\(//\)[^/]' \| \
20511 X$ac_file : 'X\(//\)$' \| \
20512 X$ac_file : 'X\(/\)' \| \
20513 . : '\(.\)' 2>/dev/null ||
20514 echo X$ac_file |
20515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20517 /^X\(\/\/\)$/{ s//\1/; q; }
20518 /^X\(\/\).*/{ s//\1/; q; }
20519 s/.*/./; q'`/stamp-h$_am_stamp_count
20520 done
20521 _ACEOF
20522 cat >>$CONFIG_STATUS <<\_ACEOF
20523
20524 #
20525 # CONFIG_LINKS section.
20526 #
20527
20528 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
20529 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20530 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20531
20532 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
20533 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
20534
20535 if test ! -r $srcdir/$ac_source; then
20536 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
20537 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
20538 { (exit 1); exit 1; }; }
20539 fi
20540 rm -f $ac_dest
20541
20542 # Make relative symlinks.
20543 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
20544 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20545 X"$ac_dest" : 'X\(//\)[^/]' \| \
20546 X"$ac_dest" : 'X\(//\)$' \| \
20547 X"$ac_dest" : 'X\(/\)' \| \
20548 . : '\(.\)' 2>/dev/null ||
20549 echo X"$ac_dest" |
20550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20552 /^X\(\/\/\)$/{ s//\1/; q; }
20553 /^X\(\/\).*/{ s//\1/; q; }
20554 s/.*/./; q'`
20555 { if $as_mkdir_p; then
20556 mkdir -p "$ac_dest_dir"
20557 else
20558 as_dir="$ac_dest_dir"
20559 as_dirs=
20560 while test ! -d "$as_dir"; do
20561 as_dirs="$as_dir $as_dirs"
20562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20564 X"$as_dir" : 'X\(//\)[^/]' \| \
20565 X"$as_dir" : 'X\(//\)$' \| \
20566 X"$as_dir" : 'X\(/\)' \| \
20567 . : '\(.\)' 2>/dev/null ||
20568 echo X"$as_dir" |
20569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20571 /^X\(\/\/\)$/{ s//\1/; q; }
20572 /^X\(\/\).*/{ s//\1/; q; }
20573 s/.*/./; q'`
20574 done
20575 test ! -n "$as_dirs" || mkdir $as_dirs
20576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
20577 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
20578 { (exit 1); exit 1; }; }; }
20579
20580 ac_builddir=.
20581
20582 if test "$ac_dest_dir" != .; then
20583 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
20584 # A "../" for each directory in $ac_dir_suffix.
20585 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20586 else
20587 ac_dir_suffix= ac_top_builddir=
20588 fi
20589
20590 case $srcdir in
20591 .) # No --srcdir option. We are building in place.
20592 ac_srcdir=.
20593 if test -z "$ac_top_builddir"; then
20594 ac_top_srcdir=.
20595 else
20596 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20597 fi ;;
20598 [\\/]* | ?:[\\/]* ) # Absolute path.
20599 ac_srcdir=$srcdir$ac_dir_suffix;
20600 ac_top_srcdir=$srcdir ;;
20601 *) # Relative path.
20602 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20603 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20604 esac
20605
20606 # Do not use `cd foo && pwd` to compute absolute paths, because
20607 # the directories may not exist.
20608 case `pwd` in
20609 .) ac_abs_builddir="$ac_dest_dir";;
20610 *)
20611 case "$ac_dest_dir" in
20612 .) ac_abs_builddir=`pwd`;;
20613 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
20614 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
20615 esac;;
20616 esac
20617 case $ac_abs_builddir in
20618 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20619 *)
20620 case ${ac_top_builddir}. in
20621 .) ac_abs_top_builddir=$ac_abs_builddir;;
20622 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20623 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20624 esac;;
20625 esac
20626 case $ac_abs_builddir in
20627 .) ac_abs_srcdir=$ac_srcdir;;
20628 *)
20629 case $ac_srcdir in
20630 .) ac_abs_srcdir=$ac_abs_builddir;;
20631 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20632 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20633 esac;;
20634 esac
20635 case $ac_abs_builddir in
20636 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20637 *)
20638 case $ac_top_srcdir in
20639 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20640 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20641 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20642 esac;;
20643 esac
20644
20645
20646 case $srcdir in
20647 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
20648 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
20649 esac
20650
20651 # Try a symlink, then a hard link, then a copy.
20652 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20653 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
20654 cp -p $srcdir/$ac_source $ac_dest ||
20655 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
20656 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
20657 { (exit 1); exit 1; }; }
20658 done
20659 _ACEOF
20660 cat >>$CONFIG_STATUS <<\_ACEOF
20661
20662 #
20663 # CONFIG_COMMANDS section.
20664 #
20665 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20666 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20667 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20668 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20669 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20670 X"$ac_dest" : 'X\(//\)[^/]' \| \
20671 X"$ac_dest" : 'X\(//\)$' \| \
20672 X"$ac_dest" : 'X\(/\)' \| \
20673 . : '\(.\)' 2>/dev/null ||
20674 echo X"$ac_dest" |
20675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20677 /^X\(\/\/\)$/{ s//\1/; q; }
20678 /^X\(\/\).*/{ s//\1/; q; }
20679 s/.*/./; q'`
20680 { if $as_mkdir_p; then
20681 mkdir -p "$ac_dir"
20682 else
20683 as_dir="$ac_dir"
20684 as_dirs=
20685 while test ! -d "$as_dir"; do
20686 as_dirs="$as_dir $as_dirs"
20687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20689 X"$as_dir" : 'X\(//\)[^/]' \| \
20690 X"$as_dir" : 'X\(//\)$' \| \
20691 X"$as_dir" : 'X\(/\)' \| \
20692 . : '\(.\)' 2>/dev/null ||
20693 echo X"$as_dir" |
20694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20696 /^X\(\/\/\)$/{ s//\1/; q; }
20697 /^X\(\/\).*/{ s//\1/; q; }
20698 s/.*/./; q'`
20699 done
20700 test ! -n "$as_dirs" || mkdir $as_dirs
20701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20703 { (exit 1); exit 1; }; }; }
20704
20705 ac_builddir=.
20706
20707 if test "$ac_dir" != .; then
20708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20709 # A "../" for each directory in $ac_dir_suffix.
20710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20711 else
20712 ac_dir_suffix= ac_top_builddir=
20713 fi
20714
20715 case $srcdir in
20716 .) # No --srcdir option. We are building in place.
20717 ac_srcdir=.
20718 if test -z "$ac_top_builddir"; then
20719 ac_top_srcdir=.
20720 else
20721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20722 fi ;;
20723 [\\/]* | ?:[\\/]* ) # Absolute path.
20724 ac_srcdir=$srcdir$ac_dir_suffix;
20725 ac_top_srcdir=$srcdir ;;
20726 *) # Relative path.
20727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20729 esac
20730
20731 # Do not use `cd foo && pwd` to compute absolute paths, because
20732 # the directories may not exist.
20733 case `pwd` in
20734 .) ac_abs_builddir="$ac_dir";;
20735 *)
20736 case "$ac_dir" in
20737 .) ac_abs_builddir=`pwd`;;
20738 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20739 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20740 esac;;
20741 esac
20742 case $ac_abs_builddir in
20743 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20744 *)
20745 case ${ac_top_builddir}. in
20746 .) ac_abs_top_builddir=$ac_abs_builddir;;
20747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20748 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20749 esac;;
20750 esac
20751 case $ac_abs_builddir in
20752 .) ac_abs_srcdir=$ac_srcdir;;
20753 *)
20754 case $ac_srcdir in
20755 .) ac_abs_srcdir=$ac_abs_builddir;;
20756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20757 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20758 esac;;
20759 esac
20760 case $ac_abs_builddir in
20761 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20762 *)
20763 case $ac_top_srcdir in
20764 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20766 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20767 esac;;
20768 esac
20769
20770
20771 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20772 echo "$as_me: executing $ac_dest commands" >&6;}
20773 case $ac_dest in
20774 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20775 # Strip MF so we end up with the name of the file.
20776 mf=`echo "$mf" | sed -e 's/:.*$//'`
20777 # Check whether this is an Automake generated Makefile or not.
20778 # We used to match only the files named `Makefile.in', but
20779 # some people rename them; so instead we look at the file content.
20780 # Grep'ing the first line is not enough: some people post-process
20781 # each Makefile.in and add a new line on top of each file to say so.
20782 # So let's grep whole file.
20783 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20784 dirpart=`(dirname "$mf") 2>/dev/null ||
20785 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20786 X"$mf" : 'X\(//\)[^/]' \| \
20787 X"$mf" : 'X\(//\)$' \| \
20788 X"$mf" : 'X\(/\)' \| \
20789 . : '\(.\)' 2>/dev/null ||
20790 echo X"$mf" |
20791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20793 /^X\(\/\/\)$/{ s//\1/; q; }
20794 /^X\(\/\).*/{ s//\1/; q; }
20795 s/.*/./; q'`
20796 else
20797 continue
20798 fi
20799 # Extract the definition of DEPDIR, am__include, and am__quote
20800 # from the Makefile without running `make'.
20801 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20802 test -z "$DEPDIR" && continue
20803 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20804 test -z "am__include" && continue
20805 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20806 # When using ansi2knr, U may be empty or an underscore; expand it
20807 U=`sed -n 's/^U = //p' < "$mf"`
20808 # Find all dependency output files, they are included files with
20809 # $(DEPDIR) in their names. We invoke sed twice because it is the
20810 # simplest approach to changing $(DEPDIR) to its actual value in the
20811 # expansion.
20812 for file in `sed -n "
20813 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20814 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20815 # Make sure the directory exists.
20816 test -f "$dirpart/$file" && continue
20817 fdir=`(dirname "$file") 2>/dev/null ||
20818 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20819 X"$file" : 'X\(//\)[^/]' \| \
20820 X"$file" : 'X\(//\)$' \| \
20821 X"$file" : 'X\(/\)' \| \
20822 . : '\(.\)' 2>/dev/null ||
20823 echo X"$file" |
20824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20826 /^X\(\/\/\)$/{ s//\1/; q; }
20827 /^X\(\/\).*/{ s//\1/; q; }
20828 s/.*/./; q'`
20829 { if $as_mkdir_p; then
20830 mkdir -p $dirpart/$fdir
20831 else
20832 as_dir=$dirpart/$fdir
20833 as_dirs=
20834 while test ! -d "$as_dir"; do
20835 as_dirs="$as_dir $as_dirs"
20836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20838 X"$as_dir" : 'X\(//\)[^/]' \| \
20839 X"$as_dir" : 'X\(//\)$' \| \
20840 X"$as_dir" : 'X\(/\)' \| \
20841 . : '\(.\)' 2>/dev/null ||
20842 echo X"$as_dir" |
20843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20845 /^X\(\/\/\)$/{ s//\1/; q; }
20846 /^X\(\/\).*/{ s//\1/; q; }
20847 s/.*/./; q'`
20848 done
20849 test ! -n "$as_dirs" || mkdir $as_dirs
20850 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20851 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20852 { (exit 1); exit 1; }; }; }
20853
20854 # echo "creating $dirpart/$file"
20855 echo '# dummy' > "$dirpart/$file"
20856 done
20857 done
20858 ;;
20859 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
20860 $ac_stdint_h )
20861 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
20862 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
20863 ac_stdint=$tmp/_stdint.h
20864
20865 echo "#ifndef" $_ac_stdint_h >$ac_stdint
20866 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
20867 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
20868 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
20869 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
20870 if test "_$ac_cv_header_stdint_t" != "_" ; then
20871 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
20872 echo "#include <stdint.h>" >>$ac_stdint
20873 echo "#endif" >>$ac_stdint
20874 echo "#endif" >>$ac_stdint
20875 else
20876
20877 cat >>$ac_stdint <<STDINT_EOF
20878
20879 /* ................... shortcircuit part ........................... */
20880
20881 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
20882 #include <stdint.h>
20883 #else
20884 #include <stddef.h>
20885
20886 /* .................... configured part ............................ */
20887
20888 STDINT_EOF
20889
20890 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
20891 if test "_$ac_cv_header_stdint_x" != "_" ; then
20892 ac_header="$ac_cv_header_stdint_x"
20893 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
20894 else
20895 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
20896 fi
20897
20898 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
20899 if test "_$ac_cv_header_stdint_o" != "_" ; then
20900 ac_header="$ac_cv_header_stdint_o"
20901 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
20902 else
20903 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
20904 fi
20905
20906 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
20907 if test "_$ac_cv_header_stdint_u" != "_" ; then
20908 ac_header="$ac_cv_header_stdint_u"
20909 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
20910 else
20911 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
20912 fi
20913
20914 echo "" >>$ac_stdint
20915
20916 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
20917 echo "#include <$ac_header>" >>$ac_stdint
20918 echo "" >>$ac_stdint
20919 fi fi
20920
20921 echo "/* which 64bit typedef has been found */" >>$ac_stdint
20922 if test "$ac_cv_type_uint64_t" = "yes" ; then
20923 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
20924 else
20925 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
20926 fi
20927 if test "$ac_cv_type_u_int64_t" = "yes" ; then
20928 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
20929 else
20930 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
20931 fi
20932 echo "" >>$ac_stdint
20933
20934 echo "/* which type model has been detected */" >>$ac_stdint
20935 if test "_$ac_cv_char_data_model" != "_" ; then
20936 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
20937 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
20938 else
20939 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
20940 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
20941 fi
20942 echo "" >>$ac_stdint
20943
20944 echo "/* whether int_least types were detected */" >>$ac_stdint
20945 if test "$ac_cv_type_int_least32_t" = "yes"; then
20946 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
20947 else
20948 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
20949 fi
20950 echo "/* whether int_fast types were detected */" >>$ac_stdint
20951 if test "$ac_cv_type_int_fast32_t" = "yes"; then
20952 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
20953 else
20954 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
20955 fi
20956 echo "/* whether intmax_t type was detected */" >>$ac_stdint
20957 if test "$ac_cv_type_intmax_t" = "yes"; then
20958 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
20959 else
20960 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
20961 fi
20962 echo "" >>$ac_stdint
20963
20964 cat >>$ac_stdint <<STDINT_EOF
20965 /* .................... detections part ............................ */
20966
20967 /* whether we need to define bitspecific types from compiler base types */
20968 #ifndef _STDINT_HEADER_INTPTR
20969 #ifndef _STDINT_HEADER_UINT32
20970 #ifndef _STDINT_HEADER_U_INT32
20971 #define _STDINT_NEED_INT_MODEL_T
20972 #else
20973 #define _STDINT_HAVE_U_INT_TYPES
20974 #endif
20975 #endif
20976 #endif
20977
20978 #ifdef _STDINT_HAVE_U_INT_TYPES
20979 #undef _STDINT_NEED_INT_MODEL_T
20980 #endif
20981
20982 #ifdef _STDINT_CHAR_MODEL
20983 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
20984 #ifndef _STDINT_BYTE_MODEL
20985 #define _STDINT_BYTE_MODEL 12
20986 #endif
20987 #endif
20988 #endif
20989
20990 #ifndef _STDINT_HAVE_INT_LEAST32_T
20991 #define _STDINT_NEED_INT_LEAST_T
20992 #endif
20993
20994 #ifndef _STDINT_HAVE_INT_FAST32_T
20995 #define _STDINT_NEED_INT_FAST_T
20996 #endif
20997
20998 #ifndef _STDINT_HEADER_INTPTR
20999 #define _STDINT_NEED_INTPTR_T
21000 #ifndef _STDINT_HAVE_INTMAX_T
21001 #define _STDINT_NEED_INTMAX_T
21002 #endif
21003 #endif
21004
21005
21006 /* .................... definition part ............................ */
21007
21008 /* some system headers have good uint64_t */
21009 #ifndef _HAVE_UINT64_T
21010 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
21011 #define _HAVE_UINT64_T
21012 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
21013 #define _HAVE_UINT64_T
21014 typedef u_int64_t uint64_t;
21015 #endif
21016 #endif
21017
21018 #ifndef _HAVE_UINT64_T
21019 /* .. here are some common heuristics using compiler runtime specifics */
21020 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
21021 #define _HAVE_UINT64_T
21022 #define _HAVE_LONGLONG_UINT64_T
21023 typedef long long int64_t;
21024 typedef unsigned long long uint64_t;
21025
21026 #elif !defined __STRICT_ANSI__
21027 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21028 #define _HAVE_UINT64_T
21029 typedef __int64 int64_t;
21030 typedef unsigned __int64 uint64_t;
21031
21032 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
21033 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
21034 #if !defined _NO_LONGLONG
21035 #define _HAVE_UINT64_T
21036 #define _HAVE_LONGLONG_UINT64_T
21037 typedef long long int64_t;
21038 typedef unsigned long long uint64_t;
21039 #endif
21040
21041 #elif defined __alpha || (defined __mips && defined _ABIN32)
21042 #if !defined _NO_LONGLONG
21043 typedef long int64_t;
21044 typedef unsigned long uint64_t;
21045 #endif
21046 /* compiler/cpu type to define int64_t */
21047 #endif
21048 #endif
21049 #endif
21050
21051 #if defined _STDINT_HAVE_U_INT_TYPES
21052 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
21053 typedef u_int8_t uint8_t;
21054 typedef u_int16_t uint16_t;
21055 typedef u_int32_t uint32_t;
21056
21057 /* glibc compatibility */
21058 #ifndef __int8_t_defined
21059 #define __int8_t_defined
21060 #endif
21061 #endif
21062
21063 #ifdef _STDINT_NEED_INT_MODEL_T
21064 /* we must guess all the basic types. Apart from byte-adressable system, */
21065 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
21066 /* (btw, those nibble-addressable systems are way off, or so we assume) */
21067
21068
21069 #if defined _STDINT_BYTE_MODEL
21070 #if _STDINT_LONG_MODEL+0 == 242
21071 /* 2:4:2 = IP16 = a normal 16-bit system */
21072 typedef unsigned char uint8_t;
21073 typedef unsigned short uint16_t;
21074 typedef unsigned long uint32_t;
21075 #ifndef __int8_t_defined
21076 #define __int8_t_defined
21077 typedef char int8_t;
21078 typedef short int16_t;
21079 typedef long int32_t;
21080 #endif
21081 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
21082 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
21083 /* 4:4:4 = ILP32 = a normal 32-bit system */
21084 typedef unsigned char uint8_t;
21085 typedef unsigned short uint16_t;
21086 typedef unsigned int uint32_t;
21087 #ifndef __int8_t_defined
21088 #define __int8_t_defined
21089 typedef char int8_t;
21090 typedef short int16_t;
21091 typedef int int32_t;
21092 #endif
21093 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
21094 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
21095 /* 4:8:8 = LP64 = a normal 64-bit system */
21096 typedef unsigned char uint8_t;
21097 typedef unsigned short uint16_t;
21098 typedef unsigned int uint32_t;
21099 #ifndef __int8_t_defined
21100 #define __int8_t_defined
21101 typedef char int8_t;
21102 typedef short int16_t;
21103 typedef int int32_t;
21104 #endif
21105 /* this system has a "long" of 64bit */
21106 #ifndef _HAVE_UINT64_T
21107 #define _HAVE_UINT64_T
21108 typedef unsigned long uint64_t;
21109 typedef long int64_t;
21110 #endif
21111 #elif _STDINT_LONG_MODEL+0 == 448
21112 /* LLP64 a 64-bit system derived from a 32-bit system */
21113 typedef unsigned char uint8_t;
21114 typedef unsigned short uint16_t;
21115 typedef unsigned int uint32_t;
21116 #ifndef __int8_t_defined
21117 #define __int8_t_defined
21118 typedef char int8_t;
21119 typedef short int16_t;
21120 typedef int int32_t;
21121 #endif
21122 /* assuming the system has a "long long" */
21123 #ifndef _HAVE_UINT64_T
21124 #define _HAVE_UINT64_T
21125 #define _HAVE_LONGLONG_UINT64_T
21126 typedef unsigned long long uint64_t;
21127 typedef long long int64_t;
21128 #endif
21129 #else
21130 #define _STDINT_NO_INT32_T
21131 #endif
21132 #else
21133 #define _STDINT_NO_INT8_T
21134 #define _STDINT_NO_INT32_T
21135 #endif
21136 #endif
21137
21138 /*
21139 * quote from SunOS-5.8 sys/inttypes.h:
21140 * Use at your own risk. As of February 1996, the committee is squarely
21141 * behind the fixed sized types; the "least" and "fast" types are still being
21142 * discussed. The probability that the "fast" types may be removed before
21143 * the standard is finalized is high enough that they are not currently
21144 * implemented.
21145 */
21146
21147 #if defined _STDINT_NEED_INT_LEAST_T
21148 typedef int8_t int_least8_t;
21149 typedef int16_t int_least16_t;
21150 typedef int32_t int_least32_t;
21151 #ifdef _HAVE_UINT64_T
21152 typedef int64_t int_least64_t;
21153 #endif
21154
21155 typedef uint8_t uint_least8_t;
21156 typedef uint16_t uint_least16_t;
21157 typedef uint32_t uint_least32_t;
21158 #ifdef _HAVE_UINT64_T
21159 typedef uint64_t uint_least64_t;
21160 #endif
21161 /* least types */
21162 #endif
21163
21164 #if defined _STDINT_NEED_INT_FAST_T
21165 typedef int8_t int_fast8_t;
21166 typedef int int_fast16_t;
21167 typedef int32_t int_fast32_t;
21168 #ifdef _HAVE_UINT64_T
21169 typedef int64_t int_fast64_t;
21170 #endif
21171
21172 typedef uint8_t uint_fast8_t;
21173 typedef unsigned uint_fast16_t;
21174 typedef uint32_t uint_fast32_t;
21175 #ifdef _HAVE_UINT64_T
21176 typedef uint64_t uint_fast64_t;
21177 #endif
21178 /* fast types */
21179 #endif
21180
21181 #ifdef _STDINT_NEED_INTMAX_T
21182 #ifdef _HAVE_UINT64_T
21183 typedef int64_t intmax_t;
21184 typedef uint64_t uintmax_t;
21185 #else
21186 typedef long intmax_t;
21187 typedef unsigned long uintmax_t;
21188 #endif
21189 #endif
21190
21191 #ifdef _STDINT_NEED_INTPTR_T
21192 #ifndef __intptr_t_defined
21193 #define __intptr_t_defined
21194 /* we encourage using "long" to store pointer values, never use "int" ! */
21195 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
21196 typedef unsigned int uintptr_t;
21197 typedef int intptr_t;
21198 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
21199 typedef unsigned long uintptr_t;
21200 typedef long intptr_t;
21201 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
21202 typedef uint64_t uintptr_t;
21203 typedef int64_t intptr_t;
21204 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
21205 typedef unsigned long uintptr_t;
21206 typedef long intptr_t;
21207 #endif
21208 #endif
21209 #endif
21210
21211 /* The ISO C99 standard specifies that in C++ implementations these
21212 should only be defined if explicitly requested. */
21213 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
21214 #ifndef UINT32_C
21215
21216 /* Signed. */
21217 # define INT8_C(c) c
21218 # define INT16_C(c) c
21219 # define INT32_C(c) c
21220 # ifdef _HAVE_LONGLONG_UINT64_T
21221 # define INT64_C(c) c ## L
21222 # else
21223 # define INT64_C(c) c ## LL
21224 # endif
21225
21226 /* Unsigned. */
21227 # define UINT8_C(c) c ## U
21228 # define UINT16_C(c) c ## U
21229 # define UINT32_C(c) c ## U
21230 # ifdef _HAVE_LONGLONG_UINT64_T
21231 # define UINT64_C(c) c ## UL
21232 # else
21233 # define UINT64_C(c) c ## ULL
21234 # endif
21235
21236 /* Maximal type. */
21237 # ifdef _HAVE_LONGLONG_UINT64_T
21238 # define INTMAX_C(c) c ## L
21239 # define UINTMAX_C(c) c ## UL
21240 # else
21241 # define INTMAX_C(c) c ## LL
21242 # define UINTMAX_C(c) c ## ULL
21243 # endif
21244
21245 /* literalnumbers */
21246 #endif
21247 #endif
21248
21249 /* These limits are merily those of a two complement byte-oriented system */
21250
21251 /* Minimum of signed integral types. */
21252 # define INT8_MIN (-128)
21253 # define INT16_MIN (-32767-1)
21254 # define INT32_MIN (-2147483647-1)
21255 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
21256 /* Maximum of signed integral types. */
21257 # define INT8_MAX (127)
21258 # define INT16_MAX (32767)
21259 # define INT32_MAX (2147483647)
21260 # define INT64_MAX (__INT64_C(9223372036854775807))
21261
21262 /* Maximum of unsigned integral types. */
21263 # define UINT8_MAX (255)
21264 # define UINT16_MAX (65535)
21265 # define UINT32_MAX (4294967295U)
21266 # define UINT64_MAX (__UINT64_C(18446744073709551615))
21267
21268 /* Minimum of signed integral types having a minimum size. */
21269 # define INT_LEAST8_MIN INT8_MIN
21270 # define INT_LEAST16_MIN INT16_MIN
21271 # define INT_LEAST32_MIN INT32_MIN
21272 # define INT_LEAST64_MIN INT64_MIN
21273 /* Maximum of signed integral types having a minimum size. */
21274 # define INT_LEAST8_MAX INT8_MAX
21275 # define INT_LEAST16_MAX INT16_MAX
21276 # define INT_LEAST32_MAX INT32_MAX
21277 # define INT_LEAST64_MAX INT64_MAX
21278
21279 /* Maximum of unsigned integral types having a minimum size. */
21280 # define UINT_LEAST8_MAX UINT8_MAX
21281 # define UINT_LEAST16_MAX UINT16_MAX
21282 # define UINT_LEAST32_MAX UINT32_MAX
21283 # define UINT_LEAST64_MAX UINT64_MAX
21284
21285 /* shortcircuit*/
21286 #endif
21287 /* once */
21288 #endif
21289 #endif
21290 STDINT_EOF
21291 fi
21292 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
21293 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
21294 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21295 else
21296 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
21297 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21298 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
21299 X"$ac_stdint_h" : 'X\(//\)$' \| \
21300 X"$ac_stdint_h" : 'X\(/\)' \| \
21301 . : '\(.\)' 2>/dev/null ||
21302 echo X"$ac_stdint_h" |
21303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21305 /^X\(\/\/\)$/{ s//\1/; q; }
21306 /^X\(\/\).*/{ s//\1/; q; }
21307 s/.*/./; q'`
21308 { if $as_mkdir_p; then
21309 mkdir -p "$ac_dir"
21310 else
21311 as_dir="$ac_dir"
21312 as_dirs=
21313 while test ! -d "$as_dir"; do
21314 as_dirs="$as_dir $as_dirs"
21315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21317 X"$as_dir" : 'X\(//\)[^/]' \| \
21318 X"$as_dir" : 'X\(//\)$' \| \
21319 X"$as_dir" : 'X\(/\)' \| \
21320 . : '\(.\)' 2>/dev/null ||
21321 echo X"$as_dir" |
21322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21324 /^X\(\/\/\)$/{ s//\1/; q; }
21325 /^X\(\/\).*/{ s//\1/; q; }
21326 s/.*/./; q'`
21327 done
21328 test ! -n "$as_dirs" || mkdir $as_dirs
21329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21331 { (exit 1); exit 1; }; }; }
21332
21333 rm -f $ac_stdint_h
21334 mv $ac_stdint $ac_stdint_h
21335 fi
21336 ;;
21337 gappletviewer ) chmod 755 tools/gappletviewer ;;
21338 gjarsigner ) chmod 755 tools/gjarsigner ;;
21339 gkeytool ) chmod 755 tools/gkeytool ;;
21340 gjar ) chmod 755 tools/gjar ;;
21341 gnative2ascii ) chmod 755 tools/gnative2ascii ;;
21342 gserialver ) chmod 755 tools/gserialver ;;
21343 appletviewer ) chmod 755 tools/appletviewer ;;
21344 jarsigner ) chmod 755 tools/jarsigner ;;
21345 keytool ) chmod 755 tools/keytool ;;
21346 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
21347 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
21348 esac
21349 done
21350 _ACEOF
21351
21352 cat >>$CONFIG_STATUS <<\_ACEOF
21353
21354 { (exit 0); exit 0; }
21355 _ACEOF
21356 chmod +x $CONFIG_STATUS
21357 ac_clean_files=$ac_clean_files_save
21358
21359
21360 # configure is writing to config.log, and then calls config.status.
21361 # config.status does its own redirection, appending to config.log.
21362 # Unfortunately, on DOS this fails, as config.log is still kept open
21363 # by configure, so config.status won't be able to write to it; its
21364 # output is simply discarded. So we exec the FD to /dev/null,
21365 # effectively closing config.log, so it can be properly (re)opened and
21366 # appended to by config.status. When coming back to configure, we
21367 # need to make the FD available again.
21368 if test "$no_create" != yes; then
21369 ac_cs_success=:
21370 ac_config_status_args=
21371 test "$silent" = yes &&
21372 ac_config_status_args="$ac_config_status_args --quiet"
21373 exec 5>/dev/null
21374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21375 exec 5>>config.log
21376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21377 # would make configure fail if this is the last instruction.
21378 $ac_cs_success || { (exit 1); exit 1; }
21379 fi
21380
21381
21382 # Create standard.omit based on decisions we just made.
21383 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
21384 if test x$use_escher != xtrue; then
21385 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
21386 fi
21387