* system.h (gcc_assert): Invoke __builtin_unreachable() instead of
[official-gcc.git] / libjava / classpath / configure
blob466fa46bdba057a73af54bcc42b5becdff5b1f50
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.98.
5 # Report bugs to <classpath@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$lt_ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 ECHO=${lt_ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<_LT_EOF
277 _LT_EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$lt_ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
291 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
292 then
293 break
295 done
298 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 ECHO="$dir/echo"
317 break
319 done
320 IFS="$lt_save_ifs"
322 if test "X$ECHO" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 ECHO='print -r'
329 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 ECHO='printf %s\n'
340 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 ECHO="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 ECHO="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
365 then
366 break
368 prev="$cmd"
369 done
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 ECHO=echo
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 lt_ECHO=$ECHO
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 # Name of the host.
396 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397 # so uname gets run too.
398 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
400 exec 6>&1
403 # Initializations.
405 ac_default_prefix=/usr/local
406 ac_config_libobj_dir=.
407 cross_compiling=no
408 subdirs=
409 MFLAGS=
410 MAKEFLAGS=
411 SHELL=${CONFIG_SHELL-/bin/sh}
413 # Maximum number of lines to put in a shell here document.
414 # This variable seems obsolete. It should probably be removed, and
415 # only ac_max_sed_lines should be used.
416 : ${ac_max_here_lines=38}
418 # Identity of this package.
419 PACKAGE_NAME='GNU Classpath'
420 PACKAGE_TARNAME='classpath'
421 PACKAGE_VERSION='0.98'
422 PACKAGE_STRING='GNU Classpath 0.98'
423 PACKAGE_BUGREPORT='classpath@gnu.org'
425 ac_unique_file="java/lang/System.java"
426 ac_default_prefix=/usr/local/classpath
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 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 JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE GENINSRC_TRUE GENINSRC_FALSE multi_basedir INSTALL_BINARIES_TRUE INSTALL_BINARIES_FALSE 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 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE CREATE_GSTREAMER_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 CREATE_GJDOC_TRUE CREATE_GJDOC_FALSE toolexeclibdir nativeexeclibdir glibjdir CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_GJDOC_PARSER_TRUE CREATE_GJDOC_PARSER_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC LIBICONV LTLIBICONV WARNING_CFLAGS EXTRA_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 CAIRO_CFLAGS CAIRO_LIBS XTEST_LIBS GCONF_CFLAGS GCONF_LIBS GDK_CFLAGS GDK_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GSTREAMER_BASE_CFLAGS GSTREAMER_BASE_LIBS GSTREAMER_PLUGINS_BASE_CFLAGS GSTREAMER_PLUGINS_BASE_LIBS GST_PLUGIN_LDFLAGS GSTREAMER_FILE_READER GSTREAMER_MIXER_PROVIDER QT_CFLAGS QT_LIBS MOC MOZILLA_CFLAGS MOZILLA_LIBS GLIB_CFLAGS GLIB_LIBS PLUGIN_DIR GMP_CFLAGS GMP_LIBS USER_JAVAH CLASSPATH_INCLUDES vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY ECJ_JAR JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP JAR WITH_JAR_TRUE WITH_JAR_FALSE 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 TOOLSDIR 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 JAVA uudecode JAVAC JAVAC_IS_GCJ GCJ_JAVAC_TRUE GCJ_JAVAC_FALSE ANTLR_JAR ANTLR ac_ct_ANTLR JAVAC_MEM_OPT USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER WANT_NATIVE_BIG_INTEGER CREATE_GMPBI_LIBRARY_TRUE CREATE_GMPBI_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
466 ac_pwd=`pwd`
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
506 ac_prev=
507 for ac_option
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518 # Accept the important Cygnus configure options, so we can diagnose typos.
520 case $ac_option in
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
523 ac_prev=bindir ;;
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 bindir=$ac_optarg ;;
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
539 --config-cache | -C)
540 cache_file=config.cache ;;
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir=$ac_optarg ;;
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
583 -help | --help | --hel | --he | -h)
584 ac_init_help=long ;;
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
603 ac_prev=infodir ;;
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
607 -libdir | --libdir | --libdi | --libd)
608 ac_prev=libdir ;;
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 libdir=$ac_optarg ;;
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629 ac_prev=mandir ;;
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 mandir=$ac_optarg ;;
633 -nfp | --nfp | --nf)
634 # Obsolete; use --without-fp.
635 with_fp=no ;;
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
639 no_create=yes ;;
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 no_recursion=yes ;;
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655 ac_prev=prefix ;;
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 prefix=$ac_optarg ;;
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
692 silent=yes ;;
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695 ac_prev=sbindir ;;
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697 | --sbi=* | --sb=*)
698 sbindir=$ac_optarg ;;
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
703 | --sha | --sh)
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708 | --sha=* | --sh=*)
709 sharedstatedir=$ac_optarg ;;
711 -site | --site | --sit)
712 ac_prev=site ;;
713 -site=* | --site=* | --sit=*)
714 site=$ac_optarg ;;
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717 ac_prev=srcdir ;;
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 srcdir=$ac_optarg ;;
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 verbose=yes ;;
736 -version | --version | --versio | --versi | --vers | -V)
737 ac_init_version=: ;;
739 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
749 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
761 --x)
762 # Obsolete; use --with-x.
763 with_x=yes ;;
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
784 *=*)
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
792 export $ac_envvar ;;
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 esac
803 done
805 if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
819 esac
820 done
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832 done
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
848 cross_compiling=yes
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
874 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
876 srcdir=..
878 else
879 ac_srcdir_defaulted=no
881 if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
940 # Report the --help message.
942 if test "$ac_init_help" = "long"; then
943 # Omit some internal or obsolete options to make the list less imposing.
944 # This message is too long to be a string in the A/UX 3.1 sh.
945 cat <<_ACEOF
946 \`configure' configures GNU Classpath 0.98 to adapt to many kinds of systems.
948 Usage: $0 [OPTION]... [VAR=VALUE]...
950 To assign environment variables (e.g., CC, CFLAGS...), specify them as
951 VAR=VALUE. See below for descriptions of some of the useful variables.
953 Defaults for the options are specified in brackets.
955 Configuration:
956 -h, --help display this help and exit
957 --help=short display options specific to this package
958 --help=recursive display the short help of all the included packages
959 -V, --version display version information and exit
960 -q, --quiet, --silent do not print \`checking...' messages
961 --cache-file=FILE cache test results in FILE [disabled]
962 -C, --config-cache alias for \`--cache-file=config.cache'
963 -n, --no-create do not create output files
964 --srcdir=DIR find the sources in DIR [configure dir or \`..']
966 _ACEOF
968 cat <<_ACEOF
969 Installation directories:
970 --prefix=PREFIX install architecture-independent files in PREFIX
971 [$ac_default_prefix]
972 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
973 [PREFIX]
975 By default, \`make install' will install all the files in
976 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
977 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
978 for instance \`--prefix=\$HOME'.
980 For better control, use the options below.
982 Fine tuning of the installation directories:
983 --bindir=DIR user executables [EPREFIX/bin]
984 --sbindir=DIR system admin executables [EPREFIX/sbin]
985 --libexecdir=DIR program executables [EPREFIX/libexec]
986 --datadir=DIR read-only architecture-independent data [PREFIX/share]
987 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
988 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
989 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
990 --libdir=DIR object code libraries [EPREFIX/lib]
991 --includedir=DIR C header files [PREFIX/include]
992 --oldincludedir=DIR C header files for non-gcc [/usr/include]
993 --infodir=DIR info documentation [PREFIX/info]
994 --mandir=DIR man documentation [PREFIX/man]
995 _ACEOF
997 cat <<\_ACEOF
999 Program names:
1000 --program-prefix=PREFIX prepend PREFIX to installed program names
1001 --program-suffix=SUFFIX append SUFFIX to installed program names
1002 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1004 X features:
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1008 System types:
1009 --build=BUILD configure for building on BUILD [guessed]
1010 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1011 --target=TARGET configure for building compilers for TARGET [HOST]
1012 _ACEOF
1015 if test -n "$ac_init_help"; then
1016 case $ac_init_help in
1017 short | recursive ) echo "Configuration of GNU Classpath 0.98:";;
1018 esac
1019 cat <<\_ACEOF
1021 Optional Features:
1022 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1023 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1024 --enable-java-maintainer-mode
1025 allow rebuilding of .class and .h files
1026 --enable-generated-files-in-srcdir
1027 put copies of generated files in source dir
1028 intended for creating source tarballs for users
1029 without texinfo, perl, bison or flex.
1030 --enable-multilib build many library versions (default)
1031 --enable-collections create collections.jar default=no
1032 --enable-jni compile JNI source default=yes
1033 --enable-core-jni compile JNI sources for core default=yes
1034 --enable-default-preferences-peer[=peer type or class name]
1035 specify one of: "gconf" [default] for a GConf based
1036 backend, "file" for a file based one, "memory" for a
1037 transient one, or a fully qualified class name
1038 implementing java.util.prefs.PreferencesFactory
1039 --disable-gconf-peer compile GConf native peers (disabled by
1040 --disable-jni) default=yes
1042 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1043 --disable-jni) default=no
1044 --enable-Werror whether to compile C code with -Werror which turns
1045 any compiler warning into a compilation failure
1046 default=no
1047 --enable-default-toolkit
1048 fully qualified class name of default AWT toolkit
1049 --enable-xmlj compile native libxml/xslt library default=no
1050 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1051 default=yes
1052 --disable-dependency-tracking speeds up one-time build
1053 --enable-dependency-tracking do not reject slow dependency extractors
1054 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1055 default=yes
1056 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1057 default=yes
1058 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1059 default=no
1060 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1061 default=yes
1062 --enable-gmp compile native java.math.BigInteger library
1063 (disabled by --disable-gmp) default=yes
1064 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1065 default=yes
1066 --enable-regen-headers automatically regenerate JNI headers default=yes if
1067 headers don't exist
1068 --enable-regen-gjdoc-parser
1069 automatically regenerate the GJDoc parser
1070 default=yes if generated source doesn't exist
1071 --enable-tool-wrappers create tool wrapper binaries default=no
1072 --enable-static[=PKGS]
1073 build static libraries [default=no]
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-fast-install[=PKGS]
1077 optimize for fast installation [default=yes]
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1079 --disable-rpath do not hardcode runtime library paths
1080 --enable-maintainer-mode enable make rules and dependencies not useful
1081 (and sometimes confusing) to the casual installer
1082 --enable-debug enable runtime debugging code
1083 --enable-load-library enable to use JNI native methods default=yes
1084 --enable-java-lang-system-explicit-initialization
1085 will the VM explicitly invoke java.lang.System's
1086 static initialization methods default=no
1087 --enable-examples enable build of the examples default=yes
1088 --enable-tools enable build of the tools default=yes
1089 --enable-portable-native-sync
1090 synchronize VM threads portably
1091 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1093 Optional Packages:
1094 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1095 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1096 --with-native-libdir sets the installation directory for native libraries
1097 default='${libdir}/${PACKAGE}'
1098 --with-glibj-dir sets the installation directory for glibj.zip
1099 default='${libdir}/${PACKAGE}'
1100 --with-antlr-jar=file Use ANTLR from the specified jar file
1101 --with-pic try to use only PIC/non-PIC objects [default=use
1102 both]
1103 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1104 --with-gnu-ld assume the C compiler uses GNU ld default=no
1105 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1106 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1107 --with-x use the X Window System
1108 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1109 systems use pkg-config.
1110 --with-javah specify path or name of a javah-like program
1111 --with-vm-classes specify path to VM override source files
1112 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1113 Compiler
1114 --with-jar=PATH define to use a jar style tool
1115 --with-glibj define what to install (zip|flat|both|none|build)
1116 [default=zip]
1117 --with-gjdoc generate documentation using gjdoc (default is NO)
1118 --with-jay=DIR|PATH Regenerate the parsers with jay
1119 --with-glibj-zip=ABS.PATH
1120 use prebuilt glibj.zip class library
1121 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1123 Some influential environment variables:
1124 CC C compiler command
1125 CFLAGS C compiler flags
1126 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1127 nonstandard directory <lib dir>
1128 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129 headers in a nonstandard directory <include dir>
1130 CPP C preprocessor
1131 CXX C++ compiler command
1132 CXXFLAGS C++ compiler flags
1133 CXXCPP C++ preprocessor
1135 Use these variables to override the choices made by `configure' or to help
1136 it to find libraries and programs with nonstandard names/locations.
1138 Report bugs to <classpath@gnu.org>.
1139 _ACEOF
1142 if test "$ac_init_help" = "recursive"; then
1143 # If there are subdirs, report their specific --help.
1144 ac_popdir=`pwd`
1145 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1146 test -d $ac_dir || continue
1147 ac_builddir=.
1149 if test "$ac_dir" != .; then
1150 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1151 # A "../" for each directory in $ac_dir_suffix.
1152 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153 else
1154 ac_dir_suffix= ac_top_builddir=
1157 case $srcdir in
1158 .) # No --srcdir option. We are building in place.
1159 ac_srcdir=.
1160 if test -z "$ac_top_builddir"; then
1161 ac_top_srcdir=.
1162 else
1163 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164 fi ;;
1165 [\\/]* | ?:[\\/]* ) # Absolute path.
1166 ac_srcdir=$srcdir$ac_dir_suffix;
1167 ac_top_srcdir=$srcdir ;;
1168 *) # Relative path.
1169 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1170 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1171 esac
1173 # Do not use `cd foo && pwd` to compute absolute paths, because
1174 # the directories may not exist.
1175 case `pwd` in
1176 .) ac_abs_builddir="$ac_dir";;
1178 case "$ac_dir" in
1179 .) ac_abs_builddir=`pwd`;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1181 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1182 esac;;
1183 esac
1184 case $ac_abs_builddir in
1185 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1187 case ${ac_top_builddir}. in
1188 .) ac_abs_top_builddir=$ac_abs_builddir;;
1189 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1190 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1191 esac;;
1192 esac
1193 case $ac_abs_builddir in
1194 .) ac_abs_srcdir=$ac_srcdir;;
1196 case $ac_srcdir in
1197 .) ac_abs_srcdir=$ac_abs_builddir;;
1198 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1199 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1200 esac;;
1201 esac
1202 case $ac_abs_builddir in
1203 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1205 case $ac_top_srcdir in
1206 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1207 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1208 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209 esac;;
1210 esac
1212 cd $ac_dir
1213 # Check for guested configure; otherwise get Cygnus style configure.
1214 if test -f $ac_srcdir/configure.gnu; then
1215 echo
1216 $SHELL $ac_srcdir/configure.gnu --help=recursive
1217 elif test -f $ac_srcdir/configure; then
1218 echo
1219 $SHELL $ac_srcdir/configure --help=recursive
1220 elif test -f $ac_srcdir/configure.ac ||
1221 test -f $ac_srcdir/configure.in; then
1222 echo
1223 $ac_configure --help
1224 else
1225 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227 cd $ac_popdir
1228 done
1231 test -n "$ac_init_help" && exit 0
1232 if $ac_init_version; then
1233 cat <<\_ACEOF
1234 GNU Classpath configure 0.98
1235 generated by GNU Autoconf 2.59
1237 Copyright (C) 2003 Free Software Foundation, Inc.
1238 This configure script is free software; the Free Software Foundation
1239 gives unlimited permission to copy, distribute and modify it.
1240 _ACEOF
1241 exit 0
1243 exec 5>config.log
1244 cat >&5 <<_ACEOF
1245 This file contains any messages produced by compilers while
1246 running configure, to aid debugging if configure makes a mistake.
1248 It was created by GNU Classpath $as_me 0.98, which was
1249 generated by GNU Autoconf 2.59. Invocation command line was
1251 $ $0 $@
1253 _ACEOF
1255 cat <<_ASUNAME
1256 ## --------- ##
1257 ## Platform. ##
1258 ## --------- ##
1260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1272 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1277 _ASUNAME
1279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1280 for as_dir in $PATH
1282 IFS=$as_save_IFS
1283 test -z "$as_dir" && as_dir=.
1284 echo "PATH: $as_dir"
1285 done
1287 } >&5
1289 cat >&5 <<_ACEOF
1292 ## ----------- ##
1293 ## Core tests. ##
1294 ## ----------- ##
1296 _ACEOF
1299 # Keep a trace of the command line.
1300 # Strip out --no-create and --no-recursion so they do not pile up.
1301 # Strip out --silent because we don't want to record it for future runs.
1302 # Also quote any args containing shell meta-characters.
1303 # Make two passes to allow for proper duplicate-argument suppression.
1304 ac_configure_args=
1305 ac_configure_args0=
1306 ac_configure_args1=
1307 ac_sep=
1308 ac_must_keep_next=false
1309 for ac_pass in 1 2
1311 for ac_arg
1313 case $ac_arg in
1314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316 | -silent | --silent | --silen | --sile | --sil)
1317 continue ;;
1318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1320 esac
1321 case $ac_pass in
1322 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1324 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1325 if test $ac_must_keep_next = true; then
1326 ac_must_keep_next=false # Got value, back to normal.
1327 else
1328 case $ac_arg in
1329 *=* | --config-cache | -C | -disable-* | --disable-* \
1330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1332 | -with-* | --with-* | -without-* | --without-* | --x)
1333 case "$ac_configure_args0 " in
1334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1335 esac
1337 -* ) ac_must_keep_next=true ;;
1338 esac
1340 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1341 # Get rid of the leading space.
1342 ac_sep=" "
1344 esac
1345 done
1346 done
1347 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1348 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1350 # When interrupted or exit'd, cleanup temporary files, and complete
1351 # config.log. We remove comments because anyway the quotes in there
1352 # would cause problems or look ugly.
1353 # WARNING: Be sure not to use single quotes in there, as some shells,
1354 # such as our DU 5.0 friend, will then `close' the trap.
1355 trap 'exit_status=$?
1356 # Save into config.log some information that might help in debugging.
1358 echo
1360 cat <<\_ASBOX
1361 ## ---------------- ##
1362 ## Cache variables. ##
1363 ## ---------------- ##
1364 _ASBOX
1365 echo
1366 # The following way of writing the cache mishandles newlines in values,
1368 (set) 2>&1 |
1369 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1370 *ac_space=\ *)
1371 sed -n \
1372 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376 sed -n \
1377 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1379 esac;
1381 echo
1383 cat <<\_ASBOX
1384 ## ----------------- ##
1385 ## Output variables. ##
1386 ## ----------------- ##
1387 _ASBOX
1388 echo
1389 for ac_var in $ac_subst_vars
1391 eval ac_val=$`echo $ac_var`
1392 echo "$ac_var='"'"'$ac_val'"'"'"
1393 done | sort
1394 echo
1396 if test -n "$ac_subst_files"; then
1397 cat <<\_ASBOX
1398 ## ------------- ##
1399 ## Output files. ##
1400 ## ------------- ##
1401 _ASBOX
1402 echo
1403 for ac_var in $ac_subst_files
1405 eval ac_val=$`echo $ac_var`
1406 echo "$ac_var='"'"'$ac_val'"'"'"
1407 done | sort
1408 echo
1411 if test -s confdefs.h; then
1412 cat <<\_ASBOX
1413 ## ----------- ##
1414 ## confdefs.h. ##
1415 ## ----------- ##
1416 _ASBOX
1417 echo
1418 sed "/^$/d" confdefs.h | sort
1419 echo
1421 test "$ac_signal" != 0 &&
1422 echo "$as_me: caught signal $ac_signal"
1423 echo "$as_me: exit $exit_status"
1424 } >&5
1425 rm -f core *.core &&
1426 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1427 exit $exit_status
1429 for ac_signal in 1 2 13 15; do
1430 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1431 done
1432 ac_signal=0
1434 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1435 rm -rf conftest* confdefs.h
1436 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1437 echo >confdefs.h
1439 # Predefined preprocessor variables.
1441 cat >>confdefs.h <<_ACEOF
1442 #define PACKAGE_NAME "$PACKAGE_NAME"
1443 _ACEOF
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1448 _ACEOF
1451 cat >>confdefs.h <<_ACEOF
1452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1453 _ACEOF
1456 cat >>confdefs.h <<_ACEOF
1457 #define PACKAGE_STRING "$PACKAGE_STRING"
1458 _ACEOF
1461 cat >>confdefs.h <<_ACEOF
1462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1463 _ACEOF
1466 # Let the site file select an alternate cache file if it wants to.
1467 # Prefer explicitly selected file to automatically selected ones.
1468 if test -z "$CONFIG_SITE"; then
1469 if test "x$prefix" != xNONE; then
1470 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1471 else
1472 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475 for ac_site_file in $CONFIG_SITE; do
1476 if test -r "$ac_site_file"; then
1477 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1478 echo "$as_me: loading site script $ac_site_file" >&6;}
1479 sed 's/^/| /' "$ac_site_file" >&5
1480 . "$ac_site_file"
1482 done
1484 if test -r "$cache_file"; then
1485 # Some versions of bash will fail to source /dev/null (special
1486 # files actually), so we avoid doing that.
1487 if test -f "$cache_file"; then
1488 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1489 echo "$as_me: loading cache $cache_file" >&6;}
1490 case $cache_file in
1491 [\\/]* | ?:[\\/]* ) . $cache_file;;
1492 *) . ./$cache_file;;
1493 esac
1495 else
1496 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1497 echo "$as_me: creating cache $cache_file" >&6;}
1498 >$cache_file
1501 # Check that the precious variables saved in the cache have kept the same
1502 # value.
1503 ac_cache_corrupted=false
1504 for ac_var in `(set) 2>&1 |
1505 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1506 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1507 eval ac_new_set=\$ac_env_${ac_var}_set
1508 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1509 eval ac_new_val="\$ac_env_${ac_var}_value"
1510 case $ac_old_set,$ac_new_set in
1511 set,)
1512 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1513 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1514 ac_cache_corrupted=: ;;
1515 ,set)
1516 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1517 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1518 ac_cache_corrupted=: ;;
1519 ,);;
1521 if test "x$ac_old_val" != "x$ac_new_val"; then
1522 # differences in whitespace do not lead to failure.
1523 ac_old_val_w=`echo x $ac_old_val`
1524 ac_new_val_w=`echo x $ac_new_val`
1525 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1526 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1527 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1528 ac_cache_corrupted=:
1529 else
1530 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1531 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1532 eval $ac_var=\$ac_old_val
1534 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1535 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1536 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1537 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1538 fi;;
1539 esac
1540 # Pass precious variables to config.status.
1541 if test "$ac_new_set" = set; then
1542 case $ac_new_val in
1543 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545 *) ac_arg=$ac_var=$ac_new_val ;;
1546 esac
1547 case " $ac_configure_args " in
1548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1549 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1550 esac
1552 done
1553 if $ac_cache_corrupted; then
1554 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1555 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1556 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1557 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1558 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1559 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1560 { (exit 1); exit 1; }; }
1563 ac_ext=c
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600 ac_aux_dir=
1601 for ac_dir in ../.. $srcdir/../..; do
1602 if test -f $ac_dir/install-sh; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/install-sh -c"
1605 break
1606 elif test -f $ac_dir/install.sh; then
1607 ac_aux_dir=$ac_dir
1608 ac_install_sh="$ac_aux_dir/install.sh -c"
1609 break
1610 elif test -f $ac_dir/shtool; then
1611 ac_aux_dir=$ac_dir
1612 ac_install_sh="$ac_aux_dir/shtool install -c"
1613 break
1615 done
1616 if test -z "$ac_aux_dir"; then
1617 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1618 echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1619 { (exit 1); exit 1; }; }
1621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1623 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1626 # Make sure we can run config.sub.
1627 $ac_config_sub sun4 >/dev/null 2>&1 ||
1628 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1629 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1630 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: checking build system type" >&5
1633 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1634 if test "${ac_cv_build+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 ac_cv_build_alias=$build_alias
1638 test -z "$ac_cv_build_alias" &&
1639 ac_cv_build_alias=`$ac_config_guess`
1640 test -z "$ac_cv_build_alias" &&
1641 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1642 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1643 { (exit 1); exit 1; }; }
1644 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1646 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1651 echo "${ECHO_T}$ac_cv_build" >&6
1652 build=$ac_cv_build
1653 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658 echo "$as_me:$LINENO: checking host system type" >&5
1659 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1660 if test "${ac_cv_host+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 ac_cv_host_alias=$host_alias
1664 test -z "$ac_cv_host_alias" &&
1665 ac_cv_host_alias=$ac_cv_build_alias
1666 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1668 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1669 { (exit 1); exit 1; }; }
1672 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1673 echo "${ECHO_T}$ac_cv_host" >&6
1674 host=$ac_cv_host
1675 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1680 echo "$as_me:$LINENO: checking target system type" >&5
1681 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1682 if test "${ac_cv_target+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 ac_cv_target_alias=$target_alias
1686 test "x$ac_cv_target_alias" = "x" &&
1687 ac_cv_target_alias=$ac_cv_host_alias
1688 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1691 { (exit 1); exit 1; }; }
1694 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1695 echo "${ECHO_T}$ac_cv_target" >&6
1696 target=$ac_cv_target
1697 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702 # The aliases save the names the user supplied, while $host etc.
1703 # will get canonicalized.
1704 test -n "$target_alias" &&
1705 test "$program_prefix$program_suffix$program_transform_name" = \
1706 NONENONEs,x,x, &&
1707 program_prefix=${target_alias}-
1709 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1710 if test "${enable_java_maintainer_mode+set}" = set; then
1711 enableval="$enable_java_maintainer_mode"
1716 if test "$enable_java_maintainer_mode" = yes; then
1717 JAVA_MAINTAINER_MODE_TRUE=
1718 JAVA_MAINTAINER_MODE_FALSE='#'
1719 else
1720 JAVA_MAINTAINER_MODE_TRUE='#'
1721 JAVA_MAINTAINER_MODE_FALSE=
1725 # We would like to our source tree to be readonly. However when releases or
1726 # pre-releases are generated, the man pages need to be included as they are
1727 # converted from the texi files via perl which we don't require end users to
1728 # have installed.
1729 # Therefore we have --enable-generated-files-in-srcdir to do just that.
1731 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1732 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1733 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1734 if test "${enable_generated_files_in_srcdir+set}" = set; then
1735 enableval="$enable_generated_files_in_srcdir"
1736 generated_files_in_srcdir=$enableval
1737 else
1738 generated_files_in_srcdir=no
1741 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1742 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1745 if test x$generated_files_in_srcdir = xyes; then
1746 GENINSRC_TRUE=
1747 GENINSRC_FALSE='#'
1748 else
1749 GENINSRC_TRUE='#'
1750 GENINSRC_FALSE=
1754 # Find the rest of the source tree framework.
1755 # Default to --enable-multilib
1756 # Check whether --enable-multilib or --disable-multilib was given.
1757 if test "${enable_multilib+set}" = set; then
1758 enableval="$enable_multilib"
1759 case "$enableval" in
1760 yes) multilib=yes ;;
1761 no) multilib=no ;;
1762 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1763 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1764 { (exit 1); exit 1; }; } ;;
1765 esac
1766 else
1767 multilib=yes
1770 # We may get other options which we leave undocumented:
1771 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1772 # See config-ml.in if you want the gory details.
1774 if test "$srcdir" = "."; then
1775 if test "$with_target_subdir" != "."; then
1776 multi_basedir="$srcdir/$with_multisrctop../../.."
1777 else
1778 multi_basedir="$srcdir/$with_multisrctop../.."
1780 else
1781 multi_basedir="$srcdir/../.."
1785 # Even if the default multilib is not a cross compilation,
1786 # it may be that some of the other multilibs are.
1787 if test $cross_compiling = no && test $multilib = yes \
1788 && test "x${with_multisubdir}" != x ; then
1789 cross_compiling=maybe
1792 ac_config_commands="$ac_config_commands default-1"
1797 if test -z "${with_multisubdir}"; then
1798 INSTALL_BINARIES_TRUE=
1799 INSTALL_BINARIES_FALSE='#'
1800 else
1801 INSTALL_BINARIES_TRUE='#'
1802 INSTALL_BINARIES_FALSE=
1806 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1808 LIBVERSION="0:0:0"
1810 case "$host_os" in
1811 darwin*)
1812 cp_module=""
1815 cp_module="-module"
1817 esac
1819 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1822 CLASSPATH_CONVENIENCE="-no-undefined"
1826 am__api_version="1.9"
1827 # Find a good install program. We prefer a C program (faster),
1828 # so one script is as good as another. But avoid the broken or
1829 # incompatible versions:
1830 # SysV /etc/install, /usr/sbin/install
1831 # SunOS /usr/etc/install
1832 # IRIX /sbin/install
1833 # AIX /bin/install
1834 # AmigaOS /C/install, which installs bootblocks on floppy discs
1835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1838 # OS/2's system install, which has a completely different semantic
1839 # ./install, which can be erroneously created by make from ./install.sh.
1840 # Reject install programs that cannot install multiple files.
1841 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1842 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1843 if test -z "$INSTALL"; then
1844 if test "${ac_cv_path_install+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 # Account for people who put trailing slashes in PATH elements.
1853 case $as_dir/ in
1854 ./ | .// | /cC/* | \
1855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1856 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1857 /usr/ucb/* ) ;;
1859 # OSF1 and SCO ODT 3.0 have their own names for install.
1860 # Don't use installbsd from OSF since it installs stuff as root
1861 # by default.
1862 for ac_prog in ginstall scoinst install; do
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1865 if test $ac_prog = install &&
1866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1867 # AIX install. It has an incompatible calling convention.
1869 elif test $ac_prog = install &&
1870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1871 # program-specific install script used by HP pwplus--don't use.
1873 else
1874 rm -rf conftest.one conftest.two conftest.dir
1875 echo one > conftest.one
1876 echo two > conftest.two
1877 mkdir conftest.dir
1878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1879 test -s conftest.one && test -s conftest.two &&
1880 test -s conftest.dir/conftest.one &&
1881 test -s conftest.dir/conftest.two
1882 then
1883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1884 break 3
1888 done
1889 done
1891 esac
1892 done
1894 rm -rf conftest.one conftest.two conftest.dir
1897 if test "${ac_cv_path_install+set}" = set; then
1898 INSTALL=$ac_cv_path_install
1899 else
1900 # As a last resort, use the slow shell script. Don't cache a
1901 # value for INSTALL within a source directory, because that will
1902 # break other packages using the cache if that directory is
1903 # removed, or if the value is a relative name.
1904 INSTALL=$ac_install_sh
1907 echo "$as_me:$LINENO: result: $INSTALL" >&5
1908 echo "${ECHO_T}$INSTALL" >&6
1910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1911 # It thinks the first close brace ends the variable substitution.
1912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1918 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1919 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1920 # Just in case
1921 sleep 1
1922 echo timestamp > conftest.file
1923 # Do `set' in a subshell so we don't clobber the current shell's
1924 # arguments. Must try -L first in case configure is actually a
1925 # symlink; some systems play weird games with the mod time of symlinks
1926 # (eg FreeBSD returns the mod time of the symlink's containing
1927 # directory).
1928 if (
1929 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1930 if test "$*" = "X"; then
1931 # -L didn't work.
1932 set X `ls -t $srcdir/configure conftest.file`
1934 rm -f conftest.file
1935 if test "$*" != "X $srcdir/configure conftest.file" \
1936 && test "$*" != "X conftest.file $srcdir/configure"; then
1938 # If neither matched, then we have a broken ls. This can happen
1939 # if, for instance, CONFIG_SHELL is bash and it inherits a
1940 # broken ls alias from the environment. This has actually
1941 # happened. Such a system could not be considered "sane".
1942 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1943 alias in your environment" >&5
1944 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1945 alias in your environment" >&2;}
1946 { (exit 1); exit 1; }; }
1949 test "$2" = conftest.file
1951 then
1952 # Ok.
1954 else
1955 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1956 Check your system clock" >&5
1957 echo "$as_me: error: newly created file is older than distributed files!
1958 Check your system clock" >&2;}
1959 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963 test "$program_prefix" != NONE &&
1964 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1965 # Use a double $ so make ignores it.
1966 test "$program_suffix" != NONE &&
1967 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1968 # Double any \ or $. echo might interpret backslashes.
1969 # By default was `s,x,x', remove it if useless.
1970 cat <<\_ACEOF >conftest.sed
1971 s/[\\$]/&&/g;s/;s,x,x,$//
1972 _ACEOF
1973 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1974 rm conftest.sed
1976 # expand $ac_aux_dir to an absolute path
1977 am_aux_dir=`cd $ac_aux_dir && pwd`
1979 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1980 # Use eval to expand $SHELL
1981 if eval "$MISSING --run true"; then
1982 am_missing_run="$MISSING --run "
1983 else
1984 am_missing_run=
1985 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1986 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1989 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1990 # We used to keeping the `.' as first argument, in order to
1991 # allow $(mkdir_p) to be used without argument. As in
1992 # $(mkdir_p) $(somedir)
1993 # where $(somedir) is conditionally defined. However this is wrong
1994 # for two reasons:
1995 # 1. if the package is installed by a user who cannot write `.'
1996 # make install will fail,
1997 # 2. the above comment should most certainly read
1998 # $(mkdir_p) $(DESTDIR)$(somedir)
1999 # so it does not work when $(somedir) is undefined and
2000 # $(DESTDIR) is not.
2001 # To support the latter case, we have to write
2002 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2003 # so the `.' trick is pointless.
2004 mkdir_p='mkdir -p --'
2005 else
2006 # On NextStep and OpenStep, the `mkdir' command does not
2007 # recognize any option. It will interpret all options as
2008 # directories to create, and then abort because `.' already
2009 # exists.
2010 for d in ./-p ./--version;
2012 test -d $d && rmdir $d
2013 done
2014 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2015 if test -f "$ac_aux_dir/mkinstalldirs"; then
2016 mkdir_p='$(mkinstalldirs)'
2017 else
2018 mkdir_p='$(install_sh) -d'
2022 for ac_prog in gawk mawk nawk awk
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_AWK+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$AWK"; then
2032 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_AWK="$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 break 2
2045 done
2046 done
2050 AWK=$ac_cv_prog_AWK
2051 if test -n "$AWK"; then
2052 echo "$as_me:$LINENO: result: $AWK" >&5
2053 echo "${ECHO_T}$AWK" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$AWK" && break
2060 done
2062 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2063 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2064 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2065 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 cat >conftest.make <<\_ACEOF
2069 all:
2070 @echo 'ac_maketemp="$(MAKE)"'
2071 _ACEOF
2072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2073 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2074 if test -n "$ac_maketemp"; then
2075 eval ac_cv_prog_make_${ac_make}_set=yes
2076 else
2077 eval ac_cv_prog_make_${ac_make}_set=no
2079 rm -f conftest.make
2081 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2082 echo "$as_me:$LINENO: result: yes" >&5
2083 echo "${ECHO_T}yes" >&6
2084 SET_MAKE=
2085 else
2086 echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2088 SET_MAKE="MAKE=${MAKE-make}"
2091 rm -rf .tst 2>/dev/null
2092 mkdir .tst 2>/dev/null
2093 if test -d .tst; then
2094 am__leading_dot=.
2095 else
2096 am__leading_dot=_
2098 rmdir .tst 2>/dev/null
2100 # test to see if srcdir already configured
2101 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2102 test -f $srcdir/config.status; then
2103 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2104 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2105 { (exit 1); exit 1; }; }
2108 # test whether we have cygpath
2109 if test -z "$CYGPATH_W"; then
2110 if (cygpath --version) >/dev/null 2>/dev/null; then
2111 CYGPATH_W='cygpath -w'
2112 else
2113 CYGPATH_W=echo
2118 # Define the identity of the package.
2119 PACKAGE='classpath'
2120 VERSION='0.98'
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE "$PACKAGE"
2125 _ACEOF
2128 cat >>confdefs.h <<_ACEOF
2129 #define VERSION "$VERSION"
2130 _ACEOF
2132 # Some tools Automake needs.
2134 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2137 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2140 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2143 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2146 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2148 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2150 # Installed binaries are usually stripped using `strip' when the user
2151 # run `make install-strip'. However `strip' might not be the right
2152 # tool to use in cross-compilation environments, therefore Automake
2153 # will honor the `STRIP' environment variable to overrule this program.
2154 if test "$cross_compiling" != no; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}strip; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_STRIP+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$STRIP"; then
2164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2177 done
2178 done
2182 STRIP=$ac_cv_prog_STRIP
2183 if test -n "$STRIP"; then
2184 echo "$as_me:$LINENO: result: $STRIP" >&5
2185 echo "${ECHO_T}$STRIP" >&6
2186 else
2187 echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2192 if test -z "$ac_cv_prog_STRIP"; then
2193 ac_ct_STRIP=$STRIP
2194 # Extract the first word of "strip", so it can be a program name with args.
2195 set dummy strip; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201 if test -n "$ac_ct_STRIP"; then
2202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211 ac_cv_prog_ac_ct_STRIP="strip"
2212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 break 2
2215 done
2216 done
2218 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2222 if test -n "$ac_ct_STRIP"; then
2223 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2224 echo "${ECHO_T}$ac_ct_STRIP" >&6
2225 else
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 STRIP=$ac_ct_STRIP
2231 else
2232 STRIP="$ac_cv_prog_STRIP"
2236 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2238 # We need awk for the "check" target. The system "awk" is bad on
2239 # some platforms.
2240 # Always define AMTAR for backward compatibility.
2242 AMTAR=${AMTAR-"${am_missing_run}tar"}
2245 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2246 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2247 # Loop over all known methods to create a tar archive until one works.
2248 _am_tools='gnutar plaintar pax cpio none'
2249 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2250 # Do not fold the above two line into one, because Tru64 sh and
2251 # Solaris sh will not grok spaces in the rhs of `-'.
2252 for _am_tool in $_am_tools
2254 case $_am_tool in
2255 gnutar)
2256 for _am_tar in tar gnutar gtar;
2258 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2259 ($_am_tar --version) >&5 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } && break
2263 done
2264 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2265 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2266 am__untar="$_am_tar -xf -"
2268 plaintar)
2269 # Must skip GNU tar: if it does not support --format= it doesn't create
2270 # ustar tarball either.
2271 (tar --version) >/dev/null 2>&1 && continue
2272 am__tar='tar chf - "$$tardir"'
2273 am__tar_='tar chf - "$tardir"'
2274 am__untar='tar xf -'
2276 pax)
2277 am__tar='pax -L -x ustar -w "$$tardir"'
2278 am__tar_='pax -L -x ustar -w "$tardir"'
2279 am__untar='pax -r'
2281 cpio)
2282 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2283 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2284 am__untar='cpio -i -H ustar -d'
2286 none)
2287 am__tar=false
2288 am__tar_=false
2289 am__untar=false
2291 esac
2293 # If the value was cached, stop now. We just wanted to have am__tar
2294 # and am__untar set.
2295 test -n "${am_cv_prog_tar_ustar}" && break
2297 # tar/untar a dummy directory, and stop if the command works
2298 rm -rf conftest.dir
2299 mkdir conftest.dir
2300 echo GrepMe > conftest.dir/file
2301 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2302 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2306 rm -rf conftest.dir
2307 if test -s conftest.tar; then
2308 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2309 ($am__untar <conftest.tar) >&5 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }
2313 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2315 done
2316 rm -rf conftest.dir
2318 if test "${am_cv_prog_tar_ustar+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 am_cv_prog_tar_ustar=$_am_tool
2324 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2325 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2331 ac_config_headers="$ac_config_headers include/config.h"
2337 # Check whether --enable-collections or --disable-collections was given.
2338 if test "${enable_collections+set}" = set; then
2339 enableval="$enable_collections"
2340 case x"${enableval}" in
2341 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2342 xno) COMPILE_COLLECTIONS=no ;;
2343 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2344 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2345 esac
2346 else
2347 COMPILE_COLLECTIONS=no
2351 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2352 CREATE_COLLECTIONS_TRUE=
2353 CREATE_COLLECTIONS_FALSE='#'
2354 else
2355 CREATE_COLLECTIONS_TRUE='#'
2356 CREATE_COLLECTIONS_FALSE=
2360 # Check whether --enable-jni or --disable-jni was given.
2361 if test "${enable_jni+set}" = set; then
2362 enableval="$enable_jni"
2363 case "${enableval}" in
2364 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2365 no) COMPILE_JNI=no ;;
2366 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2367 esac
2368 else
2369 COMPILE_JNI=yes
2373 if test "x${COMPILE_JNI}" = xyes; then
2374 CREATE_JNI_LIBRARIES_TRUE=
2375 CREATE_JNI_LIBRARIES_FALSE='#'
2376 else
2377 CREATE_JNI_LIBRARIES_TRUE='#'
2378 CREATE_JNI_LIBRARIES_FALSE=
2382 # Check whether --enable-core-jni or --disable-core-jni was given.
2383 if test "${enable_core_jni+set}" = set; then
2384 enableval="$enable_core_jni"
2385 case "${enableval}" in
2386 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2387 no) COMPILE_CORE_JNI=no ;;
2388 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2389 esac
2390 else
2391 COMPILE_CORE_JNI=yes
2395 if test "x${COMPILE_CORE_JNI}" = xyes; then
2396 CREATE_CORE_JNI_LIBRARIES_TRUE=
2397 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2398 else
2399 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2400 CREATE_CORE_JNI_LIBRARIES_FALSE=
2404 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2405 if test "${enable_default_preferences_peer+set}" = set; then
2406 enableval="$enable_default_preferences_peer"
2407 case "${enableval}" in
2408 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
2409 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
2410 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
2411 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2412 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2413 { (exit 1); exit 1; }; } ;;
2414 *) DEFAULT_PREFS_PEER=${enableval} ;;
2415 esac
2416 else
2417 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2420 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2421 if test "${enable_gconf_peer+set}" = set; then
2422 enableval="$enable_gconf_peer"
2423 case "${enableval}" in
2424 yes) COMPILE_GCONF_PEER=yes ;;
2425 no) COMPILE_GCONF_PEER=no ;;
2426 *) COMPILE_GCONF_PEER=yes ;;
2427 esac
2428 else
2429 COMPILE_GCONF_PEER=yes
2433 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2434 CREATE_GCONF_PEER_LIBRARIES_TRUE=
2435 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2436 else
2437 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2438 CREATE_GCONF_PEER_LIBRARIES_FALSE=
2442 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2443 if test "${enable_gconf_peers+set}" = set; then
2444 enableval="$enable_gconf_peers"
2445 { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2446 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2447 { (exit 1); exit 1; }; }
2450 # Check whether --enable-gstreamer-peer or --disable-gstreamer-peer was given.
2451 if test "${enable_gstreamer_peer+set}" = set; then
2452 enableval="$enable_gstreamer_peer"
2453 case "${enableval}" in
2454 yes) COMPILE_GSTREAMER_PEER=yes ;;
2455 no) COMPILE_GSTREAMER_PEER=no ;;
2456 *) COMPILE_GSTREAMER_PEER=default ;;
2457 esac
2458 else
2459 COMPILE_GSTREAMER_PEER=default
2463 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
2464 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
2465 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
2466 else
2467 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
2468 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
2472 # Check whether --enable-gstreamer-peers or --disable-gstreamer-peers was given.
2473 if test "${enable_gstreamer_peers+set}" = set; then
2474 enableval="$enable_gstreamer_peers"
2475 { { echo "$as_me:$LINENO: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&5
2476 echo "$as_me: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&2;}
2477 { (exit 1); exit 1; }; }
2480 # Check whether --enable-Werror or --disable-Werror was given.
2481 if test "${enable_Werror+set}" = set; then
2482 enableval="$enable_Werror"
2483 case "${enableval}" in
2484 yes) ENABLE_WERROR=yes ;;
2485 no) ENABLE_WERROR=no ;;
2486 *) ENABLE_WERROR=default ;;
2487 esac
2488 else
2489 ENABLE_WERROR=default
2492 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2493 if test "${enable_default_toolkit+set}" = set; then
2494 enableval="$enable_default_toolkit"
2497 default_toolkit=$enable_default_toolkit
2498 if test "$default_toolkit" = ""; then
2499 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2503 # Check whether --enable-xmlj or --disable-xmlj was given.
2504 if test "${enable_xmlj+set}" = set; then
2505 enableval="$enable_xmlj"
2506 case "${enableval}" in
2507 yes) COMPILE_XMLJ=yes ;;
2508 no) COMPILE_XMLJ=no ;;
2509 *) COMPILE_XMLJ=no ;;
2510 esac
2511 else
2512 COMPILE_XMLJ=no
2516 if test "x${COMPILE_XMLJ}" = xyes; then
2517 CREATE_XMLJ_LIBRARY_TRUE=
2518 CREATE_XMLJ_LIBRARY_FALSE='#'
2519 else
2520 CREATE_XMLJ_LIBRARY_TRUE='#'
2521 CREATE_XMLJ_LIBRARY_FALSE=
2525 DEPDIR="${am__leading_dot}deps"
2527 ac_config_commands="$ac_config_commands depfiles"
2530 am_make=${MAKE-make}
2531 cat > confinc << 'END'
2532 am__doit:
2533 @echo done
2534 .PHONY: am__doit
2536 # If we don't find an include directive, just comment out the code.
2537 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2538 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2539 am__include="#"
2540 am__quote=
2541 _am_result=none
2542 # First try GNU make style include.
2543 echo "include confinc" > confmf
2544 # We grep out `Entering directory' and `Leaving directory'
2545 # messages which can occur if `w' ends up in MAKEFLAGS.
2546 # In particular we don't look at `^make:' because GNU make might
2547 # be invoked under some other name (usually "gmake"), in which
2548 # case it prints its new name instead of `make'.
2549 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2550 am__include=include
2551 am__quote=
2552 _am_result=GNU
2554 # Now try BSD make style include.
2555 if test "$am__include" = "#"; then
2556 echo '.include "confinc"' > confmf
2557 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2558 am__include=.include
2559 am__quote="\""
2560 _am_result=BSD
2565 echo "$as_me:$LINENO: result: $_am_result" >&5
2566 echo "${ECHO_T}$_am_result" >&6
2567 rm -f confinc confmf
2569 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2570 if test "${enable_dependency_tracking+set}" = set; then
2571 enableval="$enable_dependency_tracking"
2574 if test "x$enable_dependency_tracking" != xno; then
2575 am_depcomp="$ac_aux_dir/depcomp"
2576 AMDEPBACKSLASH='\'
2580 if test "x$enable_dependency_tracking" != xno; then
2581 AMDEP_TRUE=
2582 AMDEP_FALSE='#'
2583 else
2584 AMDEP_TRUE='#'
2585 AMDEP_FALSE=
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2617 done
2618 done
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624 echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6
2626 else
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2632 if test -z "$ac_cv_prog_CC"; then
2633 ac_ct_CC=$CC
2634 # Extract the first word of "gcc", so it can be a program name with args.
2635 set dummy gcc; ac_word=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$ac_ct_CC"; then
2642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_ac_ct_CC="gcc"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2669 CC=$ac_ct_CC
2670 else
2671 CC="$ac_cv_prog_CC"
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}cc; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="${ac_tool_prefix}cc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704 echo "$as_me:$LINENO: result: $CC" >&5
2705 echo "${ECHO_T}$CC" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2712 if test -z "$ac_cv_prog_CC"; then
2713 ac_ct_CC=$CC
2714 # Extract the first word of "cc", so it can be a program name with args.
2715 set dummy cc; ac_word=$2
2716 echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 if test -n "$ac_ct_CC"; then
2722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_ac_ct_CC="cc"
2732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2735 done
2736 done
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743 echo "${ECHO_T}$ac_ct_CC" >&6
2744 else
2745 echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2749 CC=$ac_ct_CC
2750 else
2751 CC="$ac_cv_prog_CC"
2755 if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2776 continue
2778 ac_cv_prog_CC="cc"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2782 done
2783 done
2785 if test $ac_prog_rejected = yes; then
2786 # We found a bogon in the path, so make sure we never use it.
2787 set dummy $ac_cv_prog_CC
2788 shift
2789 if test $# != 0; then
2790 # We chose a different compiler from the bogus one.
2791 # However, it has the same basename, so the bogon will be chosen
2792 # first if we set CC to just the basename; use the full file name.
2793 shift
2794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801 echo "$as_me:$LINENO: result: $CC" >&5
2802 echo "${ECHO_T}$CC" >&6
2803 else
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 for ac_prog in cl
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2834 done
2835 done
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6
2843 else
2844 echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2848 test -n "$CC" && break
2849 done
2851 if test -z "$CC"; then
2852 ac_ct_CC=$CC
2853 for ac_prog in cl
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 if test -n "$ac_ct_CC"; then
2863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884 echo "${ECHO_T}$ac_ct_CC" >&6
2885 else
2886 echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2890 test -n "$ac_ct_CC" && break
2891 done
2893 CC=$ac_ct_CC
2899 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }; }
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO:" \
2909 "checking for C compiler version" >&5
2910 ac_compiler=`set X $ac_compile; echo $2`
2911 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2912 (eval $ac_compiler --version </dev/null >&5) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2917 (eval $ac_compiler -v </dev/null >&5) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2922 (eval $ac_compiler -V </dev/null >&5) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h. */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2935 main ()
2939 return 0;
2941 _ACEOF
2942 # FIXME: Cleanup?
2943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944 (eval $ac_link) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; then
2948 gcc_no_link=no
2949 else
2950 gcc_no_link=yes
2953 if test x$gcc_no_link = xyes; then
2954 # Setting cross_compile will disable run tests; it will
2955 # also disable AC_CHECK_FILE but that's generally
2956 # correct if we can't link.
2957 cross_compiling=yes
2958 EXEEXT=
2959 else
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2968 main ()
2972 return 0;
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2981 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2982 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2984 (eval $ac_link_default) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; then
2988 # Find the output, starting from the most likely. This scheme is
2989 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2990 # resort.
2992 # Be careful to initialize this variable, since it used to be cached.
2993 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2994 ac_cv_exeext=
2995 # b.out is created by i960 compilers.
2996 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2998 test -f "$ac_file" || continue
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3002 conftest.$ac_ext )
3003 # This is the source file.
3005 [ab].out )
3006 # We found the default executable, but exeext='' is most
3007 # certainly right.
3008 break;;
3009 *.* )
3010 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 # FIXME: I believe we export ac_cv_exeext for Libtool,
3012 # but it would be cool to find out if it's true. Does anybody
3013 # maintain Libtool? --akim.
3014 export ac_cv_exeext
3015 break;;
3017 break;;
3018 esac
3019 done
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3024 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&2;}
3030 { (exit 77); exit 77; }; }; }
3033 ac_exeext=$ac_cv_exeext
3034 echo "$as_me:$LINENO: result: $ac_file" >&5
3035 echo "${ECHO_T}$ac_file" >&6
3037 # Check the compiler produces executables we can run. If not, either
3038 # the compiler is broken, or we cross compile.
3039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3042 # If not cross compiling, check that we can run a simple program.
3043 if test "$cross_compiling" != yes; then
3044 if { ac_try='./$ac_file'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 cross_compiling=no
3051 else
3052 if test "$cross_compiling" = maybe; then
3053 cross_compiling=yes
3054 else
3055 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3056 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&2;}
3063 { (exit 1); exit 1; }; }; }
3067 echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6
3070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3071 ac_clean_files=$ac_clean_files_save
3072 # Check the compiler produces executables we can run. If not, either
3073 # the compiler is broken, or we cross compile.
3074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3077 echo "${ECHO_T}$cross_compiling" >&6
3079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3082 (eval $ac_link) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 # `rm'.
3090 for ac_file in conftest.exe conftest conftest.*; do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 export ac_cv_exeext
3096 break;;
3097 * ) break;;
3098 esac
3099 done
3100 else
3101 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3102 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3106 See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }; }
3110 rm -f conftest$ac_cv_exeext
3111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3112 echo "${ECHO_T}$ac_cv_exeext" >&6
3114 rm -f conftest.$ac_ext
3115 EXEEXT=$ac_cv_exeext
3116 ac_exeext=$EXEEXT
3118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3120 if test "${ac_cv_objext+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3131 main ()
3135 return 0;
3137 _ACEOF
3138 rm -f conftest.o conftest.obj
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; then
3144 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3145 case $ac_file in
3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3147 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148 break;;
3149 esac
3150 done
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3156 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }; }
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3167 echo "${ECHO_T}$ac_cv_objext" >&6
3168 OBJEXT=$ac_cv_objext
3169 ac_objext=$OBJEXT
3170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3183 main ()
3185 #ifndef __GNUC__
3186 choke me
3187 #endif
3190 return 0;
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -z "$ac_c_werror_flag"
3203 || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_compiler_gnu=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 ac_compiler_gnu=no
3222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3228 GCC=`test $ac_compiler_gnu = yes && echo yes`
3229 ac_test_CFLAGS=${CFLAGS+set}
3230 ac_save_CFLAGS=$CFLAGS
3231 CFLAGS="-g"
3232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3234 if test "${ac_cv_prog_cc_g+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 (eval $ac_compile) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try='test -s conftest.$ac_objext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_prog_cc_g=yes
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 ac_cv_prog_cc_g=no
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3285 if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3289 CFLAGS="-g -O2"
3290 else
3291 CFLAGS="-g"
3293 else
3294 if test "$GCC" = yes; then
3295 CFLAGS="-O2"
3296 else
3297 CFLAGS=
3300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 ac_cv_prog_cc_stdc=no
3306 ac_save_CC=$CC
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321 char **p;
3322 int i;
3324 return p[i];
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3337 function prototypes and stuff, but not '\xHH' hex character constants.
3338 These don't provoke an error unfortunately, instead are silently treated
3339 as 'x'. The following induces an error, until -std1 is added to get
3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3341 array size at least. It's necessary to write '\x00'==0 to get something
3342 that's true only with -std1. */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3345 int test (int i, double x);
3346 struct s1 {int (*f) (int a);};
3347 struct s2 {int (*f) (double a);};
3348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3349 int argc;
3350 char **argv;
3352 main ()
3354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 return 0;
3358 _ACEOF
3359 # Don't try gcc -ansi; that turns off useful extensions and
3360 # breaks some systems' header files.
3361 # AIX -qlanglvl=ansi
3362 # Ultrix and OSF/1 -std1
3363 # HP-UX 10.20 and later -Ae
3364 # HP-UX older versions -Aa -D_HPUX_SOURCE
3365 # SVR4 -Xc -D__EXTENSIONS__
3366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3368 CC="$ac_save_CC $ac_arg"
3369 rm -f conftest.$ac_objext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag"
3379 || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_cv_prog_cc_stdc=$ac_arg
3392 break
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f conftest.err conftest.$ac_objext
3399 done
3400 rm -f conftest.$ac_ext conftest.$ac_objext
3401 CC=$ac_save_CC
3405 case "x$ac_cv_prog_cc_stdc" in
3406 x|xno)
3407 echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6 ;;
3410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3412 CC="$CC $ac_cv_prog_cc_stdc" ;;
3413 esac
3415 # Some people use a C++ compiler to compile C. Since we use `exit',
3416 # in C++ we need to declare it. In case someone uses the same compiler
3417 # for both compiling C and C++ we need to have the C++ compiler decide
3418 # the declaration of exit, since it's the most demanding environment.
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #ifndef __cplusplus
3421 choke me
3422 #endif
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 for ac_declaration in \
3447 '' \
3448 'extern "C" void std::exit (int) throw (); using std::exit;' \
3449 'extern "C" void std::exit (int); using std::exit;' \
3450 'extern "C" void exit (int) throw ();' \
3451 'extern "C" void exit (int);' \
3452 'void exit (int);'
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 $ac_declaration
3461 #include <stdlib.h>
3463 main ()
3465 exit (42);
3467 return 0;
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try='test -z "$ac_c_werror_flag"
3480 || test ! -s conftest.err'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3493 else
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 continue
3499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_declaration
3508 main ()
3510 exit (42);
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 break
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3544 done
3545 rm -f conftest*
3546 if test -n "$ac_declaration"; then
3547 echo '#ifdef __cplusplus' >>confdefs.h
3548 echo $ac_declaration >>confdefs.h
3549 echo '#endif' >>confdefs.h
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 depcc="$CC" am_compiler_list=
3566 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3572 # We make a subdir and do the tests there. Otherwise we can end up
3573 # making bogus files that we don't know about and never remove. For
3574 # instance it was reported that on HP-UX the gcc test will end up
3575 # making a dummy file named `D' -- because `-MD' means `put the output
3576 # in D'.
3577 mkdir conftest.dir
3578 # Copy depcomp to subdir because otherwise we won't find it if we're
3579 # using a relative directory.
3580 cp "$am_depcomp" conftest.dir
3581 cd conftest.dir
3582 # We will build objects and dependencies in a subdirectory because
3583 # it helps to detect inapplicable dependency modes. For instance
3584 # both Tru64's cc and ICC support -MD to output dependencies as a
3585 # side effect of compilation, but ICC will put the dependencies in
3586 # the current directory while Tru64 will put them in the object
3587 # directory.
3588 mkdir sub
3590 am_cv_CC_dependencies_compiler_type=none
3591 if test "$am_compiler_list" = ""; then
3592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594 for depmode in $am_compiler_list; do
3595 # Setup a source with many dependencies, because some compilers
3596 # like to wrap large dependency lists on column 80 (with \), and
3597 # we should not choose a depcomp mode which is confused by this.
3599 # We need to recreate these files for each test, as the compiler may
3600 # overwrite some of them when testing with obscure command lines.
3601 # This happens at least with the AIX C compiler.
3602 : > sub/conftest.c
3603 for i in 1 2 3 4 5 6; do
3604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3605 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3606 # Solaris 8's {/usr,}/bin/sh.
3607 touch sub/conftst$i.h
3608 done
3609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3611 case $depmode in
3612 nosideeffect)
3613 # after this tag, mechanisms are not by side-effect, so they'll
3614 # only be used when explicitly requested
3615 if test "x$enable_dependency_tracking" = xyes; then
3616 continue
3617 else
3618 break
3621 none) break ;;
3622 esac
3623 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3624 # mode. It turns out that the SunPro C++ compiler does not properly
3625 # handle `-M -o', and we need to detect this.
3626 if depmode=$depmode \
3627 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3629 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3630 >/dev/null 2>conftest.err &&
3631 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3632 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3633 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3634 # icc doesn't choke on unknown options, it will just issue warnings
3635 # or remarks (even with -Werror). So we grep stderr for any message
3636 # that says an option was ignored or not supported.
3637 # When given -MP, icc 7.0 and 7.1 complain thusly:
3638 # icc: Command line warning: ignoring option '-M'; no argument required
3639 # The diagnosis changed in icc 8.0:
3640 # icc: Command line remark: option '-MP' not supported
3641 if (grep 'ignoring option' conftest.err ||
3642 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3643 am_cv_CC_dependencies_compiler_type=$depmode
3644 break
3647 done
3649 cd ..
3650 rm -rf conftest.dir
3651 else
3652 am_cv_CC_dependencies_compiler_type=none
3656 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3657 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3658 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_TRUE=
3666 am__fastdepCC_FALSE='#'
3667 else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3680 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3681 # On Suns, sometimes $CPP names a directory.
3682 if test -n "$CPP" && test -d "$CPP"; then
3683 CPP=
3685 if test -z "$CPP"; then
3686 if test "${ac_cv_prog_CPP+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 # Double quotes because CPP needs to be expanded
3690 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3692 ac_preproc_ok=false
3693 for ac_c_preproc_warn_flag in '' yes
3695 # Use a header file that comes with gcc, so configuring glibc
3696 # with a fresh cross-compiler works.
3697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698 # <limits.h> exists even on freestanding compilers.
3699 # On the NeXT, cc -E runs the code through the compiler's parser,
3700 # not just through cpp. "Syntax error" is here to catch this case.
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 #ifdef __STDC__
3708 # include <limits.h>
3709 #else
3710 # include <assert.h>
3711 #endif
3712 Syntax error
3713 _ACEOF
3714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } >/dev/null; then
3722 if test -s conftest.err; then
3723 ac_cpp_err=$ac_c_preproc_warn_flag
3724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3725 else
3726 ac_cpp_err=
3728 else
3729 ac_cpp_err=yes
3731 if test -z "$ac_cpp_err"; then
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 # Broken: fails on valid input.
3738 continue
3740 rm -f conftest.err conftest.$ac_ext
3742 # OK, works on sane cases. Now check whether non-existent headers
3743 # can be detected and how.
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <ac_nonexistent.h>
3751 _ACEOF
3752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3754 ac_status=$?
3755 grep -v '^ *+' conftest.er1 >conftest.err
3756 rm -f conftest.er1
3757 cat conftest.err >&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } >/dev/null; then
3760 if test -s conftest.err; then
3761 ac_cpp_err=$ac_c_preproc_warn_flag
3762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3763 else
3764 ac_cpp_err=
3766 else
3767 ac_cpp_err=yes
3769 if test -z "$ac_cpp_err"; then
3770 # Broken: success on invalid input.
3771 continue
3772 else
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3776 # Passes both tests.
3777 ac_preproc_ok=:
3778 break
3780 rm -f conftest.err conftest.$ac_ext
3782 done
3783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3784 rm -f conftest.err conftest.$ac_ext
3785 if $ac_preproc_ok; then
3786 break
3789 done
3790 ac_cv_prog_CPP=$CPP
3793 CPP=$ac_cv_prog_CPP
3794 else
3795 ac_cv_prog_CPP=$CPP
3797 echo "$as_me:$LINENO: result: $CPP" >&5
3798 echo "${ECHO_T}$CPP" >&6
3799 ac_preproc_ok=false
3800 for ac_c_preproc_warn_flag in '' yes
3802 # Use a header file that comes with gcc, so configuring glibc
3803 # with a fresh cross-compiler works.
3804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805 # <limits.h> exists even on freestanding compilers.
3806 # On the NeXT, cc -E runs the code through the compiler's parser,
3807 # not just through cpp. "Syntax error" is here to catch this case.
3808 cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h. */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3814 #ifdef __STDC__
3815 # include <limits.h>
3816 #else
3817 # include <assert.h>
3818 #endif
3819 Syntax error
3820 _ACEOF
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev/null; then
3829 if test -s conftest.err; then
3830 ac_cpp_err=$ac_c_preproc_warn_flag
3831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3832 else
3833 ac_cpp_err=
3835 else
3836 ac_cpp_err=yes
3838 if test -z "$ac_cpp_err"; then
3840 else
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Broken: fails on valid input.
3845 continue
3847 rm -f conftest.err conftest.$ac_ext
3849 # OK, works on sane cases. Now check whether non-existent headers
3850 # can be detected and how.
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <ac_nonexistent.h>
3858 _ACEOF
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null; then
3867 if test -s conftest.err; then
3868 ac_cpp_err=$ac_c_preproc_warn_flag
3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3870 else
3871 ac_cpp_err=
3873 else
3874 ac_cpp_err=yes
3876 if test -z "$ac_cpp_err"; then
3877 # Broken: success on invalid input.
3878 continue
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3883 # Passes both tests.
3884 ac_preproc_ok=:
3885 break
3887 rm -f conftest.err conftest.$ac_ext
3889 done
3890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3891 rm -f conftest.err conftest.$ac_ext
3892 if $ac_preproc_ok; then
3894 else
3895 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3896 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; }; }
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3917 then ac_cv_prog_egrep='grep -E'
3918 else ac_cv_prog_egrep='egrep'
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP=$ac_cv_prog_egrep
3926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3928 if test "${ac_cv_header_stdc+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <stdlib.h>
3938 #include <stdarg.h>
3939 #include <string.h>
3940 #include <float.h>
3943 main ()
3947 return 0;
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952 (eval $ac_compile) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_c_werror_flag"
3960 || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 (eval $ac_try) 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_header_stdc=yes
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 ac_cv_header_stdc=no
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 if test $ac_cv_header_stdc = yes; then
3982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #include <string.h>
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev/null 2>&1; then
3995 else
3996 ac_cv_header_stdc=no
3998 rm -f conftest*
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <stdlib.h>
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "free" >/dev/null 2>&1; then
4016 else
4017 ac_cv_header_stdc=no
4019 rm -f conftest*
4023 if test $ac_cv_header_stdc = yes; then
4024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025 if test "$cross_compiling" = yes; then
4027 else
4028 cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h. */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <ctype.h>
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038 #else
4039 # define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044 #endif
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4048 main ()
4050 int i;
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
4054 exit(2);
4055 exit (0);
4057 _ACEOF
4058 rm -f conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4070 else
4071 echo "$as_me: program exited with status $ac_status" >&5
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ( exit $ac_status )
4076 ac_cv_header_stdc=no
4078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4084 if test $ac_cv_header_stdc = yes; then
4086 cat >>confdefs.h <<\_ACEOF
4087 #define STDC_HEADERS 1
4088 _ACEOF
4092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4103 inttypes.h stdint.h unistd.h
4105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h. */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 $ac_includes_default
4119 #include <$ac_header>
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag"
4131 || test ! -s conftest.err'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4143 eval "$as_ac_Header=yes"
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 eval "$as_ac_Header=no"
4150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4155 cat >>confdefs.h <<_ACEOF
4156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4157 _ACEOF
4161 done
4164 # Check whether --enable-alsa or --disable-alsa was given.
4165 if test "${enable_alsa+set}" = set; then
4166 enableval="$enable_alsa"
4167 case "${enableval}" in
4168 yes) COMPILE_ALSA=yes ;;
4169 no) COMPILE_ALSA=no ;;
4170 *) COMPILE_ALSA=yes ;;
4171 esac
4172 else
4174 for ac_header in alsa/asoundlib.h
4176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4178 echo "$as_me:$LINENO: checking for $ac_header" >&5
4179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4185 else
4186 # Is the header compilable?
4187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4189 cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h. */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 $ac_includes_default
4196 #include <$ac_header>
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_c_werror_flag"
4208 || test ! -s conftest.err'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_header_compiler=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 ac_header_compiler=no
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4229 echo "${ECHO_T}$ac_header_compiler" >&6
4231 # Is the header present?
4232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <$ac_header>
4241 _ACEOF
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null; then
4250 if test -s conftest.err; then
4251 ac_cpp_err=$ac_c_preproc_warn_flag
4252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4253 else
4254 ac_cpp_err=
4256 else
4257 ac_cpp_err=yes
4259 if test -z "$ac_cpp_err"; then
4260 ac_header_preproc=yes
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 ac_header_preproc=no
4267 rm -f conftest.err conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4269 echo "${ECHO_T}$ac_header_preproc" >&6
4271 # So? What about this header?
4272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4273 yes:no: )
4274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4278 ac_header_preproc=yes
4280 no:yes:* )
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4294 cat <<\_ASBOX
4295 ## -------------------------------- ##
4296 ## Report this to classpath@gnu.org ##
4297 ## -------------------------------- ##
4298 _ASBOX
4300 sed "s/^/$as_me: WARNING: /" >&2
4302 esac
4303 echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 eval "$as_ac_Header=\$ac_header_preproc"
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4315 cat >>confdefs.h <<_ACEOF
4316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 _ACEOF
4318 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4319 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
4320 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 ac_check_lib_save_LIBS=$LIBS
4324 LIBS="-lasound $LIBS"
4325 if test x$gcc_no_link = xyes; then
4326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4328 { (exit 1); exit 1; }; }
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 #ifdef __cplusplus
4339 extern "C"
4340 #endif
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4343 char snd_seq_open ();
4345 main ()
4347 snd_seq_open ();
4349 return 0;
4351 _ACEOF
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -z "$ac_c_werror_flag"
4362 || test ! -s conftest.err'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try='test -s conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_cv_lib_asound_snd_seq_open=yes
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 ac_cv_lib_asound_snd_seq_open=no
4381 rm -f conftest.err conftest.$ac_objext \
4382 conftest$ac_exeext conftest.$ac_ext
4383 LIBS=$ac_check_lib_save_LIBS
4385 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4386 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4387 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4388 COMPILE_ALSA=yes
4389 else
4390 COMPILE_ALSA=no
4393 else
4394 COMPILE_ALSA=no
4397 done
4402 if test "x${COMPILE_ALSA}" = xyes; then
4403 CREATE_ALSA_LIBRARIES_TRUE=
4404 CREATE_ALSA_LIBRARIES_FALSE='#'
4405 else
4406 CREATE_ALSA_LIBRARIES_TRUE='#'
4407 CREATE_ALSA_LIBRARIES_FALSE=
4411 # Check whether --enable-dssi or --disable-dssi was given.
4412 if test "${enable_dssi+set}" = set; then
4413 enableval="$enable_dssi"
4414 case "${enableval}" in
4415 yes) COMPILE_DSSI=yes ;;
4416 no) COMPILE_DSSI=no ;;
4417 *) COMPILE_DSSI=yes ;;
4418 esac
4419 else
4420 COMPILE_DSSI=no
4422 for ac_header in dssi.h
4424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 else
4434 # Is the header compilable?
4435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4444 #include <$ac_header>
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_header_compiler=yes
4469 else
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ac_header_compiler=no
4475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4477 echo "${ECHO_T}$ac_header_compiler" >&6
4479 # Is the header present?
4480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <$ac_header>
4489 _ACEOF
4490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev/null; then
4498 if test -s conftest.err; then
4499 ac_cpp_err=$ac_c_preproc_warn_flag
4500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4501 else
4502 ac_cpp_err=
4504 else
4505 ac_cpp_err=yes
4507 if test -z "$ac_cpp_err"; then
4508 ac_header_preproc=yes
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_header_preproc=no
4515 rm -f conftest.err conftest.$ac_ext
4516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4517 echo "${ECHO_T}$ac_header_preproc" >&6
4519 # So? What about this header?
4520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4521 yes:no: )
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4526 ac_header_preproc=yes
4528 no:yes:* )
4529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4536 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4542 cat <<\_ASBOX
4543 ## -------------------------------- ##
4544 ## Report this to classpath@gnu.org ##
4545 ## -------------------------------- ##
4546 _ASBOX
4548 sed "s/^/$as_me: WARNING: /" >&2
4550 esac
4551 echo "$as_me:$LINENO: checking for $ac_header" >&5
4552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 eval "$as_ac_Header=\$ac_header_preproc"
4558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4563 cat >>confdefs.h <<_ACEOF
4564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4565 _ACEOF
4568 for ac_header in jack/jack.h
4570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572 echo "$as_me:$LINENO: checking for $ac_header" >&5
4573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4579 else
4580 # Is the header compilable?
4581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4590 #include <$ac_header>
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_c_werror_flag"
4602 || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_header_compiler=yes
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_header_compiler=no
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623 echo "${ECHO_T}$ac_header_compiler" >&6
4625 # Is the header present?
4626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <$ac_header>
4635 _ACEOF
4636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_c_preproc_warn_flag
4646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4647 else
4648 ac_cpp_err=
4650 else
4651 ac_cpp_err=yes
4653 if test -z "$ac_cpp_err"; then
4654 ac_header_preproc=yes
4655 else
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4659 ac_header_preproc=no
4661 rm -f conftest.err conftest.$ac_ext
4662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4663 echo "${ECHO_T}$ac_header_preproc" >&6
4665 # So? What about this header?
4666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4667 yes:no: )
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4672 ac_header_preproc=yes
4674 no:yes:* )
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4688 cat <<\_ASBOX
4689 ## -------------------------------- ##
4690 ## Report this to classpath@gnu.org ##
4691 ## -------------------------------- ##
4692 _ASBOX
4694 sed "s/^/$as_me: WARNING: /" >&2
4696 esac
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702 eval "$as_ac_Header=\$ac_header_preproc"
4704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4709 cat >>confdefs.h <<_ACEOF
4710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711 _ACEOF
4712 COMPILE_DSSI=yes
4715 done
4719 done
4724 if test "x${COMPILE_DSSI}" = xyes; then
4725 CREATE_DSSI_LIBRARIES_TRUE=
4726 CREATE_DSSI_LIBRARIES_FALSE='#'
4727 else
4728 CREATE_DSSI_LIBRARIES_TRUE='#'
4729 CREATE_DSSI_LIBRARIES_FALSE=
4733 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4734 if test "${enable_gtk_peer+set}" = set; then
4735 enableval="$enable_gtk_peer"
4736 case "${enableval}" in
4737 yes) COMPILE_GTK_PEER=yes ;;
4738 no) COMPILE_GTK_PEER=no ;;
4739 *) COMPILE_GTK_PEER=yes ;;
4740 esac
4741 else
4742 COMPILE_GTK_PEER=yes
4746 if test "x${COMPILE_GTK_PEER}" = xyes; then
4747 CREATE_GTK_PEER_LIBRARIES_TRUE=
4748 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4749 else
4750 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4751 CREATE_GTK_PEER_LIBRARIES_FALSE=
4755 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4756 if test "${enable_gtk_peers+set}" = set; then
4757 enableval="$enable_gtk_peers"
4758 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4759 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4760 { (exit 1); exit 1; }; }
4763 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4764 if test "${enable_qt_peer+set}" = set; then
4765 enableval="$enable_qt_peer"
4766 case "${enableval}" in
4767 yes) COMPILE_QT_PEER=yes ;;
4768 no) COMPILE_QT_PEER=no ;;
4769 *) COMPILE_QT_PEER=yes ;;
4770 esac
4771 else
4772 COMPILE_QT_PEER=no
4776 if test "x${COMPILE_QT_PEER}" = xyes; then
4777 CREATE_QT_PEER_LIBRARIES_TRUE=
4778 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4779 else
4780 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4781 CREATE_QT_PEER_LIBRARIES_FALSE=
4785 # Check whether --enable-plugin or --disable-plugin was given.
4786 if test "${enable_plugin+set}" = set; then
4787 enableval="$enable_plugin"
4788 case "${enableval}" in
4789 yes) COMPILE_PLUGIN=yes ;;
4790 no) COMPILE_PLUGIN=no ;;
4791 *) COMPILE_PLUGIN=yes ;;
4792 esac
4793 else
4794 COMPILE_PLUGIN=yes
4798 if test "x${COMPILE_PLUGIN}" = xyes; then
4799 CREATE_PLUGIN_TRUE=
4800 CREATE_PLUGIN_FALSE='#'
4801 else
4802 CREATE_PLUGIN_TRUE='#'
4803 CREATE_PLUGIN_FALSE=
4807 # Check whether --enable-gmp or --disable-gmp was given.
4808 if test "${enable_gmp+set}" = set; then
4809 enableval="$enable_gmp"
4810 case "${enableval}" in
4811 yes|true) COMPILE_GMP=yes ;;
4812 no|false) COMPILE_GMP=no ;;
4813 *) COMPILE_GMP=yes ;;
4814 esac
4815 else
4816 COMPILE_GMP=yes
4819 # Check whether --enable-gjdoc or --disable-gjdoc was given.
4820 if test "${enable_gjdoc+set}" = set; then
4821 enableval="$enable_gjdoc"
4822 case "${enableval}" in
4823 yes) COMPILE_GJDOC=yes ;;
4824 no) COMPILE_GJDOC=no ;;
4825 *) COMPILE_GJDOC=yes ;;
4826 esac
4827 else
4828 COMPILE_GJDOC=yes
4832 if test "x${COMPILE_GJDOC}" = xyes; then
4833 CREATE_GJDOC_TRUE=
4834 CREATE_GJDOC_FALSE='#'
4835 else
4836 CREATE_GJDOC_TRUE='#'
4837 CREATE_GJDOC_FALSE=
4842 multi_os_directory=`$CC -print-multi-os-directory`
4843 case $multi_os_directory in
4844 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
4845 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
4846 esac
4851 # Check whether --with-native-libdir or --without-native-libdir was given.
4852 if test "${with_native_libdir+set}" = set; then
4853 withval="$with_native_libdir"
4855 nativeexeclibdir=${withval}
4857 else
4859 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
4866 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4867 if test "${with_glibj_dir+set}" = set; then
4868 withval="$with_glibj_dir"
4870 glibjdir=${withval}
4872 else
4874 glibjdir='${datadir}/${PACKAGE}'
4881 # Check whether --with-antlr-jar or --without-antlr-jar was given.
4882 if test "${with_antlr_jar+set}" = set; then
4883 withval="$with_antlr_jar"
4885 ANTLR_JAR=$withval
4887 else
4889 ANTLR_JAR="$ANTLR_JAR"
4893 echo "$as_me:$LINENO: checking whether to regenerate the headers" >&5
4894 echo $ECHO_N "checking whether to regenerate the headers... $ECHO_C" >&6
4895 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4896 if test "${enable_regen_headers+set}" = set; then
4897 enableval="$enable_regen_headers"
4898 case "${enableval}" in
4899 yes) REGENERATE_JNI_HEADERS=yes ;;
4900 no) REGENERATE_JNI_HEADERS=no ;;
4901 *) REGENERATE_JNI_HEADERS=yes ;;
4902 esac
4903 else
4904 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
4905 REGENERATE_JNI_HEADERS=no ;
4906 else
4907 REGENERATE_JNI_HEADERS=yes ;
4910 echo "$as_me:$LINENO: result: ${REGENERATE_JNI_HEADERS}" >&5
4911 echo "${ECHO_T}${REGENERATE_JNI_HEADERS}" >&6
4914 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4915 CREATE_JNI_HEADERS_TRUE=
4916 CREATE_JNI_HEADERS_FALSE='#'
4917 else
4918 CREATE_JNI_HEADERS_TRUE='#'
4919 CREATE_JNI_HEADERS_FALSE=
4923 echo "$as_me:$LINENO: checking whether to regenerate the GJDoc parser" >&5
4924 echo $ECHO_N "checking whether to regenerate the GJDoc parser... $ECHO_C" >&6
4925 # Check whether --enable-regen-gjdoc-parser or --disable-regen-gjdoc-parser was given.
4926 if test "${enable_regen_gjdoc_parser+set}" = set; then
4927 enableval="$enable_regen_gjdoc_parser"
4928 case "${enableval}" in
4929 yes) REGENERATE_GJDOC_PARSER=yes ;;
4930 no) REGENERATE_GJDOC_PARSER=no ;;
4931 *) REGENERATE_GJDOC_PARSER=yes ;;
4932 esac
4933 else
4934 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
4935 REGENERATE_GJDOC_PARSER=no ;
4936 else
4937 REGENERATE_GJDOC_PARSER=yes ;
4940 echo "$as_me:$LINENO: result: ${REGENERATE_GJDOC_PARSER}" >&5
4941 echo "${ECHO_T}${REGENERATE_GJDOC_PARSER}" >&6
4944 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
4945 CREATE_GJDOC_PARSER_TRUE=
4946 CREATE_GJDOC_PARSER_FALSE='#'
4947 else
4948 CREATE_GJDOC_PARSER_TRUE='#'
4949 CREATE_GJDOC_PARSER_FALSE=
4953 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4954 if test "${enable_tool_wrappers+set}" = set; then
4955 enableval="$enable_tool_wrappers"
4956 case x"${enableval}" in
4957 xyes)
4958 COMPILE_WRAPPERS=yes;
4960 for ac_header in ltdl.h
4962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964 echo "$as_me:$LINENO: checking for $ac_header" >&5
4965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4971 else
4972 # Is the header compilable?
4973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 $ac_includes_default
4982 #include <$ac_header>
4983 _ACEOF
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try='test -z "$ac_c_werror_flag"
4994 || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest.$ac_objext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_header_compiler=yes
5007 else
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 ac_header_compiler=no
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6
5017 # Is the header present?
5018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <$ac_header>
5027 _ACEOF
5028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } >/dev/null; then
5036 if test -s conftest.err; then
5037 ac_cpp_err=$ac_c_preproc_warn_flag
5038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039 else
5040 ac_cpp_err=
5042 else
5043 ac_cpp_err=yes
5045 if test -z "$ac_cpp_err"; then
5046 ac_header_preproc=yes
5047 else
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 ac_header_preproc=no
5053 rm -f conftest.err conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055 echo "${ECHO_T}$ac_header_preproc" >&6
5057 # So? What about this header?
5058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5059 yes:no: )
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5064 ac_header_preproc=yes
5066 no:yes:* )
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5080 cat <<\_ASBOX
5081 ## -------------------------------- ##
5082 ## Report this to classpath@gnu.org ##
5083 ## -------------------------------- ##
5084 _ASBOX
5086 sed "s/^/$as_me: WARNING: /" >&2
5088 esac
5089 echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 eval "$as_ac_Header=\$ac_header_preproc"
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103 _ACEOF
5105 else
5106 { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
5107 echo "$as_me: error: cannot find ltdl.h" >&2;}
5108 { (exit 1); exit 1; }; }
5111 done
5114 echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
5115 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6
5116 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 ac_check_lib_save_LIBS=$LIBS
5120 LIBS="-lltdl $LIBS"
5121 if test x$gcc_no_link = xyes; then
5122 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5124 { (exit 1); exit 1; }; }
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h. */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5133 /* Override any gcc2 internal prototype to avoid an error. */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 /* We use char because int might match the return type of a gcc2
5138 builtin and then its argument prototype would still apply. */
5139 char lt_dlopen ();
5141 main ()
5143 lt_dlopen ();
5145 return 0;
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150 (eval $ac_link) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest$ac_exeext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_lib_ltdl_lt_dlopen=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 ac_cv_lib_ltdl_lt_dlopen=no
5177 rm -f conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179 LIBS=$ac_check_lib_save_LIBS
5181 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5182 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6
5183 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
5184 cat >>confdefs.h <<_ACEOF
5185 #define HAVE_LIBLTDL 1
5186 _ACEOF
5188 LIBS="-lltdl $LIBS"
5190 else
5191 { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
5192 echo "$as_me: error: cannot find libltdl" >&2;}
5193 { (exit 1); exit 1; }; }
5197 xno) COMPILE_WRAPPERS=no ;;
5198 x) COMPILE_WRAPPERS=yes ;;
5199 *) COMPILE_WRAPPERS=yes ;;
5200 esac
5201 else
5202 COMPILE_WRAPPERS=no
5206 if test "x${COMPILE_WRAPPERS}" = xyes; then
5207 CREATE_WRAPPERS_TRUE=
5208 CREATE_WRAPPERS_FALSE='#'
5209 else
5210 CREATE_WRAPPERS_TRUE='#'
5211 CREATE_WRAPPERS_FALSE=
5215 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5216 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5217 LN_S=$as_ln_s
5218 if test "$LN_S" = "ln -s"; then
5219 echo "$as_me:$LINENO: result: yes" >&5
5220 echo "${ECHO_T}yes" >&6
5221 else
5222 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5223 echo "${ECHO_T}no, using $LN_S" >&6
5226 # Find a good install program. We prefer a C program (faster),
5227 # so one script is as good as another. But avoid the broken or
5228 # incompatible versions:
5229 # SysV /etc/install, /usr/sbin/install
5230 # SunOS /usr/etc/install
5231 # IRIX /sbin/install
5232 # AIX /bin/install
5233 # AmigaOS /C/install, which installs bootblocks on floppy discs
5234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5237 # OS/2's system install, which has a completely different semantic
5238 # ./install, which can be erroneously created by make from ./install.sh.
5239 # Reject install programs that cannot install multiple files.
5240 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5241 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5242 if test -z "$INSTALL"; then
5243 if test "${ac_cv_path_install+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 # Account for people who put trailing slashes in PATH elements.
5252 case $as_dir/ in
5253 ./ | .// | /cC/* | \
5254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5255 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5256 /usr/ucb/* ) ;;
5258 # OSF1 and SCO ODT 3.0 have their own names for install.
5259 # Don't use installbsd from OSF since it installs stuff as root
5260 # by default.
5261 for ac_prog in ginstall scoinst install; do
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5264 if test $ac_prog = install &&
5265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5266 # AIX install. It has an incompatible calling convention.
5268 elif test $ac_prog = install &&
5269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270 # program-specific install script used by HP pwplus--don't use.
5272 else
5273 rm -rf conftest.one conftest.two conftest.dir
5274 echo one > conftest.one
5275 echo two > conftest.two
5276 mkdir conftest.dir
5277 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5278 test -s conftest.one && test -s conftest.two &&
5279 test -s conftest.dir/conftest.one &&
5280 test -s conftest.dir/conftest.two
5281 then
5282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5283 break 3
5287 done
5288 done
5290 esac
5291 done
5293 rm -rf conftest.one conftest.two conftest.dir
5296 if test "${ac_cv_path_install+set}" = set; then
5297 INSTALL=$ac_cv_path_install
5298 else
5299 # As a last resort, use the slow shell script. Don't cache a
5300 # value for INSTALL within a source directory, because that will
5301 # break other packages using the cache if that directory is
5302 # removed, or if the value is a relative name.
5303 INSTALL=$ac_install_sh
5306 echo "$as_me:$LINENO: result: $INSTALL" >&5
5307 echo "${ECHO_T}$INSTALL" >&6
5309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5310 # It thinks the first close brace ends the variable substitution.
5311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5319 # Check whether --enable-static or --disable-static was given.
5320 if test "${enable_static+set}" = set; then
5321 enableval="$enable_static"
5322 p=${PACKAGE-default}
5323 case $enableval in
5324 yes) enable_static=yes ;;
5325 no) enable_static=no ;;
5327 enable_static=no
5328 # Look at the argument we got. We use all the common list separators.
5329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5330 for pkg in $enableval; do
5331 IFS="$lt_save_ifs"
5332 if test "X$pkg" = "X$p"; then
5333 enable_static=yes
5335 done
5336 IFS="$lt_save_ifs"
5338 esac
5339 else
5340 enable_static=no
5350 case `pwd` in
5351 *\ * | *\ *)
5352 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5353 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5354 esac
5358 macro_version='2.2.6'
5359 macro_revision='1.3012'
5373 ltmain="$ac_aux_dir/ltmain.sh"
5375 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5376 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5377 if test "${lt_cv_path_SED+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 # Loop through the user's path and test for sed and gsed.
5381 # Then use that list of sed's as ones to test for truncation.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for lt_ac_prog in sed gsed; do
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5390 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5392 done
5393 done
5394 done
5395 IFS=$as_save_IFS
5396 lt_ac_max=0
5397 lt_ac_count=0
5398 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5399 # along with /bin/sed that truncates output.
5400 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5401 test ! -f $lt_ac_sed && continue
5402 cat /dev/null > conftest.in
5403 lt_ac_count=0
5404 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5405 # Check for GNU sed and select it if it is found.
5406 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5407 lt_cv_path_SED=$lt_ac_sed
5408 break
5410 while true; do
5411 cat conftest.in conftest.in >conftest.tmp
5412 mv conftest.tmp conftest.in
5413 cp conftest.in conftest.nl
5414 echo >>conftest.nl
5415 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5416 cmp -s conftest.out conftest.nl || break
5417 # 10000 chars as input seems more than enough
5418 test $lt_ac_count -gt 10 && break
5419 lt_ac_count=`expr $lt_ac_count + 1`
5420 if test $lt_ac_count -gt $lt_ac_max; then
5421 lt_ac_max=$lt_ac_count
5422 lt_cv_path_SED=$lt_ac_sed
5424 done
5425 done
5429 SED=$lt_cv_path_SED
5431 echo "$as_me:$LINENO: result: $SED" >&5
5432 echo "${ECHO_T}$SED" >&6
5434 test -z "$SED" && SED=sed
5435 Xsed="$SED -e 1s/^X//"
5447 echo "$as_me:$LINENO: checking for fgrep" >&5
5448 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5449 if test "${ac_cv_prog_fgrep+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5453 then ac_cv_prog_fgrep='grep -F'
5454 else ac_cv_prog_fgrep='fgrep'
5457 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5458 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5459 FGREP=$ac_cv_prog_fgrep
5462 test -z "$GREP" && GREP=grep
5482 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5483 if test "${with_gnu_ld+set}" = set; then
5484 withval="$with_gnu_ld"
5485 test "$withval" = no || with_gnu_ld=yes
5486 else
5487 with_gnu_ld=no
5489 ac_prog=ld
5490 if test "$GCC" = yes; then
5491 # Check if gcc -print-prog-name=ld gives a path.
5492 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5494 case $host in
5495 *-*-mingw*)
5496 # gcc leaves a trailing carriage return which upsets mingw
5497 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5499 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5500 esac
5501 case $ac_prog in
5502 # Accept absolute paths.
5503 [\\/]* | ?:[\\/]*)
5504 re_direlt='/[^/][^/]*/\.\./'
5505 # Canonicalize the pathname of ld
5506 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5507 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5508 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5509 done
5510 test -z "$LD" && LD="$ac_prog"
5513 # If it fails, then pretend we aren't using GCC.
5514 ac_prog=ld
5517 # If it is relative, then search for the first ld in PATH.
5518 with_gnu_ld=unknown
5520 esac
5521 elif test "$with_gnu_ld" = yes; then
5522 echo "$as_me:$LINENO: checking for GNU ld" >&5
5523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5524 else
5525 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5528 if test "${lt_cv_path_LD+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 if test -z "$LD"; then
5532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5533 for ac_dir in $PATH; do
5534 IFS="$lt_save_ifs"
5535 test -z "$ac_dir" && ac_dir=.
5536 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5537 lt_cv_path_LD="$ac_dir/$ac_prog"
5538 # Check to see if the program is GNU ld. I'd rather use --version,
5539 # but apparently some variants of GNU ld only accept -v.
5540 # Break only if it was the GNU/non-GNU ld that we prefer.
5541 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5542 *GNU* | *'with BFD'*)
5543 test "$with_gnu_ld" != no && break
5546 test "$with_gnu_ld" != yes && break
5548 esac
5550 done
5551 IFS="$lt_save_ifs"
5552 else
5553 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5557 LD="$lt_cv_path_LD"
5558 if test -n "$LD"; then
5559 echo "$as_me:$LINENO: result: $LD" >&5
5560 echo "${ECHO_T}$LD" >&6
5561 else
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5567 { (exit 1); exit 1; }; }
5568 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5574 case `$LD -v 2>&1 </dev/null` in
5575 *GNU* | *'with BFD'*)
5576 lt_cv_prog_gnu_ld=yes
5579 lt_cv_prog_gnu_ld=no
5581 esac
5583 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5585 with_gnu_ld=$lt_cv_prog_gnu_ld
5595 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5596 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5597 if test "${lt_cv_path_NM+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600 if test -n "$NM"; then
5601 # Let the user override the test.
5602 lt_cv_path_NM="$NM"
5603 else
5604 lt_nm_to_check="${ac_tool_prefix}nm"
5605 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5606 lt_nm_to_check="$lt_nm_to_check nm"
5608 for lt_tmp_nm in $lt_nm_to_check; do
5609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5610 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5611 IFS="$lt_save_ifs"
5612 test -z "$ac_dir" && ac_dir=.
5613 tmp_nm="$ac_dir/$lt_tmp_nm"
5614 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5615 # Check to see if the nm accepts a BSD-compat flag.
5616 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5617 # nm: unknown option "B" ignored
5618 # Tru64's nm complains that /dev/null is an invalid object file
5619 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5620 */dev/null* | *'Invalid file or object type'*)
5621 lt_cv_path_NM="$tmp_nm -B"
5622 break
5625 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5626 */dev/null*)
5627 lt_cv_path_NM="$tmp_nm -p"
5628 break
5631 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5632 continue # so that we can try to find one that supports BSD flags
5634 esac
5636 esac
5638 done
5639 IFS="$lt_save_ifs"
5640 done
5641 : ${lt_cv_path_NM=no}
5644 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5645 echo "${ECHO_T}$lt_cv_path_NM" >&6
5646 if test "$lt_cv_path_NM" != "no"; then
5647 NM="$lt_cv_path_NM"
5648 else
5649 # Didn't find any BSD compatible name lister, look for dumpbin.
5650 if test -n "$ac_tool_prefix"; then
5651 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 if test -n "$DUMPBIN"; then
5661 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5679 DUMPBIN=$ac_cv_prog_DUMPBIN
5680 if test -n "$DUMPBIN"; then
5681 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5682 echo "${ECHO_T}$DUMPBIN" >&6
5683 else
5684 echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6
5688 test -n "$DUMPBIN" && break
5689 done
5691 if test -z "$DUMPBIN"; then
5692 ac_ct_DUMPBIN=$DUMPBIN
5693 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 if test -n "$ac_ct_DUMPBIN"; then
5703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5721 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5722 if test -n "$ac_ct_DUMPBIN"; then
5723 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5724 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5725 else
5726 echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5730 test -n "$ac_ct_DUMPBIN" && break
5731 done
5732 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5734 DUMPBIN=$ac_ct_DUMPBIN
5738 if test "$DUMPBIN" != ":"; then
5739 NM="$DUMPBIN"
5742 test -z "$NM" && NM=nm
5749 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5750 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5751 if test "${lt_cv_nm_interface+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754 lt_cv_nm_interface="BSD nm"
5755 echo "int some_variable = 0;" > conftest.$ac_ext
5756 (eval echo "\"\$as_me:5756: $ac_compile\"" >&5)
5757 (eval "$ac_compile" 2>conftest.err)
5758 cat conftest.err >&5
5759 (eval echo "\"\$as_me:5759: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5761 cat conftest.err >&5
5762 (eval echo "\"\$as_me:5762: output\"" >&5)
5763 cat conftest.out >&5
5764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5765 lt_cv_nm_interface="MS dumpbin"
5767 rm -f conftest*
5769 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5770 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5772 # find the maximum length of command line arguments
5773 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5774 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5779 teststring="ABCD"
5781 case $build_os in
5782 msdosdjgpp*)
5783 # On DJGPP, this test can blow up pretty badly due to problems in libc
5784 # (any single argument exceeding 2000 bytes causes a buffer overrun
5785 # during glob expansion). Even if it were fixed, the result of this
5786 # check would be larger than it should be.
5787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5790 gnu*)
5791 # Under GNU Hurd, this test is not required because there is
5792 # no limit to the length of command line arguments.
5793 # Libtool will interpret -1 as no limit whatsoever
5794 lt_cv_sys_max_cmd_len=-1;
5797 cygwin* | mingw* | cegcc*)
5798 # On Win9x/ME, this test blows up -- it succeeds, but takes
5799 # about 5 minutes as the teststring grows exponentially.
5800 # Worse, since 9x/ME are not pre-emptively multitasking,
5801 # you end up with a "frozen" computer, even though with patience
5802 # the test eventually succeeds (with a max line length of 256k).
5803 # Instead, let's just punt: use the minimum linelength reported by
5804 # all of the supported platforms: 8192 (on NT/2K/XP).
5805 lt_cv_sys_max_cmd_len=8192;
5808 amigaos*)
5809 # On AmigaOS with pdksh, this test takes hours, literally.
5810 # So we just punt and use a minimum line length of 8192.
5811 lt_cv_sys_max_cmd_len=8192;
5814 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5815 # This has been around since 386BSD, at least. Likely further.
5816 if test -x /sbin/sysctl; then
5817 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5818 elif test -x /usr/sbin/sysctl; then
5819 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5820 else
5821 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5823 # And add a safety zone
5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5828 interix*)
5829 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5830 lt_cv_sys_max_cmd_len=196608
5833 osf*)
5834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5836 # nice to cause kernel panics so lets avoid the loop below.
5837 # First set a reasonable default.
5838 lt_cv_sys_max_cmd_len=16384
5840 if test -x /sbin/sysconfig; then
5841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5842 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5843 esac
5846 sco3.2v5*)
5847 lt_cv_sys_max_cmd_len=102400
5849 sysv5* | sco5v6* | sysv4.2uw2*)
5850 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5851 if test -n "$kargmax"; then
5852 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5853 else
5854 lt_cv_sys_max_cmd_len=32768
5858 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5859 if test -n "$lt_cv_sys_max_cmd_len"; then
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5862 else
5863 # Make teststring a little bigger before we do anything with it.
5864 # a 1K string should be a reasonable start.
5865 for i in 1 2 3 4 5 6 7 8 ; do
5866 teststring=$teststring$teststring
5867 done
5868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5869 # If test is not a shell built-in, we'll probably end up computing a
5870 # maximum length that is only half of the actual maximum length, but
5871 # we can't tell.
5872 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5873 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5874 test $i != 17 # 1/2 MB should be enough
5876 i=`expr $i + 1`
5877 teststring=$teststring$teststring
5878 done
5879 # Only check the string length outside the loop.
5880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5881 teststring=
5882 # Add a significant safety factor because C++ compilers can tack on
5883 # massive amounts of additional arguments before passing them to the
5884 # linker. It appears as though 1/2 is a usable value.
5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5888 esac
5892 if test -n $lt_cv_sys_max_cmd_len ; then
5893 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5894 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5895 else
5896 echo "$as_me:$LINENO: result: none" >&5
5897 echo "${ECHO_T}none" >&6
5899 max_cmd_len=$lt_cv_sys_max_cmd_len
5906 : ${CP="cp -f"}
5907 : ${MV="mv -f"}
5908 : ${RM="rm -f"}
5910 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5911 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5912 # Try some XSI features
5913 xsi_shell=no
5914 ( _lt_dummy="a/b/c"
5915 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5916 = c,a/b,, \
5917 && eval 'test $(( 1 + 1 )) -eq 2 \
5918 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5919 && xsi_shell=yes
5920 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5921 echo "${ECHO_T}$xsi_shell" >&6
5924 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5925 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5926 lt_shell_append=no
5927 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5928 >/dev/null 2>&1 \
5929 && lt_shell_append=yes
5930 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5931 echo "${ECHO_T}$lt_shell_append" >&6
5934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5935 lt_unset=unset
5936 else
5937 lt_unset=false
5944 # test EBCDIC or ASCII
5945 case `echo X|tr X '\101'` in
5946 A) # ASCII based system
5947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5948 lt_SP2NL='tr \040 \012'
5949 lt_NL2SP='tr \015\012 \040\040'
5951 *) # EBCDIC based system
5952 lt_SP2NL='tr \100 \n'
5953 lt_NL2SP='tr \r\n \100\100'
5955 esac
5965 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5966 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5967 if test "${lt_cv_ld_reload_flag+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970 lt_cv_ld_reload_flag='-r'
5972 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5973 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5974 reload_flag=$lt_cv_ld_reload_flag
5975 case $reload_flag in
5976 "" | " "*) ;;
5977 *) reload_flag=" $reload_flag" ;;
5978 esac
5979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5980 case $host_os in
5981 darwin*)
5982 if test "$GCC" = yes; then
5983 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5984 else
5985 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5988 esac
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6001 echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 if test -n "$OBJDUMP"; then
6007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6025 OBJDUMP=$ac_cv_prog_OBJDUMP
6026 if test -n "$OBJDUMP"; then
6027 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6028 echo "${ECHO_T}$OBJDUMP" >&6
6029 else
6030 echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6035 if test -z "$ac_cv_prog_OBJDUMP"; then
6036 ac_ct_OBJDUMP=$OBJDUMP
6037 # Extract the first word of "objdump", so it can be a program name with args.
6038 set dummy objdump; ac_word=$2
6039 echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6041 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 if test -n "$ac_ct_OBJDUMP"; then
6045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6058 done
6059 done
6061 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6064 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6065 if test -n "$ac_ct_OBJDUMP"; then
6066 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6067 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6068 else
6069 echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6073 OBJDUMP=$ac_ct_OBJDUMP
6074 else
6075 OBJDUMP="$ac_cv_prog_OBJDUMP"
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6088 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6089 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6090 if test "${lt_cv_deplibs_check_method+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093 lt_cv_file_magic_cmd='$MAGIC_CMD'
6094 lt_cv_file_magic_test_file=
6095 lt_cv_deplibs_check_method='unknown'
6096 # Need to set the preceding variable on all platforms that support
6097 # interlibrary dependencies.
6098 # 'none' -- dependencies not supported.
6099 # `unknown' -- same as none, but documents that we really don't know.
6100 # 'pass_all' -- all dependencies passed with no checks.
6101 # 'test_compile' -- check by making test program.
6102 # 'file_magic [[regex]]' -- check by looking for files in library path
6103 # which responds to the $file_magic_cmd with a given extended regex.
6104 # If you have `file' or equivalent on your system and you're not sure
6105 # whether `pass_all' will *always* work, you probably want this one.
6107 case $host_os in
6108 aix[4-9]*)
6109 lt_cv_deplibs_check_method=pass_all
6112 beos*)
6113 lt_cv_deplibs_check_method=pass_all
6116 bsdi[45]*)
6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6118 lt_cv_file_magic_cmd='/usr/bin/file -L'
6119 lt_cv_file_magic_test_file=/shlib/libc.so
6122 cygwin*)
6123 # func_win32_libid is a shell function defined in ltmain.sh
6124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125 lt_cv_file_magic_cmd='func_win32_libid'
6128 mingw* | pw32*)
6129 # Base MSYS/MinGW do not provide the 'file' command needed by
6130 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6131 # unless we find 'file', for example because we are cross-compiling.
6132 if ( file / ) >/dev/null 2>&1; then
6133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6134 lt_cv_file_magic_cmd='func_win32_libid'
6135 else
6136 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6137 lt_cv_file_magic_cmd='$OBJDUMP -f'
6141 cegcc)
6142 # use the weaker test based on 'objdump'. See mingw*.
6143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6144 lt_cv_file_magic_cmd='$OBJDUMP -f'
6147 darwin* | rhapsody*)
6148 lt_cv_deplibs_check_method=pass_all
6151 freebsd* | dragonfly*)
6152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6153 case $host_cpu in
6154 i*86 )
6155 # Not sure whether the presence of OpenBSD here was a mistake.
6156 # Let's accept both of them until this is cleared up.
6157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6158 lt_cv_file_magic_cmd=/usr/bin/file
6159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6161 esac
6162 else
6163 lt_cv_deplibs_check_method=pass_all
6167 gnu*)
6168 lt_cv_deplibs_check_method=pass_all
6171 hpux10.20* | hpux11*)
6172 lt_cv_file_magic_cmd=/usr/bin/file
6173 case $host_cpu in
6174 ia64*)
6175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6176 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6178 hppa*64*)
6179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6180 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6184 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6186 esac
6189 interix[3-9]*)
6190 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6194 irix5* | irix6* | nonstopux*)
6195 case $LD in
6196 *-32|*"-32 ") libmagic=32-bit;;
6197 *-n32|*"-n32 ") libmagic=N32;;
6198 *-64|*"-64 ") libmagic=64-bit;;
6199 *) libmagic=never-match;;
6200 esac
6201 lt_cv_deplibs_check_method=pass_all
6204 # This must be Linux ELF.
6205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6206 lt_cv_deplibs_check_method=pass_all
6209 netbsd*)
6210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6212 else
6213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6217 newos6*)
6218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6219 lt_cv_file_magic_cmd=/usr/bin/file
6220 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6223 *nto* | *qnx*)
6224 lt_cv_deplibs_check_method=pass_all
6227 openbsd*)
6228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6230 else
6231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6235 osf3* | osf4* | osf5*)
6236 lt_cv_deplibs_check_method=pass_all
6239 rdos*)
6240 lt_cv_deplibs_check_method=pass_all
6243 solaris*)
6244 lt_cv_deplibs_check_method=pass_all
6247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6248 lt_cv_deplibs_check_method=pass_all
6251 sysv4 | sysv4.3*)
6252 case $host_vendor in
6253 motorola)
6254 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]'
6255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6257 ncr)
6258 lt_cv_deplibs_check_method=pass_all
6260 sequent)
6261 lt_cv_file_magic_cmd='/bin/file'
6262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6264 sni)
6265 lt_cv_file_magic_cmd='/bin/file'
6266 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6267 lt_cv_file_magic_test_file=/lib/libc.so
6269 siemens)
6270 lt_cv_deplibs_check_method=pass_all
6273 lt_cv_deplibs_check_method=pass_all
6275 esac
6278 tpf*)
6279 lt_cv_deplibs_check_method=pass_all
6281 esac
6284 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6285 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6286 file_magic_cmd=$lt_cv_file_magic_cmd
6287 deplibs_check_method=$lt_cv_deplibs_check_method
6288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}ar; ac_word=$2
6304 echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306 if test "${ac_cv_prog_AR+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309 if test -n "$AR"; then
6310 ac_cv_prog_AR="$AR" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_AR="${ac_tool_prefix}ar"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6323 done
6324 done
6328 AR=$ac_cv_prog_AR
6329 if test -n "$AR"; then
6330 echo "$as_me:$LINENO: result: $AR" >&5
6331 echo "${ECHO_T}$AR" >&6
6332 else
6333 echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6338 if test -z "$ac_cv_prog_AR"; then
6339 ac_ct_AR=$AR
6340 # Extract the first word of "ar", so it can be a program name with args.
6341 set dummy ar; ac_word=$2
6342 echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 if test -n "$ac_ct_AR"; then
6348 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_AR="ar"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6364 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6367 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6368 if test -n "$ac_ct_AR"; then
6369 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6370 echo "${ECHO_T}$ac_ct_AR" >&6
6371 else
6372 echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6
6376 AR=$ac_ct_AR
6377 else
6378 AR="$ac_cv_prog_AR"
6381 test -z "$AR" && AR=ar
6382 test -z "$AR_FLAGS" && AR_FLAGS=cru
6394 if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}strip; ac_word=$2
6397 echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399 if test "${ac_cv_prog_STRIP+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 if test -n "$STRIP"; then
6403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6421 STRIP=$ac_cv_prog_STRIP
6422 if test -n "$STRIP"; then
6423 echo "$as_me:$LINENO: result: $STRIP" >&5
6424 echo "${ECHO_T}$STRIP" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6
6431 if test -z "$ac_cv_prog_STRIP"; then
6432 ac_ct_STRIP=$STRIP
6433 # Extract the first word of "strip", so it can be a program name with args.
6434 set dummy strip; ac_word=$2
6435 echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 if test -n "$ac_ct_STRIP"; then
6441 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_ac_ct_STRIP="strip"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6454 done
6455 done
6457 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6461 if test -n "$ac_ct_STRIP"; then
6462 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6463 echo "${ECHO_T}$ac_ct_STRIP" >&6
6464 else
6465 echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6469 STRIP=$ac_ct_STRIP
6470 else
6471 STRIP="$ac_cv_prog_STRIP"
6474 test -z "$STRIP" && STRIP=:
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6484 echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6486 if test "${ac_cv_prog_RANLIB+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 if test -n "$RANLIB"; then
6490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6508 RANLIB=$ac_cv_prog_RANLIB
6509 if test -n "$RANLIB"; then
6510 echo "$as_me:$LINENO: result: $RANLIB" >&5
6511 echo "${ECHO_T}$RANLIB" >&6
6512 else
6513 echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6
6518 if test -z "$ac_cv_prog_RANLIB"; then
6519 ac_ct_RANLIB=$RANLIB
6520 # Extract the first word of "ranlib", so it can be a program name with args.
6521 set dummy ranlib; ac_word=$2
6522 echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 if test -n "$ac_ct_RANLIB"; then
6528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537 ac_cv_prog_ac_ct_RANLIB="ranlib"
6538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 break 2
6541 done
6542 done
6544 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6548 if test -n "$ac_ct_RANLIB"; then
6549 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6550 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6551 else
6552 echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6
6556 RANLIB=$ac_ct_RANLIB
6557 else
6558 RANLIB="$ac_cv_prog_RANLIB"
6561 test -z "$RANLIB" && RANLIB=:
6568 # Determine commands to create old-style static archives.
6569 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6570 old_postinstall_cmds='chmod 644 $oldlib'
6571 old_postuninstall_cmds=
6573 if test -n "$RANLIB"; then
6574 case $host_os in
6575 openbsd*)
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6579 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6581 esac
6582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6618 # If no C compiler was specified, use CC.
6619 LTCC=${LTCC-"$CC"}
6621 # If no C compiler flags were specified, use CFLAGS.
6622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6624 # Allow CC to be a program name with arguments.
6625 compiler=$CC
6628 # Check for command to grab the raw symbol name followed by C symbol from nm.
6629 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6630 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6635 # These are sane defaults that work on at least a few old systems.
6636 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6638 # Character class describing NM global symbol codes.
6639 symcode='[BCDEGRST]'
6641 # Regexp to match symbols that can be accessed directly from C.
6642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6644 # Define system-specific variables.
6645 case $host_os in
6646 aix*)
6647 symcode='[BCDT]'
6649 cygwin* | mingw* | pw32* | cegcc*)
6650 symcode='[ABCDGISTW]'
6652 hpux*)
6653 if test "$host_cpu" = ia64; then
6654 symcode='[ABCDEGRST]'
6657 irix* | nonstopux*)
6658 symcode='[BCDEGRST]'
6660 osf*)
6661 symcode='[BCDEGQRST]'
6663 solaris*)
6664 symcode='[BDRT]'
6666 sco3.2v5*)
6667 symcode='[DT]'
6669 sysv4.2uw2*)
6670 symcode='[DT]'
6672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6673 symcode='[ABDT]'
6675 sysv4)
6676 symcode='[DFNSTU]'
6678 esac
6680 # If we're using GNU nm, then use its standard symbol codes.
6681 case `$NM -V 2>&1` in
6682 *GNU* | *'with BFD'*)
6683 symcode='[ABCDGIRSTW]' ;;
6684 esac
6686 # Transform an extracted symbol line into a proper C declaration.
6687 # Some systems (esp. on ia64) link data and code symbols differently,
6688 # so use this general approach.
6689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6691 # Transform an extracted symbol line into symbol name and symbol address
6692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6693 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6695 # Handle CRLF in mingw tool chain
6696 opt_cr=
6697 case $build_os in
6698 mingw*)
6699 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6701 esac
6703 # Try without a prefix underscore, then with it.
6704 for ac_symprfx in "" "_"; do
6706 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6707 symxfrm="\\1 $ac_symprfx\\2 \\2"
6709 # Write the raw and C identifiers.
6710 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6711 # Fake it for dumpbin and say T for any non-static function
6712 # and D for any global variable.
6713 # Also find C++ and __fastcall symbols from MSVC++,
6714 # which start with @ or ?.
6715 lt_cv_sys_global_symbol_pipe="$AWK '"\
6716 " {last_section=section; section=\$ 3};"\
6717 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6718 " \$ 0!~/External *\|/{next};"\
6719 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6720 " {if(hide[section]) next};"\
6721 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6722 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6723 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6724 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6725 " ' prfx=^$ac_symprfx"
6726 else
6727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6730 # Check to see that the pipe works correctly.
6731 pipe_works=no
6733 rm -f conftest*
6734 cat > conftest.$ac_ext <<_LT_EOF
6735 #ifdef __cplusplus
6736 extern "C" {
6737 #endif
6738 char nm_test_var;
6739 void nm_test_func(void);
6740 void nm_test_func(void){}
6741 #ifdef __cplusplus
6743 #endif
6744 int main(){nm_test_var='a';nm_test_func();return(0);}
6745 _LT_EOF
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748 (eval $ac_compile) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; then
6752 # Now try to grab the symbols.
6753 nlist=conftest.nm
6754 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6755 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && test -s "$nlist"; then
6759 # Try sorting and uniquifying the output.
6760 if sort "$nlist" | uniq > "$nlist"T; then
6761 mv -f "$nlist"T "$nlist"
6762 else
6763 rm -f "$nlist"T
6766 # Make sure that we snagged all the symbols we need.
6767 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6768 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6769 cat <<_LT_EOF > conftest.$ac_ext
6770 #ifdef __cplusplus
6771 extern "C" {
6772 #endif
6774 _LT_EOF
6775 # Now generate the symbol file.
6776 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6778 cat <<_LT_EOF >> conftest.$ac_ext
6780 /* The mapping between symbol names and symbols. */
6781 const struct {
6782 const char *name;
6783 void *address;
6785 lt__PROGRAM__LTX_preloaded_symbols[] =
6787 { "@PROGRAM@", (void *) 0 },
6788 _LT_EOF
6789 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6790 cat <<\_LT_EOF >> conftest.$ac_ext
6791 {0, (void *) 0}
6794 /* This works around a problem in FreeBSD linker */
6795 #ifdef FREEBSD_WORKAROUND
6796 static const void *lt_preloaded_setup() {
6797 return lt__PROGRAM__LTX_preloaded_symbols;
6799 #endif
6801 #ifdef __cplusplus
6803 #endif
6804 _LT_EOF
6805 # Now try linking the two files.
6806 mv conftest.$ac_objext conftstm.$ac_objext
6807 lt_save_LIBS="$LIBS"
6808 lt_save_CFLAGS="$CFLAGS"
6809 LIBS="conftstm.$ac_objext"
6810 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6816 pipe_works=yes
6818 LIBS="$lt_save_LIBS"
6819 CFLAGS="$lt_save_CFLAGS"
6820 else
6821 echo "cannot find nm_test_func in $nlist" >&5
6823 else
6824 echo "cannot find nm_test_var in $nlist" >&5
6826 else
6827 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6829 else
6830 echo "$progname: failed program was:" >&5
6831 cat conftest.$ac_ext >&5
6833 rm -rf conftest* conftst*
6835 # Do not use the global_symbol_pipe unless it works.
6836 if test "$pipe_works" = yes; then
6837 break
6838 else
6839 lt_cv_sys_global_symbol_pipe=
6841 done
6845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6846 lt_cv_sys_global_symbol_to_cdecl=
6848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6849 echo "$as_me:$LINENO: result: failed" >&5
6850 echo "${ECHO_T}failed" >&6
6851 else
6852 echo "$as_me:$LINENO: result: ok" >&5
6853 echo "${ECHO_T}ok" >&6
6877 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6878 if test "${enable_libtool_lock+set}" = set; then
6879 enableval="$enable_libtool_lock"
6882 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6884 # Some flags need to be propagated to the compiler or linker for good
6885 # libtool support.
6886 case $host in
6887 ia64-*-hpux*)
6888 # Find out which ABI we are using.
6889 echo 'int i;' > conftest.$ac_ext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; then
6895 case `/usr/bin/file conftest.$ac_objext` in
6896 *ELF-32*)
6897 HPUX_IA64_MODE="32"
6899 *ELF-64*)
6900 HPUX_IA64_MODE="64"
6902 esac
6904 rm -rf conftest*
6906 *-*-irix6*)
6907 # Find out which ABI we are using.
6908 echo '#line 6908 "configure"' > conftest.$ac_ext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910 (eval $ac_compile) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; then
6914 if test "$lt_cv_prog_gnu_ld" = yes; then
6915 case `/usr/bin/file conftest.$ac_objext` in
6916 *32-bit*)
6917 LD="${LD-ld} -melf32bsmip"
6919 *N32*)
6920 LD="${LD-ld} -melf32bmipn32"
6922 *64-bit*)
6923 LD="${LD-ld} -melf64bmip"
6925 esac
6926 else
6927 case `/usr/bin/file conftest.$ac_objext` in
6928 *32-bit*)
6929 LD="${LD-ld} -32"
6931 *N32*)
6932 LD="${LD-ld} -n32"
6934 *64-bit*)
6935 LD="${LD-ld} -64"
6937 esac
6940 rm -rf conftest*
6943 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6944 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6945 # Find out which ABI we are using.
6946 echo 'int i;' > conftest.$ac_ext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; then
6952 case `/usr/bin/file conftest.o` in
6953 *32-bit*)
6954 case $host in
6955 x86_64-*kfreebsd*-gnu)
6956 LD="${LD-ld} -m elf_i386_fbsd"
6958 x86_64-*linux*)
6959 LD="${LD-ld} -m elf_i386"
6961 ppc64-*linux*|powerpc64-*linux*)
6962 LD="${LD-ld} -m elf32ppclinux"
6964 s390x-*linux*)
6965 LD="${LD-ld} -m elf_s390"
6967 sparc64-*linux*)
6968 LD="${LD-ld} -m elf32_sparc"
6970 esac
6972 *64-bit*)
6973 case $host in
6974 x86_64-*kfreebsd*-gnu)
6975 LD="${LD-ld} -m elf_x86_64_fbsd"
6977 x86_64-*linux*)
6978 LD="${LD-ld} -m elf_x86_64"
6980 ppc*-*linux*|powerpc*-*linux*)
6981 LD="${LD-ld} -m elf64ppc"
6983 s390*-*linux*|s390*-*tpf*)
6984 LD="${LD-ld} -m elf64_s390"
6986 sparc*-*linux*)
6987 LD="${LD-ld} -m elf64_sparc"
6989 esac
6991 esac
6993 rm -rf conftest*
6996 *-*-sco3.2v5*)
6997 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6998 SAVE_CFLAGS="$CFLAGS"
6999 CFLAGS="$CFLAGS -belf"
7000 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7001 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7002 if test "${lt_cv_cc_needs_belf+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 if test x$gcc_no_link = xyes; then
7012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7014 { (exit 1); exit 1; }; }
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7024 main ()
7028 return 0;
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try='test -z "$ac_c_werror_flag"
7041 || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest$ac_exeext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 lt_cv_cc_needs_belf=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 lt_cv_cc_needs_belf=no
7060 rm -f conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062 ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7069 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7070 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7071 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7072 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7073 CFLAGS="$SAVE_CFLAGS"
7076 sparc*-*solaris*)
7077 # Find out which ABI we are using.
7078 echo 'int i;' > conftest.$ac_ext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080 (eval $ac_compile) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; then
7084 case `/usr/bin/file conftest.o` in
7085 *64-bit*)
7086 case $lt_cv_prog_gnu_ld in
7087 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7089 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7090 LD="${LD-ld} -64"
7093 esac
7095 esac
7097 rm -rf conftest*
7099 esac
7101 need_locks="$enable_libtool_lock"
7104 case $host_os in
7105 rhapsody* | darwin*)
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 if test -n "$DSYMUTIL"; then
7115 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7133 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7134 if test -n "$DSYMUTIL"; then
7135 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7136 echo "${ECHO_T}$DSYMUTIL" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7143 if test -z "$ac_cv_prog_DSYMUTIL"; then
7144 ac_ct_DSYMUTIL=$DSYMUTIL
7145 # Extract the first word of "dsymutil", so it can be a program name with args.
7146 set dummy dsymutil; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 if test -n "$ac_ct_DSYMUTIL"; then
7153 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7169 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7172 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7175 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7181 DSYMUTIL=$ac_ct_DSYMUTIL
7182 else
7183 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7189 echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 if test -n "$NMEDIT"; then
7195 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7208 done
7209 done
7213 NMEDIT=$ac_cv_prog_NMEDIT
7214 if test -n "$NMEDIT"; then
7215 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7216 echo "${ECHO_T}$NMEDIT" >&6
7217 else
7218 echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7223 if test -z "$ac_cv_prog_NMEDIT"; then
7224 ac_ct_NMEDIT=$NMEDIT
7225 # Extract the first word of "nmedit", so it can be a program name with args.
7226 set dummy nmedit; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 if test -n "$ac_ct_NMEDIT"; then
7233 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7246 done
7247 done
7249 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7252 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7253 if test -n "$ac_ct_NMEDIT"; then
7254 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7255 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7256 else
7257 echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7261 NMEDIT=$ac_ct_NMEDIT
7262 else
7263 NMEDIT="$ac_cv_prog_NMEDIT"
7266 if test -n "$ac_tool_prefix"; then
7267 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_LIPO+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 if test -n "$LIPO"; then
7275 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7288 done
7289 done
7293 LIPO=$ac_cv_prog_LIPO
7294 if test -n "$LIPO"; then
7295 echo "$as_me:$LINENO: result: $LIPO" >&5
7296 echo "${ECHO_T}$LIPO" >&6
7297 else
7298 echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7303 if test -z "$ac_cv_prog_LIPO"; then
7304 ac_ct_LIPO=$LIPO
7305 # Extract the first word of "lipo", so it can be a program name with args.
7306 set dummy lipo; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312 if test -n "$ac_ct_LIPO"; then
7313 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_ac_ct_LIPO="lipo"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7326 done
7327 done
7329 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7332 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7333 if test -n "$ac_ct_LIPO"; then
7334 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7335 echo "${ECHO_T}$ac_ct_LIPO" >&6
7336 else
7337 echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7341 LIPO=$ac_ct_LIPO
7342 else
7343 LIPO="$ac_cv_prog_LIPO"
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}otool; ac_word=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_OTOOL+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 if test -n "$OTOOL"; then
7355 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7373 OTOOL=$ac_cv_prog_OTOOL
7374 if test -n "$OTOOL"; then
7375 echo "$as_me:$LINENO: result: $OTOOL" >&5
7376 echo "${ECHO_T}$OTOOL" >&6
7377 else
7378 echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7383 if test -z "$ac_cv_prog_OTOOL"; then
7384 ac_ct_OTOOL=$OTOOL
7385 # Extract the first word of "otool", so it can be a program name with args.
7386 set dummy otool; ac_word=$2
7387 echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 if test -n "$ac_ct_OTOOL"; then
7393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_ac_ct_OTOOL="otool"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7406 done
7407 done
7409 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7412 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7413 if test -n "$ac_ct_OTOOL"; then
7414 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7415 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7421 OTOOL=$ac_ct_OTOOL
7422 else
7423 OTOOL="$ac_cv_prog_OTOOL"
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7429 echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7431 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 if test -n "$OTOOL64"; then
7435 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7448 done
7449 done
7453 OTOOL64=$ac_cv_prog_OTOOL64
7454 if test -n "$OTOOL64"; then
7455 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7456 echo "${ECHO_T}$OTOOL64" >&6
7457 else
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7463 if test -z "$ac_cv_prog_OTOOL64"; then
7464 ac_ct_OTOOL64=$OTOOL64
7465 # Extract the first word of "otool64", so it can be a program name with args.
7466 set dummy otool64; ac_word=$2
7467 echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 if test -n "$ac_ct_OTOOL64"; then
7473 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_ac_ct_OTOOL64="otool64"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7489 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7492 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7493 if test -n "$ac_ct_OTOOL64"; then
7494 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7495 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7501 OTOOL64=$ac_ct_OTOOL64
7502 else
7503 OTOOL64="$ac_cv_prog_OTOOL64"
7532 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7533 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7534 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 lt_cv_apple_cc_single_mod=no
7538 if test -z "${LT_MULTI_MODULE}"; then
7539 # By default we will add the -single_module flag. You can override
7540 # by either setting the environment variable LT_MULTI_MODULE
7541 # non-empty at configure time, or by adding -multi_module to the
7542 # link flags.
7543 rm -rf libconftest.dylib*
7544 echo "int foo(void){return 1;}" > conftest.c
7545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7546 -dynamiclib -Wl,-single_module conftest.c" >&5
7547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7549 _lt_result=$?
7550 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7551 lt_cv_apple_cc_single_mod=yes
7552 else
7553 cat conftest.err >&5
7555 rm -rf libconftest.dylib*
7556 rm -f conftest.*
7559 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7560 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7561 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7562 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7563 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566 lt_cv_ld_exported_symbols_list=no
7567 save_LDFLAGS=$LDFLAGS
7568 echo "_main" > conftest.sym
7569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7570 if test x$gcc_no_link = xyes; then
7571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7573 { (exit 1); exit 1; }; }
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7583 main ()
7587 return 0;
7589 _ACEOF
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592 (eval $ac_link) 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try='test -z "$ac_c_werror_flag"
7600 || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try='test -s conftest$ac_exeext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 lt_cv_ld_exported_symbols_list=yes
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 lt_cv_ld_exported_symbols_list=no
7619 rm -f conftest.err conftest.$ac_objext \
7620 conftest$ac_exeext conftest.$ac_ext
7621 LDFLAGS="$save_LDFLAGS"
7624 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7625 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7626 case $host_os in
7627 rhapsody* | darwin1.[012])
7628 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7629 darwin1.*)
7630 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7631 darwin*) # darwin 5.x on
7632 # if running on 10.5 or later, the deployment target defaults
7633 # to the OS version, if on x86, and 10.4, the deployment
7634 # target defaults to 10.4. Don't you love it?
7635 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7636 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7637 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7638 10.[012]*)
7639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7640 10.*)
7641 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7642 esac
7644 esac
7645 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7646 _lt_dar_single_mod='$single_module'
7648 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7649 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7650 else
7651 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7653 if test "$DSYMUTIL" != ":"; then
7654 _lt_dsymutil='~$DSYMUTIL $lib || :'
7655 else
7656 _lt_dsymutil=
7659 esac
7662 for ac_header in dlfcn.h
7664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7665 echo "$as_me:$LINENO: checking for $ac_header" >&5
7666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7676 $ac_includes_default
7678 #include <$ac_header>
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest.$ac_objext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 eval "$as_ac_Header=yes"
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 eval "$as_ac_Header=no"
7709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7714 cat >>confdefs.h <<_ACEOF
7715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7716 _ACEOF
7720 done
7724 # Set options
7728 enable_dlopen=no
7731 enable_win32_dll=no
7734 # Check whether --enable-shared or --disable-shared was given.
7735 if test "${enable_shared+set}" = set; then
7736 enableval="$enable_shared"
7737 p=${PACKAGE-default}
7738 case $enableval in
7739 yes) enable_shared=yes ;;
7740 no) enable_shared=no ;;
7742 enable_shared=no
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745 for pkg in $enableval; do
7746 IFS="$lt_save_ifs"
7747 if test "X$pkg" = "X$p"; then
7748 enable_shared=yes
7750 done
7751 IFS="$lt_save_ifs"
7753 esac
7754 else
7755 enable_shared=yes
7767 # Check whether --with-pic or --without-pic was given.
7768 if test "${with_pic+set}" = set; then
7769 withval="$with_pic"
7770 pic_mode="$withval"
7771 else
7772 pic_mode=default
7775 test -z "$pic_mode" && pic_mode=default
7783 # Check whether --enable-fast-install or --disable-fast-install was given.
7784 if test "${enable_fast_install+set}" = set; then
7785 enableval="$enable_fast_install"
7786 p=${PACKAGE-default}
7787 case $enableval in
7788 yes) enable_fast_install=yes ;;
7789 no) enable_fast_install=no ;;
7791 enable_fast_install=no
7792 # Look at the argument we got. We use all the common list separators.
7793 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7794 for pkg in $enableval; do
7795 IFS="$lt_save_ifs"
7796 if test "X$pkg" = "X$p"; then
7797 enable_fast_install=yes
7799 done
7800 IFS="$lt_save_ifs"
7802 esac
7803 else
7804 enable_fast_install=yes
7816 # This can be used to rebuild libtool when needed
7817 LIBTOOL_DEPS="$ltmain"
7819 # Always use our own libtool.
7820 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7846 test -z "$LN_S" && LN_S="ln -s"
7861 if test -n "${ZSH_VERSION+set}" ; then
7862 setopt NO_GLOB_SUBST
7865 echo "$as_me:$LINENO: checking for objdir" >&5
7866 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7867 if test "${lt_cv_objdir+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870 rm -f .libs 2>/dev/null
7871 mkdir .libs 2>/dev/null
7872 if test -d .libs; then
7873 lt_cv_objdir=.libs
7874 else
7875 # MS-DOS does not allow filenames that begin with a dot.
7876 lt_cv_objdir=_libs
7878 rmdir .libs 2>/dev/null
7880 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7881 echo "${ECHO_T}$lt_cv_objdir" >&6
7882 objdir=$lt_cv_objdir
7888 cat >>confdefs.h <<_ACEOF
7889 #define LT_OBJDIR "$lt_cv_objdir/"
7890 _ACEOF
7908 case $host_os in
7909 aix3*)
7910 # AIX sometimes has problems with the GCC collect2 program. For some
7911 # reason, if we set the COLLECT_NAMES environment variable, the problems
7912 # vanish in a puff of smoke.
7913 if test "X${COLLECT_NAMES+set}" != Xset; then
7914 COLLECT_NAMES=
7915 export COLLECT_NAMES
7918 esac
7920 # Sed substitution that helps us do robust quoting. It backslashifies
7921 # metacharacters that are still active within double-quoted strings.
7922 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7924 # Same as above, but do not quote variable references.
7925 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7927 # Sed substitution to delay expansion of an escaped shell variable in a
7928 # double_quote_subst'ed string.
7929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7931 # Sed substitution to delay expansion of an escaped single quote.
7932 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7934 # Sed substitution to avoid accidental globbing in evaled expressions
7935 no_glob_subst='s/\*/\\\*/g'
7937 # Global variables:
7938 ofile=libtool
7939 can_build_shared=yes
7941 # All known linkers require a `.a' archive for static linking (except MSVC,
7942 # which needs '.lib').
7943 libext=a
7945 with_gnu_ld="$lt_cv_prog_gnu_ld"
7947 old_CC="$CC"
7948 old_CFLAGS="$CFLAGS"
7950 # Set sane defaults for various variables
7951 test -z "$CC" && CC=cc
7952 test -z "$LTCC" && LTCC=$CC
7953 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7954 test -z "$LD" && LD=ld
7955 test -z "$ac_objext" && ac_objext=o
7957 for cc_temp in $compiler""; do
7958 case $cc_temp in
7959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7961 \-*) ;;
7962 *) break;;
7963 esac
7964 done
7965 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7968 # Only perform the check for file, if the check method requires it
7969 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7970 case $deplibs_check_method in
7971 file_magic*)
7972 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7973 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7974 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7975 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 case $MAGIC_CMD in
7979 [\\/*] | ?:[\\/]*)
7980 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7983 lt_save_MAGIC_CMD="$MAGIC_CMD"
7984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7986 for ac_dir in $ac_dummy; do
7987 IFS="$lt_save_ifs"
7988 test -z "$ac_dir" && ac_dir=.
7989 if test -f $ac_dir/${ac_tool_prefix}file; then
7990 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7991 if test -n "$file_magic_test_file"; then
7992 case $deplibs_check_method in
7993 "file_magic "*)
7994 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7997 $EGREP "$file_magic_regex" > /dev/null; then
7999 else
8000 cat <<_LT_EOF 1>&2
8002 *** Warning: the command libtool uses to detect shared libraries,
8003 *** $file_magic_cmd, produces output that libtool cannot recognize.
8004 *** The result is that libtool may fail to recognize shared libraries
8005 *** as such. This will affect the creation of libtool libraries that
8006 *** depend on shared libraries, but programs linked with such libtool
8007 *** libraries will work regardless of this problem. Nevertheless, you
8008 *** may want to report the problem to your system manager and/or to
8009 *** bug-libtool@gnu.org
8011 _LT_EOF
8012 fi ;;
8013 esac
8015 break
8017 done
8018 IFS="$lt_save_ifs"
8019 MAGIC_CMD="$lt_save_MAGIC_CMD"
8021 esac
8024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8025 if test -n "$MAGIC_CMD"; then
8026 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8027 echo "${ECHO_T}$MAGIC_CMD" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8037 if test -z "$lt_cv_path_MAGIC_CMD"; then
8038 if test -n "$ac_tool_prefix"; then
8039 echo "$as_me:$LINENO: checking for file" >&5
8040 echo $ECHO_N "checking for file... $ECHO_C" >&6
8041 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044 case $MAGIC_CMD in
8045 [\\/*] | ?:[\\/]*)
8046 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8049 lt_save_MAGIC_CMD="$MAGIC_CMD"
8050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8051 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8052 for ac_dir in $ac_dummy; do
8053 IFS="$lt_save_ifs"
8054 test -z "$ac_dir" && ac_dir=.
8055 if test -f $ac_dir/file; then
8056 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8057 if test -n "$file_magic_test_file"; then
8058 case $deplibs_check_method in
8059 "file_magic "*)
8060 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8062 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8063 $EGREP "$file_magic_regex" > /dev/null; then
8065 else
8066 cat <<_LT_EOF 1>&2
8068 *** Warning: the command libtool uses to detect shared libraries,
8069 *** $file_magic_cmd, produces output that libtool cannot recognize.
8070 *** The result is that libtool may fail to recognize shared libraries
8071 *** as such. This will affect the creation of libtool libraries that
8072 *** depend on shared libraries, but programs linked with such libtool
8073 *** libraries will work regardless of this problem. Nevertheless, you
8074 *** may want to report the problem to your system manager and/or to
8075 *** bug-libtool@gnu.org
8077 _LT_EOF
8078 fi ;;
8079 esac
8081 break
8083 done
8084 IFS="$lt_save_ifs"
8085 MAGIC_CMD="$lt_save_MAGIC_CMD"
8087 esac
8090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8091 if test -n "$MAGIC_CMD"; then
8092 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8093 echo "${ECHO_T}$MAGIC_CMD" >&6
8094 else
8095 echo "$as_me:$LINENO: result: no" >&5
8096 echo "${ECHO_T}no" >&6
8100 else
8101 MAGIC_CMD=:
8107 esac
8109 # Use C for the default configuration in the libtool script
8111 lt_save_CC="$CC"
8112 ac_ext=c
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 # Source file extension for C test sources.
8120 ac_ext=c
8122 # Object file extension for compiled C test sources.
8123 objext=o
8124 objext=$objext
8126 # Code to be used in simple compile tests
8127 lt_simple_compile_test_code="int some_variable = 0;"
8129 # Code to be used in simple link tests
8130 lt_simple_link_test_code='int main(){return(0);}'
8138 # If no C compiler was specified, use CC.
8139 LTCC=${LTCC-"$CC"}
8141 # If no C compiler flags were specified, use CFLAGS.
8142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8144 # Allow CC to be a program name with arguments.
8145 compiler=$CC
8147 # Save the default compiler, since it gets overwritten when the other
8148 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8149 compiler_DEFAULT=$CC
8151 # save warnings/boilerplate of simple test code
8152 ac_outfile=conftest.$ac_objext
8153 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8155 _lt_compiler_boilerplate=`cat conftest.err`
8156 $RM conftest*
8158 ac_outfile=conftest.$ac_objext
8159 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8161 _lt_linker_boilerplate=`cat conftest.err`
8162 $RM -r conftest*
8165 ## CAVEAT EMPTOR:
8166 ## There is no encapsulation within the following macros, do not change
8167 ## the running order or otherwise move them around unless you know exactly
8168 ## what you are doing...
8169 if test -n "$compiler"; then
8171 lt_prog_compiler_no_builtin_flag=
8173 if test "$GCC" = yes; then
8174 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8176 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181 lt_cv_prog_compiler_rtti_exceptions=no
8182 ac_outfile=conftest.$ac_objext
8183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8184 lt_compiler_flag="-fno-rtti -fno-exceptions"
8185 # Insert the option either (1) after the last *FLAGS variable, or
8186 # (2) before a word containing "conftest.", or (3) at the end.
8187 # Note that $ac_compile itself does not contain backslashes and begins
8188 # with a dollar sign (not a hyphen), so the echo should work correctly.
8189 # The option is referenced via a variable to avoid confusing sed.
8190 lt_compile=`echo "$ac_compile" | $SED \
8191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8193 -e 's:$: $lt_compiler_flag:'`
8194 (eval echo "\"\$as_me:8194: $lt_compile\"" >&5)
8195 (eval "$lt_compile" 2>conftest.err)
8196 ac_status=$?
8197 cat conftest.err >&5
8198 echo "$as_me:8198: \$? = $ac_status" >&5
8199 if (exit $ac_status) && test -s "$ac_outfile"; then
8200 # The compiler can only warn and ignore the option if not recognized
8201 # So say no if there are warnings other than the usual output.
8202 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8205 lt_cv_prog_compiler_rtti_exceptions=yes
8208 $RM conftest*
8211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8215 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8216 else
8227 lt_prog_compiler_wl=
8228 lt_prog_compiler_pic=
8229 lt_prog_compiler_static=
8231 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8232 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8234 if test "$GCC" = yes; then
8235 lt_prog_compiler_wl='-Wl,'
8236 lt_prog_compiler_static='-static'
8238 case $host_os in
8239 aix*)
8240 # All AIX code is PIC.
8241 if test "$host_cpu" = ia64; then
8242 # AIX 5 now supports IA64 processor
8243 lt_prog_compiler_static='-Bstatic'
8247 amigaos*)
8248 case $host_cpu in
8249 powerpc)
8250 # see comment about AmigaOS4 .so support
8251 lt_prog_compiler_pic='-fPIC'
8253 m68k)
8254 # FIXME: we need at least 68020 code to build shared libraries, but
8255 # adding the `-m68020' flag to GCC prevents building anything better,
8256 # like `-m68040'.
8257 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8259 esac
8262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8263 # PIC is the default for these OSes.
8266 mingw* | cygwin* | pw32* | os2* | cegcc*)
8267 # This hack is so that the source file can tell whether it is being
8268 # built for inclusion in a dll (and should export symbols for example).
8269 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8270 # (--disable-auto-import) libraries
8271 lt_prog_compiler_pic='-DDLL_EXPORT'
8274 darwin* | rhapsody*)
8275 # PIC is the default on this platform
8276 # Common symbols not allowed in MH_DYLIB files
8277 lt_prog_compiler_pic='-fno-common'
8280 hpux*)
8281 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8282 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8283 # sets the default TLS model and affects inlining.
8284 case $host_cpu in
8285 hppa*64*)
8286 # +Z the default
8289 lt_prog_compiler_pic='-fPIC'
8291 esac
8294 interix[3-9]*)
8295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8296 # Instead, we relocate shared libraries at runtime.
8299 msdosdjgpp*)
8300 # Just because we use GCC doesn't mean we suddenly get shared libraries
8301 # on systems that don't support them.
8302 lt_prog_compiler_can_build_shared=no
8303 enable_shared=no
8306 *nto* | *qnx*)
8307 # QNX uses GNU C++, but need to define -shared option too, otherwise
8308 # it will coredump.
8309 lt_prog_compiler_pic='-fPIC -shared'
8312 sysv4*MP*)
8313 if test -d /usr/nec; then
8314 lt_prog_compiler_pic=-Kconform_pic
8319 lt_prog_compiler_pic='-fPIC'
8321 esac
8322 else
8323 # PORTME Check for flag to pass linker flags through the system compiler.
8324 case $host_os in
8325 aix*)
8326 lt_prog_compiler_wl='-Wl,'
8327 if test "$host_cpu" = ia64; then
8328 # AIX 5 now supports IA64 processor
8329 lt_prog_compiler_static='-Bstatic'
8330 else
8331 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8335 mingw* | cygwin* | pw32* | os2* | cegcc*)
8336 # This hack is so that the source file can tell whether it is being
8337 # built for inclusion in a dll (and should export symbols for example).
8338 lt_prog_compiler_pic='-DDLL_EXPORT'
8341 hpux9* | hpux10* | hpux11*)
8342 lt_prog_compiler_wl='-Wl,'
8343 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8344 # not for PA HP-UX.
8345 case $host_cpu in
8346 hppa*64*|ia64*)
8347 # +Z the default
8350 lt_prog_compiler_pic='+Z'
8352 esac
8353 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8354 lt_prog_compiler_static='${wl}-a ${wl}archive'
8357 irix5* | irix6* | nonstopux*)
8358 lt_prog_compiler_wl='-Wl,'
8359 # PIC (with -KPIC) is the default.
8360 lt_prog_compiler_static='-non_shared'
8363 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8364 case $cc_basename in
8365 # old Intel for x86_64 which still supported -KPIC.
8366 ecc*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-static'
8371 # icc used to be incompatible with GCC.
8372 # ICC 10 doesn't accept -KPIC any more.
8373 icc* | ifort*)
8374 lt_prog_compiler_wl='-Wl,'
8375 lt_prog_compiler_pic='-fPIC'
8376 lt_prog_compiler_static='-static'
8378 # Lahey Fortran 8.1.
8379 lf95*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='--shared'
8382 lt_prog_compiler_static='--static'
8384 pgcc* | pgf77* | pgf90* | pgf95*)
8385 # Portland Group compilers (*not* the Pentium gcc compiler,
8386 # which looks to be a dead project)
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-fpic'
8389 lt_prog_compiler_static='-Bstatic'
8391 ccc*)
8392 lt_prog_compiler_wl='-Wl,'
8393 # All Alpha code is PIC.
8394 lt_prog_compiler_static='-non_shared'
8396 xl*)
8397 # IBM XL C 8.0/Fortran 10.1 on PPC
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-qpic'
8400 lt_prog_compiler_static='-qstaticlink'
8403 case `$CC -V 2>&1 | sed 5q` in
8404 *Sun\ C*)
8405 # Sun C 5.9
8406 lt_prog_compiler_pic='-KPIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 lt_prog_compiler_wl='-Wl,'
8410 *Sun\ F*)
8411 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 lt_prog_compiler_wl=''
8416 esac
8418 esac
8421 newsos6)
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8426 *nto* | *qnx*)
8427 # QNX uses GNU C++, but need to define -shared option too, otherwise
8428 # it will coredump.
8429 lt_prog_compiler_pic='-fPIC -shared'
8432 osf3* | osf4* | osf5*)
8433 lt_prog_compiler_wl='-Wl,'
8434 # All OSF/1 code is PIC.
8435 lt_prog_compiler_static='-non_shared'
8438 rdos*)
8439 lt_prog_compiler_static='-non_shared'
8442 solaris*)
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8445 case $cc_basename in
8446 f77* | f90* | f95*)
8447 lt_prog_compiler_wl='-Qoption ld ';;
8449 lt_prog_compiler_wl='-Wl,';;
8450 esac
8453 sunos4*)
8454 lt_prog_compiler_wl='-Qoption ld '
8455 lt_prog_compiler_pic='-PIC'
8456 lt_prog_compiler_static='-Bstatic'
8459 sysv4 | sysv4.2uw2* | sysv4.3*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-KPIC'
8462 lt_prog_compiler_static='-Bstatic'
8465 sysv4*MP*)
8466 if test -d /usr/nec ;then
8467 lt_prog_compiler_pic='-Kconform_pic'
8468 lt_prog_compiler_static='-Bstatic'
8472 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-KPIC'
8475 lt_prog_compiler_static='-Bstatic'
8478 unicos*)
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_can_build_shared=no
8483 uts4*)
8484 lt_prog_compiler_pic='-pic'
8485 lt_prog_compiler_static='-Bstatic'
8489 lt_prog_compiler_can_build_shared=no
8491 esac
8494 case $host_os in
8495 # For platforms which do not support PIC, -DPIC is meaningless:
8496 *djgpp*)
8497 lt_prog_compiler_pic=
8500 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8502 esac
8503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8504 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8512 # Check to make sure the PIC flag actually works.
8514 if test -n "$lt_prog_compiler_pic"; then
8515 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8516 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8517 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 lt_cv_prog_compiler_pic_works=no
8521 ac_outfile=conftest.$ac_objext
8522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8523 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8524 # Insert the option either (1) after the last *FLAGS variable, or
8525 # (2) before a word containing "conftest.", or (3) at the end.
8526 # Note that $ac_compile itself does not contain backslashes and begins
8527 # with a dollar sign (not a hyphen), so the echo should work correctly.
8528 # The option is referenced via a variable to avoid confusing sed.
8529 lt_compile=`echo "$ac_compile" | $SED \
8530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8532 -e 's:$: $lt_compiler_flag:'`
8533 (eval echo "\"\$as_me:8533: $lt_compile\"" >&5)
8534 (eval "$lt_compile" 2>conftest.err)
8535 ac_status=$?
8536 cat conftest.err >&5
8537 echo "$as_me:8537: \$? = $ac_status" >&5
8538 if (exit $ac_status) && test -s "$ac_outfile"; then
8539 # The compiler can only warn and ignore the option if not recognized
8540 # So say no if there are warnings other than the usual output.
8541 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8544 lt_cv_prog_compiler_pic_works=yes
8547 $RM conftest*
8550 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8551 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8553 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8554 case $lt_prog_compiler_pic in
8555 "" | " "*) ;;
8556 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8557 esac
8558 else
8559 lt_prog_compiler_pic=
8560 lt_prog_compiler_can_build_shared=no
8571 # Check to make sure the static flag actually works.
8573 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8574 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8575 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8576 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579 lt_cv_prog_compiler_static_works=no
8580 save_LDFLAGS="$LDFLAGS"
8581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8582 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8584 # The linker can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 if test -s conftest.err; then
8587 # Append any errors to the config.log.
8588 cat conftest.err 1>&5
8589 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8591 if diff conftest.exp conftest.er2 >/dev/null; then
8592 lt_cv_prog_compiler_static_works=yes
8594 else
8595 lt_cv_prog_compiler_static_works=yes
8598 $RM -r conftest*
8599 LDFLAGS="$save_LDFLAGS"
8602 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8603 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8605 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8607 else
8608 lt_prog_compiler_static=
8617 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8618 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8619 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 lt_cv_prog_compiler_c_o=no
8623 $RM -r conftest 2>/dev/null
8624 mkdir conftest
8625 cd conftest
8626 mkdir out
8627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8629 lt_compiler_flag="-o out/conftest2.$ac_objext"
8630 # Insert the option either (1) after the last *FLAGS variable, or
8631 # (2) before a word containing "conftest.", or (3) at the end.
8632 # Note that $ac_compile itself does not contain backslashes and begins
8633 # with a dollar sign (not a hyphen), so the echo should work correctly.
8634 lt_compile=`echo "$ac_compile" | $SED \
8635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637 -e 's:$: $lt_compiler_flag:'`
8638 (eval echo "\"\$as_me:8638: $lt_compile\"" >&5)
8639 (eval "$lt_compile" 2>out/conftest.err)
8640 ac_status=$?
8641 cat out/conftest.err >&5
8642 echo "$as_me:8642: \$? = $ac_status" >&5
8643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644 then
8645 # The compiler can only warn and ignore the option if not recognized
8646 # So say no if there are warnings
8647 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8650 lt_cv_prog_compiler_c_o=yes
8653 chmod u+w . 2>&5
8654 $RM conftest*
8655 # SGI C++ compiler will create directory out/ii_files/ for
8656 # template instantiation
8657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8658 $RM out/* && rmdir out
8659 cd ..
8660 $RM -r conftest
8661 $RM conftest*
8664 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8665 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8672 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8673 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8674 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677 lt_cv_prog_compiler_c_o=no
8678 $RM -r conftest 2>/dev/null
8679 mkdir conftest
8680 cd conftest
8681 mkdir out
8682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8684 lt_compiler_flag="-o out/conftest2.$ac_objext"
8685 # Insert the option either (1) after the last *FLAGS variable, or
8686 # (2) before a word containing "conftest.", or (3) at the end.
8687 # Note that $ac_compile itself does not contain backslashes and begins
8688 # with a dollar sign (not a hyphen), so the echo should work correctly.
8689 lt_compile=`echo "$ac_compile" | $SED \
8690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8692 -e 's:$: $lt_compiler_flag:'`
8693 (eval echo "\"\$as_me:8693: $lt_compile\"" >&5)
8694 (eval "$lt_compile" 2>out/conftest.err)
8695 ac_status=$?
8696 cat out/conftest.err >&5
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8699 then
8700 # The compiler can only warn and ignore the option if not recognized
8701 # So say no if there are warnings
8702 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8705 lt_cv_prog_compiler_c_o=yes
8708 chmod u+w . 2>&5
8709 $RM conftest*
8710 # SGI C++ compiler will create directory out/ii_files/ for
8711 # template instantiation
8712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8713 $RM out/* && rmdir out
8714 cd ..
8715 $RM -r conftest
8716 $RM conftest*
8719 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8720 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8725 hard_links="nottested"
8726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8727 # do not overwrite the value of need_locks provided by the user
8728 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8729 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8730 hard_links=yes
8731 $RM conftest*
8732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8733 touch conftest.a
8734 ln conftest.a conftest.b 2>&5 || hard_links=no
8735 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8736 echo "$as_me:$LINENO: result: $hard_links" >&5
8737 echo "${ECHO_T}$hard_links" >&6
8738 if test "$hard_links" = no; then
8739 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8740 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8741 need_locks=warn
8743 else
8744 need_locks=no
8752 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8755 runpath_var=
8756 allow_undefined_flag=
8757 always_export_symbols=no
8758 archive_cmds=
8759 archive_expsym_cmds=
8760 compiler_needs_object=no
8761 enable_shared_with_static_runtimes=no
8762 export_dynamic_flag_spec=
8763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8764 hardcode_automatic=no
8765 hardcode_direct=no
8766 hardcode_direct_absolute=no
8767 hardcode_libdir_flag_spec=
8768 hardcode_libdir_flag_spec_ld=
8769 hardcode_libdir_separator=
8770 hardcode_minus_L=no
8771 hardcode_shlibpath_var=unsupported
8772 inherit_rpath=no
8773 link_all_deplibs=unknown
8774 module_cmds=
8775 module_expsym_cmds=
8776 old_archive_from_new_cmds=
8777 old_archive_from_expsyms_cmds=
8778 thread_safe_flag_spec=
8779 whole_archive_flag_spec=
8780 # include_expsyms should be a list of space-separated symbols to be *always*
8781 # included in the symbol list
8782 include_expsyms=
8783 # exclude_expsyms can be an extended regexp of symbols to exclude
8784 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8785 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8786 # as well as any symbol that contains `d'.
8787 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8788 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8789 # platforms (ab)use it in PIC code, but their linkers get confused if
8790 # the symbol is explicitly referenced. Since portable code cannot
8791 # rely on this symbol name, it's probably fine to never include it in
8792 # preloaded symbol tables.
8793 # Exclude shared library initialization/finalization symbols.
8794 extract_expsyms_cmds=
8796 case $host_os in
8797 cygwin* | mingw* | pw32* | cegcc*)
8798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8799 # When not using gcc, we currently assume that we are using
8800 # Microsoft Visual C++.
8801 if test "$GCC" != yes; then
8802 with_gnu_ld=no
8805 interix*)
8806 # we just hope/assume this is gcc and not c89 (= MSVC++)
8807 with_gnu_ld=yes
8809 openbsd*)
8810 with_gnu_ld=no
8812 esac
8814 ld_shlibs=yes
8815 if test "$with_gnu_ld" = yes; then
8816 # If archive_cmds runs LD, not CC, wlarc should be empty
8817 wlarc='${wl}'
8819 # Set some defaults for GNU ld with shared library support. These
8820 # are reset later if shared libraries are not supported. Putting them
8821 # here allows them to be overridden if necessary.
8822 runpath_var=LD_RUN_PATH
8823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 export_dynamic_flag_spec='${wl}--export-dynamic'
8825 # ancient GNU ld didn't support --whole-archive et. al.
8826 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8827 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8828 else
8829 whole_archive_flag_spec=
8831 supports_anon_versioning=no
8832 case `$LD -v 2>&1` in
8833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8836 *\ 2.11.*) ;; # other 2.11 versions
8837 *) supports_anon_versioning=yes ;;
8838 esac
8840 # See if GNU ld supports shared libraries.
8841 case $host_os in
8842 aix[3-9]*)
8843 # On AIX/PPC, the GNU linker is very broken
8844 if test "$host_cpu" != ia64; then
8845 ld_shlibs=no
8846 cat <<_LT_EOF 1>&2
8848 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8849 *** to be unable to reliably create shared libraries on AIX.
8850 *** Therefore, libtool is disabling shared libraries support. If you
8851 *** really care for shared libraries, you may want to modify your PATH
8852 *** so that a non-GNU linker is found, and then restart.
8854 _LT_EOF
8858 amigaos*)
8859 case $host_cpu in
8860 powerpc)
8861 # see comment about AmigaOS4 .so support
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863 archive_expsym_cmds=''
8865 m68k)
8866 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8867 hardcode_libdir_flag_spec='-L$libdir'
8868 hardcode_minus_L=yes
8870 esac
8873 beos*)
8874 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8875 allow_undefined_flag=unsupported
8876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8877 # support --undefined. This deserves some investigation. FIXME
8878 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 else
8880 ld_shlibs=no
8884 cygwin* | mingw* | pw32* | cegcc*)
8885 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8886 # as there is no search path for DLLs.
8887 hardcode_libdir_flag_spec='-L$libdir'
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=no
8890 enable_shared_with_static_runtimes=yes
8891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895 # If the export-symbols file already is a .def file (1st line
8896 # is EXPORTS), use it as is; otherwise, prepend...
8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898 cp $export_symbols $output_objdir/$soname.def;
8899 else
8900 echo EXPORTS > $output_objdir/$soname.def;
8901 cat $export_symbols >> $output_objdir/$soname.def;
8903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904 else
8905 ld_shlibs=no
8909 interix[3-9]*)
8910 hardcode_direct=no
8911 hardcode_shlibpath_var=no
8912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913 export_dynamic_flag_spec='${wl}-E'
8914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915 # Instead, shared libraries are loaded at an image base (0x10000000 by
8916 # default) and relocated if they conflict, which is a slow very memory
8917 # consuming and fragmenting process. To avoid this, we pick a random,
8918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8925 tmp_diet=no
8926 if test "$host_os" = linux-dietlibc; then
8927 case $cc_basename in
8928 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8929 esac
8931 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8932 && test "$tmp_diet" = no
8933 then
8934 tmp_addflag=
8935 tmp_sharedflag='-shared'
8936 case $cc_basename,$host_cpu in
8937 pgcc*) # Portland Group C compiler
8938 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8939 tmp_addflag=' $pic_flag'
8941 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8942 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8943 tmp_addflag=' $pic_flag -Mnomain' ;;
8944 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8945 tmp_addflag=' -i_dynamic' ;;
8946 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8947 tmp_addflag=' -i_dynamic -nofor_main' ;;
8948 ifc* | ifort*) # Intel Fortran compiler
8949 tmp_addflag=' -nofor_main' ;;
8950 lf95*) # Lahey Fortran 8.1
8951 whole_archive_flag_spec=
8952 tmp_sharedflag='--shared' ;;
8953 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8954 tmp_sharedflag='-qmkshrobj'
8955 tmp_addflag= ;;
8956 esac
8957 case `$CC -V 2>&1 | sed 5q` in
8958 *Sun\ C*) # Sun C 5.9
8959 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8960 compiler_needs_object=yes
8961 tmp_sharedflag='-G' ;;
8962 *Sun\ F*) # Sun Fortran 8.3
8963 tmp_sharedflag='-G' ;;
8964 esac
8965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 if test "x$supports_anon_versioning" = xyes; then
8968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8974 case $cc_basename in
8975 xlf*)
8976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8978 hardcode_libdir_flag_spec=
8979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8980 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8981 if test "x$supports_anon_versioning" = xyes; then
8982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984 echo "local: *; };" >> $output_objdir/$libname.ver~
8985 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8988 esac
8989 else
8990 ld_shlibs=no
8994 netbsd*)
8995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8997 wlarc=
8998 else
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 solaris*)
9005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9010 *** create shared libraries on Solaris systems. Therefore, libtool
9011 *** is disabling shared libraries support. We urge you to upgrade GNU
9012 *** binutils to release 2.9.1 or newer. Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9016 _LT_EOF
9017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9026 case `$LD -v 2>&1` in
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9032 *** reliably create shared libraries on SCO systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9038 _LT_EOF
9041 # For security reasons, it is highly recommended that you always
9042 # use absolute paths for naming shared libraries, and exclude the
9043 # DT_RUNPATH tag from executables and libraries. But doing so
9044 # requires that you compile everything twice, which is a pain.
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9053 esac
9056 sunos4*)
9057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 wlarc=
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 else
9068 ld_shlibs=no
9071 esac
9073 if test "$ld_shlibs" = no; then
9074 runpath_var=
9075 hardcode_libdir_flag_spec=
9076 export_dynamic_flag_spec=
9077 whole_archive_flag_spec=
9079 else
9080 # PORTME fill in a description of your system's linker (not GNU ld)
9081 case $host_os in
9082 aix3*)
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=yes
9085 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9086 # Note: this linker hardcodes the directories in LIBPATH if there
9087 # are no directories specified by -L.
9088 hardcode_minus_L=yes
9089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9090 # Neither direct hardcoding nor static linking is supported with a
9091 # broken collect2.
9092 hardcode_direct=unsupported
9096 aix[4-9]*)
9097 if test "$host_cpu" = ia64; then
9098 # On IA64, the linker does run time linking by default, so we don't
9099 # have to do anything special.
9100 aix_use_runtimelinking=no
9101 exp_sym_flag='-Bexport'
9102 no_entry_flag=""
9103 else
9104 # If we're using GNU nm, then we don't want the "-C" option.
9105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9106 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9107 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9108 else
9109 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9111 aix_use_runtimelinking=no
9113 # Test if we are trying to use run time linking or normal
9114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9115 # need to do runtime linking.
9116 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9117 for ld_flag in $LDFLAGS; do
9118 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9119 aix_use_runtimelinking=yes
9120 break
9122 done
9124 esac
9126 exp_sym_flag='-bexport'
9127 no_entry_flag='-bnoentry'
9130 # When large executables or shared objects are built, AIX ld can
9131 # have problems creating the table of contents. If linking a library
9132 # or program results in "error TOC overflow" add -mminimal-toc to
9133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9136 archive_cmds=''
9137 hardcode_direct=yes
9138 hardcode_direct_absolute=yes
9139 hardcode_libdir_separator=':'
9140 link_all_deplibs=yes
9141 file_list_spec='${wl}-f,'
9143 if test "$GCC" = yes; then
9144 case $host_os in aix4.[012]|aix4.[012].*)
9145 # We only want to do this on AIX 4.2 and lower, the check
9146 # below for broken collect2 doesn't work under 4.3+
9147 collect2name=`${CC} -print-prog-name=collect2`
9148 if test -f "$collect2name" &&
9149 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9150 then
9151 # We have reworked collect2
9153 else
9154 # We have old collect2
9155 hardcode_direct=unsupported
9156 # It fails to find uninstalled libraries when the uninstalled
9157 # path is not listed in the libpath. Setting hardcode_minus_L
9158 # to unsupported forces relinking
9159 hardcode_minus_L=yes
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 hardcode_libdir_separator=
9164 esac
9165 shared_flag='-shared'
9166 if test "$aix_use_runtimelinking" = yes; then
9167 shared_flag="$shared_flag "'${wl}-G'
9169 else
9170 # not using gcc
9171 if test "$host_cpu" = ia64; then
9172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9173 # chokes on -Wl,-G. The following line is correct:
9174 shared_flag='-G'
9175 else
9176 if test "$aix_use_runtimelinking" = yes; then
9177 shared_flag='${wl}-G'
9178 else
9179 shared_flag='${wl}-bM:SRE'
9184 export_dynamic_flag_spec='${wl}-bexpall'
9185 # It seems that -bexpall does not export symbols beginning with
9186 # underscore (_), so it is better to generate a list of symbols to export.
9187 always_export_symbols=yes
9188 if test "$aix_use_runtimelinking" = yes; then
9189 # Warning - without using the other runtime loading flags (-brtl),
9190 # -berok will link without error, but may produce a broken library.
9191 allow_undefined_flag='-berok'
9192 # Determine the default libpath from the value encoded in an
9193 # empty executable.
9194 if test x$gcc_no_link = xyes; then
9195 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9197 { (exit 1); exit 1; }; }
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h. */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9207 main ()
9211 return 0;
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -z "$ac_c_werror_flag"
9224 || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9237 lt_aix_libpath_sed='
9238 /Import File Strings/,/^$/ {
9239 /^0/ {
9240 s/^0 *\(.*\)$/\1/
9244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245 # Check for a 64-bit object if we didn't find anything.
9246 if test -z "$aix_libpath"; then
9247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9254 rm -f conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9259 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9260 else
9261 if test "$host_cpu" = ia64; then
9262 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9263 allow_undefined_flag="-z nodefs"
9264 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9265 else
9266 # Determine the default libpath from the value encoded in an
9267 # empty executable.
9268 if test x$gcc_no_link = xyes; then
9269 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9271 { (exit 1); exit 1; }; }
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9281 main ()
9285 return 0;
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } &&
9297 { ac_try='test -z "$ac_c_werror_flag"
9298 || test ! -s conftest.err'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; } &&
9304 { ac_try='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9311 lt_aix_libpath_sed='
9312 /Import File Strings/,/^$/ {
9313 /^0/ {
9314 s/^0 *\(.*\)$/\1/
9318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9319 # Check for a 64-bit object if we didn't find anything.
9320 if test -z "$aix_libpath"; then
9321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9332 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9333 # Warning - without using the other run time loading flags,
9334 # -berok will link without error, but may produce a broken library.
9335 no_undefined_flag=' ${wl}-bernotok'
9336 allow_undefined_flag=' ${wl}-berok'
9337 # Exported symbols can be pulled into shared objects from archives
9338 whole_archive_flag_spec='$convenience'
9339 archive_cmds_need_lc=yes
9340 # This is similar to how AIX traditionally builds its shared libraries.
9341 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9346 amigaos*)
9347 case $host_cpu in
9348 powerpc)
9349 # see comment about AmigaOS4 .so support
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 archive_expsym_cmds=''
9353 m68k)
9354 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9358 esac
9361 bsdi[45]*)
9362 export_dynamic_flag_spec=-rdynamic
9365 cygwin* | mingw* | pw32* | cegcc*)
9366 # When not using gcc, we currently assume that we are using
9367 # Microsoft Visual C++.
9368 # hardcode_libdir_flag_spec is actually meaningless, as there is
9369 # no search path for DLLs.
9370 hardcode_libdir_flag_spec=' '
9371 allow_undefined_flag=unsupported
9372 # Tell ltmain to make .lib files, not .a files.
9373 libext=lib
9374 # Tell ltmain to make .dll files, not .so files.
9375 shrext_cmds=".dll"
9376 # FIXME: Setting linknames here is a bad hack.
9377 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9378 # The linker will automatically build a .lib file if we build a DLL.
9379 old_archive_from_new_cmds='true'
9380 # FIXME: Should let the user specify the lib program.
9381 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9382 fix_srcfile_path='`cygpath -w "$srcfile"`'
9383 enable_shared_with_static_runtimes=yes
9386 darwin* | rhapsody*)
9389 archive_cmds_need_lc=no
9390 hardcode_direct=no
9391 hardcode_automatic=yes
9392 hardcode_shlibpath_var=unsupported
9393 whole_archive_flag_spec=''
9394 link_all_deplibs=yes
9395 allow_undefined_flag="$_lt_dar_allow_undefined"
9396 case $cc_basename in
9397 ifort*) _lt_dar_can_shared=yes ;;
9398 *) _lt_dar_can_shared=$GCC ;;
9399 esac
9400 if test "$_lt_dar_can_shared" = "yes"; then
9401 output_verbose_link_cmd=echo
9402 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9403 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9404 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9405 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9407 else
9408 ld_shlibs=no
9413 dgux*)
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_shlibpath_var=no
9419 freebsd1*)
9420 ld_shlibs=no
9423 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9424 # support. Future versions do this automatically, but an explicit c++rt0.o
9425 # does not break anything, and helps significantly (at the cost of a little
9426 # extra space).
9427 freebsd2.2*)
9428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9429 hardcode_libdir_flag_spec='-R$libdir'
9430 hardcode_direct=yes
9431 hardcode_shlibpath_var=no
9434 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9435 freebsd2*)
9436 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_direct=yes
9438 hardcode_minus_L=yes
9439 hardcode_shlibpath_var=no
9442 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9443 freebsd* | dragonfly*)
9444 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9445 hardcode_libdir_flag_spec='-R$libdir'
9446 hardcode_direct=yes
9447 hardcode_shlibpath_var=no
9450 hpux9*)
9451 if test "$GCC" = yes; then
9452 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9453 else
9454 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457 hardcode_libdir_separator=:
9458 hardcode_direct=yes
9460 # hardcode_minus_L: Not really in the search PATH,
9461 # but as the default location of the library.
9462 hardcode_minus_L=yes
9463 export_dynamic_flag_spec='${wl}-E'
9466 hpux10*)
9467 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469 else
9470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9472 if test "$with_gnu_ld" = no; then
9473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474 hardcode_libdir_flag_spec_ld='+b $libdir'
9475 hardcode_libdir_separator=:
9476 hardcode_direct=yes
9477 hardcode_direct_absolute=yes
9478 export_dynamic_flag_spec='${wl}-E'
9479 # hardcode_minus_L: Not really in the search PATH,
9480 # but as the default location of the library.
9481 hardcode_minus_L=yes
9485 hpux11*)
9486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9487 case $host_cpu in
9488 hppa*64*)
9489 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 ia64*)
9492 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497 esac
9498 else
9499 case $host_cpu in
9500 hppa*64*)
9501 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 ia64*)
9504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509 esac
9511 if test "$with_gnu_ld" = no; then
9512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9513 hardcode_libdir_separator=:
9515 case $host_cpu in
9516 hppa*64*|ia64*)
9517 hardcode_direct=no
9518 hardcode_shlibpath_var=no
9521 hardcode_direct=yes
9522 hardcode_direct_absolute=yes
9523 export_dynamic_flag_spec='${wl}-E'
9525 # hardcode_minus_L: Not really in the search PATH,
9526 # but as the default location of the library.
9527 hardcode_minus_L=yes
9529 esac
9533 irix5* | irix6* | nonstopux*)
9534 if test "$GCC" = yes; then
9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9536 # Try to use the -exported_symbol ld option, if it does not
9537 # work, assume that -exports_file does not work either and
9538 # implicitly export all symbols.
9539 save_LDFLAGS="$LDFLAGS"
9540 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9541 if test x$gcc_no_link = xyes; then
9542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9544 { (exit 1); exit 1; }; }
9546 cat >conftest.$ac_ext <<_ACEOF
9547 int foo(void) {}
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag"
9559 || test ! -s conftest.err'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; } &&
9565 { ac_try='test -s conftest$ac_exeext'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; }; then
9571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9573 else
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9578 rm -f conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 LDFLAGS="$save_LDFLAGS"
9581 else
9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9585 archive_cmds_need_lc='no'
9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587 hardcode_libdir_separator=:
9588 inherit_rpath=yes
9589 link_all_deplibs=yes
9592 netbsd*)
9593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9595 else
9596 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9598 hardcode_libdir_flag_spec='-R$libdir'
9599 hardcode_direct=yes
9600 hardcode_shlibpath_var=no
9603 newsos6)
9604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_direct=yes
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 hardcode_libdir_separator=:
9608 hardcode_shlibpath_var=no
9611 *nto* | *qnx*)
9614 openbsd*)
9615 if test -f /usr/libexec/ld.so; then
9616 hardcode_direct=yes
9617 hardcode_shlibpath_var=no
9618 hardcode_direct_absolute=yes
9619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623 export_dynamic_flag_spec='${wl}-E'
9624 else
9625 case $host_os in
9626 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_libdir_flag_spec='-R$libdir'
9631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9634 esac
9636 else
9637 ld_shlibs=no
9641 os2*)
9642 hardcode_libdir_flag_spec='-L$libdir'
9643 hardcode_minus_L=yes
9644 allow_undefined_flag=unsupported
9645 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9646 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9649 osf3*)
9650 if test "$GCC" = yes; then
9651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9652 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9653 else
9654 allow_undefined_flag=' -expect_unresolved \*'
9655 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9657 archive_cmds_need_lc='no'
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659 hardcode_libdir_separator=:
9662 osf4* | osf5*) # as osf3* with the addition of -msym flag
9663 if test "$GCC" = yes; then
9664 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9665 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9667 else
9668 allow_undefined_flag=' -expect_unresolved \*'
9669 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9670 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9671 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9673 # Both c and cxx compiler support -rpath directly
9674 hardcode_libdir_flag_spec='-rpath $libdir'
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_separator=:
9680 solaris*)
9681 no_undefined_flag=' -z defs'
9682 if test "$GCC" = yes; then
9683 wlarc='${wl}'
9684 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9686 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9687 else
9688 case `$CC -V 2>&1` in
9689 *"Compilers 5.0"*)
9690 wlarc=''
9691 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9696 wlarc='${wl}'
9697 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9699 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9701 esac
9703 hardcode_libdir_flag_spec='-R$libdir'
9704 hardcode_shlibpath_var=no
9705 case $host_os in
9706 solaris2.[0-5] | solaris2.[0-5].*) ;;
9708 # The compiler driver will combine and reorder linker options,
9709 # but understands `-z linker_flag'. GCC discards it without `$wl',
9710 # but is careful enough not to reorder.
9711 # Supported since Solaris 2.6 (maybe 2.5.1?)
9712 if test "$GCC" = yes; then
9713 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9714 else
9715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9718 esac
9719 link_all_deplibs=yes
9722 sunos4*)
9723 if test "x$host_vendor" = xsequent; then
9724 # Use $CC to link under sequent, because it throws in some extra .o
9725 # files that make .init and .fini sections work.
9726 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9727 else
9728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_direct=yes
9732 hardcode_minus_L=yes
9733 hardcode_shlibpath_var=no
9736 sysv4)
9737 case $host_vendor in
9738 sni)
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes # is this really true???
9742 siemens)
9743 ## LD is ld it makes a PLAMLIB
9744 ## CC just makes a GrossModule.
9745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9746 reload_cmds='$CC -r -o $output$reload_objs'
9747 hardcode_direct=no
9749 motorola)
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9753 esac
9754 runpath_var='LD_RUN_PATH'
9755 hardcode_shlibpath_var=no
9758 sysv4.3*)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_shlibpath_var=no
9761 export_dynamic_flag_spec='-Bexport'
9764 sysv4*MP*)
9765 if test -d /usr/nec; then
9766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767 hardcode_shlibpath_var=no
9768 runpath_var=LD_RUN_PATH
9769 hardcode_runpath_var=yes
9770 ld_shlibs=yes
9774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9775 no_undefined_flag='${wl}-z,text'
9776 archive_cmds_need_lc=no
9777 hardcode_shlibpath_var=no
9778 runpath_var='LD_RUN_PATH'
9780 if test "$GCC" = yes; then
9781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 else
9784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 sysv5* | sco3.2v5* | sco5v6*)
9790 # Note: We can NOT use -z defs as we might desire, because we do not
9791 # link with -lc, and that would cause any symbols used from libc to
9792 # always be unresolved, which means just about no library would
9793 # ever link correctly. If we're not using GNU ld we use -z text
9794 # though, which does catch some bad symbols but isn't as heavy-handed
9795 # as -z defs.
9796 no_undefined_flag='${wl}-z,text'
9797 allow_undefined_flag='${wl}-z,nodefs'
9798 archive_cmds_need_lc=no
9799 hardcode_shlibpath_var=no
9800 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9801 hardcode_libdir_separator=':'
9802 link_all_deplibs=yes
9803 export_dynamic_flag_spec='${wl}-Bexport'
9804 runpath_var='LD_RUN_PATH'
9806 if test "$GCC" = yes; then
9807 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 uts4*)
9816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_shlibpath_var=no
9822 ld_shlibs=no
9824 esac
9826 if test x$host_vendor = xsni; then
9827 case $host in
9828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9829 export_dynamic_flag_spec='${wl}-Blargedynsym'
9831 esac
9835 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9836 echo "${ECHO_T}$ld_shlibs" >&6
9837 test "$ld_shlibs" = no && can_build_shared=no
9839 with_gnu_ld=$with_gnu_ld
9856 # Do we need to explicitly link libc?
9858 case "x$archive_cmds_need_lc" in
9859 x|xyes)
9860 # Assume -lc should be added
9861 archive_cmds_need_lc=yes
9863 if test "$enable_shared" = yes && test "$GCC" = yes; then
9864 case $archive_cmds in
9865 *'~'*)
9866 # FIXME: we may have to deal with multi-command sequences.
9868 '$CC '*)
9869 # Test whether the compiler implicitly links with -lc since on some
9870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9871 # to ld, don't add -lc before -lgcc.
9872 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9873 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9874 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877 $RM conftest*
9878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881 (eval $ac_compile) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } 2>conftest.err; then
9885 soname=conftest
9886 lib=conftest
9887 libobjs=conftest.$ac_objext
9888 deplibs=
9889 wl=$lt_prog_compiler_wl
9890 pic_flag=$lt_prog_compiler_pic
9891 compiler_flags=-v
9892 linker_flags=-v
9893 verstring=
9894 output_objdir=.
9895 libname=conftest
9896 lt_save_allow_undefined_flag=$allow_undefined_flag
9897 allow_undefined_flag=
9898 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9899 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }
9903 then
9904 lt_cv_archive_cmds_need_lc=no
9905 else
9906 lt_cv_archive_cmds_need_lc=yes
9908 allow_undefined_flag=$lt_save_allow_undefined_flag
9909 else
9910 cat conftest.err 1>&5
9912 $RM conftest*
9915 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9916 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9917 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9919 esac
9922 esac
10080 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10081 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10083 if test "$GCC" = yes; then
10084 case $host_os in
10085 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10086 *) lt_awk_arg="/^libraries:/" ;;
10087 esac
10088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10089 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10090 # if the path contains ";" then we assume it to be the separator
10091 # otherwise default to the standard path separator (i.e. ":") - it is
10092 # assumed that no part of a normal pathname contains ";" but that should
10093 # okay in the real world where ";" in dirpaths is itself problematic.
10094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10095 else
10096 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10098 # Ok, now we have the path, separated by spaces, we can step through it
10099 # and add multilib dir if necessary.
10100 lt_tmp_lt_search_path_spec=
10101 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10102 for lt_sys_path in $lt_search_path_spec; do
10103 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10105 else
10106 test -d "$lt_sys_path" && \
10107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10109 done
10110 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10111 BEGIN {RS=" "; FS="/|\n";} {
10112 lt_foo="";
10113 lt_count=0;
10114 for (lt_i = NF; lt_i > 0; lt_i--) {
10115 if ($lt_i != "" && $lt_i != ".") {
10116 if ($lt_i == "..") {
10117 lt_count++;
10118 } else {
10119 if (lt_count == 0) {
10120 lt_foo="/" $lt_i lt_foo;
10121 } else {
10122 lt_count--;
10127 if (lt_foo != "") { lt_freq[lt_foo]++; }
10128 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10130 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10131 else
10132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10134 library_names_spec=
10135 libname_spec='lib$name'
10136 soname_spec=
10137 shrext_cmds=".so"
10138 postinstall_cmds=
10139 postuninstall_cmds=
10140 finish_cmds=
10141 finish_eval=
10142 shlibpath_var=
10143 shlibpath_overrides_runpath=unknown
10144 version_type=none
10145 dynamic_linker="$host_os ld.so"
10146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10147 need_lib_prefix=unknown
10148 hardcode_into_libs=no
10150 # when you set need_version to no, make sure it does not cause -set_version
10151 # flags to be left without arguments
10152 need_version=unknown
10154 case $host_os in
10155 aix3*)
10156 version_type=linux
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10158 shlibpath_var=LIBPATH
10160 # AIX 3 has no versioning support, so we append a major version to the name.
10161 soname_spec='${libname}${release}${shared_ext}$major'
10164 aix[4-9]*)
10165 version_type=linux
10166 need_lib_prefix=no
10167 need_version=no
10168 hardcode_into_libs=yes
10169 if test "$host_cpu" = ia64; then
10170 # AIX 5 supports IA64
10171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 else
10174 # With GCC up to 2.95.x, collect2 would create an import file
10175 # for dependence libraries. The import file would start with
10176 # the line `#! .'. This would cause the generated library to
10177 # depend on `.', always an invalid library. This was fixed in
10178 # development snapshots of GCC prior to 3.0.
10179 case $host_os in
10180 aix4 | aix4.[01] | aix4.[01].*)
10181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10182 echo ' yes '
10183 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10185 else
10186 can_build_shared=no
10189 esac
10190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10191 # soname into executable. Probably we can add versioning support to
10192 # collect2, so additional links can be useful in future.
10193 if test "$aix_use_runtimelinking" = yes; then
10194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10195 # instead of lib<name>.a to let people know that these are not
10196 # typical AIX shared libraries.
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 else
10199 # We preserve .a as extension for shared libraries through AIX4.2
10200 # and later when we are not doing run time linking.
10201 library_names_spec='${libname}${release}.a $libname.a'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LIBPATH
10208 amigaos*)
10209 case $host_cpu in
10210 powerpc)
10211 # Since July 2007 AmigaOS4 officially supports .so libraries.
10212 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 m68k)
10216 library_names_spec='$libname.ixlibrary $libname.a'
10217 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10218 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10220 esac
10223 beos*)
10224 library_names_spec='${libname}${shared_ext}'
10225 dynamic_linker="$host_os ld.so"
10226 shlibpath_var=LIBRARY_PATH
10229 bsdi[45]*)
10230 version_type=linux
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10238 # the default ld.so.conf also contains /usr/contrib/lib and
10239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10240 # libtool to hard-code these into programs
10243 cygwin* | mingw* | pw32* | cegcc*)
10244 version_type=windows
10245 shrext_cmds=".dll"
10246 need_version=no
10247 need_lib_prefix=no
10249 case $GCC,$host_os in
10250 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10251 library_names_spec='$libname.dll.a'
10252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10253 postinstall_cmds='base_file=`basename \${file}`~
10254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10255 dldir=$destdir/`dirname \$dlpath`~
10256 test -d \$dldir || mkdir -p \$dldir~
10257 $install_prog $dir/$dlname \$dldir/$dlname~
10258 chmod a+x \$dldir/$dlname~
10259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10263 dlpath=$dir/\$dldll~
10264 $RM \$dlpath'
10265 shlibpath_overrides_runpath=yes
10267 case $host_os in
10268 cygwin*)
10269 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10270 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10271 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10273 mingw* | cegcc*)
10274 # MinGW DLLs use traditional 'lib' prefix
10275 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10276 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10278 # It is most probably a Windows format PATH printed by
10279 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10280 # path with ; separators, and with drive letters. We can handle the
10281 # drive letters (cygwin fileutils understands them), so leave them,
10282 # especially as we might pass files found there to a mingw objdump,
10283 # which wouldn't understand a cygwinified path. Ahh.
10284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10285 else
10286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10289 pw32*)
10290 # pw32 DLLs use 'pw' prefix rather than 'lib'
10291 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10293 esac
10297 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10299 esac
10300 dynamic_linker='Win32 ld.exe'
10301 # FIXME: first we should search . and the directory the executable is in
10302 shlibpath_var=PATH
10305 darwin* | rhapsody*)
10306 dynamic_linker="$host_os dyld"
10307 version_type=darwin
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10311 soname_spec='${libname}${release}${major}$shared_ext'
10312 shlibpath_overrides_runpath=yes
10313 shlibpath_var=DYLD_LIBRARY_PATH
10314 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10316 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10317 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10320 dgux*)
10321 version_type=linux
10322 need_lib_prefix=no
10323 need_version=no
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 shlibpath_var=LD_LIBRARY_PATH
10329 freebsd1*)
10330 dynamic_linker=no
10333 freebsd* | dragonfly*)
10334 # DragonFly does not have aout. When/if they implement a new
10335 # versioning mechanism, adjust this.
10336 if test -x /usr/bin/objformat; then
10337 objformat=`/usr/bin/objformat`
10338 else
10339 case $host_os in
10340 freebsd[123]*) objformat=aout ;;
10341 *) objformat=elf ;;
10342 esac
10344 version_type=freebsd-$objformat
10345 case $version_type in
10346 freebsd-elf*)
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10348 need_version=no
10349 need_lib_prefix=no
10351 freebsd-*)
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10353 need_version=yes
10355 esac
10356 shlibpath_var=LD_LIBRARY_PATH
10357 case $host_os in
10358 freebsd2*)
10359 shlibpath_overrides_runpath=yes
10361 freebsd3.[01]* | freebsdelf3.[01]*)
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10367 shlibpath_overrides_runpath=no
10368 hardcode_into_libs=yes
10370 *) # from 4.6 on, and DragonFly
10371 shlibpath_overrides_runpath=yes
10372 hardcode_into_libs=yes
10374 esac
10377 gnu*)
10378 version_type=linux
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 hardcode_into_libs=yes
10387 hpux9* | hpux10* | hpux11*)
10388 # Give a soname corresponding to the major version so that dld.sl refuses to
10389 # link against other versions.
10390 version_type=sunos
10391 need_lib_prefix=no
10392 need_version=no
10393 case $host_cpu in
10394 ia64*)
10395 shrext_cmds='.so'
10396 hardcode_into_libs=yes
10397 dynamic_linker="$host_os dld.so"
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 if test "X$HPUX_IA64_MODE" = X32; then
10403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10404 else
10405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10409 hppa*64*)
10410 shrext_cmds='.sl'
10411 hardcode_into_libs=yes
10412 dynamic_linker="$host_os dld.sl"
10413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10421 shrext_cmds='.sl'
10422 dynamic_linker="$host_os dld.sl"
10423 shlibpath_var=SHLIB_PATH
10424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10428 esac
10429 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10430 postinstall_cmds='chmod 555 $lib'
10433 interix[3-9]*)
10434 version_type=linux
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10445 irix5* | irix6* | nonstopux*)
10446 case $host_os in
10447 nonstopux*) version_type=nonstopux ;;
10449 if test "$lt_cv_prog_gnu_ld" = yes; then
10450 version_type=linux
10451 else
10452 version_type=irix
10453 fi ;;
10454 esac
10455 need_lib_prefix=no
10456 need_version=no
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10459 case $host_os in
10460 irix5* | nonstopux*)
10461 libsuff= shlibsuff=
10464 case $LD in # libtool.m4 will add one of these switches to LD
10465 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10466 libsuff= shlibsuff= libmagic=32-bit;;
10467 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10468 libsuff=32 shlibsuff=N32 libmagic=N32;;
10469 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10470 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10471 *) libsuff= shlibsuff= libmagic=never-match;;
10472 esac
10474 esac
10475 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10476 shlibpath_overrides_runpath=no
10477 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10478 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10479 hardcode_into_libs=yes
10482 # No shared lib support for Linux oldld, aout, or coff.
10483 linux*oldld* | linux*aout* | linux*coff*)
10484 dynamic_linker=no
10487 # This must be Linux ELF.
10488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10489 version_type=linux
10490 need_lib_prefix=no
10491 need_version=no
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=no
10498 # Some binutils ld are patched to set DT_RUNPATH
10499 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502 lt_cv_shlibpath_overrides_runpath=no
10503 save_LDFLAGS=$LDFLAGS
10504 save_libdir=$libdir
10505 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10506 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10507 if test x$gcc_no_link = xyes; then
10508 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10510 { (exit 1); exit 1; }; }
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h. */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10520 main ()
10524 return 0;
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529 (eval $ac_link) 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag"
10537 || test ! -s conftest.err'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest$ac_exeext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10550 lt_cv_shlibpath_overrides_runpath=yes
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10558 rm -f conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LDFLAGS=$save_LDFLAGS
10561 libdir=$save_libdir
10565 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10567 # This implies no fast_install, which is unacceptable.
10568 # Some rework will be needed to allow for fast_install
10569 # before this can be enabled.
10570 hardcode_into_libs=yes
10572 # Append ld.so.conf contents to the search path
10573 if test -f /etc/ld.so.conf; then
10574 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10575 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10578 # We used to test for /lib/ld.so.1 and disable shared libraries on
10579 # powerpc, because MkLinux only supported shared libraries with the
10580 # GNU dynamic linker. Since this was broken with cross compilers,
10581 # most powerpc-linux boxes support dynamic linking these days and
10582 # people can always --disable-shared, the test was removed, and we
10583 # assume the GNU/Linux dynamic linker is in use.
10584 dynamic_linker='GNU/Linux ld.so'
10587 netbsd*)
10588 version_type=sunos
10589 need_lib_prefix=no
10590 need_version=no
10591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10594 dynamic_linker='NetBSD (a.out) ld.so'
10595 else
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 dynamic_linker='NetBSD ld.elf_so'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 hardcode_into_libs=yes
10605 newsos6)
10606 version_type=linux
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10612 *nto* | *qnx*)
10613 version_type=qnx
10614 need_lib_prefix=no
10615 need_version=no
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=no
10620 hardcode_into_libs=yes
10621 dynamic_linker='ldqnx.so'
10624 openbsd*)
10625 version_type=sunos
10626 sys_lib_dlsearch_path_spec="/usr/lib"
10627 need_lib_prefix=no
10628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10629 case $host_os in
10630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10631 *) need_version=no ;;
10632 esac
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10637 case $host_os in
10638 openbsd2.[89] | openbsd2.[89].*)
10639 shlibpath_overrides_runpath=no
10642 shlibpath_overrides_runpath=yes
10644 esac
10645 else
10646 shlibpath_overrides_runpath=yes
10650 os2*)
10651 libname_spec='$name'
10652 shrext_cmds=".dll"
10653 need_lib_prefix=no
10654 library_names_spec='$libname${shared_ext} $libname.a'
10655 dynamic_linker='OS/2 ld.exe'
10656 shlibpath_var=LIBPATH
10659 osf3* | osf4* | osf5*)
10660 version_type=osf
10661 need_lib_prefix=no
10662 need_version=no
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10670 rdos*)
10671 dynamic_linker=no
10674 solaris*)
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=yes
10682 hardcode_into_libs=yes
10683 # ldd complains unless libraries are executable
10684 postinstall_cmds='chmod +x $lib'
10687 sunos4*)
10688 version_type=sunos
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes
10693 if test "$with_gnu_ld" = yes; then
10694 need_lib_prefix=no
10696 need_version=yes
10699 sysv4 | sysv4.3*)
10700 version_type=linux
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 case $host_vendor in
10705 sni)
10706 shlibpath_overrides_runpath=no
10707 need_lib_prefix=no
10708 runpath_var=LD_RUN_PATH
10710 siemens)
10711 need_lib_prefix=no
10713 motorola)
10714 need_lib_prefix=no
10715 need_version=no
10716 shlibpath_overrides_runpath=no
10717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10719 esac
10722 sysv4*MP*)
10723 if test -d /usr/nec ;then
10724 version_type=linux
10725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10726 soname_spec='$libname${shared_ext}.$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10732 version_type=freebsd-elf
10733 need_lib_prefix=no
10734 need_version=no
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=yes
10739 hardcode_into_libs=yes
10740 if test "$with_gnu_ld" = yes; then
10741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10742 else
10743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10744 case $host_os in
10745 sco3.2v5*)
10746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10748 esac
10750 sys_lib_dlsearch_path_spec='/usr/lib'
10753 tpf*)
10754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10764 uts4*)
10765 version_type=linux
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10772 dynamic_linker=no
10774 esac
10775 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10776 echo "${ECHO_T}$dynamic_linker" >&6
10777 test "$dynamic_linker" = no && can_build_shared=no
10779 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10780 if test "$GCC" = yes; then
10781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10784 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10787 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10877 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10878 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10879 hardcode_action=
10880 if test -n "$hardcode_libdir_flag_spec" ||
10881 test -n "$runpath_var" ||
10882 test "X$hardcode_automatic" = "Xyes" ; then
10884 # We can hardcode non-existent directories.
10885 if test "$hardcode_direct" != no &&
10886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10887 # have to relink, otherwise we might link with an installed library
10888 # when we should be linking with a yet-to-be-installed one
10889 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10890 test "$hardcode_minus_L" != no; then
10891 # Linking always hardcodes the temporary library directory.
10892 hardcode_action=relink
10893 else
10894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10895 hardcode_action=immediate
10897 else
10898 # We cannot hardcode anything, or else we can only hardcode existing
10899 # directories.
10900 hardcode_action=unsupported
10902 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10903 echo "${ECHO_T}$hardcode_action" >&6
10905 if test "$hardcode_action" = relink ||
10906 test "$inherit_rpath" = yes; then
10907 # Fast installation is not supported
10908 enable_fast_install=no
10909 elif test "$shlibpath_overrides_runpath" = yes ||
10910 test "$enable_shared" = no; then
10911 # Fast installation is not necessary
10912 enable_fast_install=needless
10920 if test "x$enable_dlopen" != xyes; then
10921 enable_dlopen=unknown
10922 enable_dlopen_self=unknown
10923 enable_dlopen_self_static=unknown
10924 else
10925 lt_cv_dlopen=no
10926 lt_cv_dlopen_libs=
10928 case $host_os in
10929 beos*)
10930 lt_cv_dlopen="load_add_on"
10931 lt_cv_dlopen_libs=
10932 lt_cv_dlopen_self=yes
10935 mingw* | pw32* | cegcc*)
10936 lt_cv_dlopen="LoadLibrary"
10937 lt_cv_dlopen_libs=
10940 cygwin*)
10941 lt_cv_dlopen="dlopen"
10942 lt_cv_dlopen_libs=
10945 darwin*)
10946 # if libdl is installed we need to link against it
10947 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10948 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-ldl $LIBS"
10954 if test x$gcc_no_link = xyes; then
10955 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10957 { (exit 1); exit 1; }; }
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10966 /* Override any gcc2 internal prototype to avoid an error. */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 /* We use char because int might match the return type of a gcc2
10971 builtin and then its argument prototype would still apply. */
10972 char dlopen ();
10974 main ()
10976 dlopen ();
10978 return 0;
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983 (eval $ac_link) 2>conftest.er1
10984 ac_status=$?
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_c_werror_flag"
10991 || test ! -s conftest.err'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_lib_dl_dlopen=yes
11004 else
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_cv_lib_dl_dlopen=no
11010 rm -f conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11014 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11015 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11016 if test $ac_cv_lib_dl_dlopen = yes; then
11017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11018 else
11020 lt_cv_dlopen="dyld"
11021 lt_cv_dlopen_libs=
11022 lt_cv_dlopen_self=yes
11029 echo "$as_me:$LINENO: checking for shl_load" >&5
11030 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11031 if test "${ac_cv_func_shl_load+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 if test x$gcc_no_link = xyes; then
11035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11037 { (exit 1); exit 1; }; }
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11047 #define shl_load innocuous_shl_load
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char shl_load (); below.
11051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052 <limits.h> exists even on freestanding compilers. */
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11060 #undef shl_load
11062 /* Override any gcc2 internal prototype to avoid an error. */
11063 #ifdef __cplusplus
11064 extern "C"
11066 #endif
11067 /* We use char because int might match the return type of a gcc2
11068 builtin and then its argument prototype would still apply. */
11069 char shl_load ();
11070 /* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
11073 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11074 choke me
11075 #else
11076 char (*f) () = shl_load;
11077 #endif
11078 #ifdef __cplusplus
11080 #endif
11083 main ()
11085 return f != shl_load;
11087 return 0;
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag"
11100 || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest$ac_exeext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 ac_cv_func_shl_load=yes
11113 else
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_cv_func_shl_load=no
11119 rm -f conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11122 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11123 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11124 if test $ac_cv_func_shl_load = yes; then
11125 lt_cv_dlopen="shl_load"
11126 else
11127 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11128 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11129 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 ac_check_lib_save_LIBS=$LIBS
11133 LIBS="-ldld $LIBS"
11134 if test x$gcc_no_link = xyes; then
11135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11137 { (exit 1); exit 1; }; }
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11146 /* Override any gcc2 internal prototype to avoid an error. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11152 char shl_load ();
11154 main ()
11156 shl_load ();
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag"
11171 || test ! -s conftest.err'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_lib_dld_shl_load=yes
11184 else
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_cv_lib_dld_shl_load=no
11190 rm -f conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_lib_save_LIBS
11194 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11195 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11196 if test $ac_cv_lib_dld_shl_load = yes; then
11197 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11198 else
11199 echo "$as_me:$LINENO: checking for dlopen" >&5
11200 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11201 if test "${ac_cv_func_dlopen+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204 if test x$gcc_no_link = xyes; then
11205 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11207 { (exit 1); exit 1; }; }
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11217 #define dlopen innocuous_dlopen
11219 /* System header to define __stub macros and hopefully few prototypes,
11220 which can conflict with char dlopen (); below.
11221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11222 <limits.h> exists even on freestanding compilers. */
11224 #ifdef __STDC__
11225 # include <limits.h>
11226 #else
11227 # include <assert.h>
11228 #endif
11230 #undef dlopen
11232 /* Override any gcc2 internal prototype to avoid an error. */
11233 #ifdef __cplusplus
11234 extern "C"
11236 #endif
11237 /* We use char because int might match the return type of a gcc2
11238 builtin and then its argument prototype would still apply. */
11239 char dlopen ();
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11244 choke me
11245 #else
11246 char (*f) () = dlopen;
11247 #endif
11248 #ifdef __cplusplus
11250 #endif
11253 main ()
11255 return f != dlopen;
11257 return 0;
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_func_dlopen=yes
11283 else
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_func_dlopen=no
11289 rm -f conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11293 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11294 if test $ac_cv_func_dlopen = yes; then
11295 lt_cv_dlopen="dlopen"
11296 else
11297 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11298 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302 ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-ldl $LIBS"
11304 if test x$gcc_no_link = xyes; then
11305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11307 { (exit 1); exit 1; }; }
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322 char dlopen ();
11324 main ()
11326 dlopen ();
11328 return 0;
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag"
11341 || test ! -s conftest.err'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest$ac_exeext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_cv_lib_dl_dlopen=yes
11354 else
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_lib_dl_dlopen=no
11360 rm -f conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11364 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11365 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11366 if test $ac_cv_lib_dl_dlopen = yes; then
11367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11368 else
11369 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11370 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11371 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-lsvld $LIBS"
11376 if test x$gcc_no_link = xyes; then
11377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11379 { (exit 1); exit 1; }; }
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h. */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11388 /* Override any gcc2 internal prototype to avoid an error. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11394 char dlopen ();
11396 main ()
11398 dlopen ();
11400 return 0;
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag"
11413 || test ! -s conftest.err'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; } &&
11419 { ac_try='test -s conftest$ac_exeext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_lib_svld_dlopen=yes
11426 else
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_lib_svld_dlopen=no
11432 rm -f conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11436 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11437 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11438 if test $ac_cv_lib_svld_dlopen = yes; then
11439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11440 else
11441 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11442 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11443 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-ldld $LIBS"
11448 if test x$gcc_no_link = xyes; then
11449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11451 { (exit 1); exit 1; }; }
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h. */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11460 /* Override any gcc2 internal prototype to avoid an error. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 /* We use char because int might match the return type of a gcc2
11465 builtin and then its argument prototype would still apply. */
11466 char dld_link ();
11468 main ()
11470 dld_link ();
11472 return 0;
11474 _ACEOF
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477 (eval $ac_link) 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_c_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_lib_dld_dld_link=yes
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 ac_cv_lib_dld_dld_link=no
11504 rm -f conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11509 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11510 if test $ac_cv_lib_dld_dld_link = yes; then
11511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11530 esac
11532 if test "x$lt_cv_dlopen" != xno; then
11533 enable_dlopen=yes
11534 else
11535 enable_dlopen=no
11538 case $lt_cv_dlopen in
11539 dlopen)
11540 save_CPPFLAGS="$CPPFLAGS"
11541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11543 save_LDFLAGS="$LDFLAGS"
11544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11546 save_LIBS="$LIBS"
11547 LIBS="$lt_cv_dlopen_libs $LIBS"
11549 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11550 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11551 if test "${lt_cv_dlopen_self+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554 if test "$cross_compiling" = yes; then :
11555 lt_cv_dlopen_self=cross
11556 else
11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558 lt_status=$lt_dlunknown
11559 cat > conftest.$ac_ext <<_LT_EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11563 #if HAVE_DLFCN_H
11564 #include <dlfcn.h>
11565 #endif
11567 #include <stdio.h>
11569 #ifdef RTLD_GLOBAL
11570 # define LT_DLGLOBAL RTLD_GLOBAL
11571 #else
11572 # ifdef DL_GLOBAL
11573 # define LT_DLGLOBAL DL_GLOBAL
11574 # else
11575 # define LT_DLGLOBAL 0
11576 # endif
11577 #endif
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580 find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11582 # ifdef RTLD_LAZY
11583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11584 # else
11585 # ifdef DL_LAZY
11586 # define LT_DLLAZY_OR_NOW DL_LAZY
11587 # else
11588 # ifdef RTLD_NOW
11589 # define LT_DLLAZY_OR_NOW RTLD_NOW
11590 # else
11591 # ifdef DL_NOW
11592 # define LT_DLLAZY_OR_NOW DL_NOW
11593 # else
11594 # define LT_DLLAZY_OR_NOW 0
11595 # endif
11596 # endif
11597 # endif
11598 # endif
11599 #endif
11601 void fnord() { int i=42;}
11602 int main ()
11604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11605 int status = $lt_dlunknown;
11607 if (self)
11609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11610 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11611 /* dlclose (self); */
11613 else
11614 puts (dlerror ());
11616 return status;
11618 _LT_EOF
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11624 (./conftest; exit; ) >&5 2>/dev/null
11625 lt_status=$?
11626 case x$lt_status in
11627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11630 esac
11631 else :
11632 # compilation failed
11633 lt_cv_dlopen_self=no
11636 rm -fr conftest*
11640 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11641 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11643 if test "x$lt_cv_dlopen_self" = xyes; then
11644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11645 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11646 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11647 if test "${lt_cv_dlopen_self_static+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650 if test "$cross_compiling" = yes; then :
11651 lt_cv_dlopen_self_static=cross
11652 else
11653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11654 lt_status=$lt_dlunknown
11655 cat > conftest.$ac_ext <<_LT_EOF
11656 #line 11656 "configure"
11657 #include "confdefs.h"
11659 #if HAVE_DLFCN_H
11660 #include <dlfcn.h>
11661 #endif
11663 #include <stdio.h>
11665 #ifdef RTLD_GLOBAL
11666 # define LT_DLGLOBAL RTLD_GLOBAL
11667 #else
11668 # ifdef DL_GLOBAL
11669 # define LT_DLGLOBAL DL_GLOBAL
11670 # else
11671 # define LT_DLGLOBAL 0
11672 # endif
11673 #endif
11675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676 find out it does not work in some platform. */
11677 #ifndef LT_DLLAZY_OR_NOW
11678 # ifdef RTLD_LAZY
11679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11680 # else
11681 # ifdef DL_LAZY
11682 # define LT_DLLAZY_OR_NOW DL_LAZY
11683 # else
11684 # ifdef RTLD_NOW
11685 # define LT_DLLAZY_OR_NOW RTLD_NOW
11686 # else
11687 # ifdef DL_NOW
11688 # define LT_DLLAZY_OR_NOW DL_NOW
11689 # else
11690 # define LT_DLLAZY_OR_NOW 0
11691 # endif
11692 # endif
11693 # endif
11694 # endif
11695 #endif
11697 void fnord() { int i=42;}
11698 int main ()
11700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11701 int status = $lt_dlunknown;
11703 if (self)
11705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11706 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11707 /* dlclose (self); */
11709 else
11710 puts (dlerror ());
11712 return status;
11714 _LT_EOF
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11720 (./conftest; exit; ) >&5 2>/dev/null
11721 lt_status=$?
11722 case x$lt_status in
11723 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11724 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11725 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11726 esac
11727 else :
11728 # compilation failed
11729 lt_cv_dlopen_self_static=no
11732 rm -fr conftest*
11736 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11737 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11740 CPPFLAGS="$save_CPPFLAGS"
11741 LDFLAGS="$save_LDFLAGS"
11742 LIBS="$save_LIBS"
11744 esac
11746 case $lt_cv_dlopen_self in
11747 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11748 *) enable_dlopen_self=unknown ;;
11749 esac
11751 case $lt_cv_dlopen_self_static in
11752 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11753 *) enable_dlopen_self_static=unknown ;;
11754 esac
11773 striplib=
11774 old_striplib=
11775 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11776 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11777 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11778 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11779 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11780 echo "$as_me:$LINENO: result: yes" >&5
11781 echo "${ECHO_T}yes" >&6
11782 else
11783 # FIXME - insert some real tests, host_os isn't really good enough
11784 case $host_os in
11785 darwin*)
11786 if test -n "$STRIP" ; then
11787 striplib="$STRIP -x"
11788 old_striplib="$STRIP -S"
11789 echo "$as_me:$LINENO: result: yes" >&5
11790 echo "${ECHO_T}yes" >&6
11791 else
11792 echo "$as_me:$LINENO: result: no" >&5
11793 echo "${ECHO_T}no" >&6
11797 echo "$as_me:$LINENO: result: no" >&5
11798 echo "${ECHO_T}no" >&6
11800 esac
11814 # Report which library types will actually be built
11815 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11817 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11818 echo "${ECHO_T}$can_build_shared" >&6
11820 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11822 test "$can_build_shared" = "no" && enable_shared=no
11824 # On AIX, shared libraries and static libraries use the same namespace, and
11825 # are all built from PIC.
11826 case $host_os in
11827 aix3*)
11828 test "$enable_shared" = yes && enable_static=no
11829 if test -n "$RANLIB"; then
11830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11831 postinstall_cmds='$RANLIB $lib'
11835 aix[4-9]*)
11836 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11837 test "$enable_shared" = yes && enable_static=no
11840 esac
11841 echo "$as_me:$LINENO: result: $enable_shared" >&5
11842 echo "${ECHO_T}$enable_shared" >&6
11844 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11846 # Make sure either enable_shared or enable_static is yes.
11847 test "$enable_shared" = yes || enable_static=yes
11848 echo "$as_me:$LINENO: result: $enable_static" >&5
11849 echo "${ECHO_T}$enable_static" >&6
11855 ac_ext=c
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11861 CC="$lt_save_CC"
11875 ac_config_commands="$ac_config_commands libtool"
11880 # Only expand once:
11883 for ac_prog in gawk mawk nawk awk
11885 # Extract the first word of "$ac_prog", so it can be a program name with args.
11886 set dummy $ac_prog; ac_word=$2
11887 echo "$as_me:$LINENO: checking for $ac_word" >&5
11888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11889 if test "${ac_cv_prog_AWK+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 if test -n "$AWK"; then
11893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11898 IFS=$as_save_IFS
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902 ac_cv_prog_AWK="$ac_prog"
11903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 break 2
11906 done
11907 done
11911 AWK=$ac_cv_prog_AWK
11912 if test -n "$AWK"; then
11913 echo "$as_me:$LINENO: result: $AWK" >&5
11914 echo "${ECHO_T}$AWK" >&6
11915 else
11916 echo "$as_me:$LINENO: result: no" >&5
11917 echo "${ECHO_T}no" >&6
11920 test -n "$AWK" && break
11921 done
11923 ac_ext=c
11924 ac_cpp='$CPP $CPPFLAGS'
11925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928 if test -n "$ac_tool_prefix"; then
11929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11931 echo "$as_me:$LINENO: checking for $ac_word" >&5
11932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11933 if test "${ac_cv_prog_CC+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 if test -n "$CC"; then
11937 ac_cv_prog_CC="$CC" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11950 done
11951 done
11955 CC=$ac_cv_prog_CC
11956 if test -n "$CC"; then
11957 echo "$as_me:$LINENO: result: $CC" >&5
11958 echo "${ECHO_T}$CC" >&6
11959 else
11960 echo "$as_me:$LINENO: result: no" >&5
11961 echo "${ECHO_T}no" >&6
11965 if test -z "$ac_cv_prog_CC"; then
11966 ac_ct_CC=$CC
11967 # Extract the first word of "gcc", so it can be a program name with args.
11968 set dummy gcc; ac_word=$2
11969 echo "$as_me:$LINENO: checking for $ac_word" >&5
11970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 if test -n "$ac_ct_CC"; then
11975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11976 else
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $PATH
11980 IFS=$as_save_IFS
11981 test -z "$as_dir" && as_dir=.
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11984 ac_cv_prog_ac_ct_CC="gcc"
11985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 break 2
11988 done
11989 done
11993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11994 if test -n "$ac_ct_CC"; then
11995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11996 echo "${ECHO_T}$ac_ct_CC" >&6
11997 else
11998 echo "$as_me:$LINENO: result: no" >&5
11999 echo "${ECHO_T}no" >&6
12002 CC=$ac_ct_CC
12003 else
12004 CC="$ac_cv_prog_CC"
12007 if test -z "$CC"; then
12008 if test -n "$ac_tool_prefix"; then
12009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12010 set dummy ${ac_tool_prefix}cc; ac_word=$2
12011 echo "$as_me:$LINENO: checking for $ac_word" >&5
12012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12013 if test "${ac_cv_prog_CC+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016 if test -n "$CC"; then
12017 ac_cv_prog_CC="$CC" # Let the user override the test.
12018 else
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_prog_CC="${ac_tool_prefix}cc"
12027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 break 2
12030 done
12031 done
12035 CC=$ac_cv_prog_CC
12036 if test -n "$CC"; then
12037 echo "$as_me:$LINENO: result: $CC" >&5
12038 echo "${ECHO_T}$CC" >&6
12039 else
12040 echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12045 if test -z "$ac_cv_prog_CC"; then
12046 ac_ct_CC=$CC
12047 # Extract the first word of "cc", so it can be a program name with args.
12048 set dummy cc; ac_word=$2
12049 echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 if test -n "$ac_ct_CC"; then
12055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_ac_ct_CC="cc"
12065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12068 done
12069 done
12073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12074 if test -n "$ac_ct_CC"; then
12075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12076 echo "${ECHO_T}$ac_ct_CC" >&6
12077 else
12078 echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6
12082 CC=$ac_ct_CC
12083 else
12084 CC="$ac_cv_prog_CC"
12088 if test -z "$CC"; then
12089 # Extract the first word of "cc", so it can be a program name with args.
12090 set dummy cc; ac_word=$2
12091 echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12093 if test "${ac_cv_prog_CC+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 if test -n "$CC"; then
12097 ac_cv_prog_CC="$CC" # Let the user override the test.
12098 else
12099 ac_prog_rejected=no
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12108 ac_prog_rejected=yes
12109 continue
12111 ac_cv_prog_CC="cc"
12112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12115 done
12116 done
12118 if test $ac_prog_rejected = yes; then
12119 # We found a bogon in the path, so make sure we never use it.
12120 set dummy $ac_cv_prog_CC
12121 shift
12122 if test $# != 0; then
12123 # We chose a different compiler from the bogus one.
12124 # However, it has the same basename, so the bogon will be chosen
12125 # first if we set CC to just the basename; use the full file name.
12126 shift
12127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12132 CC=$ac_cv_prog_CC
12133 if test -n "$CC"; then
12134 echo "$as_me:$LINENO: result: $CC" >&5
12135 echo "${ECHO_T}$CC" >&6
12136 else
12137 echo "$as_me:$LINENO: result: no" >&5
12138 echo "${ECHO_T}no" >&6
12142 if test -z "$CC"; then
12143 if test -n "$ac_tool_prefix"; then
12144 for ac_prog in cl
12146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12148 echo "$as_me:$LINENO: checking for $ac_word" >&5
12149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12150 if test "${ac_cv_prog_CC+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 if test -n "$CC"; then
12154 ac_cv_prog_CC="$CC" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12167 done
12168 done
12172 CC=$ac_cv_prog_CC
12173 if test -n "$CC"; then
12174 echo "$as_me:$LINENO: result: $CC" >&5
12175 echo "${ECHO_T}$CC" >&6
12176 else
12177 echo "$as_me:$LINENO: result: no" >&5
12178 echo "${ECHO_T}no" >&6
12181 test -n "$CC" && break
12182 done
12184 if test -z "$CC"; then
12185 ac_ct_CC=$CC
12186 for ac_prog in cl
12188 # Extract the first word of "$ac_prog", so it can be a program name with args.
12189 set dummy $ac_prog; ac_word=$2
12190 echo "$as_me:$LINENO: checking for $ac_word" >&5
12191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195 if test -n "$ac_ct_CC"; then
12196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12197 else
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12201 IFS=$as_save_IFS
12202 test -z "$as_dir" && as_dir=.
12203 for ac_exec_ext in '' $ac_executable_extensions; do
12204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205 ac_cv_prog_ac_ct_CC="$ac_prog"
12206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 break 2
12209 done
12210 done
12214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12215 if test -n "$ac_ct_CC"; then
12216 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12217 echo "${ECHO_T}$ac_ct_CC" >&6
12218 else
12219 echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6
12223 test -n "$ac_ct_CC" && break
12224 done
12226 CC=$ac_ct_CC
12232 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12233 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12234 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12235 See \`config.log' for more details." >&5
12236 echo "$as_me: error: no acceptable C compiler found in \$PATH
12237 See \`config.log' for more details." >&2;}
12238 { (exit 1); exit 1; }; }; }
12240 # Provide some information about the compiler.
12241 echo "$as_me:$LINENO:" \
12242 "checking for C compiler version" >&5
12243 ac_compiler=`set X $ac_compile; echo $2`
12244 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12245 (eval $ac_compiler --version </dev/null >&5) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }
12249 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12250 (eval $ac_compiler -v </dev/null >&5) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }
12254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12255 (eval $ac_compiler -V </dev/null >&5) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }
12260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12273 main ()
12275 #ifndef __GNUC__
12276 choke me
12277 #endif
12280 return 0;
12282 _ACEOF
12283 rm -f conftest.$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } &&
12292 { ac_try='test -z "$ac_c_werror_flag"
12293 || test ! -s conftest.err'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest.$ac_objext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_compiler_gnu=yes
12306 else
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12310 ac_compiler_gnu=no
12312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12318 GCC=`test $ac_compiler_gnu = yes && echo yes`
12319 ac_test_CFLAGS=${CFLAGS+set}
12320 ac_save_CFLAGS=$CFLAGS
12321 CFLAGS="-g"
12322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12324 if test "${ac_cv_prog_cc_g+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h. */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12335 main ()
12339 return 0;
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_prog_cc_g=yes
12365 else
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_prog_cc_g=no
12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12375 if test "$ac_test_CFLAGS" = set; then
12376 CFLAGS=$ac_save_CFLAGS
12377 elif test $ac_cv_prog_cc_g = yes; then
12378 if test "$GCC" = yes; then
12379 CFLAGS="-g -O2"
12380 else
12381 CFLAGS="-g"
12383 else
12384 if test "$GCC" = yes; then
12385 CFLAGS="-O2"
12386 else
12387 CFLAGS=
12390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395 ac_cv_prog_cc_stdc=no
12396 ac_save_CC=$CC
12397 cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h. */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403 #include <stdarg.h>
12404 #include <stdio.h>
12405 #include <sys/types.h>
12406 #include <sys/stat.h>
12407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12408 struct buf { int x; };
12409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12410 static char *e (p, i)
12411 char **p;
12412 int i;
12414 return p[i];
12416 static char *f (char * (*g) (char **, int), char **p, ...)
12418 char *s;
12419 va_list v;
12420 va_start (v,p);
12421 s = g (p, va_arg (v,int));
12422 va_end (v);
12423 return s;
12426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12427 function prototypes and stuff, but not '\xHH' hex character constants.
12428 These don't provoke an error unfortunately, instead are silently treated
12429 as 'x'. The following induces an error, until -std1 is added to get
12430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12431 array size at least. It's necessary to write '\x00'==0 to get something
12432 that's true only with -std1. */
12433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12435 int test (int i, double x);
12436 struct s1 {int (*f) (int a);};
12437 struct s2 {int (*f) (double a);};
12438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12439 int argc;
12440 char **argv;
12442 main ()
12444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12446 return 0;
12448 _ACEOF
12449 # Don't try gcc -ansi; that turns off useful extensions and
12450 # breaks some systems' header files.
12451 # AIX -qlanglvl=ansi
12452 # Ultrix and OSF/1 -std1
12453 # HP-UX 10.20 and later -Ae
12454 # HP-UX older versions -Aa -D_HPUX_SOURCE
12455 # SVR4 -Xc -D__EXTENSIONS__
12456 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12458 CC="$ac_save_CC $ac_arg"
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461 (eval $ac_compile) 2>conftest.er1
12462 ac_status=$?
12463 grep -v '^ *+' conftest.er1 >conftest.err
12464 rm -f conftest.er1
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag"
12469 || test ! -s conftest.err'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try='test -s conftest.$ac_objext'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 ac_cv_prog_cc_stdc=$ac_arg
12482 break
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12488 rm -f conftest.err conftest.$ac_objext
12489 done
12490 rm -f conftest.$ac_ext conftest.$ac_objext
12491 CC=$ac_save_CC
12495 case "x$ac_cv_prog_cc_stdc" in
12496 x|xno)
12497 echo "$as_me:$LINENO: result: none needed" >&5
12498 echo "${ECHO_T}none needed" >&6 ;;
12500 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12501 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12502 CC="$CC $ac_cv_prog_cc_stdc" ;;
12503 esac
12505 # Some people use a C++ compiler to compile C. Since we use `exit',
12506 # in C++ we need to declare it. In case someone uses the same compiler
12507 # for both compiling C and C++ we need to have the C++ compiler decide
12508 # the declaration of exit, since it's the most demanding environment.
12509 cat >conftest.$ac_ext <<_ACEOF
12510 #ifndef __cplusplus
12511 choke me
12512 #endif
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>conftest.er1
12517 ac_status=$?
12518 grep -v '^ *+' conftest.er1 >conftest.err
12519 rm -f conftest.er1
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag"
12524 || test ! -s conftest.err'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest.$ac_objext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 for ac_declaration in \
12537 '' \
12538 'extern "C" void std::exit (int) throw (); using std::exit;' \
12539 'extern "C" void std::exit (int); using std::exit;' \
12540 'extern "C" void exit (int) throw ();' \
12541 'extern "C" void exit (int);' \
12542 'void exit (int);'
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_declaration
12551 #include <stdlib.h>
12553 main ()
12555 exit (42);
12557 return 0;
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -z "$ac_c_werror_flag"
12570 || test ! -s conftest.err'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12583 else
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 continue
12589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596 $ac_declaration
12598 main ()
12600 exit (42);
12602 return 0;
12604 _ACEOF
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -z "$ac_c_werror_flag"
12615 || test ! -s conftest.err'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 break
12628 else
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12634 done
12635 rm -f conftest*
12636 if test -n "$ac_declaration"; then
12637 echo '#ifdef __cplusplus' >>confdefs.h
12638 echo $ac_declaration >>confdefs.h
12639 echo '#endif' >>confdefs.h
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648 ac_ext=c
12649 ac_cpp='$CPP $CPPFLAGS'
12650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654 depcc="$CC" am_compiler_list=
12656 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12657 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12662 # We make a subdir and do the tests there. Otherwise we can end up
12663 # making bogus files that we don't know about and never remove. For
12664 # instance it was reported that on HP-UX the gcc test will end up
12665 # making a dummy file named `D' -- because `-MD' means `put the output
12666 # in D'.
12667 mkdir conftest.dir
12668 # Copy depcomp to subdir because otherwise we won't find it if we're
12669 # using a relative directory.
12670 cp "$am_depcomp" conftest.dir
12671 cd conftest.dir
12672 # We will build objects and dependencies in a subdirectory because
12673 # it helps to detect inapplicable dependency modes. For instance
12674 # both Tru64's cc and ICC support -MD to output dependencies as a
12675 # side effect of compilation, but ICC will put the dependencies in
12676 # the current directory while Tru64 will put them in the object
12677 # directory.
12678 mkdir sub
12680 am_cv_CC_dependencies_compiler_type=none
12681 if test "$am_compiler_list" = ""; then
12682 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12684 for depmode in $am_compiler_list; do
12685 # Setup a source with many dependencies, because some compilers
12686 # like to wrap large dependency lists on column 80 (with \), and
12687 # we should not choose a depcomp mode which is confused by this.
12689 # We need to recreate these files for each test, as the compiler may
12690 # overwrite some of them when testing with obscure command lines.
12691 # This happens at least with the AIX C compiler.
12692 : > sub/conftest.c
12693 for i in 1 2 3 4 5 6; do
12694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12695 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12696 # Solaris 8's {/usr,}/bin/sh.
12697 touch sub/conftst$i.h
12698 done
12699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12701 case $depmode in
12702 nosideeffect)
12703 # after this tag, mechanisms are not by side-effect, so they'll
12704 # only be used when explicitly requested
12705 if test "x$enable_dependency_tracking" = xyes; then
12706 continue
12707 else
12708 break
12711 none) break ;;
12712 esac
12713 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12714 # mode. It turns out that the SunPro C++ compiler does not properly
12715 # handle `-M -o', and we need to detect this.
12716 if depmode=$depmode \
12717 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12719 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12720 >/dev/null 2>conftest.err &&
12721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12722 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12724 # icc doesn't choke on unknown options, it will just issue warnings
12725 # or remarks (even with -Werror). So we grep stderr for any message
12726 # that says an option was ignored or not supported.
12727 # When given -MP, icc 7.0 and 7.1 complain thusly:
12728 # icc: Command line warning: ignoring option '-M'; no argument required
12729 # The diagnosis changed in icc 8.0:
12730 # icc: Command line remark: option '-MP' not supported
12731 if (grep 'ignoring option' conftest.err ||
12732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12733 am_cv_CC_dependencies_compiler_type=$depmode
12734 break
12737 done
12739 cd ..
12740 rm -rf conftest.dir
12741 else
12742 am_cv_CC_dependencies_compiler_type=none
12746 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12747 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12753 test "x$enable_dependency_tracking" != xno \
12754 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12755 am__fastdepCC_TRUE=
12756 am__fastdepCC_FALSE='#'
12757 else
12758 am__fastdepCC_TRUE='#'
12759 am__fastdepCC_FALSE=
12763 if test "x$CC" != xcc; then
12764 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12765 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
12766 else
12767 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12768 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
12770 set dummy $CC; ac_cc=`echo $2 |
12771 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12772 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12783 main ()
12787 return 0;
12789 _ACEOF
12790 # Make sure it works both with $CC and with simple cc.
12791 # We do the test twice because some compilers refuse to overwrite an
12792 # existing .o file with -o, though they will create one.
12793 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
12794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); };
12804 then
12805 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12806 if test "x$CC" != xcc; then
12807 # Test first that cc exists at all.
12808 if { ac_try='cc -c conftest.$ac_ext >&5'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
12815 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); };
12825 then
12826 # cc works too.
12828 else
12829 # cc exists but doesn't like -o.
12830 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12834 else
12835 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12837 rm -f conftest*
12840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
12841 echo "$as_me:$LINENO: result: yes" >&5
12842 echo "${ECHO_T}yes" >&6
12843 else
12844 echo "$as_me:$LINENO: result: no" >&5
12845 echo "${ECHO_T}no" >&6
12847 cat >>confdefs.h <<\_ACEOF
12848 #define NO_MINUS_C_MINUS_O 1
12849 _ACEOF
12853 # FIXME: we rely on the cache variable name because
12854 # there is no other way.
12855 set dummy $CC
12856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
12858 # Losing compiler, so override with the script.
12859 # FIXME: It is wrong to rewrite CC.
12860 # But if we don't then we get into trouble of one sort or another.
12861 # A longer-term fix would be to have automake use am__CC in this case,
12862 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12863 CC="$am_aux_dir/compile $CC"
12866 ac_ext=c
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12873 # On Suns, sometimes $CPP names a directory.
12874 if test -n "$CPP" && test -d "$CPP"; then
12875 CPP=
12877 if test -z "$CPP"; then
12878 if test "${ac_cv_prog_CPP+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881 # Double quotes because CPP needs to be expanded
12882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12884 ac_preproc_ok=false
12885 for ac_c_preproc_warn_flag in '' yes
12887 # Use a header file that comes with gcc, so configuring glibc
12888 # with a fresh cross-compiler works.
12889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12890 # <limits.h> exists even on freestanding compilers.
12891 # On the NeXT, cc -E runs the code through the compiler's parser,
12892 # not just through cpp. "Syntax error" is here to catch this case.
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #ifdef __STDC__
12900 # include <limits.h>
12901 #else
12902 # include <assert.h>
12903 #endif
12904 Syntax error
12905 _ACEOF
12906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } >/dev/null; then
12914 if test -s conftest.err; then
12915 ac_cpp_err=$ac_c_preproc_warn_flag
12916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12917 else
12918 ac_cpp_err=
12920 else
12921 ac_cpp_err=yes
12923 if test -z "$ac_cpp_err"; then
12925 else
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 # Broken: fails on valid input.
12930 continue
12932 rm -f conftest.err conftest.$ac_ext
12934 # OK, works on sane cases. Now check whether non-existent headers
12935 # can be detected and how.
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <ac_nonexistent.h>
12943 _ACEOF
12944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null; then
12952 if test -s conftest.err; then
12953 ac_cpp_err=$ac_c_preproc_warn_flag
12954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12955 else
12956 ac_cpp_err=
12958 else
12959 ac_cpp_err=yes
12961 if test -z "$ac_cpp_err"; then
12962 # Broken: success on invalid input.
12963 continue
12964 else
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 # Passes both tests.
12969 ac_preproc_ok=:
12970 break
12972 rm -f conftest.err conftest.$ac_ext
12974 done
12975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12976 rm -f conftest.err conftest.$ac_ext
12977 if $ac_preproc_ok; then
12978 break
12981 done
12982 ac_cv_prog_CPP=$CPP
12985 CPP=$ac_cv_prog_CPP
12986 else
12987 ac_cv_prog_CPP=$CPP
12989 echo "$as_me:$LINENO: result: $CPP" >&5
12990 echo "${ECHO_T}$CPP" >&6
12991 ac_preproc_ok=false
12992 for ac_c_preproc_warn_flag in '' yes
12994 # Use a header file that comes with gcc, so configuring glibc
12995 # with a fresh cross-compiler works.
12996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12997 # <limits.h> exists even on freestanding compilers.
12998 # On the NeXT, cc -E runs the code through the compiler's parser,
12999 # not just through cpp. "Syntax error" is here to catch this case.
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #ifdef __STDC__
13007 # include <limits.h>
13008 #else
13009 # include <assert.h>
13010 #endif
13011 Syntax error
13012 _ACEOF
13013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev/null; then
13021 if test -s conftest.err; then
13022 ac_cpp_err=$ac_c_preproc_warn_flag
13023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13024 else
13025 ac_cpp_err=
13027 else
13028 ac_cpp_err=yes
13030 if test -z "$ac_cpp_err"; then
13032 else
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 # Broken: fails on valid input.
13037 continue
13039 rm -f conftest.err conftest.$ac_ext
13041 # OK, works on sane cases. Now check whether non-existent headers
13042 # can be detected and how.
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 #include <ac_nonexistent.h>
13050 _ACEOF
13051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null; then
13059 if test -s conftest.err; then
13060 ac_cpp_err=$ac_c_preproc_warn_flag
13061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13062 else
13063 ac_cpp_err=
13065 else
13066 ac_cpp_err=yes
13068 if test -z "$ac_cpp_err"; then
13069 # Broken: success on invalid input.
13070 continue
13071 else
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 # Passes both tests.
13076 ac_preproc_ok=:
13077 break
13079 rm -f conftest.err conftest.$ac_ext
13081 done
13082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13083 rm -f conftest.err conftest.$ac_ext
13084 if $ac_preproc_ok; then
13086 else
13087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13090 See \`config.log' for more details." >&5
13091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13092 See \`config.log' for more details." >&2;}
13093 { (exit 1); exit 1; }; }; }
13096 ac_ext=c
13097 ac_cpp='$CPP $CPPFLAGS'
13098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13102 ac_ext=cc
13103 ac_cpp='$CXXCPP $CPPFLAGS'
13104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13107 if test -n "$ac_tool_prefix"; then
13108 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13112 echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13114 if test "${ac_cv_prog_CXX+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117 if test -n "$CXX"; then
13118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13131 done
13132 done
13136 CXX=$ac_cv_prog_CXX
13137 if test -n "$CXX"; then
13138 echo "$as_me:$LINENO: result: $CXX" >&5
13139 echo "${ECHO_T}$CXX" >&6
13140 else
13141 echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6
13145 test -n "$CXX" && break
13146 done
13148 if test -z "$CXX"; then
13149 ac_ct_CXX=$CXX
13150 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13152 # Extract the first word of "$ac_prog", so it can be a program name with args.
13153 set dummy $ac_prog; ac_word=$2
13154 echo "$as_me:$LINENO: checking for $ac_word" >&5
13155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159 if test -n "$ac_ct_CXX"; then
13160 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13161 else
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169 ac_cv_prog_ac_ct_CXX="$ac_prog"
13170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13173 done
13174 done
13178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13179 if test -n "$ac_ct_CXX"; then
13180 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13181 echo "${ECHO_T}$ac_ct_CXX" >&6
13182 else
13183 echo "$as_me:$LINENO: result: no" >&5
13184 echo "${ECHO_T}no" >&6
13187 test -n "$ac_ct_CXX" && break
13188 done
13189 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13191 CXX=$ac_ct_CXX
13195 # Provide some information about the compiler.
13196 echo "$as_me:$LINENO:" \
13197 "checking for C++ compiler version" >&5
13198 ac_compiler=`set X $ac_compile; echo $2`
13199 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13200 (eval $ac_compiler --version </dev/null >&5) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }
13204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13205 (eval $ac_compiler -v </dev/null >&5) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }
13209 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13210 (eval $ac_compiler -V </dev/null >&5) 2>&5
13211 ac_status=$?
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }
13215 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13228 main ()
13230 #ifndef __GNUC__
13231 choke me
13232 #endif
13235 return 0;
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_cxx_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_compiler_gnu=yes
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_compiler_gnu=no
13267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13271 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13272 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13273 GXX=`test $ac_compiler_gnu = yes && echo yes`
13274 ac_test_CXXFLAGS=${CXXFLAGS+set}
13275 ac_save_CXXFLAGS=$CXXFLAGS
13276 CXXFLAGS="-g"
13277 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13278 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13279 if test "${ac_cv_prog_cxx_g+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282 cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h. */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13290 main ()
13294 return 0;
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_cxx_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_prog_cxx_g=yes
13320 else
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 ac_cv_prog_cxx_g=no
13326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13329 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13330 if test "$ac_test_CXXFLAGS" = set; then
13331 CXXFLAGS=$ac_save_CXXFLAGS
13332 elif test $ac_cv_prog_cxx_g = yes; then
13333 if test "$GXX" = yes; then
13334 CXXFLAGS="-g -O2"
13335 else
13336 CXXFLAGS="-g"
13338 else
13339 if test "$GXX" = yes; then
13340 CXXFLAGS="-O2"
13341 else
13342 CXXFLAGS=
13345 for ac_declaration in \
13346 '' \
13347 'extern "C" void std::exit (int) throw (); using std::exit;' \
13348 'extern "C" void std::exit (int); using std::exit;' \
13349 'extern "C" void exit (int) throw ();' \
13350 'extern "C" void exit (int);' \
13351 'void exit (int);'
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 $ac_declaration
13360 #include <stdlib.h>
13362 main ()
13364 exit (42);
13366 return 0;
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_cxx_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 continue
13398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h. */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 $ac_declaration
13407 main ()
13409 exit (42);
13411 return 0;
13413 _ACEOF
13414 rm -f conftest.$ac_objext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416 (eval $ac_compile) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_cxx_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 break
13437 else
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13443 done
13444 rm -f conftest*
13445 if test -n "$ac_declaration"; then
13446 echo '#ifdef __cplusplus' >>confdefs.h
13447 echo $ac_declaration >>confdefs.h
13448 echo '#endif' >>confdefs.h
13451 ac_ext=c
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457 depcc="$CXX" am_compiler_list=
13459 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13460 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13461 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13465 # We make a subdir and do the tests there. Otherwise we can end up
13466 # making bogus files that we don't know about and never remove. For
13467 # instance it was reported that on HP-UX the gcc test will end up
13468 # making a dummy file named `D' -- because `-MD' means `put the output
13469 # in D'.
13470 mkdir conftest.dir
13471 # Copy depcomp to subdir because otherwise we won't find it if we're
13472 # using a relative directory.
13473 cp "$am_depcomp" conftest.dir
13474 cd conftest.dir
13475 # We will build objects and dependencies in a subdirectory because
13476 # it helps to detect inapplicable dependency modes. For instance
13477 # both Tru64's cc and ICC support -MD to output dependencies as a
13478 # side effect of compilation, but ICC will put the dependencies in
13479 # the current directory while Tru64 will put them in the object
13480 # directory.
13481 mkdir sub
13483 am_cv_CXX_dependencies_compiler_type=none
13484 if test "$am_compiler_list" = ""; then
13485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13487 for depmode in $am_compiler_list; do
13488 # Setup a source with many dependencies, because some compilers
13489 # like to wrap large dependency lists on column 80 (with \), and
13490 # we should not choose a depcomp mode which is confused by this.
13492 # We need to recreate these files for each test, as the compiler may
13493 # overwrite some of them when testing with obscure command lines.
13494 # This happens at least with the AIX C compiler.
13495 : > sub/conftest.c
13496 for i in 1 2 3 4 5 6; do
13497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13499 # Solaris 8's {/usr,}/bin/sh.
13500 touch sub/conftst$i.h
13501 done
13502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13504 case $depmode in
13505 nosideeffect)
13506 # after this tag, mechanisms are not by side-effect, so they'll
13507 # only be used when explicitly requested
13508 if test "x$enable_dependency_tracking" = xyes; then
13509 continue
13510 else
13511 break
13514 none) break ;;
13515 esac
13516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13517 # mode. It turns out that the SunPro C++ compiler does not properly
13518 # handle `-M -o', and we need to detect this.
13519 if depmode=$depmode \
13520 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13521 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13522 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13523 >/dev/null 2>conftest.err &&
13524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13525 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13527 # icc doesn't choke on unknown options, it will just issue warnings
13528 # or remarks (even with -Werror). So we grep stderr for any message
13529 # that says an option was ignored or not supported.
13530 # When given -MP, icc 7.0 and 7.1 complain thusly:
13531 # icc: Command line warning: ignoring option '-M'; no argument required
13532 # The diagnosis changed in icc 8.0:
13533 # icc: Command line remark: option '-MP' not supported
13534 if (grep 'ignoring option' conftest.err ||
13535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13536 am_cv_CXX_dependencies_compiler_type=$depmode
13537 break
13540 done
13542 cd ..
13543 rm -rf conftest.dir
13544 else
13545 am_cv_CXX_dependencies_compiler_type=none
13549 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13550 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
13551 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13556 test "x$enable_dependency_tracking" != xno \
13557 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13558 am__fastdepCXX_TRUE=
13559 am__fastdepCXX_FALSE='#'
13560 else
13561 am__fastdepCXX_TRUE='#'
13562 am__fastdepCXX_FALSE=
13567 ac_ext=cc
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13572 if test -n "$ac_tool_prefix"; then
13573 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13577 echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13579 if test "${ac_cv_prog_CXX+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582 if test -n "$CXX"; then
13583 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_exec_ext in '' $ac_executable_extensions; do
13591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13594 break 2
13596 done
13597 done
13601 CXX=$ac_cv_prog_CXX
13602 if test -n "$CXX"; then
13603 echo "$as_me:$LINENO: result: $CXX" >&5
13604 echo "${ECHO_T}$CXX" >&6
13605 else
13606 echo "$as_me:$LINENO: result: no" >&5
13607 echo "${ECHO_T}no" >&6
13610 test -n "$CXX" && break
13611 done
13613 if test -z "$CXX"; then
13614 ac_ct_CXX=$CXX
13615 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13617 # Extract the first word of "$ac_prog", so it can be a program name with args.
13618 set dummy $ac_prog; ac_word=$2
13619 echo "$as_me:$LINENO: checking for $ac_word" >&5
13620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13621 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624 if test -n "$ac_ct_CXX"; then
13625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_ac_ct_CXX="$ac_prog"
13635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13638 done
13639 done
13643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13644 if test -n "$ac_ct_CXX"; then
13645 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13646 echo "${ECHO_T}$ac_ct_CXX" >&6
13647 else
13648 echo "$as_me:$LINENO: result: no" >&5
13649 echo "${ECHO_T}no" >&6
13652 test -n "$ac_ct_CXX" && break
13653 done
13654 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13656 CXX=$ac_ct_CXX
13660 # Provide some information about the compiler.
13661 echo "$as_me:$LINENO:" \
13662 "checking for C++ compiler version" >&5
13663 ac_compiler=`set X $ac_compile; echo $2`
13664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13665 (eval $ac_compiler --version </dev/null >&5) 2>&5
13666 ac_status=$?
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }
13669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13670 (eval $ac_compiler -v </dev/null >&5) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }
13674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13675 (eval $ac_compiler -V </dev/null >&5) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }
13680 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13681 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13693 main ()
13695 #ifndef __GNUC__
13696 choke me
13697 #endif
13700 return 0;
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_cxx_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_compiler_gnu=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_compiler_gnu=no
13732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13736 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13738 GXX=`test $ac_compiler_gnu = yes && echo yes`
13739 ac_test_CXXFLAGS=${CXXFLAGS+set}
13740 ac_save_CXXFLAGS=$CXXFLAGS
13741 CXXFLAGS="-g"
13742 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13743 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13744 if test "${ac_cv_prog_cxx_g+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13755 main ()
13759 return 0;
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_cxx_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_prog_cxx_g=yes
13785 else
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13789 ac_cv_prog_cxx_g=no
13791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13795 if test "$ac_test_CXXFLAGS" = set; then
13796 CXXFLAGS=$ac_save_CXXFLAGS
13797 elif test $ac_cv_prog_cxx_g = yes; then
13798 if test "$GXX" = yes; then
13799 CXXFLAGS="-g -O2"
13800 else
13801 CXXFLAGS="-g"
13803 else
13804 if test "$GXX" = yes; then
13805 CXXFLAGS="-O2"
13806 else
13807 CXXFLAGS=
13810 for ac_declaration in \
13811 '' \
13812 'extern "C" void std::exit (int) throw (); using std::exit;' \
13813 'extern "C" void std::exit (int); using std::exit;' \
13814 'extern "C" void exit (int) throw ();' \
13815 'extern "C" void exit (int);' \
13816 'void exit (int);'
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h. */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824 $ac_declaration
13825 #include <stdlib.h>
13827 main ()
13829 exit (42);
13831 return 0;
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836 (eval $ac_compile) 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try='test -z "$ac_cxx_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 continue
13863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h. */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_declaration
13872 main ()
13874 exit (42);
13876 return 0;
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_cxx_werror_flag"
13889 || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 break
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 done
13909 rm -f conftest*
13910 if test -n "$ac_declaration"; then
13911 echo '#ifdef __cplusplus' >>confdefs.h
13912 echo $ac_declaration >>confdefs.h
13913 echo '#endif' >>confdefs.h
13916 ac_ext=c
13917 ac_cpp='$CPP $CPPFLAGS'
13918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13922 depcc="$CXX" am_compiler_list=
13924 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13925 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13926 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13930 # We make a subdir and do the tests there. Otherwise we can end up
13931 # making bogus files that we don't know about and never remove. For
13932 # instance it was reported that on HP-UX the gcc test will end up
13933 # making a dummy file named `D' -- because `-MD' means `put the output
13934 # in D'.
13935 mkdir conftest.dir
13936 # Copy depcomp to subdir because otherwise we won't find it if we're
13937 # using a relative directory.
13938 cp "$am_depcomp" conftest.dir
13939 cd conftest.dir
13940 # We will build objects and dependencies in a subdirectory because
13941 # it helps to detect inapplicable dependency modes. For instance
13942 # both Tru64's cc and ICC support -MD to output dependencies as a
13943 # side effect of compilation, but ICC will put the dependencies in
13944 # the current directory while Tru64 will put them in the object
13945 # directory.
13946 mkdir sub
13948 am_cv_CXX_dependencies_compiler_type=none
13949 if test "$am_compiler_list" = ""; then
13950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13952 for depmode in $am_compiler_list; do
13953 # Setup a source with many dependencies, because some compilers
13954 # like to wrap large dependency lists on column 80 (with \), and
13955 # we should not choose a depcomp mode which is confused by this.
13957 # We need to recreate these files for each test, as the compiler may
13958 # overwrite some of them when testing with obscure command lines.
13959 # This happens at least with the AIX C compiler.
13960 : > sub/conftest.c
13961 for i in 1 2 3 4 5 6; do
13962 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13963 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13964 # Solaris 8's {/usr,}/bin/sh.
13965 touch sub/conftst$i.h
13966 done
13967 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13969 case $depmode in
13970 nosideeffect)
13971 # after this tag, mechanisms are not by side-effect, so they'll
13972 # only be used when explicitly requested
13973 if test "x$enable_dependency_tracking" = xyes; then
13974 continue
13975 else
13976 break
13979 none) break ;;
13980 esac
13981 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13982 # mode. It turns out that the SunPro C++ compiler does not properly
13983 # handle `-M -o', and we need to detect this.
13984 if depmode=$depmode \
13985 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13986 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13987 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13988 >/dev/null 2>conftest.err &&
13989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13990 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13992 # icc doesn't choke on unknown options, it will just issue warnings
13993 # or remarks (even with -Werror). So we grep stderr for any message
13994 # that says an option was ignored or not supported.
13995 # When given -MP, icc 7.0 and 7.1 complain thusly:
13996 # icc: Command line warning: ignoring option '-M'; no argument required
13997 # The diagnosis changed in icc 8.0:
13998 # icc: Command line remark: option '-MP' not supported
13999 if (grep 'ignoring option' conftest.err ||
14000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14001 am_cv_CXX_dependencies_compiler_type=$depmode
14002 break
14005 done
14007 cd ..
14008 rm -rf conftest.dir
14009 else
14010 am_cv_CXX_dependencies_compiler_type=none
14014 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
14015 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
14016 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14021 test "x$enable_dependency_tracking" != xno \
14022 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14023 am__fastdepCXX_TRUE=
14024 am__fastdepCXX_FALSE='#'
14025 else
14026 am__fastdepCXX_TRUE='#'
14027 am__fastdepCXX_FALSE=
14031 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14032 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14033 (test "X$CXX" != "Xg++"))) ; then
14034 ac_ext=cc
14035 ac_cpp='$CXXCPP $CPPFLAGS'
14036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14039 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14040 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
14041 if test -z "$CXXCPP"; then
14042 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 # Double quotes because CXXCPP needs to be expanded
14046 for CXXCPP in "$CXX -E" "/lib/cpp"
14048 ac_preproc_ok=false
14049 for ac_cxx_preproc_warn_flag in '' yes
14051 # Use a header file that comes with gcc, so configuring glibc
14052 # with a fresh cross-compiler works.
14053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054 # <limits.h> exists even on freestanding compilers.
14055 # On the NeXT, cc -E runs the code through the compiler's parser,
14056 # not just through cpp. "Syntax error" is here to catch this case.
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #ifdef __STDC__
14064 # include <limits.h>
14065 #else
14066 # include <assert.h>
14067 #endif
14068 Syntax error
14069 _ACEOF
14070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null; then
14078 if test -s conftest.err; then
14079 ac_cpp_err=$ac_cxx_preproc_warn_flag
14080 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14081 else
14082 ac_cpp_err=
14084 else
14085 ac_cpp_err=yes
14087 if test -z "$ac_cpp_err"; then
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 # Broken: fails on valid input.
14094 continue
14096 rm -f conftest.err conftest.$ac_ext
14098 # OK, works on sane cases. Now check whether non-existent headers
14099 # can be detected and how.
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h. */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 #include <ac_nonexistent.h>
14107 _ACEOF
14108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14110 ac_status=$?
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } >/dev/null; then
14116 if test -s conftest.err; then
14117 ac_cpp_err=$ac_cxx_preproc_warn_flag
14118 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14119 else
14120 ac_cpp_err=
14122 else
14123 ac_cpp_err=yes
14125 if test -z "$ac_cpp_err"; then
14126 # Broken: success on invalid input.
14127 continue
14128 else
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14132 # Passes both tests.
14133 ac_preproc_ok=:
14134 break
14136 rm -f conftest.err conftest.$ac_ext
14138 done
14139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14140 rm -f conftest.err conftest.$ac_ext
14141 if $ac_preproc_ok; then
14142 break
14145 done
14146 ac_cv_prog_CXXCPP=$CXXCPP
14149 CXXCPP=$ac_cv_prog_CXXCPP
14150 else
14151 ac_cv_prog_CXXCPP=$CXXCPP
14153 echo "$as_me:$LINENO: result: $CXXCPP" >&5
14154 echo "${ECHO_T}$CXXCPP" >&6
14155 ac_preproc_ok=false
14156 for ac_cxx_preproc_warn_flag in '' yes
14158 # Use a header file that comes with gcc, so configuring glibc
14159 # with a fresh cross-compiler works.
14160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14161 # <limits.h> exists even on freestanding compilers.
14162 # On the NeXT, cc -E runs the code through the compiler's parser,
14163 # not just through cpp. "Syntax error" is here to catch this case.
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #ifdef __STDC__
14171 # include <limits.h>
14172 #else
14173 # include <assert.h>
14174 #endif
14175 Syntax error
14176 _ACEOF
14177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null; then
14185 if test -s conftest.err; then
14186 ac_cpp_err=$ac_cxx_preproc_warn_flag
14187 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14188 else
14189 ac_cpp_err=
14191 else
14192 ac_cpp_err=yes
14194 if test -z "$ac_cpp_err"; then
14196 else
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 # Broken: fails on valid input.
14201 continue
14203 rm -f conftest.err conftest.$ac_ext
14205 # OK, works on sane cases. Now check whether non-existent headers
14206 # can be detected and how.
14207 cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h. */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213 #include <ac_nonexistent.h>
14214 _ACEOF
14215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } >/dev/null; then
14223 if test -s conftest.err; then
14224 ac_cpp_err=$ac_cxx_preproc_warn_flag
14225 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14226 else
14227 ac_cpp_err=
14229 else
14230 ac_cpp_err=yes
14232 if test -z "$ac_cpp_err"; then
14233 # Broken: success on invalid input.
14234 continue
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 # Passes both tests.
14240 ac_preproc_ok=:
14241 break
14243 rm -f conftest.err conftest.$ac_ext
14245 done
14246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14247 rm -f conftest.err conftest.$ac_ext
14248 if $ac_preproc_ok; then
14250 else
14251 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14252 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14253 _lt_caught_CXX_error=yes; }
14256 ac_ext=c
14257 ac_cpp='$CPP $CPPFLAGS'
14258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14262 else
14263 _lt_caught_CXX_error=yes
14269 ac_ext=cc
14270 ac_cpp='$CXXCPP $CPPFLAGS'
14271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14275 archive_cmds_need_lc_CXX=no
14276 allow_undefined_flag_CXX=
14277 always_export_symbols_CXX=no
14278 archive_expsym_cmds_CXX=
14279 compiler_needs_object_CXX=no
14280 export_dynamic_flag_spec_CXX=
14281 hardcode_direct_CXX=no
14282 hardcode_direct_absolute_CXX=no
14283 hardcode_libdir_flag_spec_CXX=
14284 hardcode_libdir_flag_spec_ld_CXX=
14285 hardcode_libdir_separator_CXX=
14286 hardcode_minus_L_CXX=no
14287 hardcode_shlibpath_var_CXX=unsupported
14288 hardcode_automatic_CXX=no
14289 inherit_rpath_CXX=no
14290 module_cmds_CXX=
14291 module_expsym_cmds_CXX=
14292 link_all_deplibs_CXX=unknown
14293 old_archive_cmds_CXX=$old_archive_cmds
14294 no_undefined_flag_CXX=
14295 whole_archive_flag_spec_CXX=
14296 enable_shared_with_static_runtimes_CXX=no
14298 # Source file extension for C++ test sources.
14299 ac_ext=cpp
14301 # Object file extension for compiled C++ test sources.
14302 objext=o
14303 objext_CXX=$objext
14305 # No sense in running all these tests if we already determined that
14306 # the CXX compiler isn't working. Some variables (like enable_shared)
14307 # are currently assumed to apply to all compilers on this platform,
14308 # and will be corrupted by setting them based on a non-working compiler.
14309 if test "$_lt_caught_CXX_error" != yes; then
14310 # Code to be used in simple compile tests
14311 lt_simple_compile_test_code="int some_variable = 0;"
14313 # Code to be used in simple link tests
14314 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14316 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14323 # If no C compiler was specified, use CC.
14324 LTCC=${LTCC-"$CC"}
14326 # If no C compiler flags were specified, use CFLAGS.
14327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14329 # Allow CC to be a program name with arguments.
14330 compiler=$CC
14333 # save warnings/boilerplate of simple test code
14334 ac_outfile=conftest.$ac_objext
14335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14337 _lt_compiler_boilerplate=`cat conftest.err`
14338 $RM conftest*
14340 ac_outfile=conftest.$ac_objext
14341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14343 _lt_linker_boilerplate=`cat conftest.err`
14344 $RM -r conftest*
14347 # Allow CC to be a program name with arguments.
14348 lt_save_CC=$CC
14349 lt_save_LD=$LD
14350 lt_save_GCC=$GCC
14351 GCC=$GXX
14352 lt_save_with_gnu_ld=$with_gnu_ld
14353 lt_save_path_LD=$lt_cv_path_LD
14354 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14355 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14356 else
14357 $as_unset lt_cv_prog_gnu_ld
14359 if test -n "${lt_cv_path_LDCXX+set}"; then
14360 lt_cv_path_LD=$lt_cv_path_LDCXX
14361 else
14362 $as_unset lt_cv_path_LD
14364 test -z "${LDCXX+set}" || LD=$LDCXX
14365 CC=${CXX-"c++"}
14366 compiler=$CC
14367 compiler_CXX=$CC
14368 for cc_temp in $compiler""; do
14369 case $cc_temp in
14370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14372 \-*) ;;
14373 *) break;;
14374 esac
14375 done
14376 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14379 if test -n "$compiler"; then
14380 # We don't want -fno-exception when compiling C++ code, so set the
14381 # no_builtin_flag separately
14382 if test "$GXX" = yes; then
14383 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14384 else
14385 lt_prog_compiler_no_builtin_flag_CXX=
14388 if test "$GXX" = yes; then
14389 # Set up default GNU C++ configuration
14393 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14394 if test "${with_gnu_ld+set}" = set; then
14395 withval="$with_gnu_ld"
14396 test "$withval" = no || with_gnu_ld=yes
14397 else
14398 with_gnu_ld=no
14400 ac_prog=ld
14401 if test "$GCC" = yes; then
14402 # Check if gcc -print-prog-name=ld gives a path.
14403 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14404 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14405 case $host in
14406 *-*-mingw*)
14407 # gcc leaves a trailing carriage return which upsets mingw
14408 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14410 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14411 esac
14412 case $ac_prog in
14413 # Accept absolute paths.
14414 [\\/]* | ?:[\\/]*)
14415 re_direlt='/[^/][^/]*/\.\./'
14416 # Canonicalize the pathname of ld
14417 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14418 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14419 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14420 done
14421 test -z "$LD" && LD="$ac_prog"
14424 # If it fails, then pretend we aren't using GCC.
14425 ac_prog=ld
14428 # If it is relative, then search for the first ld in PATH.
14429 with_gnu_ld=unknown
14431 esac
14432 elif test "$with_gnu_ld" = yes; then
14433 echo "$as_me:$LINENO: checking for GNU ld" >&5
14434 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14435 else
14436 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14437 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14439 if test "${lt_cv_path_LD+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442 if test -z "$LD"; then
14443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14444 for ac_dir in $PATH; do
14445 IFS="$lt_save_ifs"
14446 test -z "$ac_dir" && ac_dir=.
14447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14448 lt_cv_path_LD="$ac_dir/$ac_prog"
14449 # Check to see if the program is GNU ld. I'd rather use --version,
14450 # but apparently some variants of GNU ld only accept -v.
14451 # Break only if it was the GNU/non-GNU ld that we prefer.
14452 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14453 *GNU* | *'with BFD'*)
14454 test "$with_gnu_ld" != no && break
14457 test "$with_gnu_ld" != yes && break
14459 esac
14461 done
14462 IFS="$lt_save_ifs"
14463 else
14464 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14468 LD="$lt_cv_path_LD"
14469 if test -n "$LD"; then
14470 echo "$as_me:$LINENO: result: $LD" >&5
14471 echo "${ECHO_T}$LD" >&6
14472 else
14473 echo "$as_me:$LINENO: result: no" >&5
14474 echo "${ECHO_T}no" >&6
14476 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14477 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14478 { (exit 1); exit 1; }; }
14479 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14480 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14481 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14485 case `$LD -v 2>&1 </dev/null` in
14486 *GNU* | *'with BFD'*)
14487 lt_cv_prog_gnu_ld=yes
14490 lt_cv_prog_gnu_ld=no
14492 esac
14494 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14495 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14496 with_gnu_ld=$lt_cv_prog_gnu_ld
14504 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14505 # archiving commands below assume that GNU ld is being used.
14506 if test "$with_gnu_ld" = yes; then
14507 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14510 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14511 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14513 # If archive_cmds runs LD, not CC, wlarc should be empty
14514 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14515 # investigate it a little bit more. (MM)
14516 wlarc='${wl}'
14518 # ancient GNU ld didn't support --whole-archive et. al.
14519 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14520 $GREP 'no-whole-archive' > /dev/null; then
14521 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14522 else
14523 whole_archive_flag_spec_CXX=
14525 else
14526 with_gnu_ld=no
14527 wlarc=
14529 # A generic and very simple default shared library creation
14530 # command for GNU C++ for the case where it uses the native
14531 # linker, instead of GNU ld. If possible, this setting should
14532 # overridden to take advantage of the native linker features on
14533 # the platform it is being used on.
14534 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14537 # Commands to make compiler produce verbose output that lists
14538 # what "hidden" libraries, object files and flags are used when
14539 # linking a shared library.
14540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14542 else
14543 GXX=no
14544 with_gnu_ld=no
14545 wlarc=
14548 # PORTME: fill in a description of your system's C++ link characteristics
14549 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14550 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14551 ld_shlibs_CXX=yes
14552 case $host_os in
14553 aix3*)
14554 # FIXME: insert proper C++ library support
14555 ld_shlibs_CXX=no
14557 aix[4-9]*)
14558 if test "$host_cpu" = ia64; then
14559 # On IA64, the linker does run time linking by default, so we don't
14560 # have to do anything special.
14561 aix_use_runtimelinking=no
14562 exp_sym_flag='-Bexport'
14563 no_entry_flag=""
14564 else
14565 aix_use_runtimelinking=no
14567 # Test if we are trying to use run time linking or normal
14568 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14569 # need to do runtime linking.
14570 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14571 for ld_flag in $LDFLAGS; do
14572 case $ld_flag in
14573 *-brtl*)
14574 aix_use_runtimelinking=yes
14575 break
14577 esac
14578 done
14580 esac
14582 exp_sym_flag='-bexport'
14583 no_entry_flag='-bnoentry'
14586 # When large executables or shared objects are built, AIX ld can
14587 # have problems creating the table of contents. If linking a library
14588 # or program results in "error TOC overflow" add -mminimal-toc to
14589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14592 archive_cmds_CXX=''
14593 hardcode_direct_CXX=yes
14594 hardcode_direct_absolute_CXX=yes
14595 hardcode_libdir_separator_CXX=':'
14596 link_all_deplibs_CXX=yes
14597 file_list_spec_CXX='${wl}-f,'
14599 if test "$GXX" = yes; then
14600 case $host_os in aix4.[012]|aix4.[012].*)
14601 # We only want to do this on AIX 4.2 and lower, the check
14602 # below for broken collect2 doesn't work under 4.3+
14603 collect2name=`${CC} -print-prog-name=collect2`
14604 if test -f "$collect2name" &&
14605 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14606 then
14607 # We have reworked collect2
14609 else
14610 # We have old collect2
14611 hardcode_direct_CXX=unsupported
14612 # It fails to find uninstalled libraries when the uninstalled
14613 # path is not listed in the libpath. Setting hardcode_minus_L
14614 # to unsupported forces relinking
14615 hardcode_minus_L_CXX=yes
14616 hardcode_libdir_flag_spec_CXX='-L$libdir'
14617 hardcode_libdir_separator_CXX=
14619 esac
14620 shared_flag='-shared'
14621 if test "$aix_use_runtimelinking" = yes; then
14622 shared_flag="$shared_flag "'${wl}-G'
14624 else
14625 # not using gcc
14626 if test "$host_cpu" = ia64; then
14627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14628 # chokes on -Wl,-G. The following line is correct:
14629 shared_flag='-G'
14630 else
14631 if test "$aix_use_runtimelinking" = yes; then
14632 shared_flag='${wl}-G'
14633 else
14634 shared_flag='${wl}-bM:SRE'
14639 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14640 # It seems that -bexpall does not export symbols beginning with
14641 # underscore (_), so it is better to generate a list of symbols to
14642 # export.
14643 always_export_symbols_CXX=yes
14644 if test "$aix_use_runtimelinking" = yes; then
14645 # Warning - without using the other runtime loading flags (-brtl),
14646 # -berok will link without error, but may produce a broken library.
14647 allow_undefined_flag_CXX='-berok'
14648 # Determine the default libpath from the value encoded in an empty
14649 # executable.
14650 if test x$gcc_no_link = xyes; then
14651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14653 { (exit 1); exit 1; }; }
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h. */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14663 main ()
14667 return 0;
14669 _ACEOF
14670 rm -f conftest.$ac_objext conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>conftest.er1
14673 ac_status=$?
14674 grep -v '^ *+' conftest.er1 >conftest.err
14675 rm -f conftest.er1
14676 cat conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -z "$ac_cxx_werror_flag"
14680 || test ! -s conftest.err'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; } &&
14686 { ac_try='test -s conftest$ac_exeext'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then
14693 lt_aix_libpath_sed='
14694 /Import File Strings/,/^$/ {
14695 /^0/ {
14696 s/^0 *\(.*\)$/\1/
14700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14701 # Check for a 64-bit object if we didn't find anything.
14702 if test -z "$aix_libpath"; then
14703 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14705 else
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14710 rm -f conftest.err conftest.$ac_objext \
14711 conftest$ac_exeext conftest.$ac_ext
14712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14714 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14716 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14717 else
14718 if test "$host_cpu" = ia64; then
14719 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14720 allow_undefined_flag_CXX="-z nodefs"
14721 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14722 else
14723 # Determine the default libpath from the value encoded in an
14724 # empty executable.
14725 if test x$gcc_no_link = xyes; then
14726 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14728 { (exit 1); exit 1; }; }
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14738 main ()
14742 return 0;
14744 _ACEOF
14745 rm -f conftest.$ac_objext conftest$ac_exeext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14747 (eval $ac_link) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try='test -z "$ac_cxx_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14768 lt_aix_libpath_sed='
14769 /Import File Strings/,/^$/ {
14770 /^0/ {
14771 s/^0 *\(.*\)$/\1/
14775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14776 # Check for a 64-bit object if we didn't find anything.
14777 if test -z "$aix_libpath"; then
14778 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14780 else
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14785 rm -f conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14789 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14790 # Warning - without using the other run time loading flags,
14791 # -berok will link without error, but may produce a broken library.
14792 no_undefined_flag_CXX=' ${wl}-bernotok'
14793 allow_undefined_flag_CXX=' ${wl}-berok'
14794 # Exported symbols can be pulled into shared objects from archives
14795 whole_archive_flag_spec_CXX='$convenience'
14796 archive_cmds_need_lc_CXX=yes
14797 # This is similar to how AIX traditionally builds its shared
14798 # libraries.
14799 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14804 beos*)
14805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14806 allow_undefined_flag_CXX=unsupported
14807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14808 # support --undefined. This deserves some investigation. FIXME
14809 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810 else
14811 ld_shlibs_CXX=no
14815 chorus*)
14816 case $cc_basename in
14818 # FIXME: insert proper C++ library support
14819 ld_shlibs_CXX=no
14821 esac
14824 cygwin* | mingw* | pw32* | cegcc*)
14825 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14826 # as there is no search path for DLLs.
14827 hardcode_libdir_flag_spec_CXX='-L$libdir'
14828 allow_undefined_flag_CXX=unsupported
14829 always_export_symbols_CXX=no
14830 enable_shared_with_static_runtimes_CXX=yes
14832 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14833 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14834 # If the export-symbols file already is a .def file (1st line
14835 # is EXPORTS), use it as is; otherwise, prepend...
14836 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14837 cp $export_symbols $output_objdir/$soname.def;
14838 else
14839 echo EXPORTS > $output_objdir/$soname.def;
14840 cat $export_symbols >> $output_objdir/$soname.def;
14842 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14843 else
14844 ld_shlibs_CXX=no
14847 darwin* | rhapsody*)
14850 archive_cmds_need_lc_CXX=no
14851 hardcode_direct_CXX=no
14852 hardcode_automatic_CXX=yes
14853 hardcode_shlibpath_var_CXX=unsupported
14854 whole_archive_flag_spec_CXX=''
14855 link_all_deplibs_CXX=yes
14856 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14857 case $cc_basename in
14858 ifort*) _lt_dar_can_shared=yes ;;
14859 *) _lt_dar_can_shared=$GCC ;;
14860 esac
14861 if test "$_lt_dar_can_shared" = "yes"; then
14862 output_verbose_link_cmd=echo
14863 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14864 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14865 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14866 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14867 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14868 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14869 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14872 else
14873 ld_shlibs_CXX=no
14878 dgux*)
14879 case $cc_basename in
14880 ec++*)
14881 # FIXME: insert proper C++ library support
14882 ld_shlibs_CXX=no
14884 ghcx*)
14885 # Green Hills C++ Compiler
14886 # FIXME: insert proper C++ library support
14887 ld_shlibs_CXX=no
14890 # FIXME: insert proper C++ library support
14891 ld_shlibs_CXX=no
14893 esac
14896 freebsd[12]*)
14897 # C++ shared libraries reported to be fairly broken before
14898 # switch to ELF
14899 ld_shlibs_CXX=no
14902 freebsd-elf*)
14903 archive_cmds_need_lc_CXX=no
14906 freebsd* | dragonfly*)
14907 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14908 # conventions
14909 ld_shlibs_CXX=yes
14912 gnu*)
14915 hpux9*)
14916 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14917 hardcode_libdir_separator_CXX=:
14918 export_dynamic_flag_spec_CXX='${wl}-E'
14919 hardcode_direct_CXX=yes
14920 hardcode_minus_L_CXX=yes # Not in the search PATH,
14921 # but as the default
14922 # location of the library.
14924 case $cc_basename in
14925 CC*)
14926 # FIXME: insert proper C++ library support
14927 ld_shlibs_CXX=no
14929 aCC*)
14930 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14931 # Commands to make compiler produce verbose output that lists
14932 # what "hidden" libraries, object files and flags are used when
14933 # linking a shared library.
14935 # There doesn't appear to be a way to prevent this compiler from
14936 # explicitly linking system object files so we need to strip them
14937 # from the output so that they don't get included in the library
14938 # dependencies.
14939 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14942 if test "$GXX" = yes; then
14943 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14944 else
14945 # FIXME: insert proper C++ library support
14946 ld_shlibs_CXX=no
14949 esac
14952 hpux10*|hpux11*)
14953 if test $with_gnu_ld = no; then
14954 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14955 hardcode_libdir_separator_CXX=:
14957 case $host_cpu in
14958 hppa*64*|ia64*)
14961 export_dynamic_flag_spec_CXX='${wl}-E'
14963 esac
14965 case $host_cpu in
14966 hppa*64*|ia64*)
14967 hardcode_direct_CXX=no
14968 hardcode_shlibpath_var_CXX=no
14971 hardcode_direct_CXX=yes
14972 hardcode_direct_absolute_CXX=yes
14973 hardcode_minus_L_CXX=yes # Not in the search PATH,
14974 # but as the default
14975 # location of the library.
14977 esac
14979 case $cc_basename in
14980 CC*)
14981 # FIXME: insert proper C++ library support
14982 ld_shlibs_CXX=no
14984 aCC*)
14985 case $host_cpu in
14986 hppa*64*)
14987 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14989 ia64*)
14990 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14993 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14995 esac
14996 # Commands to make compiler produce verbose output that lists
14997 # what "hidden" libraries, object files and flags are used when
14998 # linking a shared library.
15000 # There doesn't appear to be a way to prevent this compiler from
15001 # explicitly linking system object files so we need to strip them
15002 # from the output so that they don't get included in the library
15003 # dependencies.
15004 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15007 if test "$GXX" = yes; then
15008 if test $with_gnu_ld = no; then
15009 case $host_cpu in
15010 hppa*64*)
15011 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15013 ia64*)
15014 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15017 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15019 esac
15021 else
15022 # FIXME: insert proper C++ library support
15023 ld_shlibs_CXX=no
15026 esac
15029 interix[3-9]*)
15030 hardcode_direct_CXX=no
15031 hardcode_shlibpath_var_CXX=no
15032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15033 export_dynamic_flag_spec_CXX='${wl}-E'
15034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035 # Instead, shared libraries are loaded at an image base (0x10000000 by
15036 # default) and relocated if they conflict, which is a slow very memory
15037 # consuming and fragmenting process. To avoid this, we pick a random,
15038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15040 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15043 irix5* | irix6*)
15044 case $cc_basename in
15045 CC*)
15046 # SGI C++
15047 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15049 # Archives containing C++ object files must be created using
15050 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15051 # necessary to make sure instantiated templates are included
15052 # in the archive.
15053 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15056 if test "$GXX" = yes; then
15057 if test "$with_gnu_ld" = no; then
15058 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15059 else
15060 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15063 link_all_deplibs_CXX=yes
15065 esac
15066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15067 hardcode_libdir_separator_CXX=:
15068 inherit_rpath_CXX=yes
15071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15072 case $cc_basename in
15073 KCC*)
15074 # Kuck and Associates, Inc. (KAI) C++ Compiler
15076 # KCC will only create a shared library if the output file
15077 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15078 # to its proper name (with version) after linking.
15079 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15080 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15081 # Commands to make compiler produce verbose output that lists
15082 # what "hidden" libraries, object files and flags are used when
15083 # linking a shared library.
15085 # There doesn't appear to be a way to prevent this compiler from
15086 # explicitly linking system object files so we need to strip them
15087 # from the output so that they don't get included in the library
15088 # dependencies.
15089 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15094 # Archives containing C++ object files must be created using
15095 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15096 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15098 icpc* | ecpc* )
15099 # Intel C++
15100 with_gnu_ld=yes
15101 # version 8.0 and above of icpc choke on multiply defined symbols
15102 # if we add $predep_objects and $postdep_objects, however 7.1 and
15103 # earlier do not add the objects themselves.
15104 case `$CC -V 2>&1` in
15105 *"Version 7."*)
15106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15109 *) # Version 8.0 or newer
15110 tmp_idyn=
15111 case $host_cpu in
15112 ia64*) tmp_idyn=' -i_dynamic';;
15113 esac
15114 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15117 esac
15118 archive_cmds_need_lc_CXX=no
15119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15120 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15121 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15123 pgCC* | pgcpp*)
15124 # Portland Group C++ compiler
15125 case `$CC -V` in
15126 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15127 prelink_cmds_CXX='tpldir=Template.dir~
15128 rm -rf $tpldir~
15129 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15130 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15131 old_archive_cmds_CXX='tpldir=Template.dir~
15132 rm -rf $tpldir~
15133 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15134 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15135 $RANLIB $oldlib'
15136 archive_cmds_CXX='tpldir=Template.dir~
15137 rm -rf $tpldir~
15138 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15139 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15140 archive_expsym_cmds_CXX='tpldir=Template.dir~
15141 rm -rf $tpldir~
15142 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15143 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15145 *) # Version 6 will use weak symbols
15146 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15147 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15149 esac
15151 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15153 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15155 cxx*)
15156 # Compaq C++
15157 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15160 runpath_var=LD_RUN_PATH
15161 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15162 hardcode_libdir_separator_CXX=:
15164 # Commands to make compiler produce verbose output that lists
15165 # what "hidden" libraries, object files and flags are used when
15166 # linking a shared library.
15168 # There doesn't appear to be a way to prevent this compiler from
15169 # explicitly linking system object files so we need to strip them
15170 # from the output so that they don't get included in the library
15171 # dependencies.
15172 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15174 xl*)
15175 # IBM XL 8.0 on PPC, with GNU ld
15176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15178 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179 if test "x$supports_anon_versioning" = xyes; then
15180 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15182 echo "local: *; };" >> $output_objdir/$libname.ver~
15183 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15187 case `$CC -V 2>&1 | sed 5q` in
15188 *Sun\ C*)
15189 # Sun C++ 5.9
15190 no_undefined_flag_CXX=' -zdefs'
15191 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15192 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15193 hardcode_libdir_flag_spec_CXX='-R$libdir'
15194 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15195 compiler_needs_object_CXX=yes
15197 # Not sure whether something based on
15198 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15199 # would be better.
15200 output_verbose_link_cmd='echo'
15202 # Archives containing C++ object files must be created using
15203 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15204 # necessary to make sure instantiated templates are included
15205 # in the archive.
15206 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15208 esac
15210 esac
15213 lynxos*)
15214 # FIXME: insert proper C++ library support
15215 ld_shlibs_CXX=no
15218 m88k*)
15219 # FIXME: insert proper C++ library support
15220 ld_shlibs_CXX=no
15223 mvs*)
15224 case $cc_basename in
15225 cxx*)
15226 # FIXME: insert proper C++ library support
15227 ld_shlibs_CXX=no
15230 # FIXME: insert proper C++ library support
15231 ld_shlibs_CXX=no
15233 esac
15236 netbsd*)
15237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15238 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15239 wlarc=
15240 hardcode_libdir_flag_spec_CXX='-R$libdir'
15241 hardcode_direct_CXX=yes
15242 hardcode_shlibpath_var_CXX=no
15244 # Workaround some broken pre-1.5 toolchains
15245 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15248 *nto* | *qnx*)
15249 ld_shlibs_CXX=yes
15252 openbsd2*)
15253 # C++ shared libraries are fairly broken
15254 ld_shlibs_CXX=no
15257 openbsd*)
15258 if test -f /usr/libexec/ld.so; then
15259 hardcode_direct_CXX=yes
15260 hardcode_shlibpath_var_CXX=no
15261 hardcode_direct_absolute_CXX=yes
15262 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15265 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15266 export_dynamic_flag_spec_CXX='${wl}-E'
15267 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15269 output_verbose_link_cmd=echo
15270 else
15271 ld_shlibs_CXX=no
15275 osf3* | osf4* | osf5*)
15276 case $cc_basename in
15277 KCC*)
15278 # Kuck and Associates, Inc. (KAI) C++ Compiler
15280 # KCC will only create a shared library if the output file
15281 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15282 # to its proper name (with version) after linking.
15283 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15286 hardcode_libdir_separator_CXX=:
15288 # Archives containing C++ object files must be created using
15289 # the KAI C++ compiler.
15290 case $host in
15291 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15292 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15293 esac
15295 RCC*)
15296 # Rational C++ 2.4.1
15297 # FIXME: insert proper C++ library support
15298 ld_shlibs_CXX=no
15300 cxx*)
15301 case $host in
15302 osf3*)
15303 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15304 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15308 allow_undefined_flag_CXX=' -expect_unresolved \*'
15309 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15310 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15311 echo "-hidden">> $lib.exp~
15312 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15313 $RM $lib.exp'
15314 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15316 esac
15318 hardcode_libdir_separator_CXX=:
15320 # Commands to make compiler produce verbose output that lists
15321 # what "hidden" libraries, object files and flags are used when
15322 # linking a shared library.
15324 # There doesn't appear to be a way to prevent this compiler from
15325 # explicitly linking system object files so we need to strip them
15326 # from the output so that they don't get included in the library
15327 # dependencies.
15328 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15331 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15332 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15333 case $host in
15334 osf3*)
15335 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15338 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15340 esac
15342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15343 hardcode_libdir_separator_CXX=:
15345 # Commands to make compiler produce verbose output that lists
15346 # what "hidden" libraries, object files and flags are used when
15347 # linking a shared library.
15348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15350 else
15351 # FIXME: insert proper C++ library support
15352 ld_shlibs_CXX=no
15355 esac
15358 psos*)
15359 # FIXME: insert proper C++ library support
15360 ld_shlibs_CXX=no
15363 sunos4*)
15364 case $cc_basename in
15365 CC*)
15366 # Sun C++ 4.x
15367 # FIXME: insert proper C++ library support
15368 ld_shlibs_CXX=no
15370 lcc*)
15371 # Lucid
15372 # FIXME: insert proper C++ library support
15373 ld_shlibs_CXX=no
15376 # FIXME: insert proper C++ library support
15377 ld_shlibs_CXX=no
15379 esac
15382 solaris*)
15383 case $cc_basename in
15384 CC*)
15385 # Sun C++ 4.2, 5.x and Centerline C++
15386 archive_cmds_need_lc_CXX=yes
15387 no_undefined_flag_CXX=' -zdefs'
15388 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15389 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15390 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15392 hardcode_libdir_flag_spec_CXX='-R$libdir'
15393 hardcode_shlibpath_var_CXX=no
15394 case $host_os in
15395 solaris2.[0-5] | solaris2.[0-5].*) ;;
15397 # The compiler driver will combine and reorder linker options,
15398 # but understands `-z linker_flag'.
15399 # Supported since Solaris 2.6 (maybe 2.5.1?)
15400 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15402 esac
15403 link_all_deplibs_CXX=yes
15405 output_verbose_link_cmd='echo'
15407 # Archives containing C++ object files must be created using
15408 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15409 # necessary to make sure instantiated templates are included
15410 # in the archive.
15411 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15413 gcx*)
15414 # Green Hills C++ Compiler
15415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15417 # The C++ compiler must be used to create the archive.
15418 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15421 # GNU C++ compiler with Solaris linker
15422 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15423 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15424 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15425 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15426 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15427 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15429 # Commands to make compiler produce verbose output that lists
15430 # what "hidden" libraries, object files and flags are used when
15431 # linking a shared library.
15432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15433 else
15434 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15435 # platform.
15436 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15437 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15438 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15440 # Commands to make compiler produce verbose output that lists
15441 # what "hidden" libraries, object files and flags are used when
15442 # linking a shared library.
15443 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15446 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15447 case $host_os in
15448 solaris2.[0-5] | solaris2.[0-5].*) ;;
15450 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15452 esac
15455 esac
15458 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15459 no_undefined_flag_CXX='${wl}-z,text'
15460 archive_cmds_need_lc_CXX=no
15461 hardcode_shlibpath_var_CXX=no
15462 runpath_var='LD_RUN_PATH'
15464 case $cc_basename in
15465 CC*)
15466 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 esac
15476 sysv5* | sco3.2v5* | sco5v6*)
15477 # Note: We can NOT use -z defs as we might desire, because we do not
15478 # link with -lc, and that would cause any symbols used from libc to
15479 # always be unresolved, which means just about no library would
15480 # ever link correctly. If we're not using GNU ld we use -z text
15481 # though, which does catch some bad symbols but isn't as heavy-handed
15482 # as -z defs.
15483 no_undefined_flag_CXX='${wl}-z,text'
15484 allow_undefined_flag_CXX='${wl}-z,nodefs'
15485 archive_cmds_need_lc_CXX=no
15486 hardcode_shlibpath_var_CXX=no
15487 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15488 hardcode_libdir_separator_CXX=':'
15489 link_all_deplibs_CXX=yes
15490 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15491 runpath_var='LD_RUN_PATH'
15493 case $cc_basename in
15494 CC*)
15495 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 esac
15505 tandem*)
15506 case $cc_basename in
15507 NCC*)
15508 # NonStop-UX NCC 3.20
15509 # FIXME: insert proper C++ library support
15510 ld_shlibs_CXX=no
15513 # FIXME: insert proper C++ library support
15514 ld_shlibs_CXX=no
15516 esac
15519 vxworks*)
15520 # FIXME: insert proper C++ library support
15521 ld_shlibs_CXX=no
15525 # FIXME: insert proper C++ library support
15526 ld_shlibs_CXX=no
15528 esac
15530 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15531 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15532 test "$ld_shlibs_CXX" = no && can_build_shared=no
15534 GCC_CXX="$GXX"
15535 LD_CXX="$LD"
15537 ## CAVEAT EMPTOR:
15538 ## There is no encapsulation within the following macros, do not change
15539 ## the running order or otherwise move them around unless you know exactly
15540 ## what you are doing...
15541 # Dependencies to place before and after the object being linked:
15542 predep_objects_CXX=
15543 postdep_objects_CXX=
15544 predeps_CXX=
15545 postdeps_CXX=
15546 compiler_lib_search_path_CXX=
15548 cat > conftest.$ac_ext <<_LT_EOF
15549 class Foo
15551 public:
15552 Foo (void) { a = 0; }
15553 private:
15554 int a;
15556 _LT_EOF
15558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15559 (eval $ac_compile) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; then
15563 # Parse the compiler output and extract the necessary
15564 # objects, libraries and library flags.
15566 # Sentinel used to keep track of whether or not we are before
15567 # the conftest object file.
15568 pre_test_object_deps_done=no
15570 for p in `eval "$output_verbose_link_cmd"`; do
15571 case $p in
15573 -L* | -R* | -l*)
15574 # Some compilers place space between "-{L,R}" and the path.
15575 # Remove the space.
15576 if test $p = "-L" ||
15577 test $p = "-R"; then
15578 prev=$p
15579 continue
15580 else
15581 prev=
15584 if test "$pre_test_object_deps_done" = no; then
15585 case $p in
15586 -L* | -R*)
15587 # Internal compiler library paths should come after those
15588 # provided the user. The postdeps already come after the
15589 # user supplied libs so there is no need to process them.
15590 if test -z "$compiler_lib_search_path_CXX"; then
15591 compiler_lib_search_path_CXX="${prev}${p}"
15592 else
15593 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15596 # The "-l" case would never come before the object being
15597 # linked, so don't bother handling this case.
15598 esac
15599 else
15600 if test -z "$postdeps_CXX"; then
15601 postdeps_CXX="${prev}${p}"
15602 else
15603 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15608 *.$objext)
15609 # This assumes that the test object file only shows up
15610 # once in the compiler output.
15611 if test "$p" = "conftest.$objext"; then
15612 pre_test_object_deps_done=yes
15613 continue
15616 if test "$pre_test_object_deps_done" = no; then
15617 if test -z "$predep_objects_CXX"; then
15618 predep_objects_CXX="$p"
15619 else
15620 predep_objects_CXX="$predep_objects_CXX $p"
15622 else
15623 if test -z "$postdep_objects_CXX"; then
15624 postdep_objects_CXX="$p"
15625 else
15626 postdep_objects_CXX="$postdep_objects_CXX $p"
15631 *) ;; # Ignore the rest.
15633 esac
15634 done
15636 # Clean up.
15637 rm -f a.out a.exe
15638 else
15639 echo "libtool.m4: error: problem compiling CXX test program"
15642 $RM -f confest.$objext
15644 # PORTME: override above test on systems where it is broken
15645 case $host_os in
15646 interix[3-9]*)
15647 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15648 # hack all around it, let's just trust "g++" to DTRT.
15649 predep_objects_CXX=
15650 postdep_objects_CXX=
15651 postdeps_CXX=
15654 linux*)
15655 case `$CC -V 2>&1 | sed 5q` in
15656 *Sun\ C*)
15657 # Sun C++ 5.9
15659 # The more standards-conforming stlport4 library is
15660 # incompatible with the Cstd library. Avoid specifying
15661 # it if it's in CXXFLAGS. Ignore libCrun as
15662 # -library=stlport4 depends on it.
15663 case " $CXX $CXXFLAGS " in
15664 *" -library=stlport4 "*)
15665 solaris_use_stlport4=yes
15667 esac
15669 if test "$solaris_use_stlport4" != yes; then
15670 postdeps_CXX='-library=Cstd -library=Crun'
15673 esac
15676 solaris*)
15677 case $cc_basename in
15678 CC*)
15679 # The more standards-conforming stlport4 library is
15680 # incompatible with the Cstd library. Avoid specifying
15681 # it if it's in CXXFLAGS. Ignore libCrun as
15682 # -library=stlport4 depends on it.
15683 case " $CXX $CXXFLAGS " in
15684 *" -library=stlport4 "*)
15685 solaris_use_stlport4=yes
15687 esac
15689 # Adding this requires a known-good setup of shared libraries for
15690 # Sun compiler versions before 5.6, else PIC objects from an old
15691 # archive will be linked into the output, leading to subtle bugs.
15692 if test "$solaris_use_stlport4" != yes; then
15693 postdeps_CXX='-library=Cstd -library=Crun'
15696 esac
15698 esac
15701 case " $postdeps_CXX " in
15702 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15703 esac
15704 compiler_lib_search_dirs_CXX=
15705 if test -n "${compiler_lib_search_path_CXX}"; then
15706 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15739 lt_prog_compiler_wl_CXX=
15740 lt_prog_compiler_pic_CXX=
15741 lt_prog_compiler_static_CXX=
15743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15746 # C++ specific cases for pic, static, wl, etc.
15747 if test "$GXX" = yes; then
15748 lt_prog_compiler_wl_CXX='-Wl,'
15749 lt_prog_compiler_static_CXX='-static'
15751 case $host_os in
15752 aix*)
15753 # All AIX code is PIC.
15754 if test "$host_cpu" = ia64; then
15755 # AIX 5 now supports IA64 processor
15756 lt_prog_compiler_static_CXX='-Bstatic'
15760 amigaos*)
15761 case $host_cpu in
15762 powerpc)
15763 # see comment about AmigaOS4 .so support
15764 lt_prog_compiler_pic_CXX='-fPIC'
15766 m68k)
15767 # FIXME: we need at least 68020 code to build shared libraries, but
15768 # adding the `-m68020' flag to GCC prevents building anything better,
15769 # like `-m68040'.
15770 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15772 esac
15775 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15776 # PIC is the default for these OSes.
15778 mingw* | cygwin* | os2* | pw32* | cegcc*)
15779 # This hack is so that the source file can tell whether it is being
15780 # built for inclusion in a dll (and should export symbols for example).
15781 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15782 # (--disable-auto-import) libraries
15783 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15785 darwin* | rhapsody*)
15786 # PIC is the default on this platform
15787 # Common symbols not allowed in MH_DYLIB files
15788 lt_prog_compiler_pic_CXX='-fno-common'
15790 *djgpp*)
15791 # DJGPP does not support shared libraries at all
15792 lt_prog_compiler_pic_CXX=
15794 interix[3-9]*)
15795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15796 # Instead, we relocate shared libraries at runtime.
15798 sysv4*MP*)
15799 if test -d /usr/nec; then
15800 lt_prog_compiler_pic_CXX=-Kconform_pic
15803 hpux*)
15804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15806 # sets the default TLS model and affects inlining.
15807 case $host_cpu in
15808 hppa*64*)
15811 lt_prog_compiler_pic_CXX='-fPIC'
15813 esac
15815 *qnx* | *nto*)
15816 # QNX uses GNU C++, but need to define -shared option too, otherwise
15817 # it will coredump.
15818 lt_prog_compiler_pic_CXX='-fPIC -shared'
15821 lt_prog_compiler_pic_CXX='-fPIC'
15823 esac
15824 else
15825 case $host_os in
15826 aix[4-9]*)
15827 # All AIX code is PIC.
15828 if test "$host_cpu" = ia64; then
15829 # AIX 5 now supports IA64 processor
15830 lt_prog_compiler_static_CXX='-Bstatic'
15831 else
15832 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15835 chorus*)
15836 case $cc_basename in
15837 cxch68*)
15838 # Green Hills C++ Compiler
15839 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15841 esac
15843 dgux*)
15844 case $cc_basename in
15845 ec++*)
15846 lt_prog_compiler_pic_CXX='-KPIC'
15848 ghcx*)
15849 # Green Hills C++ Compiler
15850 lt_prog_compiler_pic_CXX='-pic'
15854 esac
15856 freebsd* | dragonfly*)
15857 # FreeBSD uses GNU C++
15859 hpux9* | hpux10* | hpux11*)
15860 case $cc_basename in
15861 CC*)
15862 lt_prog_compiler_wl_CXX='-Wl,'
15863 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15864 if test "$host_cpu" != ia64; then
15865 lt_prog_compiler_pic_CXX='+Z'
15868 aCC*)
15869 lt_prog_compiler_wl_CXX='-Wl,'
15870 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15871 case $host_cpu in
15872 hppa*64*|ia64*)
15873 # +Z the default
15876 lt_prog_compiler_pic_CXX='+Z'
15878 esac
15882 esac
15884 interix*)
15885 # This is c89, which is MS Visual C++ (no shared libs)
15886 # Anyone wants to do a port?
15888 irix5* | irix6* | nonstopux*)
15889 case $cc_basename in
15890 CC*)
15891 lt_prog_compiler_wl_CXX='-Wl,'
15892 lt_prog_compiler_static_CXX='-non_shared'
15893 # CC pic flag -KPIC is the default.
15897 esac
15899 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15900 case $cc_basename in
15901 KCC*)
15902 # KAI C++ Compiler
15903 lt_prog_compiler_wl_CXX='--backend -Wl,'
15904 lt_prog_compiler_pic_CXX='-fPIC'
15906 ecpc* )
15907 # old Intel C++ for x86_64 which still supported -KPIC.
15908 lt_prog_compiler_wl_CXX='-Wl,'
15909 lt_prog_compiler_pic_CXX='-KPIC'
15910 lt_prog_compiler_static_CXX='-static'
15912 icpc* )
15913 # Intel C++, used to be incompatible with GCC.
15914 # ICC 10 doesn't accept -KPIC any more.
15915 lt_prog_compiler_wl_CXX='-Wl,'
15916 lt_prog_compiler_pic_CXX='-fPIC'
15917 lt_prog_compiler_static_CXX='-static'
15919 pgCC* | pgcpp*)
15920 # Portland Group C++ compiler
15921 lt_prog_compiler_wl_CXX='-Wl,'
15922 lt_prog_compiler_pic_CXX='-fpic'
15923 lt_prog_compiler_static_CXX='-Bstatic'
15925 cxx*)
15926 # Compaq C++
15927 # Make sure the PIC flag is empty. It appears that all Alpha
15928 # Linux and Compaq Tru64 Unix objects are PIC.
15929 lt_prog_compiler_pic_CXX=
15930 lt_prog_compiler_static_CXX='-non_shared'
15932 xlc* | xlC*)
15933 # IBM XL 8.0 on PPC
15934 lt_prog_compiler_wl_CXX='-Wl,'
15935 lt_prog_compiler_pic_CXX='-qpic'
15936 lt_prog_compiler_static_CXX='-qstaticlink'
15939 case `$CC -V 2>&1 | sed 5q` in
15940 *Sun\ C*)
15941 # Sun C++ 5.9
15942 lt_prog_compiler_pic_CXX='-KPIC'
15943 lt_prog_compiler_static_CXX='-Bstatic'
15944 lt_prog_compiler_wl_CXX='-Qoption ld '
15946 esac
15948 esac
15950 lynxos*)
15952 m88k*)
15954 mvs*)
15955 case $cc_basename in
15956 cxx*)
15957 lt_prog_compiler_pic_CXX='-W c,exportall'
15961 esac
15963 netbsd*)
15965 *qnx* | *nto*)
15966 # QNX uses GNU C++, but need to define -shared option too, otherwise
15967 # it will coredump.
15968 lt_prog_compiler_pic_CXX='-fPIC -shared'
15970 osf3* | osf4* | osf5*)
15971 case $cc_basename in
15972 KCC*)
15973 lt_prog_compiler_wl_CXX='--backend -Wl,'
15975 RCC*)
15976 # Rational C++ 2.4.1
15977 lt_prog_compiler_pic_CXX='-pic'
15979 cxx*)
15980 # Digital/Compaq C++
15981 lt_prog_compiler_wl_CXX='-Wl,'
15982 # Make sure the PIC flag is empty. It appears that all Alpha
15983 # Linux and Compaq Tru64 Unix objects are PIC.
15984 lt_prog_compiler_pic_CXX=
15985 lt_prog_compiler_static_CXX='-non_shared'
15989 esac
15991 psos*)
15993 solaris*)
15994 case $cc_basename in
15995 CC*)
15996 # Sun C++ 4.2, 5.x and Centerline C++
15997 lt_prog_compiler_pic_CXX='-KPIC'
15998 lt_prog_compiler_static_CXX='-Bstatic'
15999 lt_prog_compiler_wl_CXX='-Qoption ld '
16001 gcx*)
16002 # Green Hills C++ Compiler
16003 lt_prog_compiler_pic_CXX='-PIC'
16007 esac
16009 sunos4*)
16010 case $cc_basename in
16011 CC*)
16012 # Sun C++ 4.x
16013 lt_prog_compiler_pic_CXX='-pic'
16014 lt_prog_compiler_static_CXX='-Bstatic'
16016 lcc*)
16017 # Lucid
16018 lt_prog_compiler_pic_CXX='-pic'
16022 esac
16024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16025 case $cc_basename in
16026 CC*)
16027 lt_prog_compiler_wl_CXX='-Wl,'
16028 lt_prog_compiler_pic_CXX='-KPIC'
16029 lt_prog_compiler_static_CXX='-Bstatic'
16031 esac
16033 tandem*)
16034 case $cc_basename in
16035 NCC*)
16036 # NonStop-UX NCC 3.20
16037 lt_prog_compiler_pic_CXX='-KPIC'
16041 esac
16043 vxworks*)
16046 lt_prog_compiler_can_build_shared_CXX=no
16048 esac
16051 case $host_os in
16052 # For platforms which do not support PIC, -DPIC is meaningless:
16053 *djgpp*)
16054 lt_prog_compiler_pic_CXX=
16057 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16059 esac
16060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16061 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16066 # Check to make sure the PIC flag actually works.
16068 if test -n "$lt_prog_compiler_pic_CXX"; then
16069 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16070 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16071 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 lt_cv_prog_compiler_pic_works_CXX=no
16075 ac_outfile=conftest.$ac_objext
16076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16077 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16078 # Insert the option either (1) after the last *FLAGS variable, or
16079 # (2) before a word containing "conftest.", or (3) at the end.
16080 # Note that $ac_compile itself does not contain backslashes and begins
16081 # with a dollar sign (not a hyphen), so the echo should work correctly.
16082 # The option is referenced via a variable to avoid confusing sed.
16083 lt_compile=`echo "$ac_compile" | $SED \
16084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16086 -e 's:$: $lt_compiler_flag:'`
16087 (eval echo "\"\$as_me:16087: $lt_compile\"" >&5)
16088 (eval "$lt_compile" 2>conftest.err)
16089 ac_status=$?
16090 cat conftest.err >&5
16091 echo "$as_me:16091: \$? = $ac_status" >&5
16092 if (exit $ac_status) && test -s "$ac_outfile"; then
16093 # The compiler can only warn and ignore the option if not recognized
16094 # So say no if there are warnings other than the usual output.
16095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16098 lt_cv_prog_compiler_pic_works_CXX=yes
16101 $RM conftest*
16104 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16105 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
16107 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16108 case $lt_prog_compiler_pic_CXX in
16109 "" | " "*) ;;
16110 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16111 esac
16112 else
16113 lt_prog_compiler_pic_CXX=
16114 lt_prog_compiler_can_build_shared_CXX=no
16122 # Check to make sure the static flag actually works.
16124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16125 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16127 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130 lt_cv_prog_compiler_static_works_CXX=no
16131 save_LDFLAGS="$LDFLAGS"
16132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16135 # The linker can only warn and ignore the option if not recognized
16136 # So say no if there are warnings
16137 if test -s conftest.err; then
16138 # Append any errors to the config.log.
16139 cat conftest.err 1>&5
16140 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16142 if diff conftest.exp conftest.er2 >/dev/null; then
16143 lt_cv_prog_compiler_static_works_CXX=yes
16145 else
16146 lt_cv_prog_compiler_static_works_CXX=yes
16149 $RM -r conftest*
16150 LDFLAGS="$save_LDFLAGS"
16153 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16154 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
16156 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16158 else
16159 lt_prog_compiler_static_CXX=
16165 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16166 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16167 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170 lt_cv_prog_compiler_c_o_CXX=no
16171 $RM -r conftest 2>/dev/null
16172 mkdir conftest
16173 cd conftest
16174 mkdir out
16175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16177 lt_compiler_flag="-o out/conftest2.$ac_objext"
16178 # Insert the option either (1) after the last *FLAGS variable, or
16179 # (2) before a word containing "conftest.", or (3) at the end.
16180 # Note that $ac_compile itself does not contain backslashes and begins
16181 # with a dollar sign (not a hyphen), so the echo should work correctly.
16182 lt_compile=`echo "$ac_compile" | $SED \
16183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16185 -e 's:$: $lt_compiler_flag:'`
16186 (eval echo "\"\$as_me:16186: $lt_compile\"" >&5)
16187 (eval "$lt_compile" 2>out/conftest.err)
16188 ac_status=$?
16189 cat out/conftest.err >&5
16190 echo "$as_me:16190: \$? = $ac_status" >&5
16191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16192 then
16193 # The compiler can only warn and ignore the option if not recognized
16194 # So say no if there are warnings
16195 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16198 lt_cv_prog_compiler_c_o_CXX=yes
16201 chmod u+w . 2>&5
16202 $RM conftest*
16203 # SGI C++ compiler will create directory out/ii_files/ for
16204 # template instantiation
16205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16206 $RM out/* && rmdir out
16207 cd ..
16208 $RM -r conftest
16209 $RM conftest*
16212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16217 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16218 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16219 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 lt_cv_prog_compiler_c_o_CXX=no
16223 $RM -r conftest 2>/dev/null
16224 mkdir conftest
16225 cd conftest
16226 mkdir out
16227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16229 lt_compiler_flag="-o out/conftest2.$ac_objext"
16230 # Insert the option either (1) after the last *FLAGS variable, or
16231 # (2) before a word containing "conftest.", or (3) at the end.
16232 # Note that $ac_compile itself does not contain backslashes and begins
16233 # with a dollar sign (not a hyphen), so the echo should work correctly.
16234 lt_compile=`echo "$ac_compile" | $SED \
16235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16237 -e 's:$: $lt_compiler_flag:'`
16238 (eval echo "\"\$as_me:16238: $lt_compile\"" >&5)
16239 (eval "$lt_compile" 2>out/conftest.err)
16240 ac_status=$?
16241 cat out/conftest.err >&5
16242 echo "$as_me:16242: \$? = $ac_status" >&5
16243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16244 then
16245 # The compiler can only warn and ignore the option if not recognized
16246 # So say no if there are warnings
16247 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16250 lt_cv_prog_compiler_c_o_CXX=yes
16253 chmod u+w . 2>&5
16254 $RM conftest*
16255 # SGI C++ compiler will create directory out/ii_files/ for
16256 # template instantiation
16257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16258 $RM out/* && rmdir out
16259 cd ..
16260 $RM -r conftest
16261 $RM conftest*
16264 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16265 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16270 hard_links="nottested"
16271 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16272 # do not overwrite the value of need_locks provided by the user
16273 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16274 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16275 hard_links=yes
16276 $RM conftest*
16277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278 touch conftest.a
16279 ln conftest.a conftest.b 2>&5 || hard_links=no
16280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16281 echo "$as_me:$LINENO: result: $hard_links" >&5
16282 echo "${ECHO_T}$hard_links" >&6
16283 if test "$hard_links" = no; then
16284 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16285 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16286 need_locks=warn
16288 else
16289 need_locks=no
16294 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16298 case $host_os in
16299 aix[4-9]*)
16300 # If we're using GNU nm, then we don't want the "-C" option.
16301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16302 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16303 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16304 else
16305 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16308 pw32*)
16309 export_symbols_cmds_CXX="$ltdll_cmds"
16311 cygwin* | mingw* | cegcc*)
16312 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16315 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16317 esac
16318 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16320 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16321 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16322 test "$ld_shlibs_CXX" = no && can_build_shared=no
16324 with_gnu_ld_CXX=$with_gnu_ld
16332 # Do we need to explicitly link libc?
16334 case "x$archive_cmds_need_lc_CXX" in
16335 x|xyes)
16336 # Assume -lc should be added
16337 archive_cmds_need_lc_CXX=yes
16339 if test "$enable_shared" = yes && test "$GCC" = yes; then
16340 case $archive_cmds_CXX in
16341 *'~'*)
16342 # FIXME: we may have to deal with multi-command sequences.
16344 '$CC '*)
16345 # Test whether the compiler implicitly links with -lc since on some
16346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16347 # to ld, don't add -lc before -lgcc.
16348 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16350 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 $RM conftest*
16354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357 (eval $ac_compile) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } 2>conftest.err; then
16361 soname=conftest
16362 lib=conftest
16363 libobjs=conftest.$ac_objext
16364 deplibs=
16365 wl=$lt_prog_compiler_wl_CXX
16366 pic_flag=$lt_prog_compiler_pic_CXX
16367 compiler_flags=-v
16368 linker_flags=-v
16369 verstring=
16370 output_objdir=.
16371 libname=conftest
16372 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16373 allow_undefined_flag_CXX=
16374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16375 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }
16379 then
16380 lt_cv_archive_cmds_need_lc_CXX=no
16381 else
16382 lt_cv_archive_cmds_need_lc_CXX=yes
16384 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16385 else
16386 cat conftest.err 1>&5
16388 $RM conftest*
16391 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16392 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
16393 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16395 esac
16398 esac
16463 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16464 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16466 library_names_spec=
16467 libname_spec='lib$name'
16468 soname_spec=
16469 shrext_cmds=".so"
16470 postinstall_cmds=
16471 postuninstall_cmds=
16472 finish_cmds=
16473 finish_eval=
16474 shlibpath_var=
16475 shlibpath_overrides_runpath=unknown
16476 version_type=none
16477 dynamic_linker="$host_os ld.so"
16478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16479 need_lib_prefix=unknown
16480 hardcode_into_libs=no
16482 # when you set need_version to no, make sure it does not cause -set_version
16483 # flags to be left without arguments
16484 need_version=unknown
16486 case $host_os in
16487 aix3*)
16488 version_type=linux
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16490 shlibpath_var=LIBPATH
16492 # AIX 3 has no versioning support, so we append a major version to the name.
16493 soname_spec='${libname}${release}${shared_ext}$major'
16496 aix[4-9]*)
16497 version_type=linux
16498 need_lib_prefix=no
16499 need_version=no
16500 hardcode_into_libs=yes
16501 if test "$host_cpu" = ia64; then
16502 # AIX 5 supports IA64
16503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 else
16506 # With GCC up to 2.95.x, collect2 would create an import file
16507 # for dependence libraries. The import file would start with
16508 # the line `#! .'. This would cause the generated library to
16509 # depend on `.', always an invalid library. This was fixed in
16510 # development snapshots of GCC prior to 3.0.
16511 case $host_os in
16512 aix4 | aix4.[01] | aix4.[01].*)
16513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16514 echo ' yes '
16515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16517 else
16518 can_build_shared=no
16521 esac
16522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16523 # soname into executable. Probably we can add versioning support to
16524 # collect2, so additional links can be useful in future.
16525 if test "$aix_use_runtimelinking" = yes; then
16526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16527 # instead of lib<name>.a to let people know that these are not
16528 # typical AIX shared libraries.
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530 else
16531 # We preserve .a as extension for shared libraries through AIX4.2
16532 # and later when we are not doing run time linking.
16533 library_names_spec='${libname}${release}.a $libname.a'
16534 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LIBPATH
16540 amigaos*)
16541 case $host_cpu in
16542 powerpc)
16543 # Since July 2007 AmigaOS4 officially supports .so libraries.
16544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547 m68k)
16548 library_names_spec='$libname.ixlibrary $libname.a'
16549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16550 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16552 esac
16555 beos*)
16556 library_names_spec='${libname}${shared_ext}'
16557 dynamic_linker="$host_os ld.so"
16558 shlibpath_var=LIBRARY_PATH
16561 bsdi[45]*)
16562 version_type=linux
16563 need_version=no
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16570 # the default ld.so.conf also contains /usr/contrib/lib and
16571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16572 # libtool to hard-code these into programs
16575 cygwin* | mingw* | pw32* | cegcc*)
16576 version_type=windows
16577 shrext_cmds=".dll"
16578 need_version=no
16579 need_lib_prefix=no
16581 case $GCC,$host_os in
16582 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16583 library_names_spec='$libname.dll.a'
16584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16585 postinstall_cmds='base_file=`basename \${file}`~
16586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16587 dldir=$destdir/`dirname \$dlpath`~
16588 test -d \$dldir || mkdir -p \$dldir~
16589 $install_prog $dir/$dlname \$dldir/$dlname~
16590 chmod a+x \$dldir/$dlname~
16591 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16592 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16595 dlpath=$dir/\$dldll~
16596 $RM \$dlpath'
16597 shlibpath_overrides_runpath=yes
16599 case $host_os in
16600 cygwin*)
16601 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16605 mingw* | cegcc*)
16606 # MinGW DLLs use traditional 'lib' prefix
16607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16609 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16610 # It is most probably a Windows format PATH printed by
16611 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16612 # path with ; separators, and with drive letters. We can handle the
16613 # drive letters (cygwin fileutils understands them), so leave them,
16614 # especially as we might pass files found there to a mingw objdump,
16615 # which wouldn't understand a cygwinified path. Ahh.
16616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617 else
16618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16621 pw32*)
16622 # pw32 DLLs use 'pw' prefix rather than 'lib'
16623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16625 esac
16629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16631 esac
16632 dynamic_linker='Win32 ld.exe'
16633 # FIXME: first we should search . and the directory the executable is in
16634 shlibpath_var=PATH
16637 darwin* | rhapsody*)
16638 dynamic_linker="$host_os dyld"
16639 version_type=darwin
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16643 soname_spec='${libname}${release}${major}$shared_ext'
16644 shlibpath_overrides_runpath=yes
16645 shlibpath_var=DYLD_LIBRARY_PATH
16646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16651 dgux*)
16652 version_type=linux
16653 need_lib_prefix=no
16654 need_version=no
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 shlibpath_var=LD_LIBRARY_PATH
16660 freebsd1*)
16661 dynamic_linker=no
16664 freebsd* | dragonfly*)
16665 # DragonFly does not have aout. When/if they implement a new
16666 # versioning mechanism, adjust this.
16667 if test -x /usr/bin/objformat; then
16668 objformat=`/usr/bin/objformat`
16669 else
16670 case $host_os in
16671 freebsd[123]*) objformat=aout ;;
16672 *) objformat=elf ;;
16673 esac
16675 version_type=freebsd-$objformat
16676 case $version_type in
16677 freebsd-elf*)
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16679 need_version=no
16680 need_lib_prefix=no
16682 freebsd-*)
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16684 need_version=yes
16686 esac
16687 shlibpath_var=LD_LIBRARY_PATH
16688 case $host_os in
16689 freebsd2*)
16690 shlibpath_overrides_runpath=yes
16692 freebsd3.[01]* | freebsdelf3.[01]*)
16693 shlibpath_overrides_runpath=yes
16694 hardcode_into_libs=yes
16696 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16697 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16698 shlibpath_overrides_runpath=no
16699 hardcode_into_libs=yes
16701 *) # from 4.6 on, and DragonFly
16702 shlibpath_overrides_runpath=yes
16703 hardcode_into_libs=yes
16705 esac
16708 gnu*)
16709 version_type=linux
16710 need_lib_prefix=no
16711 need_version=no
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 hardcode_into_libs=yes
16718 hpux9* | hpux10* | hpux11*)
16719 # Give a soname corresponding to the major version so that dld.sl refuses to
16720 # link against other versions.
16721 version_type=sunos
16722 need_lib_prefix=no
16723 need_version=no
16724 case $host_cpu in
16725 ia64*)
16726 shrext_cmds='.so'
16727 hardcode_into_libs=yes
16728 dynamic_linker="$host_os dld.so"
16729 shlibpath_var=LD_LIBRARY_PATH
16730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 if test "X$HPUX_IA64_MODE" = X32; then
16734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16735 else
16736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16740 hppa*64*)
16741 shrext_cmds='.sl'
16742 hardcode_into_libs=yes
16743 dynamic_linker="$host_os dld.sl"
16744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747 soname_spec='${libname}${release}${shared_ext}$major'
16748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16752 shrext_cmds='.sl'
16753 dynamic_linker="$host_os dld.sl"
16754 shlibpath_var=SHLIB_PATH
16755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16759 esac
16760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16761 postinstall_cmds='chmod 555 $lib'
16764 interix[3-9]*)
16765 version_type=linux
16766 need_lib_prefix=no
16767 need_version=no
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16769 soname_spec='${libname}${release}${shared_ext}$major'
16770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16771 shlibpath_var=LD_LIBRARY_PATH
16772 shlibpath_overrides_runpath=no
16773 hardcode_into_libs=yes
16776 irix5* | irix6* | nonstopux*)
16777 case $host_os in
16778 nonstopux*) version_type=nonstopux ;;
16780 if test "$lt_cv_prog_gnu_ld" = yes; then
16781 version_type=linux
16782 else
16783 version_type=irix
16784 fi ;;
16785 esac
16786 need_lib_prefix=no
16787 need_version=no
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16790 case $host_os in
16791 irix5* | nonstopux*)
16792 libsuff= shlibsuff=
16795 case $LD in # libtool.m4 will add one of these switches to LD
16796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16797 libsuff= shlibsuff= libmagic=32-bit;;
16798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16799 libsuff=32 shlibsuff=N32 libmagic=N32;;
16800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16802 *) libsuff= shlibsuff= libmagic=never-match;;
16803 esac
16805 esac
16806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16807 shlibpath_overrides_runpath=no
16808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16810 hardcode_into_libs=yes
16813 # No shared lib support for Linux oldld, aout, or coff.
16814 linux*oldld* | linux*aout* | linux*coff*)
16815 dynamic_linker=no
16818 # This must be Linux ELF.
16819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16820 version_type=linux
16821 need_lib_prefix=no
16822 need_version=no
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 shlibpath_overrides_runpath=no
16829 # Some binutils ld are patched to set DT_RUNPATH
16830 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833 lt_cv_shlibpath_overrides_runpath=no
16834 save_LDFLAGS=$LDFLAGS
16835 save_libdir=$libdir
16836 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16837 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16838 if test x$gcc_no_link = xyes; then
16839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16841 { (exit 1); exit 1; }; }
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16851 main ()
16855 return 0;
16857 _ACEOF
16858 rm -f conftest.$ac_objext conftest$ac_exeext
16859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16860 (eval $ac_link) 2>conftest.er1
16861 ac_status=$?
16862 grep -v '^ *+' conftest.er1 >conftest.err
16863 rm -f conftest.er1
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -z "$ac_cxx_werror_flag"
16868 || test ! -s conftest.err'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } &&
16874 { ac_try='test -s conftest$ac_exeext'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16881 lt_cv_shlibpath_overrides_runpath=yes
16884 else
16885 echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16889 rm -f conftest.err conftest.$ac_objext \
16890 conftest$ac_exeext conftest.$ac_ext
16891 LDFLAGS=$save_LDFLAGS
16892 libdir=$save_libdir
16896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16898 # This implies no fast_install, which is unacceptable.
16899 # Some rework will be needed to allow for fast_install
16900 # before this can be enabled.
16901 hardcode_into_libs=yes
16903 # Append ld.so.conf contents to the search path
16904 if test -f /etc/ld.so.conf; then
16905 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16909 # We used to test for /lib/ld.so.1 and disable shared libraries on
16910 # powerpc, because MkLinux only supported shared libraries with the
16911 # GNU dynamic linker. Since this was broken with cross compilers,
16912 # most powerpc-linux boxes support dynamic linking these days and
16913 # people can always --disable-shared, the test was removed, and we
16914 # assume the GNU/Linux dynamic linker is in use.
16915 dynamic_linker='GNU/Linux ld.so'
16918 netbsd*)
16919 version_type=sunos
16920 need_lib_prefix=no
16921 need_version=no
16922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16925 dynamic_linker='NetBSD (a.out) ld.so'
16926 else
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 dynamic_linker='NetBSD ld.elf_so'
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes
16933 hardcode_into_libs=yes
16936 newsos6)
16937 version_type=linux
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 shlibpath_overrides_runpath=yes
16943 *nto* | *qnx*)
16944 version_type=qnx
16945 need_lib_prefix=no
16946 need_version=no
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=no
16951 hardcode_into_libs=yes
16952 dynamic_linker='ldqnx.so'
16955 openbsd*)
16956 version_type=sunos
16957 sys_lib_dlsearch_path_spec="/usr/lib"
16958 need_lib_prefix=no
16959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16960 case $host_os in
16961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16962 *) need_version=no ;;
16963 esac
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16968 case $host_os in
16969 openbsd2.[89] | openbsd2.[89].*)
16970 shlibpath_overrides_runpath=no
16973 shlibpath_overrides_runpath=yes
16975 esac
16976 else
16977 shlibpath_overrides_runpath=yes
16981 os2*)
16982 libname_spec='$name'
16983 shrext_cmds=".dll"
16984 need_lib_prefix=no
16985 library_names_spec='$libname${shared_ext} $libname.a'
16986 dynamic_linker='OS/2 ld.exe'
16987 shlibpath_var=LIBPATH
16990 osf3* | osf4* | osf5*)
16991 version_type=osf
16992 need_lib_prefix=no
16993 need_version=no
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17001 rdos*)
17002 dynamic_linker=no
17005 solaris*)
17006 version_type=linux
17007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=yes
17013 hardcode_into_libs=yes
17014 # ldd complains unless libraries are executable
17015 postinstall_cmds='chmod +x $lib'
17018 sunos4*)
17019 version_type=sunos
17020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 if test "$with_gnu_ld" = yes; then
17025 need_lib_prefix=no
17027 need_version=yes
17030 sysv4 | sysv4.3*)
17031 version_type=linux
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17035 case $host_vendor in
17036 sni)
17037 shlibpath_overrides_runpath=no
17038 need_lib_prefix=no
17039 runpath_var=LD_RUN_PATH
17041 siemens)
17042 need_lib_prefix=no
17044 motorola)
17045 need_lib_prefix=no
17046 need_version=no
17047 shlibpath_overrides_runpath=no
17048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17050 esac
17053 sysv4*MP*)
17054 if test -d /usr/nec ;then
17055 version_type=linux
17056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17057 soname_spec='$libname${shared_ext}.$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17063 version_type=freebsd-elf
17064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=yes
17070 hardcode_into_libs=yes
17071 if test "$with_gnu_ld" = yes; then
17072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17073 else
17074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17075 case $host_os in
17076 sco3.2v5*)
17077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17079 esac
17081 sys_lib_dlsearch_path_spec='/usr/lib'
17084 tpf*)
17085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17086 version_type=linux
17087 need_lib_prefix=no
17088 need_version=no
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath=no
17092 hardcode_into_libs=yes
17095 uts4*)
17096 version_type=linux
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LD_LIBRARY_PATH
17103 dynamic_linker=no
17105 esac
17106 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17107 echo "${ECHO_T}$dynamic_linker" >&6
17108 test "$dynamic_linker" = no && can_build_shared=no
17110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17111 if test "$GCC" = yes; then
17112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17116 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17119 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17157 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17159 hardcode_action_CXX=
17160 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17161 test -n "$runpath_var_CXX" ||
17162 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17164 # We can hardcode non-existent directories.
17165 if test "$hardcode_direct_CXX" != no &&
17166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17167 # have to relink, otherwise we might link with an installed library
17168 # when we should be linking with a yet-to-be-installed one
17169 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17170 test "$hardcode_minus_L_CXX" != no; then
17171 # Linking always hardcodes the temporary library directory.
17172 hardcode_action_CXX=relink
17173 else
17174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17175 hardcode_action_CXX=immediate
17177 else
17178 # We cannot hardcode anything, or else we can only hardcode existing
17179 # directories.
17180 hardcode_action_CXX=unsupported
17182 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17183 echo "${ECHO_T}$hardcode_action_CXX" >&6
17185 if test "$hardcode_action_CXX" = relink ||
17186 test "$inherit_rpath_CXX" = yes; then
17187 # Fast installation is not supported
17188 enable_fast_install=no
17189 elif test "$shlibpath_overrides_runpath" = yes ||
17190 test "$enable_shared" = no; then
17191 # Fast installation is not necessary
17192 enable_fast_install=needless
17201 fi # test -n "$compiler"
17203 CC=$lt_save_CC
17204 LDCXX=$LD
17205 LD=$lt_save_LD
17206 GCC=$lt_save_GCC
17207 with_gnu_ld=$lt_save_with_gnu_ld
17208 lt_cv_path_LDCXX=$lt_cv_path_LD
17209 lt_cv_path_LD=$lt_save_path_LD
17210 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17211 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17212 fi # test "$_lt_caught_CXX_error" != yes
17214 ac_ext=c
17215 ac_cpp='$CPP $CPPFLAGS'
17216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17222 # Handle -Werror default case.
17223 if test "$ENABLE_WERROR" = default; then
17224 case "$host_os" in
17225 *linux*)
17226 if test "$GCC" = yes; then
17227 ENABLE_WERROR=yes
17230 esac
17233 if test "x${COMPILE_COLLECTIONS}" = xyes; then
17234 # Extract the first word of "perl", so it can be a program name with args.
17235 set dummy perl; ac_word=$2
17236 echo "$as_me:$LINENO: checking for $ac_word" >&5
17237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17238 if test "${ac_cv_path_PERL+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241 case $PERL in
17242 [\\/]* | ?:[\\/]*)
17243 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17247 for as_dir in $PATH
17249 IFS=$as_save_IFS
17250 test -z "$as_dir" && as_dir=.
17251 for ac_exec_ext in '' $ac_executable_extensions; do
17252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17253 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17255 break 2
17257 done
17258 done
17261 esac
17263 PERL=$ac_cv_path_PERL
17265 if test -n "$PERL"; then
17266 echo "$as_me:$LINENO: result: $PERL" >&5
17267 echo "${ECHO_T}$PERL" >&6
17268 else
17269 echo "$as_me:$LINENO: result: no" >&5
17270 echo "${ECHO_T}no" >&6
17275 ac_config_files="$ac_config_files lib/mkcollections.pl"
17277 ac_config_commands="$ac_config_commands mkcollections.pl"
17281 if test "x${COMPILE_JNI}" = xyes; then
17285 echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
17286 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
17287 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 else
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17299 main ()
17301 extern int testfunction(int x) __attribute__((,,))
17303 return 0;
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>conftest.er1
17309 ac_status=$?
17310 grep -v '^ *+' conftest.er1 >conftest.err
17311 rm -f conftest.er1
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag"
17316 || test ! -s conftest.err'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 gcc_cv_c_gcc_attribute_supported=yes
17329 else
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 gcc_cv_c_gcc_attribute_supported=no
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17339 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
17340 true
17341 echo "$as_me:$LINENO: result: yes" >&5
17342 echo "${ECHO_T}yes" >&6
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_GNUC25_ATTRIB
17346 _ACEOF
17349 else
17350 true
17351 echo "$as_me:$LINENO: result: no" >&5
17352 echo "${ECHO_T}no" >&6
17365 echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
17366 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
17367 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17379 main ()
17381 extern int testfunction(int x) __attribute__((unused))
17383 return 0;
17385 _ACEOF
17386 rm -f conftest.$ac_objext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17388 (eval $ac_compile) 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag"
17396 || test ! -s conftest.err'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 gcc_cv_c_gcc_attribute_unused=yes
17409 else
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 gcc_cv_c_gcc_attribute_unused=no
17415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17419 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
17420 true
17421 echo "$as_me:$LINENO: result: yes" >&5
17422 echo "${ECHO_T}yes" >&6
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_GNUC25_UNUSED
17426 _ACEOF
17429 else
17430 true
17431 echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6
17441 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17442 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17443 if test "${ac_cv_header_stdc+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h. */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 #include <stdlib.h>
17453 #include <stdarg.h>
17454 #include <string.h>
17455 #include <float.h>
17458 main ()
17462 return 0;
17464 _ACEOF
17465 rm -f conftest.$ac_objext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17467 (eval $ac_compile) 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag"
17475 || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest.$ac_objext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_header_stdc=yes
17488 else
17489 echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_header_stdc=no
17494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17496 if test $ac_cv_header_stdc = yes; then
17497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <string.h>
17506 _ACEOF
17507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17508 $EGREP "memchr" >/dev/null 2>&1; then
17510 else
17511 ac_cv_header_stdc=no
17513 rm -f conftest*
17517 if test $ac_cv_header_stdc = yes; then
17518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 #include <stdlib.h>
17527 _ACEOF
17528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17529 $EGREP "free" >/dev/null 2>&1; then
17531 else
17532 ac_cv_header_stdc=no
17534 rm -f conftest*
17538 if test $ac_cv_header_stdc = yes; then
17539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17540 if test "$cross_compiling" = yes; then
17542 else
17543 cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h. */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <ctype.h>
17550 #if ((' ' & 0x0FF) == 0x020)
17551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17553 #else
17554 # define ISLOWER(c) \
17555 (('a' <= (c) && (c) <= 'i') \
17556 || ('j' <= (c) && (c) <= 'r') \
17557 || ('s' <= (c) && (c) <= 'z'))
17558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17559 #endif
17561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17563 main ()
17565 int i;
17566 for (i = 0; i < 256; i++)
17567 if (XOR (islower (i), ISLOWER (i))
17568 || toupper (i) != TOUPPER (i))
17569 exit(2);
17570 exit (0);
17572 _ACEOF
17573 rm -f conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575 (eval $ac_link) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17585 else
17586 echo "$as_me: program exited with status $ac_status" >&5
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ( exit $ac_status )
17591 ac_cv_header_stdc=no
17593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17597 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17598 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17599 if test $ac_cv_header_stdc = yes; then
17601 cat >>confdefs.h <<\_ACEOF
17602 #define STDC_HEADERS 1
17603 _ACEOF
17608 echo "$as_me:$LINENO: checking size of void *" >&5
17609 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17610 if test "${ac_cv_sizeof_void_p+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 #include "confdefs.h"
17621 #include <sys/types.h>
17625 main ()
17627 switch (0) case 0: case (sizeof (void *) == $ac_size):;
17629 return 0;
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17634 (eval $ac_compile) 2>conftest.er1
17635 ac_status=$?
17636 grep -v '^ *+' conftest.er1 >conftest.err
17637 rm -f conftest.er1
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
17641 { ac_try='test -z "$ac_c_werror_flag"
17642 || test ! -s conftest.err'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; } &&
17648 { ac_try='test -s conftest.$ac_objext'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ac_cv_sizeof_void_p=$ac_size
17655 else
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17661 if test x$ac_cv_sizeof_void_p != x ; then break; fi
17662 done
17666 if test x$ac_cv_sizeof_void_p = x ; then
17667 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
17668 echo "$as_me: error: cannot determine a size for void *" >&2;}
17669 { (exit 1); exit 1; }; }
17671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17672 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17674 cat >>confdefs.h <<_ACEOF
17675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17676 _ACEOF
17680 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17681 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17682 if test "${ac_cv_c_bigendian+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685 ac_cv_c_bigendian=unknown
17686 # See if sys/param.h defines the BYTE_ORDER macro.
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h. */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 #include <sys/types.h>
17694 #include <sys/param.h>
17696 main ()
17699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17700 bogus endian macros
17701 #endif
17703 return 0;
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag"
17716 || test ! -s conftest.err'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest.$ac_objext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 # It does; now see whether it defined to BIG_ENDIAN or not.
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h. */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 #include <sys/types.h>
17736 #include <sys/param.h>
17738 main ()
17741 #if BYTE_ORDER != BIG_ENDIAN
17742 not big endian
17743 #endif
17745 return 0;
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 ac_cv_c_bigendian=yes
17771 else
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_cv_c_bigendian=no
17777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17778 else
17779 echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784 if test $ac_cv_c_bigendian = unknown; then
17785 if test "$cross_compiling" = yes; then
17786 echo $ac_n "cross-compiling... " 2>&6
17787 else
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h. */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 main () {
17795 /* Are we little or big endian? From Harbison&Steele. */
17796 union
17798 long l;
17799 char c[sizeof (long)];
17800 } u;
17801 u.l = 1;
17802 exit (u.c[sizeof (long) - 1] == 1);
17804 _ACEOF
17805 rm -f conftest$ac_exeext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17807 (eval $ac_link) 2>&5
17808 ac_status=$?
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_cv_c_bigendian=no
17817 else
17818 echo "$as_me: program exited with status $ac_status" >&5
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 ( exit $ac_status )
17823 ac_cv_c_bigendian=yes
17825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17829 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17830 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17831 if test $ac_cv_c_bigendian = unknown; then
17832 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
17833 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
17835 cat >conftest.c <<EOF
17836 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17837 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17838 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
17839 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17840 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17841 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
17842 int main() { _ascii (); _ebcdic (); return 0; }
17844 if test -f conftest.c ; then
17845 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
17846 if test `grep -l BIGenDianSyS conftest.o` ; then
17847 echo $ac_n ' big endian probe OK, ' 1>&6
17848 ac_cv_c_bigendian=yes
17850 if test `grep -l LiTTleEnDian conftest.o` ; then
17851 echo $ac_n ' little endian probe OK, ' 1>&6
17852 if test $ac_cv_c_bigendian = yes ; then
17853 ac_cv_c_bigendian=unknown;
17854 else
17855 ac_cv_c_bigendian=no
17858 echo $ac_n 'guessing bigendian ... ' >&6
17861 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17862 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17864 if test $ac_cv_c_bigendian = yes; then
17866 cat >>confdefs.h <<\_ACEOF
17867 #define WORDS_BIGENDIAN 1
17868 _ACEOF
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HOST_WORDS_BIG_ENDIAN 1
17873 _ACEOF
17875 BYTEORDER=4321
17876 else
17877 BYTEORDER=1234
17880 cat >>confdefs.h <<_ACEOF
17881 #define BYTEORDER $BYTEORDER
17882 _ACEOF
17884 if test $ac_cv_c_bigendian = unknown; then
17885 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
17886 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
17887 { (exit 1); exit 1; }; }
17915 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
17916 asm/ioctls.h \
17917 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17918 sys/time.h \
17919 sys/select.h \
17920 crt_externs.h \
17921 fcntl.h \
17922 sys/mman.h \
17923 magic.h \
17924 sys/event.h sys/epoll.h \
17925 ifaddrs.h \
17926 netinet/in_systm.h netinet/ip.h net/if.h \
17927 sys/loadavg.h sys/sockio.h
17929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17931 echo "$as_me:$LINENO: checking for $ac_header" >&5
17932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17938 else
17939 # Is the header compilable?
17940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 #include <$ac_header>
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17953 (eval $ac_compile) 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag"
17961 || test ! -s conftest.err'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest.$ac_objext'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; }; then
17973 ac_header_compiler=yes
17974 else
17975 echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17978 ac_header_compiler=no
17980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17982 echo "${ECHO_T}$ac_header_compiler" >&6
17984 # Is the header present?
17985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 #include <$ac_header>
17994 _ACEOF
17995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } >/dev/null; then
18003 if test -s conftest.err; then
18004 ac_cpp_err=$ac_c_preproc_warn_flag
18005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18006 else
18007 ac_cpp_err=
18009 else
18010 ac_cpp_err=yes
18012 if test -z "$ac_cpp_err"; then
18013 ac_header_preproc=yes
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 ac_header_preproc=no
18020 rm -f conftest.err conftest.$ac_ext
18021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18022 echo "${ECHO_T}$ac_header_preproc" >&6
18024 # So? What about this header?
18025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18026 yes:no: )
18027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18031 ac_header_preproc=yes
18033 no:yes:* )
18034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18047 cat <<\_ASBOX
18048 ## -------------------------------- ##
18049 ## Report this to classpath@gnu.org ##
18050 ## -------------------------------- ##
18051 _ASBOX
18053 sed "s/^/$as_me: WARNING: /" >&2
18055 esac
18056 echo "$as_me:$LINENO: checking for $ac_header" >&5
18057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061 eval "$as_ac_Header=\$ac_header_preproc"
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18068 cat >>confdefs.h <<_ACEOF
18069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18070 _ACEOF
18074 done
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h. */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <stdint.h>
18085 _ACEOF
18086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18087 $EGREP "uint32_t" >/dev/null 2>&1; then
18089 cat >>confdefs.h <<\_ACEOF
18090 #define HAVE_INT32_DEFINED 1
18091 _ACEOF
18094 rm -f conftest*
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 #include <inttypes.h>
18104 _ACEOF
18105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18106 $EGREP "uint32_t" >/dev/null 2>&1; then
18108 cat >>confdefs.h <<\_ACEOF
18109 #define HAVE_INT32_DEFINED 1
18110 _ACEOF
18113 rm -f conftest*
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 #include <sys/types.h>
18123 _ACEOF
18124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18125 $EGREP "u_int32_t" >/dev/null 2>&1; then
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_BSD_INT32_DEFINED 1
18129 _ACEOF
18132 rm -f conftest*
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 #include <sys/config.h>
18142 _ACEOF
18143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18144 $EGREP "u_int32_t" >/dev/null 2>&1; then
18146 cat >>confdefs.h <<\_ACEOF
18147 #define HAVE_BSD_INT32_DEFINED 1
18148 _ACEOF
18151 rm -f conftest*
18154 echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
18155 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6
18156 if test "${ac_cv_search_inet_pton+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159 ac_func_search_save_LIBS=$LIBS
18160 ac_cv_search_inet_pton=no
18161 if test x$gcc_no_link = xyes; then
18162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18164 { (exit 1); exit 1; }; }
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18173 /* Override any gcc2 internal prototype to avoid an error. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 /* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179 char inet_pton ();
18181 main ()
18183 inet_pton ();
18185 return 0;
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_search_inet_pton="none required"
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18216 rm -f conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18218 if test "$ac_cv_search_inet_pton" = no; then
18219 for ac_lib in nsl; do
18220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18221 if test x$gcc_no_link = xyes; then
18222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18224 { (exit 1); exit 1; }; }
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18233 /* Override any gcc2 internal prototype to avoid an error. */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 /* We use char because int might match the return type of a gcc2
18238 builtin and then its argument prototype would still apply. */
18239 char inet_pton ();
18241 main ()
18243 inet_pton ();
18245 return 0;
18247 _ACEOF
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250 (eval $ac_link) 2>conftest.er1
18251 ac_status=$?
18252 grep -v '^ *+' conftest.er1 >conftest.err
18253 rm -f conftest.er1
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag"
18258 || test ! -s conftest.err'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; } &&
18264 { ac_try='test -s conftest$ac_exeext'
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 ac_cv_search_inet_pton="-l$ac_lib"
18271 break
18272 else
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18277 rm -f conftest.err conftest.$ac_objext \
18278 conftest$ac_exeext conftest.$ac_ext
18279 done
18281 LIBS=$ac_func_search_save_LIBS
18283 echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
18284 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6
18285 if test "$ac_cv_search_inet_pton" != no; then
18286 test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS"
18291 echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
18292 echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
18293 if test "${ac_cv_lib_socket_gethostname+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lsocket $LIBS"
18298 if test x$gcc_no_link = xyes; then
18299 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18300 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18301 { (exit 1); exit 1; }; }
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18310 /* Override any gcc2 internal prototype to avoid an error. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 /* We use char because int might match the return type of a gcc2
18315 builtin and then its argument prototype would still apply. */
18316 char gethostname ();
18318 main ()
18320 gethostname ();
18322 return 0;
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327 (eval $ac_link) 2>conftest.er1
18328 ac_status=$?
18329 grep -v '^ *+' conftest.er1 >conftest.err
18330 rm -f conftest.er1
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try='test -z "$ac_c_werror_flag"
18335 || test ! -s conftest.err'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18338 ac_status=$?
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest$ac_exeext'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_lib_socket_gethostname=yes
18348 else
18349 echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_cv_lib_socket_gethostname=no
18354 rm -f conftest.err conftest.$ac_objext \
18355 conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18358 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
18359 echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
18360 if test $ac_cv_lib_socket_gethostname = yes; then
18361 cat >>confdefs.h <<_ACEOF
18362 #define HAVE_LIBSOCKET 1
18363 _ACEOF
18365 LIBS="-lsocket $LIBS"
18425 for ac_func in ftruncate fsync select \
18426 gethostname socket strerror fork pipe execve open close \
18427 lseek fstat read readv write writev htonl memset htons connect \
18428 getsockname getpeername bind listen accept \
18429 recvfrom send sendto setsockopt getsockopt time mktime \
18430 gethostbyname_r localtime_r \
18431 strerror_r \
18432 fcntl \
18433 statvfs \
18434 mmap munmap mincore msync madvise getpagesize sysconf \
18435 lstat readlink \
18436 inet_aton inet_addr inet_pton \
18437 getifaddrs kqueue kevent epoll_create \
18438 getloadavg
18440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18441 echo "$as_me:$LINENO: checking for $ac_func" >&5
18442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18443 if eval "test \"\${$as_ac_var+set}\" = set"; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 if test x$gcc_no_link = xyes; then
18447 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18449 { (exit 1); exit 1; }; }
18451 cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h. */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18459 #define $ac_func innocuous_$ac_func
18461 /* System header to define __stub macros and hopefully few prototypes,
18462 which can conflict with char $ac_func (); below.
18463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18464 <limits.h> exists even on freestanding compilers. */
18466 #ifdef __STDC__
18467 # include <limits.h>
18468 #else
18469 # include <assert.h>
18470 #endif
18472 #undef $ac_func
18474 /* Override any gcc2 internal prototype to avoid an error. */
18475 #ifdef __cplusplus
18476 extern "C"
18478 #endif
18479 /* We use char because int might match the return type of a gcc2
18480 builtin and then its argument prototype would still apply. */
18481 char $ac_func ();
18482 /* The GNU C library defines this for functions which it implements
18483 to always fail with ENOSYS. Some functions are actually named
18484 something starting with __ and the normal name is an alias. */
18485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18486 choke me
18487 #else
18488 char (*f) () = $ac_func;
18489 #endif
18490 #ifdef __cplusplus
18492 #endif
18495 main ()
18497 return f != $ac_func;
18499 return 0;
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504 (eval $ac_link) 2>conftest.er1
18505 ac_status=$?
18506 grep -v '^ *+' conftest.er1 >conftest.err
18507 rm -f conftest.er1
18508 cat conftest.err >&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } &&
18511 { ac_try='test -z "$ac_c_werror_flag"
18512 || test ! -s conftest.err'
18513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514 (eval $ac_try) 2>&5
18515 ac_status=$?
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 eval "$as_ac_var=yes"
18525 else
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18529 eval "$as_ac_var=no"
18531 rm -f conftest.err conftest.$ac_objext \
18532 conftest$ac_exeext conftest.$ac_ext
18534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18536 if test `eval echo '${'$as_ac_var'}'` = yes; then
18537 cat >>confdefs.h <<_ACEOF
18538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18539 _ACEOF
18542 done
18545 LIBMAGIC=
18546 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
18547 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
18548 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551 ac_check_lib_save_LIBS=$LIBS
18552 LIBS="-lmagic $LIBS"
18553 if test x$gcc_no_link = xyes; then
18554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18556 { (exit 1); exit 1; }; }
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h. */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h. */
18565 /* Override any gcc2 internal prototype to avoid an error. */
18566 #ifdef __cplusplus
18567 extern "C"
18568 #endif
18569 /* We use char because int might match the return type of a gcc2
18570 builtin and then its argument prototype would still apply. */
18571 char magic_open ();
18573 main ()
18575 magic_open ();
18577 return 0;
18579 _ACEOF
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18582 (eval $ac_link) 2>conftest.er1
18583 ac_status=$?
18584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
18589 { ac_try='test -z "$ac_c_werror_flag"
18590 || test ! -s conftest.err'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest$ac_exeext'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; }; then
18602 ac_cv_lib_magic_magic_open=yes
18603 else
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_cv_lib_magic_magic_open=no
18609 rm -f conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18613 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
18614 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
18615 if test $ac_cv_lib_magic_magic_open = yes; then
18616 LIBMAGIC=-lmagic
18621 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
18622 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h. */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 #include <netinet/in.h>
18631 main ()
18633 struct sockaddr_in6 addr6;
18635 return 0;
18637 _ACEOF
18638 rm -f conftest.$ac_objext
18639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18640 (eval $ac_compile) 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag"
18648 || test ! -s conftest.err'
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest.$ac_objext'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_INET6 1
18663 _ACEOF
18665 echo "$as_me:$LINENO: result: yes" >&5
18666 echo "${ECHO_T}yes" >&6
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 echo "$as_me:$LINENO: result: no" >&5
18672 echo "${ECHO_T}no" >&6
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18677 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18678 if test "${ac_cv_header_time+set}" = set; then
18679 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 else
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h. */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 #include <sys/types.h>
18688 #include <sys/time.h>
18689 #include <time.h>
18692 main ()
18694 if ((struct tm *) 0)
18695 return 0;
18697 return 0;
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18702 (eval $ac_compile) 2>conftest.er1
18703 ac_status=$?
18704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_c_werror_flag"
18710 || test ! -s conftest.err'
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest.$ac_objext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 ac_cv_header_time=yes
18723 else
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_cv_header_time=no
18729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18731 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18732 echo "${ECHO_T}$ac_cv_header_time" >&6
18733 if test $ac_cv_header_time = yes; then
18735 cat >>confdefs.h <<\_ACEOF
18736 #define TIME_WITH_SYS_TIME 1
18737 _ACEOF
18741 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18742 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
18743 if test "${ac_cv_struct_tm+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h. */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18752 #include <sys/types.h>
18753 #include <time.h>
18756 main ()
18758 struct tm *tp; tp->tm_sec;
18760 return 0;
18762 _ACEOF
18763 rm -f conftest.$ac_objext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765 (eval $ac_compile) 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_struct_tm=time.h
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_cv_struct_tm=sys/time.h
18792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18794 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18795 echo "${ECHO_T}$ac_cv_struct_tm" >&6
18796 if test $ac_cv_struct_tm = sys/time.h; then
18798 cat >>confdefs.h <<\_ACEOF
18799 #define TM_IN_SYS_TIME 1
18800 _ACEOF
18804 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18805 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #include <sys/types.h>
18816 #include <$ac_cv_struct_tm>
18820 main ()
18822 static struct tm ac_aggr;
18823 if (ac_aggr.tm_zone)
18824 return 0;
18826 return 0;
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_cv_member_struct_tm_tm_zone=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 #include <sys/types.h>
18863 #include <$ac_cv_struct_tm>
18867 main ()
18869 static struct tm ac_aggr;
18870 if (sizeof ac_aggr.tm_zone)
18871 return 0;
18873 return 0;
18875 _ACEOF
18876 rm -f conftest.$ac_objext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878 (eval $ac_compile) 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag"
18886 || test ! -s conftest.err'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_member_struct_tm_tm_zone=yes
18899 else
18900 echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18903 ac_cv_member_struct_tm_tm_zone=no
18905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18911 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_STRUCT_TM_TM_ZONE 1
18915 _ACEOF
18920 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_TM_ZONE 1
18924 _ACEOF
18926 else
18927 echo "$as_me:$LINENO: checking for tzname" >&5
18928 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18929 if test "${ac_cv_var_tzname+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932 if test x$gcc_no_link = xyes; then
18933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18935 { (exit 1); exit 1; }; }
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 #include <time.h>
18944 #ifndef tzname /* For SGI. */
18945 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18946 #endif
18949 main ()
18951 atoi(*tzname);
18953 return 0;
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18958 (eval $ac_link) 2>conftest.er1
18959 ac_status=$?
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } &&
18965 { ac_try='test -z "$ac_c_werror_flag"
18966 || test ! -s conftest.err'
18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968 (eval $ac_try) 2>&5
18969 ac_status=$?
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; } &&
18972 { ac_try='test -s conftest$ac_exeext'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_var_tzname=yes
18979 else
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_var_tzname=no
18985 rm -f conftest.err conftest.$ac_objext \
18986 conftest$ac_exeext conftest.$ac_ext
18988 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18989 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18990 if test $ac_cv_var_tzname = yes; then
18992 cat >>confdefs.h <<\_ACEOF
18993 #define HAVE_TZNAME 1
18994 _ACEOF
19000 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
19001 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 #include <time.h>
19010 main ()
19012 struct tm tim; tim.tm_gmtoff = 0;
19014 return 0;
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19019 (eval $ac_compile) 2>conftest.er1
19020 ac_status=$?
19021 grep -v '^ *+' conftest.er1 >conftest.err
19022 rm -f conftest.er1
19023 cat conftest.err >&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); } &&
19026 { ac_try='test -z "$ac_c_werror_flag"
19027 || test ! -s conftest.err'
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19040 cat >>confdefs.h <<\_ACEOF
19041 #define STRUCT_TM_HAS_GMTOFF 1
19042 _ACEOF
19044 echo "$as_me:$LINENO: result: yes" >&5
19045 echo "${ECHO_T}yes" >&6
19046 else
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 echo "$as_me:$LINENO: result: no" >&5
19051 echo "${ECHO_T}no" >&6
19052 echo "$as_me:$LINENO: checking for global timezone variable" >&5
19053 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h. */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #include <time.h>
19062 main ()
19064 void i(){long z2 = 2*timezone;}
19066 return 0;
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19071 (eval $ac_compile) 2>conftest.er1
19072 ac_status=$?
19073 grep -v '^ *+' conftest.er1 >conftest.err
19074 rm -f conftest.er1
19075 cat conftest.err >&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try='test -z "$ac_c_werror_flag"
19079 || test ! -s conftest.err'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_TIMEZONE 1
19094 _ACEOF
19096 echo "$as_me:$LINENO: result: yes" >&5
19097 echo "${ECHO_T}yes" >&6
19098 else
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 echo "$as_me:$LINENO: result: no" >&5
19103 echo "${ECHO_T}no" >&6
19104 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
19105 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
19106 cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h. */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 #include <time.h>
19114 main ()
19116 long z2 = _timezone;
19118 return 0;
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag"
19131 || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest.$ac_objext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE_UNDERSCORE_TIMEZONE 1
19146 _ACEOF
19148 echo "$as_me:$LINENO: result: yes" >&5
19149 echo "${ECHO_T}yes" >&6
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 echo "$as_me:$LINENO: result: no" >&5
19155 echo "${ECHO_T}no" >&6
19157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19163 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19164 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19165 if test "${ac_cv_c_const+set}" = set; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 else
19168 cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h. */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19176 main ()
19178 /* FIXME: Include the comments suggested by Paul. */
19179 #ifndef __cplusplus
19180 /* Ultrix mips cc rejects this. */
19181 typedef int charset[2];
19182 const charset x;
19183 /* SunOS 4.1.1 cc rejects this. */
19184 char const *const *ccp;
19185 char **p;
19186 /* NEC SVR4.0.2 mips cc rejects this. */
19187 struct point {int x, y;};
19188 static struct point const zero = {0,0};
19189 /* AIX XL C 1.02.0.0 rejects this.
19190 It does not let you subtract one const X* pointer from another in
19191 an arm of an if-expression whose if-part is not a constant
19192 expression */
19193 const char *g = "string";
19194 ccp = &g + (g ? g-g : 0);
19195 /* HPUX 7.0 cc rejects these. */
19196 ++ccp;
19197 p = (char**) ccp;
19198 ccp = (char const *const *) p;
19199 { /* SCO 3.2v4 cc rejects this. */
19200 char *t;
19201 char const *s = 0 ? (char *) 0 : (char const *) 0;
19203 *t++ = 0;
19205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19206 int x[] = {25, 17};
19207 const int *foo = &x[0];
19208 ++foo;
19210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19211 typedef const int *iptr;
19212 iptr p = 0;
19213 ++p;
19215 { /* AIX XL C 1.02.0.0 rejects this saying
19216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19217 struct s { int j; const int *ap[3]; };
19218 struct s *b; b->j = 5;
19220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19221 const int foo = 10;
19223 #endif
19226 return 0;
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231 (eval $ac_compile) 2>conftest.er1
19232 ac_status=$?
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
19238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_c_const=yes
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 ac_cv_c_const=no
19258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19261 echo "${ECHO_T}$ac_cv_c_const" >&6
19262 if test $ac_cv_c_const = no; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define const
19266 _ACEOF
19270 echo "$as_me:$LINENO: checking for inline" >&5
19271 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19272 if test "${ac_cv_c_inline+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275 ac_cv_c_inline=no
19276 for ac_kw in inline __inline__ __inline; do
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h. */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19283 #ifndef __cplusplus
19284 typedef int foo_t;
19285 static $ac_kw foo_t static_foo () {return 0; }
19286 $ac_kw foo_t foo () {return 0; }
19287 #endif
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19292 (eval $ac_compile) 2>conftest.er1
19293 ac_status=$?
19294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -z "$ac_c_werror_flag"
19300 || test ! -s conftest.err'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; } &&
19306 { ac_try='test -s conftest.$ac_objext'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_c_inline=$ac_kw; break
19313 else
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319 done
19322 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19323 echo "${ECHO_T}$ac_cv_c_inline" >&6
19326 case $ac_cv_c_inline in
19327 inline | yes) ;;
19329 case $ac_cv_c_inline in
19330 no) ac_val=;;
19331 *) ac_val=$ac_cv_c_inline;;
19332 esac
19333 cat >>confdefs.h <<_ACEOF
19334 #ifndef __cplusplus
19335 #define inline $ac_val
19336 #endif
19337 _ACEOF
19339 esac
19341 echo "$as_me:$LINENO: checking for __attribute__" >&5
19342 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
19343 if test "${ac_cv_c_attribute+set}" = set; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353 void foo(void) __attribute__ ((__noreturn__));
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19358 (eval $ac_compile) 2>conftest.er1
19359 ac_status=$?
19360 grep -v '^ *+' conftest.er1 >conftest.err
19361 rm -f conftest.er1
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } &&
19365 { ac_try='test -z "$ac_c_werror_flag"
19366 || test ! -s conftest.err'
19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; }; then
19378 ac_cv_c_attribute=yes
19379 else
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_cv_c_attribute=no
19386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19389 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
19390 echo "${ECHO_T}$ac_cv_c_attribute" >&6
19393 case $ac_cv_c_attribute in
19394 yes) ;;
19396 cat >>confdefs.h <<_ACEOF
19397 #define __attribute__(x) /* nothing */
19398 _ACEOF
19400 esac
19404 ac_ext=c
19405 ac_cpp='$CPP $CPPFLAGS'
19406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19410 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
19411 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
19413 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
19414 echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19418 ################################################################
19420 ac_cv_func_which_gethostbyname_r=unknown
19423 # ONE ARGUMENT (sanity check)
19426 # This should fail, as there is no variant of gethostbyname_r() that takes
19427 # a single argument. If it actually compiles, then we can assume that
19428 # netdb.h is not declaring the function, and the compiler is thereby
19429 # assuming an implicit prototype. In which case, we're out of luck.
19431 cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h. */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 #include <netdb.h>
19439 main ()
19442 char *name = "www.gnu.org";
19443 (void)gethostbyname_r(name) /* ; */
19446 return 0;
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19451 (eval $ac_compile) 2>conftest.er1
19452 ac_status=$?
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag"
19459 || test ! -s conftest.err'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; } &&
19465 { ac_try='test -s conftest.$ac_objext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 ac_cv_func_which_gethostbyname_r=no
19472 else
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19480 # SIX ARGUMENTS
19481 # (e.g. Linux)
19484 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 #include <netdb.h>
19494 main ()
19497 char *name = "www.gnu.org";
19498 struct hostent ret, *retp;
19499 char buf[1024];
19500 int buflen = 1024;
19501 int my_h_errno;
19502 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
19505 return 0;
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -z "$ac_c_werror_flag"
19518 || test ! -s conftest.err'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_func_which_gethostbyname_r=six
19531 else
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19541 # FIVE ARGUMENTS
19542 # (e.g. Solaris)
19545 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h. */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <netdb.h>
19555 main ()
19558 char *name = "www.gnu.org";
19559 struct hostent ret;
19560 char buf[1024];
19561 int buflen = 1024;
19562 int my_h_errno;
19563 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
19566 return 0;
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571 (eval $ac_compile) 2>conftest.er1
19572 ac_status=$?
19573 grep -v '^ *+' conftest.er1 >conftest.err
19574 rm -f conftest.er1
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } &&
19578 { ac_try='test -z "$ac_c_werror_flag"
19579 || test ! -s conftest.err'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19582 ac_status=$?
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest.$ac_objext'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_cv_func_which_gethostbyname_r=five
19592 else
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19602 # THREE ARGUMENTS
19603 # (e.g. AIX, HP-UX, Tru64)
19606 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h. */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 #include <netdb.h>
19616 main ()
19619 char *name = "www.gnu.org";
19620 struct hostent ret;
19621 struct hostent_data data;
19622 (void)gethostbyname_r(name, &ret, &data) /* ; */
19625 return 0;
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630 (eval $ac_compile) 2>conftest.er1
19631 ac_status=$?
19632 grep -v '^ *+' conftest.er1 >conftest.err
19633 rm -f conftest.er1
19634 cat conftest.err >&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } &&
19637 { ac_try='test -z "$ac_c_werror_flag"
19638 || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest.$ac_objext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_which_gethostbyname_r=three
19651 else
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 ################################################################
19665 case "$ac_cv_func_which_gethostbyname_r" in
19666 three)
19667 echo "$as_me:$LINENO: result: three" >&5
19668 echo "${ECHO_T}three" >&6
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
19672 _ACEOF
19676 five)
19677 echo "$as_me:$LINENO: result: five" >&5
19678 echo "${ECHO_T}five" >&6
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
19682 _ACEOF
19686 six)
19687 echo "$as_me:$LINENO: result: six" >&5
19688 echo "${ECHO_T}six" >&6
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
19692 _ACEOF
19697 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
19698 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
19701 unknown)
19702 echo "$as_me:$LINENO: result: can't tell" >&5
19703 echo "${ECHO_T}can't tell" >&6
19707 { { echo "$as_me:$LINENO: error: internal error" >&5
19708 echo "$as_me: error: internal error" >&2;}
19709 { (exit 1); exit 1; }; }
19711 esac
19713 ac_ext=c
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723 if test "X$prefix" = "XNONE"; then
19724 acl_final_prefix="$ac_default_prefix"
19725 else
19726 acl_final_prefix="$prefix"
19728 if test "X$exec_prefix" = "XNONE"; then
19729 acl_final_exec_prefix='${prefix}'
19730 else
19731 acl_final_exec_prefix="$exec_prefix"
19733 acl_save_prefix="$prefix"
19734 prefix="$acl_final_prefix"
19735 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19736 prefix="$acl_save_prefix"
19739 # Check whether --with-gnu-ld or --without-gnu-ld was given.
19740 if test "${with_gnu_ld+set}" = set; then
19741 withval="$with_gnu_ld"
19742 test "$withval" = no || with_gnu_ld=yes
19743 else
19744 with_gnu_ld=no
19746 # Prepare PATH_SEPARATOR.
19747 # The user is always right.
19748 if test "${PATH_SEPARATOR+set}" != set; then
19749 echo "#! /bin/sh" >conf$$.sh
19750 echo "exit 0" >>conf$$.sh
19751 chmod +x conf$$.sh
19752 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19753 PATH_SEPARATOR=';'
19754 else
19755 PATH_SEPARATOR=:
19757 rm -f conf$$.sh
19759 ac_prog=ld
19760 if test "$GCC" = yes; then
19761 # Check if gcc -print-prog-name=ld gives a path.
19762 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19763 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
19764 case $host in
19765 *-*-mingw*)
19766 # gcc leaves a trailing carriage return which upsets mingw
19767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19770 esac
19771 case $ac_prog in
19772 # Accept absolute paths.
19773 [\\/]* | [A-Za-z]:[\\/]*)
19774 re_direlt='/[^/][^/]*/\.\./'
19775 # Canonicalize the path of ld
19776 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19777 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19778 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19779 done
19780 test -z "$LD" && LD="$ac_prog"
19783 # If it fails, then pretend we aren't using GCC.
19784 ac_prog=ld
19787 # If it is relative, then search for the first ld in PATH.
19788 with_gnu_ld=unknown
19790 esac
19791 elif test "$with_gnu_ld" = yes; then
19792 echo "$as_me:$LINENO: checking for GNU ld" >&5
19793 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19794 else
19795 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19796 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19798 if test "${acl_cv_path_LD+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 if test -z "$LD"; then
19802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19803 for ac_dir in $PATH; do
19804 test -z "$ac_dir" && ac_dir=.
19805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19806 acl_cv_path_LD="$ac_dir/$ac_prog"
19807 # Check to see if the program is GNU ld. I'd rather use --version,
19808 # but apparently some GNU ld's only accept -v.
19809 # Break only if it was the GNU/non-GNU ld that we prefer.
19810 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
19811 test "$with_gnu_ld" != no && break
19812 else
19813 test "$with_gnu_ld" != yes && break
19816 done
19817 IFS="$ac_save_ifs"
19818 else
19819 acl_cv_path_LD="$LD" # Let the user override the test with a path.
19823 LD="$acl_cv_path_LD"
19824 if test -n "$LD"; then
19825 echo "$as_me:$LINENO: result: $LD" >&5
19826 echo "${ECHO_T}$LD" >&6
19827 else
19828 echo "$as_me:$LINENO: result: no" >&5
19829 echo "${ECHO_T}no" >&6
19831 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19832 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19833 { (exit 1); exit 1; }; }
19834 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19835 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19836 if test "${acl_cv_prog_gnu_ld+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19840 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
19841 acl_cv_prog_gnu_ld=yes
19842 else
19843 acl_cv_prog_gnu_ld=no
19846 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19847 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
19848 with_gnu_ld=$acl_cv_prog_gnu_ld
19852 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19853 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
19854 if test "${acl_cv_rpath+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19858 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19859 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19860 . ./conftest.sh
19861 rm -f ./conftest.sh
19862 acl_cv_rpath=done
19865 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19866 echo "${ECHO_T}$acl_cv_rpath" >&6
19867 wl="$acl_cv_wl"
19868 libext="$acl_cv_libext"
19869 shlibext="$acl_cv_shlibext"
19870 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19871 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19872 hardcode_direct="$acl_cv_hardcode_direct"
19873 hardcode_minus_L="$acl_cv_hardcode_minus_L"
19874 # Check whether --enable-rpath or --disable-rpath was given.
19875 if test "${enable_rpath+set}" = set; then
19876 enableval="$enable_rpath"
19878 else
19879 enable_rpath=yes
19888 use_additional=yes
19890 acl_save_prefix="$prefix"
19891 prefix="$acl_final_prefix"
19892 acl_save_exec_prefix="$exec_prefix"
19893 exec_prefix="$acl_final_exec_prefix"
19895 eval additional_includedir=\"$includedir\"
19896 eval additional_libdir=\"$libdir\"
19898 exec_prefix="$acl_save_exec_prefix"
19899 prefix="$acl_save_prefix"
19902 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
19903 if test "${with_libiconv_prefix+set}" = set; then
19904 withval="$with_libiconv_prefix"
19906 if test "X$withval" = "Xno"; then
19907 use_additional=no
19908 else
19909 if test "X$withval" = "X"; then
19911 acl_save_prefix="$prefix"
19912 prefix="$acl_final_prefix"
19913 acl_save_exec_prefix="$exec_prefix"
19914 exec_prefix="$acl_final_exec_prefix"
19916 eval additional_includedir=\"$includedir\"
19917 eval additional_libdir=\"$libdir\"
19919 exec_prefix="$acl_save_exec_prefix"
19920 prefix="$acl_save_prefix"
19922 else
19923 additional_includedir="$withval/include"
19924 additional_libdir="$withval/lib"
19929 LIBICONV=
19930 LTLIBICONV=
19931 INCICONV=
19932 rpathdirs=
19933 ltrpathdirs=
19934 names_already_handled=
19935 names_next_round='iconv '
19936 while test -n "$names_next_round"; do
19937 names_this_round="$names_next_round"
19938 names_next_round=
19939 for name in $names_this_round; do
19940 already_handled=
19941 for n in $names_already_handled; do
19942 if test "$n" = "$name"; then
19943 already_handled=yes
19944 break
19946 done
19947 if test -z "$already_handled"; then
19948 names_already_handled="$names_already_handled $name"
19949 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19950 eval value=\"\$HAVE_LIB$uppername\"
19951 if test -n "$value"; then
19952 if test "$value" = yes; then
19953 eval value=\"\$LIB$uppername\"
19954 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19955 eval value=\"\$LTLIB$uppername\"
19956 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19957 else
19960 else
19961 found_dir=
19962 found_la=
19963 found_so=
19964 found_a=
19965 if test $use_additional = yes; then
19966 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19967 found_dir="$additional_libdir"
19968 found_so="$additional_libdir/lib$name.$shlibext"
19969 if test -f "$additional_libdir/lib$name.la"; then
19970 found_la="$additional_libdir/lib$name.la"
19972 else
19973 if test -f "$additional_libdir/lib$name.$libext"; then
19974 found_dir="$additional_libdir"
19975 found_a="$additional_libdir/lib$name.$libext"
19976 if test -f "$additional_libdir/lib$name.la"; then
19977 found_la="$additional_libdir/lib$name.la"
19982 if test "X$found_dir" = "X"; then
19983 for x in $LDFLAGS $LTLIBICONV; do
19985 acl_save_prefix="$prefix"
19986 prefix="$acl_final_prefix"
19987 acl_save_exec_prefix="$exec_prefix"
19988 exec_prefix="$acl_final_exec_prefix"
19989 eval x=\"$x\"
19990 exec_prefix="$acl_save_exec_prefix"
19991 prefix="$acl_save_prefix"
19993 case "$x" in
19994 -L*)
19995 dir=`echo "X$x" | sed -e 's/^X-L//'`
19996 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19997 found_dir="$dir"
19998 found_so="$dir/lib$name.$shlibext"
19999 if test -f "$dir/lib$name.la"; then
20000 found_la="$dir/lib$name.la"
20002 else
20003 if test -f "$dir/lib$name.$libext"; then
20004 found_dir="$dir"
20005 found_a="$dir/lib$name.$libext"
20006 if test -f "$dir/lib$name.la"; then
20007 found_la="$dir/lib$name.la"
20012 esac
20013 if test "X$found_dir" != "X"; then
20014 break
20016 done
20018 if test "X$found_dir" != "X"; then
20019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20020 if test "X$found_so" != "X"; then
20021 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20023 else
20024 haveit=
20025 for x in $ltrpathdirs; do
20026 if test "X$x" = "X$found_dir"; then
20027 haveit=yes
20028 break
20030 done
20031 if test -z "$haveit"; then
20032 ltrpathdirs="$ltrpathdirs $found_dir"
20034 if test "$hardcode_direct" = yes; then
20035 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20036 else
20037 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20038 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20039 haveit=
20040 for x in $rpathdirs; do
20041 if test "X$x" = "X$found_dir"; then
20042 haveit=yes
20043 break
20045 done
20046 if test -z "$haveit"; then
20047 rpathdirs="$rpathdirs $found_dir"
20049 else
20050 haveit=
20051 for x in $LDFLAGS $LIBICONV; do
20053 acl_save_prefix="$prefix"
20054 prefix="$acl_final_prefix"
20055 acl_save_exec_prefix="$exec_prefix"
20056 exec_prefix="$acl_final_exec_prefix"
20057 eval x=\"$x\"
20058 exec_prefix="$acl_save_exec_prefix"
20059 prefix="$acl_save_prefix"
20061 if test "X$x" = "X-L$found_dir"; then
20062 haveit=yes
20063 break
20065 done
20066 if test -z "$haveit"; then
20067 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20069 if test "$hardcode_minus_L" != no; then
20070 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20071 else
20072 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20077 else
20078 if test "X$found_a" != "X"; then
20079 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20080 else
20081 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20084 additional_includedir=
20085 case "$found_dir" in
20086 */lib | */lib/)
20087 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20088 additional_includedir="$basedir/include"
20090 esac
20091 if test "X$additional_includedir" != "X"; then
20092 if test "X$additional_includedir" != "X/usr/include"; then
20093 haveit=
20094 if test "X$additional_includedir" = "X/usr/local/include"; then
20095 if test -n "$GCC"; then
20096 case $host_os in
20097 linux*) haveit=yes;;
20098 esac
20101 if test -z "$haveit"; then
20102 for x in $CPPFLAGS $INCICONV; do
20104 acl_save_prefix="$prefix"
20105 prefix="$acl_final_prefix"
20106 acl_save_exec_prefix="$exec_prefix"
20107 exec_prefix="$acl_final_exec_prefix"
20108 eval x=\"$x\"
20109 exec_prefix="$acl_save_exec_prefix"
20110 prefix="$acl_save_prefix"
20112 if test "X$x" = "X-I$additional_includedir"; then
20113 haveit=yes
20114 break
20116 done
20117 if test -z "$haveit"; then
20118 if test -d "$additional_includedir"; then
20119 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20125 if test -n "$found_la"; then
20126 save_libdir="$libdir"
20127 case "$found_la" in
20128 */* | *\\*) . "$found_la" ;;
20129 *) . "./$found_la" ;;
20130 esac
20131 libdir="$save_libdir"
20132 for dep in $dependency_libs; do
20133 case "$dep" in
20134 -L*)
20135 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20136 if test "X$additional_libdir" != "X/usr/lib"; then
20137 haveit=
20138 if test "X$additional_libdir" = "X/usr/local/lib"; then
20139 if test -n "$GCC"; then
20140 case $host_os in
20141 linux*) haveit=yes;;
20142 esac
20145 if test -z "$haveit"; then
20146 haveit=
20147 for x in $LDFLAGS $LIBICONV; do
20149 acl_save_prefix="$prefix"
20150 prefix="$acl_final_prefix"
20151 acl_save_exec_prefix="$exec_prefix"
20152 exec_prefix="$acl_final_exec_prefix"
20153 eval x=\"$x\"
20154 exec_prefix="$acl_save_exec_prefix"
20155 prefix="$acl_save_prefix"
20157 if test "X$x" = "X-L$additional_libdir"; then
20158 haveit=yes
20159 break
20161 done
20162 if test -z "$haveit"; then
20163 if test -d "$additional_libdir"; then
20164 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20167 haveit=
20168 for x in $LDFLAGS $LTLIBICONV; do
20170 acl_save_prefix="$prefix"
20171 prefix="$acl_final_prefix"
20172 acl_save_exec_prefix="$exec_prefix"
20173 exec_prefix="$acl_final_exec_prefix"
20174 eval x=\"$x\"
20175 exec_prefix="$acl_save_exec_prefix"
20176 prefix="$acl_save_prefix"
20178 if test "X$x" = "X-L$additional_libdir"; then
20179 haveit=yes
20180 break
20182 done
20183 if test -z "$haveit"; then
20184 if test -d "$additional_libdir"; then
20185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20191 -R*)
20192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20193 if test "$enable_rpath" != no; then
20194 haveit=
20195 for x in $rpathdirs; do
20196 if test "X$x" = "X$dir"; then
20197 haveit=yes
20198 break
20200 done
20201 if test -z "$haveit"; then
20202 rpathdirs="$rpathdirs $dir"
20204 haveit=
20205 for x in $ltrpathdirs; do
20206 if test "X$x" = "X$dir"; then
20207 haveit=yes
20208 break
20210 done
20211 if test -z "$haveit"; then
20212 ltrpathdirs="$ltrpathdirs $dir"
20216 -l*)
20217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20219 *.la)
20220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20223 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20226 esac
20227 done
20229 else
20230 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20235 done
20236 done
20237 if test "X$rpathdirs" != "X"; then
20238 if test -n "$hardcode_libdir_separator"; then
20239 alldirs=
20240 for found_dir in $rpathdirs; do
20241 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20242 done
20243 acl_save_libdir="$libdir"
20244 libdir="$alldirs"
20245 eval flag=\"$hardcode_libdir_flag_spec\"
20246 libdir="$acl_save_libdir"
20247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20248 else
20249 for found_dir in $rpathdirs; do
20250 acl_save_libdir="$libdir"
20251 libdir="$found_dir"
20252 eval flag=\"$hardcode_libdir_flag_spec\"
20253 libdir="$acl_save_libdir"
20254 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20255 done
20258 if test "X$ltrpathdirs" != "X"; then
20259 for found_dir in $ltrpathdirs; do
20260 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20261 done
20270 am_save_CPPFLAGS="$CPPFLAGS"
20272 for element in $INCICONV; do
20273 haveit=
20274 for x in $CPPFLAGS; do
20276 acl_save_prefix="$prefix"
20277 prefix="$acl_final_prefix"
20278 acl_save_exec_prefix="$exec_prefix"
20279 exec_prefix="$acl_final_exec_prefix"
20280 eval x=\"$x\"
20281 exec_prefix="$acl_save_exec_prefix"
20282 prefix="$acl_save_prefix"
20284 if test "X$x" = "X$element"; then
20285 haveit=yes
20286 break
20288 done
20289 if test -z "$haveit"; then
20290 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20292 done
20295 echo "$as_me:$LINENO: checking for iconv" >&5
20296 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20297 if test "${am_cv_func_iconv+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20301 am_cv_func_iconv="no, consider installing GNU libiconv"
20302 am_cv_lib_iconv=no
20303 if test x$gcc_no_link = xyes; then
20304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20306 { (exit 1); exit 1; }; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <stdlib.h>
20315 #include <iconv.h>
20317 main ()
20319 iconv_t cd = iconv_open("","");
20320 iconv(cd,NULL,NULL,NULL,NULL);
20321 iconv_close(cd);
20323 return 0;
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328 (eval $ac_link) 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest$ac_exeext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 am_cv_func_iconv=yes
20349 else
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20354 rm -f conftest.err conftest.$ac_objext \
20355 conftest$ac_exeext conftest.$ac_ext
20356 if test "$am_cv_func_iconv" != yes; then
20357 am_save_LIBS="$LIBS"
20358 LIBS="$LIBS $LIBICONV"
20359 if test x$gcc_no_link = xyes; then
20360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20362 { (exit 1); exit 1; }; }
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 #include <stdlib.h>
20371 #include <iconv.h>
20373 main ()
20375 iconv_t cd = iconv_open("","");
20376 iconv(cd,NULL,NULL,NULL,NULL);
20377 iconv_close(cd);
20379 return 0;
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384 (eval $ac_link) 2>conftest.er1
20385 ac_status=$?
20386 grep -v '^ *+' conftest.er1 >conftest.err
20387 rm -f conftest.er1
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } &&
20391 { ac_try='test -z "$ac_c_werror_flag"
20392 || test ! -s conftest.err'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest$ac_exeext'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 am_cv_lib_iconv=yes
20405 am_cv_func_iconv=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20411 rm -f conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS="$am_save_LIBS"
20417 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20418 echo "${ECHO_T}$am_cv_func_iconv" >&6
20419 if test "$am_cv_func_iconv" = yes; then
20421 cat >>confdefs.h <<\_ACEOF
20422 #define HAVE_ICONV 1
20423 _ACEOF
20426 if test "$am_cv_lib_iconv" = yes; then
20427 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
20428 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
20429 echo "$as_me:$LINENO: result: $LIBICONV" >&5
20430 echo "${ECHO_T}$LIBICONV" >&6
20431 else
20432 CPPFLAGS="$am_save_CPPFLAGS"
20433 LIBICONV=
20434 LTLIBICONV=
20439 if test "$am_cv_func_iconv" = yes; then
20440 echo "$as_me:$LINENO: checking for iconv declaration" >&5
20441 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20442 if test "${am_cv_proto_iconv+set}" = set; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20446 cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h. */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h. */
20453 #include <stdlib.h>
20454 #include <iconv.h>
20455 extern
20456 #ifdef __cplusplus
20458 #endif
20459 #if defined(__STDC__) || defined(__cplusplus)
20460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20461 #else
20462 size_t iconv();
20463 #endif
20466 main ()
20470 return 0;
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475 (eval $ac_compile) 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag"
20483 || test ! -s conftest.err'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } &&
20489 { ac_try='test -s conftest.$ac_objext'
20490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); }; }; then
20495 am_cv_proto_iconv_arg1=""
20496 else
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 am_cv_proto_iconv_arg1="const"
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503 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);"
20506 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20507 echo "$as_me:$LINENO: result: ${ac_t:-
20508 }$am_cv_proto_iconv" >&5
20509 echo "${ECHO_T}${ac_t:-
20510 }$am_cv_proto_iconv" >&6
20512 cat >>confdefs.h <<_ACEOF
20513 #define ICONV_CONST $am_cv_proto_iconv_arg1
20514 _ACEOF
20519 if test "x${GCC}" = xyes; then
20521 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
20524 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
20527 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
20530 ERROR_CFLAGS=
20531 if test "x${ENABLE_WERROR}" = xyes; then
20532 ERROR_CFLAGS='-Werror'
20537 if test "x${COMPILE_XMLJ}" = xyes; then
20539 succeeded=no
20541 if test -z "$PKG_CONFIG"; then
20542 # Extract the first word of "pkg-config", so it can be a program name with args.
20543 set dummy pkg-config; ac_word=$2
20544 echo "$as_me:$LINENO: checking for $ac_word" >&5
20545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20546 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549 case $PKG_CONFIG in
20550 [\\/]* | ?:[\\/]*)
20551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20555 for as_dir in $PATH
20557 IFS=$as_save_IFS
20558 test -z "$as_dir" && as_dir=.
20559 for ac_exec_ext in '' $ac_executable_extensions; do
20560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20561 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20563 break 2
20565 done
20566 done
20568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20570 esac
20572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20574 if test -n "$PKG_CONFIG"; then
20575 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20576 echo "${ECHO_T}$PKG_CONFIG" >&6
20577 else
20578 echo "$as_me:$LINENO: result: no" >&5
20579 echo "${ECHO_T}no" >&6
20584 if test "$PKG_CONFIG" = "no" ; then
20585 echo "*** The pkg-config script could not be found. Make sure it is"
20586 echo "*** in your path, or set the PKG_CONFIG environment variable"
20587 echo "*** to the full path to pkg-config."
20588 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20589 else
20590 PKG_CONFIG_MIN_VERSION=0.9.0
20591 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20592 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
20593 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
20595 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
20596 echo "$as_me:$LINENO: result: yes" >&5
20597 echo "${ECHO_T}yes" >&6
20598 succeeded=yes
20600 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
20601 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
20602 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
20603 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
20604 echo "${ECHO_T}$XML_CFLAGS" >&6
20606 echo "$as_me:$LINENO: checking XML_LIBS" >&5
20607 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
20608 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
20609 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
20610 echo "${ECHO_T}$XML_LIBS" >&6
20611 else
20612 XML_CFLAGS=""
20613 XML_LIBS=""
20614 ## If we have a custom action on failure, don't print errors, but
20615 ## do set a variable so people can do so.
20616 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
20617 echo $XML_PKG_ERRORS
20622 else
20623 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20624 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20628 if test $succeeded = yes; then
20630 else
20631 { { 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
20632 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;}
20633 { (exit 1); exit 1; }; }
20637 succeeded=no
20639 if test -z "$PKG_CONFIG"; then
20640 # Extract the first word of "pkg-config", so it can be a program name with args.
20641 set dummy pkg-config; ac_word=$2
20642 echo "$as_me:$LINENO: checking for $ac_word" >&5
20643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20644 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647 case $PKG_CONFIG in
20648 [\\/]* | ?:[\\/]*)
20649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20653 for as_dir in $PATH
20655 IFS=$as_save_IFS
20656 test -z "$as_dir" && as_dir=.
20657 for ac_exec_ext in '' $ac_executable_extensions; do
20658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20661 break 2
20663 done
20664 done
20666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20668 esac
20670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20672 if test -n "$PKG_CONFIG"; then
20673 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20674 echo "${ECHO_T}$PKG_CONFIG" >&6
20675 else
20676 echo "$as_me:$LINENO: result: no" >&5
20677 echo "${ECHO_T}no" >&6
20682 if test "$PKG_CONFIG" = "no" ; then
20683 echo "*** The pkg-config script could not be found. Make sure it is"
20684 echo "*** in your path, or set the PKG_CONFIG environment variable"
20685 echo "*** to the full path to pkg-config."
20686 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20687 else
20688 PKG_CONFIG_MIN_VERSION=0.9.0
20689 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20690 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
20691 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
20693 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
20694 echo "$as_me:$LINENO: result: yes" >&5
20695 echo "${ECHO_T}yes" >&6
20696 succeeded=yes
20698 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
20699 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
20700 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
20701 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
20702 echo "${ECHO_T}$XSLT_CFLAGS" >&6
20704 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
20705 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
20706 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
20707 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
20708 echo "${ECHO_T}$XSLT_LIBS" >&6
20709 else
20710 XSLT_CFLAGS=""
20711 XSLT_LIBS=""
20712 ## If we have a custom action on failure, don't print errors, but
20713 ## do set a variable so people can do so.
20714 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
20715 echo $XSLT_PKG_ERRORS
20720 else
20721 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20722 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20726 if test $succeeded = yes; then
20728 else
20729 { { 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
20730 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;}
20731 { (exit 1); exit 1; }; }
20740 if test "x${COMPILE_GTK_PEER}" = xyes; then
20741 echo "$as_me:$LINENO: checking for X" >&5
20742 echo $ECHO_N "checking for X... $ECHO_C" >&6
20745 # Check whether --with-x or --without-x was given.
20746 if test "${with_x+set}" = set; then
20747 withval="$with_x"
20750 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20751 if test "x$with_x" = xno; then
20752 # The user explicitly disabled X.
20753 have_x=disabled
20754 else
20755 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20756 # Both variables are already set.
20757 have_x=yes
20758 else
20759 if test "${ac_cv_have_x+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762 # One or both of the vars are not set, and there is no cached value.
20763 ac_x_includes=no ac_x_libraries=no
20764 rm -fr conftest.dir
20765 if mkdir conftest.dir; then
20766 cd conftest.dir
20767 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20768 cat >Imakefile <<'_ACEOF'
20769 acfindx:
20770 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20771 _ACEOF
20772 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20774 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20775 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20776 for ac_extension in a so sl; do
20777 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20778 test -f $ac_im_libdir/libX11.$ac_extension; then
20779 ac_im_usrlibdir=$ac_im_libdir; break
20781 done
20782 # Screen out bogus values from the imake configuration. They are
20783 # bogus both because they are the default anyway, and because
20784 # using them would break gcc on systems where it needs fixed includes.
20785 case $ac_im_incroot in
20786 /usr/include) ;;
20787 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20788 esac
20789 case $ac_im_usrlibdir in
20790 /usr/lib | /lib) ;;
20791 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20792 esac
20794 cd ..
20795 rm -fr conftest.dir
20798 # Standard set of common directories for X headers.
20799 # Check X11 before X11Rn because it is often a symlink to the current release.
20800 ac_x_header_dirs='
20801 /usr/X11/include
20802 /usr/X11R6/include
20803 /usr/X11R5/include
20804 /usr/X11R4/include
20806 /usr/include/X11
20807 /usr/include/X11R6
20808 /usr/include/X11R5
20809 /usr/include/X11R4
20811 /usr/local/X11/include
20812 /usr/local/X11R6/include
20813 /usr/local/X11R5/include
20814 /usr/local/X11R4/include
20816 /usr/local/include/X11
20817 /usr/local/include/X11R6
20818 /usr/local/include/X11R5
20819 /usr/local/include/X11R4
20821 /usr/X386/include
20822 /usr/x386/include
20823 /usr/XFree86/include/X11
20825 /usr/include
20826 /usr/local/include
20827 /usr/unsupported/include
20828 /usr/athena/include
20829 /usr/local/x11r5/include
20830 /usr/lpp/Xamples/include
20832 /usr/openwin/include
20833 /usr/openwin/share/include'
20835 if test "$ac_x_includes" = no; then
20836 # Guess where to find include files, by looking for Intrinsic.h.
20837 # First, try using that file with no special directory specified.
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h. */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 #include <X11/Intrinsic.h>
20845 _ACEOF
20846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } >/dev/null; then
20854 if test -s conftest.err; then
20855 ac_cpp_err=$ac_c_preproc_warn_flag
20856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20857 else
20858 ac_cpp_err=
20860 else
20861 ac_cpp_err=yes
20863 if test -z "$ac_cpp_err"; then
20864 # We can compile using X headers with no special include directory.
20865 ac_x_includes=
20866 else
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 for ac_dir in $ac_x_header_dirs; do
20871 if test -r "$ac_dir/X11/Intrinsic.h"; then
20872 ac_x_includes=$ac_dir
20873 break
20875 done
20877 rm -f conftest.err conftest.$ac_ext
20878 fi # $ac_x_includes = no
20880 if test "$ac_x_libraries" = no; then
20881 # Check for the libraries.
20882 # See if we find them without any special options.
20883 # Don't add to $LIBS permanently.
20884 ac_save_LIBS=$LIBS
20885 LIBS="-lXt $LIBS"
20886 if test x$gcc_no_link = xyes; then
20887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20889 { (exit 1); exit 1; }; }
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 #include <X11/Intrinsic.h>
20899 main ()
20901 XtMalloc (0)
20903 return 0;
20905 _ACEOF
20906 rm -f conftest.$ac_objext conftest$ac_exeext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20908 (eval $ac_link) 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag"
20916 || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest$ac_exeext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 LIBS=$ac_save_LIBS
20929 # We can link X programs with no special library path.
20930 ac_x_libraries=
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 LIBS=$ac_save_LIBS
20936 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20938 # Don't even attempt the hair of trying to link an X program!
20939 for ac_extension in a so sl; do
20940 if test -r $ac_dir/libXt.$ac_extension; then
20941 ac_x_libraries=$ac_dir
20942 break 2
20944 done
20945 done
20947 rm -f conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext conftest.$ac_ext
20949 fi # $ac_x_libraries = no
20951 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20952 # Didn't find X anywhere. Cache the known absence of X.
20953 ac_cv_have_x="have_x=no"
20954 else
20955 # Record where we found X for the cache.
20956 ac_cv_have_x="have_x=yes \
20957 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20962 eval "$ac_cv_have_x"
20963 fi # $with_x != no
20965 if test "$have_x" != yes; then
20966 echo "$as_me:$LINENO: result: $have_x" >&5
20967 echo "${ECHO_T}$have_x" >&6
20968 no_x=yes
20969 else
20970 # If each of the values was on the command line, it overrides each guess.
20971 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20972 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20973 # Update the cache value to reflect the command line values.
20974 ac_cv_have_x="have_x=yes \
20975 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20976 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20977 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20980 if test "$no_x" = yes; then
20981 # Not all programs may use this symbol, but it does not hurt to define it.
20983 cat >>confdefs.h <<\_ACEOF
20984 #define X_DISPLAY_MISSING 1
20985 _ACEOF
20987 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20988 else
20989 if test -n "$x_includes"; then
20990 X_CFLAGS="$X_CFLAGS -I$x_includes"
20993 # It would also be nice to do this for all -L options, not just this one.
20994 if test -n "$x_libraries"; then
20995 X_LIBS="$X_LIBS -L$x_libraries"
20996 # For Solaris; some versions of Sun CC require a space after -R and
20997 # others require no space. Words are not sufficient . . . .
20998 case `(uname -sr) 2>/dev/null` in
20999 "SunOS 5"*)
21000 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21001 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21002 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21003 if test x$gcc_no_link = xyes; then
21004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21006 { (exit 1); exit 1; }; }
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h. */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21016 main ()
21020 return 0;
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025 (eval $ac_link) 2>conftest.er1
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } &&
21032 { ac_try='test -z "$ac_c_werror_flag"
21033 || test ! -s conftest.err'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_R_nospace=yes
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_R_nospace=no
21052 rm -f conftest.err conftest.$ac_objext \
21053 conftest$ac_exeext conftest.$ac_ext
21054 if test $ac_R_nospace = yes; then
21055 echo "$as_me:$LINENO: result: no" >&5
21056 echo "${ECHO_T}no" >&6
21057 X_LIBS="$X_LIBS -R$x_libraries"
21058 else
21059 LIBS="$ac_xsave_LIBS -R $x_libraries"
21060 if test x$gcc_no_link = xyes; then
21061 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21062 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21063 { (exit 1); exit 1; }; }
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h. */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21073 main ()
21077 return 0;
21079 _ACEOF
21080 rm -f conftest.$ac_objext conftest$ac_exeext
21081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21082 (eval $ac_link) 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } &&
21089 { ac_try='test -z "$ac_c_werror_flag"
21090 || test ! -s conftest.err'
21091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; } &&
21096 { ac_try='test -s conftest$ac_exeext'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 ac_R_space=yes
21103 else
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 ac_R_space=no
21109 rm -f conftest.err conftest.$ac_objext \
21110 conftest$ac_exeext conftest.$ac_ext
21111 if test $ac_R_space = yes; then
21112 echo "$as_me:$LINENO: result: yes" >&5
21113 echo "${ECHO_T}yes" >&6
21114 X_LIBS="$X_LIBS -R $x_libraries"
21115 else
21116 echo "$as_me:$LINENO: result: neither works" >&5
21117 echo "${ECHO_T}neither works" >&6
21120 LIBS=$ac_xsave_LIBS
21121 esac
21124 # Check for system-dependent libraries X programs must link with.
21125 # Do this before checking for the system-independent R6 libraries
21126 # (-lICE), since we may need -lsocket or whatever for X linking.
21128 if test "$ISC" = yes; then
21129 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21130 else
21131 # Martyn Johnson says this is needed for Ultrix, if the X
21132 # libraries were built with DECnet support. And Karl Berry says
21133 # the Alpha needs dnet_stub (dnet does not exist).
21134 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21135 if test x$gcc_no_link = xyes; then
21136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21138 { (exit 1); exit 1; }; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 /* Override any gcc2 internal prototype to avoid an error. */
21148 #ifdef __cplusplus
21149 extern "C"
21150 #endif
21151 /* We use char because int might match the return type of a gcc2
21152 builtin and then its argument prototype would still apply. */
21153 char XOpenDisplay ();
21155 main ()
21157 XOpenDisplay ();
21159 return 0;
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164 (eval $ac_link) 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag"
21172 || test ! -s conftest.err'
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest$ac_exeext'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21190 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21191 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 ac_check_lib_save_LIBS=$LIBS
21195 LIBS="-ldnet $LIBS"
21196 if test x$gcc_no_link = xyes; then
21197 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21199 { (exit 1); exit 1; }; }
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h. */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21208 /* Override any gcc2 internal prototype to avoid an error. */
21209 #ifdef __cplusplus
21210 extern "C"
21211 #endif
21212 /* We use char because int might match the return type of a gcc2
21213 builtin and then its argument prototype would still apply. */
21214 char dnet_ntoa ();
21216 main ()
21218 dnet_ntoa ();
21220 return 0;
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225 (eval $ac_link) 2>conftest.er1
21226 ac_status=$?
21227 grep -v '^ *+' conftest.er1 >conftest.err
21228 rm -f conftest.er1
21229 cat conftest.err >&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } &&
21232 { ac_try='test -z "$ac_c_werror_flag"
21233 || test ! -s conftest.err'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; } &&
21239 { ac_try='test -s conftest$ac_exeext'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; }; then
21245 ac_cv_lib_dnet_dnet_ntoa=yes
21246 else
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_cv_lib_dnet_dnet_ntoa=no
21252 rm -f conftest.err conftest.$ac_objext \
21253 conftest$ac_exeext conftest.$ac_ext
21254 LIBS=$ac_check_lib_save_LIBS
21256 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21257 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21258 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21259 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21262 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21263 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21264 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21265 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 ac_check_lib_save_LIBS=$LIBS
21269 LIBS="-ldnet_stub $LIBS"
21270 if test x$gcc_no_link = xyes; then
21271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21273 { (exit 1); exit 1; }; }
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h. */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21282 /* Override any gcc2 internal prototype to avoid an error. */
21283 #ifdef __cplusplus
21284 extern "C"
21285 #endif
21286 /* We use char because int might match the return type of a gcc2
21287 builtin and then its argument prototype would still apply. */
21288 char dnet_ntoa ();
21290 main ()
21292 dnet_ntoa ();
21294 return 0;
21296 _ACEOF
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299 (eval $ac_link) 2>conftest.er1
21300 ac_status=$?
21301 grep -v '^ *+' conftest.er1 >conftest.err
21302 rm -f conftest.er1
21303 cat conftest.err >&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } &&
21306 { ac_try='test -z "$ac_c_werror_flag"
21307 || test ! -s conftest.err'
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest$ac_exeext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_cv_lib_dnet_stub_dnet_ntoa=no
21326 rm -f conftest.err conftest.$ac_objext \
21327 conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21330 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21331 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21332 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21338 rm -f conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext conftest.$ac_ext
21340 LIBS="$ac_xsave_LIBS"
21342 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21343 # to get the SysV transport functions.
21344 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21345 # needs -lnsl.
21346 # The nsl library prevents programs from opening the X display
21347 # on Irix 5.2, according to T.E. Dickey.
21348 # The functions gethostbyname, getservbyname, and inet_addr are
21349 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21350 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21351 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21352 if test "${ac_cv_func_gethostbyname+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355 if test x$gcc_no_link = xyes; then
21356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21358 { (exit 1); exit 1; }; }
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21368 #define gethostbyname innocuous_gethostbyname
21370 /* System header to define __stub macros and hopefully few prototypes,
21371 which can conflict with char gethostbyname (); below.
21372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21373 <limits.h> exists even on freestanding compilers. */
21375 #ifdef __STDC__
21376 # include <limits.h>
21377 #else
21378 # include <assert.h>
21379 #endif
21381 #undef gethostbyname
21383 /* Override any gcc2 internal prototype to avoid an error. */
21384 #ifdef __cplusplus
21385 extern "C"
21387 #endif
21388 /* We use char because int might match the return type of a gcc2
21389 builtin and then its argument prototype would still apply. */
21390 char gethostbyname ();
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21395 choke me
21396 #else
21397 char (*f) () = gethostbyname;
21398 #endif
21399 #ifdef __cplusplus
21401 #endif
21404 main ()
21406 return f != gethostbyname;
21408 return 0;
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
21420 { ac_try='test -z "$ac_c_werror_flag"
21421 || test ! -s conftest.err'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest$ac_exeext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_func_gethostbyname=yes
21434 else
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_cv_func_gethostbyname=no
21440 rm -f conftest.err conftest.$ac_objext \
21441 conftest$ac_exeext conftest.$ac_ext
21443 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21444 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21446 if test $ac_cv_func_gethostbyname = no; then
21447 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21448 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21449 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 ac_check_lib_save_LIBS=$LIBS
21453 LIBS="-lnsl $LIBS"
21454 if test x$gcc_no_link = xyes; then
21455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21457 { (exit 1); exit 1; }; }
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h. */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21466 /* Override any gcc2 internal prototype to avoid an error. */
21467 #ifdef __cplusplus
21468 extern "C"
21469 #endif
21470 /* We use char because int might match the return type of a gcc2
21471 builtin and then its argument prototype would still apply. */
21472 char gethostbyname ();
21474 main ()
21476 gethostbyname ();
21478 return 0;
21480 _ACEOF
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21483 (eval $ac_link) 2>conftest.er1
21484 ac_status=$?
21485 grep -v '^ *+' conftest.er1 >conftest.err
21486 rm -f conftest.er1
21487 cat conftest.err >&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } &&
21490 { ac_try='test -z "$ac_c_werror_flag"
21491 || test ! -s conftest.err'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; } &&
21497 { ac_try='test -s conftest$ac_exeext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_lib_nsl_gethostbyname=yes
21504 else
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_cv_lib_nsl_gethostbyname=no
21510 rm -f conftest.err conftest.$ac_objext \
21511 conftest$ac_exeext conftest.$ac_ext
21512 LIBS=$ac_check_lib_save_LIBS
21514 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21515 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21516 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21520 if test $ac_cv_lib_nsl_gethostbyname = no; then
21521 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21522 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21523 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526 ac_check_lib_save_LIBS=$LIBS
21527 LIBS="-lbsd $LIBS"
21528 if test x$gcc_no_link = xyes; then
21529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21531 { (exit 1); exit 1; }; }
21533 cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h. */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21540 /* Override any gcc2 internal prototype to avoid an error. */
21541 #ifdef __cplusplus
21542 extern "C"
21543 #endif
21544 /* We use char because int might match the return type of a gcc2
21545 builtin and then its argument prototype would still apply. */
21546 char gethostbyname ();
21548 main ()
21550 gethostbyname ();
21552 return 0;
21554 _ACEOF
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21557 (eval $ac_link) 2>conftest.er1
21558 ac_status=$?
21559 grep -v '^ *+' conftest.er1 >conftest.err
21560 rm -f conftest.er1
21561 cat conftest.err >&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } &&
21564 { ac_try='test -z "$ac_c_werror_flag"
21565 || test ! -s conftest.err'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest$ac_exeext'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_lib_bsd_gethostbyname=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_cv_lib_bsd_gethostbyname=no
21584 rm -f conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21588 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21589 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21590 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21591 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21597 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21598 # socket/setsockopt and other routines are undefined under SCO ODT
21599 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
21600 # on later versions), says Simon Leinen: it contains gethostby*
21601 # variants that don't use the name server (or something). -lsocket
21602 # must be given before -lnsl if both are needed. We assume that
21603 # if connect needs -lnsl, so does gethostbyname.
21604 echo "$as_me:$LINENO: checking for connect" >&5
21605 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21606 if test "${ac_cv_func_connect+set}" = set; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609 if test x$gcc_no_link = xyes; then
21610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21612 { (exit 1); exit 1; }; }
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h. */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21622 #define connect innocuous_connect
21624 /* System header to define __stub macros and hopefully few prototypes,
21625 which can conflict with char connect (); below.
21626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627 <limits.h> exists even on freestanding compilers. */
21629 #ifdef __STDC__
21630 # include <limits.h>
21631 #else
21632 # include <assert.h>
21633 #endif
21635 #undef connect
21637 /* Override any gcc2 internal prototype to avoid an error. */
21638 #ifdef __cplusplus
21639 extern "C"
21641 #endif
21642 /* We use char because int might match the return type of a gcc2
21643 builtin and then its argument prototype would still apply. */
21644 char connect ();
21645 /* The GNU C library defines this for functions which it implements
21646 to always fail with ENOSYS. Some functions are actually named
21647 something starting with __ and the normal name is an alias. */
21648 #if defined (__stub_connect) || defined (__stub___connect)
21649 choke me
21650 #else
21651 char (*f) () = connect;
21652 #endif
21653 #ifdef __cplusplus
21655 #endif
21658 main ()
21660 return f != connect;
21662 return 0;
21664 _ACEOF
21665 rm -f conftest.$ac_objext conftest$ac_exeext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667 (eval $ac_link) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } &&
21674 { ac_try='test -z "$ac_c_werror_flag"
21675 || test ! -s conftest.err'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest$ac_exeext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_cv_func_connect=yes
21688 else
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_func_connect=no
21694 rm -f conftest.err conftest.$ac_objext \
21695 conftest$ac_exeext conftest.$ac_ext
21697 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21698 echo "${ECHO_T}$ac_cv_func_connect" >&6
21700 if test $ac_cv_func_connect = no; then
21701 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21702 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21703 if test "${ac_cv_lib_socket_connect+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706 ac_check_lib_save_LIBS=$LIBS
21707 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21708 if test x$gcc_no_link = xyes; then
21709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21711 { (exit 1); exit 1; }; }
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h. */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21720 /* Override any gcc2 internal prototype to avoid an error. */
21721 #ifdef __cplusplus
21722 extern "C"
21723 #endif
21724 /* We use char because int might match the return type of a gcc2
21725 builtin and then its argument prototype would still apply. */
21726 char connect ();
21728 main ()
21730 connect ();
21732 return 0;
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737 (eval $ac_link) 2>conftest.er1
21738 ac_status=$?
21739 grep -v '^ *+' conftest.er1 >conftest.err
21740 rm -f conftest.er1
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } &&
21744 { ac_try='test -z "$ac_c_werror_flag"
21745 || test ! -s conftest.err'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; } &&
21751 { ac_try='test -s conftest$ac_exeext'
21752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); }; }; then
21757 ac_cv_lib_socket_connect=yes
21758 else
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 ac_cv_lib_socket_connect=no
21764 rm -f conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
21766 LIBS=$ac_check_lib_save_LIBS
21768 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21769 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21770 if test $ac_cv_lib_socket_connect = yes; then
21771 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21776 # Guillermo Gomez says -lposix is necessary on A/UX.
21777 echo "$as_me:$LINENO: checking for remove" >&5
21778 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21779 if test "${ac_cv_func_remove+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782 if test x$gcc_no_link = xyes; then
21783 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21785 { (exit 1); exit 1; }; }
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21795 #define remove innocuous_remove
21797 /* System header to define __stub macros and hopefully few prototypes,
21798 which can conflict with char remove (); below.
21799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21800 <limits.h> exists even on freestanding compilers. */
21802 #ifdef __STDC__
21803 # include <limits.h>
21804 #else
21805 # include <assert.h>
21806 #endif
21808 #undef remove
21810 /* Override any gcc2 internal prototype to avoid an error. */
21811 #ifdef __cplusplus
21812 extern "C"
21814 #endif
21815 /* We use char because int might match the return type of a gcc2
21816 builtin and then its argument prototype would still apply. */
21817 char remove ();
21818 /* The GNU C library defines this for functions which it implements
21819 to always fail with ENOSYS. Some functions are actually named
21820 something starting with __ and the normal name is an alias. */
21821 #if defined (__stub_remove) || defined (__stub___remove)
21822 choke me
21823 #else
21824 char (*f) () = remove;
21825 #endif
21826 #ifdef __cplusplus
21828 #endif
21831 main ()
21833 return f != remove;
21835 return 0;
21837 _ACEOF
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840 (eval $ac_link) 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } &&
21847 { ac_try='test -z "$ac_c_werror_flag"
21848 || test ! -s conftest.err'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest$ac_exeext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_cv_func_remove=yes
21861 else
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21865 ac_cv_func_remove=no
21867 rm -f conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21870 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21871 echo "${ECHO_T}$ac_cv_func_remove" >&6
21873 if test $ac_cv_func_remove = no; then
21874 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21875 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21876 if test "${ac_cv_lib_posix_remove+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879 ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lposix $LIBS"
21881 if test x$gcc_no_link = xyes; then
21882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21884 { (exit 1); exit 1; }; }
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21893 /* Override any gcc2 internal prototype to avoid an error. */
21894 #ifdef __cplusplus
21895 extern "C"
21896 #endif
21897 /* We use char because int might match the return type of a gcc2
21898 builtin and then its argument prototype would still apply. */
21899 char remove ();
21901 main ()
21903 remove ();
21905 return 0;
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21910 (eval $ac_link) 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } &&
21917 { ac_try='test -z "$ac_c_werror_flag"
21918 || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try='test -s conftest$ac_exeext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 ac_cv_lib_posix_remove=yes
21931 else
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_cv_lib_posix_remove=no
21937 rm -f conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21941 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21942 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21943 if test $ac_cv_lib_posix_remove = yes; then
21944 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21949 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21950 echo "$as_me:$LINENO: checking for shmat" >&5
21951 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21952 if test "${ac_cv_func_shmat+set}" = set; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955 if test x$gcc_no_link = xyes; then
21956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21958 { (exit 1); exit 1; }; }
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21968 #define shmat innocuous_shmat
21970 /* System header to define __stub macros and hopefully few prototypes,
21971 which can conflict with char shmat (); below.
21972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973 <limits.h> exists even on freestanding compilers. */
21975 #ifdef __STDC__
21976 # include <limits.h>
21977 #else
21978 # include <assert.h>
21979 #endif
21981 #undef shmat
21983 /* Override any gcc2 internal prototype to avoid an error. */
21984 #ifdef __cplusplus
21985 extern "C"
21987 #endif
21988 /* We use char because int might match the return type of a gcc2
21989 builtin and then its argument prototype would still apply. */
21990 char shmat ();
21991 /* The GNU C library defines this for functions which it implements
21992 to always fail with ENOSYS. Some functions are actually named
21993 something starting with __ and the normal name is an alias. */
21994 #if defined (__stub_shmat) || defined (__stub___shmat)
21995 choke me
21996 #else
21997 char (*f) () = shmat;
21998 #endif
21999 #ifdef __cplusplus
22001 #endif
22004 main ()
22006 return f != shmat;
22008 return 0;
22010 _ACEOF
22011 rm -f conftest.$ac_objext conftest$ac_exeext
22012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013 (eval $ac_link) 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
22020 { ac_try='test -z "$ac_c_werror_flag"
22021 || test ! -s conftest.err'
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; } &&
22027 { ac_try='test -s conftest$ac_exeext'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22033 ac_cv_func_shmat=yes
22034 else
22035 echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22038 ac_cv_func_shmat=no
22040 rm -f conftest.err conftest.$ac_objext \
22041 conftest$ac_exeext conftest.$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22044 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22046 if test $ac_cv_func_shmat = no; then
22047 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22048 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22049 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052 ac_check_lib_save_LIBS=$LIBS
22053 LIBS="-lipc $LIBS"
22054 if test x$gcc_no_link = xyes; then
22055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22057 { (exit 1); exit 1; }; }
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22066 /* Override any gcc2 internal prototype to avoid an error. */
22067 #ifdef __cplusplus
22068 extern "C"
22069 #endif
22070 /* We use char because int might match the return type of a gcc2
22071 builtin and then its argument prototype would still apply. */
22072 char shmat ();
22074 main ()
22076 shmat ();
22078 return 0;
22080 _ACEOF
22081 rm -f conftest.$ac_objext conftest$ac_exeext
22082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22083 (eval $ac_link) 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
22090 { ac_try='test -z "$ac_c_werror_flag"
22091 || test ! -s conftest.err'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; } &&
22097 { ac_try='test -s conftest$ac_exeext'
22098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 ac_cv_lib_ipc_shmat=yes
22104 else
22105 echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22108 ac_cv_lib_ipc_shmat=no
22110 rm -f conftest.err conftest.$ac_objext \
22111 conftest$ac_exeext conftest.$ac_ext
22112 LIBS=$ac_check_lib_save_LIBS
22114 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22115 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22116 if test $ac_cv_lib_ipc_shmat = yes; then
22117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22123 # Check for libraries that X11R6 Xt/Xaw programs need.
22124 ac_save_LDFLAGS=$LDFLAGS
22125 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22126 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22127 # check for ICE first), but we must link in the order -lSM -lICE or
22128 # we get undefined symbols. So assume we have SM if we have ICE.
22129 # These have to be linked with before -lX11, unlike the other
22130 # libraries we check for below, so use a different variable.
22131 # John Interrante, Karl Berry
22132 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22133 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22134 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22139 if test x$gcc_no_link = xyes; then
22140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22142 { (exit 1); exit 1; }; }
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22151 /* Override any gcc2 internal prototype to avoid an error. */
22152 #ifdef __cplusplus
22153 extern "C"
22154 #endif
22155 /* We use char because int might match the return type of a gcc2
22156 builtin and then its argument prototype would still apply. */
22157 char IceConnectionNumber ();
22159 main ()
22161 IceConnectionNumber ();
22163 return 0;
22165 _ACEOF
22166 rm -f conftest.$ac_objext conftest$ac_exeext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22168 (eval $ac_link) 2>conftest.er1
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
22175 { ac_try='test -z "$ac_c_werror_flag"
22176 || test ! -s conftest.err'
22177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178 (eval $ac_try) 2>&5
22179 ac_status=$?
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); }; } &&
22182 { ac_try='test -s conftest$ac_exeext'
22183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184 (eval $ac_try) 2>&5
22185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); }; }; then
22188 ac_cv_lib_ICE_IceConnectionNumber=yes
22189 else
22190 echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 ac_cv_lib_ICE_IceConnectionNumber=no
22195 rm -f conftest.err conftest.$ac_objext \
22196 conftest$ac_exeext conftest.$ac_ext
22197 LIBS=$ac_check_lib_save_LIBS
22199 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22200 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22201 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22202 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22205 LDFLAGS=$ac_save_LDFLAGS
22209 if test "$no_x" = yes; then
22210 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
22211 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
22212 { (exit 1); exit 1; }; }
22214 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
22215 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
22216 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219 ac_check_lib_save_LIBS=$LIBS
22220 LIBS="-lXtst ${X_LIBS} $LIBS"
22221 if test x$gcc_no_link = xyes; then
22222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22224 { (exit 1); exit 1; }; }
22226 cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h. */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22233 /* Override any gcc2 internal prototype to avoid an error. */
22234 #ifdef __cplusplus
22235 extern "C"
22236 #endif
22237 /* We use char because int might match the return type of a gcc2
22238 builtin and then its argument prototype would still apply. */
22239 char XTestQueryExtension ();
22241 main ()
22243 XTestQueryExtension ();
22245 return 0;
22247 _ACEOF
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22250 (eval $ac_link) 2>conftest.er1
22251 ac_status=$?
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
22257 { ac_try='test -z "$ac_c_werror_flag"
22258 || test ! -s conftest.err'
22259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260 (eval $ac_try) 2>&5
22261 ac_status=$?
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); }; } &&
22264 { ac_try='test -s conftest$ac_exeext'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; }; then
22270 ac_cv_lib_Xtst_XTestQueryExtension=yes
22271 else
22272 echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22275 ac_cv_lib_Xtst_XTestQueryExtension=no
22277 rm -f conftest.err conftest.$ac_objext \
22278 conftest$ac_exeext conftest.$ac_ext
22279 LIBS=$ac_check_lib_save_LIBS
22281 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22282 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
22283 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_XTEST 1
22287 _ACEOF
22288 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
22289 else
22290 true
22296 succeeded=no
22298 if test -z "$PKG_CONFIG"; then
22299 # Extract the first word of "pkg-config", so it can be a program name with args.
22300 set dummy pkg-config; ac_word=$2
22301 echo "$as_me:$LINENO: checking for $ac_word" >&5
22302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306 case $PKG_CONFIG in
22307 [\\/]* | ?:[\\/]*)
22308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $PATH
22314 IFS=$as_save_IFS
22315 test -z "$as_dir" && as_dir=.
22316 for ac_exec_ext in '' $ac_executable_extensions; do
22317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22320 break 2
22322 done
22323 done
22325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22327 esac
22329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22331 if test -n "$PKG_CONFIG"; then
22332 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22333 echo "${ECHO_T}$PKG_CONFIG" >&6
22334 else
22335 echo "$as_me:$LINENO: result: no" >&5
22336 echo "${ECHO_T}no" >&6
22341 if test "$PKG_CONFIG" = "no" ; then
22342 echo "*** The pkg-config script could not be found. Make sure it is"
22343 echo "*** in your path, or set the PKG_CONFIG environment variable"
22344 echo "*** to the full path to pkg-config."
22345 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22346 else
22347 PKG_CONFIG_MIN_VERSION=0.9.0
22348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22349 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
22350 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
22352 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
22353 echo "$as_me:$LINENO: result: yes" >&5
22354 echo "${ECHO_T}yes" >&6
22355 succeeded=yes
22357 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
22358 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
22359 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22360 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
22361 echo "${ECHO_T}$GTK_CFLAGS" >&6
22363 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
22364 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
22365 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22366 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
22367 echo "${ECHO_T}$GTK_LIBS" >&6
22368 else
22369 GTK_CFLAGS=""
22370 GTK_LIBS=""
22371 ## If we have a custom action on failure, don't print errors, but
22372 ## do set a variable so people can do so.
22373 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22374 echo $GTK_PKG_ERRORS
22379 else
22380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22385 if test $succeeded = yes; then
22387 else
22388 { { 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
22389 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;}
22390 { (exit 1); exit 1; }; }
22394 succeeded=no
22396 if test -z "$PKG_CONFIG"; then
22397 # Extract the first word of "pkg-config", so it can be a program name with args.
22398 set dummy pkg-config; ac_word=$2
22399 echo "$as_me:$LINENO: checking for $ac_word" >&5
22400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22401 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404 case $PKG_CONFIG in
22405 [\\/]* | ?:[\\/]*)
22406 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22410 for as_dir in $PATH
22412 IFS=$as_save_IFS
22413 test -z "$as_dir" && as_dir=.
22414 for ac_exec_ext in '' $ac_executable_extensions; do
22415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22416 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22418 break 2
22420 done
22421 done
22423 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22425 esac
22427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22429 if test -n "$PKG_CONFIG"; then
22430 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22431 echo "${ECHO_T}$PKG_CONFIG" >&6
22432 else
22433 echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6
22439 if test "$PKG_CONFIG" = "no" ; then
22440 echo "*** The pkg-config script could not be found. Make sure it is"
22441 echo "*** in your path, or set the PKG_CONFIG environment variable"
22442 echo "*** to the full path to pkg-config."
22443 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22444 else
22445 PKG_CONFIG_MIN_VERSION=0.9.0
22446 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22447 echo "$as_me:$LINENO: checking for freetype2" >&5
22448 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
22450 if $PKG_CONFIG --exists "freetype2" ; then
22451 echo "$as_me:$LINENO: result: yes" >&5
22452 echo "${ECHO_T}yes" >&6
22453 succeeded=yes
22455 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
22456 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
22457 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
22458 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
22459 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
22461 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
22462 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
22463 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
22464 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
22465 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
22466 else
22467 FREETYPE2_CFLAGS=""
22468 FREETYPE2_LIBS=""
22469 ## If we have a custom action on failure, don't print errors, but
22470 ## do set a variable so people can do so.
22471 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
22472 echo $FREETYPE2_PKG_ERRORS
22477 else
22478 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22479 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22483 if test $succeeded = yes; then
22485 else
22486 { { 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
22487 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;}
22488 { (exit 1); exit 1; }; }
22492 succeeded=no
22494 if test -z "$PKG_CONFIG"; then
22495 # Extract the first word of "pkg-config", so it can be a program name with args.
22496 set dummy pkg-config; ac_word=$2
22497 echo "$as_me:$LINENO: checking for $ac_word" >&5
22498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502 case $PKG_CONFIG in
22503 [\\/]* | ?:[\\/]*)
22504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22508 for as_dir in $PATH
22510 IFS=$as_save_IFS
22511 test -z "$as_dir" && as_dir=.
22512 for ac_exec_ext in '' $ac_executable_extensions; do
22513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22514 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22516 break 2
22518 done
22519 done
22521 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22523 esac
22525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22527 if test -n "$PKG_CONFIG"; then
22528 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22529 echo "${ECHO_T}$PKG_CONFIG" >&6
22530 else
22531 echo "$as_me:$LINENO: result: no" >&5
22532 echo "${ECHO_T}no" >&6
22537 if test "$PKG_CONFIG" = "no" ; then
22538 echo "*** The pkg-config script could not be found. Make sure it is"
22539 echo "*** in your path, or set the PKG_CONFIG environment variable"
22540 echo "*** to the full path to pkg-config."
22541 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22542 else
22543 PKG_CONFIG_MIN_VERSION=0.9.0
22544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22545 echo "$as_me:$LINENO: checking for pangoft2" >&5
22546 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22548 if $PKG_CONFIG --exists "pangoft2" ; then
22549 echo "$as_me:$LINENO: result: yes" >&5
22550 echo "${ECHO_T}yes" >&6
22551 succeeded=yes
22553 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22554 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22555 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22556 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22557 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22559 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22560 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22561 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22562 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22563 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22564 else
22565 PANGOFT2_CFLAGS=""
22566 PANGOFT2_LIBS=""
22567 ## If we have a custom action on failure, don't print errors, but
22568 ## do set a variable so people can do so.
22569 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22570 echo $PANGOFT2_PKG_ERRORS
22575 else
22576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22581 if test $succeeded = yes; then
22583 else
22584 { { 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
22585 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;}
22586 { (exit 1); exit 1; }; }
22590 succeeded=no
22592 if test -z "$PKG_CONFIG"; then
22593 # Extract the first word of "pkg-config", so it can be a program name with args.
22594 set dummy pkg-config; ac_word=$2
22595 echo "$as_me:$LINENO: checking for $ac_word" >&5
22596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22597 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22598 echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600 case $PKG_CONFIG in
22601 [\\/]* | ?:[\\/]*)
22602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22606 for as_dir in $PATH
22608 IFS=$as_save_IFS
22609 test -z "$as_dir" && as_dir=.
22610 for ac_exec_ext in '' $ac_executable_extensions; do
22611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22614 break 2
22616 done
22617 done
22619 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22621 esac
22623 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22625 if test -n "$PKG_CONFIG"; then
22626 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22627 echo "${ECHO_T}$PKG_CONFIG" >&6
22628 else
22629 echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6
22635 if test "$PKG_CONFIG" = "no" ; then
22636 echo "*** The pkg-config script could not be found. Make sure it is"
22637 echo "*** in your path, or set the PKG_CONFIG environment variable"
22638 echo "*** to the full path to pkg-config."
22639 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22640 else
22641 PKG_CONFIG_MIN_VERSION=0.9.0
22642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22643 echo "$as_me:$LINENO: checking for cairo >= 1.1.8" >&5
22644 echo $ECHO_N "checking for cairo >= 1.1.8... $ECHO_C" >&6
22646 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
22647 echo "$as_me:$LINENO: result: yes" >&5
22648 echo "${ECHO_T}yes" >&6
22649 succeeded=yes
22651 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
22652 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
22653 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
22654 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
22655 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
22657 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
22658 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
22659 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
22660 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
22661 echo "${ECHO_T}$CAIRO_LIBS" >&6
22662 else
22663 CAIRO_CFLAGS=""
22664 CAIRO_LIBS=""
22665 ## If we have a custom action on failure, don't print errors, but
22666 ## do set a variable so people can do so.
22667 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
22668 echo $CAIRO_PKG_ERRORS
22673 else
22674 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22675 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22679 if test $succeeded = yes; then
22681 else
22682 { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 1.1.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
22683 echo "$as_me: error: Library requirements (cairo >= 1.1.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;}
22684 { (exit 1); exit 1; }; }
22687 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
22688 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
22689 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692 ac_check_lib_save_LIBS=$LIBS
22693 LIBS="-lXrender ${X_LIBS} $LIBS"
22694 if test x$gcc_no_link = xyes; then
22695 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22697 { (exit 1); exit 1; }; }
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22706 /* Override any gcc2 internal prototype to avoid an error. */
22707 #ifdef __cplusplus
22708 extern "C"
22709 #endif
22710 /* We use char because int might match the return type of a gcc2
22711 builtin and then its argument prototype would still apply. */
22712 char XRenderQueryExtension ();
22714 main ()
22716 XRenderQueryExtension ();
22718 return 0;
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>conftest.er1
22724 ac_status=$?
22725 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } &&
22730 { ac_try='test -z "$ac_c_werror_flag"
22731 || test ! -s conftest.err'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } &&
22737 { ac_try='test -s conftest$ac_exeext'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743 ac_cv_lib_Xrender_XRenderQueryExtension=yes
22744 else
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ac_cv_lib_Xrender_XRenderQueryExtension=no
22750 rm -f conftest.err conftest.$ac_objext \
22751 conftest$ac_exeext conftest.$ac_ext
22752 LIBS=$ac_check_lib_save_LIBS
22754 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
22755 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
22756 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_XRENDER 1
22760 _ACEOF
22761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
22762 else
22763 true
22767 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
22768 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
22769 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772 ac_check_lib_save_LIBS=$LIBS
22773 LIBS="-lXrandr ${X_LIBS} $LIBS"
22774 if test x$gcc_no_link = xyes; then
22775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22777 { (exit 1); exit 1; }; }
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h. */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 /* Override any gcc2 internal prototype to avoid an error. */
22787 #ifdef __cplusplus
22788 extern "C"
22789 #endif
22790 /* We use char because int might match the return type of a gcc2
22791 builtin and then its argument prototype would still apply. */
22792 char XRRQueryExtension ();
22794 main ()
22796 XRRQueryExtension ();
22798 return 0;
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803 (eval $ac_link) 2>conftest.er1
22804 ac_status=$?
22805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -z "$ac_c_werror_flag"
22811 || test ! -s conftest.err'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; } &&
22817 { ac_try='test -s conftest$ac_exeext'
22818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 ac_cv_lib_Xrandr_XRRQueryExtension=yes
22824 else
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_cv_lib_Xrandr_XRRQueryExtension=no
22830 rm -f conftest.err conftest.$ac_objext \
22831 conftest$ac_exeext conftest.$ac_ext
22832 LIBS=$ac_check_lib_save_LIBS
22834 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
22835 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
22836 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
22838 cat >>confdefs.h <<\_ACEOF
22839 #define HAVE_XRANDR 1
22840 _ACEOF
22841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
22842 else
22843 true
22856 if test "x${COMPILE_GCONF_PEER}" = xyes; then
22858 succeeded=no
22860 if test -z "$PKG_CONFIG"; then
22861 # Extract the first word of "pkg-config", so it can be a program name with args.
22862 set dummy pkg-config; ac_word=$2
22863 echo "$as_me:$LINENO: checking for $ac_word" >&5
22864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22865 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868 case $PKG_CONFIG in
22869 [\\/]* | ?:[\\/]*)
22870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22874 for as_dir in $PATH
22876 IFS=$as_save_IFS
22877 test -z "$as_dir" && as_dir=.
22878 for ac_exec_ext in '' $ac_executable_extensions; do
22879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22882 break 2
22884 done
22885 done
22887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22889 esac
22891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22893 if test -n "$PKG_CONFIG"; then
22894 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22895 echo "${ECHO_T}$PKG_CONFIG" >&6
22896 else
22897 echo "$as_me:$LINENO: result: no" >&5
22898 echo "${ECHO_T}no" >&6
22903 if test "$PKG_CONFIG" = "no" ; then
22904 echo "*** The pkg-config script could not be found. Make sure it is"
22905 echo "*** in your path, or set the PKG_CONFIG environment variable"
22906 echo "*** to the full path to pkg-config."
22907 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22908 else
22909 PKG_CONFIG_MIN_VERSION=0.9.0
22910 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22911 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6.0" >&5
22912 echo $ECHO_N "checking for gconf-2.0 >= 2.6.0... $ECHO_C" >&6
22914 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
22915 echo "$as_me:$LINENO: result: yes" >&5
22916 echo "${ECHO_T}yes" >&6
22917 succeeded=yes
22919 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
22920 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
22921 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
22922 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
22923 echo "${ECHO_T}$GCONF_CFLAGS" >&6
22925 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
22926 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
22927 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
22928 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
22929 echo "${ECHO_T}$GCONF_LIBS" >&6
22930 else
22931 GCONF_CFLAGS=""
22932 GCONF_LIBS=""
22933 ## If we have a custom action on failure, don't print errors, but
22934 ## do set a variable so people can do so.
22935 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
22936 echo $GCONF_PKG_ERRORS
22941 else
22942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22947 if test $succeeded = yes; then
22949 else
22950 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.6.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
22951 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.6.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;}
22952 { (exit 1); exit 1; }; }
22958 succeeded=no
22960 if test -z "$PKG_CONFIG"; then
22961 # Extract the first word of "pkg-config", so it can be a program name with args.
22962 set dummy pkg-config; ac_word=$2
22963 echo "$as_me:$LINENO: checking for $ac_word" >&5
22964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968 case $PKG_CONFIG in
22969 [\\/]* | ?:[\\/]*)
22970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22974 for as_dir in $PATH
22976 IFS=$as_save_IFS
22977 test -z "$as_dir" && as_dir=.
22978 for ac_exec_ext in '' $ac_executable_extensions; do
22979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22982 break 2
22984 done
22985 done
22987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22989 esac
22991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22993 if test -n "$PKG_CONFIG"; then
22994 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22995 echo "${ECHO_T}$PKG_CONFIG" >&6
22996 else
22997 echo "$as_me:$LINENO: result: no" >&5
22998 echo "${ECHO_T}no" >&6
23003 if test "$PKG_CONFIG" = "no" ; then
23004 echo "*** The pkg-config script could not be found. Make sure it is"
23005 echo "*** in your path, or set the PKG_CONFIG environment variable"
23006 echo "*** to the full path to pkg-config."
23007 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23008 else
23009 PKG_CONFIG_MIN_VERSION=0.9.0
23010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23011 echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
23012 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
23014 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
23015 echo "$as_me:$LINENO: result: yes" >&5
23016 echo "${ECHO_T}yes" >&6
23017 succeeded=yes
23019 echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
23020 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
23021 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
23022 echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
23023 echo "${ECHO_T}$GDK_CFLAGS" >&6
23025 echo "$as_me:$LINENO: checking GDK_LIBS" >&5
23026 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
23027 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
23028 echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
23029 echo "${ECHO_T}$GDK_LIBS" >&6
23030 else
23031 GDK_CFLAGS=""
23032 GDK_LIBS=""
23033 ## If we have a custom action on failure, don't print errors, but
23034 ## do set a variable so people can do so.
23035 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
23036 echo $GDK_PKG_ERRORS
23041 else
23042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23047 if test $succeeded = yes; then
23049 else
23050 { { 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
23051 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;}
23052 { (exit 1); exit 1; }; }
23057 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
23058 if test "$USE_GCONF_PREFS_PEER" = ""; then
23059 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
23063 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
23064 GST_MAJORMINOR=0.10
23065 GST_REQUIRED=0.10.10
23068 succeeded=no
23070 if test -z "$PKG_CONFIG"; then
23071 # Extract the first word of "pkg-config", so it can be a program name with args.
23072 set dummy pkg-config; ac_word=$2
23073 echo "$as_me:$LINENO: checking for $ac_word" >&5
23074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23075 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078 case $PKG_CONFIG in
23079 [\\/]* | ?:[\\/]*)
23080 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23084 for as_dir in $PATH
23086 IFS=$as_save_IFS
23087 test -z "$as_dir" && as_dir=.
23088 for ac_exec_ext in '' $ac_executable_extensions; do
23089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23090 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23092 break 2
23094 done
23095 done
23097 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23099 esac
23101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23103 if test -n "$PKG_CONFIG"; then
23104 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23105 echo "${ECHO_T}$PKG_CONFIG" >&6
23106 else
23107 echo "$as_me:$LINENO: result: no" >&5
23108 echo "${ECHO_T}no" >&6
23113 if test "$PKG_CONFIG" = "no" ; then
23114 echo "*** The pkg-config script could not be found. Make sure it is"
23115 echo "*** in your path, or set the PKG_CONFIG environment variable"
23116 echo "*** to the full path to pkg-config."
23117 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23118 else
23119 PKG_CONFIG_MIN_VERSION=0.9.0
23120 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23121 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
23122 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
23124 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
23125 echo "$as_me:$LINENO: result: yes" >&5
23126 echo "${ECHO_T}yes" >&6
23127 succeeded=yes
23129 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
23130 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
23131 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
23132 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
23133 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
23135 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
23136 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
23137 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
23138 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
23139 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
23140 else
23141 GSTREAMER_CFLAGS=""
23142 GSTREAMER_LIBS=""
23143 ## If we have a custom action on failure, don't print errors, but
23144 ## do set a variable so people can do so.
23145 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
23146 echo $GSTREAMER_PKG_ERRORS
23151 else
23152 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23153 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23157 if test $succeeded = yes; then
23159 else
23160 { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) 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
23161 echo "$as_me: error: Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) 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;}
23162 { (exit 1); exit 1; }; }
23169 succeeded=no
23171 if test -z "$PKG_CONFIG"; then
23172 # Extract the first word of "pkg-config", so it can be a program name with args.
23173 set dummy pkg-config; ac_word=$2
23174 echo "$as_me:$LINENO: checking for $ac_word" >&5
23175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23176 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179 case $PKG_CONFIG in
23180 [\\/]* | ?:[\\/]*)
23181 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23185 for as_dir in $PATH
23187 IFS=$as_save_IFS
23188 test -z "$as_dir" && as_dir=.
23189 for ac_exec_ext in '' $ac_executable_extensions; do
23190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23191 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23193 break 2
23195 done
23196 done
23198 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23200 esac
23202 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23204 if test -n "$PKG_CONFIG"; then
23205 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23206 echo "${ECHO_T}$PKG_CONFIG" >&6
23207 else
23208 echo "$as_me:$LINENO: result: no" >&5
23209 echo "${ECHO_T}no" >&6
23214 if test "$PKG_CONFIG" = "no" ; then
23215 echo "*** The pkg-config script could not be found. Make sure it is"
23216 echo "*** in your path, or set the PKG_CONFIG environment variable"
23217 echo "*** to the full path to pkg-config."
23218 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23219 else
23220 PKG_CONFIG_MIN_VERSION=0.9.0
23221 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23222 echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
23223 echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
23225 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
23226 echo "$as_me:$LINENO: result: yes" >&5
23227 echo "${ECHO_T}yes" >&6
23228 succeeded=yes
23230 echo "$as_me:$LINENO: checking GSTREAMER_BASE_CFLAGS" >&5
23231 echo $ECHO_N "checking GSTREAMER_BASE_CFLAGS... $ECHO_C" >&6
23232 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23233 echo "$as_me:$LINENO: result: $GSTREAMER_BASE_CFLAGS" >&5
23234 echo "${ECHO_T}$GSTREAMER_BASE_CFLAGS" >&6
23236 echo "$as_me:$LINENO: checking GSTREAMER_BASE_LIBS" >&5
23237 echo $ECHO_N "checking GSTREAMER_BASE_LIBS... $ECHO_C" >&6
23238 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23239 echo "$as_me:$LINENO: result: $GSTREAMER_BASE_LIBS" >&5
23240 echo "${ECHO_T}$GSTREAMER_BASE_LIBS" >&6
23241 else
23242 GSTREAMER_BASE_CFLAGS=""
23243 GSTREAMER_BASE_LIBS=""
23244 ## If we have a custom action on failure, don't print errors, but
23245 ## do set a variable so people can do so.
23246 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23247 echo $GSTREAMER_BASE_PKG_ERRORS
23252 else
23253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23258 if test $succeeded = yes; then
23260 else
23261 { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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
23262 echo "$as_me: error: Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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;}
23263 { (exit 1); exit 1; }; }
23270 succeeded=no
23272 if test -z "$PKG_CONFIG"; then
23273 # Extract the first word of "pkg-config", so it can be a program name with args.
23274 set dummy pkg-config; ac_word=$2
23275 echo "$as_me:$LINENO: checking for $ac_word" >&5
23276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23277 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280 case $PKG_CONFIG in
23281 [\\/]* | ?:[\\/]*)
23282 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23288 IFS=$as_save_IFS
23289 test -z "$as_dir" && as_dir=.
23290 for ac_exec_ext in '' $ac_executable_extensions; do
23291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23292 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23294 break 2
23296 done
23297 done
23299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23301 esac
23303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23305 if test -n "$PKG_CONFIG"; then
23306 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23307 echo "${ECHO_T}$PKG_CONFIG" >&6
23308 else
23309 echo "$as_me:$LINENO: result: no" >&5
23310 echo "${ECHO_T}no" >&6
23315 if test "$PKG_CONFIG" = "no" ; then
23316 echo "*** The pkg-config script could not be found. Make sure it is"
23317 echo "*** in your path, or set the PKG_CONFIG environment variable"
23318 echo "*** to the full path to pkg-config."
23319 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23320 else
23321 PKG_CONFIG_MIN_VERSION=0.9.0
23322 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23323 echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
23324 echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
23326 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
23327 echo "$as_me:$LINENO: result: yes" >&5
23328 echo "${ECHO_T}yes" >&6
23329 succeeded=yes
23331 echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
23332 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
23333 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23334 echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
23335 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6
23337 echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
23338 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_LIBS... $ECHO_C" >&6
23339 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23340 echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
23341 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_LIBS" >&6
23342 else
23343 GSTREAMER_PLUGINS_BASE_CFLAGS=""
23344 GSTREAMER_PLUGINS_BASE_LIBS=""
23345 ## If we have a custom action on failure, don't print errors, but
23346 ## do set a variable so people can do so.
23347 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23348 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
23353 else
23354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23359 if test $succeeded = yes; then
23361 else
23362 { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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
23363 echo "$as_me: error: Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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;}
23364 { (exit 1); exit 1; }; }
23370 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
23374 succeeded=no
23376 if test -z "$PKG_CONFIG"; then
23377 # Extract the first word of "pkg-config", so it can be a program name with args.
23378 set dummy pkg-config; ac_word=$2
23379 echo "$as_me:$LINENO: checking for $ac_word" >&5
23380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23381 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384 case $PKG_CONFIG in
23385 [\\/]* | ?:[\\/]*)
23386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23390 for as_dir in $PATH
23392 IFS=$as_save_IFS
23393 test -z "$as_dir" && as_dir=.
23394 for ac_exec_ext in '' $ac_executable_extensions; do
23395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23398 break 2
23400 done
23401 done
23403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23405 esac
23407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23409 if test -n "$PKG_CONFIG"; then
23410 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23411 echo "${ECHO_T}$PKG_CONFIG" >&6
23412 else
23413 echo "$as_me:$LINENO: result: no" >&5
23414 echo "${ECHO_T}no" >&6
23419 if test "$PKG_CONFIG" = "no" ; then
23420 echo "*** The pkg-config script could not be found. Make sure it is"
23421 echo "*** in your path, or set the PKG_CONFIG environment variable"
23422 echo "*** to the full path to pkg-config."
23423 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23424 else
23425 PKG_CONFIG_MIN_VERSION=0.9.0
23426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23427 echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
23428 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
23430 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
23431 echo "$as_me:$LINENO: result: yes" >&5
23432 echo "${ECHO_T}yes" >&6
23433 succeeded=yes
23435 echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
23436 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
23437 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
23438 echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
23439 echo "${ECHO_T}$GDK_CFLAGS" >&6
23441 echo "$as_me:$LINENO: checking GDK_LIBS" >&5
23442 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
23443 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
23444 echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
23445 echo "${ECHO_T}$GDK_LIBS" >&6
23446 else
23447 GDK_CFLAGS=""
23448 GDK_LIBS=""
23449 ## If we have a custom action on failure, don't print errors, but
23450 ## do set a variable so people can do so.
23451 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
23452 echo $GDK_PKG_ERRORS
23457 else
23458 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23459 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23463 if test $succeeded = yes; then
23465 else
23466 { { 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
23467 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;}
23468 { (exit 1); exit 1; }; }
23474 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
23475 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
23480 if test "x${COMPILE_QT_PEER}" = xyes; then
23482 succeeded=no
23484 if test -z "$PKG_CONFIG"; then
23485 # Extract the first word of "pkg-config", so it can be a program name with args.
23486 set dummy pkg-config; ac_word=$2
23487 echo "$as_me:$LINENO: checking for $ac_word" >&5
23488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23491 else
23492 case $PKG_CONFIG in
23493 [\\/]* | ?:[\\/]*)
23494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23498 for as_dir in $PATH
23500 IFS=$as_save_IFS
23501 test -z "$as_dir" && as_dir=.
23502 for ac_exec_ext in '' $ac_executable_extensions; do
23503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23506 break 2
23508 done
23509 done
23511 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23513 esac
23515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23517 if test -n "$PKG_CONFIG"; then
23518 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23519 echo "${ECHO_T}$PKG_CONFIG" >&6
23520 else
23521 echo "$as_me:$LINENO: result: no" >&5
23522 echo "${ECHO_T}no" >&6
23527 if test "$PKG_CONFIG" = "no" ; then
23528 echo "*** The pkg-config script could not be found. Make sure it is"
23529 echo "*** in your path, or set the PKG_CONFIG environment variable"
23530 echo "*** to the full path to pkg-config."
23531 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23532 else
23533 PKG_CONFIG_MIN_VERSION=0.9.0
23534 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23535 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
23536 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
23538 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
23539 echo "$as_me:$LINENO: result: yes" >&5
23540 echo "${ECHO_T}yes" >&6
23541 succeeded=yes
23543 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
23544 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
23545 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
23546 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
23547 echo "${ECHO_T}$QT_CFLAGS" >&6
23549 echo "$as_me:$LINENO: checking QT_LIBS" >&5
23550 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
23551 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
23552 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
23553 echo "${ECHO_T}$QT_LIBS" >&6
23554 else
23555 QT_CFLAGS=""
23556 QT_LIBS=""
23557 ## If we have a custom action on failure, don't print errors, but
23558 ## do set a variable so people can do so.
23559 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
23565 else
23566 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23567 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23571 if test $succeeded = yes; then
23572 HAVE_QT4="yes"
23573 else
23574 HAVE_QT4="no"
23577 if test "x$HAVE_QT4" = "xyes"; then
23578 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
23579 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
23580 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
23581 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
23582 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
23583 if eval "test \"\${$as_ac_File+set}\" = set"; then
23584 echo $ECHO_N "(cached) $ECHO_C" >&6
23585 else
23586 test "$cross_compiling" = yes &&
23587 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23588 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23589 { (exit 1); exit 1; }; }
23590 if test -r "$QT_INCLUDE_DIR/QWidget"; then
23591 eval "$as_ac_File=yes"
23592 else
23593 eval "$as_ac_File=no"
23596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
23597 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
23598 if test `eval echo '${'$as_ac_File'}'` = yes; then
23599 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
23600 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
23601 else
23602 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
23603 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
23604 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
23605 if eval "test \"\${$as_ac_File+set}\" = set"; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23607 else
23608 test "$cross_compiling" = yes &&
23609 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23610 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23611 { (exit 1); exit 1; }; }
23612 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
23613 eval "$as_ac_File=yes"
23614 else
23615 eval "$as_ac_File=no"
23618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
23619 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
23620 if test `eval echo '${'$as_ac_File'}'` = yes; then
23621 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
23622 else
23623 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
23624 echo "$as_me: WARNING: QWidget not found" >&2;}
23629 # Extract the first word of "moc", so it can be a program name with args.
23630 set dummy moc; ac_word=$2
23631 echo "$as_me:$LINENO: checking for $ac_word" >&5
23632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23633 if test "${ac_cv_prog_MOC+set}" = set; then
23634 echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636 if test -n "$MOC"; then
23637 ac_cv_prog_MOC="$MOC" # Let the user override the test.
23638 else
23639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23640 for as_dir in $PATH
23642 IFS=$as_save_IFS
23643 test -z "$as_dir" && as_dir=.
23644 for ac_exec_ext in '' $ac_executable_extensions; do
23645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23646 ac_cv_prog_MOC="moc"
23647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23648 break 2
23650 done
23651 done
23655 MOC=$ac_cv_prog_MOC
23656 if test -n "$MOC"; then
23657 echo "$as_me:$LINENO: result: $MOC" >&5
23658 echo "${ECHO_T}$MOC" >&6
23659 else
23660 echo "$as_me:$LINENO: result: no" >&5
23661 echo "${ECHO_T}no" >&6
23664 # Extract the first word of "moc-qt4", so it can be a program name with args.
23665 set dummy moc-qt4; ac_word=$2
23666 echo "$as_me:$LINENO: checking for $ac_word" >&5
23667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23668 if test "${ac_cv_prog_MOC+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671 if test -n "$MOC"; then
23672 ac_cv_prog_MOC="$MOC" # Let the user override the test.
23673 else
23674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23675 for as_dir in $PATH
23677 IFS=$as_save_IFS
23678 test -z "$as_dir" && as_dir=.
23679 for ac_exec_ext in '' $ac_executable_extensions; do
23680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23681 ac_cv_prog_MOC="moc-qt4"
23682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23683 break 2
23685 done
23686 done
23690 MOC=$ac_cv_prog_MOC
23691 if test -n "$MOC"; then
23692 echo "$as_me:$LINENO: result: $MOC" >&5
23693 echo "${ECHO_T}$MOC" >&6
23694 else
23695 echo "$as_me:$LINENO: result: no" >&5
23696 echo "${ECHO_T}no" >&6
23700 if test "x$HAVE_QT4" = "xno"; then
23701 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
23702 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
23703 case "$host_os" in
23704 darwin*)
23706 # Check whether --with-qt4dir or --without-qt4dir was given.
23707 if test "${with_qt4dir+set}" = set; then
23708 withval="$with_qt4dir"
23709 QT4DIR=$withval
23712 if test x"$QT4DIR" = x ; then
23713 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
23714 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
23715 { (exit 1); exit 1; }; }
23717 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
23718 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
23719 # Extract the first word of "moc", so it can be a program name with args.
23720 set dummy moc; ac_word=$2
23721 echo "$as_me:$LINENO: checking for $ac_word" >&5
23722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23723 if test "${ac_cv_prog_MOC+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726 if test -n "$MOC"; then
23727 ac_cv_prog_MOC="$MOC" # Let the user override the test.
23728 else
23729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23730 for as_dir in $QT4DIR/bin
23732 IFS=$as_save_IFS
23733 test -z "$as_dir" && as_dir=.
23734 for ac_exec_ext in '' $ac_executable_extensions; do
23735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23736 ac_cv_prog_MOC="$QT4DIR/bin/moc"
23737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23738 break 2
23740 done
23741 done
23745 MOC=$ac_cv_prog_MOC
23746 if test -n "$MOC"; then
23747 echo "$as_me:$LINENO: result: $MOC" >&5
23748 echo "${ECHO_T}$MOC" >&6
23749 else
23750 echo "$as_me:$LINENO: result: no" >&5
23751 echo "${ECHO_T}no" >&6
23754 if test x"$MOC" = x; then
23755 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
23756 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
23757 { (exit 1); exit 1; }; }
23759 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
23760 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
23761 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
23762 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
23765 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
23766 of your installed Qt4 installation." >&5
23767 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
23768 of your installed Qt4 installation." >&2;}
23769 { (exit 1); exit 1; }; }
23771 esac
23773 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
23774 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
23778 echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
23779 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h. */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23786 #include <sys/socket.h>
23788 main ()
23790 int f = MSG_NOSIGNAL;
23792 return 0;
23794 _ACEOF
23795 rm -f conftest.$ac_objext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23797 (eval $ac_compile) 2>conftest.er1
23798 ac_status=$?
23799 grep -v '^ *+' conftest.er1 >conftest.err
23800 rm -f conftest.er1
23801 cat conftest.err >&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } &&
23804 { ac_try='test -z "$ac_c_werror_flag"
23805 || test ! -s conftest.err'
23806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807 (eval $ac_try) 2>&5
23808 ac_status=$?
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); }; } &&
23811 { ac_try='test -s conftest.$ac_objext'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; }; then
23817 echo "$as_me:$LINENO: result: yes" >&5
23818 echo "${ECHO_T}yes" >&6
23820 cat >>confdefs.h <<\_ACEOF
23821 #define HAVE_MSG_NOSIGNAL 1
23822 _ACEOF
23824 else
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 echo "$as_me:$LINENO: result: no" >&5
23829 echo "${ECHO_T}no" >&6
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23833 echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
23834 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h. */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23841 #include <sys/socket.h>
23843 main ()
23845 int f = SO_NOSIGPIPE;
23847 return 0;
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23852 (eval $ac_compile) 2>conftest.er1
23853 ac_status=$?
23854 grep -v '^ *+' conftest.er1 >conftest.err
23855 rm -f conftest.er1
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } &&
23859 { ac_try='test -z "$ac_c_werror_flag"
23860 || test ! -s conftest.err'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } &&
23866 { ac_try='test -s conftest.$ac_objext'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23869 ac_status=$?
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; }; then
23872 echo "$as_me:$LINENO: result: yes" >&5
23873 echo "${ECHO_T}yes" >&6
23875 cat >>confdefs.h <<\_ACEOF
23876 #define HAVE_SO_NOSIGPIPE 1
23877 _ACEOF
23879 else
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 echo "$as_me:$LINENO: result: no" >&5
23884 echo "${ECHO_T}no" >&6
23887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23888 echo "$as_me:$LINENO: checking for MSG_WAITALL" >&5
23889 echo $ECHO_N "checking for MSG_WAITALL... $ECHO_C" >&6
23890 cat >conftest.$ac_ext <<_ACEOF
23891 /* confdefs.h. */
23892 _ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h. */
23896 #include <sys/socket.h>
23898 main ()
23900 int f = MSG_WAITALL;
23902 return 0;
23904 _ACEOF
23905 rm -f conftest.$ac_objext
23906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23907 (eval $ac_compile) 2>conftest.er1
23908 ac_status=$?
23909 grep -v '^ *+' conftest.er1 >conftest.err
23910 rm -f conftest.er1
23911 cat conftest.err >&5
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } &&
23914 { ac_try='test -z "$ac_c_werror_flag"
23915 || test ! -s conftest.err'
23916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917 (eval $ac_try) 2>&5
23918 ac_status=$?
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; } &&
23921 { ac_try='test -s conftest.$ac_objext'
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 echo "$as_me:$LINENO: result: yes" >&5
23928 echo "${ECHO_T}yes" >&6
23930 cat >>confdefs.h <<\_ACEOF
23931 #define HAVE_MSG_WAITALL 1
23932 _ACEOF
23934 else
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 echo "$as_me:$LINENO: result: no" >&5
23939 echo "${ECHO_T}no" >&6
23942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23944 if test "x${COMPILE_PLUGIN}" = xyes; then
23946 succeeded=no
23948 if test -z "$PKG_CONFIG"; then
23949 # Extract the first word of "pkg-config", so it can be a program name with args.
23950 set dummy pkg-config; ac_word=$2
23951 echo "$as_me:$LINENO: checking for $ac_word" >&5
23952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23954 echo $ECHO_N "(cached) $ECHO_C" >&6
23955 else
23956 case $PKG_CONFIG in
23957 [\\/]* | ?:[\\/]*)
23958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23962 for as_dir in $PATH
23964 IFS=$as_save_IFS
23965 test -z "$as_dir" && as_dir=.
23966 for ac_exec_ext in '' $ac_executable_extensions; do
23967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23970 break 2
23972 done
23973 done
23975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23977 esac
23979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23981 if test -n "$PKG_CONFIG"; then
23982 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23983 echo "${ECHO_T}$PKG_CONFIG" >&6
23984 else
23985 echo "$as_me:$LINENO: result: no" >&5
23986 echo "${ECHO_T}no" >&6
23991 if test "$PKG_CONFIG" = "no" ; then
23992 echo "*** The pkg-config script could not be found. Make sure it is"
23993 echo "*** in your path, or set the PKG_CONFIG environment variable"
23994 echo "*** to the full path to pkg-config."
23995 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23996 else
23997 PKG_CONFIG_MIN_VERSION=0.9.0
23998 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23999 echo "$as_me:$LINENO: checking for mozilla-plugin libxul-unstable" >&5
24000 echo $ECHO_N "checking for mozilla-plugin libxul-unstable... $ECHO_C" >&6
24002 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
24003 echo "$as_me:$LINENO: result: yes" >&5
24004 echo "${ECHO_T}yes" >&6
24005 succeeded=yes
24007 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24008 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24009 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
24010 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24011 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24013 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24014 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24015 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
24016 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24017 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24018 else
24019 MOZILLA_CFLAGS=""
24020 MOZILLA_LIBS=""
24021 ## If we have a custom action on failure, don't print errors, but
24022 ## do set a variable so people can do so.
24023 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
24029 else
24030 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24031 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24035 if test $succeeded = yes; then
24036 MOZILLA_FOUND=yes
24037 else
24038 MOZILLA_FOUND=no
24041 if test "x${MOZILLA_FOUND}" = xno; then
24043 succeeded=no
24045 if test -z "$PKG_CONFIG"; then
24046 # Extract the first word of "pkg-config", so it can be a program name with args.
24047 set dummy pkg-config; ac_word=$2
24048 echo "$as_me:$LINENO: checking for $ac_word" >&5
24049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24050 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053 case $PKG_CONFIG in
24054 [\\/]* | ?:[\\/]*)
24055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24059 for as_dir in $PATH
24061 IFS=$as_save_IFS
24062 test -z "$as_dir" && as_dir=.
24063 for ac_exec_ext in '' $ac_executable_extensions; do
24064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24067 break 2
24069 done
24070 done
24072 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24074 esac
24076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24078 if test -n "$PKG_CONFIG"; then
24079 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24080 echo "${ECHO_T}$PKG_CONFIG" >&6
24081 else
24082 echo "$as_me:$LINENO: result: no" >&5
24083 echo "${ECHO_T}no" >&6
24088 if test "$PKG_CONFIG" = "no" ; then
24089 echo "*** The pkg-config script could not be found. Make sure it is"
24090 echo "*** in your path, or set the PKG_CONFIG environment variable"
24091 echo "*** to the full path to pkg-config."
24092 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24093 else
24094 PKG_CONFIG_MIN_VERSION=0.9.0
24095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24096 echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
24097 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
24099 if $PKG_CONFIG --exists "mozilla-plugin" ; then
24100 echo "$as_me:$LINENO: result: yes" >&5
24101 echo "${ECHO_T}yes" >&6
24102 succeeded=yes
24104 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24105 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24106 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
24107 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24108 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24110 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24111 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24112 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
24113 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24114 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24115 else
24116 MOZILLA_CFLAGS=""
24117 MOZILLA_LIBS=""
24118 ## If we have a custom action on failure, don't print errors, but
24119 ## do set a variable so people can do so.
24120 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
24126 else
24127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24132 if test $succeeded = yes; then
24133 MOZILLA_FOUND=yes
24134 else
24135 MOZILLA_FOUND=no
24139 if test "x${MOZILLA_FOUND}" = xno; then
24141 succeeded=no
24143 if test -z "$PKG_CONFIG"; then
24144 # Extract the first word of "pkg-config", so it can be a program name with args.
24145 set dummy pkg-config; ac_word=$2
24146 echo "$as_me:$LINENO: checking for $ac_word" >&5
24147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151 case $PKG_CONFIG in
24152 [\\/]* | ?:[\\/]*)
24153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24157 for as_dir in $PATH
24159 IFS=$as_save_IFS
24160 test -z "$as_dir" && as_dir=.
24161 for ac_exec_ext in '' $ac_executable_extensions; do
24162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24165 break 2
24167 done
24168 done
24170 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24172 esac
24174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24176 if test -n "$PKG_CONFIG"; then
24177 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24178 echo "${ECHO_T}$PKG_CONFIG" >&6
24179 else
24180 echo "$as_me:$LINENO: result: no" >&5
24181 echo "${ECHO_T}no" >&6
24186 if test "$PKG_CONFIG" = "no" ; then
24187 echo "*** The pkg-config script could not be found. Make sure it is"
24188 echo "*** in your path, or set the PKG_CONFIG environment variable"
24189 echo "*** to the full path to pkg-config."
24190 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24191 else
24192 PKG_CONFIG_MIN_VERSION=0.9.0
24193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24194 echo "$as_me:$LINENO: checking for firefox-plugin firefox-xpcom" >&5
24195 echo $ECHO_N "checking for firefox-plugin firefox-xpcom... $ECHO_C" >&6
24197 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
24198 echo "$as_me:$LINENO: result: yes" >&5
24199 echo "${ECHO_T}yes" >&6
24200 succeeded=yes
24202 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24203 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24204 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
24205 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24206 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24208 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24209 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24210 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
24211 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24212 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24213 else
24214 MOZILLA_CFLAGS=""
24215 MOZILLA_LIBS=""
24216 ## If we have a custom action on failure, don't print errors, but
24217 ## do set a variable so people can do so.
24218 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
24224 else
24225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24230 if test $succeeded = yes; then
24231 MOZILLA_FOUND=yes
24232 else
24233 MOZILLA_FOUND=no
24237 if test "x${MOZILLA_FOUND}" = xno; then
24239 succeeded=no
24241 if test -z "$PKG_CONFIG"; then
24242 # Extract the first word of "pkg-config", so it can be a program name with args.
24243 set dummy pkg-config; ac_word=$2
24244 echo "$as_me:$LINENO: checking for $ac_word" >&5
24245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24248 else
24249 case $PKG_CONFIG in
24250 [\\/]* | ?:[\\/]*)
24251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24255 for as_dir in $PATH
24257 IFS=$as_save_IFS
24258 test -z "$as_dir" && as_dir=.
24259 for ac_exec_ext in '' $ac_executable_extensions; do
24260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24263 break 2
24265 done
24266 done
24268 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24270 esac
24272 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24274 if test -n "$PKG_CONFIG"; then
24275 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24276 echo "${ECHO_T}$PKG_CONFIG" >&6
24277 else
24278 echo "$as_me:$LINENO: result: no" >&5
24279 echo "${ECHO_T}no" >&6
24284 if test "$PKG_CONFIG" = "no" ; then
24285 echo "*** The pkg-config script could not be found. Make sure it is"
24286 echo "*** in your path, or set the PKG_CONFIG environment variable"
24287 echo "*** to the full path to pkg-config."
24288 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24289 else
24290 PKG_CONFIG_MIN_VERSION=0.9.0
24291 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24292 echo "$as_me:$LINENO: checking for xulrunner-plugin xulrunner-xpcom" >&5
24293 echo $ECHO_N "checking for xulrunner-plugin xulrunner-xpcom... $ECHO_C" >&6
24295 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
24296 echo "$as_me:$LINENO: result: yes" >&5
24297 echo "${ECHO_T}yes" >&6
24298 succeeded=yes
24300 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24301 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24302 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
24303 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24304 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24306 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24307 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24308 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
24309 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24310 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24311 else
24312 MOZILLA_CFLAGS=""
24313 MOZILLA_LIBS=""
24314 ## If we have a custom action on failure, don't print errors, but
24315 ## do set a variable so people can do so.
24316 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
24322 else
24323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24328 if test $succeeded = yes; then
24329 MOZILLA_FOUND=yes
24330 else
24331 MOZILLA_FOUND=no
24335 if test "x${MOZILLA_FOUND}" = xno; then
24337 succeeded=no
24339 if test -z "$PKG_CONFIG"; then
24340 # Extract the first word of "pkg-config", so it can be a program name with args.
24341 set dummy pkg-config; ac_word=$2
24342 echo "$as_me:$LINENO: checking for $ac_word" >&5
24343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24344 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24345 echo $ECHO_N "(cached) $ECHO_C" >&6
24346 else
24347 case $PKG_CONFIG in
24348 [\\/]* | ?:[\\/]*)
24349 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24353 for as_dir in $PATH
24355 IFS=$as_save_IFS
24356 test -z "$as_dir" && as_dir=.
24357 for ac_exec_ext in '' $ac_executable_extensions; do
24358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24359 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24361 break 2
24363 done
24364 done
24366 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24368 esac
24370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24372 if test -n "$PKG_CONFIG"; then
24373 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24374 echo "${ECHO_T}$PKG_CONFIG" >&6
24375 else
24376 echo "$as_me:$LINENO: result: no" >&5
24377 echo "${ECHO_T}no" >&6
24382 if test "$PKG_CONFIG" = "no" ; then
24383 echo "*** The pkg-config script could not be found. Make sure it is"
24384 echo "*** in your path, or set the PKG_CONFIG environment variable"
24385 echo "*** to the full path to pkg-config."
24386 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24387 else
24388 PKG_CONFIG_MIN_VERSION=0.9.0
24389 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24390 echo "$as_me:$LINENO: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
24391 echo $ECHO_N "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... $ECHO_C" >&6
24393 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
24394 echo "$as_me:$LINENO: result: yes" >&5
24395 echo "${ECHO_T}yes" >&6
24396 succeeded=yes
24398 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24399 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24400 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
24401 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24402 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24404 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24405 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24406 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
24407 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24408 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24409 else
24410 MOZILLA_CFLAGS=""
24411 MOZILLA_LIBS=""
24412 ## If we have a custom action on failure, don't print errors, but
24413 ## do set a variable so people can do so.
24414 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
24420 else
24421 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24422 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24426 if test $succeeded = yes; then
24427 MOZILLA_FOUND=yes
24428 else
24429 MOZILLA_FOUND=no
24433 if test "x${MOZILLA_FOUND}" = xno; then
24435 succeeded=no
24437 if test -z "$PKG_CONFIG"; then
24438 # Extract the first word of "pkg-config", so it can be a program name with args.
24439 set dummy pkg-config; ac_word=$2
24440 echo "$as_me:$LINENO: checking for $ac_word" >&5
24441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24442 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24443 echo $ECHO_N "(cached) $ECHO_C" >&6
24444 else
24445 case $PKG_CONFIG in
24446 [\\/]* | ?:[\\/]*)
24447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24451 for as_dir in $PATH
24453 IFS=$as_save_IFS
24454 test -z "$as_dir" && as_dir=.
24455 for ac_exec_ext in '' $ac_executable_extensions; do
24456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24459 break 2
24461 done
24462 done
24464 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24466 esac
24468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24470 if test -n "$PKG_CONFIG"; then
24471 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24472 echo "${ECHO_T}$PKG_CONFIG" >&6
24473 else
24474 echo "$as_me:$LINENO: result: no" >&5
24475 echo "${ECHO_T}no" >&6
24480 if test "$PKG_CONFIG" = "no" ; then
24481 echo "*** The pkg-config script could not be found. Make sure it is"
24482 echo "*** in your path, or set the PKG_CONFIG environment variable"
24483 echo "*** to the full path to pkg-config."
24484 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24485 else
24486 PKG_CONFIG_MIN_VERSION=0.9.0
24487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24488 echo "$as_me:$LINENO: checking for seamonkey-plugin seamonkey-xpcom" >&5
24489 echo $ECHO_N "checking for seamonkey-plugin seamonkey-xpcom... $ECHO_C" >&6
24491 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
24492 echo "$as_me:$LINENO: result: yes" >&5
24493 echo "${ECHO_T}yes" >&6
24494 succeeded=yes
24496 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24497 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24498 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
24499 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24500 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24502 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24503 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24504 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
24505 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24506 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24507 else
24508 MOZILLA_CFLAGS=""
24509 MOZILLA_LIBS=""
24510 ## If we have a custom action on failure, don't print errors, but
24511 ## do set a variable so people can do so.
24512 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
24518 else
24519 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24520 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24524 if test $succeeded = yes; then
24525 MOZILLA_FOUND=yes
24526 else
24527 MOZILLA_FOUND=no
24531 if test "x${MOZILLA_FOUND}" = xno; then
24533 succeeded=no
24535 if test -z "$PKG_CONFIG"; then
24536 # Extract the first word of "pkg-config", so it can be a program name with args.
24537 set dummy pkg-config; ac_word=$2
24538 echo "$as_me:$LINENO: checking for $ac_word" >&5
24539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24541 echo $ECHO_N "(cached) $ECHO_C" >&6
24542 else
24543 case $PKG_CONFIG in
24544 [\\/]* | ?:[\\/]*)
24545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24549 for as_dir in $PATH
24551 IFS=$as_save_IFS
24552 test -z "$as_dir" && as_dir=.
24553 for ac_exec_ext in '' $ac_executable_extensions; do
24554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24557 break 2
24559 done
24560 done
24562 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24564 esac
24566 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24568 if test -n "$PKG_CONFIG"; then
24569 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24570 echo "${ECHO_T}$PKG_CONFIG" >&6
24571 else
24572 echo "$as_me:$LINENO: result: no" >&5
24573 echo "${ECHO_T}no" >&6
24578 if test "$PKG_CONFIG" = "no" ; then
24579 echo "*** The pkg-config script could not be found. Make sure it is"
24580 echo "*** in your path, or set the PKG_CONFIG environment variable"
24581 echo "*** to the full path to pkg-config."
24582 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24583 else
24584 PKG_CONFIG_MIN_VERSION=0.9.0
24585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24586 echo "$as_me:$LINENO: checking for iceape-plugin iceape-xpcom" >&5
24587 echo $ECHO_N "checking for iceape-plugin iceape-xpcom... $ECHO_C" >&6
24589 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
24590 echo "$as_me:$LINENO: result: yes" >&5
24591 echo "${ECHO_T}yes" >&6
24592 succeeded=yes
24594 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24595 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24596 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
24597 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24598 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24600 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24601 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24602 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
24603 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24604 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24605 else
24606 MOZILLA_CFLAGS=""
24607 MOZILLA_LIBS=""
24608 ## If we have a custom action on failure, don't print errors, but
24609 ## do set a variable so people can do so.
24610 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
24616 else
24617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24622 if test $succeeded = yes; then
24623 MOZILLA_FOUND=yes
24624 else
24625 MOZILLA_FOUND=no
24629 if test "x${MOZILLA_FOUND}" = xno; then
24630 { { echo "$as_me:$LINENO: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&5
24631 echo "$as_me: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&2;}
24632 { (exit 1); exit 1; }; }
24636 succeeded=no
24638 if test -z "$PKG_CONFIG"; then
24639 # Extract the first word of "pkg-config", so it can be a program name with args.
24640 set dummy pkg-config; ac_word=$2
24641 echo "$as_me:$LINENO: checking for $ac_word" >&5
24642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646 case $PKG_CONFIG in
24647 [\\/]* | ?:[\\/]*)
24648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24652 for as_dir in $PATH
24654 IFS=$as_save_IFS
24655 test -z "$as_dir" && as_dir=.
24656 for ac_exec_ext in '' $ac_executable_extensions; do
24657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24660 break 2
24662 done
24663 done
24665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24667 esac
24669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24671 if test -n "$PKG_CONFIG"; then
24672 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24673 echo "${ECHO_T}$PKG_CONFIG" >&6
24674 else
24675 echo "$as_me:$LINENO: result: no" >&5
24676 echo "${ECHO_T}no" >&6
24681 if test "$PKG_CONFIG" = "no" ; then
24682 echo "*** The pkg-config script could not be found. Make sure it is"
24683 echo "*** in your path, or set the PKG_CONFIG environment variable"
24684 echo "*** to the full path to pkg-config."
24685 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24686 else
24687 PKG_CONFIG_MIN_VERSION=0.9.0
24688 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24689 echo "$as_me:$LINENO: checking for glib-2.0" >&5
24690 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
24692 if $PKG_CONFIG --exists "glib-2.0" ; then
24693 echo "$as_me:$LINENO: result: yes" >&5
24694 echo "${ECHO_T}yes" >&6
24695 succeeded=yes
24697 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
24698 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
24699 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
24700 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
24701 echo "${ECHO_T}$GLIB_CFLAGS" >&6
24703 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
24704 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
24705 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
24706 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
24707 echo "${ECHO_T}$GLIB_LIBS" >&6
24708 else
24709 GLIB_CFLAGS=""
24710 GLIB_LIBS=""
24711 ## If we have a custom action on failure, don't print errors, but
24712 ## do set a variable so people can do so.
24713 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
24714 echo $GLIB_PKG_ERRORS
24719 else
24720 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24721 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24725 if test $succeeded = yes; then
24727 else
24728 { { 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
24729 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;}
24730 { (exit 1); exit 1; }; }
24734 succeeded=no
24736 if test -z "$PKG_CONFIG"; then
24737 # Extract the first word of "pkg-config", so it can be a program name with args.
24738 set dummy pkg-config; ac_word=$2
24739 echo "$as_me:$LINENO: checking for $ac_word" >&5
24740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 else
24744 case $PKG_CONFIG in
24745 [\\/]* | ?:[\\/]*)
24746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24750 for as_dir in $PATH
24752 IFS=$as_save_IFS
24753 test -z "$as_dir" && as_dir=.
24754 for ac_exec_ext in '' $ac_executable_extensions; do
24755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24758 break 2
24760 done
24761 done
24763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24765 esac
24767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24769 if test -n "$PKG_CONFIG"; then
24770 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24771 echo "${ECHO_T}$PKG_CONFIG" >&6
24772 else
24773 echo "$as_me:$LINENO: result: no" >&5
24774 echo "${ECHO_T}no" >&6
24779 if test "$PKG_CONFIG" = "no" ; then
24780 echo "*** The pkg-config script could not be found. Make sure it is"
24781 echo "*** in your path, or set the PKG_CONFIG environment variable"
24782 echo "*** to the full path to pkg-config."
24783 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24784 else
24785 PKG_CONFIG_MIN_VERSION=0.9.0
24786 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24787 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
24788 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
24790 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
24791 echo "$as_me:$LINENO: result: yes" >&5
24792 echo "${ECHO_T}yes" >&6
24793 succeeded=yes
24795 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24796 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24797 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
24798 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24799 echo "${ECHO_T}$GTK_CFLAGS" >&6
24801 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24802 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24803 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
24804 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24805 echo "${ECHO_T}$GTK_LIBS" >&6
24806 else
24807 GTK_CFLAGS=""
24808 GTK_LIBS=""
24809 ## If we have a custom action on failure, don't print errors, but
24810 ## do set a variable so people can do so.
24811 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
24812 echo $GTK_PKG_ERRORS
24817 else
24818 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24819 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24823 if test $succeeded = yes; then
24825 else
24826 { { 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
24827 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;}
24828 { (exit 1); exit 1; }; }
24839 PLUGIN_DIR=$HOME/.mozilla/plugins/
24843 if test "x${COMPILE_GMP}" = xyes; then
24844 echo "$as_me:$LINENO: checking for __gmpz_mul_si in -lgmp" >&5
24845 echo $ECHO_N "checking for __gmpz_mul_si in -lgmp... $ECHO_C" >&6
24846 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then
24847 echo $ECHO_N "(cached) $ECHO_C" >&6
24848 else
24849 ac_check_lib_save_LIBS=$LIBS
24850 LIBS="-lgmp $LIBS"
24851 if test x$gcc_no_link = xyes; then
24852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24854 { (exit 1); exit 1; }; }
24856 cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h. */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24863 /* Override any gcc2 internal prototype to avoid an error. */
24864 #ifdef __cplusplus
24865 extern "C"
24866 #endif
24867 /* We use char because int might match the return type of a gcc2
24868 builtin and then its argument prototype would still apply. */
24869 char __gmpz_mul_si ();
24871 main ()
24873 __gmpz_mul_si ();
24875 return 0;
24877 _ACEOF
24878 rm -f conftest.$ac_objext conftest$ac_exeext
24879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24880 (eval $ac_link) 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } &&
24887 { ac_try='test -z "$ac_c_werror_flag"
24888 || test ! -s conftest.err'
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest$ac_exeext'
24895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); }; }; then
24900 ac_cv_lib_gmp___gmpz_mul_si=yes
24901 else
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24905 ac_cv_lib_gmp___gmpz_mul_si=no
24907 rm -f conftest.err conftest.$ac_objext \
24908 conftest$ac_exeext conftest.$ac_ext
24909 LIBS=$ac_check_lib_save_LIBS
24911 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
24912 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_mul_si" >&6
24913 if test $ac_cv_lib_gmp___gmpz_mul_si = yes; then
24914 GMP_CFLAGS=-I/usr/include
24915 GMP_LIBS=-lgmp
24916 else
24917 GMP_CFLAGS=
24918 GMP_LIBS=
24925 for ac_header in gmp.h
24927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24929 echo "$as_me:$LINENO: checking for $ac_header" >&5
24930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
24934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24936 else
24937 # Is the header compilable?
24938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24940 cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h. */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 $ac_includes_default
24947 #include <$ac_header>
24948 _ACEOF
24949 rm -f conftest.$ac_objext
24950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24951 (eval $ac_compile) 2>conftest.er1
24952 ac_status=$?
24953 grep -v '^ *+' conftest.er1 >conftest.err
24954 rm -f conftest.er1
24955 cat conftest.err >&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); } &&
24958 { ac_try='test -z "$ac_c_werror_flag"
24959 || test ! -s conftest.err'
24960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961 (eval $ac_try) 2>&5
24962 ac_status=$?
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; } &&
24965 { ac_try='test -s conftest.$ac_objext'
24966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967 (eval $ac_try) 2>&5
24968 ac_status=$?
24969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); }; }; then
24971 ac_header_compiler=yes
24972 else
24973 echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24976 ac_header_compiler=no
24978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24980 echo "${ECHO_T}$ac_header_compiler" >&6
24982 # Is the header present?
24983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h. */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24991 #include <$ac_header>
24992 _ACEOF
24993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24995 ac_status=$?
24996 grep -v '^ *+' conftest.er1 >conftest.err
24997 rm -f conftest.er1
24998 cat conftest.err >&5
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } >/dev/null; then
25001 if test -s conftest.err; then
25002 ac_cpp_err=$ac_c_preproc_warn_flag
25003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25004 else
25005 ac_cpp_err=
25007 else
25008 ac_cpp_err=yes
25010 if test -z "$ac_cpp_err"; then
25011 ac_header_preproc=yes
25012 else
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_header_preproc=no
25018 rm -f conftest.err conftest.$ac_ext
25019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25020 echo "${ECHO_T}$ac_header_preproc" >&6
25022 # So? What about this header?
25023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25024 yes:no: )
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25029 ac_header_preproc=yes
25031 no:yes:* )
25032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25045 cat <<\_ASBOX
25046 ## -------------------------------- ##
25047 ## Report this to classpath@gnu.org ##
25048 ## -------------------------------- ##
25049 _ASBOX
25051 sed "s/^/$as_me: WARNING: /" >&2
25053 esac
25054 echo "$as_me:$LINENO: checking for $ac_header" >&5
25055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059 eval "$as_ac_Header=\$ac_header_preproc"
25061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25066 cat >>confdefs.h <<_ACEOF
25067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25068 _ACEOF
25072 done
25076 else
25077 COMPILE_GMP=no
25080 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
25083 # Check whether --with-javah or --without-javah was given.
25084 if test "${with_javah+set}" = set; then
25085 withval="$with_javah"
25087 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
25089 if test "x${withval}" != x; then
25090 if test -f "${withval}"; then
25091 USER_JAVAH="${withval}"
25092 else
25093 # Extract the first word of ""${withval}"", so it can be a program name with args.
25094 set dummy "${withval}"; ac_word=$2
25095 echo "$as_me:$LINENO: checking for $ac_word" >&5
25096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25097 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100 case $USER_JAVAH in
25101 [\\/]* | ?:[\\/]*)
25102 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25106 for as_dir in $PATH
25108 IFS=$as_save_IFS
25109 test -z "$as_dir" && as_dir=.
25110 for ac_exec_ext in '' $ac_executable_extensions; do
25111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25112 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25114 break 2
25116 done
25117 done
25120 esac
25122 USER_JAVAH=$ac_cv_path_USER_JAVAH
25124 if test -n "$USER_JAVAH"; then
25125 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25126 echo "${ECHO_T}$USER_JAVAH" >&6
25127 else
25128 echo "$as_me:$LINENO: result: no" >&5
25129 echo "${ECHO_T}no" >&6
25133 else
25134 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
25136 # Extract the first word of "$ac_prog", so it can be a program name with args.
25137 set dummy $ac_prog; ac_word=$2
25138 echo "$as_me:$LINENO: checking for $ac_word" >&5
25139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25140 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 else
25143 case $USER_JAVAH in
25144 [\\/]* | ?:[\\/]*)
25145 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149 for as_dir in $PATH
25151 IFS=$as_save_IFS
25152 test -z "$as_dir" && as_dir=.
25153 for ac_exec_ext in '' $ac_executable_extensions; do
25154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25155 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25157 break 2
25159 done
25160 done
25163 esac
25165 USER_JAVAH=$ac_cv_path_USER_JAVAH
25167 if test -n "$USER_JAVAH"; then
25168 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25169 echo "${ECHO_T}$USER_JAVAH" >&6
25170 else
25171 echo "$as_me:$LINENO: result: no" >&5
25172 echo "${ECHO_T}no" >&6
25175 test -n "$USER_JAVAH" && break
25176 done
25180 if test "x${USER_JAVAH}" = x; then
25181 { { echo "$as_me:$LINENO: error: can not find javah" >&5
25182 echo "$as_me: error: can not find javah" >&2;}
25183 { (exit 1); exit 1; }; }
25186 else
25188 if test "x" != x; then
25189 if test -f ""; then
25190 USER_JAVAH=""
25191 else
25192 # Extract the first word of """", so it can be a program name with args.
25193 set dummy ""; ac_word=$2
25194 echo "$as_me:$LINENO: checking for $ac_word" >&5
25195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25196 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25197 echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199 case $USER_JAVAH in
25200 [\\/]* | ?:[\\/]*)
25201 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25205 for as_dir in $PATH
25207 IFS=$as_save_IFS
25208 test -z "$as_dir" && as_dir=.
25209 for ac_exec_ext in '' $ac_executable_extensions; do
25210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25211 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25213 break 2
25215 done
25216 done
25219 esac
25221 USER_JAVAH=$ac_cv_path_USER_JAVAH
25223 if test -n "$USER_JAVAH"; then
25224 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25225 echo "${ECHO_T}$USER_JAVAH" >&6
25226 else
25227 echo "$as_me:$LINENO: result: no" >&5
25228 echo "${ECHO_T}no" >&6
25232 else
25233 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
25235 # Extract the first word of "$ac_prog", so it can be a program name with args.
25236 set dummy $ac_prog; ac_word=$2
25237 echo "$as_me:$LINENO: checking for $ac_word" >&5
25238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25239 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242 case $USER_JAVAH in
25243 [\\/]* | ?:[\\/]*)
25244 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25248 for as_dir in $PATH
25250 IFS=$as_save_IFS
25251 test -z "$as_dir" && as_dir=.
25252 for ac_exec_ext in '' $ac_executable_extensions; do
25253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25254 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25256 break 2
25258 done
25259 done
25262 esac
25264 USER_JAVAH=$ac_cv_path_USER_JAVAH
25266 if test -n "$USER_JAVAH"; then
25267 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25268 echo "${ECHO_T}$USER_JAVAH" >&6
25269 else
25270 echo "$as_me:$LINENO: result: no" >&5
25271 echo "${ECHO_T}no" >&6
25274 test -n "$USER_JAVAH" && break
25275 done
25279 if test "x${USER_JAVAH}" = x; then
25280 { { echo "$as_me:$LINENO: error: can not find javah" >&5
25281 echo "$as_me: error: can not find javah" >&2;}
25282 { (exit 1); exit 1; }; }
25287 else
25290 if test "x" != x; then
25291 if test -f ""; then
25292 USER_JAVAH=""
25293 else
25294 # Extract the first word of """", so it can be a program name with args.
25295 set dummy ""; ac_word=$2
25296 echo "$as_me:$LINENO: checking for $ac_word" >&5
25297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25298 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 else
25301 case $USER_JAVAH in
25302 [\\/]* | ?:[\\/]*)
25303 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25307 for as_dir in $PATH
25309 IFS=$as_save_IFS
25310 test -z "$as_dir" && as_dir=.
25311 for ac_exec_ext in '' $ac_executable_extensions; do
25312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25313 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25315 break 2
25317 done
25318 done
25321 esac
25323 USER_JAVAH=$ac_cv_path_USER_JAVAH
25325 if test -n "$USER_JAVAH"; then
25326 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25327 echo "${ECHO_T}$USER_JAVAH" >&6
25328 else
25329 echo "$as_me:$LINENO: result: no" >&5
25330 echo "${ECHO_T}no" >&6
25334 else
25335 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
25337 # Extract the first word of "$ac_prog", so it can be a program name with args.
25338 set dummy $ac_prog; ac_word=$2
25339 echo "$as_me:$LINENO: checking for $ac_word" >&5
25340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25341 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25343 else
25344 case $USER_JAVAH in
25345 [\\/]* | ?:[\\/]*)
25346 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25350 for as_dir in $PATH
25352 IFS=$as_save_IFS
25353 test -z "$as_dir" && as_dir=.
25354 for ac_exec_ext in '' $ac_executable_extensions; do
25355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25356 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25358 break 2
25360 done
25361 done
25364 esac
25366 USER_JAVAH=$ac_cv_path_USER_JAVAH
25368 if test -n "$USER_JAVAH"; then
25369 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25370 echo "${ECHO_T}$USER_JAVAH" >&6
25371 else
25372 echo "$as_me:$LINENO: result: no" >&5
25373 echo "${ECHO_T}no" >&6
25376 test -n "$USER_JAVAH" && break
25377 done
25381 if test "x${USER_JAVAH}" = x; then
25382 { { echo "$as_me:$LINENO: error: can not find javah" >&5
25383 echo "$as_me: error: can not find javah" >&2;}
25384 { (exit 1); exit 1; }; }
25393 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
25396 if test "x${COMPILE_JNI}" = xyes; then
25397 echo "$as_me:$LINENO: checking jni_md.h support" >&5
25398 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
25399 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
25400 echo "$as_me:$LINENO: result: yes" >&5
25401 echo "${ECHO_T}yes" >&6
25402 else
25403 target_cpu=x86
25404 target_os=linux-gnu
25405 { echo "$as_me:$LINENO: WARNING: no" >&5
25406 echo "$as_me: WARNING: no" >&2;}
25408 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
25409 ac_dests="include/jni_md.h"
25410 while test -n "$ac_sources"; do
25411 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25412 set $ac_sources; ac_source=$1; shift; ac_sources=$*
25413 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25414 done
25415 ac_config_links="$ac_config_links $ac_config_links_1"
25421 # Check whether --with-vm-classes or --without-vm-classes was given.
25422 if test "${with_vm_classes+set}" = set; then
25423 withval="$with_vm_classes"
25424 vm_classes="$with_vm_classes"
25425 else
25426 vm_classes='${top_srcdir}/vm/reference'
25431 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25432 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
25433 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
25434 if test "${enable_maintainer_mode+set}" = set; then
25435 enableval="$enable_maintainer_mode"
25436 USE_MAINTAINER_MODE=$enableval
25437 else
25438 USE_MAINTAINER_MODE=no
25440 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25441 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
25444 if test $USE_MAINTAINER_MODE = yes; then
25445 MAINTAINER_MODE_TRUE=
25446 MAINTAINER_MODE_FALSE='#'
25447 else
25448 MAINTAINER_MODE_TRUE='#'
25449 MAINTAINER_MODE_FALSE=
25452 MAINT=$MAINTAINER_MODE_TRUE
25456 # Check whether --enable-debug or --disable-debug was given.
25457 if test "${enable_debug+set}" = set; then
25458 enableval="$enable_debug"
25459 case "${enableval}" in
25460 yes)
25461 LIBDEBUG="true"
25463 cat >>confdefs.h <<\_ACEOF
25464 #define DEBUG 1
25465 _ACEOF
25468 no) LIBDEBUG="false" ;;
25469 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
25470 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
25471 { (exit 1); exit 1; }; } ;;
25472 esac
25473 else
25474 LIBDEBUG="false"
25478 # Check whether --enable-load-library or --disable-load-library was given.
25479 if test "${enable_load_library+set}" = set; then
25480 enableval="$enable_load_library"
25481 case "${enableval}" in
25482 yes) INIT_LOAD_LIBRARY="true" ;;
25483 no) INIT_LOAD_LIBRARY="false" ;;
25484 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
25485 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
25486 { (exit 1); exit 1; }; } ;;
25487 esac
25488 else
25489 INIT_LOAD_LIBRARY="true"
25495 # Check whether --with-ecj-jar or --without-ecj-jar was given.
25496 if test "${with_ecj_jar+set}" = set; then
25497 withval="$with_ecj_jar"
25498 ECJ_JAR=$withval
25499 else
25500 if test -f $multi_basedir/ecj.jar; then
25501 ECJ_JAR='$(jardir)/ecj.jar'
25506 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
25507 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
25508 enableval="$enable_java_lang_system_explicit_initialization"
25509 case "${enableval}" in
25510 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
25511 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
25512 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
25513 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
25514 { (exit 1); exit 1; }; } ;;
25515 esac
25516 else
25517 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
25522 REMOVE=""
25525 # Extract the first word of "mkdir", so it can be a program name with args.
25526 set dummy mkdir; ac_word=$2
25527 echo "$as_me:$LINENO: checking for $ac_word" >&5
25528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25529 if test "${ac_cv_path_MKDIR+set}" = set; then
25530 echo $ECHO_N "(cached) $ECHO_C" >&6
25531 else
25532 case $MKDIR in
25533 [\\/]* | ?:[\\/]*)
25534 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
25537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25538 for as_dir in $PATH
25540 IFS=$as_save_IFS
25541 test -z "$as_dir" && as_dir=.
25542 for ac_exec_ext in '' $ac_executable_extensions; do
25543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25544 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
25545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25546 break 2
25548 done
25549 done
25552 esac
25554 MKDIR=$ac_cv_path_MKDIR
25556 if test -n "$MKDIR"; then
25557 echo "$as_me:$LINENO: result: $MKDIR" >&5
25558 echo "${ECHO_T}$MKDIR" >&6
25559 else
25560 echo "$as_me:$LINENO: result: no" >&5
25561 echo "${ECHO_T}no" >&6
25564 # Extract the first word of "cp", so it can be a program name with args.
25565 set dummy cp; ac_word=$2
25566 echo "$as_me:$LINENO: checking for $ac_word" >&5
25567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25568 if test "${ac_cv_path_CP+set}" = set; then
25569 echo $ECHO_N "(cached) $ECHO_C" >&6
25570 else
25571 case $CP in
25572 [\\/]* | ?:[\\/]*)
25573 ac_cv_path_CP="$CP" # Let the user override the test with a path.
25576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25577 for as_dir in $PATH
25579 IFS=$as_save_IFS
25580 test -z "$as_dir" && as_dir=.
25581 for ac_exec_ext in '' $ac_executable_extensions; do
25582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25583 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
25584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25585 break 2
25587 done
25588 done
25591 esac
25593 CP=$ac_cv_path_CP
25595 if test -n "$CP"; then
25596 echo "$as_me:$LINENO: result: $CP" >&5
25597 echo "${ECHO_T}$CP" >&6
25598 else
25599 echo "$as_me:$LINENO: result: no" >&5
25600 echo "${ECHO_T}no" >&6
25603 # Extract the first word of "date", so it can be a program name with args.
25604 set dummy date; ac_word=$2
25605 echo "$as_me:$LINENO: checking for $ac_word" >&5
25606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25607 if test "${ac_cv_path_DATE+set}" = set; then
25608 echo $ECHO_N "(cached) $ECHO_C" >&6
25609 else
25610 case $DATE in
25611 [\\/]* | ?:[\\/]*)
25612 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
25615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25616 for as_dir in $PATH
25618 IFS=$as_save_IFS
25619 test -z "$as_dir" && as_dir=.
25620 for ac_exec_ext in '' $ac_executable_extensions; do
25621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25622 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
25623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25624 break 2
25626 done
25627 done
25630 esac
25632 DATE=$ac_cv_path_DATE
25634 if test -n "$DATE"; then
25635 echo "$as_me:$LINENO: result: $DATE" >&5
25636 echo "${ECHO_T}$DATE" >&6
25637 else
25638 echo "$as_me:$LINENO: result: no" >&5
25639 echo "${ECHO_T}no" >&6
25643 # Extract the first word of "find", so it can be a program name with args.
25644 set dummy find; ac_word=$2
25645 echo "$as_me:$LINENO: checking for $ac_word" >&5
25646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25647 if test "${ac_cv_path_FIND+set}" = set; then
25648 echo $ECHO_N "(cached) $ECHO_C" >&6
25649 else
25650 case $FIND in
25651 [\\/]* | ?:[\\/]*)
25652 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
25655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25656 for as_dir in $PATH
25658 IFS=$as_save_IFS
25659 test -z "$as_dir" && as_dir=.
25660 for ac_exec_ext in '' $ac_executable_extensions; do
25661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25662 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
25663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25664 break 2
25666 done
25667 done
25670 esac
25672 FIND=$ac_cv_path_FIND
25674 if test -n "$FIND"; then
25675 echo "$as_me:$LINENO: result: $FIND" >&5
25676 echo "${ECHO_T}$FIND" >&6
25677 else
25678 echo "$as_me:$LINENO: result: no" >&5
25679 echo "${ECHO_T}no" >&6
25684 # Extract the first word of "zip", so it can be a program name with args.
25685 set dummy zip; ac_word=$2
25686 echo "$as_me:$LINENO: checking for $ac_word" >&5
25687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25688 if test "${ac_cv_path_ZIP+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691 case $ZIP in
25692 [\\/]* | ?:[\\/]*)
25693 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
25696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25697 for as_dir in $PATH
25699 IFS=$as_save_IFS
25700 test -z "$as_dir" && as_dir=.
25701 for ac_exec_ext in '' $ac_executable_extensions; do
25702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25703 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
25704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25705 break 2
25707 done
25708 done
25711 esac
25713 ZIP=$ac_cv_path_ZIP
25715 if test -n "$ZIP"; then
25716 echo "$as_me:$LINENO: result: $ZIP" >&5
25717 echo "${ECHO_T}$ZIP" >&6
25718 else
25719 echo "$as_me:$LINENO: result: no" >&5
25720 echo "${ECHO_T}no" >&6
25724 echo "$as_me:$LINENO: checking for a jar-like tool" >&5
25725 echo $ECHO_N "checking for a jar-like tool... $ECHO_C" >&6
25727 # Check whether --with-jar or --without-jar was given.
25728 if test "${with_jar+set}" = set; then
25729 withval="$with_jar"
25731 case "${withval}" in
25732 yes)
25733 JAR=yes
25736 JAR=no
25737 echo "$as_me:$LINENO: result: ${JAR}" >&5
25738 echo "${ECHO_T}${JAR}" >&6
25741 if test -f "${withval}"; then
25742 JAR="${withval}"
25743 echo "$as_me:$LINENO: result: ${JAR}" >&5
25744 echo "${ECHO_T}${JAR}" >&6
25745 else
25746 echo "$as_me:$LINENO: result: not found" >&5
25747 echo "${ECHO_T}not found" >&6
25748 { { echo "$as_me:$LINENO: error: The jar tool ${withval} was not found." >&5
25749 echo "$as_me: error: The jar tool ${withval} was not found." >&2;}
25750 { (exit 1); exit 1; }; }
25753 esac
25755 else
25757 JAR=yes
25760 if test x"${JAR}" = "xyes"; then
25761 echo "$as_me:$LINENO: result: trying fastjar, gjar and jar" >&5
25762 echo "${ECHO_T}trying fastjar, gjar and jar" >&6
25763 for ac_prog in fastjar gjar jar
25765 # Extract the first word of "$ac_prog", so it can be a program name with args.
25766 set dummy $ac_prog; ac_word=$2
25767 echo "$as_me:$LINENO: checking for $ac_word" >&5
25768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25769 if test "${ac_cv_path_JAR+set}" = set; then
25770 echo $ECHO_N "(cached) $ECHO_C" >&6
25771 else
25772 case $JAR in
25773 [\\/]* | ?:[\\/]*)
25774 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25778 for as_dir in $PATH
25780 IFS=$as_save_IFS
25781 test -z "$as_dir" && as_dir=.
25782 for ac_exec_ext in '' $ac_executable_extensions; do
25783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25784 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25786 break 2
25788 done
25789 done
25792 esac
25794 JAR=$ac_cv_path_JAR
25796 if test -n "$JAR"; then
25797 echo "$as_me:$LINENO: result: $JAR" >&5
25798 echo "${ECHO_T}$JAR" >&6
25799 else
25800 echo "$as_me:$LINENO: result: no" >&5
25801 echo "${ECHO_T}no" >&6
25804 test -n "$JAR" && break
25805 done
25807 if test x"${RHINO_JAR}" = "xyes"; then
25808 echo "$as_me:$LINENO: result: not found" >&5
25809 echo "${ECHO_T}not found" >&6
25812 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
25813 { { echo "$as_me:$LINENO: error: No zip or jar tool found." >&5
25814 echo "$as_me: error: No zip or jar tool found." >&2;}
25815 { (exit 1); exit 1; }; }
25819 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
25820 WITH_JAR_TRUE=
25821 WITH_JAR_FALSE='#'
25822 else
25823 WITH_JAR_TRUE='#'
25824 WITH_JAR_FALSE=
25830 # Check whether --with-glibj or --without-glibj was given.
25831 if test "${with_glibj+set}" = set; then
25832 withval="$with_glibj"
25834 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
25835 install_class_files=no
25836 build_class_files=yes
25837 use_zip=yes
25838 elif test "x${withval}" = xboth; then
25839 install_class_files=yes
25840 build_class_files=yes
25841 use_zip=yes
25842 elif test "x${withval}" = xflat; then
25843 install_class_files=yes
25844 build_class_files=yes
25845 use_zip=no
25846 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
25847 install_class_files=no
25848 build_class_files=no
25849 use_zip=no
25850 elif test "x${withval}" = xbuild; then
25851 install_class_files=no
25852 build_class_files=yes
25853 use_zip=no
25854 else
25855 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
25856 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
25857 { (exit 1); exit 1; }; }
25860 else
25862 install_class_files=no
25863 use_zip=yes
25868 if test "x${use_zip}" = xyes; then
25869 INSTALL_GLIBJ_ZIP_TRUE=
25870 INSTALL_GLIBJ_ZIP_FALSE='#'
25871 else
25872 INSTALL_GLIBJ_ZIP_TRUE='#'
25873 INSTALL_GLIBJ_ZIP_FALSE=
25878 if test "x${install_class_files}" = xyes; then
25879 INSTALL_CLASS_FILES_TRUE=
25880 INSTALL_CLASS_FILES_FALSE='#'
25881 else
25882 INSTALL_CLASS_FILES_TRUE='#'
25883 INSTALL_CLASS_FILES_FALSE=
25888 if test "x${build_class_files}" = xyes; then
25889 BUILD_CLASS_FILES_TRUE=
25890 BUILD_CLASS_FILES_FALSE='#'
25891 else
25892 BUILD_CLASS_FILES_TRUE='#'
25893 BUILD_CLASS_FILES_FALSE=
25897 # Check whether --enable-examples or --disable-examples was given.
25898 if test "${enable_examples+set}" = set; then
25899 enableval="$enable_examples"
25900 case "${enableval}" in
25901 yes) EXAMPLESDIR="examples" ;;
25902 no) EXAMPLESDIR="" ;;
25903 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
25904 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
25905 { (exit 1); exit 1; }; } ;;
25906 esac
25907 else
25908 EXAMPLESDIR="examples"
25910 if test "x${build_class_files}" = xno; then
25911 EXAMPLESDIR=""
25915 # Check whether --enable-tools or --disable-tools was given.
25916 if test "${enable_tools+set}" = set; then
25917 enableval="$enable_tools"
25918 case "${enableval}" in
25919 yes) TOOLSDIR="tools" ;;
25920 no) TOOLSDIR="" ;;
25921 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tools" >&5
25922 echo "$as_me: error: bad value ${enableval} for --enable-tools" >&2;}
25923 { (exit 1); exit 1; }; } ;;
25924 esac
25925 else
25926 TOOLSDIR="tools"
25928 if test "x${build_class_files}" = xno; then
25929 TOOLSDIR=""
25936 # Check whether --with-gjdoc or --without-gjdoc was given.
25937 if test "${with_gjdoc+set}" = set; then
25938 withval="$with_gjdoc"
25939 if test "x${withval}" = xno; then
25940 WITH_GJDOC=no;
25941 elif test "x${withval}" = xyes -o "x{withval}" = x; then
25942 WITH_GJDOC=yes;
25943 # Extract the first word of "gjdoc", so it can be a program name with args.
25944 set dummy gjdoc; ac_word=$2
25945 echo "$as_me:$LINENO: checking for $ac_word" >&5
25946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25947 if test "${ac_cv_path_GJDOC+set}" = set; then
25948 echo $ECHO_N "(cached) $ECHO_C" >&6
25949 else
25950 case $GJDOC in
25951 [\\/]* | ?:[\\/]*)
25952 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
25955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25956 for as_dir in $PATH
25958 IFS=$as_save_IFS
25959 test -z "$as_dir" && as_dir=.
25960 for ac_exec_ext in '' $ac_executable_extensions; do
25961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25962 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
25963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25964 break 2
25966 done
25967 done
25969 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
25971 esac
25973 GJDOC=$ac_cv_path_GJDOC
25975 if test -n "$GJDOC"; then
25976 echo "$as_me:$LINENO: result: $GJDOC" >&5
25977 echo "${ECHO_T}$GJDOC" >&6
25978 else
25979 echo "$as_me:$LINENO: result: no" >&5
25980 echo "${ECHO_T}no" >&6
25983 if test "x${GJDOC}" = xno; then
25984 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
25985 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
25986 { (exit 1); exit 1; }; };
25988 else
25989 WITH_GJDOC=yes
25990 GJDOC="${withval}"
25991 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
25992 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
25993 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
25994 if eval "test \"\${$as_ac_File+set}\" = set"; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 else
25997 test "$cross_compiling" = yes &&
25998 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25999 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26000 { (exit 1); exit 1; }; }
26001 if test -r "${GJDOC}"; then
26002 eval "$as_ac_File=yes"
26003 else
26004 eval "$as_ac_File=no"
26007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
26008 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
26009 if test `eval echo '${'$as_ac_File'}'` = yes; then
26011 else
26012 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
26013 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
26014 { (exit 1); exit 1; }; }
26018 else
26019 WITH_GJDOC=no
26023 if test "x${WITH_GJDOC}" = xyes; then
26024 CREATE_API_DOCS_TRUE=
26025 CREATE_API_DOCS_FALSE='#'
26026 else
26027 CREATE_API_DOCS_TRUE='#'
26028 CREATE_API_DOCS_FALSE=
26031 if test "x${WITH_GJDOC}" = xyes; then
26032 echo "$as_me:$LINENO: checking version of GJDoc" >&5
26033 echo $ECHO_N "checking version of GJDoc... $ECHO_C" >&6
26034 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
26035 echo "$as_me:$LINENO: result: ${gjdoc_version}" >&5
26036 echo "${ECHO_T}${gjdoc_version}" >&6
26037 case ${gjdoc_version} in
26038 0.7.9) ;;
26039 0.8*) ;;
26040 *) { { echo "$as_me:$LINENO: error: Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." >&5
26041 echo "$as_me: error: Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." >&2;}
26042 { (exit 1); exit 1; }; } ;;
26043 esac
26049 # Check whether --with-jay or --without-jay was given.
26050 if test "${with_jay+set}" = set; then
26051 withval="$with_jay"
26053 echo "$as_me:$LINENO: checking whether to regenerate parsers with jay" >&5
26054 echo $ECHO_N "checking whether to regenerate parsers with jay... $ECHO_C" >&6
26055 JAY_FOUND=no
26056 JAY_DIR_PATH=
26057 if test "x${withval}" = xno; then
26058 echo "$as_me:$LINENO: result: no" >&5
26059 echo "${ECHO_T}no" >&6
26060 elif test "x${withval}" = xyes; then
26061 echo "$as_me:$LINENO: result: yes" >&5
26062 echo "${ECHO_T}yes" >&6
26063 JAY_DIR_PATH="/usr/share/jay"
26064 elif test -d "${withval}"; then
26065 echo "$as_me:$LINENO: result: yes" >&5
26066 echo "${ECHO_T}yes" >&6
26067 JAY_DIR_PATH="${withval}"
26068 elif test -f "${withval}"; then
26069 echo "$as_me:$LINENO: result: yes" >&5
26070 echo "${ECHO_T}yes" >&6
26071 JAY_DIR_PATH=`dirname "${withval}"`
26072 JAY="${withval}"
26073 else
26074 { { echo "$as_me:$LINENO: error: jay not found at ${withval}" >&5
26075 echo "$as_me: error: jay not found at ${withval}" >&2;}
26076 { (exit 1); exit 1; }; }
26079 if test "x${JAY_DIR_PATH}" != x; then
26080 # Extract the first word of "jay", so it can be a program name with args.
26081 set dummy jay; ac_word=$2
26082 echo "$as_me:$LINENO: checking for $ac_word" >&5
26083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26084 if test "${ac_cv_path_JAY+set}" = set; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 else
26087 case $JAY in
26088 [\\/]* | ?:[\\/]*)
26089 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
26092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26093 as_dummy="${JAY_DIR_PATH}:${PATH}"
26094 for as_dir in $as_dummy
26096 IFS=$as_save_IFS
26097 test -z "$as_dir" && as_dir=.
26098 for ac_exec_ext in '' $ac_executable_extensions; do
26099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26100 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
26101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26102 break 2
26104 done
26105 done
26107 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
26109 esac
26111 JAY=$ac_cv_path_JAY
26113 if test -n "$JAY"; then
26114 echo "$as_me:$LINENO: result: $JAY" >&5
26115 echo "${ECHO_T}$JAY" >&6
26116 else
26117 echo "$as_me:$LINENO: result: no" >&5
26118 echo "${ECHO_T}no" >&6
26121 if test "x${JAY}" = xno; then
26122 { { echo "$as_me:$LINENO: error: jay executable not found" >&5
26123 echo "$as_me: error: jay executable not found" >&2;}
26124 { (exit 1); exit 1; }; };
26126 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
26127 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
26128 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
26129 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
26130 if eval "test \"\${$as_ac_File+set}\" = set"; then
26131 echo $ECHO_N "(cached) $ECHO_C" >&6
26132 else
26133 test "$cross_compiling" = yes &&
26134 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
26135 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26136 { (exit 1); exit 1; }; }
26137 if test -r "${JAY_SKELETON}"; then
26138 eval "$as_ac_File=yes"
26139 else
26140 eval "$as_ac_File=no"
26143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
26144 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
26145 if test `eval echo '${'$as_ac_File'}'` = yes; then
26147 else
26148 { { echo "$as_me:$LINENO: error: Expected skeleton file in ${JAY_DIR_PATH}" >&5
26149 echo "$as_me: error: Expected skeleton file in ${JAY_DIR_PATH}" >&2;}
26150 { (exit 1); exit 1; }; }
26153 JAY_FOUND=yes
26156 else
26158 echo "$as_me:$LINENO: checking whether to regenerate parsers with jay" >&5
26159 echo $ECHO_N "checking whether to regenerate parsers with jay... $ECHO_C" >&6
26160 echo "$as_me:$LINENO: result: no" >&5
26161 echo "${ECHO_T}no" >&6
26162 JAY_FOUND=no
26167 if test "x${JAY_FOUND}" = xyes; then
26168 REGEN_PARSERS_TRUE=
26169 REGEN_PARSERS_FALSE='#'
26170 else
26171 REGEN_PARSERS_TRUE='#'
26172 REGEN_PARSERS_FALSE=
26177 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
26178 if test "${enable_portable_native_sync+set}" = set; then
26179 enableval="$enable_portable_native_sync"
26180 case "${enableval}" in
26181 yes)
26183 cat >>confdefs.h <<\_ACEOF
26184 #define PORTABLE_NATIVE_SYNC 1
26185 _ACEOF
26188 no) ;;
26190 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
26191 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
26192 { (exit 1); exit 1; }; }
26194 esac
26197 # ------ AX CREATE STDINT H -------------------------------------
26198 echo "$as_me:$LINENO: checking for stdint types" >&5
26199 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
26200 ac_stdint_h=`echo include/config-int.h`
26201 # try to shortcircuit - if the default include path of the compiler
26202 # can find a "stdint.h" header then we assume that all compilers can.
26203 if test "${ac_cv_header_stdint_t+set}" = set; then
26204 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 else
26207 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
26208 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
26209 old_CFLAGS="$CFLAGS" ; CFLAGS=""
26210 cat >conftest.$ac_ext <<_ACEOF
26211 /* confdefs.h. */
26212 _ACEOF
26213 cat confdefs.h >>conftest.$ac_ext
26214 cat >>conftest.$ac_ext <<_ACEOF
26215 /* end confdefs.h. */
26216 #include <stdint.h>
26218 main ()
26220 int_least32_t v = 0;
26222 return 0;
26224 _ACEOF
26225 rm -f conftest.$ac_objext
26226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26227 (eval $ac_compile) 2>conftest.er1
26228 ac_status=$?
26229 grep -v '^ *+' conftest.er1 >conftest.err
26230 rm -f conftest.er1
26231 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233 (exit $ac_status); } &&
26234 { ac_try='test -z "$ac_c_werror_flag"
26235 || test ! -s conftest.err'
26236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237 (eval $ac_try) 2>&5
26238 ac_status=$?
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); }; } &&
26241 { ac_try='test -s conftest.$ac_objext'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26244 ac_status=$?
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; }; then
26247 ac_cv_stdint_result="(assuming C99 compatible system)"
26248 ac_cv_header_stdint_t="stdint.h";
26249 else
26250 echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26253 ac_cv_header_stdint_t=""
26255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26256 CXXFLAGS="$old_CXXFLAGS"
26257 CPPFLAGS="$old_CPPFLAGS"
26258 CFLAGS="$old_CFLAGS"
26262 v="... $ac_cv_header_stdint_h"
26263 if test "$ac_stdint_h" = "stdint.h" ; then
26264 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
26265 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
26266 elif test "$ac_stdint_h" = "inttypes.h" ; then
26267 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
26268 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
26269 elif test "_$ac_cv_header_stdint_t" = "_" ; then
26270 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
26271 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
26272 else
26273 ac_cv_header_stdint="$ac_cv_header_stdint_t"
26274 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
26275 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
26278 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
26281 inttype_headers=`echo | sed -e 's/,/ /g'`
26283 ac_cv_stdint_result="(no helpful system typedefs seen)"
26285 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
26286 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
26287 if test "${ac_cv_header_stdint_x+set}" = set; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 else
26291 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
26292 echo "$as_me:$LINENO: result: (..)" >&5
26293 echo "${ECHO_T}(..)" >&6
26294 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
26295 unset ac_cv_type_uintptr_t
26296 unset ac_cv_type_uint64_t
26297 echo "$as_me:$LINENO: checking for uintptr_t" >&5
26298 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
26299 if test "${ac_cv_type_uintptr_t+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h. */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 #include <$i>
26311 main ()
26313 if ((uintptr_t *) 0)
26314 return 0;
26315 if (sizeof (uintptr_t))
26316 return 0;
26318 return 0;
26320 _ACEOF
26321 rm -f conftest.$ac_objext
26322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26323 (eval $ac_compile) 2>conftest.er1
26324 ac_status=$?
26325 grep -v '^ *+' conftest.er1 >conftest.err
26326 rm -f conftest.er1
26327 cat conftest.err >&5
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } &&
26330 { ac_try='test -z "$ac_c_werror_flag"
26331 || test ! -s conftest.err'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26334 ac_status=$?
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; } &&
26337 { ac_try='test -s conftest.$ac_objext'
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; }; then
26343 ac_cv_type_uintptr_t=yes
26344 else
26345 echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26348 ac_cv_type_uintptr_t=no
26350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26352 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
26353 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
26354 if test $ac_cv_type_uintptr_t = yes; then
26355 ac_cv_header_stdint_x=$i
26356 else
26357 continue
26360 echo "$as_me:$LINENO: checking for uint64_t" >&5
26361 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26362 if test "${ac_cv_type_uint64_t+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365 cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h. */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include<$i>
26374 main ()
26376 if ((uint64_t *) 0)
26377 return 0;
26378 if (sizeof (uint64_t))
26379 return 0;
26381 return 0;
26383 _ACEOF
26384 rm -f conftest.$ac_objext
26385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26386 (eval $ac_compile) 2>conftest.er1
26387 ac_status=$?
26388 grep -v '^ *+' conftest.er1 >conftest.err
26389 rm -f conftest.er1
26390 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } &&
26393 { ac_try='test -z "$ac_c_werror_flag"
26394 || test ! -s conftest.err'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5
26397 ac_status=$?
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; } &&
26400 { ac_try='test -s conftest.$ac_objext'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; }; then
26406 ac_cv_type_uint64_t=yes
26407 else
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 ac_cv_type_uint64_t=no
26413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26415 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26416 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26417 if test $ac_cv_type_uint64_t = yes; then
26418 and64="/uint64_t"
26419 else
26420 and64=""
26423 stdint.h inttypes.h sys/inttypes.h $inttype_headers
26424 break
26425 done
26426 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
26427 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
26430 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
26431 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
26434 if test "_$ac_cv_header_stdint_x" = "_" ; then
26436 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
26437 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
26438 if test "${ac_cv_header_stdint_o+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26442 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
26443 echo "$as_me:$LINENO: result: (..)" >&5
26444 echo "${ECHO_T}(..)" >&6
26445 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
26446 unset ac_cv_type_uint32_t
26447 unset ac_cv_type_uint64_t
26448 echo "$as_me:$LINENO: checking for uint32_t" >&5
26449 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
26450 if test "${ac_cv_type_uint32_t+set}" = set; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452 else
26453 cat >conftest.$ac_ext <<_ACEOF
26454 /* confdefs.h. */
26455 _ACEOF
26456 cat confdefs.h >>conftest.$ac_ext
26457 cat >>conftest.$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26459 #include <$i>
26462 main ()
26464 if ((uint32_t *) 0)
26465 return 0;
26466 if (sizeof (uint32_t))
26467 return 0;
26469 return 0;
26471 _ACEOF
26472 rm -f conftest.$ac_objext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474 (eval $ac_compile) 2>conftest.er1
26475 ac_status=$?
26476 grep -v '^ *+' conftest.er1 >conftest.err
26477 rm -f conftest.er1
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
26481 { ac_try='test -z "$ac_c_werror_flag"
26482 || test ! -s conftest.err'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest.$ac_objext'
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 ac_cv_type_uint32_t=yes
26495 else
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26499 ac_cv_type_uint32_t=no
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26503 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
26504 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
26505 if test $ac_cv_type_uint32_t = yes; then
26506 ac_cv_header_stdint_o=$i
26507 else
26508 continue
26511 echo "$as_me:$LINENO: checking for uint64_t" >&5
26512 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26513 if test "${ac_cv_type_uint64_t+set}" = set; then
26514 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 else
26516 cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h. */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h. */
26522 #include<$i>
26525 main ()
26527 if ((uint64_t *) 0)
26528 return 0;
26529 if (sizeof (uint64_t))
26530 return 0;
26532 return 0;
26534 _ACEOF
26535 rm -f conftest.$ac_objext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26537 (eval $ac_compile) 2>conftest.er1
26538 ac_status=$?
26539 grep -v '^ *+' conftest.er1 >conftest.err
26540 rm -f conftest.er1
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
26544 { ac_try='test -z "$ac_c_werror_flag"
26545 || test ! -s conftest.err'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26548 ac_status=$?
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest.$ac_objext'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ac_cv_type_uint64_t=yes
26558 else
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ac_cv_type_uint64_t=no
26564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26566 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26567 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26568 if test $ac_cv_type_uint64_t = yes; then
26569 and64="/uint64_t"
26570 else
26571 and64=""
26574 inttypes.h sys/inttypes.h stdint.h $inttype_headers
26575 break
26576 break;
26577 done
26578 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
26579 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
26582 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
26583 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
26587 if test "_$ac_cv_header_stdint_x" = "_" ; then
26588 if test "_$ac_cv_header_stdint_o" = "_" ; then
26590 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
26591 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
26592 if test "${ac_cv_header_stdint_u+set}" = set; then
26593 echo $ECHO_N "(cached) $ECHO_C" >&6
26594 else
26596 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
26597 echo "$as_me:$LINENO: result: (..)" >&5
26598 echo "${ECHO_T}(..)" >&6
26599 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
26600 unset ac_cv_type_u_int32_t
26601 unset ac_cv_type_u_int64_t
26602 echo "$as_me:$LINENO: checking for u_int32_t" >&5
26603 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
26604 if test "${ac_cv_type_u_int32_t+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607 cat >conftest.$ac_ext <<_ACEOF
26608 /* confdefs.h. */
26609 _ACEOF
26610 cat confdefs.h >>conftest.$ac_ext
26611 cat >>conftest.$ac_ext <<_ACEOF
26612 /* end confdefs.h. */
26613 #include <$i>
26616 main ()
26618 if ((u_int32_t *) 0)
26619 return 0;
26620 if (sizeof (u_int32_t))
26621 return 0;
26623 return 0;
26625 _ACEOF
26626 rm -f conftest.$ac_objext
26627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26628 (eval $ac_compile) 2>conftest.er1
26629 ac_status=$?
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
26635 { ac_try='test -z "$ac_c_werror_flag"
26636 || test ! -s conftest.err'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest.$ac_objext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
26648 ac_cv_type_u_int32_t=yes
26649 else
26650 echo "$as_me: failed program was:" >&5
26651 sed 's/^/| /' conftest.$ac_ext >&5
26653 ac_cv_type_u_int32_t=no
26655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26657 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
26658 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
26659 if test $ac_cv_type_u_int32_t = yes; then
26660 ac_cv_header_stdint_u=$i
26661 else
26662 continue
26665 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26666 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26667 if test "${ac_cv_type_u_int64_t+set}" = set; then
26668 echo $ECHO_N "(cached) $ECHO_C" >&6
26669 else
26670 cat >conftest.$ac_ext <<_ACEOF
26671 /* confdefs.h. */
26672 _ACEOF
26673 cat confdefs.h >>conftest.$ac_ext
26674 cat >>conftest.$ac_ext <<_ACEOF
26675 /* end confdefs.h. */
26676 #include<$i>
26679 main ()
26681 if ((u_int64_t *) 0)
26682 return 0;
26683 if (sizeof (u_int64_t))
26684 return 0;
26686 return 0;
26688 _ACEOF
26689 rm -f conftest.$ac_objext
26690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26691 (eval $ac_compile) 2>conftest.er1
26692 ac_status=$?
26693 grep -v '^ *+' conftest.er1 >conftest.err
26694 rm -f conftest.er1
26695 cat conftest.err >&5
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); } &&
26698 { ac_try='test -z "$ac_c_werror_flag"
26699 || test ! -s conftest.err'
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; } &&
26705 { ac_try='test -s conftest.$ac_objext'
26706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707 (eval $ac_try) 2>&5
26708 ac_status=$?
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 ac_cv_type_u_int64_t=yes
26712 else
26713 echo "$as_me: failed program was:" >&5
26714 sed 's/^/| /' conftest.$ac_ext >&5
26716 ac_cv_type_u_int64_t=no
26718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26721 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26722 if test $ac_cv_type_u_int64_t = yes; then
26723 and64="/u_int64_t"
26724 else
26725 and64=""
26728 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
26729 break
26730 break;
26731 done
26732 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
26733 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
26736 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
26737 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
26739 fi fi
26741 if test "_$ac_cv_header_stdint_x" = "_" ; then
26742 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
26743 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
26744 echo "$as_me:$LINENO: result: (..)" >&5
26745 echo "${ECHO_T}(..)" >&6
26747 echo "$as_me:$LINENO: checking for char" >&5
26748 echo $ECHO_N "checking for char... $ECHO_C" >&6
26749 if test "${ac_cv_type_char+set}" = set; then
26750 echo $ECHO_N "(cached) $ECHO_C" >&6
26751 else
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h. */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 $ac_includes_default
26760 main ()
26762 if ((char *) 0)
26763 return 0;
26764 if (sizeof (char))
26765 return 0;
26767 return 0;
26769 _ACEOF
26770 rm -f conftest.$ac_objext
26771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26772 (eval $ac_compile) 2>conftest.er1
26773 ac_status=$?
26774 grep -v '^ *+' conftest.er1 >conftest.err
26775 rm -f conftest.er1
26776 cat conftest.err >&5
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); } &&
26779 { ac_try='test -z "$ac_c_werror_flag"
26780 || test ! -s conftest.err'
26781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); }; } &&
26786 { ac_try='test -s conftest.$ac_objext'
26787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26792 ac_cv_type_char=yes
26793 else
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26797 ac_cv_type_char=no
26799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26801 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26802 echo "${ECHO_T}$ac_cv_type_char" >&6
26804 echo "$as_me:$LINENO: checking size of char" >&5
26805 echo $ECHO_N "checking size of char... $ECHO_C" >&6
26806 if test "${ac_cv_sizeof_char+set}" = set; then
26807 echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809 if test "$ac_cv_type_char" = yes; then
26810 # The cast to unsigned long works around a bug in the HP C Compiler
26811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26813 # This bug is HP SR number 8606223364.
26814 if test "$cross_compiling" = yes; then
26815 # Depending upon the size, compute the lo and hi bounds.
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h. */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26822 $ac_includes_default
26824 main ()
26826 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
26827 test_array [0] = 0
26830 return 0;
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26835 (eval $ac_compile) 2>conftest.er1
26836 ac_status=$?
26837 grep -v '^ *+' conftest.er1 >conftest.err
26838 rm -f conftest.er1
26839 cat conftest.err >&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); } &&
26842 { ac_try='test -z "$ac_c_werror_flag"
26843 || test ! -s conftest.err'
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26846 ac_status=$?
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; } &&
26849 { ac_try='test -s conftest.$ac_objext'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; }; then
26855 ac_lo=0 ac_mid=0
26856 while :; do
26857 cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h. */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h. */
26863 $ac_includes_default
26865 main ()
26867 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26868 test_array [0] = 0
26871 return 0;
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876 (eval $ac_compile) 2>conftest.er1
26877 ac_status=$?
26878 grep -v '^ *+' conftest.er1 >conftest.err
26879 rm -f conftest.er1
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } &&
26883 { ac_try='test -z "$ac_c_werror_flag"
26884 || test ! -s conftest.err'
26885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; } &&
26890 { ac_try='test -s conftest.$ac_objext'
26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892 (eval $ac_try) 2>&5
26893 ac_status=$?
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; }; then
26896 ac_hi=$ac_mid; break
26897 else
26898 echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26901 ac_lo=`expr $ac_mid + 1`
26902 if test $ac_lo -le $ac_mid; then
26903 ac_lo= ac_hi=
26904 break
26906 ac_mid=`expr 2 '*' $ac_mid + 1`
26908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26909 done
26910 else
26911 echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26914 cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h. */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26920 $ac_includes_default
26922 main ()
26924 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
26925 test_array [0] = 0
26928 return 0;
26930 _ACEOF
26931 rm -f conftest.$ac_objext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26933 (eval $ac_compile) 2>conftest.er1
26934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag"
26941 || test ! -s conftest.err'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
26947 { ac_try='test -s conftest.$ac_objext'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
26953 ac_hi=-1 ac_mid=-1
26954 while :; do
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h. */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h. */
26961 $ac_includes_default
26963 main ()
26965 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
26966 test_array [0] = 0
26969 return 0;
26971 _ACEOF
26972 rm -f conftest.$ac_objext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26974 (eval $ac_compile) 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag"
26982 || test ! -s conftest.err'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; } &&
26988 { ac_try='test -s conftest.$ac_objext'
26989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 ac_lo=$ac_mid; break
26995 else
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26999 ac_hi=`expr '(' $ac_mid ')' - 1`
27000 if test $ac_mid -le $ac_hi; then
27001 ac_lo= ac_hi=
27002 break
27004 ac_mid=`expr 2 '*' $ac_mid`
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007 done
27008 else
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27012 ac_lo= ac_hi=
27014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27017 # Binary search between lo and hi bounds.
27018 while test "x$ac_lo" != "x$ac_hi"; do
27019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27020 cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h. */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h. */
27026 $ac_includes_default
27028 main ()
27030 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
27031 test_array [0] = 0
27034 return 0;
27036 _ACEOF
27037 rm -f conftest.$ac_objext
27038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27039 (eval $ac_compile) 2>conftest.er1
27040 ac_status=$?
27041 grep -v '^ *+' conftest.er1 >conftest.err
27042 rm -f conftest.er1
27043 cat conftest.err >&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); } &&
27046 { ac_try='test -z "$ac_c_werror_flag"
27047 || test ! -s conftest.err'
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; } &&
27053 { ac_try='test -s conftest.$ac_objext'
27054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055 (eval $ac_try) 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; }; then
27059 ac_hi=$ac_mid
27060 else
27061 echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27064 ac_lo=`expr '(' $ac_mid ')' + 1`
27066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27067 done
27068 case $ac_lo in
27069 ?*) ac_cv_sizeof_char=$ac_lo;;
27070 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27071 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27073 See \`config.log' for more details." >&5
27074 echo "$as_me: error: cannot compute sizeof (char), 77
27075 See \`config.log' for more details." >&2;}
27076 { (exit 1); exit 1; }; }; } ;;
27077 esac
27078 else
27079 if test "$cross_compiling" = yes; then
27080 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27081 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27082 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27083 See \`config.log' for more details." >&5
27084 echo "$as_me: error: cannot run test program while cross compiling
27085 See \`config.log' for more details." >&2;}
27086 { (exit 1); exit 1; }; }; }
27087 else
27088 cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h. */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 $ac_includes_default
27095 long longval () { return (long) (sizeof (char)); }
27096 unsigned long ulongval () { return (long) (sizeof (char)); }
27097 #include <stdio.h>
27098 #include <stdlib.h>
27100 main ()
27103 FILE *f = fopen ("conftest.val", "w");
27104 if (! f)
27105 exit (1);
27106 if (((long) (sizeof (char))) < 0)
27108 long i = longval ();
27109 if (i != ((long) (sizeof (char))))
27110 exit (1);
27111 fprintf (f, "%ld\n", i);
27113 else
27115 unsigned long i = ulongval ();
27116 if (i != ((long) (sizeof (char))))
27117 exit (1);
27118 fprintf (f, "%lu\n", i);
27120 exit (ferror (f) || fclose (f) != 0);
27123 return 0;
27125 _ACEOF
27126 rm -f conftest$ac_exeext
27127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27128 (eval $ac_link) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ac_cv_sizeof_char=`cat conftest.val`
27138 else
27139 echo "$as_me: program exited with status $ac_status" >&5
27140 echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27143 ( exit $ac_status )
27144 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27145 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27147 See \`config.log' for more details." >&5
27148 echo "$as_me: error: cannot compute sizeof (char), 77
27149 See \`config.log' for more details." >&2;}
27150 { (exit 1); exit 1; }; }; }
27152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27155 rm -f conftest.val
27156 else
27157 ac_cv_sizeof_char=0
27160 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
27161 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
27162 cat >>confdefs.h <<_ACEOF
27163 #define SIZEOF_CHAR $ac_cv_sizeof_char
27164 _ACEOF
27167 echo "$as_me:$LINENO: checking for short" >&5
27168 echo $ECHO_N "checking for short... $ECHO_C" >&6
27169 if test "${ac_cv_type_short+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171 else
27172 cat >conftest.$ac_ext <<_ACEOF
27173 /* confdefs.h. */
27174 _ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h. */
27178 $ac_includes_default
27180 main ()
27182 if ((short *) 0)
27183 return 0;
27184 if (sizeof (short))
27185 return 0;
27187 return 0;
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27192 (eval $ac_compile) 2>conftest.er1
27193 ac_status=$?
27194 grep -v '^ *+' conftest.er1 >conftest.err
27195 rm -f conftest.er1
27196 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } &&
27199 { ac_try='test -z "$ac_c_werror_flag"
27200 || test ! -s conftest.err'
27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest.$ac_objext'
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; }; then
27212 ac_cv_type_short=yes
27213 else
27214 echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27217 ac_cv_type_short=no
27219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27221 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27222 echo "${ECHO_T}$ac_cv_type_short" >&6
27224 echo "$as_me:$LINENO: checking size of short" >&5
27225 echo $ECHO_N "checking size of short... $ECHO_C" >&6
27226 if test "${ac_cv_sizeof_short+set}" = set; then
27227 echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229 if test "$ac_cv_type_short" = yes; then
27230 # The cast to unsigned long works around a bug in the HP C Compiler
27231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27233 # This bug is HP SR number 8606223364.
27234 if test "$cross_compiling" = yes; then
27235 # Depending upon the size, compute the lo and hi bounds.
27236 cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h. */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27242 $ac_includes_default
27244 main ()
27246 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
27247 test_array [0] = 0
27250 return 0;
27252 _ACEOF
27253 rm -f conftest.$ac_objext
27254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27255 (eval $ac_compile) 2>conftest.er1
27256 ac_status=$?
27257 grep -v '^ *+' conftest.er1 >conftest.err
27258 rm -f conftest.er1
27259 cat conftest.err >&5
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); } &&
27262 { ac_try='test -z "$ac_c_werror_flag"
27263 || test ! -s conftest.err'
27264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265 (eval $ac_try) 2>&5
27266 ac_status=$?
27267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268 (exit $ac_status); }; } &&
27269 { ac_try='test -s conftest.$ac_objext'
27270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271 (eval $ac_try) 2>&5
27272 ac_status=$?
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); }; }; then
27275 ac_lo=0 ac_mid=0
27276 while :; do
27277 cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h. */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h. */
27283 $ac_includes_default
27285 main ()
27287 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27288 test_array [0] = 0
27291 return 0;
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27296 (eval $ac_compile) 2>conftest.er1
27297 ac_status=$?
27298 grep -v '^ *+' conftest.er1 >conftest.err
27299 rm -f conftest.er1
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
27303 { ac_try='test -z "$ac_c_werror_flag"
27304 || test ! -s conftest.err'
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest.$ac_objext'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27313 ac_status=$?
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
27316 ac_hi=$ac_mid; break
27317 else
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 ac_lo=`expr $ac_mid + 1`
27322 if test $ac_lo -le $ac_mid; then
27323 ac_lo= ac_hi=
27324 break
27326 ac_mid=`expr 2 '*' $ac_mid + 1`
27328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27329 done
27330 else
27331 echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27334 cat >conftest.$ac_ext <<_ACEOF
27335 /* confdefs.h. */
27336 _ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27340 $ac_includes_default
27342 main ()
27344 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27345 test_array [0] = 0
27348 return 0;
27350 _ACEOF
27351 rm -f conftest.$ac_objext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27353 (eval $ac_compile) 2>conftest.er1
27354 ac_status=$?
27355 grep -v '^ *+' conftest.er1 >conftest.err
27356 rm -f conftest.er1
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
27360 { ac_try='test -z "$ac_c_werror_flag"
27361 || test ! -s conftest.err'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } &&
27367 { ac_try='test -s conftest.$ac_objext'
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27370 ac_status=$?
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; }; then
27373 ac_hi=-1 ac_mid=-1
27374 while :; do
27375 cat >conftest.$ac_ext <<_ACEOF
27376 /* confdefs.h. */
27377 _ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h. */
27381 $ac_includes_default
27383 main ()
27385 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27386 test_array [0] = 0
27389 return 0;
27391 _ACEOF
27392 rm -f conftest.$ac_objext
27393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27394 (eval $ac_compile) 2>conftest.er1
27395 ac_status=$?
27396 grep -v '^ *+' conftest.er1 >conftest.err
27397 rm -f conftest.er1
27398 cat conftest.err >&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); } &&
27401 { ac_try='test -z "$ac_c_werror_flag"
27402 || test ! -s conftest.err'
27403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404 (eval $ac_try) 2>&5
27405 ac_status=$?
27406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407 (exit $ac_status); }; } &&
27408 { ac_try='test -s conftest.$ac_objext'
27409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410 (eval $ac_try) 2>&5
27411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; }; then
27414 ac_lo=$ac_mid; break
27415 else
27416 echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27419 ac_hi=`expr '(' $ac_mid ')' - 1`
27420 if test $ac_mid -le $ac_hi; then
27421 ac_lo= ac_hi=
27422 break
27424 ac_mid=`expr 2 '*' $ac_mid`
27426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27427 done
27428 else
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27432 ac_lo= ac_hi=
27434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27437 # Binary search between lo and hi bounds.
27438 while test "x$ac_lo" != "x$ac_hi"; do
27439 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27440 cat >conftest.$ac_ext <<_ACEOF
27441 /* confdefs.h. */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 $ac_includes_default
27448 main ()
27450 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27451 test_array [0] = 0
27454 return 0;
27456 _ACEOF
27457 rm -f conftest.$ac_objext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27459 (eval $ac_compile) 2>conftest.er1
27460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } &&
27466 { ac_try='test -z "$ac_c_werror_flag"
27467 || test ! -s conftest.err'
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest.$ac_objext'
27474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); }; }; then
27479 ac_hi=$ac_mid
27480 else
27481 echo "$as_me: failed program was:" >&5
27482 sed 's/^/| /' conftest.$ac_ext >&5
27484 ac_lo=`expr '(' $ac_mid ')' + 1`
27486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27487 done
27488 case $ac_lo in
27489 ?*) ac_cv_sizeof_short=$ac_lo;;
27490 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27491 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27493 See \`config.log' for more details." >&5
27494 echo "$as_me: error: cannot compute sizeof (short), 77
27495 See \`config.log' for more details." >&2;}
27496 { (exit 1); exit 1; }; }; } ;;
27497 esac
27498 else
27499 if test "$cross_compiling" = yes; then
27500 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27501 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27503 See \`config.log' for more details." >&5
27504 echo "$as_me: error: cannot run test program while cross compiling
27505 See \`config.log' for more details." >&2;}
27506 { (exit 1); exit 1; }; }; }
27507 else
27508 cat >conftest.$ac_ext <<_ACEOF
27509 /* confdefs.h. */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27514 $ac_includes_default
27515 long longval () { return (long) (sizeof (short)); }
27516 unsigned long ulongval () { return (long) (sizeof (short)); }
27517 #include <stdio.h>
27518 #include <stdlib.h>
27520 main ()
27523 FILE *f = fopen ("conftest.val", "w");
27524 if (! f)
27525 exit (1);
27526 if (((long) (sizeof (short))) < 0)
27528 long i = longval ();
27529 if (i != ((long) (sizeof (short))))
27530 exit (1);
27531 fprintf (f, "%ld\n", i);
27533 else
27535 unsigned long i = ulongval ();
27536 if (i != ((long) (sizeof (short))))
27537 exit (1);
27538 fprintf (f, "%lu\n", i);
27540 exit (ferror (f) || fclose (f) != 0);
27543 return 0;
27545 _ACEOF
27546 rm -f conftest$ac_exeext
27547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27548 (eval $ac_link) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 ac_cv_sizeof_short=`cat conftest.val`
27558 else
27559 echo "$as_me: program exited with status $ac_status" >&5
27560 echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27563 ( exit $ac_status )
27564 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27565 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27567 See \`config.log' for more details." >&5
27568 echo "$as_me: error: cannot compute sizeof (short), 77
27569 See \`config.log' for more details." >&2;}
27570 { (exit 1); exit 1; }; }; }
27572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27575 rm -f conftest.val
27576 else
27577 ac_cv_sizeof_short=0
27580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27581 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27582 cat >>confdefs.h <<_ACEOF
27583 #define SIZEOF_SHORT $ac_cv_sizeof_short
27584 _ACEOF
27587 echo "$as_me:$LINENO: checking for int" >&5
27588 echo $ECHO_N "checking for int... $ECHO_C" >&6
27589 if test "${ac_cv_type_int+set}" = set; then
27590 echo $ECHO_N "(cached) $ECHO_C" >&6
27591 else
27592 cat >conftest.$ac_ext <<_ACEOF
27593 /* confdefs.h. */
27594 _ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27598 $ac_includes_default
27600 main ()
27602 if ((int *) 0)
27603 return 0;
27604 if (sizeof (int))
27605 return 0;
27607 return 0;
27609 _ACEOF
27610 rm -f conftest.$ac_objext
27611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27612 (eval $ac_compile) 2>conftest.er1
27613 ac_status=$?
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618 (exit $ac_status); } &&
27619 { ac_try='test -z "$ac_c_werror_flag"
27620 || test ! -s conftest.err'
27621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27622 (eval $ac_try) 2>&5
27623 ac_status=$?
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); }; } &&
27626 { ac_try='test -s conftest.$ac_objext'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27629 ac_status=$?
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; }; then
27632 ac_cv_type_int=yes
27633 else
27634 echo "$as_me: failed program was:" >&5
27635 sed 's/^/| /' conftest.$ac_ext >&5
27637 ac_cv_type_int=no
27639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27641 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27642 echo "${ECHO_T}$ac_cv_type_int" >&6
27644 echo "$as_me:$LINENO: checking size of int" >&5
27645 echo $ECHO_N "checking size of int... $ECHO_C" >&6
27646 if test "${ac_cv_sizeof_int+set}" = set; then
27647 echo $ECHO_N "(cached) $ECHO_C" >&6
27648 else
27649 if test "$ac_cv_type_int" = yes; then
27650 # The cast to unsigned long works around a bug in the HP C Compiler
27651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27653 # This bug is HP SR number 8606223364.
27654 if test "$cross_compiling" = yes; then
27655 # Depending upon the size, compute the lo and hi bounds.
27656 cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h. */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 $ac_includes_default
27664 main ()
27666 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
27667 test_array [0] = 0
27670 return 0;
27672 _ACEOF
27673 rm -f conftest.$ac_objext
27674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27675 (eval $ac_compile) 2>conftest.er1
27676 ac_status=$?
27677 grep -v '^ *+' conftest.er1 >conftest.err
27678 rm -f conftest.er1
27679 cat conftest.err >&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
27682 { ac_try='test -z "$ac_c_werror_flag"
27683 || test ! -s conftest.err'
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; } &&
27689 { ac_try='test -s conftest.$ac_objext'
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; }; then
27695 ac_lo=0 ac_mid=0
27696 while :; do
27697 cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h. */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h. */
27703 $ac_includes_default
27705 main ()
27707 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27708 test_array [0] = 0
27711 return 0;
27713 _ACEOF
27714 rm -f conftest.$ac_objext
27715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27716 (eval $ac_compile) 2>conftest.er1
27717 ac_status=$?
27718 grep -v '^ *+' conftest.er1 >conftest.err
27719 rm -f conftest.er1
27720 cat conftest.err >&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); } &&
27723 { ac_try='test -z "$ac_c_werror_flag"
27724 || test ! -s conftest.err'
27725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); }; } &&
27730 { ac_try='test -s conftest.$ac_objext'
27731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; }; then
27736 ac_hi=$ac_mid; break
27737 else
27738 echo "$as_me: failed program was:" >&5
27739 sed 's/^/| /' conftest.$ac_ext >&5
27741 ac_lo=`expr $ac_mid + 1`
27742 if test $ac_lo -le $ac_mid; then
27743 ac_lo= ac_hi=
27744 break
27746 ac_mid=`expr 2 '*' $ac_mid + 1`
27748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27749 done
27750 else
27751 echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27754 cat >conftest.$ac_ext <<_ACEOF
27755 /* confdefs.h. */
27756 _ACEOF
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27760 $ac_includes_default
27762 main ()
27764 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
27765 test_array [0] = 0
27768 return 0;
27770 _ACEOF
27771 rm -f conftest.$ac_objext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27773 (eval $ac_compile) 2>conftest.er1
27774 ac_status=$?
27775 grep -v '^ *+' conftest.er1 >conftest.err
27776 rm -f conftest.er1
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
27780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest.$ac_objext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ac_hi=-1 ac_mid=-1
27794 while :; do
27795 cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h. */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 $ac_includes_default
27803 main ()
27805 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
27806 test_array [0] = 0
27809 return 0;
27811 _ACEOF
27812 rm -f conftest.$ac_objext
27813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27814 (eval $ac_compile) 2>conftest.er1
27815 ac_status=$?
27816 grep -v '^ *+' conftest.er1 >conftest.err
27817 rm -f conftest.er1
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } &&
27821 { ac_try='test -z "$ac_c_werror_flag"
27822 || test ! -s conftest.err'
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27825 ac_status=$?
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; } &&
27828 { ac_try='test -s conftest.$ac_objext'
27829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27830 (eval $ac_try) 2>&5
27831 ac_status=$?
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); }; }; then
27834 ac_lo=$ac_mid; break
27835 else
27836 echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27839 ac_hi=`expr '(' $ac_mid ')' - 1`
27840 if test $ac_mid -le $ac_hi; then
27841 ac_lo= ac_hi=
27842 break
27844 ac_mid=`expr 2 '*' $ac_mid`
27846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27847 done
27848 else
27849 echo "$as_me: failed program was:" >&5
27850 sed 's/^/| /' conftest.$ac_ext >&5
27852 ac_lo= ac_hi=
27854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27857 # Binary search between lo and hi bounds.
27858 while test "x$ac_lo" != "x$ac_hi"; do
27859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27860 cat >conftest.$ac_ext <<_ACEOF
27861 /* confdefs.h. */
27862 _ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h. */
27866 $ac_includes_default
27868 main ()
27870 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27871 test_array [0] = 0
27874 return 0;
27876 _ACEOF
27877 rm -f conftest.$ac_objext
27878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27879 (eval $ac_compile) 2>conftest.er1
27880 ac_status=$?
27881 grep -v '^ *+' conftest.er1 >conftest.err
27882 rm -f conftest.er1
27883 cat conftest.err >&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } &&
27886 { ac_try='test -z "$ac_c_werror_flag"
27887 || test ! -s conftest.err'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; } &&
27893 { ac_try='test -s conftest.$ac_objext'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
27899 ac_hi=$ac_mid
27900 else
27901 echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27904 ac_lo=`expr '(' $ac_mid ')' + 1`
27906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27907 done
27908 case $ac_lo in
27909 ?*) ac_cv_sizeof_int=$ac_lo;;
27910 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27911 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27913 See \`config.log' for more details." >&5
27914 echo "$as_me: error: cannot compute sizeof (int), 77
27915 See \`config.log' for more details." >&2;}
27916 { (exit 1); exit 1; }; }; } ;;
27917 esac
27918 else
27919 if test "$cross_compiling" = yes; then
27920 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27921 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27922 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27923 See \`config.log' for more details." >&5
27924 echo "$as_me: error: cannot run test program while cross compiling
27925 See \`config.log' for more details." >&2;}
27926 { (exit 1); exit 1; }; }; }
27927 else
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h. */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 $ac_includes_default
27935 long longval () { return (long) (sizeof (int)); }
27936 unsigned long ulongval () { return (long) (sizeof (int)); }
27937 #include <stdio.h>
27938 #include <stdlib.h>
27940 main ()
27943 FILE *f = fopen ("conftest.val", "w");
27944 if (! f)
27945 exit (1);
27946 if (((long) (sizeof (int))) < 0)
27948 long i = longval ();
27949 if (i != ((long) (sizeof (int))))
27950 exit (1);
27951 fprintf (f, "%ld\n", i);
27953 else
27955 unsigned long i = ulongval ();
27956 if (i != ((long) (sizeof (int))))
27957 exit (1);
27958 fprintf (f, "%lu\n", i);
27960 exit (ferror (f) || fclose (f) != 0);
27963 return 0;
27965 _ACEOF
27966 rm -f conftest$ac_exeext
27967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27968 (eval $ac_link) 2>&5
27969 ac_status=$?
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973 (eval $ac_try) 2>&5
27974 ac_status=$?
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); }; }; then
27977 ac_cv_sizeof_int=`cat conftest.val`
27978 else
27979 echo "$as_me: program exited with status $ac_status" >&5
27980 echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27983 ( exit $ac_status )
27984 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27985 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27986 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27987 See \`config.log' for more details." >&5
27988 echo "$as_me: error: cannot compute sizeof (int), 77
27989 See \`config.log' for more details." >&2;}
27990 { (exit 1); exit 1; }; }; }
27992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27995 rm -f conftest.val
27996 else
27997 ac_cv_sizeof_int=0
28000 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28001 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
28002 cat >>confdefs.h <<_ACEOF
28003 #define SIZEOF_INT $ac_cv_sizeof_int
28004 _ACEOF
28007 echo "$as_me:$LINENO: checking for long" >&5
28008 echo $ECHO_N "checking for long... $ECHO_C" >&6
28009 if test "${ac_cv_type_long+set}" = set; then
28010 echo $ECHO_N "(cached) $ECHO_C" >&6
28011 else
28012 cat >conftest.$ac_ext <<_ACEOF
28013 /* confdefs.h. */
28014 _ACEOF
28015 cat confdefs.h >>conftest.$ac_ext
28016 cat >>conftest.$ac_ext <<_ACEOF
28017 /* end confdefs.h. */
28018 $ac_includes_default
28020 main ()
28022 if ((long *) 0)
28023 return 0;
28024 if (sizeof (long))
28025 return 0;
28027 return 0;
28029 _ACEOF
28030 rm -f conftest.$ac_objext
28031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28032 (eval $ac_compile) 2>conftest.er1
28033 ac_status=$?
28034 grep -v '^ *+' conftest.er1 >conftest.err
28035 rm -f conftest.er1
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } &&
28039 { ac_try='test -z "$ac_c_werror_flag"
28040 || test ! -s conftest.err'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28043 ac_status=$?
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; } &&
28046 { ac_try='test -s conftest.$ac_objext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28052 ac_cv_type_long=yes
28053 else
28054 echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28057 ac_cv_type_long=no
28059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28061 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28062 echo "${ECHO_T}$ac_cv_type_long" >&6
28064 echo "$as_me:$LINENO: checking size of long" >&5
28065 echo $ECHO_N "checking size of long... $ECHO_C" >&6
28066 if test "${ac_cv_sizeof_long+set}" = set; then
28067 echo $ECHO_N "(cached) $ECHO_C" >&6
28068 else
28069 if test "$ac_cv_type_long" = yes; then
28070 # The cast to unsigned long works around a bug in the HP C Compiler
28071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28073 # This bug is HP SR number 8606223364.
28074 if test "$cross_compiling" = yes; then
28075 # Depending upon the size, compute the lo and hi bounds.
28076 cat >conftest.$ac_ext <<_ACEOF
28077 /* confdefs.h. */
28078 _ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h. */
28082 $ac_includes_default
28084 main ()
28086 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
28087 test_array [0] = 0
28090 return 0;
28092 _ACEOF
28093 rm -f conftest.$ac_objext
28094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28095 (eval $ac_compile) 2>conftest.er1
28096 ac_status=$?
28097 grep -v '^ *+' conftest.er1 >conftest.err
28098 rm -f conftest.er1
28099 cat conftest.err >&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); } &&
28102 { ac_try='test -z "$ac_c_werror_flag"
28103 || test ! -s conftest.err'
28104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105 (eval $ac_try) 2>&5
28106 ac_status=$?
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); }; } &&
28109 { ac_try='test -s conftest.$ac_objext'
28110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28111 (eval $ac_try) 2>&5
28112 ac_status=$?
28113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114 (exit $ac_status); }; }; then
28115 ac_lo=0 ac_mid=0
28116 while :; do
28117 cat >conftest.$ac_ext <<_ACEOF
28118 /* confdefs.h. */
28119 _ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h. */
28123 $ac_includes_default
28125 main ()
28127 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28128 test_array [0] = 0
28131 return 0;
28133 _ACEOF
28134 rm -f conftest.$ac_objext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136 (eval $ac_compile) 2>conftest.er1
28137 ac_status=$?
28138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
28143 { ac_try='test -z "$ac_c_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest.$ac_objext'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_hi=$ac_mid; break
28157 else
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ac_lo=`expr $ac_mid + 1`
28162 if test $ac_lo -le $ac_mid; then
28163 ac_lo= ac_hi=
28164 break
28166 ac_mid=`expr 2 '*' $ac_mid + 1`
28168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28169 done
28170 else
28171 echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28174 cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h. */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180 $ac_includes_default
28182 main ()
28184 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
28185 test_array [0] = 0
28188 return 0;
28190 _ACEOF
28191 rm -f conftest.$ac_objext
28192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28193 (eval $ac_compile) 2>conftest.er1
28194 ac_status=$?
28195 grep -v '^ *+' conftest.er1 >conftest.err
28196 rm -f conftest.er1
28197 cat conftest.err >&5
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } &&
28200 { ac_try='test -z "$ac_c_werror_flag"
28201 || test ! -s conftest.err'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; } &&
28207 { ac_try='test -s conftest.$ac_objext'
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213 ac_hi=-1 ac_mid=-1
28214 while :; do
28215 cat >conftest.$ac_ext <<_ACEOF
28216 /* confdefs.h. */
28217 _ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h. */
28221 $ac_includes_default
28223 main ()
28225 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
28226 test_array [0] = 0
28229 return 0;
28231 _ACEOF
28232 rm -f conftest.$ac_objext
28233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28234 (eval $ac_compile) 2>conftest.er1
28235 ac_status=$?
28236 grep -v '^ *+' conftest.er1 >conftest.err
28237 rm -f conftest.er1
28238 cat conftest.err >&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); } &&
28241 { ac_try='test -z "$ac_c_werror_flag"
28242 || test ! -s conftest.err'
28243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28244 (eval $ac_try) 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; } &&
28248 { ac_try='test -s conftest.$ac_objext'
28249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250 (eval $ac_try) 2>&5
28251 ac_status=$?
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); }; }; then
28254 ac_lo=$ac_mid; break
28255 else
28256 echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28259 ac_hi=`expr '(' $ac_mid ')' - 1`
28260 if test $ac_mid -le $ac_hi; then
28261 ac_lo= ac_hi=
28262 break
28264 ac_mid=`expr 2 '*' $ac_mid`
28266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28267 done
28268 else
28269 echo "$as_me: failed program was:" >&5
28270 sed 's/^/| /' conftest.$ac_ext >&5
28272 ac_lo= ac_hi=
28274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28277 # Binary search between lo and hi bounds.
28278 while test "x$ac_lo" != "x$ac_hi"; do
28279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28280 cat >conftest.$ac_ext <<_ACEOF
28281 /* confdefs.h. */
28282 _ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h. */
28286 $ac_includes_default
28288 main ()
28290 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28291 test_array [0] = 0
28294 return 0;
28296 _ACEOF
28297 rm -f conftest.$ac_objext
28298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28299 (eval $ac_compile) 2>conftest.er1
28300 ac_status=$?
28301 grep -v '^ *+' conftest.er1 >conftest.err
28302 rm -f conftest.er1
28303 cat conftest.err >&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } &&
28306 { ac_try='test -z "$ac_c_werror_flag"
28307 || test ! -s conftest.err'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; } &&
28313 { ac_try='test -s conftest.$ac_objext'
28314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315 (eval $ac_try) 2>&5
28316 ac_status=$?
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; }; then
28319 ac_hi=$ac_mid
28320 else
28321 echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28324 ac_lo=`expr '(' $ac_mid ')' + 1`
28326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28327 done
28328 case $ac_lo in
28329 ?*) ac_cv_sizeof_long=$ac_lo;;
28330 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28331 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28333 See \`config.log' for more details." >&5
28334 echo "$as_me: error: cannot compute sizeof (long), 77
28335 See \`config.log' for more details." >&2;}
28336 { (exit 1); exit 1; }; }; } ;;
28337 esac
28338 else
28339 if test "$cross_compiling" = yes; then
28340 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28341 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28342 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28343 See \`config.log' for more details." >&5
28344 echo "$as_me: error: cannot run test program while cross compiling
28345 See \`config.log' for more details." >&2;}
28346 { (exit 1); exit 1; }; }; }
28347 else
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h. */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 $ac_includes_default
28355 long longval () { return (long) (sizeof (long)); }
28356 unsigned long ulongval () { return (long) (sizeof (long)); }
28357 #include <stdio.h>
28358 #include <stdlib.h>
28360 main ()
28363 FILE *f = fopen ("conftest.val", "w");
28364 if (! f)
28365 exit (1);
28366 if (((long) (sizeof (long))) < 0)
28368 long i = longval ();
28369 if (i != ((long) (sizeof (long))))
28370 exit (1);
28371 fprintf (f, "%ld\n", i);
28373 else
28375 unsigned long i = ulongval ();
28376 if (i != ((long) (sizeof (long))))
28377 exit (1);
28378 fprintf (f, "%lu\n", i);
28380 exit (ferror (f) || fclose (f) != 0);
28383 return 0;
28385 _ACEOF
28386 rm -f conftest$ac_exeext
28387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28388 (eval $ac_link) 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; }; then
28397 ac_cv_sizeof_long=`cat conftest.val`
28398 else
28399 echo "$as_me: program exited with status $ac_status" >&5
28400 echo "$as_me: failed program was:" >&5
28401 sed 's/^/| /' conftest.$ac_ext >&5
28403 ( exit $ac_status )
28404 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28405 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28406 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28407 See \`config.log' for more details." >&5
28408 echo "$as_me: error: cannot compute sizeof (long), 77
28409 See \`config.log' for more details." >&2;}
28410 { (exit 1); exit 1; }; }; }
28412 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28415 rm -f conftest.val
28416 else
28417 ac_cv_sizeof_long=0
28420 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28421 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28422 cat >>confdefs.h <<_ACEOF
28423 #define SIZEOF_LONG $ac_cv_sizeof_long
28424 _ACEOF
28427 echo "$as_me:$LINENO: checking for void*" >&5
28428 echo $ECHO_N "checking for void*... $ECHO_C" >&6
28429 if test "${ac_cv_type_voidp+set}" = set; then
28430 echo $ECHO_N "(cached) $ECHO_C" >&6
28431 else
28432 cat >conftest.$ac_ext <<_ACEOF
28433 /* confdefs.h. */
28434 _ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h. */
28438 $ac_includes_default
28440 main ()
28442 if ((void* *) 0)
28443 return 0;
28444 if (sizeof (void*))
28445 return 0;
28447 return 0;
28449 _ACEOF
28450 rm -f conftest.$ac_objext
28451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28452 (eval $ac_compile) 2>conftest.er1
28453 ac_status=$?
28454 grep -v '^ *+' conftest.er1 >conftest.err
28455 rm -f conftest.er1
28456 cat conftest.err >&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } &&
28459 { ac_try='test -z "$ac_c_werror_flag"
28460 || test ! -s conftest.err'
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; } &&
28466 { ac_try='test -s conftest.$ac_objext'
28467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; }; then
28472 ac_cv_type_voidp=yes
28473 else
28474 echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ac_cv_type_voidp=no
28479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28481 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
28482 echo "${ECHO_T}$ac_cv_type_voidp" >&6
28484 echo "$as_me:$LINENO: checking size of void*" >&5
28485 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
28486 if test "${ac_cv_sizeof_voidp+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488 else
28489 if test "$ac_cv_type_voidp" = yes; then
28490 # The cast to unsigned long works around a bug in the HP C Compiler
28491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28493 # This bug is HP SR number 8606223364.
28494 if test "$cross_compiling" = yes; then
28495 # Depending upon the size, compute the lo and hi bounds.
28496 cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h. */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28502 $ac_includes_default
28504 main ()
28506 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
28507 test_array [0] = 0
28510 return 0;
28512 _ACEOF
28513 rm -f conftest.$ac_objext
28514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28515 (eval $ac_compile) 2>conftest.er1
28516 ac_status=$?
28517 grep -v '^ *+' conftest.er1 >conftest.err
28518 rm -f conftest.er1
28519 cat conftest.err >&5
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
28522 { ac_try='test -z "$ac_c_werror_flag"
28523 || test ! -s conftest.err'
28524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525 (eval $ac_try) 2>&5
28526 ac_status=$?
28527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528 (exit $ac_status); }; } &&
28529 { ac_try='test -s conftest.$ac_objext'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; }; then
28535 ac_lo=0 ac_mid=0
28536 while :; do
28537 cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h. */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h. */
28543 $ac_includes_default
28545 main ()
28547 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
28548 test_array [0] = 0
28551 return 0;
28553 _ACEOF
28554 rm -f conftest.$ac_objext
28555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28556 (eval $ac_compile) 2>conftest.er1
28557 ac_status=$?
28558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
28563 { ac_try='test -z "$ac_c_werror_flag"
28564 || test ! -s conftest.err'
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; } &&
28570 { ac_try='test -s conftest.$ac_objext'
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; }; then
28576 ac_hi=$ac_mid; break
28577 else
28578 echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28581 ac_lo=`expr $ac_mid + 1`
28582 if test $ac_lo -le $ac_mid; then
28583 ac_lo= ac_hi=
28584 break
28586 ac_mid=`expr 2 '*' $ac_mid + 1`
28588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28589 done
28590 else
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 cat >conftest.$ac_ext <<_ACEOF
28595 /* confdefs.h. */
28596 _ACEOF
28597 cat confdefs.h >>conftest.$ac_ext
28598 cat >>conftest.$ac_ext <<_ACEOF
28599 /* end confdefs.h. */
28600 $ac_includes_default
28602 main ()
28604 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
28605 test_array [0] = 0
28608 return 0;
28610 _ACEOF
28611 rm -f conftest.$ac_objext
28612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28613 (eval $ac_compile) 2>conftest.er1
28614 ac_status=$?
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
28620 { ac_try='test -z "$ac_c_werror_flag"
28621 || test ! -s conftest.err'
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest.$ac_objext'
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 ac_hi=-1 ac_mid=-1
28634 while :; do
28635 cat >conftest.$ac_ext <<_ACEOF
28636 /* confdefs.h. */
28637 _ACEOF
28638 cat confdefs.h >>conftest.$ac_ext
28639 cat >>conftest.$ac_ext <<_ACEOF
28640 /* end confdefs.h. */
28641 $ac_includes_default
28643 main ()
28645 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
28646 test_array [0] = 0
28649 return 0;
28651 _ACEOF
28652 rm -f conftest.$ac_objext
28653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28654 (eval $ac_compile) 2>conftest.er1
28655 ac_status=$?
28656 grep -v '^ *+' conftest.er1 >conftest.err
28657 rm -f conftest.er1
28658 cat conftest.err >&5
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); } &&
28661 { ac_try='test -z "$ac_c_werror_flag"
28662 || test ! -s conftest.err'
28663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; } &&
28668 { ac_try='test -s conftest.$ac_objext'
28669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28671 ac_status=$?
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; }; then
28674 ac_lo=$ac_mid; break
28675 else
28676 echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28679 ac_hi=`expr '(' $ac_mid ')' - 1`
28680 if test $ac_mid -le $ac_hi; then
28681 ac_lo= ac_hi=
28682 break
28684 ac_mid=`expr 2 '*' $ac_mid`
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28687 done
28688 else
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28692 ac_lo= ac_hi=
28694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28697 # Binary search between lo and hi bounds.
28698 while test "x$ac_lo" != "x$ac_hi"; do
28699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28700 cat >conftest.$ac_ext <<_ACEOF
28701 /* confdefs.h. */
28702 _ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h. */
28706 $ac_includes_default
28708 main ()
28710 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
28711 test_array [0] = 0
28714 return 0;
28716 _ACEOF
28717 rm -f conftest.$ac_objext
28718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28719 (eval $ac_compile) 2>conftest.er1
28720 ac_status=$?
28721 grep -v '^ *+' conftest.er1 >conftest.err
28722 rm -f conftest.er1
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); } &&
28726 { ac_try='test -z "$ac_c_werror_flag"
28727 || test ! -s conftest.err'
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; } &&
28733 { ac_try='test -s conftest.$ac_objext'
28734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28735 (eval $ac_try) 2>&5
28736 ac_status=$?
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); }; }; then
28739 ac_hi=$ac_mid
28740 else
28741 echo "$as_me: failed program was:" >&5
28742 sed 's/^/| /' conftest.$ac_ext >&5
28744 ac_lo=`expr '(' $ac_mid ')' + 1`
28746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28747 done
28748 case $ac_lo in
28749 ?*) ac_cv_sizeof_voidp=$ac_lo;;
28750 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28751 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
28753 See \`config.log' for more details." >&5
28754 echo "$as_me: error: cannot compute sizeof (void*), 77
28755 See \`config.log' for more details." >&2;}
28756 { (exit 1); exit 1; }; }; } ;;
28757 esac
28758 else
28759 if test "$cross_compiling" = yes; then
28760 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28761 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28763 See \`config.log' for more details." >&5
28764 echo "$as_me: error: cannot run test program while cross compiling
28765 See \`config.log' for more details." >&2;}
28766 { (exit 1); exit 1; }; }; }
28767 else
28768 cat >conftest.$ac_ext <<_ACEOF
28769 /* confdefs.h. */
28770 _ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h. */
28774 $ac_includes_default
28775 long longval () { return (long) (sizeof (void*)); }
28776 unsigned long ulongval () { return (long) (sizeof (void*)); }
28777 #include <stdio.h>
28778 #include <stdlib.h>
28780 main ()
28783 FILE *f = fopen ("conftest.val", "w");
28784 if (! f)
28785 exit (1);
28786 if (((long) (sizeof (void*))) < 0)
28788 long i = longval ();
28789 if (i != ((long) (sizeof (void*))))
28790 exit (1);
28791 fprintf (f, "%ld\n", i);
28793 else
28795 unsigned long i = ulongval ();
28796 if (i != ((long) (sizeof (void*))))
28797 exit (1);
28798 fprintf (f, "%lu\n", i);
28800 exit (ferror (f) || fclose (f) != 0);
28803 return 0;
28805 _ACEOF
28806 rm -f conftest$ac_exeext
28807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28808 (eval $ac_link) 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813 (eval $ac_try) 2>&5
28814 ac_status=$?
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
28817 ac_cv_sizeof_voidp=`cat conftest.val`
28818 else
28819 echo "$as_me: program exited with status $ac_status" >&5
28820 echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28823 ( exit $ac_status )
28824 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28825 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
28827 See \`config.log' for more details." >&5
28828 echo "$as_me: error: cannot compute sizeof (void*), 77
28829 See \`config.log' for more details." >&2;}
28830 { (exit 1); exit 1; }; }; }
28832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28835 rm -f conftest.val
28836 else
28837 ac_cv_sizeof_voidp=0
28840 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
28841 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
28842 cat >>confdefs.h <<_ACEOF
28843 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
28844 _ACEOF
28847 ac_cv_char_data_model=""
28848 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
28849 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
28850 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
28851 ac_cv_long_data_model=""
28852 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
28853 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
28854 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
28855 echo "$as_me:$LINENO: checking data model" >&5
28856 echo $ECHO_N "checking data model... $ECHO_C" >&6
28857 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
28858 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
28859 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
28860 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
28861 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
28862 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
28863 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
28864 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
28865 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
28866 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
28867 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
28868 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
28869 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
28870 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
28871 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
28872 222/*|333/*|444/*|666/*|888/*) :
28873 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
28874 *) ac_cv_data_model="none" ; n="very unusual model" ;;
28875 esac
28876 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
28877 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
28881 if test "_$ac_cv_header_stdint_x" != "_" ; then
28882 ac_cv_header_stdint="$ac_cv_header_stdint_x"
28883 elif test "_$ac_cv_header_stdint_o" != "_" ; then
28884 ac_cv_header_stdint="$ac_cv_header_stdint_o"
28885 elif test "_$ac_cv_header_stdint_u" != "_" ; then
28886 ac_cv_header_stdint="$ac_cv_header_stdint_u"
28887 else
28888 ac_cv_header_stdint="stddef.h"
28891 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
28892 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
28893 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
28894 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
28895 unset ac_cv_type_int_least32_t
28896 unset ac_cv_type_int_fast32_t
28897 echo "$as_me:$LINENO: checking for int_least32_t" >&5
28898 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
28899 if test "${ac_cv_type_int_least32_t+set}" = set; then
28900 echo $ECHO_N "(cached) $ECHO_C" >&6
28901 else
28902 cat >conftest.$ac_ext <<_ACEOF
28903 /* confdefs.h. */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h. */
28908 #include <$ac_cv_header_stdint>
28911 main ()
28913 if ((int_least32_t *) 0)
28914 return 0;
28915 if (sizeof (int_least32_t))
28916 return 0;
28918 return 0;
28920 _ACEOF
28921 rm -f conftest.$ac_objext
28922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28923 (eval $ac_compile) 2>conftest.er1
28924 ac_status=$?
28925 grep -v '^ *+' conftest.er1 >conftest.err
28926 rm -f conftest.er1
28927 cat conftest.err >&5
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); } &&
28930 { ac_try='test -z "$ac_c_werror_flag"
28931 || test ! -s conftest.err'
28932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933 (eval $ac_try) 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; } &&
28937 { ac_try='test -s conftest.$ac_objext'
28938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939 (eval $ac_try) 2>&5
28940 ac_status=$?
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); }; }; then
28943 ac_cv_type_int_least32_t=yes
28944 else
28945 echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28948 ac_cv_type_int_least32_t=no
28950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28952 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
28953 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
28955 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
28956 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
28957 if test "${ac_cv_type_int_fast32_t+set}" = set; then
28958 echo $ECHO_N "(cached) $ECHO_C" >&6
28959 else
28960 cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h. */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h. */
28966 #include<$ac_cv_header_stdint>
28969 main ()
28971 if ((int_fast32_t *) 0)
28972 return 0;
28973 if (sizeof (int_fast32_t))
28974 return 0;
28976 return 0;
28978 _ACEOF
28979 rm -f conftest.$ac_objext
28980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28981 (eval $ac_compile) 2>conftest.er1
28982 ac_status=$?
28983 grep -v '^ *+' conftest.er1 >conftest.err
28984 rm -f conftest.er1
28985 cat conftest.err >&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
28988 { ac_try='test -z "$ac_c_werror_flag"
28989 || test ! -s conftest.err'
28990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28991 (eval $ac_try) 2>&5
28992 ac_status=$?
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; } &&
28995 { ac_try='test -s conftest.$ac_objext'
28996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997 (eval $ac_try) 2>&5
28998 ac_status=$?
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29001 ac_cv_type_int_fast32_t=yes
29002 else
29003 echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29006 ac_cv_type_int_fast32_t=no
29008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29010 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
29011 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
29013 echo "$as_me:$LINENO: checking for intmax_t" >&5
29014 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
29015 if test "${ac_cv_type_intmax_t+set}" = set; then
29016 echo $ECHO_N "(cached) $ECHO_C" >&6
29017 else
29018 cat >conftest.$ac_ext <<_ACEOF
29019 /* confdefs.h. */
29020 _ACEOF
29021 cat confdefs.h >>conftest.$ac_ext
29022 cat >>conftest.$ac_ext <<_ACEOF
29023 /* end confdefs.h. */
29024 #include <$ac_cv_header_stdint>
29027 main ()
29029 if ((intmax_t *) 0)
29030 return 0;
29031 if (sizeof (intmax_t))
29032 return 0;
29034 return 0;
29036 _ACEOF
29037 rm -f conftest.$ac_objext
29038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29039 (eval $ac_compile) 2>conftest.er1
29040 ac_status=$?
29041 grep -v '^ *+' conftest.er1 >conftest.err
29042 rm -f conftest.er1
29043 cat conftest.err >&5
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); } &&
29046 { ac_try='test -z "$ac_c_werror_flag"
29047 || test ! -s conftest.err'
29048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29049 (eval $ac_try) 2>&5
29050 ac_status=$?
29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052 (exit $ac_status); }; } &&
29053 { ac_try='test -s conftest.$ac_objext'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29056 ac_status=$?
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; }; then
29059 ac_cv_type_intmax_t=yes
29060 else
29061 echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29064 ac_cv_type_intmax_t=no
29066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29068 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
29069 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
29072 fi # shortcircut to system "stdint.h"
29073 # ------------------ PREPARE VARIABLES ------------------------------
29074 if test "$GCC" = "yes" ; then
29075 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
29076 else
29077 ac_cv_stdint_message="using $CC"
29080 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
29081 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
29083 # ----------------- DONE inttypes.h checks START header -------------
29084 ac_config_commands="$ac_config_commands $ac_stdint_h"
29089 # Check whether --with-glibj_zip or --without-glibj_zip was given.
29090 if test "${with_glibj_zip+set}" = set; then
29091 withval="$with_glibj_zip"
29095 case "$with_glibj_zip" in
29097 use_glibj_zip=false
29099 "no" )
29100 use_glibj_zip=false
29102 "yes")
29103 { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
29104 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
29105 { (exit 1); exit 1; }; }
29108 use_glibj_zip=true
29109 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
29111 esac;
29115 if test x$use_glibj_zip = xtrue; then
29116 USE_PREBUILT_GLIBJ_ZIP_TRUE=
29117 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
29118 else
29119 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
29120 USE_PREBUILT_GLIBJ_ZIP_FALSE=
29125 if test "x${TOOLSDIR}" != x; then
29126 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
29129 if test "x$JAVAPREFIX" = x; then
29130 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
29132 # Extract the first word of "$ac_prog", so it can be a program name with args.
29133 set dummy $ac_prog; ac_word=$2
29134 echo "$as_me:$LINENO: checking for $ac_word" >&5
29135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29136 if test "${ac_cv_prog_JAVA+set}" = set; then
29137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138 else
29139 if test -n "$JAVA"; then
29140 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
29141 else
29142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29143 for as_dir in $PATH
29145 IFS=$as_save_IFS
29146 test -z "$as_dir" && as_dir=.
29147 for ac_exec_ext in '' $ac_executable_extensions; do
29148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29149 ac_cv_prog_JAVA="$ac_prog"
29150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29151 break 2
29153 done
29154 done
29158 JAVA=$ac_cv_prog_JAVA
29159 if test -n "$JAVA"; then
29160 echo "$as_me:$LINENO: result: $JAVA" >&5
29161 echo "${ECHO_T}$JAVA" >&6
29162 else
29163 echo "$as_me:$LINENO: result: no" >&5
29164 echo "${ECHO_T}no" >&6
29167 test -n "$JAVA" && break
29168 done
29170 else
29171 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
29173 # Extract the first word of "$ac_prog", so it can be a program name with args.
29174 set dummy $ac_prog; ac_word=$2
29175 echo "$as_me:$LINENO: checking for $ac_word" >&5
29176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29177 if test "${ac_cv_prog_JAVA+set}" = set; then
29178 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 else
29180 if test -n "$JAVA"; then
29181 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
29182 else
29183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29184 for as_dir in $PATH
29186 IFS=$as_save_IFS
29187 test -z "$as_dir" && as_dir=.
29188 for ac_exec_ext in '' $ac_executable_extensions; do
29189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29190 ac_cv_prog_JAVA="$ac_prog"
29191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29192 break 2
29194 done
29195 done
29199 JAVA=$ac_cv_prog_JAVA
29200 if test -n "$JAVA"; then
29201 echo "$as_me:$LINENO: result: $JAVA" >&5
29202 echo "${ECHO_T}$JAVA" >&6
29203 else
29204 echo "$as_me:$LINENO: result: no" >&5
29205 echo "${ECHO_T}no" >&6
29208 test -n "$JAVA" && break
29209 done
29210 test -n "$JAVA" || JAVA="$JAVAPREFIX"
29213 test "x$JAVA" = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
29214 echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
29215 { (exit 1); exit 1; }; }
29217 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
29218 set dummy uudecode$EXEEXT; ac_word=$2
29219 echo "$as_me:$LINENO: checking for $ac_word" >&5
29220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29221 if test "${ac_cv_prog_uudecode+set}" = set; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29223 else
29224 if test -n "$uudecode"; then
29225 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
29226 else
29227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29228 for as_dir in $PATH
29230 IFS=$as_save_IFS
29231 test -z "$as_dir" && as_dir=.
29232 for ac_exec_ext in '' $ac_executable_extensions; do
29233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29234 ac_cv_prog_uudecode="yes"
29235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29236 break 2
29238 done
29239 done
29243 uudecode=$ac_cv_prog_uudecode
29244 if test -n "$uudecode"; then
29245 echo "$as_me:$LINENO: result: $uudecode" >&5
29246 echo "${ECHO_T}$uudecode" >&6
29247 else
29248 echo "$as_me:$LINENO: result: no" >&5
29249 echo "${ECHO_T}no" >&6
29252 if test x$uudecode = xyes; then
29253 echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
29254 echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
29255 if test "${ac_cv_prog_uudecode_base64+set}" = set; then
29256 echo $ECHO_N "(cached) $ECHO_C" >&6
29257 else
29259 cat << \EOF > Test.uue
29260 begin-base64 644 Test.class
29261 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
29262 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
29263 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
29264 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
29265 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
29266 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
29267 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
29268 ====
29270 if uudecode$EXEEXT Test.uue; then
29271 ac_cv_prog_uudecode_base64=yes
29272 else
29273 echo "configure: 29273: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
29274 echo "configure: failed file was:" >&5
29275 cat Test.uue >&5
29276 ac_cv_prog_uudecode_base64=no
29278 rm -f Test.uue
29280 echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
29281 echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
29283 if test x$ac_cv_prog_uudecode_base64 != xyes; then
29284 rm -f Test.class
29285 { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
29286 echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
29287 if test x$ac_cv_prog_javac_works = xno; then
29288 { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
29289 echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
29290 { (exit 1); exit 1; }; }
29292 if test x$ac_cv_prog_javac_works = x; then
29294 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
29295 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
29296 GCJ_OPTS="-g"
29297 if test "x$JAVAPREFIX" = x; then
29298 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29300 # Extract the first word of "$ac_prog", so it can be a program name with args.
29301 set dummy $ac_prog; ac_word=$2
29302 echo "$as_me:$LINENO: checking for $ac_word" >&5
29303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29304 if test "${ac_cv_prog_JAVAC+set}" = set; then
29305 echo $ECHO_N "(cached) $ECHO_C" >&6
29306 else
29307 if test -n "$JAVAC"; then
29308 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29309 else
29310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29311 for as_dir in $PATH
29313 IFS=$as_save_IFS
29314 test -z "$as_dir" && as_dir=.
29315 for ac_exec_ext in '' $ac_executable_extensions; do
29316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29317 ac_cv_prog_JAVAC="$ac_prog"
29318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29319 break 2
29321 done
29322 done
29326 JAVAC=$ac_cv_prog_JAVAC
29327 if test -n "$JAVAC"; then
29328 echo "$as_me:$LINENO: result: $JAVAC" >&5
29329 echo "${ECHO_T}$JAVAC" >&6
29330 else
29331 echo "$as_me:$LINENO: result: no" >&5
29332 echo "${ECHO_T}no" >&6
29335 test -n "$JAVAC" && break
29336 done
29338 else
29339 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29341 # Extract the first word of "$ac_prog", so it can be a program name with args.
29342 set dummy $ac_prog; ac_word=$2
29343 echo "$as_me:$LINENO: checking for $ac_word" >&5
29344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29345 if test "${ac_cv_prog_JAVAC+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348 if test -n "$JAVAC"; then
29349 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29350 else
29351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29352 for as_dir in $PATH
29354 IFS=$as_save_IFS
29355 test -z "$as_dir" && as_dir=.
29356 for ac_exec_ext in '' $ac_executable_extensions; do
29357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29358 ac_cv_prog_JAVAC="$ac_prog"
29359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29360 break 2
29362 done
29363 done
29367 JAVAC=$ac_cv_prog_JAVAC
29368 if test -n "$JAVAC"; then
29369 echo "$as_me:$LINENO: result: $JAVAC" >&5
29370 echo "${ECHO_T}$JAVAC" >&6
29371 else
29372 echo "$as_me:$LINENO: result: no" >&5
29373 echo "${ECHO_T}no" >&6
29376 test -n "$JAVAC" && break
29377 done
29378 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
29381 test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
29382 echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
29383 { (exit 1); exit 1; }; }
29384 echo "$as_me:$LINENO: checking if $JAVAC is a version of gcj" >&5
29385 echo $ECHO_N "checking if $JAVAC is a version of gcj... $ECHO_C" >&6
29386 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29388 else
29390 if $JAVAC --version | grep gcj > /dev/null; then
29391 ac_cv_prog_javac_is_gcj=yes;
29392 JAVAC="$JAVAC $GCJ_OPTS";
29395 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_is_gcj" >&5
29396 echo "${ECHO_T}$ac_cv_prog_javac_is_gcj" >&6
29397 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
29401 if test x"${JAVAC_IS_GCJ}" = xyes; then
29402 GCJ_JAVAC_TRUE=
29403 GCJ_JAVAC_FALSE='#'
29404 else
29405 GCJ_JAVAC_TRUE='#'
29406 GCJ_JAVAC_FALSE=
29409 if test "$enable_java_maintainer_mode" = yes; then
29411 echo "$as_me:$LINENO: checking if $JAVAC works" >&5
29412 echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
29413 if test "${ac_cv_prog_javac_works+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29417 JAVA_TEST=Object.java
29418 CLASS_TEST=Object.class
29419 cat << \EOF > $JAVA_TEST
29420 /* #line 29420 "configure" */
29421 package java.lang;
29423 public class Object
29425 static <T> void doStuff()
29430 if test x$JAVAC_IS_GCJ = xyes; then
29431 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
29432 else
29433 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
29435 if { ac_try='$CMD'
29436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29437 (eval $ac_try) 2>&5
29438 ac_status=$?
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; } >/dev/null 2>&1; then
29441 ac_cv_prog_javac_works=yes
29442 else
29443 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
29444 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
29445 { (exit 1); exit 1; }; }
29446 echo "configure: failed program was:" >&5
29447 cat $JAVA_TEST >&5
29449 rm -f $JAVA_TEST $CLASS_TEST
29452 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
29453 echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
29459 echo "$as_me:$LINENO: checking if $JAVA works" >&5
29460 echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
29461 if test "${ac_cv_prog_java_works+set}" = set; then
29462 echo $ECHO_N "(cached) $ECHO_C" >&6
29463 else
29465 JAVA_TEST=Test.java
29466 CLASS_TEST=Test.class
29467 TEST=Test
29468 cat << \EOF > $JAVA_TEST
29469 /* [#]line 29469 "configure" */
29470 public class Test {
29471 public static void main (String args[]) {
29472 System.exit (0);
29475 if test x$ac_cv_prog_uudecode_base64 != xyes; then
29476 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; } && test -s $CLASS_TEST; then
29483 else
29484 echo "configure: failed program was:" >&5
29485 cat $JAVA_TEST >&5
29486 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
29487 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
29488 { (exit 1); exit 1; }; }
29491 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } >/dev/null 2>&1; then
29497 ac_cv_prog_java_works=yes
29498 else
29499 echo "configure: failed program was:" >&5
29500 cat $JAVA_TEST >&5
29501 { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
29502 echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
29503 { (exit 1); exit 1; }; }
29505 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
29508 echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
29509 echo "${ECHO_T}$ac_cv_prog_java_works" >&6
29514 if test "x${COMPILE_GJDOC}" = xyes; then
29516 echo "$as_me:$LINENO: checking for the ANTLR parser generator JAR file" >&5
29517 echo $ECHO_N "checking for the ANTLR parser generator JAR file... $ECHO_C" >&6
29518 if test -z "$ANTLR_JAR"; then
29519 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
29520 /usr/share/antlr/lib /usr/share/java /usr/lib;
29522 if test -f "$antlr_lib_home/antlr.jar"; then
29523 ANTLR_JAR="$antlr_lib_home/antlr.jar"
29524 break
29526 done
29528 test -f $ANTLR_JAR || { { echo "$as_me:$LINENO: error: specified ANTLR jar file $ANTLR_JAR not found." >&5
29529 echo "$as_me: error: specified ANTLR jar file $ANTLR_JAR not found." >&2;}
29530 { (exit 1); exit 1; }; } \
29531 && echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
29532 echo "${ECHO_T}$ANTLR_JAR" >&6
29535 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
29537 if test -n "$ac_tool_prefix"; then
29538 for ac_prog in cantlr runantlr antlr
29540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29542 echo "$as_me:$LINENO: checking for $ac_word" >&5
29543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29544 if test "${ac_cv_prog_ANTLR+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546 else
29547 if test -n "$ANTLR"; then
29548 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
29549 else
29550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29551 for as_dir in $PATH
29553 IFS=$as_save_IFS
29554 test -z "$as_dir" && as_dir=.
29555 for ac_exec_ext in '' $ac_executable_extensions; do
29556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29557 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
29558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29559 break 2
29561 done
29562 done
29566 ANTLR=$ac_cv_prog_ANTLR
29567 if test -n "$ANTLR"; then
29568 echo "$as_me:$LINENO: result: $ANTLR" >&5
29569 echo "${ECHO_T}$ANTLR" >&6
29570 else
29571 echo "$as_me:$LINENO: result: no" >&5
29572 echo "${ECHO_T}no" >&6
29575 test -n "$ANTLR" && break
29576 done
29578 if test -z "$ANTLR"; then
29579 ac_ct_ANTLR=$ANTLR
29580 for ac_prog in cantlr runantlr antlr
29582 # Extract the first word of "$ac_prog", so it can be a program name with args.
29583 set dummy $ac_prog; ac_word=$2
29584 echo "$as_me:$LINENO: checking for $ac_word" >&5
29585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29586 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then
29587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588 else
29589 if test -n "$ac_ct_ANTLR"; then
29590 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
29591 else
29592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29593 for as_dir in $PATH
29595 IFS=$as_save_IFS
29596 test -z "$as_dir" && as_dir=.
29597 for ac_exec_ext in '' $ac_executable_extensions; do
29598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29599 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
29600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29601 break 2
29603 done
29604 done
29608 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
29609 if test -n "$ac_ct_ANTLR"; then
29610 echo "$as_me:$LINENO: result: $ac_ct_ANTLR" >&5
29611 echo "${ECHO_T}$ac_ct_ANTLR" >&6
29612 else
29613 echo "$as_me:$LINENO: result: no" >&5
29614 echo "${ECHO_T}no" >&6
29617 test -n "$ac_ct_ANTLR" && break
29618 done
29620 ANTLR=$ac_ct_ANTLR
29623 if test "x$ANTLR" = x; then
29624 if test -z "$JAVA"; then
29625 { { echo "$as_me:$LINENO: error: Failed to find either an antlr binary or a suitable Java runtime for ANTLR." >&5
29626 echo "$as_me: error: Failed to find either an antlr binary or a suitable Java runtime for ANTLR." >&2;}
29627 { (exit 1); exit 1; }; }
29628 else
29629 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
29633 echo "$as_me:$LINENO: checking for antlr 2.7.1 or better" >&5
29634 echo $ECHO_N "checking for antlr 2.7.1 or better... $ECHO_C" >&6
29635 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
29636 if test "$antlr_version_str"; then
29637 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
29638 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
29639 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
29640 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
29641 (test $antlr_version_major -gt 2 || \
29642 (test $antlr_version_major -eq 2 && \
29643 test $antlr_version_minor -gt 7) || \
29644 (test $antlr_version_major -eq 2 && \
29645 test $antlr_version_minor -eq 7 && \
29646 test $antlr_version_micro -ge 1))
29648 echo "$as_me:$LINENO: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
29649 echo "${ECHO_T}$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6
29656 # Check for javac if we need to build either the class library,
29657 # the examples or the tools
29658 if test "x${use_glibj_zip}" = xfalse || \
29659 test "x${EXAMPLESDIR}" != x || \
29660 test "x${TOOLSDIR}" != x && \
29661 test "x${build_class_files}" != xno; then
29663 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
29664 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
29665 GCJ_OPTS="-g"
29666 if test "x$JAVAPREFIX" = x; then
29667 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29669 # Extract the first word of "$ac_prog", so it can be a program name with args.
29670 set dummy $ac_prog; ac_word=$2
29671 echo "$as_me:$LINENO: checking for $ac_word" >&5
29672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29673 if test "${ac_cv_prog_JAVAC+set}" = set; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29675 else
29676 if test -n "$JAVAC"; then
29677 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29678 else
29679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29680 for as_dir in $PATH
29682 IFS=$as_save_IFS
29683 test -z "$as_dir" && as_dir=.
29684 for ac_exec_ext in '' $ac_executable_extensions; do
29685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29686 ac_cv_prog_JAVAC="$ac_prog"
29687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29688 break 2
29690 done
29691 done
29695 JAVAC=$ac_cv_prog_JAVAC
29696 if test -n "$JAVAC"; then
29697 echo "$as_me:$LINENO: result: $JAVAC" >&5
29698 echo "${ECHO_T}$JAVAC" >&6
29699 else
29700 echo "$as_me:$LINENO: result: no" >&5
29701 echo "${ECHO_T}no" >&6
29704 test -n "$JAVAC" && break
29705 done
29707 else
29708 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29710 # Extract the first word of "$ac_prog", so it can be a program name with args.
29711 set dummy $ac_prog; ac_word=$2
29712 echo "$as_me:$LINENO: checking for $ac_word" >&5
29713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29714 if test "${ac_cv_prog_JAVAC+set}" = set; then
29715 echo $ECHO_N "(cached) $ECHO_C" >&6
29716 else
29717 if test -n "$JAVAC"; then
29718 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29719 else
29720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29721 for as_dir in $PATH
29723 IFS=$as_save_IFS
29724 test -z "$as_dir" && as_dir=.
29725 for ac_exec_ext in '' $ac_executable_extensions; do
29726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29727 ac_cv_prog_JAVAC="$ac_prog"
29728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29729 break 2
29731 done
29732 done
29736 JAVAC=$ac_cv_prog_JAVAC
29737 if test -n "$JAVAC"; then
29738 echo "$as_me:$LINENO: result: $JAVAC" >&5
29739 echo "${ECHO_T}$JAVAC" >&6
29740 else
29741 echo "$as_me:$LINENO: result: no" >&5
29742 echo "${ECHO_T}no" >&6
29745 test -n "$JAVAC" && break
29746 done
29747 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
29750 test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
29751 echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
29752 { (exit 1); exit 1; }; }
29753 echo "$as_me:$LINENO: checking if $JAVAC is a version of gcj" >&5
29754 echo $ECHO_N "checking if $JAVAC is a version of gcj... $ECHO_C" >&6
29755 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then
29756 echo $ECHO_N "(cached) $ECHO_C" >&6
29757 else
29759 if $JAVAC --version | grep gcj > /dev/null; then
29760 ac_cv_prog_javac_is_gcj=yes;
29761 JAVAC="$JAVAC $GCJ_OPTS";
29764 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_is_gcj" >&5
29765 echo "${ECHO_T}$ac_cv_prog_javac_is_gcj" >&6
29766 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
29770 if test x"${JAVAC_IS_GCJ}" = xyes; then
29771 GCJ_JAVAC_TRUE=
29772 GCJ_JAVAC_FALSE='#'
29773 else
29774 GCJ_JAVAC_TRUE='#'
29775 GCJ_JAVAC_FALSE=
29778 if test "$enable_java_maintainer_mode" = yes; then
29780 echo "$as_me:$LINENO: checking if $JAVAC works" >&5
29781 echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
29782 if test "${ac_cv_prog_javac_works+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
29784 else
29786 JAVA_TEST=Object.java
29787 CLASS_TEST=Object.class
29788 cat << \EOF > $JAVA_TEST
29789 /* #line 29789 "configure" */
29790 package java.lang;
29792 public class Object
29794 static <T> void doStuff()
29799 if test x$JAVAC_IS_GCJ = xyes; then
29800 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
29801 else
29802 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
29804 if { ac_try='$CMD'
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; } >/dev/null 2>&1; then
29810 ac_cv_prog_javac_works=yes
29811 else
29812 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
29813 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
29814 { (exit 1); exit 1; }; }
29815 echo "configure: failed program was:" >&5
29816 cat $JAVA_TEST >&5
29818 rm -f $JAVA_TEST $CLASS_TEST
29821 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
29822 echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
29827 JAVA_TEST=Test.java
29828 CLASS_TEST=Test.class
29829 cat << \EOF > $JAVA_TEST
29830 /* #line 29830 "configure" */
29831 public class Test
29833 public static void main(String args)
29835 System.out.println("Hello World");
29839 if test x$JAVAC_IS_GCJ != xyes; then
29840 echo "$as_me:$LINENO: checking whether javac supports -J" >&5
29841 echo $ECHO_N "checking whether javac supports -J... $ECHO_C" >&6
29842 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
29843 javac_result=$?
29844 if test "x$javac_result" = "x0"; then
29845 echo "$as_me:$LINENO: result: yes" >&5
29846 echo "${ECHO_T}yes" >&6
29847 JAVAC_MEM_OPT="-J-Xmx768M"
29848 else
29849 echo "$as_me:$LINENO: result: no" >&5
29850 echo "${ECHO_T}no" >&6
29853 rm -f $JAVA_TEST $CLASS_TEST
29859 # Check whether --with-escher or --without-escher was given.
29860 if test "${with_escher+set}" = set; then
29861 withval="$with_escher"
29864 case "$with_escher" in
29866 use_escher=false
29868 "no")
29869 use_escher=false
29871 "yes")
29872 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
29873 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
29874 { (exit 1); exit 1; }; }
29877 use_escher=true
29878 PATH_TO_ESCHER=$with_escher
29880 esac
29884 if test x$use_escher = xtrue; then
29885 USE_ESCHER_TRUE=
29886 USE_ESCHER_FALSE='#'
29887 else
29888 USE_ESCHER_TRUE='#'
29889 USE_ESCHER_FALSE=
29894 # Check whether --enable-local-sockets or --disable-local-sockets was given.
29895 if test "${enable_local_sockets+set}" = set; then
29896 enableval="$enable_local_sockets"
29897 case "${enableval}" in
29898 yes)
29899 ENABLE_LOCAL_SOCKETS=yes
29902 ENABLE_LOCAL_SOCKETS=no
29904 esac
29906 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
29907 then
29908 if test "${ac_cv_header_sys_un_h+set}" = set; then
29909 echo "$as_me:$LINENO: checking for sys/un.h" >&5
29910 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
29911 if test "${ac_cv_header_sys_un_h+set}" = set; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
29915 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
29916 else
29917 # Is the header compilable?
29918 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
29919 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
29920 cat >conftest.$ac_ext <<_ACEOF
29921 /* confdefs.h. */
29922 _ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h. */
29926 $ac_includes_default
29927 #include <sys/un.h>
29928 _ACEOF
29929 rm -f conftest.$ac_objext
29930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29931 (eval $ac_compile) 2>conftest.er1
29932 ac_status=$?
29933 grep -v '^ *+' conftest.er1 >conftest.err
29934 rm -f conftest.er1
29935 cat conftest.err >&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); } &&
29938 { ac_try='test -z "$ac_c_werror_flag"
29939 || test ! -s conftest.err'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; } &&
29945 { ac_try='test -s conftest.$ac_objext'
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29948 ac_status=$?
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ac_header_compiler=yes
29952 else
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_header_compiler=no
29958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29960 echo "${ECHO_T}$ac_header_compiler" >&6
29962 # Is the header present?
29963 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
29964 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
29965 cat >conftest.$ac_ext <<_ACEOF
29966 /* confdefs.h. */
29967 _ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h. */
29971 #include <sys/un.h>
29972 _ACEOF
29973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29975 ac_status=$?
29976 grep -v '^ *+' conftest.er1 >conftest.err
29977 rm -f conftest.er1
29978 cat conftest.err >&5
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); } >/dev/null; then
29981 if test -s conftest.err; then
29982 ac_cpp_err=$ac_c_preproc_warn_flag
29983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29984 else
29985 ac_cpp_err=
29987 else
29988 ac_cpp_err=yes
29990 if test -z "$ac_cpp_err"; then
29991 ac_header_preproc=yes
29992 else
29993 echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29996 ac_header_preproc=no
29998 rm -f conftest.err conftest.$ac_ext
29999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30000 echo "${ECHO_T}$ac_header_preproc" >&6
30002 # So? What about this header?
30003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30004 yes:no: )
30005 { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
30006 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30007 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
30008 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
30009 ac_header_preproc=yes
30011 no:yes:* )
30012 { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
30013 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
30014 { echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
30015 echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
30017 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
30019 echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
30021 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
30023 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
30025 cat <<\_ASBOX
30026 ## -------------------------------- ##
30027 ## Report this to classpath@gnu.org ##
30028 ## -------------------------------- ##
30029 _ASBOX
30031 sed "s/^/$as_me: WARNING: /" >&2
30033 esac
30034 echo "$as_me:$LINENO: checking for sys/un.h" >&5
30035 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
30036 if test "${ac_cv_header_sys_un_h+set}" = set; then
30037 echo $ECHO_N "(cached) $ECHO_C" >&6
30038 else
30039 ac_cv_header_sys_un_h=$ac_header_preproc
30041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
30042 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
30053 for ac_func in read write bind listen accept shutdown
30055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30056 echo "$as_me:$LINENO: checking for $ac_func" >&5
30057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30058 if eval "test \"\${$as_ac_var+set}\" = set"; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30060 else
30061 if test x$gcc_no_link = xyes; then
30062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30063 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30064 { (exit 1); exit 1; }; }
30066 cat >conftest.$ac_ext <<_ACEOF
30067 /* confdefs.h. */
30068 _ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h. */
30072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30074 #define $ac_func innocuous_$ac_func
30076 /* System header to define __stub macros and hopefully few prototypes,
30077 which can conflict with char $ac_func (); below.
30078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30079 <limits.h> exists even on freestanding compilers. */
30081 #ifdef __STDC__
30082 # include <limits.h>
30083 #else
30084 # include <assert.h>
30085 #endif
30087 #undef $ac_func
30089 /* Override any gcc2 internal prototype to avoid an error. */
30090 #ifdef __cplusplus
30091 extern "C"
30093 #endif
30094 /* We use char because int might match the return type of a gcc2
30095 builtin and then its argument prototype would still apply. */
30096 char $ac_func ();
30097 /* The GNU C library defines this for functions which it implements
30098 to always fail with ENOSYS. Some functions are actually named
30099 something starting with __ and the normal name is an alias. */
30100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30101 choke me
30102 #else
30103 char (*f) () = $ac_func;
30104 #endif
30105 #ifdef __cplusplus
30107 #endif
30110 main ()
30112 return f != $ac_func;
30114 return 0;
30116 _ACEOF
30117 rm -f conftest.$ac_objext conftest$ac_exeext
30118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30119 (eval $ac_link) 2>conftest.er1
30120 ac_status=$?
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } &&
30126 { ac_try='test -z "$ac_c_werror_flag"
30127 || test ! -s conftest.err'
30128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129 (eval $ac_try) 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; } &&
30133 { ac_try='test -s conftest$ac_exeext'
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 eval "$as_ac_var=yes"
30140 else
30141 echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144 eval "$as_ac_var=no"
30146 rm -f conftest.err conftest.$ac_objext \
30147 conftest$ac_exeext conftest.$ac_ext
30149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30151 if test `eval echo '${'$as_ac_var'}'` = yes; then
30152 cat >>confdefs.h <<_ACEOF
30153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30154 _ACEOF
30156 else
30157 { { echo "$as_me:$LINENO: error: networking support not available" >&5
30158 echo "$as_me: error: networking support not available" >&2;}
30159 { (exit 1); exit 1; }; }
30161 done
30164 cat >>confdefs.h <<\_ACEOF
30165 #define ENABLE_LOCAL_SOCKETS 1
30166 _ACEOF
30171 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
30172 ENABLE_LOCAL_SOCKETS_TRUE=
30173 ENABLE_LOCAL_SOCKETS_FALSE='#'
30174 else
30175 ENABLE_LOCAL_SOCKETS_TRUE='#'
30176 ENABLE_LOCAL_SOCKETS_FALSE=
30182 WANT_NATIVE_BIG_INTEGER=false
30183 if test "x${COMPILE_GMP}" = xyes; then
30184 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
30185 if test "x${ac_cv_header_gmp_h}" = xyes; then
30186 WANT_NATIVE_BIG_INTEGER=true
30188 cat >>confdefs.h <<\_ACEOF
30189 #define WITH_GNU_MP 1
30190 _ACEOF
30192 else
30193 COMPILE_GMP=no
30195 else
30196 COMPILE_GMP=no
30202 if test "x${COMPILE_GMP}" = xyes; then
30203 CREATE_GMPBI_LIBRARY_TRUE=
30204 CREATE_GMPBI_LIBRARY_FALSE='#'
30205 else
30206 CREATE_GMPBI_LIBRARY_TRUE='#'
30207 CREATE_GMPBI_LIBRARY_FALSE=
30211 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/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-math/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/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
30214 if test "x${COMPILE_WRAPPERS}" = xyes; then
30216 else
30217 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
30220 ac_config_commands="$ac_config_commands gappletviewer"
30222 ac_config_commands="$ac_config_commands gjarsigner"
30224 ac_config_commands="$ac_config_commands gkeytool"
30226 ac_config_commands="$ac_config_commands gjar"
30228 ac_config_commands="$ac_config_commands gnative2ascii"
30230 ac_config_commands="$ac_config_commands gserialver"
30232 ac_config_commands="$ac_config_commands grmiregistry"
30234 ac_config_commands="$ac_config_commands gtnameserv"
30236 ac_config_commands="$ac_config_commands gorbd"
30238 ac_config_commands="$ac_config_commands grmid"
30240 ac_config_commands="$ac_config_commands grmic"
30242 ac_config_commands="$ac_config_commands gjavah"
30248 if test "x${COMPILE_GJDOC}" = xyes
30249 then
30250 ac_config_files="$ac_config_files tools/gjdoc"
30252 ac_config_commands="$ac_config_commands gjdoc"
30256 ac_config_commands="$ac_config_commands gen-classlist"
30258 ac_config_commands="$ac_config_commands copy-vmresources"
30260 cat >confcache <<\_ACEOF
30261 # This file is a shell script that caches the results of configure
30262 # tests run on this system so they can be shared between configure
30263 # scripts and configure runs, see configure's option --config-cache.
30264 # It is not useful on other systems. If it contains results you don't
30265 # want to keep, you may remove or edit it.
30267 # config.status only pays attention to the cache file if you give it
30268 # the --recheck option to rerun configure.
30270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30272 # following values.
30274 _ACEOF
30276 # The following way of writing the cache mishandles newlines in values,
30277 # but we know of no workaround that is simple, portable, and efficient.
30278 # So, don't put newlines in cache variables' values.
30279 # Ultrix sh set writes to stderr and can't be redirected directly,
30280 # and sets the high bit in the cache file unless we assign to the vars.
30282 (set) 2>&1 |
30283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30284 *ac_space=\ *)
30285 # `set' does not quote correctly, so add quotes (double-quote
30286 # substitution turns \\\\ into \\, and sed turns \\ into \).
30287 sed -n \
30288 "s/'/'\\\\''/g;
30289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30292 # `set' quotes correctly as required by POSIX, so do not add quotes.
30293 sed -n \
30294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30296 esac;
30298 sed '
30299 t clear
30300 : clear
30301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30302 t end
30303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30304 : end' >>confcache
30305 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30306 if test -w $cache_file; then
30307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30308 cat confcache >$cache_file
30309 else
30310 echo "not updating unwritable cache $cache_file"
30313 rm -f confcache
30315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30316 # Let make expand exec_prefix.
30317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30321 # trailing colons and then remove the whole line if VPATH becomes empty
30322 # (actually we leave an empty line to preserve line numbers).
30323 if test "x$srcdir" = x.; then
30324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30325 s/:*\$(srcdir):*/:/;
30326 s/:*\${srcdir}:*/:/;
30327 s/:*@srcdir@:*/:/;
30328 s/^\([^=]*=[ ]*\):*/\1/;
30329 s/:*$//;
30330 s/^[^=]*=[ ]*$//;
30334 DEFS=-DHAVE_CONFIG_H
30336 ac_libobjs=
30337 ac_ltlibobjs=
30338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30339 # 1. Remove the extension, and $U if already installed.
30340 ac_i=`echo "$ac_i" |
30341 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30342 # 2. Add them.
30343 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30344 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30345 done
30346 LIBOBJS=$ac_libobjs
30348 LTLIBOBJS=$ac_ltlibobjs
30351 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
30352 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
30353 Usually this means the macro was only invoked conditionally." >&5
30354 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
30355 Usually this means the macro was only invoked conditionally." >&2;}
30356 { (exit 1); exit 1; }; }
30358 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
30359 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
30360 Usually this means the macro was only invoked conditionally." >&5
30361 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
30362 Usually this means the macro was only invoked conditionally." >&2;}
30363 { (exit 1); exit 1; }; }
30365 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
30366 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
30367 Usually this means the macro was only invoked conditionally." >&5
30368 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
30369 Usually this means the macro was only invoked conditionally." >&2;}
30370 { (exit 1); exit 1; }; }
30372 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
30373 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
30374 Usually this means the macro was only invoked conditionally." >&5
30375 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
30376 Usually this means the macro was only invoked conditionally." >&2;}
30377 { (exit 1); exit 1; }; }
30379 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
30380 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
30381 Usually this means the macro was only invoked conditionally." >&5
30382 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
30383 Usually this means the macro was only invoked conditionally." >&2;}
30384 { (exit 1); exit 1; }; }
30386 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
30387 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
30388 Usually this means the macro was only invoked conditionally." >&5
30389 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
30390 Usually this means the macro was only invoked conditionally." >&2;}
30391 { (exit 1); exit 1; }; }
30393 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
30394 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
30395 Usually this means the macro was only invoked conditionally." >&5
30396 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
30397 Usually this means the macro was only invoked conditionally." >&2;}
30398 { (exit 1); exit 1; }; }
30400 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
30401 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
30402 Usually this means the macro was only invoked conditionally." >&5
30403 echo "$as_me: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
30404 Usually this means the macro was only invoked conditionally." >&2;}
30405 { (exit 1); exit 1; }; }
30407 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
30408 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
30409 Usually this means the macro was only invoked conditionally." >&5
30410 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
30411 Usually this means the macro was only invoked conditionally." >&2;}
30412 { (exit 1); exit 1; }; }
30414 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30415 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30416 Usually this means the macro was only invoked conditionally." >&5
30417 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30418 Usually this means the macro was only invoked conditionally." >&2;}
30419 { (exit 1); exit 1; }; }
30421 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30422 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30423 Usually this means the macro was only invoked conditionally." >&5
30424 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30425 Usually this means the macro was only invoked conditionally." >&2;}
30426 { (exit 1); exit 1; }; }
30428 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
30429 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
30430 Usually this means the macro was only invoked conditionally." >&5
30431 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
30432 Usually this means the macro was only invoked conditionally." >&2;}
30433 { (exit 1); exit 1; }; }
30435 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
30436 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
30437 Usually this means the macro was only invoked conditionally." >&5
30438 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
30439 Usually this means the macro was only invoked conditionally." >&2;}
30440 { (exit 1); exit 1; }; }
30442 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
30443 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
30444 Usually this means the macro was only invoked conditionally." >&5
30445 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
30446 Usually this means the macro was only invoked conditionally." >&2;}
30447 { (exit 1); exit 1; }; }
30449 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
30450 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
30451 Usually this means the macro was only invoked conditionally." >&5
30452 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
30453 Usually this means the macro was only invoked conditionally." >&2;}
30454 { (exit 1); exit 1; }; }
30456 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
30457 { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
30458 Usually this means the macro was only invoked conditionally." >&5
30459 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
30460 Usually this means the macro was only invoked conditionally." >&2;}
30461 { (exit 1); exit 1; }; }
30463 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
30464 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
30465 Usually this means the macro was only invoked conditionally." >&5
30466 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
30467 Usually this means the macro was only invoked conditionally." >&2;}
30468 { (exit 1); exit 1; }; }
30470 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
30471 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
30472 Usually this means the macro was only invoked conditionally." >&5
30473 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
30474 Usually this means the macro was only invoked conditionally." >&2;}
30475 { (exit 1); exit 1; }; }
30477 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
30478 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC_PARSER\" was never defined.
30479 Usually this means the macro was only invoked conditionally." >&5
30480 echo "$as_me: error: conditional \"CREATE_GJDOC_PARSER\" was never defined.
30481 Usually this means the macro was only invoked conditionally." >&2;}
30482 { (exit 1); exit 1; }; }
30484 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
30485 { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
30486 Usually this means the macro was only invoked conditionally." >&5
30487 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
30488 Usually this means the macro was only invoked conditionally." >&2;}
30489 { (exit 1); exit 1; }; }
30491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30492 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30493 Usually this means the macro was only invoked conditionally." >&5
30494 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30495 Usually this means the macro was only invoked conditionally." >&2;}
30496 { (exit 1); exit 1; }; }
30498 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30499 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30500 Usually this means the macro was only invoked conditionally." >&5
30501 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30502 Usually this means the macro was only invoked conditionally." >&2;}
30503 { (exit 1); exit 1; }; }
30505 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30506 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30507 Usually this means the macro was only invoked conditionally." >&5
30508 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30509 Usually this means the macro was only invoked conditionally." >&2;}
30510 { (exit 1); exit 1; }; }
30512 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30513 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30514 Usually this means the macro was only invoked conditionally." >&5
30515 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30516 Usually this means the macro was only invoked conditionally." >&2;}
30517 { (exit 1); exit 1; }; }
30519 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
30520 { { echo "$as_me:$LINENO: error: conditional \"WITH_JAR\" was never defined.
30521 Usually this means the macro was only invoked conditionally." >&5
30522 echo "$as_me: error: conditional \"WITH_JAR\" was never defined.
30523 Usually this means the macro was only invoked conditionally." >&2;}
30524 { (exit 1); exit 1; }; }
30526 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
30527 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
30528 Usually this means the macro was only invoked conditionally." >&5
30529 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
30530 Usually this means the macro was only invoked conditionally." >&2;}
30531 { (exit 1); exit 1; }; }
30533 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
30534 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
30535 Usually this means the macro was only invoked conditionally." >&5
30536 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
30537 Usually this means the macro was only invoked conditionally." >&2;}
30538 { (exit 1); exit 1; }; }
30540 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
30541 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
30542 Usually this means the macro was only invoked conditionally." >&5
30543 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
30544 Usually this means the macro was only invoked conditionally." >&2;}
30545 { (exit 1); exit 1; }; }
30547 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
30548 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
30549 Usually this means the macro was only invoked conditionally." >&5
30550 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
30551 Usually this means the macro was only invoked conditionally." >&2;}
30552 { (exit 1); exit 1; }; }
30554 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
30555 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
30556 Usually this means the macro was only invoked conditionally." >&5
30557 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
30558 Usually this means the macro was only invoked conditionally." >&2;}
30559 { (exit 1); exit 1; }; }
30561 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
30562 { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
30563 Usually this means the macro was only invoked conditionally." >&5
30564 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
30565 Usually this means the macro was only invoked conditionally." >&2;}
30566 { (exit 1); exit 1; }; }
30568 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
30569 { { echo "$as_me:$LINENO: error: conditional \"GCJ_JAVAC\" was never defined.
30570 Usually this means the macro was only invoked conditionally." >&5
30571 echo "$as_me: error: conditional \"GCJ_JAVAC\" was never defined.
30572 Usually this means the macro was only invoked conditionally." >&2;}
30573 { (exit 1); exit 1; }; }
30575 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
30576 { { echo "$as_me:$LINENO: error: conditional \"GCJ_JAVAC\" was never defined.
30577 Usually this means the macro was only invoked conditionally." >&5
30578 echo "$as_me: error: conditional \"GCJ_JAVAC\" was never defined.
30579 Usually this means the macro was only invoked conditionally." >&2;}
30580 { (exit 1); exit 1; }; }
30582 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
30583 { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
30584 Usually this means the macro was only invoked conditionally." >&5
30585 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
30586 Usually this means the macro was only invoked conditionally." >&2;}
30587 { (exit 1); exit 1; }; }
30589 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
30590 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
30591 Usually this means the macro was only invoked conditionally." >&5
30592 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
30593 Usually this means the macro was only invoked conditionally." >&2;}
30594 { (exit 1); exit 1; }; }
30596 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
30597 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
30598 Usually this means the macro was only invoked conditionally." >&5
30599 echo "$as_me: error: conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
30600 Usually this means the macro was only invoked conditionally." >&2;}
30601 { (exit 1); exit 1; }; }
30604 : ${CONFIG_STATUS=./config.status}
30605 ac_clean_files_save=$ac_clean_files
30606 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30607 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30608 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30609 cat >$CONFIG_STATUS <<_ACEOF
30610 #! $SHELL
30611 # Generated by $as_me.
30612 # Run this file to recreate the current configuration.
30613 # Compiler output produced by configure, useful for debugging
30614 # configure, is in config.log if it exists.
30616 debug=false
30617 ac_cs_recheck=false
30618 ac_cs_silent=false
30619 SHELL=\${CONFIG_SHELL-$SHELL}
30620 _ACEOF
30622 cat >>$CONFIG_STATUS <<\_ACEOF
30623 ## --------------------- ##
30624 ## M4sh Initialization. ##
30625 ## --------------------- ##
30627 # Be Bourne compatible
30628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30629 emulate sh
30630 NULLCMD=:
30631 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30632 # is contrary to our usage. Disable this feature.
30633 alias -g '${1+"$@"}'='"$@"'
30634 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30635 set -o posix
30637 DUALCASE=1; export DUALCASE # for MKS sh
30639 # Support unset when possible.
30640 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30641 as_unset=unset
30642 else
30643 as_unset=false
30647 # Work around bugs in pre-3.0 UWIN ksh.
30648 $as_unset ENV MAIL MAILPATH
30649 PS1='$ '
30650 PS2='> '
30651 PS4='+ '
30653 # NLS nuisances.
30654 for as_var in \
30655 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30656 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30657 LC_TELEPHONE LC_TIME
30659 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30660 eval $as_var=C; export $as_var
30661 else
30662 $as_unset $as_var
30664 done
30666 # Required to use basename.
30667 if expr a : '\(a\)' >/dev/null 2>&1; then
30668 as_expr=expr
30669 else
30670 as_expr=false
30673 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30674 as_basename=basename
30675 else
30676 as_basename=false
30680 # Name of the executable.
30681 as_me=`$as_basename "$0" ||
30682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30683 X"$0" : 'X\(//\)$' \| \
30684 X"$0" : 'X\(/\)$' \| \
30685 . : '\(.\)' 2>/dev/null ||
30686 echo X/"$0" |
30687 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30688 /^X\/\(\/\/\)$/{ s//\1/; q; }
30689 /^X\/\(\/\).*/{ s//\1/; q; }
30690 s/.*/./; q'`
30693 # PATH needs CR, and LINENO needs CR and PATH.
30694 # Avoid depending upon Character Ranges.
30695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30698 as_cr_digits='0123456789'
30699 as_cr_alnum=$as_cr_Letters$as_cr_digits
30701 # The user is always right.
30702 if test "${PATH_SEPARATOR+set}" != set; then
30703 echo "#! /bin/sh" >conf$$.sh
30704 echo "exit 0" >>conf$$.sh
30705 chmod +x conf$$.sh
30706 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30707 PATH_SEPARATOR=';'
30708 else
30709 PATH_SEPARATOR=:
30711 rm -f conf$$.sh
30715 as_lineno_1=$LINENO
30716 as_lineno_2=$LINENO
30717 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30718 test "x$as_lineno_1" != "x$as_lineno_2" &&
30719 test "x$as_lineno_3" = "x$as_lineno_2" || {
30720 # Find who we are. Look in the path if we contain no path at all
30721 # relative or not.
30722 case $0 in
30723 *[\\/]* ) as_myself=$0 ;;
30724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30725 for as_dir in $PATH
30727 IFS=$as_save_IFS
30728 test -z "$as_dir" && as_dir=.
30729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30730 done
30733 esac
30734 # We did not find ourselves, most probably we were run as `sh COMMAND'
30735 # in which case we are not to be found in the path.
30736 if test "x$as_myself" = x; then
30737 as_myself=$0
30739 if test ! -f "$as_myself"; then
30740 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30741 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30742 { (exit 1); exit 1; }; }
30744 case $CONFIG_SHELL in
30746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30747 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30749 IFS=$as_save_IFS
30750 test -z "$as_dir" && as_dir=.
30751 for as_base in sh bash ksh sh5; do
30752 case $as_dir in
30754 if ("$as_dir/$as_base" -c '
30755 as_lineno_1=$LINENO
30756 as_lineno_2=$LINENO
30757 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30758 test "x$as_lineno_1" != "x$as_lineno_2" &&
30759 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30760 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30761 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30762 CONFIG_SHELL=$as_dir/$as_base
30763 export CONFIG_SHELL
30764 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30765 fi;;
30766 esac
30767 done
30768 done
30770 esac
30772 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30773 # uniformly replaced by the line number. The first 'sed' inserts a
30774 # line-number line before each line; the second 'sed' does the real
30775 # work. The second script uses 'N' to pair each line-number line
30776 # with the numbered line, and appends trailing '-' during
30777 # substitution so that $LINENO is not a special case at line end.
30778 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30779 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30780 sed '=' <$as_myself |
30781 sed '
30783 s,$,-,
30784 : loop
30785 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30786 t loop
30787 s,-$,,
30788 s,^['$as_cr_digits']*\n,,
30789 ' >$as_me.lineno &&
30790 chmod +x $as_me.lineno ||
30791 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30792 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30793 { (exit 1); exit 1; }; }
30795 # Don't try to exec as it changes $[0], causing all sort of problems
30796 # (the dirname of $[0] is not the place where we might find the
30797 # original and so on. Autoconf is especially sensible to this).
30798 . ./$as_me.lineno
30799 # Exit status is that of the last command.
30800 exit
30804 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30805 *c*,-n*) ECHO_N= ECHO_C='
30806 ' ECHO_T=' ' ;;
30807 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30808 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30809 esac
30811 if expr a : '\(a\)' >/dev/null 2>&1; then
30812 as_expr=expr
30813 else
30814 as_expr=false
30817 rm -f conf$$ conf$$.exe conf$$.file
30818 echo >conf$$.file
30819 if ln -s conf$$.file conf$$ 2>/dev/null; then
30820 # We could just check for DJGPP; but this test a) works b) is more generic
30821 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30822 if test -f conf$$.exe; then
30823 # Don't use ln at all; we don't have any links
30824 as_ln_s='cp -p'
30825 else
30826 as_ln_s='ln -s'
30828 elif ln conf$$.file conf$$ 2>/dev/null; then
30829 as_ln_s=ln
30830 else
30831 as_ln_s='cp -p'
30833 rm -f conf$$ conf$$.exe conf$$.file
30835 if mkdir -p . 2>/dev/null; then
30836 as_mkdir_p=:
30837 else
30838 test -d ./-p && rmdir ./-p
30839 as_mkdir_p=false
30842 as_executable_p="test -f"
30844 # Sed expression to map a string onto a valid CPP name.
30845 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30847 # Sed expression to map a string onto a valid variable name.
30848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30851 # IFS
30852 # We need space, tab and new line, in precisely that order.
30853 as_nl='
30855 IFS=" $as_nl"
30857 # CDPATH.
30858 $as_unset CDPATH
30860 exec 6>&1
30862 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30863 # report actual input values of CONFIG_FILES etc. instead of their
30864 # values after options handling. Logging --version etc. is OK.
30865 exec 5>>config.log
30867 echo
30868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30869 ## Running $as_me. ##
30870 _ASBOX
30871 } >&5
30872 cat >&5 <<_CSEOF
30874 This file was extended by GNU Classpath $as_me 0.98, which was
30875 generated by GNU Autoconf 2.59. Invocation command line was
30877 CONFIG_FILES = $CONFIG_FILES
30878 CONFIG_HEADERS = $CONFIG_HEADERS
30879 CONFIG_LINKS = $CONFIG_LINKS
30880 CONFIG_COMMANDS = $CONFIG_COMMANDS
30881 $ $0 $@
30883 _CSEOF
30884 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30885 echo >&5
30886 _ACEOF
30888 # Files that config.status was made for.
30889 if test -n "$ac_config_files"; then
30890 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30893 if test -n "$ac_config_headers"; then
30894 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30897 if test -n "$ac_config_links"; then
30898 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30901 if test -n "$ac_config_commands"; then
30902 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30905 cat >>$CONFIG_STATUS <<\_ACEOF
30907 ac_cs_usage="\
30908 \`$as_me' instantiates files from templates according to the
30909 current configuration.
30911 Usage: $0 [OPTIONS] [FILE]...
30913 -h, --help print this help, then exit
30914 -V, --version print version number, then exit
30915 -q, --quiet do not print progress messages
30916 -d, --debug don't remove temporary files
30917 --recheck update $as_me by reconfiguring in the same conditions
30918 --file=FILE[:TEMPLATE]
30919 instantiate the configuration file FILE
30920 --header=FILE[:TEMPLATE]
30921 instantiate the configuration header FILE
30923 Configuration files:
30924 $config_files
30926 Configuration headers:
30927 $config_headers
30929 Configuration links:
30930 $config_links
30932 Configuration commands:
30933 $config_commands
30935 Report bugs to <bug-autoconf@gnu.org>."
30936 _ACEOF
30938 cat >>$CONFIG_STATUS <<_ACEOF
30939 ac_cs_version="\\
30940 GNU Classpath config.status 0.98
30941 configured by $0, generated by GNU Autoconf 2.59,
30942 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30944 Copyright (C) 2003 Free Software Foundation, Inc.
30945 This config.status script is free software; the Free Software Foundation
30946 gives unlimited permission to copy, distribute and modify it."
30947 srcdir=$srcdir
30948 INSTALL="$INSTALL"
30949 _ACEOF
30951 cat >>$CONFIG_STATUS <<\_ACEOF
30952 # If no file are specified by the user, then we need to provide default
30953 # value. By we need to know if files were specified by the user.
30954 ac_need_defaults=:
30955 while test $# != 0
30957 case $1 in
30958 --*=*)
30959 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30960 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30961 ac_shift=:
30964 ac_option=$1
30965 ac_optarg=$2
30966 ac_shift=shift
30968 *) # This is not an option, so the user has probably given explicit
30969 # arguments.
30970 ac_option=$1
30971 ac_need_defaults=false;;
30972 esac
30974 case $ac_option in
30975 # Handling of the options.
30976 _ACEOF
30977 cat >>$CONFIG_STATUS <<\_ACEOF
30978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30979 ac_cs_recheck=: ;;
30980 --version | --vers* | -V )
30981 echo "$ac_cs_version"; exit 0 ;;
30982 --he | --h)
30983 # Conflict between --help and --header
30984 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30985 Try \`$0 --help' for more information." >&5
30986 echo "$as_me: error: ambiguous option: $1
30987 Try \`$0 --help' for more information." >&2;}
30988 { (exit 1); exit 1; }; };;
30989 --help | --hel | -h )
30990 echo "$ac_cs_usage"; exit 0 ;;
30991 --debug | --d* | -d )
30992 debug=: ;;
30993 --file | --fil | --fi | --f )
30994 $ac_shift
30995 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30996 ac_need_defaults=false;;
30997 --header | --heade | --head | --hea )
30998 $ac_shift
30999 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31000 ac_need_defaults=false;;
31001 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31002 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31003 ac_cs_silent=: ;;
31005 # This is an error.
31006 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31007 Try \`$0 --help' for more information." >&5
31008 echo "$as_me: error: unrecognized option: $1
31009 Try \`$0 --help' for more information." >&2;}
31010 { (exit 1); exit 1; }; } ;;
31012 *) ac_config_targets="$ac_config_targets $1" ;;
31014 esac
31015 shift
31016 done
31018 ac_configure_extra_args=
31020 if $ac_cs_silent; then
31021 exec 6>/dev/null
31022 ac_configure_extra_args="$ac_configure_extra_args --silent"
31025 _ACEOF
31026 cat >>$CONFIG_STATUS <<_ACEOF
31027 if \$ac_cs_recheck; then
31028 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31029 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31032 _ACEOF
31034 cat >>$CONFIG_STATUS <<_ACEOF
31036 # INIT-COMMANDS section.
31040 srcdir="$srcdir"
31041 host="$host"
31042 target="$target"
31043 with_multisubdir="$with_multisubdir"
31044 with_multisrctop="$with_multisrctop"
31045 with_target_subdir="$with_target_subdir"
31046 ac_configure_args="${multilib_arg} ${ac_configure_args}"
31047 multi_basedir="$multi_basedir"
31048 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
31049 CC="$CC"
31050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31053 # The HP-UX ksh and POSIX shell print the target directory to stdout
31054 # if CDPATH is set.
31055 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31057 sed_quote_subst='$sed_quote_subst'
31058 double_quote_subst='$double_quote_subst'
31059 delay_variable_subst='$delay_variable_subst'
31060 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31061 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31062 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31063 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31064 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31065 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31066 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31067 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31068 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31069 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31070 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31071 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31072 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31073 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31074 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31075 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31076 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31077 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31078 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31079 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31080 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31081 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31082 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31083 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31084 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31085 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31086 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31087 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31088 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31089 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31090 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31091 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31092 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31093 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31094 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31095 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31096 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31097 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31098 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31099 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31100 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31101 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31102 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31103 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31104 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
31105 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31106 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31107 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31108 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31109 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31110 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31111 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31112 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31113 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31114 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31115 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31116 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31117 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31118 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31119 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31120 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31121 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31122 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31123 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31124 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31125 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31126 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31127 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31128 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31129 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31130 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31131 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31132 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31133 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31134 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31135 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31136 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31137 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31138 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31139 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31140 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31141 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31142 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31143 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31144 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31145 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31146 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31147 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31148 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31149 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31150 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31151 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31152 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31153 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31154 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31155 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
31156 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31157 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
31158 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
31159 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31160 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31161 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
31162 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31163 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
31164 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31165 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31166 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31167 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31168 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
31169 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
31170 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31171 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31172 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
31173 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
31174 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
31175 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
31176 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
31177 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
31178 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
31179 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31180 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31181 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31182 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31183 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31184 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31185 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31186 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31187 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31188 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31189 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31190 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31191 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31192 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31193 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31194 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31195 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31196 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31197 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31198 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31199 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31200 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31201 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31202 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31203 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31204 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31205 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31206 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31207 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31208 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31209 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31210 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31211 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31212 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31213 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31214 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31215 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31216 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31217 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31218 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31219 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31220 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31221 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31222 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31223 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31224 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31225 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31226 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31227 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31228 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31229 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31230 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31232 LTCC='$LTCC'
31233 LTCFLAGS='$LTCFLAGS'
31234 compiler='$compiler_DEFAULT'
31236 # Quote evaled strings.
31237 for var in SED \
31238 GREP \
31239 EGREP \
31240 FGREP \
31241 LD \
31242 NM \
31243 LN_S \
31244 lt_SP2NL \
31245 lt_NL2SP \
31246 reload_flag \
31247 OBJDUMP \
31248 deplibs_check_method \
31249 file_magic_cmd \
31250 AR \
31251 AR_FLAGS \
31252 STRIP \
31253 RANLIB \
31254 CC \
31255 CFLAGS \
31256 compiler \
31257 lt_cv_sys_global_symbol_pipe \
31258 lt_cv_sys_global_symbol_to_cdecl \
31259 lt_cv_sys_global_symbol_to_c_name_address \
31260 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31261 SHELL \
31262 ECHO \
31263 lt_prog_compiler_no_builtin_flag \
31264 lt_prog_compiler_wl \
31265 lt_prog_compiler_pic \
31266 lt_prog_compiler_static \
31267 lt_cv_prog_compiler_c_o \
31268 need_locks \
31269 DSYMUTIL \
31270 NMEDIT \
31271 LIPO \
31272 OTOOL \
31273 OTOOL64 \
31274 shrext_cmds \
31275 export_dynamic_flag_spec \
31276 whole_archive_flag_spec \
31277 compiler_needs_object \
31278 with_gnu_ld \
31279 allow_undefined_flag \
31280 no_undefined_flag \
31281 hardcode_libdir_flag_spec \
31282 hardcode_libdir_flag_spec_ld \
31283 hardcode_libdir_separator \
31284 fix_srcfile_path \
31285 exclude_expsyms \
31286 include_expsyms \
31287 file_list_spec \
31288 variables_saved_for_relink \
31289 libname_spec \
31290 library_names_spec \
31291 soname_spec \
31292 finish_eval \
31293 old_striplib \
31294 striplib \
31295 compiler_lib_search_dirs \
31296 predep_objects \
31297 postdep_objects \
31298 predeps \
31299 postdeps \
31300 compiler_lib_search_path \
31301 LD_CXX \
31302 compiler_CXX \
31303 lt_prog_compiler_no_builtin_flag_CXX \
31304 lt_prog_compiler_wl_CXX \
31305 lt_prog_compiler_pic_CXX \
31306 lt_prog_compiler_static_CXX \
31307 lt_cv_prog_compiler_c_o_CXX \
31308 export_dynamic_flag_spec_CXX \
31309 whole_archive_flag_spec_CXX \
31310 compiler_needs_object_CXX \
31311 with_gnu_ld_CXX \
31312 allow_undefined_flag_CXX \
31313 no_undefined_flag_CXX \
31314 hardcode_libdir_flag_spec_CXX \
31315 hardcode_libdir_flag_spec_ld_CXX \
31316 hardcode_libdir_separator_CXX \
31317 fix_srcfile_path_CXX \
31318 exclude_expsyms_CXX \
31319 include_expsyms_CXX \
31320 file_list_spec_CXX \
31321 compiler_lib_search_dirs_CXX \
31322 predep_objects_CXX \
31323 postdep_objects_CXX \
31324 predeps_CXX \
31325 postdeps_CXX \
31326 compiler_lib_search_path_CXX; do
31327 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31328 *[\\\\\\\`\\"\\\$]*)
31329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31334 esac
31335 done
31337 # Double-quote double-evaled strings.
31338 for var in reload_cmds \
31339 old_postinstall_cmds \
31340 old_postuninstall_cmds \
31341 old_archive_cmds \
31342 extract_expsyms_cmds \
31343 old_archive_from_new_cmds \
31344 old_archive_from_expsyms_cmds \
31345 archive_cmds \
31346 archive_expsym_cmds \
31347 module_cmds \
31348 module_expsym_cmds \
31349 export_symbols_cmds \
31350 prelink_cmds \
31351 postinstall_cmds \
31352 postuninstall_cmds \
31353 finish_cmds \
31354 sys_lib_search_path_spec \
31355 sys_lib_dlsearch_path_spec \
31356 old_archive_cmds_CXX \
31357 old_archive_from_new_cmds_CXX \
31358 old_archive_from_expsyms_cmds_CXX \
31359 archive_cmds_CXX \
31360 archive_expsym_cmds_CXX \
31361 module_cmds_CXX \
31362 module_expsym_cmds_CXX \
31363 export_symbols_cmds_CXX \
31364 prelink_cmds_CXX; do
31365 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31366 *[\\\\\\\`\\"\\\$]*)
31367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31372 esac
31373 done
31375 # Fix-up fallback echo if it was mangled by the above quoting rules.
31376 case \$lt_ECHO in
31377 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31379 esac
31381 ac_aux_dir='$ac_aux_dir'
31382 xsi_shell='$xsi_shell'
31383 lt_shell_append='$lt_shell_append'
31385 # See if we are running on zsh, and set the options which allow our
31386 # commands through without removal of \ escapes INIT.
31387 if test -n "\${ZSH_VERSION+set}" ; then
31388 setopt NO_GLOB_SUBST
31392 PACKAGE='$PACKAGE'
31393 VERSION='$VERSION'
31394 TIMESTAMP='$TIMESTAMP'
31395 RM='$RM'
31396 ofile='$ofile'
31402 # variables for create stdint.h replacement
31403 PACKAGE="$PACKAGE"
31404 VERSION="$VERSION"
31405 ac_stdint_h="$ac_stdint_h"
31406 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
31407 ac_cv_stdint_message="$ac_cv_stdint_message"
31408 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
31409 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
31410 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
31411 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
31412 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
31413 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
31414 ac_cv_char_data_model="$ac_cv_char_data_model"
31415 ac_cv_long_data_model="$ac_cv_long_data_model"
31416 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
31417 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
31418 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
31421 _ACEOF
31425 cat >>$CONFIG_STATUS <<\_ACEOF
31426 for ac_config_target in $ac_config_targets
31428 case "$ac_config_target" in
31429 # Handling of arguments.
31430 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
31431 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31432 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31433 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
31434 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
31435 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
31436 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
31437 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
31438 "external/jsr166/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
31439 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
31440 "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
31441 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31442 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
31443 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
31444 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
31445 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
31446 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
31447 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
31448 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
31449 "native/jni/java-math/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
31450 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
31451 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
31452 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
31453 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
31454 "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
31455 "native/jni/gstreamer-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
31456 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
31457 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
31458 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
31459 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
31460 "native/jni/native-lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
31461 "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
31462 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
31463 "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
31464 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
31465 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
31466 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31467 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
31468 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
31469 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
31470 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
31471 "scripts/check_jni_methods.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
31472 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31473 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
31474 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
31475 "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
31476 "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
31477 "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
31478 "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
31479 "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
31480 "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
31481 "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
31482 "tools/grmiregistry" ) CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
31483 "tools/gtnameserv" ) CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
31484 "tools/gorbd" ) CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
31485 "tools/grmid" ) CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
31486 "tools/grmic" ) CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
31487 "tools/gjavah" ) CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
31488 "tools/gjdoc" ) CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
31489 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
31490 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31491 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31492 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31493 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
31494 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
31495 "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
31496 "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
31497 "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
31498 "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
31499 "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
31500 "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
31501 "grmiregistry" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
31502 "gtnameserv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
31503 "gorbd" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
31504 "grmid" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
31505 "grmic" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
31506 "gjavah" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
31507 "gjdoc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
31508 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
31509 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
31510 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
31511 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31512 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31513 { (exit 1); exit 1; }; };;
31514 esac
31515 done
31517 # If the user did not use the arguments to specify the items to instantiate,
31518 # then the envvar interface is used. Set only those that are not.
31519 # We use the long form for the default assignment because of an extremely
31520 # bizarre bug on SunOS 4.1.3.
31521 if $ac_need_defaults; then
31522 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31523 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31524 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31525 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31528 # Have a temporary directory for convenience. Make it in the build tree
31529 # simply because there is no reason to put it here, and in addition,
31530 # creating and moving files from /tmp can sometimes cause problems.
31531 # Create a temporary directory, and hook for its removal unless debugging.
31532 $debug ||
31534 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31535 trap '{ (exit 1); exit 1; }' 1 2 13 15
31538 # Create a (secure) tmp directory for tmp files.
31541 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31542 test -n "$tmp" && test -d "$tmp"
31543 } ||
31545 tmp=./confstat$$-$RANDOM
31546 (umask 077 && mkdir $tmp)
31547 } ||
31549 echo "$me: cannot create a temporary directory in ." >&2
31550 { (exit 1); exit 1; }
31553 _ACEOF
31555 cat >>$CONFIG_STATUS <<_ACEOF
31558 # CONFIG_FILES section.
31561 # No need to generate the scripts if there are no CONFIG_FILES.
31562 # This happens for instance when ./config.status config.h
31563 if test -n "\$CONFIG_FILES"; then
31564 # Protect against being on the right side of a sed subst in config.status.
31565 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31566 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31567 s,@SHELL@,$SHELL,;t t
31568 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31569 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31570 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31571 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31572 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31573 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31574 s,@exec_prefix@,$exec_prefix,;t t
31575 s,@prefix@,$prefix,;t t
31576 s,@program_transform_name@,$program_transform_name,;t t
31577 s,@bindir@,$bindir,;t t
31578 s,@sbindir@,$sbindir,;t t
31579 s,@libexecdir@,$libexecdir,;t t
31580 s,@datadir@,$datadir,;t t
31581 s,@sysconfdir@,$sysconfdir,;t t
31582 s,@sharedstatedir@,$sharedstatedir,;t t
31583 s,@localstatedir@,$localstatedir,;t t
31584 s,@libdir@,$libdir,;t t
31585 s,@includedir@,$includedir,;t t
31586 s,@oldincludedir@,$oldincludedir,;t t
31587 s,@infodir@,$infodir,;t t
31588 s,@mandir@,$mandir,;t t
31589 s,@build_alias@,$build_alias,;t t
31590 s,@host_alias@,$host_alias,;t t
31591 s,@target_alias@,$target_alias,;t t
31592 s,@DEFS@,$DEFS,;t t
31593 s,@ECHO_C@,$ECHO_C,;t t
31594 s,@ECHO_N@,$ECHO_N,;t t
31595 s,@ECHO_T@,$ECHO_T,;t t
31596 s,@LIBS@,$LIBS,;t t
31597 s,@build@,$build,;t t
31598 s,@build_cpu@,$build_cpu,;t t
31599 s,@build_vendor@,$build_vendor,;t t
31600 s,@build_os@,$build_os,;t t
31601 s,@host@,$host,;t t
31602 s,@host_cpu@,$host_cpu,;t t
31603 s,@host_vendor@,$host_vendor,;t t
31604 s,@host_os@,$host_os,;t t
31605 s,@target@,$target,;t t
31606 s,@target_cpu@,$target_cpu,;t t
31607 s,@target_vendor@,$target_vendor,;t t
31608 s,@target_os@,$target_os,;t t
31609 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
31610 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
31611 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
31612 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
31613 s,@multi_basedir@,$multi_basedir,;t t
31614 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
31615 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
31616 s,@LIBVERSION@,$LIBVERSION,;t t
31617 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
31618 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
31619 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31620 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31621 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31622 s,@CYGPATH_W@,$CYGPATH_W,;t t
31623 s,@PACKAGE@,$PACKAGE,;t t
31624 s,@VERSION@,$VERSION,;t t
31625 s,@ACLOCAL@,$ACLOCAL,;t t
31626 s,@AUTOCONF@,$AUTOCONF,;t t
31627 s,@AUTOMAKE@,$AUTOMAKE,;t t
31628 s,@AUTOHEADER@,$AUTOHEADER,;t t
31629 s,@MAKEINFO@,$MAKEINFO,;t t
31630 s,@install_sh@,$install_sh,;t t
31631 s,@STRIP@,$STRIP,;t t
31632 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31633 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31634 s,@mkdir_p@,$mkdir_p,;t t
31635 s,@AWK@,$AWK,;t t
31636 s,@SET_MAKE@,$SET_MAKE,;t t
31637 s,@am__leading_dot@,$am__leading_dot,;t t
31638 s,@AMTAR@,$AMTAR,;t t
31639 s,@am__tar@,$am__tar,;t t
31640 s,@am__untar@,$am__untar,;t t
31641 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
31642 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
31643 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
31644 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
31645 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
31646 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
31647 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
31648 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
31649 s,@CREATE_GSTREAMER_PEER_LIBRARIES_TRUE@,$CREATE_GSTREAMER_PEER_LIBRARIES_TRUE,;t t
31650 s,@CREATE_GSTREAMER_PEER_LIBRARIES_FALSE@,$CREATE_GSTREAMER_PEER_LIBRARIES_FALSE,;t t
31651 s,@default_toolkit@,$default_toolkit,;t t
31652 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
31653 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
31654 s,@CC@,$CC,;t t
31655 s,@CFLAGS@,$CFLAGS,;t t
31656 s,@LDFLAGS@,$LDFLAGS,;t t
31657 s,@CPPFLAGS@,$CPPFLAGS,;t t
31658 s,@ac_ct_CC@,$ac_ct_CC,;t t
31659 s,@EXEEXT@,$EXEEXT,;t t
31660 s,@OBJEXT@,$OBJEXT,;t t
31661 s,@DEPDIR@,$DEPDIR,;t t
31662 s,@am__include@,$am__include,;t t
31663 s,@am__quote@,$am__quote,;t t
31664 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31665 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31666 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31667 s,@CCDEPMODE@,$CCDEPMODE,;t t
31668 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31669 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31670 s,@CPP@,$CPP,;t t
31671 s,@EGREP@,$EGREP,;t t
31672 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
31673 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
31674 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
31675 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
31676 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
31677 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
31678 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
31679 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
31680 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
31681 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
31682 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
31683 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
31684 s,@toolexeclibdir@,$toolexeclibdir,;t t
31685 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
31686 s,@glibjdir@,$glibjdir,;t t
31687 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
31688 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
31689 s,@CREATE_GJDOC_PARSER_TRUE@,$CREATE_GJDOC_PARSER_TRUE,;t t
31690 s,@CREATE_GJDOC_PARSER_FALSE@,$CREATE_GJDOC_PARSER_FALSE,;t t
31691 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
31692 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
31693 s,@LN_S@,$LN_S,;t t
31694 s,@LIBTOOL@,$LIBTOOL,;t t
31695 s,@SED@,$SED,;t t
31696 s,@FGREP@,$FGREP,;t t
31697 s,@GREP@,$GREP,;t t
31698 s,@LD@,$LD,;t t
31699 s,@DUMPBIN@,$DUMPBIN,;t t
31700 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
31701 s,@NM@,$NM,;t t
31702 s,@OBJDUMP@,$OBJDUMP,;t t
31703 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
31704 s,@AR@,$AR,;t t
31705 s,@ac_ct_AR@,$ac_ct_AR,;t t
31706 s,@RANLIB@,$RANLIB,;t t
31707 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31708 s,@lt_ECHO@,$lt_ECHO,;t t
31709 s,@DSYMUTIL@,$DSYMUTIL,;t t
31710 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
31711 s,@NMEDIT@,$NMEDIT,;t t
31712 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
31713 s,@LIPO@,$LIPO,;t t
31714 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
31715 s,@OTOOL@,$OTOOL,;t t
31716 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
31717 s,@OTOOL64@,$OTOOL64,;t t
31718 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
31719 s,@CXX@,$CXX,;t t
31720 s,@CXXFLAGS@,$CXXFLAGS,;t t
31721 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31722 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31723 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31724 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31725 s,@CXXCPP@,$CXXCPP,;t t
31726 s,@PERL@,$PERL,;t t
31727 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
31728 s,@LIBMAGIC@,$LIBMAGIC,;t t
31729 s,@LIBICONV@,$LIBICONV,;t t
31730 s,@LTLIBICONV@,$LTLIBICONV,;t t
31731 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
31732 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
31733 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
31734 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
31735 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
31736 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
31737 s,@XML_LIBS@,$XML_LIBS,;t t
31738 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
31739 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
31740 s,@X_CFLAGS@,$X_CFLAGS,;t t
31741 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31742 s,@X_LIBS@,$X_LIBS,;t t
31743 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31744 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
31745 s,@GTK_LIBS@,$GTK_LIBS,;t t
31746 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
31747 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
31748 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
31749 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
31750 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
31751 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
31752 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
31753 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
31754 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
31755 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
31756 s,@GDK_LIBS@,$GDK_LIBS,;t t
31757 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
31758 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
31759 s,@GSTREAMER_BASE_CFLAGS@,$GSTREAMER_BASE_CFLAGS,;t t
31760 s,@GSTREAMER_BASE_LIBS@,$GSTREAMER_BASE_LIBS,;t t
31761 s,@GSTREAMER_PLUGINS_BASE_CFLAGS@,$GSTREAMER_PLUGINS_BASE_CFLAGS,;t t
31762 s,@GSTREAMER_PLUGINS_BASE_LIBS@,$GSTREAMER_PLUGINS_BASE_LIBS,;t t
31763 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
31764 s,@GSTREAMER_FILE_READER@,$GSTREAMER_FILE_READER,;t t
31765 s,@GSTREAMER_MIXER_PROVIDER@,$GSTREAMER_MIXER_PROVIDER,;t t
31766 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
31767 s,@QT_LIBS@,$QT_LIBS,;t t
31768 s,@MOC@,$MOC,;t t
31769 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
31770 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
31771 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
31772 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
31773 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
31774 s,@GMP_CFLAGS@,$GMP_CFLAGS,;t t
31775 s,@GMP_LIBS@,$GMP_LIBS,;t t
31776 s,@USER_JAVAH@,$USER_JAVAH,;t t
31777 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
31778 s,@vm_classes@,$vm_classes,;t t
31779 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
31780 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
31781 s,@MAINT@,$MAINT,;t t
31782 s,@LIBDEBUG@,$LIBDEBUG,;t t
31783 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
31784 s,@ECJ_JAR@,$ECJ_JAR,;t t
31785 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
31786 s,@REMOVE@,$REMOVE,;t t
31787 s,@MKDIR@,$MKDIR,;t t
31788 s,@CP@,$CP,;t t
31789 s,@DATE@,$DATE,;t t
31790 s,@FIND@,$FIND,;t t
31791 s,@ZIP@,$ZIP,;t t
31792 s,@JAR@,$JAR,;t t
31793 s,@WITH_JAR_TRUE@,$WITH_JAR_TRUE,;t t
31794 s,@WITH_JAR_FALSE@,$WITH_JAR_FALSE,;t t
31795 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
31796 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
31797 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
31798 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
31799 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
31800 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
31801 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
31802 s,@TOOLSDIR@,$TOOLSDIR,;t t
31803 s,@GJDOC@,$GJDOC,;t t
31804 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
31805 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
31806 s,@JAY@,$JAY,;t t
31807 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
31808 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
31809 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
31810 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
31811 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
31812 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
31813 s,@JAVA@,$JAVA,;t t
31814 s,@uudecode@,$uudecode,;t t
31815 s,@JAVAC@,$JAVAC,;t t
31816 s,@JAVAC_IS_GCJ@,$JAVAC_IS_GCJ,;t t
31817 s,@GCJ_JAVAC_TRUE@,$GCJ_JAVAC_TRUE,;t t
31818 s,@GCJ_JAVAC_FALSE@,$GCJ_JAVAC_FALSE,;t t
31819 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
31820 s,@ANTLR@,$ANTLR,;t t
31821 s,@ac_ct_ANTLR@,$ac_ct_ANTLR,;t t
31822 s,@JAVAC_MEM_OPT@,$JAVAC_MEM_OPT,;t t
31823 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
31824 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
31825 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
31826 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
31827 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
31828 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
31829 s,@WANT_NATIVE_BIG_INTEGER@,$WANT_NATIVE_BIG_INTEGER,;t t
31830 s,@CREATE_GMPBI_LIBRARY_TRUE@,$CREATE_GMPBI_LIBRARY_TRUE,;t t
31831 s,@CREATE_GMPBI_LIBRARY_FALSE@,$CREATE_GMPBI_LIBRARY_FALSE,;t t
31832 s,@LIBOBJS@,$LIBOBJS,;t t
31833 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31834 CEOF
31836 _ACEOF
31838 cat >>$CONFIG_STATUS <<\_ACEOF
31839 # Split the substitutions into bite-sized pieces for seds with
31840 # small command number limits, like on Digital OSF/1 and HP-UX.
31841 ac_max_sed_lines=48
31842 ac_sed_frag=1 # Number of current file.
31843 ac_beg=1 # First line for current file.
31844 ac_end=$ac_max_sed_lines # Line after last line for current file.
31845 ac_more_lines=:
31846 ac_sed_cmds=
31847 while $ac_more_lines; do
31848 if test $ac_beg -gt 1; then
31849 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31850 else
31851 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31853 if test ! -s $tmp/subs.frag; then
31854 ac_more_lines=false
31855 else
31856 # The purpose of the label and of the branching condition is to
31857 # speed up the sed processing (if there are no `@' at all, there
31858 # is no need to browse any of the substitutions).
31859 # These are the two extra sed commands mentioned above.
31860 (echo ':t
31861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31862 if test -z "$ac_sed_cmds"; then
31863 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31864 else
31865 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31867 ac_sed_frag=`expr $ac_sed_frag + 1`
31868 ac_beg=$ac_end
31869 ac_end=`expr $ac_end + $ac_max_sed_lines`
31871 done
31872 if test -z "$ac_sed_cmds"; then
31873 ac_sed_cmds=cat
31875 fi # test -n "$CONFIG_FILES"
31877 _ACEOF
31878 cat >>$CONFIG_STATUS <<\_ACEOF
31879 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31881 case $ac_file in
31882 - | *:- | *:-:* ) # input from stdin
31883 cat >$tmp/stdin
31884 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31885 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31886 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31888 * ) ac_file_in=$ac_file.in ;;
31889 esac
31891 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31892 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31894 X"$ac_file" : 'X\(//\)[^/]' \| \
31895 X"$ac_file" : 'X\(//\)$' \| \
31896 X"$ac_file" : 'X\(/\)' \| \
31897 . : '\(.\)' 2>/dev/null ||
31898 echo X"$ac_file" |
31899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31901 /^X\(\/\/\)$/{ s//\1/; q; }
31902 /^X\(\/\).*/{ s//\1/; q; }
31903 s/.*/./; q'`
31904 { if $as_mkdir_p; then
31905 mkdir -p "$ac_dir"
31906 else
31907 as_dir="$ac_dir"
31908 as_dirs=
31909 while test ! -d "$as_dir"; do
31910 as_dirs="$as_dir $as_dirs"
31911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31913 X"$as_dir" : 'X\(//\)[^/]' \| \
31914 X"$as_dir" : 'X\(//\)$' \| \
31915 X"$as_dir" : 'X\(/\)' \| \
31916 . : '\(.\)' 2>/dev/null ||
31917 echo X"$as_dir" |
31918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31920 /^X\(\/\/\)$/{ s//\1/; q; }
31921 /^X\(\/\).*/{ s//\1/; q; }
31922 s/.*/./; q'`
31923 done
31924 test ! -n "$as_dirs" || mkdir $as_dirs
31925 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31926 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31927 { (exit 1); exit 1; }; }; }
31929 ac_builddir=.
31931 if test "$ac_dir" != .; then
31932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31933 # A "../" for each directory in $ac_dir_suffix.
31934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31935 else
31936 ac_dir_suffix= ac_top_builddir=
31939 case $srcdir in
31940 .) # No --srcdir option. We are building in place.
31941 ac_srcdir=.
31942 if test -z "$ac_top_builddir"; then
31943 ac_top_srcdir=.
31944 else
31945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31946 fi ;;
31947 [\\/]* | ?:[\\/]* ) # Absolute path.
31948 ac_srcdir=$srcdir$ac_dir_suffix;
31949 ac_top_srcdir=$srcdir ;;
31950 *) # Relative path.
31951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31953 esac
31955 # Do not use `cd foo && pwd` to compute absolute paths, because
31956 # the directories may not exist.
31957 case `pwd` in
31958 .) ac_abs_builddir="$ac_dir";;
31960 case "$ac_dir" in
31961 .) ac_abs_builddir=`pwd`;;
31962 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31963 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31964 esac;;
31965 esac
31966 case $ac_abs_builddir in
31967 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31969 case ${ac_top_builddir}. in
31970 .) ac_abs_top_builddir=$ac_abs_builddir;;
31971 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31972 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31973 esac;;
31974 esac
31975 case $ac_abs_builddir in
31976 .) ac_abs_srcdir=$ac_srcdir;;
31978 case $ac_srcdir in
31979 .) ac_abs_srcdir=$ac_abs_builddir;;
31980 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31981 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31982 esac;;
31983 esac
31984 case $ac_abs_builddir in
31985 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31987 case $ac_top_srcdir in
31988 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31989 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31990 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31991 esac;;
31992 esac
31995 case $INSTALL in
31996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31997 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31998 esac
32000 if test x"$ac_file" != x-; then
32001 { echo "$as_me:$LINENO: creating $ac_file" >&5
32002 echo "$as_me: creating $ac_file" >&6;}
32003 rm -f "$ac_file"
32005 # Let's still pretend it is `configure' which instantiates (i.e., don't
32006 # use $as_me), people would be surprised to read:
32007 # /* config.h. Generated by config.status. */
32008 if test x"$ac_file" = x-; then
32009 configure_input=
32010 else
32011 configure_input="$ac_file. "
32013 configure_input=$configure_input"Generated from `echo $ac_file_in |
32014 sed 's,.*/,,'` by configure."
32016 # First look for the input files in the build tree, otherwise in the
32017 # src tree.
32018 ac_file_inputs=`IFS=:
32019 for f in $ac_file_in; do
32020 case $f in
32021 -) echo $tmp/stdin ;;
32022 [\\/$]*)
32023 # Absolute (can't be DOS-style, as IFS=:)
32024 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32025 echo "$as_me: error: cannot find input file: $f" >&2;}
32026 { (exit 1); exit 1; }; }
32027 echo "$f";;
32028 *) # Relative
32029 if test -f "$f"; then
32030 # Build tree
32031 echo "$f"
32032 elif test -f "$srcdir/$f"; then
32033 # Source tree
32034 echo "$srcdir/$f"
32035 else
32036 # /dev/null tree
32037 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32038 echo "$as_me: error: cannot find input file: $f" >&2;}
32039 { (exit 1); exit 1; }; }
32040 fi;;
32041 esac
32042 done` || { (exit 1); exit 1; }
32043 _ACEOF
32044 cat >>$CONFIG_STATUS <<_ACEOF
32045 sed "$ac_vpsub
32046 $extrasub
32047 _ACEOF
32048 cat >>$CONFIG_STATUS <<\_ACEOF
32050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32051 s,@configure_input@,$configure_input,;t t
32052 s,@srcdir@,$ac_srcdir,;t t
32053 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32054 s,@top_srcdir@,$ac_top_srcdir,;t t
32055 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32056 s,@builddir@,$ac_builddir,;t t
32057 s,@abs_builddir@,$ac_abs_builddir,;t t
32058 s,@top_builddir@,$ac_top_builddir,;t t
32059 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32060 s,@INSTALL@,$ac_INSTALL,;t t
32061 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32062 rm -f $tmp/stdin
32063 if test x"$ac_file" != x-; then
32064 mv $tmp/out $ac_file
32065 else
32066 cat $tmp/out
32067 rm -f $tmp/out
32070 done
32071 _ACEOF
32072 cat >>$CONFIG_STATUS <<\_ACEOF
32075 # CONFIG_HEADER section.
32078 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32079 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32081 # ac_d sets the value in "#define NAME VALUE" lines.
32082 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32083 ac_dB='[ ].*$,\1#\2'
32084 ac_dC=' '
32085 ac_dD=',;t'
32086 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32087 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32088 ac_uB='$,\1#\2define\3'
32089 ac_uC=' '
32090 ac_uD=',;t'
32092 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32094 case $ac_file in
32095 - | *:- | *:-:* ) # input from stdin
32096 cat >$tmp/stdin
32097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32101 * ) ac_file_in=$ac_file.in ;;
32102 esac
32104 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32105 echo "$as_me: creating $ac_file" >&6;}
32107 # First look for the input files in the build tree, otherwise in the
32108 # src tree.
32109 ac_file_inputs=`IFS=:
32110 for f in $ac_file_in; do
32111 case $f in
32112 -) echo $tmp/stdin ;;
32113 [\\/$]*)
32114 # Absolute (can't be DOS-style, as IFS=:)
32115 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32116 echo "$as_me: error: cannot find input file: $f" >&2;}
32117 { (exit 1); exit 1; }; }
32118 # Do quote $f, to prevent DOS paths from being IFS'd.
32119 echo "$f";;
32120 *) # Relative
32121 if test -f "$f"; then
32122 # Build tree
32123 echo "$f"
32124 elif test -f "$srcdir/$f"; then
32125 # Source tree
32126 echo "$srcdir/$f"
32127 else
32128 # /dev/null tree
32129 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32130 echo "$as_me: error: cannot find input file: $f" >&2;}
32131 { (exit 1); exit 1; }; }
32132 fi;;
32133 esac
32134 done` || { (exit 1); exit 1; }
32135 # Remove the trailing spaces.
32136 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
32138 _ACEOF
32140 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32141 # `conftest.undefs', that substitutes the proper values into
32142 # config.h.in to produce config.h. The first handles `#define'
32143 # templates, and the second `#undef' templates.
32144 # And first: Protect against being on the right side of a sed subst in
32145 # config.status. Protect against being in an unquoted here document
32146 # in config.status.
32147 rm -f conftest.defines conftest.undefs
32148 # Using a here document instead of a string reduces the quoting nightmare.
32149 # Putting comments in sed scripts is not portable.
32151 # `end' is used to avoid that the second main sed command (meant for
32152 # 0-ary CPP macros) applies to n-ary macro definitions.
32153 # See the Autoconf documentation for `clear'.
32154 cat >confdef2sed.sed <<\_ACEOF
32155 s/[\\&,]/\\&/g
32156 s,[\\$`],\\&,g
32157 t clear
32158 : clear
32159 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32160 t end
32161 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32162 : end
32163 _ACEOF
32164 # If some macros were called several times there might be several times
32165 # the same #defines, which is useless. Nevertheless, we may not want to
32166 # sort them, since we want the *last* AC-DEFINE to be honored.
32167 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32168 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32169 rm -f confdef2sed.sed
32171 # This sed command replaces #undef with comments. This is necessary, for
32172 # example, in the case of _POSIX_SOURCE, which is predefined and required
32173 # on some systems where configure will not decide to define it.
32174 cat >>conftest.undefs <<\_ACEOF
32175 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32176 _ACEOF
32178 # Break up conftest.defines because some shells have a limit on the size
32179 # of here documents, and old seds have small limits too (100 cmds).
32180 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32181 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32182 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32183 echo ' :' >>$CONFIG_STATUS
32184 rm -f conftest.tail
32185 while grep . conftest.defines >/dev/null
32187 # Write a limited-size here document to $tmp/defines.sed.
32188 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32189 # Speed up: don't consider the non `#define' lines.
32190 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
32191 # Work around the forget-to-reset-the-flag bug.
32192 echo 't clr' >>$CONFIG_STATUS
32193 echo ': clr' >>$CONFIG_STATUS
32194 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32195 echo 'CEOF
32196 sed -f $tmp/defines.sed $tmp/in >$tmp/out
32197 rm -f $tmp/in
32198 mv $tmp/out $tmp/in
32199 ' >>$CONFIG_STATUS
32200 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32201 rm -f conftest.defines
32202 mv conftest.tail conftest.defines
32203 done
32204 rm -f conftest.defines
32205 echo ' fi # grep' >>$CONFIG_STATUS
32206 echo >>$CONFIG_STATUS
32208 # Break up conftest.undefs because some shells have a limit on the size
32209 # of here documents, and old seds have small limits too (100 cmds).
32210 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
32211 rm -f conftest.tail
32212 while grep . conftest.undefs >/dev/null
32214 # Write a limited-size here document to $tmp/undefs.sed.
32215 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32216 # Speed up: don't consider the non `#undef'
32217 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
32218 # Work around the forget-to-reset-the-flag bug.
32219 echo 't clr' >>$CONFIG_STATUS
32220 echo ': clr' >>$CONFIG_STATUS
32221 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32222 echo 'CEOF
32223 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32224 rm -f $tmp/in
32225 mv $tmp/out $tmp/in
32226 ' >>$CONFIG_STATUS
32227 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32228 rm -f conftest.undefs
32229 mv conftest.tail conftest.undefs
32230 done
32231 rm -f conftest.undefs
32233 cat >>$CONFIG_STATUS <<\_ACEOF
32234 # Let's still pretend it is `configure' which instantiates (i.e., don't
32235 # use $as_me), people would be surprised to read:
32236 # /* config.h. Generated by config.status. */
32237 if test x"$ac_file" = x-; then
32238 echo "/* Generated by configure. */" >$tmp/config.h
32239 else
32240 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32242 cat $tmp/in >>$tmp/config.h
32243 rm -f $tmp/in
32244 if test x"$ac_file" != x-; then
32245 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32246 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32247 echo "$as_me: $ac_file is unchanged" >&6;}
32248 else
32249 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32251 X"$ac_file" : 'X\(//\)[^/]' \| \
32252 X"$ac_file" : 'X\(//\)$' \| \
32253 X"$ac_file" : 'X\(/\)' \| \
32254 . : '\(.\)' 2>/dev/null ||
32255 echo X"$ac_file" |
32256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32258 /^X\(\/\/\)$/{ s//\1/; q; }
32259 /^X\(\/\).*/{ s//\1/; q; }
32260 s/.*/./; q'`
32261 { if $as_mkdir_p; then
32262 mkdir -p "$ac_dir"
32263 else
32264 as_dir="$ac_dir"
32265 as_dirs=
32266 while test ! -d "$as_dir"; do
32267 as_dirs="$as_dir $as_dirs"
32268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32270 X"$as_dir" : 'X\(//\)[^/]' \| \
32271 X"$as_dir" : 'X\(//\)$' \| \
32272 X"$as_dir" : 'X\(/\)' \| \
32273 . : '\(.\)' 2>/dev/null ||
32274 echo X"$as_dir" |
32275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32277 /^X\(\/\/\)$/{ s//\1/; q; }
32278 /^X\(\/\).*/{ s//\1/; q; }
32279 s/.*/./; q'`
32280 done
32281 test ! -n "$as_dirs" || mkdir $as_dirs
32282 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32283 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32284 { (exit 1); exit 1; }; }; }
32286 rm -f $ac_file
32287 mv $tmp/config.h $ac_file
32289 else
32290 cat $tmp/config.h
32291 rm -f $tmp/config.h
32293 # Compute $ac_file's index in $config_headers.
32294 _am_stamp_count=1
32295 for _am_header in $config_headers :; do
32296 case $_am_header in
32297 $ac_file | $ac_file:* )
32298 break ;;
32300 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32301 esac
32302 done
32303 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32304 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32305 X$ac_file : 'X\(//\)[^/]' \| \
32306 X$ac_file : 'X\(//\)$' \| \
32307 X$ac_file : 'X\(/\)' \| \
32308 . : '\(.\)' 2>/dev/null ||
32309 echo X$ac_file |
32310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32312 /^X\(\/\/\)$/{ s//\1/; q; }
32313 /^X\(\/\).*/{ s//\1/; q; }
32314 s/.*/./; q'`/stamp-h$_am_stamp_count
32315 done
32316 _ACEOF
32317 cat >>$CONFIG_STATUS <<\_ACEOF
32320 # CONFIG_LINKS section.
32323 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
32324 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32325 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32327 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
32328 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
32330 if test ! -r $srcdir/$ac_source; then
32331 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
32332 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
32333 { (exit 1); exit 1; }; }
32335 rm -f $ac_dest
32337 # Make relative symlinks.
32338 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
32339 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32340 X"$ac_dest" : 'X\(//\)[^/]' \| \
32341 X"$ac_dest" : 'X\(//\)$' \| \
32342 X"$ac_dest" : 'X\(/\)' \| \
32343 . : '\(.\)' 2>/dev/null ||
32344 echo X"$ac_dest" |
32345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32347 /^X\(\/\/\)$/{ s//\1/; q; }
32348 /^X\(\/\).*/{ s//\1/; q; }
32349 s/.*/./; q'`
32350 { if $as_mkdir_p; then
32351 mkdir -p "$ac_dest_dir"
32352 else
32353 as_dir="$ac_dest_dir"
32354 as_dirs=
32355 while test ! -d "$as_dir"; do
32356 as_dirs="$as_dir $as_dirs"
32357 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32359 X"$as_dir" : 'X\(//\)[^/]' \| \
32360 X"$as_dir" : 'X\(//\)$' \| \
32361 X"$as_dir" : 'X\(/\)' \| \
32362 . : '\(.\)' 2>/dev/null ||
32363 echo X"$as_dir" |
32364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32366 /^X\(\/\/\)$/{ s//\1/; q; }
32367 /^X\(\/\).*/{ s//\1/; q; }
32368 s/.*/./; q'`
32369 done
32370 test ! -n "$as_dirs" || mkdir $as_dirs
32371 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
32372 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
32373 { (exit 1); exit 1; }; }; }
32375 ac_builddir=.
32377 if test "$ac_dest_dir" != .; then
32378 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
32379 # A "../" for each directory in $ac_dir_suffix.
32380 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32381 else
32382 ac_dir_suffix= ac_top_builddir=
32385 case $srcdir in
32386 .) # No --srcdir option. We are building in place.
32387 ac_srcdir=.
32388 if test -z "$ac_top_builddir"; then
32389 ac_top_srcdir=.
32390 else
32391 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32392 fi ;;
32393 [\\/]* | ?:[\\/]* ) # Absolute path.
32394 ac_srcdir=$srcdir$ac_dir_suffix;
32395 ac_top_srcdir=$srcdir ;;
32396 *) # Relative path.
32397 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32398 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32399 esac
32401 # Do not use `cd foo && pwd` to compute absolute paths, because
32402 # the directories may not exist.
32403 case `pwd` in
32404 .) ac_abs_builddir="$ac_dest_dir";;
32406 case "$ac_dest_dir" in
32407 .) ac_abs_builddir=`pwd`;;
32408 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
32409 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
32410 esac;;
32411 esac
32412 case $ac_abs_builddir in
32413 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32415 case ${ac_top_builddir}. in
32416 .) ac_abs_top_builddir=$ac_abs_builddir;;
32417 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32418 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32419 esac;;
32420 esac
32421 case $ac_abs_builddir in
32422 .) ac_abs_srcdir=$ac_srcdir;;
32424 case $ac_srcdir in
32425 .) ac_abs_srcdir=$ac_abs_builddir;;
32426 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32427 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32428 esac;;
32429 esac
32430 case $ac_abs_builddir in
32431 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32433 case $ac_top_srcdir in
32434 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32435 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32436 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32437 esac;;
32438 esac
32441 case $srcdir in
32442 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
32443 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
32444 esac
32446 # Try a symlink, then a hard link, then a copy.
32447 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
32448 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
32449 cp -p $srcdir/$ac_source $ac_dest ||
32450 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
32451 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
32452 { (exit 1); exit 1; }; }
32453 done
32454 _ACEOF
32455 cat >>$CONFIG_STATUS <<\_ACEOF
32458 # CONFIG_COMMANDS section.
32460 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32461 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32462 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32463 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32465 X"$ac_dest" : 'X\(//\)[^/]' \| \
32466 X"$ac_dest" : 'X\(//\)$' \| \
32467 X"$ac_dest" : 'X\(/\)' \| \
32468 . : '\(.\)' 2>/dev/null ||
32469 echo X"$ac_dest" |
32470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32472 /^X\(\/\/\)$/{ s//\1/; q; }
32473 /^X\(\/\).*/{ s//\1/; q; }
32474 s/.*/./; q'`
32475 { if $as_mkdir_p; then
32476 mkdir -p "$ac_dir"
32477 else
32478 as_dir="$ac_dir"
32479 as_dirs=
32480 while test ! -d "$as_dir"; do
32481 as_dirs="$as_dir $as_dirs"
32482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32484 X"$as_dir" : 'X\(//\)[^/]' \| \
32485 X"$as_dir" : 'X\(//\)$' \| \
32486 X"$as_dir" : 'X\(/\)' \| \
32487 . : '\(.\)' 2>/dev/null ||
32488 echo X"$as_dir" |
32489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32491 /^X\(\/\/\)$/{ s//\1/; q; }
32492 /^X\(\/\).*/{ s//\1/; q; }
32493 s/.*/./; q'`
32494 done
32495 test ! -n "$as_dirs" || mkdir $as_dirs
32496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32497 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32498 { (exit 1); exit 1; }; }; }
32500 ac_builddir=.
32502 if test "$ac_dir" != .; then
32503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32504 # A "../" for each directory in $ac_dir_suffix.
32505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32506 else
32507 ac_dir_suffix= ac_top_builddir=
32510 case $srcdir in
32511 .) # No --srcdir option. We are building in place.
32512 ac_srcdir=.
32513 if test -z "$ac_top_builddir"; then
32514 ac_top_srcdir=.
32515 else
32516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32517 fi ;;
32518 [\\/]* | ?:[\\/]* ) # Absolute path.
32519 ac_srcdir=$srcdir$ac_dir_suffix;
32520 ac_top_srcdir=$srcdir ;;
32521 *) # Relative path.
32522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32524 esac
32526 # Do not use `cd foo && pwd` to compute absolute paths, because
32527 # the directories may not exist.
32528 case `pwd` in
32529 .) ac_abs_builddir="$ac_dir";;
32531 case "$ac_dir" in
32532 .) ac_abs_builddir=`pwd`;;
32533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32534 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32535 esac;;
32536 esac
32537 case $ac_abs_builddir in
32538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32540 case ${ac_top_builddir}. in
32541 .) ac_abs_top_builddir=$ac_abs_builddir;;
32542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32544 esac;;
32545 esac
32546 case $ac_abs_builddir in
32547 .) ac_abs_srcdir=$ac_srcdir;;
32549 case $ac_srcdir in
32550 .) ac_abs_srcdir=$ac_abs_builddir;;
32551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32553 esac;;
32554 esac
32555 case $ac_abs_builddir in
32556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32558 case $ac_top_srcdir in
32559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32562 esac;;
32563 esac
32566 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32567 echo "$as_me: executing $ac_dest commands" >&6;}
32568 case $ac_dest in
32569 default-1 )
32570 # Only add multilib support code if we just rebuilt the top-level
32571 # Makefile.
32572 case " $CONFIG_FILES " in
32573 *" Makefile "*)
32574 ac_file=Makefile . ${multi_basedir}/config-ml.in
32576 esac ;;
32577 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32578 # Strip MF so we end up with the name of the file.
32579 mf=`echo "$mf" | sed -e 's/:.*$//'`
32580 # Check whether this is an Automake generated Makefile or not.
32581 # We used to match only the files named `Makefile.in', but
32582 # some people rename them; so instead we look at the file content.
32583 # Grep'ing the first line is not enough: some people post-process
32584 # each Makefile.in and add a new line on top of each file to say so.
32585 # So let's grep whole file.
32586 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32587 dirpart=`(dirname "$mf") 2>/dev/null ||
32588 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32589 X"$mf" : 'X\(//\)[^/]' \| \
32590 X"$mf" : 'X\(//\)$' \| \
32591 X"$mf" : 'X\(/\)' \| \
32592 . : '\(.\)' 2>/dev/null ||
32593 echo X"$mf" |
32594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32596 /^X\(\/\/\)$/{ s//\1/; q; }
32597 /^X\(\/\).*/{ s//\1/; q; }
32598 s/.*/./; q'`
32599 else
32600 continue
32602 # Extract the definition of DEPDIR, am__include, and am__quote
32603 # from the Makefile without running `make'.
32604 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32605 test -z "$DEPDIR" && continue
32606 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32607 test -z "am__include" && continue
32608 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32609 # When using ansi2knr, U may be empty or an underscore; expand it
32610 U=`sed -n 's/^U = //p' < "$mf"`
32611 # Find all dependency output files, they are included files with
32612 # $(DEPDIR) in their names. We invoke sed twice because it is the
32613 # simplest approach to changing $(DEPDIR) to its actual value in the
32614 # expansion.
32615 for file in `sed -n "
32616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32618 # Make sure the directory exists.
32619 test -f "$dirpart/$file" && continue
32620 fdir=`(dirname "$file") 2>/dev/null ||
32621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32622 X"$file" : 'X\(//\)[^/]' \| \
32623 X"$file" : 'X\(//\)$' \| \
32624 X"$file" : 'X\(/\)' \| \
32625 . : '\(.\)' 2>/dev/null ||
32626 echo X"$file" |
32627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32629 /^X\(\/\/\)$/{ s//\1/; q; }
32630 /^X\(\/\).*/{ s//\1/; q; }
32631 s/.*/./; q'`
32632 { if $as_mkdir_p; then
32633 mkdir -p $dirpart/$fdir
32634 else
32635 as_dir=$dirpart/$fdir
32636 as_dirs=
32637 while test ! -d "$as_dir"; do
32638 as_dirs="$as_dir $as_dirs"
32639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32641 X"$as_dir" : 'X\(//\)[^/]' \| \
32642 X"$as_dir" : 'X\(//\)$' \| \
32643 X"$as_dir" : 'X\(/\)' \| \
32644 . : '\(.\)' 2>/dev/null ||
32645 echo X"$as_dir" |
32646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32648 /^X\(\/\/\)$/{ s//\1/; q; }
32649 /^X\(\/\).*/{ s//\1/; q; }
32650 s/.*/./; q'`
32651 done
32652 test ! -n "$as_dirs" || mkdir $as_dirs
32653 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32654 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32655 { (exit 1); exit 1; }; }; }
32657 # echo "creating $dirpart/$file"
32658 echo '# dummy' > "$dirpart/$file"
32659 done
32660 done
32662 libtool )
32664 # See if we are running on zsh, and set the options which allow our
32665 # commands through without removal of \ escapes.
32666 if test -n "${ZSH_VERSION+set}" ; then
32667 setopt NO_GLOB_SUBST
32670 cfgfile="${ofile}T"
32671 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32672 $RM "$cfgfile"
32674 cat <<_LT_EOF >> "$cfgfile"
32675 #! $SHELL
32677 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32678 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32680 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32682 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32683 # 2006, 2007, 2008 Free Software Foundation, Inc.
32684 # Written by Gordon Matzigkeit, 1996
32686 # This file is part of GNU Libtool.
32688 # GNU Libtool is free software; you can redistribute it and/or
32689 # modify it under the terms of the GNU General Public License as
32690 # published by the Free Software Foundation; either version 2 of
32691 # the License, or (at your option) any later version.
32693 # As a special exception to the GNU General Public License,
32694 # if you distribute this file as part of a program or library that
32695 # is built using GNU Libtool, you may include this file under the
32696 # same distribution terms that you use for the rest of that program.
32698 # GNU Libtool is distributed in the hope that it will be useful,
32699 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32700 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32701 # GNU General Public License for more details.
32703 # You should have received a copy of the GNU General Public License
32704 # along with GNU Libtool; see the file COPYING. If not, a copy
32705 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32706 # obtained by writing to the Free Software Foundation, Inc.,
32707 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32710 # The names of the tagged configurations supported by this script.
32711 available_tags="CXX "
32713 # ### BEGIN LIBTOOL CONFIG
32715 # Whether or not to build static libraries.
32716 build_old_libs=$enable_static
32718 # Which release of libtool.m4 was used?
32719 macro_version=$macro_version
32720 macro_revision=$macro_revision
32722 # Whether or not to build shared libraries.
32723 build_libtool_libs=$enable_shared
32725 # What type of objects to build.
32726 pic_mode=$pic_mode
32728 # Whether or not to optimize for fast installation.
32729 fast_install=$enable_fast_install
32731 # The host system.
32732 host_alias=$host_alias
32733 host=$host
32734 host_os=$host_os
32736 # The build system.
32737 build_alias=$build_alias
32738 build=$build
32739 build_os=$build_os
32741 # A sed program that does not truncate output.
32742 SED=$lt_SED
32744 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32745 Xsed="\$SED -e 1s/^X//"
32747 # A grep program that handles long lines.
32748 GREP=$lt_GREP
32750 # An ERE matcher.
32751 EGREP=$lt_EGREP
32753 # A literal string matcher.
32754 FGREP=$lt_FGREP
32756 # A BSD- or MS-compatible name lister.
32757 NM=$lt_NM
32759 # Whether we need soft or hard links.
32760 LN_S=$lt_LN_S
32762 # What is the maximum length of a command?
32763 max_cmd_len=$max_cmd_len
32765 # Object file suffix (normally "o").
32766 objext=$ac_objext
32768 # Executable file suffix (normally "").
32769 exeext=$exeext
32771 # whether the shell understands "unset".
32772 lt_unset=$lt_unset
32774 # turn spaces into newlines.
32775 SP2NL=$lt_lt_SP2NL
32777 # turn newlines into spaces.
32778 NL2SP=$lt_lt_NL2SP
32780 # How to create reloadable object files.
32781 reload_flag=$lt_reload_flag
32782 reload_cmds=$lt_reload_cmds
32784 # An object symbol dumper.
32785 OBJDUMP=$lt_OBJDUMP
32787 # Method to check whether dependent libraries are shared objects.
32788 deplibs_check_method=$lt_deplibs_check_method
32790 # Command to use when deplibs_check_method == "file_magic".
32791 file_magic_cmd=$lt_file_magic_cmd
32793 # The archiver.
32794 AR=$lt_AR
32795 AR_FLAGS=$lt_AR_FLAGS
32797 # A symbol stripping program.
32798 STRIP=$lt_STRIP
32800 # Commands used to install an old-style archive.
32801 RANLIB=$lt_RANLIB
32802 old_postinstall_cmds=$lt_old_postinstall_cmds
32803 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32805 # A C compiler.
32806 LTCC=$lt_CC
32808 # LTCC compiler flags.
32809 LTCFLAGS=$lt_CFLAGS
32811 # Take the output of nm and produce a listing of raw symbols and C names.
32812 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32814 # Transform the output of nm in a proper C declaration.
32815 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32817 # Transform the output of nm in a C name address pair.
32818 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32820 # Transform the output of nm in a C name address pair when lib prefix is needed.
32821 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32823 # The name of the directory that contains temporary libtool files.
32824 objdir=$objdir
32826 # Shell to use when invoking shell scripts.
32827 SHELL=$lt_SHELL
32829 # An echo program that does not interpret backslashes.
32830 ECHO=$lt_ECHO
32832 # Used to examine libraries when file_magic_cmd begins with "file".
32833 MAGIC_CMD=$MAGIC_CMD
32835 # Must we lock files when doing compilation?
32836 need_locks=$lt_need_locks
32838 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32839 DSYMUTIL=$lt_DSYMUTIL
32841 # Tool to change global to local symbols on Mac OS X.
32842 NMEDIT=$lt_NMEDIT
32844 # Tool to manipulate fat objects and archives on Mac OS X.
32845 LIPO=$lt_LIPO
32847 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32848 OTOOL=$lt_OTOOL
32850 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32851 OTOOL64=$lt_OTOOL64
32853 # Old archive suffix (normally "a").
32854 libext=$libext
32856 # Shared library suffix (normally ".so").
32857 shrext_cmds=$lt_shrext_cmds
32859 # The commands to extract the exported symbol list from a shared archive.
32860 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32862 # Variables whose values should be saved in libtool wrapper scripts and
32863 # restored at link time.
32864 variables_saved_for_relink=$lt_variables_saved_for_relink
32866 # Do we need the "lib" prefix for modules?
32867 need_lib_prefix=$need_lib_prefix
32869 # Do we need a version for libraries?
32870 need_version=$need_version
32872 # Library versioning type.
32873 version_type=$version_type
32875 # Shared library runtime path variable.
32876 runpath_var=$runpath_var
32878 # Shared library path variable.
32879 shlibpath_var=$shlibpath_var
32881 # Is shlibpath searched before the hard-coded library search path?
32882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32884 # Format of library name prefix.
32885 libname_spec=$lt_libname_spec
32887 # List of archive names. First name is the real one, the rest are links.
32888 # The last name is the one that the linker finds with -lNAME
32889 library_names_spec=$lt_library_names_spec
32891 # The coded name of the library, if different from the real name.
32892 soname_spec=$lt_soname_spec
32894 # Command to use after installation of a shared archive.
32895 postinstall_cmds=$lt_postinstall_cmds
32897 # Command to use after uninstallation of a shared archive.
32898 postuninstall_cmds=$lt_postuninstall_cmds
32900 # Commands used to finish a libtool library installation in a directory.
32901 finish_cmds=$lt_finish_cmds
32903 # As "finish_cmds", except a single script fragment to be evaled but
32904 # not shown.
32905 finish_eval=$lt_finish_eval
32907 # Whether we should hardcode library paths into libraries.
32908 hardcode_into_libs=$hardcode_into_libs
32910 # Compile-time system search path for libraries.
32911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32913 # Run-time system search path for libraries.
32914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32916 # Whether dlopen is supported.
32917 dlopen_support=$enable_dlopen
32919 # Whether dlopen of programs is supported.
32920 dlopen_self=$enable_dlopen_self
32922 # Whether dlopen of statically linked programs is supported.
32923 dlopen_self_static=$enable_dlopen_self_static
32925 # Commands to strip libraries.
32926 old_striplib=$lt_old_striplib
32927 striplib=$lt_striplib
32930 # The linker used to build libraries.
32931 LD=$lt_LD
32933 # Commands used to build an old-style archive.
32934 old_archive_cmds=$lt_old_archive_cmds
32936 # A language specific compiler.
32937 CC=$lt_compiler
32939 # Is the compiler the GNU compiler?
32940 with_gcc=$GCC
32942 # Compiler flag to turn off builtin functions.
32943 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32945 # How to pass a linker flag through the compiler.
32946 wl=$lt_lt_prog_compiler_wl
32948 # Additional compiler flags for building library objects.
32949 pic_flag=$lt_lt_prog_compiler_pic
32951 # Compiler flag to prevent dynamic linking.
32952 link_static_flag=$lt_lt_prog_compiler_static
32954 # Does compiler simultaneously support -c and -o options?
32955 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32957 # Whether or not to add -lc for building shared libraries.
32958 build_libtool_need_lc=$archive_cmds_need_lc
32960 # Whether or not to disallow shared libs when runtime libs are static.
32961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32963 # Compiler flag to allow reflexive dlopens.
32964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32966 # Compiler flag to generate shared objects directly from archives.
32967 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32969 # Whether the compiler copes with passing no objects directly.
32970 compiler_needs_object=$lt_compiler_needs_object
32972 # Create an old-style archive from a shared archive.
32973 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32975 # Create a temporary old-style archive to link instead of a shared archive.
32976 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32978 # Commands used to build a shared archive.
32979 archive_cmds=$lt_archive_cmds
32980 archive_expsym_cmds=$lt_archive_expsym_cmds
32982 # Commands used to build a loadable module if different from building
32983 # a shared archive.
32984 module_cmds=$lt_module_cmds
32985 module_expsym_cmds=$lt_module_expsym_cmds
32987 # Whether we are building with GNU ld or not.
32988 with_gnu_ld=$lt_with_gnu_ld
32990 # Flag that allows shared libraries with undefined symbols to be built.
32991 allow_undefined_flag=$lt_allow_undefined_flag
32993 # Flag that enforces no undefined symbols.
32994 no_undefined_flag=$lt_no_undefined_flag
32996 # Flag to hardcode \$libdir into a binary during linking.
32997 # This must work even if \$libdir does not exist
32998 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33000 # If ld is used when linking, flag to hardcode \$libdir into a binary
33001 # during linking. This must work even if \$libdir does not exist.
33002 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33004 # Whether we need a single "-rpath" flag with a separated argument.
33005 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33007 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33008 # DIR into the resulting binary.
33009 hardcode_direct=$hardcode_direct
33011 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33012 # DIR into the resulting binary and the resulting library dependency is
33013 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33014 # library is relocated.
33015 hardcode_direct_absolute=$hardcode_direct_absolute
33017 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33018 # into the resulting binary.
33019 hardcode_minus_L=$hardcode_minus_L
33021 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33022 # into the resulting binary.
33023 hardcode_shlibpath_var=$hardcode_shlibpath_var
33025 # Set to "yes" if building a shared library automatically hardcodes DIR
33026 # into the library and all subsequent libraries and executables linked
33027 # against it.
33028 hardcode_automatic=$hardcode_automatic
33030 # Set to yes if linker adds runtime paths of dependent libraries
33031 # to runtime path list.
33032 inherit_rpath=$inherit_rpath
33034 # Whether libtool must link a program against all its dependency libraries.
33035 link_all_deplibs=$link_all_deplibs
33037 # Fix the shell variable \$srcfile for the compiler.
33038 fix_srcfile_path=$lt_fix_srcfile_path
33040 # Set to "yes" if exported symbols are required.
33041 always_export_symbols=$always_export_symbols
33043 # The commands to list exported symbols.
33044 export_symbols_cmds=$lt_export_symbols_cmds
33046 # Symbols that should not be listed in the preloaded symbols.
33047 exclude_expsyms=$lt_exclude_expsyms
33049 # Symbols that must always be exported.
33050 include_expsyms=$lt_include_expsyms
33052 # Commands necessary for linking programs (against libraries) with templates.
33053 prelink_cmds=$lt_prelink_cmds
33055 # Specify filename containing input files.
33056 file_list_spec=$lt_file_list_spec
33058 # How to hardcode a shared library path into an executable.
33059 hardcode_action=$hardcode_action
33061 # The directories searched by this compiler when creating a shared library.
33062 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33064 # Dependencies to place before and after the objects being linked to
33065 # create a shared library.
33066 predep_objects=$lt_predep_objects
33067 postdep_objects=$lt_postdep_objects
33068 predeps=$lt_predeps
33069 postdeps=$lt_postdeps
33071 # The library search path used internally by the compiler when linking
33072 # a shared library.
33073 compiler_lib_search_path=$lt_compiler_lib_search_path
33075 # ### END LIBTOOL CONFIG
33077 _LT_EOF
33079 case $host_os in
33080 aix3*)
33081 cat <<\_LT_EOF >> "$cfgfile"
33082 # AIX sometimes has problems with the GCC collect2 program. For some
33083 # reason, if we set the COLLECT_NAMES environment variable, the problems
33084 # vanish in a puff of smoke.
33085 if test "X${COLLECT_NAMES+set}" != Xset; then
33086 COLLECT_NAMES=
33087 export COLLECT_NAMES
33089 _LT_EOF
33091 esac
33094 ltmain="$ac_aux_dir/ltmain.sh"
33097 # We use sed instead of cat because bash on DJGPP gets confused if
33098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33099 # text mode, it properly converts lines to CR/LF. This bash problem
33100 # is reportedly fixed, but why not run on old versions too?
33101 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33102 || (rm -f "$cfgfile"; exit 1)
33104 case $xsi_shell in
33105 yes)
33106 cat << \_LT_EOF >> "$cfgfile"
33108 # func_dirname file append nondir_replacement
33109 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33110 # otherwise set result to NONDIR_REPLACEMENT.
33111 func_dirname ()
33113 case ${1} in
33114 */*) func_dirname_result="${1%/*}${2}" ;;
33115 * ) func_dirname_result="${3}" ;;
33116 esac
33119 # func_basename file
33120 func_basename ()
33122 func_basename_result="${1##*/}"
33125 # func_dirname_and_basename file append nondir_replacement
33126 # perform func_basename and func_dirname in a single function
33127 # call:
33128 # dirname: Compute the dirname of FILE. If nonempty,
33129 # add APPEND to the result, otherwise set result
33130 # to NONDIR_REPLACEMENT.
33131 # value returned in "$func_dirname_result"
33132 # basename: Compute filename of FILE.
33133 # value retuned in "$func_basename_result"
33134 # Implementation must be kept synchronized with func_dirname
33135 # and func_basename. For efficiency, we do not delegate to
33136 # those functions but instead duplicate the functionality here.
33137 func_dirname_and_basename ()
33139 case ${1} in
33140 */*) func_dirname_result="${1%/*}${2}" ;;
33141 * ) func_dirname_result="${3}" ;;
33142 esac
33143 func_basename_result="${1##*/}"
33146 # func_stripname prefix suffix name
33147 # strip PREFIX and SUFFIX off of NAME.
33148 # PREFIX and SUFFIX must not contain globbing or regex special
33149 # characters, hashes, percent signs, but SUFFIX may contain a leading
33150 # dot (in which case that matches only a dot).
33151 func_stripname ()
33153 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33154 # positional parameters, so assign one to ordinary parameter first.
33155 func_stripname_result=${3}
33156 func_stripname_result=${func_stripname_result#"${1}"}
33157 func_stripname_result=${func_stripname_result%"${2}"}
33160 # func_opt_split
33161 func_opt_split ()
33163 func_opt_split_opt=${1%%=*}
33164 func_opt_split_arg=${1#*=}
33167 # func_lo2o object
33168 func_lo2o ()
33170 case ${1} in
33171 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33172 *) func_lo2o_result=${1} ;;
33173 esac
33176 # func_xform libobj-or-source
33177 func_xform ()
33179 func_xform_result=${1%.*}.lo
33182 # func_arith arithmetic-term...
33183 func_arith ()
33185 func_arith_result=$(( $* ))
33188 # func_len string
33189 # STRING may not start with a hyphen.
33190 func_len ()
33192 func_len_result=${#1}
33195 _LT_EOF
33197 *) # Bourne compatible functions.
33198 cat << \_LT_EOF >> "$cfgfile"
33200 # func_dirname file append nondir_replacement
33201 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33202 # otherwise set result to NONDIR_REPLACEMENT.
33203 func_dirname ()
33205 # Extract subdirectory from the argument.
33206 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33207 if test "X$func_dirname_result" = "X${1}"; then
33208 func_dirname_result="${3}"
33209 else
33210 func_dirname_result="$func_dirname_result${2}"
33214 # func_basename file
33215 func_basename ()
33217 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33221 # func_stripname prefix suffix name
33222 # strip PREFIX and SUFFIX off of NAME.
33223 # PREFIX and SUFFIX must not contain globbing or regex special
33224 # characters, hashes, percent signs, but SUFFIX may contain a leading
33225 # dot (in which case that matches only a dot).
33226 # func_strip_suffix prefix name
33227 func_stripname ()
33229 case ${2} in
33230 .*) func_stripname_result=`$ECHO "X${3}" \
33231 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33232 *) func_stripname_result=`$ECHO "X${3}" \
33233 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33234 esac
33237 # sed scripts:
33238 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33239 my_sed_long_arg='1s/^-[^=]*=//'
33241 # func_opt_split
33242 func_opt_split ()
33244 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33245 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33248 # func_lo2o object
33249 func_lo2o ()
33251 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33254 # func_xform libobj-or-source
33255 func_xform ()
33257 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33260 # func_arith arithmetic-term...
33261 func_arith ()
33263 func_arith_result=`expr "$@"`
33266 # func_len string
33267 # STRING may not start with a hyphen.
33268 func_len ()
33270 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33273 _LT_EOF
33274 esac
33276 case $lt_shell_append in
33277 yes)
33278 cat << \_LT_EOF >> "$cfgfile"
33280 # func_append var value
33281 # Append VALUE to the end of shell variable VAR.
33282 func_append ()
33284 eval "$1+=\$2"
33286 _LT_EOF
33289 cat << \_LT_EOF >> "$cfgfile"
33291 # func_append var value
33292 # Append VALUE to the end of shell variable VAR.
33293 func_append ()
33295 eval "$1=\$$1\$2"
33298 _LT_EOF
33300 esac
33303 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33304 || (rm -f "$cfgfile"; exit 1)
33306 mv -f "$cfgfile" "$ofile" ||
33307 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33308 chmod +x "$ofile"
33311 cat <<_LT_EOF >> "$ofile"
33313 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33315 # The linker used to build libraries.
33316 LD=$lt_LD_CXX
33318 # Commands used to build an old-style archive.
33319 old_archive_cmds=$lt_old_archive_cmds_CXX
33321 # A language specific compiler.
33322 CC=$lt_compiler_CXX
33324 # Is the compiler the GNU compiler?
33325 with_gcc=$GCC_CXX
33327 # Compiler flag to turn off builtin functions.
33328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33330 # How to pass a linker flag through the compiler.
33331 wl=$lt_lt_prog_compiler_wl_CXX
33333 # Additional compiler flags for building library objects.
33334 pic_flag=$lt_lt_prog_compiler_pic_CXX
33336 # Compiler flag to prevent dynamic linking.
33337 link_static_flag=$lt_lt_prog_compiler_static_CXX
33339 # Does compiler simultaneously support -c and -o options?
33340 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33342 # Whether or not to add -lc for building shared libraries.
33343 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33345 # Whether or not to disallow shared libs when runtime libs are static.
33346 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33348 # Compiler flag to allow reflexive dlopens.
33349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33351 # Compiler flag to generate shared objects directly from archives.
33352 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33354 # Whether the compiler copes with passing no objects directly.
33355 compiler_needs_object=$lt_compiler_needs_object_CXX
33357 # Create an old-style archive from a shared archive.
33358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33360 # Create a temporary old-style archive to link instead of a shared archive.
33361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33363 # Commands used to build a shared archive.
33364 archive_cmds=$lt_archive_cmds_CXX
33365 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33367 # Commands used to build a loadable module if different from building
33368 # a shared archive.
33369 module_cmds=$lt_module_cmds_CXX
33370 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33372 # Whether we are building with GNU ld or not.
33373 with_gnu_ld=$lt_with_gnu_ld_CXX
33375 # Flag that allows shared libraries with undefined symbols to be built.
33376 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33378 # Flag that enforces no undefined symbols.
33379 no_undefined_flag=$lt_no_undefined_flag_CXX
33381 # Flag to hardcode \$libdir into a binary during linking.
33382 # This must work even if \$libdir does not exist
33383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33385 # If ld is used when linking, flag to hardcode \$libdir into a binary
33386 # during linking. This must work even if \$libdir does not exist.
33387 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33389 # Whether we need a single "-rpath" flag with a separated argument.
33390 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33392 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33393 # DIR into the resulting binary.
33394 hardcode_direct=$hardcode_direct_CXX
33396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33397 # DIR into the resulting binary and the resulting library dependency is
33398 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33399 # library is relocated.
33400 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33402 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33403 # into the resulting binary.
33404 hardcode_minus_L=$hardcode_minus_L_CXX
33406 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33407 # into the resulting binary.
33408 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33410 # Set to "yes" if building a shared library automatically hardcodes DIR
33411 # into the library and all subsequent libraries and executables linked
33412 # against it.
33413 hardcode_automatic=$hardcode_automatic_CXX
33415 # Set to yes if linker adds runtime paths of dependent libraries
33416 # to runtime path list.
33417 inherit_rpath=$inherit_rpath_CXX
33419 # Whether libtool must link a program against all its dependency libraries.
33420 link_all_deplibs=$link_all_deplibs_CXX
33422 # Fix the shell variable \$srcfile for the compiler.
33423 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33425 # Set to "yes" if exported symbols are required.
33426 always_export_symbols=$always_export_symbols_CXX
33428 # The commands to list exported symbols.
33429 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33431 # Symbols that should not be listed in the preloaded symbols.
33432 exclude_expsyms=$lt_exclude_expsyms_CXX
33434 # Symbols that must always be exported.
33435 include_expsyms=$lt_include_expsyms_CXX
33437 # Commands necessary for linking programs (against libraries) with templates.
33438 prelink_cmds=$lt_prelink_cmds_CXX
33440 # Specify filename containing input files.
33441 file_list_spec=$lt_file_list_spec_CXX
33443 # How to hardcode a shared library path into an executable.
33444 hardcode_action=$hardcode_action_CXX
33446 # The directories searched by this compiler when creating a shared library.
33447 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33449 # Dependencies to place before and after the objects being linked to
33450 # create a shared library.
33451 predep_objects=$lt_predep_objects_CXX
33452 postdep_objects=$lt_postdep_objects_CXX
33453 predeps=$lt_predeps_CXX
33454 postdeps=$lt_postdeps_CXX
33456 # The library search path used internally by the compiler when linking
33457 # a shared library.
33458 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33460 # ### END LIBTOOL TAG CONFIG: CXX
33461 _LT_EOF
33464 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
33465 $ac_stdint_h )
33466 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
33467 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
33468 ac_stdint=$tmp/_stdint.h
33470 echo "#ifndef" $_ac_stdint_h >$ac_stdint
33471 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
33472 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
33473 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
33474 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
33475 if test "_$ac_cv_header_stdint_t" != "_" ; then
33476 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
33477 echo "#include <stdint.h>" >>$ac_stdint
33478 echo "#endif" >>$ac_stdint
33479 echo "#endif" >>$ac_stdint
33480 else
33482 cat >>$ac_stdint <<STDINT_EOF
33484 /* ................... shortcircuit part ........................... */
33486 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
33487 #include <stdint.h>
33488 #else
33489 #include <stddef.h>
33491 /* .................... configured part ............................ */
33493 STDINT_EOF
33495 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
33496 if test "_$ac_cv_header_stdint_x" != "_" ; then
33497 ac_header="$ac_cv_header_stdint_x"
33498 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
33499 else
33500 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
33503 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
33504 if test "_$ac_cv_header_stdint_o" != "_" ; then
33505 ac_header="$ac_cv_header_stdint_o"
33506 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
33507 else
33508 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
33511 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
33512 if test "_$ac_cv_header_stdint_u" != "_" ; then
33513 ac_header="$ac_cv_header_stdint_u"
33514 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
33515 else
33516 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
33519 echo "" >>$ac_stdint
33521 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
33522 echo "#include <$ac_header>" >>$ac_stdint
33523 echo "" >>$ac_stdint
33524 fi fi
33526 echo "/* which 64bit typedef has been found */" >>$ac_stdint
33527 if test "$ac_cv_type_uint64_t" = "yes" ; then
33528 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
33529 else
33530 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
33532 if test "$ac_cv_type_u_int64_t" = "yes" ; then
33533 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
33534 else
33535 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
33537 echo "" >>$ac_stdint
33539 echo "/* which type model has been detected */" >>$ac_stdint
33540 if test "_$ac_cv_char_data_model" != "_" ; then
33541 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
33542 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
33543 else
33544 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
33545 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
33547 echo "" >>$ac_stdint
33549 echo "/* whether int_least types were detected */" >>$ac_stdint
33550 if test "$ac_cv_type_int_least32_t" = "yes"; then
33551 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
33552 else
33553 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
33555 echo "/* whether int_fast types were detected */" >>$ac_stdint
33556 if test "$ac_cv_type_int_fast32_t" = "yes"; then
33557 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
33558 else
33559 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
33561 echo "/* whether intmax_t type was detected */" >>$ac_stdint
33562 if test "$ac_cv_type_intmax_t" = "yes"; then
33563 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
33564 else
33565 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
33567 echo "" >>$ac_stdint
33569 cat >>$ac_stdint <<STDINT_EOF
33570 /* .................... detections part ............................ */
33572 /* whether we need to define bitspecific types from compiler base types */
33573 #ifndef _STDINT_HEADER_INTPTR
33574 #ifndef _STDINT_HEADER_UINT32
33575 #ifndef _STDINT_HEADER_U_INT32
33576 #define _STDINT_NEED_INT_MODEL_T
33577 #else
33578 #define _STDINT_HAVE_U_INT_TYPES
33579 #endif
33580 #endif
33581 #endif
33583 #ifdef _STDINT_HAVE_U_INT_TYPES
33584 #undef _STDINT_NEED_INT_MODEL_T
33585 #endif
33587 #ifdef _STDINT_CHAR_MODEL
33588 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
33589 #ifndef _STDINT_BYTE_MODEL
33590 #define _STDINT_BYTE_MODEL 12
33591 #endif
33592 #endif
33593 #endif
33595 #ifndef _STDINT_HAVE_INT_LEAST32_T
33596 #define _STDINT_NEED_INT_LEAST_T
33597 #endif
33599 #ifndef _STDINT_HAVE_INT_FAST32_T
33600 #define _STDINT_NEED_INT_FAST_T
33601 #endif
33603 #ifndef _STDINT_HEADER_INTPTR
33604 #define _STDINT_NEED_INTPTR_T
33605 #ifndef _STDINT_HAVE_INTMAX_T
33606 #define _STDINT_NEED_INTMAX_T
33607 #endif
33608 #endif
33611 /* .................... definition part ............................ */
33613 /* some system headers have good uint64_t */
33614 #ifndef _HAVE_UINT64_T
33615 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
33616 #define _HAVE_UINT64_T
33617 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
33618 #define _HAVE_UINT64_T
33619 typedef u_int64_t uint64_t;
33620 #endif
33621 #endif
33623 #ifndef _HAVE_UINT64_T
33624 /* .. here are some common heuristics using compiler runtime specifics */
33625 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
33626 #define _HAVE_UINT64_T
33627 #define _HAVE_LONGLONG_UINT64_T
33628 typedef long long int64_t;
33629 typedef unsigned long long uint64_t;
33631 #elif !defined __STRICT_ANSI__
33632 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
33633 #define _HAVE_UINT64_T
33634 typedef __int64 int64_t;
33635 typedef unsigned __int64 uint64_t;
33637 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
33638 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
33639 #if !defined _NO_LONGLONG
33640 #define _HAVE_UINT64_T
33641 #define _HAVE_LONGLONG_UINT64_T
33642 typedef long long int64_t;
33643 typedef unsigned long long uint64_t;
33644 #endif
33646 #elif defined __alpha || (defined __mips && defined _ABIN32)
33647 #if !defined _NO_LONGLONG
33648 typedef long int64_t;
33649 typedef unsigned long uint64_t;
33650 #endif
33651 /* compiler/cpu type to define int64_t */
33652 #endif
33653 #endif
33654 #endif
33656 #if defined _STDINT_HAVE_U_INT_TYPES
33657 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
33658 typedef u_int8_t uint8_t;
33659 typedef u_int16_t uint16_t;
33660 typedef u_int32_t uint32_t;
33662 /* glibc compatibility */
33663 #ifndef __int8_t_defined
33664 #define __int8_t_defined
33665 #endif
33666 #endif
33668 #ifdef _STDINT_NEED_INT_MODEL_T
33669 /* we must guess all the basic types. Apart from byte-adressable system, */
33670 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
33671 /* (btw, those nibble-addressable systems are way off, or so we assume) */
33674 #if defined _STDINT_BYTE_MODEL
33675 #if _STDINT_LONG_MODEL+0 == 242
33676 /* 2:4:2 = IP16 = a normal 16-bit system */
33677 typedef unsigned char uint8_t;
33678 typedef unsigned short uint16_t;
33679 typedef unsigned long uint32_t;
33680 #ifndef __int8_t_defined
33681 #define __int8_t_defined
33682 typedef char int8_t;
33683 typedef short int16_t;
33684 typedef long int32_t;
33685 #endif
33686 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
33687 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
33688 /* 4:4:4 = ILP32 = a normal 32-bit system */
33689 typedef unsigned char uint8_t;
33690 typedef unsigned short uint16_t;
33691 typedef unsigned int uint32_t;
33692 #ifndef __int8_t_defined
33693 #define __int8_t_defined
33694 typedef char int8_t;
33695 typedef short int16_t;
33696 typedef int int32_t;
33697 #endif
33698 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
33699 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
33700 /* 4:8:8 = LP64 = a normal 64-bit system */
33701 typedef unsigned char uint8_t;
33702 typedef unsigned short uint16_t;
33703 typedef unsigned int uint32_t;
33704 #ifndef __int8_t_defined
33705 #define __int8_t_defined
33706 typedef char int8_t;
33707 typedef short int16_t;
33708 typedef int int32_t;
33709 #endif
33710 /* this system has a "long" of 64bit */
33711 #ifndef _HAVE_UINT64_T
33712 #define _HAVE_UINT64_T
33713 typedef unsigned long uint64_t;
33714 typedef long int64_t;
33715 #endif
33716 #elif _STDINT_LONG_MODEL+0 == 448
33717 /* LLP64 a 64-bit system derived from a 32-bit system */
33718 typedef unsigned char uint8_t;
33719 typedef unsigned short uint16_t;
33720 typedef unsigned int uint32_t;
33721 #ifndef __int8_t_defined
33722 #define __int8_t_defined
33723 typedef char int8_t;
33724 typedef short int16_t;
33725 typedef int int32_t;
33726 #endif
33727 /* assuming the system has a "long long" */
33728 #ifndef _HAVE_UINT64_T
33729 #define _HAVE_UINT64_T
33730 #define _HAVE_LONGLONG_UINT64_T
33731 typedef unsigned long long uint64_t;
33732 typedef long long int64_t;
33733 #endif
33734 #else
33735 #define _STDINT_NO_INT32_T
33736 #endif
33737 #else
33738 #define _STDINT_NO_INT8_T
33739 #define _STDINT_NO_INT32_T
33740 #endif
33741 #endif
33744 * quote from SunOS-5.8 sys/inttypes.h:
33745 * Use at your own risk. As of February 1996, the committee is squarely
33746 * behind the fixed sized types; the "least" and "fast" types are still being
33747 * discussed. The probability that the "fast" types may be removed before
33748 * the standard is finalized is high enough that they are not currently
33749 * implemented.
33752 #if defined _STDINT_NEED_INT_LEAST_T
33753 typedef int8_t int_least8_t;
33754 typedef int16_t int_least16_t;
33755 typedef int32_t int_least32_t;
33756 #ifdef _HAVE_UINT64_T
33757 typedef int64_t int_least64_t;
33758 #endif
33760 typedef uint8_t uint_least8_t;
33761 typedef uint16_t uint_least16_t;
33762 typedef uint32_t uint_least32_t;
33763 #ifdef _HAVE_UINT64_T
33764 typedef uint64_t uint_least64_t;
33765 #endif
33766 /* least types */
33767 #endif
33769 #if defined _STDINT_NEED_INT_FAST_T
33770 typedef int8_t int_fast8_t;
33771 typedef int int_fast16_t;
33772 typedef int32_t int_fast32_t;
33773 #ifdef _HAVE_UINT64_T
33774 typedef int64_t int_fast64_t;
33775 #endif
33777 typedef uint8_t uint_fast8_t;
33778 typedef unsigned uint_fast16_t;
33779 typedef uint32_t uint_fast32_t;
33780 #ifdef _HAVE_UINT64_T
33781 typedef uint64_t uint_fast64_t;
33782 #endif
33783 /* fast types */
33784 #endif
33786 #ifdef _STDINT_NEED_INTMAX_T
33787 #ifdef _HAVE_UINT64_T
33788 typedef int64_t intmax_t;
33789 typedef uint64_t uintmax_t;
33790 #else
33791 typedef long intmax_t;
33792 typedef unsigned long uintmax_t;
33793 #endif
33794 #endif
33796 #ifdef _STDINT_NEED_INTPTR_T
33797 #ifndef __intptr_t_defined
33798 #define __intptr_t_defined
33799 /* we encourage using "long" to store pointer values, never use "int" ! */
33800 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
33801 typedef unsigned int uintptr_t;
33802 typedef int intptr_t;
33803 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
33804 typedef unsigned long uintptr_t;
33805 typedef long intptr_t;
33806 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
33807 typedef uint64_t uintptr_t;
33808 typedef int64_t intptr_t;
33809 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
33810 typedef unsigned long uintptr_t;
33811 typedef long intptr_t;
33812 #endif
33813 #endif
33814 #endif
33816 /* The ISO C99 standard specifies that in C++ implementations these
33817 should only be defined if explicitly requested. */
33818 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
33819 #ifndef UINT32_C
33821 /* Signed. */
33822 # define INT8_C(c) c
33823 # define INT16_C(c) c
33824 # define INT32_C(c) c
33825 # ifdef _HAVE_LONGLONG_UINT64_T
33826 # define INT64_C(c) c ## L
33827 # else
33828 # define INT64_C(c) c ## LL
33829 # endif
33831 /* Unsigned. */
33832 # define UINT8_C(c) c ## U
33833 # define UINT16_C(c) c ## U
33834 # define UINT32_C(c) c ## U
33835 # ifdef _HAVE_LONGLONG_UINT64_T
33836 # define UINT64_C(c) c ## UL
33837 # else
33838 # define UINT64_C(c) c ## ULL
33839 # endif
33841 /* Maximal type. */
33842 # ifdef _HAVE_LONGLONG_UINT64_T
33843 # define INTMAX_C(c) c ## L
33844 # define UINTMAX_C(c) c ## UL
33845 # else
33846 # define INTMAX_C(c) c ## LL
33847 # define UINTMAX_C(c) c ## ULL
33848 # endif
33850 /* literalnumbers */
33851 #endif
33852 #endif
33854 /* These limits are merily those of a two complement byte-oriented system */
33856 /* Minimum of signed integral types. */
33857 #ifndef INT8_MIN
33858 # define INT8_MIN (-128)
33859 #endif
33860 #ifndef INT16_MIN
33861 # define INT16_MIN (-32767-1)
33862 #endif
33863 #ifndef INT32_MIN
33864 # define INT32_MIN (-2147483647-1)
33865 #endif
33866 #ifndef INT64_MIN
33867 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
33868 #endif
33870 /* Maximum of signed integral types. */
33871 #ifndef INT8_MAX
33872 # define INT8_MAX (127)
33873 #endif
33874 #ifndef INT16_MAX
33875 # define INT16_MAX (32767)
33876 #endif
33877 #ifndef INT32_MAX
33878 # define INT32_MAX (2147483647)
33879 #endif
33880 #ifndef INT64_MAX
33881 # define INT64_MAX (__INT64_C(9223372036854775807))
33882 #endif
33884 /* Maximum of unsigned integral types. */
33885 #ifndef UINT8_MAX
33886 # define UINT8_MAX (255)
33887 #endif
33888 #ifndef UINT16_MAX
33889 # define UINT16_MAX (65535)
33890 #endif
33891 #ifndef UINT32_MAX
33892 # define UINT32_MAX (4294967295U)
33893 #endif
33894 #ifndef UINT64_MAX
33895 # define UINT64_MAX (__UINT64_C(18446744073709551615))
33896 #endif
33898 /* Minimum of signed integral types having a minimum size. */
33899 # define INT_LEAST8_MIN INT8_MIN
33900 # define INT_LEAST16_MIN INT16_MIN
33901 # define INT_LEAST32_MIN INT32_MIN
33902 # define INT_LEAST64_MIN INT64_MIN
33903 /* Maximum of signed integral types having a minimum size. */
33904 # define INT_LEAST8_MAX INT8_MAX
33905 # define INT_LEAST16_MAX INT16_MAX
33906 # define INT_LEAST32_MAX INT32_MAX
33907 # define INT_LEAST64_MAX INT64_MAX
33909 /* Maximum of unsigned integral types having a minimum size. */
33910 # define UINT_LEAST8_MAX UINT8_MAX
33911 # define UINT_LEAST16_MAX UINT16_MAX
33912 # define UINT_LEAST32_MAX UINT32_MAX
33913 # define UINT_LEAST64_MAX UINT64_MAX
33915 /* shortcircuit*/
33916 #endif
33917 /* once */
33918 #endif
33919 #endif
33920 STDINT_EOF
33922 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
33923 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
33924 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
33925 else
33926 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
33927 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33928 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
33929 X"$ac_stdint_h" : 'X\(//\)$' \| \
33930 X"$ac_stdint_h" : 'X\(/\)' \| \
33931 . : '\(.\)' 2>/dev/null ||
33932 echo X"$ac_stdint_h" |
33933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33935 /^X\(\/\/\)$/{ s//\1/; q; }
33936 /^X\(\/\).*/{ s//\1/; q; }
33937 s/.*/./; q'`
33938 { if $as_mkdir_p; then
33939 mkdir -p "$ac_dir"
33940 else
33941 as_dir="$ac_dir"
33942 as_dirs=
33943 while test ! -d "$as_dir"; do
33944 as_dirs="$as_dir $as_dirs"
33945 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33947 X"$as_dir" : 'X\(//\)[^/]' \| \
33948 X"$as_dir" : 'X\(//\)$' \| \
33949 X"$as_dir" : 'X\(/\)' \| \
33950 . : '\(.\)' 2>/dev/null ||
33951 echo X"$as_dir" |
33952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33954 /^X\(\/\/\)$/{ s//\1/; q; }
33955 /^X\(\/\).*/{ s//\1/; q; }
33956 s/.*/./; q'`
33957 done
33958 test ! -n "$as_dirs" || mkdir $as_dirs
33959 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33961 { (exit 1); exit 1; }; }; }
33963 rm -f $ac_stdint_h
33964 mv $ac_stdint $ac_stdint_h
33967 gappletviewer ) chmod 755 tools/gappletviewer ;;
33968 gjarsigner ) chmod 755 tools/gjarsigner ;;
33969 gkeytool ) chmod 755 tools/gkeytool ;;
33970 gjar ) chmod 755 tools/gjar ;;
33971 gnative2ascii ) chmod 755 tools/gnative2ascii ;;
33972 gserialver ) chmod 755 tools/gserialver ;;
33973 grmiregistry ) chmod 755 tools/grmiregistry ;;
33974 gtnameserv ) chmod 755 tools/gtnameserv ;;
33975 gorbd ) chmod 755 tools/gorbd ;;
33976 grmid ) chmod 755 tools/grmid ;;
33977 grmic ) chmod 755 tools/grmic ;;
33978 gjavah ) chmod 755 tools/gjavah ;;
33979 gjdoc ) chmod 755 tools/gjdoc ;;
33980 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
33981 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
33982 esac
33983 done
33984 _ACEOF
33986 cat >>$CONFIG_STATUS <<\_ACEOF
33988 { (exit 0); exit 0; }
33989 _ACEOF
33990 chmod +x $CONFIG_STATUS
33991 ac_clean_files=$ac_clean_files_save
33994 # configure is writing to config.log, and then calls config.status.
33995 # config.status does its own redirection, appending to config.log.
33996 # Unfortunately, on DOS this fails, as config.log is still kept open
33997 # by configure, so config.status won't be able to write to it; its
33998 # output is simply discarded. So we exec the FD to /dev/null,
33999 # effectively closing config.log, so it can be properly (re)opened and
34000 # appended to by config.status. When coming back to configure, we
34001 # need to make the FD available again.
34002 if test "$no_create" != yes; then
34003 ac_cs_success=:
34004 ac_config_status_args=
34005 test "$silent" = yes &&
34006 ac_config_status_args="$ac_config_status_args --quiet"
34007 exec 5>/dev/null
34008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34009 exec 5>>config.log
34010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34011 # would make configure fail if this is the last instruction.
34012 $ac_cs_success || { (exit 1); exit 1; }
34016 # Create standard.omit based on decisions we just made.
34017 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
34018 if test x$use_escher != xtrue; then
34019 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit