re PR other/35457 (Error building GCC trunk on CELL SPU)
[official-gcc.git] / libjava / classpath / configure
blobb21d3f57b67d3802b20acb3fa49ddb65a589e81e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Classpath 0.96-pre.
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.96-pre'
422 PACKAGE_STRING='GNU Classpath 0.96-pre'
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 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 toolexeclibdir nativeexeclibdir glibjdir VM_BINARY CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC LIBICONV LTLIBICONV WARNING_CFLAGS STRICT_WARNING_CFLAGS ERROR_CFLAGS PKG_CONFIG XML_CFLAGS XML_LIBS XSLT_CFLAGS XSLT_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CFLAGS GTK_LIBS FREETYPE2_CFLAGS FREETYPE2_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS 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 USER_JAVAH CLASSPATH_INCLUDES GCJ JIKES JIKESENCODING JIKESWARNINGS KJC ECJ JAVAC FOUND_GCJ_TRUE FOUND_GCJ_FALSE FOUND_JIKES_TRUE FOUND_JIKES_FALSE FOUND_ECJ_TRUE FOUND_ECJ_FALSE FOUND_JAVAC_TRUE FOUND_JAVAC_FALSE FOUND_KJC_TRUE FOUND_KJC_FALSE USER_CLASSLIB USER_SPECIFIED_CLASSLIB_TRUE USER_SPECIFIED_CLASSLIB_FALSE 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 FASTJAR INSTALL_GLIBJ_ZIP_TRUE INSTALL_GLIBJ_ZIP_FALSE INSTALL_CLASS_FILES_TRUE INSTALL_CLASS_FILES_FALSE BUILD_CLASS_FILES_TRUE BUILD_CLASS_FILES_FALSE EXAMPLESDIR GJDOC CREATE_API_DOCS_TRUE CREATE_API_DOCS_FALSE JAY JAY_SKELETON REGEN_PARSERS_TRUE REGEN_PARSERS_FALSE USE_PREBUILT_GLIBJ_ZIP_TRUE USE_PREBUILT_GLIBJ_ZIP_FALSE PATH_TO_GLIBJ_ZIP USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517 # Accept the important Cygnus configure options, so we can diagnose typos.
519 case $ac_option in
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
538 --config-cache | -C)
539 cache_file=config.cache ;;
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 esac
802 done
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
877 else
878 ac_srcdir_defaulted=no
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
939 # Report the --help message.
941 if test "$ac_init_help" = "long"; then
942 # Omit some internal or obsolete options to make the list less imposing.
943 # This message is too long to be a string in the A/UX 3.1 sh.
944 cat <<_ACEOF
945 \`configure' configures GNU Classpath 0.96-pre to adapt to many kinds of systems.
947 Usage: $0 [OPTION]... [VAR=VALUE]...
949 To assign environment variables (e.g., CC, CFLAGS...), specify them as
950 VAR=VALUE. See below for descriptions of some of the useful variables.
952 Defaults for the options are specified in brackets.
954 Configuration:
955 -h, --help display this help and exit
956 --help=short display options specific to this package
957 --help=recursive display the short help of all the included packages
958 -V, --version display version information and exit
959 -q, --quiet, --silent do not print \`checking...' messages
960 --cache-file=FILE cache test results in FILE [disabled]
961 -C, --config-cache alias for \`--cache-file=config.cache'
962 -n, --no-create do not create output files
963 --srcdir=DIR find the sources in DIR [configure dir or \`..']
965 _ACEOF
967 cat <<_ACEOF
968 Installation directories:
969 --prefix=PREFIX install architecture-independent files in PREFIX
970 [$ac_default_prefix]
971 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
972 [PREFIX]
974 By default, \`make install' will install all the files in
975 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
976 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
977 for instance \`--prefix=\$HOME'.
979 For better control, use the options below.
981 Fine tuning of the installation directories:
982 --bindir=DIR user executables [EPREFIX/bin]
983 --sbindir=DIR system admin executables [EPREFIX/sbin]
984 --libexecdir=DIR program executables [EPREFIX/libexec]
985 --datadir=DIR read-only architecture-independent data [PREFIX/share]
986 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
987 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
988 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
989 --libdir=DIR object code libraries [EPREFIX/lib]
990 --includedir=DIR C header files [PREFIX/include]
991 --oldincludedir=DIR C header files for non-gcc [/usr/include]
992 --infodir=DIR info documentation [PREFIX/info]
993 --mandir=DIR man documentation [PREFIX/man]
994 _ACEOF
996 cat <<\_ACEOF
998 Program names:
999 --program-prefix=PREFIX prepend PREFIX to installed program names
1000 --program-suffix=SUFFIX append SUFFIX to installed program names
1001 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1003 X features:
1004 --x-includes=DIR X include files are in DIR
1005 --x-libraries=DIR X library files are in DIR
1007 System types:
1008 --build=BUILD configure for building on BUILD [guessed]
1009 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010 --target=TARGET configure for building compilers for TARGET [HOST]
1011 _ACEOF
1014 if test -n "$ac_init_help"; then
1015 case $ac_init_help in
1016 short | recursive ) echo "Configuration of GNU Classpath 0.96-pre:";;
1017 esac
1018 cat <<\_ACEOF
1020 Optional Features:
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1023 --enable-java-maintainer-mode
1024 allow rebuilding of .class and .h files
1025 --enable-generated-files-in-srcdir
1026 put copies of generated files in source dir
1027 intended for creating source tarballs for users
1028 without texinfo, perl, bison or flex.
1029 --enable-multilib build many library versions (default)
1030 --enable-collections create collections.jar default=no
1031 --enable-jni compile JNI source default=yes
1032 --enable-core-jni compile JNI sources for core default=yes
1033 --enable-default-preferences-peer[=peer type or class name]
1034 specify one of: "gconf" [default] for a GConf based
1035 backend, "file" for a file based one, "memory" for a
1036 transient one, or a fully qualified class name
1037 implementing java.util.prefs.PreferencesFactory
1038 --disable-gconf-peer compile GConf native peers (disabled by
1039 --disable-jni) default=yes
1041 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1042 --disable-jni) default=no
1043 --enable-Werror whether to compile C code with -Werror which turns
1044 any compiler warning into a compilation failure
1045 default=no
1046 --enable-default-toolkit
1047 fully qualified class name of default AWT toolkit
1048 --enable-xmlj compile native libxml/xslt library default=no
1049 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1050 default=yes
1051 --disable-dependency-tracking speeds up one-time build
1052 --enable-dependency-tracking do not reject slow dependency extractors
1053 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1054 default=yes
1055 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1056 default=yes
1057 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1058 default=no
1059 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1060 default=yes
1061 --enable-regen-headers automatically regenerate JNI headers default=no
1062 --enable-tool-wrappers create tool wrapper binaries default=no
1063 --enable-static[=PKGS]
1064 build static libraries [default=no]
1065 --enable-shared[=PKGS]
1066 build shared libraries [default=yes]
1067 --enable-fast-install[=PKGS]
1068 optimize for fast installation [default=yes]
1069 --disable-libtool-lock avoid locking (might break parallel builds)
1070 --disable-rpath do not hardcode runtime library paths
1071 --enable-maintainer-mode enable make rules and dependencies not useful
1072 (and sometimes confusing) to the casual installer
1073 --enable-debug enable runtime debugging code
1074 --enable-load-library enable to use JNI native methods default=yes
1075 --enable-java-lang-system-explicit-initialization
1076 will the VM explicitly invoke java.lang.System's
1077 static initialization methods default=no
1078 --enable-examples enable build of the examples default=yes
1079 --enable-portable-native-sync
1080 synchronize VM threads portably
1081 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1083 Optional Packages:
1084 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1085 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1086 --with-native-libdir sets the installation directory for native libraries
1087 default='${libdir}/${PACKAGE}'
1088 --with-glibj-dir sets the installation directory for glibj.zip
1089 default='${libdir}/${PACKAGE}'
1090 --with-vm sets the VM binary name
1091 default='${prefix}/bin/jamvm'
1092 --with-pic try to use only PIC/non-PIC objects [default=use
1093 both]
1094 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1095 --with-gnu-ld assume the C compiler uses GNU ld default=no
1096 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1097 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1098 --with-x use the X Window System
1099 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1100 systems use pkg-config.
1101 --with-javah specify path or name of a javah-like program
1102 --with-gcj bytecode compilation with gcj
1103 --with-jikes bytecode compilation with jikes
1104 --with-kjc bytecode compilation with kjc
1105 --with-ecj bytecode compilation with ecj
1106 --with-javac bytecode compilation with javac
1107 --with-classpath specify path to a classes.zip like file
1108 --with-vm-classes specify path to VM override source files
1109 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1110 Compiler
1111 --with-fastjar=PATH define to use a fastjar style tool
1112 --with-glibj define what to install (zip|flat|both|none|build)
1113 [default=zip]
1114 --with-gjdoc generate documentation using gjdoc (default is NO)
1115 --with-jay Regenerate the parsers with jay must be given the
1116 path to the jay executable
1117 --with-glibj-zip=ABS.PATH
1118 use prebuilt glibj.zip class library
1119 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1121 Some influential environment variables:
1122 CC C compiler command
1123 CFLAGS C compiler flags
1124 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1125 nonstandard directory <lib dir>
1126 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1127 headers in a nonstandard directory <include dir>
1128 CPP C preprocessor
1129 CXX C++ compiler command
1130 CXXFLAGS C++ compiler flags
1131 CXXCPP C++ preprocessor
1133 Use these variables to override the choices made by `configure' or to help
1134 it to find libraries and programs with nonstandard names/locations.
1136 Report bugs to <classpath@gnu.org>.
1137 _ACEOF
1140 if test "$ac_init_help" = "recursive"; then
1141 # If there are subdirs, report their specific --help.
1142 ac_popdir=`pwd`
1143 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1144 test -d $ac_dir || continue
1145 ac_builddir=.
1147 if test "$ac_dir" != .; then
1148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1149 # A "../" for each directory in $ac_dir_suffix.
1150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1151 else
1152 ac_dir_suffix= ac_top_builddir=
1155 case $srcdir in
1156 .) # No --srcdir option. We are building in place.
1157 ac_srcdir=.
1158 if test -z "$ac_top_builddir"; then
1159 ac_top_srcdir=.
1160 else
1161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1162 fi ;;
1163 [\\/]* | ?:[\\/]* ) # Absolute path.
1164 ac_srcdir=$srcdir$ac_dir_suffix;
1165 ac_top_srcdir=$srcdir ;;
1166 *) # Relative path.
1167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169 esac
1171 # Do not use `cd foo && pwd` to compute absolute paths, because
1172 # the directories may not exist.
1173 case `pwd` in
1174 .) ac_abs_builddir="$ac_dir";;
1176 case "$ac_dir" in
1177 .) ac_abs_builddir=`pwd`;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1179 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1180 esac;;
1181 esac
1182 case $ac_abs_builddir in
1183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1185 case ${ac_top_builddir}. in
1186 .) ac_abs_top_builddir=$ac_abs_builddir;;
1187 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1188 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1189 esac;;
1190 esac
1191 case $ac_abs_builddir in
1192 .) ac_abs_srcdir=$ac_srcdir;;
1194 case $ac_srcdir in
1195 .) ac_abs_srcdir=$ac_abs_builddir;;
1196 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1197 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1198 esac;;
1199 esac
1200 case $ac_abs_builddir in
1201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1203 case $ac_top_srcdir in
1204 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1206 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1207 esac;;
1208 esac
1210 cd $ac_dir
1211 # Check for guested configure; otherwise get Cygnus style configure.
1212 if test -f $ac_srcdir/configure.gnu; then
1213 echo
1214 $SHELL $ac_srcdir/configure.gnu --help=recursive
1215 elif test -f $ac_srcdir/configure; then
1216 echo
1217 $SHELL $ac_srcdir/configure --help=recursive
1218 elif test -f $ac_srcdir/configure.ac ||
1219 test -f $ac_srcdir/configure.in; then
1220 echo
1221 $ac_configure --help
1222 else
1223 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1225 cd $ac_popdir
1226 done
1229 test -n "$ac_init_help" && exit 0
1230 if $ac_init_version; then
1231 cat <<\_ACEOF
1232 GNU Classpath configure 0.96-pre
1233 generated by GNU Autoconf 2.59
1235 Copyright (C) 2003 Free Software Foundation, Inc.
1236 This configure script is free software; the Free Software Foundation
1237 gives unlimited permission to copy, distribute and modify it.
1238 _ACEOF
1239 exit 0
1241 exec 5>config.log
1242 cat >&5 <<_ACEOF
1243 This file contains any messages produced by compilers while
1244 running configure, to aid debugging if configure makes a mistake.
1246 It was created by GNU Classpath $as_me 0.96-pre, which was
1247 generated by GNU Autoconf 2.59. Invocation command line was
1249 $ $0 $@
1251 _ACEOF
1253 cat <<_ASUNAME
1254 ## --------- ##
1255 ## Platform. ##
1256 ## --------- ##
1258 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1259 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1260 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1261 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1262 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1264 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1265 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1267 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1268 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1269 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1270 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1271 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1272 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1273 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1275 _ASUNAME
1277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278 for as_dir in $PATH
1280 IFS=$as_save_IFS
1281 test -z "$as_dir" && as_dir=.
1282 echo "PATH: $as_dir"
1283 done
1285 } >&5
1287 cat >&5 <<_ACEOF
1290 ## ----------- ##
1291 ## Core tests. ##
1292 ## ----------- ##
1294 _ACEOF
1297 # Keep a trace of the command line.
1298 # Strip out --no-create and --no-recursion so they do not pile up.
1299 # Strip out --silent because we don't want to record it for future runs.
1300 # Also quote any args containing shell meta-characters.
1301 # Make two passes to allow for proper duplicate-argument suppression.
1302 ac_configure_args=
1303 ac_configure_args0=
1304 ac_configure_args1=
1305 ac_sep=
1306 ac_must_keep_next=false
1307 for ac_pass in 1 2
1309 for ac_arg
1311 case $ac_arg in
1312 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314 | -silent | --silent | --silen | --sile | --sil)
1315 continue ;;
1316 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1318 esac
1319 case $ac_pass in
1320 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1322 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1323 if test $ac_must_keep_next = true; then
1324 ac_must_keep_next=false # Got value, back to normal.
1325 else
1326 case $ac_arg in
1327 *=* | --config-cache | -C | -disable-* | --disable-* \
1328 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1329 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1330 | -with-* | --with-* | -without-* | --without-* | --x)
1331 case "$ac_configure_args0 " in
1332 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333 esac
1335 -* ) ac_must_keep_next=true ;;
1336 esac
1338 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1339 # Get rid of the leading space.
1340 ac_sep=" "
1342 esac
1343 done
1344 done
1345 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1346 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1348 # When interrupted or exit'd, cleanup temporary files, and complete
1349 # config.log. We remove comments because anyway the quotes in there
1350 # would cause problems or look ugly.
1351 # WARNING: Be sure not to use single quotes in there, as some shells,
1352 # such as our DU 5.0 friend, will then `close' the trap.
1353 trap 'exit_status=$?
1354 # Save into config.log some information that might help in debugging.
1356 echo
1358 cat <<\_ASBOX
1359 ## ---------------- ##
1360 ## Cache variables. ##
1361 ## ---------------- ##
1362 _ASBOX
1363 echo
1364 # The following way of writing the cache mishandles newlines in values,
1366 (set) 2>&1 |
1367 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368 *ac_space=\ *)
1369 sed -n \
1370 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1374 sed -n \
1375 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1377 esac;
1379 echo
1381 cat <<\_ASBOX
1382 ## ----------------- ##
1383 ## Output variables. ##
1384 ## ----------------- ##
1385 _ASBOX
1386 echo
1387 for ac_var in $ac_subst_vars
1389 eval ac_val=$`echo $ac_var`
1390 echo "$ac_var='"'"'$ac_val'"'"'"
1391 done | sort
1392 echo
1394 if test -n "$ac_subst_files"; then
1395 cat <<\_ASBOX
1396 ## ------------- ##
1397 ## Output files. ##
1398 ## ------------- ##
1399 _ASBOX
1400 echo
1401 for ac_var in $ac_subst_files
1403 eval ac_val=$`echo $ac_var`
1404 echo "$ac_var='"'"'$ac_val'"'"'"
1405 done | sort
1406 echo
1409 if test -s confdefs.h; then
1410 cat <<\_ASBOX
1411 ## ----------- ##
1412 ## confdefs.h. ##
1413 ## ----------- ##
1414 _ASBOX
1415 echo
1416 sed "/^$/d" confdefs.h | sort
1417 echo
1419 test "$ac_signal" != 0 &&
1420 echo "$as_me: caught signal $ac_signal"
1421 echo "$as_me: exit $exit_status"
1422 } >&5
1423 rm -f core *.core &&
1424 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1425 exit $exit_status
1427 for ac_signal in 1 2 13 15; do
1428 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1429 done
1430 ac_signal=0
1432 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1433 rm -rf conftest* confdefs.h
1434 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435 echo >confdefs.h
1437 # Predefined preprocessor variables.
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_NAME "$PACKAGE_NAME"
1441 _ACEOF
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1446 _ACEOF
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1451 _ACEOF
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_STRING "$PACKAGE_STRING"
1456 _ACEOF
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1461 _ACEOF
1464 # Let the site file select an alternate cache file if it wants to.
1465 # Prefer explicitly selected file to automatically selected ones.
1466 if test -z "$CONFIG_SITE"; then
1467 if test "x$prefix" != xNONE; then
1468 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1469 else
1470 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1473 for ac_site_file in $CONFIG_SITE; do
1474 if test -r "$ac_site_file"; then
1475 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1476 echo "$as_me: loading site script $ac_site_file" >&6;}
1477 sed 's/^/| /' "$ac_site_file" >&5
1478 . "$ac_site_file"
1480 done
1482 if test -r "$cache_file"; then
1483 # Some versions of bash will fail to source /dev/null (special
1484 # files actually), so we avoid doing that.
1485 if test -f "$cache_file"; then
1486 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1487 echo "$as_me: loading cache $cache_file" >&6;}
1488 case $cache_file in
1489 [\\/]* | ?:[\\/]* ) . $cache_file;;
1490 *) . ./$cache_file;;
1491 esac
1493 else
1494 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1495 echo "$as_me: creating cache $cache_file" >&6;}
1496 >$cache_file
1499 # Check that the precious variables saved in the cache have kept the same
1500 # value.
1501 ac_cache_corrupted=false
1502 for ac_var in `(set) 2>&1 |
1503 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1504 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1505 eval ac_new_set=\$ac_env_${ac_var}_set
1506 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1507 eval ac_new_val="\$ac_env_${ac_var}_value"
1508 case $ac_old_set,$ac_new_set in
1509 set,)
1510 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1511 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1512 ac_cache_corrupted=: ;;
1513 ,set)
1514 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1515 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1516 ac_cache_corrupted=: ;;
1517 ,);;
1519 if test "x$ac_old_val" != "x$ac_new_val"; then
1520 # differences in whitespace do not lead to failure.
1521 ac_old_val_w=`echo x $ac_old_val`
1522 ac_new_val_w=`echo x $ac_new_val`
1523 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1524 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1525 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1526 ac_cache_corrupted=:
1527 else
1528 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1529 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1530 eval $ac_var=\$ac_old_val
1532 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1533 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1534 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1535 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1536 fi;;
1537 esac
1538 # Pass precious variables to config.status.
1539 if test "$ac_new_set" = set; then
1540 case $ac_new_val in
1541 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 *) ac_arg=$ac_var=$ac_new_val ;;
1544 esac
1545 case " $ac_configure_args " in
1546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1547 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548 esac
1550 done
1551 if $ac_cache_corrupted; then
1552 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556 { (exit 1); exit 1; }; }
1559 ac_ext=c
1560 ac_cpp='$CPP $CPPFLAGS'
1561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1593 ac_aux_dir=
1594 for ac_dir in ../.. $srcdir/../..; do
1595 if test -f $ac_dir/install-sh; then
1596 ac_aux_dir=$ac_dir
1597 ac_install_sh="$ac_aux_dir/install-sh -c"
1598 break
1599 elif test -f $ac_dir/install.sh; then
1600 ac_aux_dir=$ac_dir
1601 ac_install_sh="$ac_aux_dir/install.sh -c"
1602 break
1603 elif test -f $ac_dir/shtool; then
1604 ac_aux_dir=$ac_dir
1605 ac_install_sh="$ac_aux_dir/shtool install -c"
1606 break
1608 done
1609 if test -z "$ac_aux_dir"; then
1610 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1611 echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1612 { (exit 1); exit 1; }; }
1614 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1615 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1616 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619 # Make sure we can run config.sub.
1620 $ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: checking build system type" >&5
1626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627 if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630 ac_cv_build_alias=$build_alias
1631 test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633 test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644 echo "${ECHO_T}$ac_cv_build" >&6
1645 build=$ac_cv_build
1646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$as_me:$LINENO: checking host system type" >&5
1652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653 if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656 ac_cv_host_alias=$host_alias
1657 test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666 echo "${ECHO_T}$ac_cv_host" >&6
1667 host=$ac_cv_host
1668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673 echo "$as_me:$LINENO: checking target system type" >&5
1674 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675 if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 ac_cv_target_alias=$target_alias
1679 test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688 echo "${ECHO_T}$ac_cv_target" >&6
1689 target=$ac_cv_target
1690 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1695 # The aliases save the names the user supplied, while $host etc.
1696 # will get canonicalized.
1697 test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1699 NONENONEs,x,x, &&
1700 program_prefix=${target_alias}-
1702 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1703 if test "${enable_java_maintainer_mode+set}" = set; then
1704 enableval="$enable_java_maintainer_mode"
1709 if test "$enable_java_maintainer_mode" = yes; then
1710 JAVA_MAINTAINER_MODE_TRUE=
1711 JAVA_MAINTAINER_MODE_FALSE='#'
1712 else
1713 JAVA_MAINTAINER_MODE_TRUE='#'
1714 JAVA_MAINTAINER_MODE_FALSE=
1718 # We would like to our source tree to be readonly. However when releases or
1719 # pre-releases are generated, the man pages need to be included as they are
1720 # converted from the texi files via perl which we don't require end users to
1721 # have installed.
1722 # Therefore we have --enable-generated-files-in-srcdir to do just that.
1724 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1725 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1726 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1727 if test "${enable_generated_files_in_srcdir+set}" = set; then
1728 enableval="$enable_generated_files_in_srcdir"
1729 generated_files_in_srcdir=$enableval
1730 else
1731 generated_files_in_srcdir=no
1734 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1735 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1738 if test x$generated_files_in_srcdir = xyes; then
1739 GENINSRC_TRUE=
1740 GENINSRC_FALSE='#'
1741 else
1742 GENINSRC_TRUE='#'
1743 GENINSRC_FALSE=
1747 # Find the rest of the source tree framework.
1748 # Default to --enable-multilib
1749 # Check whether --enable-multilib or --disable-multilib was given.
1750 if test "${enable_multilib+set}" = set; then
1751 enableval="$enable_multilib"
1752 case "$enableval" in
1753 yes) multilib=yes ;;
1754 no) multilib=no ;;
1755 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1756 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1757 { (exit 1); exit 1; }; } ;;
1758 esac
1759 else
1760 multilib=yes
1763 # We may get other options which we leave undocumented:
1764 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1765 # See config-ml.in if you want the gory details.
1767 if test "$srcdir" = "."; then
1768 if test "$with_target_subdir" != "."; then
1769 multi_basedir="$srcdir/$with_multisrctop../../.."
1770 else
1771 multi_basedir="$srcdir/$with_multisrctop../.."
1773 else
1774 multi_basedir="$srcdir/../.."
1778 # Even if the default multilib is not a cross compilation,
1779 # it may be that some of the other multilibs are.
1780 if test $cross_compiling = no && test $multilib = yes \
1781 && test "x${with_multisubdir}" != x ; then
1782 cross_compiling=maybe
1785 ac_config_commands="$ac_config_commands default-1"
1788 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1790 LIBVERSION="0:0:0"
1792 case "$host_os" in
1793 darwin*)
1794 cp_module=""
1797 cp_module="-module"
1799 esac
1801 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1804 CLASSPATH_CONVENIENCE="-no-undefined"
1808 am__api_version="1.9"
1809 # Find a good install program. We prefer a C program (faster),
1810 # so one script is as good as another. But avoid the broken or
1811 # incompatible versions:
1812 # SysV /etc/install, /usr/sbin/install
1813 # SunOS /usr/etc/install
1814 # IRIX /sbin/install
1815 # AIX /bin/install
1816 # AmigaOS /C/install, which installs bootblocks on floppy discs
1817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1820 # OS/2's system install, which has a completely different semantic
1821 # ./install, which can be erroneously created by make from ./install.sh.
1822 # Reject install programs that cannot install multiple files.
1823 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1824 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1825 if test -z "$INSTALL"; then
1826 if test "${ac_cv_path_install+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828 else
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 for as_dir in $PATH
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
1834 # Account for people who put trailing slashes in PATH elements.
1835 case $as_dir/ in
1836 ./ | .// | /cC/* | \
1837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1838 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1839 /usr/ucb/* ) ;;
1841 # OSF1 and SCO ODT 3.0 have their own names for install.
1842 # Don't use installbsd from OSF since it installs stuff as root
1843 # by default.
1844 for ac_prog in ginstall scoinst install; do
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1847 if test $ac_prog = install &&
1848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1849 # AIX install. It has an incompatible calling convention.
1851 elif test $ac_prog = install &&
1852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1853 # program-specific install script used by HP pwplus--don't use.
1855 else
1856 rm -rf conftest.one conftest.two conftest.dir
1857 echo one > conftest.one
1858 echo two > conftest.two
1859 mkdir conftest.dir
1860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1861 test -s conftest.one && test -s conftest.two &&
1862 test -s conftest.dir/conftest.one &&
1863 test -s conftest.dir/conftest.two
1864 then
1865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1866 break 3
1870 done
1871 done
1873 esac
1874 done
1876 rm -rf conftest.one conftest.two conftest.dir
1879 if test "${ac_cv_path_install+set}" = set; then
1880 INSTALL=$ac_cv_path_install
1881 else
1882 # As a last resort, use the slow shell script. Don't cache a
1883 # value for INSTALL within a source directory, because that will
1884 # break other packages using the cache if that directory is
1885 # removed, or if the value is a relative name.
1886 INSTALL=$ac_install_sh
1889 echo "$as_me:$LINENO: result: $INSTALL" >&5
1890 echo "${ECHO_T}$INSTALL" >&6
1892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1893 # It thinks the first close brace ends the variable substitution.
1894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1900 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1901 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1902 # Just in case
1903 sleep 1
1904 echo timestamp > conftest.file
1905 # Do `set' in a subshell so we don't clobber the current shell's
1906 # arguments. Must try -L first in case configure is actually a
1907 # symlink; some systems play weird games with the mod time of symlinks
1908 # (eg FreeBSD returns the mod time of the symlink's containing
1909 # directory).
1910 if (
1911 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1912 if test "$*" = "X"; then
1913 # -L didn't work.
1914 set X `ls -t $srcdir/configure conftest.file`
1916 rm -f conftest.file
1917 if test "$*" != "X $srcdir/configure conftest.file" \
1918 && test "$*" != "X conftest.file $srcdir/configure"; then
1920 # If neither matched, then we have a broken ls. This can happen
1921 # if, for instance, CONFIG_SHELL is bash and it inherits a
1922 # broken ls alias from the environment. This has actually
1923 # happened. Such a system could not be considered "sane".
1924 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1925 alias in your environment" >&5
1926 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1927 alias in your environment" >&2;}
1928 { (exit 1); exit 1; }; }
1931 test "$2" = conftest.file
1933 then
1934 # Ok.
1936 else
1937 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1938 Check your system clock" >&5
1939 echo "$as_me: error: newly created file is older than distributed files!
1940 Check your system clock" >&2;}
1941 { (exit 1); exit 1; }; }
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1945 test "$program_prefix" != NONE &&
1946 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1947 # Use a double $ so make ignores it.
1948 test "$program_suffix" != NONE &&
1949 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1950 # Double any \ or $. echo might interpret backslashes.
1951 # By default was `s,x,x', remove it if useless.
1952 cat <<\_ACEOF >conftest.sed
1953 s/[\\$]/&&/g;s/;s,x,x,$//
1954 _ACEOF
1955 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1956 rm conftest.sed
1958 # expand $ac_aux_dir to an absolute path
1959 am_aux_dir=`cd $ac_aux_dir && pwd`
1961 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1962 # Use eval to expand $SHELL
1963 if eval "$MISSING --run true"; then
1964 am_missing_run="$MISSING --run "
1965 else
1966 am_missing_run=
1967 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1968 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1971 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1972 # We used to keeping the `.' as first argument, in order to
1973 # allow $(mkdir_p) to be used without argument. As in
1974 # $(mkdir_p) $(somedir)
1975 # where $(somedir) is conditionally defined. However this is wrong
1976 # for two reasons:
1977 # 1. if the package is installed by a user who cannot write `.'
1978 # make install will fail,
1979 # 2. the above comment should most certainly read
1980 # $(mkdir_p) $(DESTDIR)$(somedir)
1981 # so it does not work when $(somedir) is undefined and
1982 # $(DESTDIR) is not.
1983 # To support the latter case, we have to write
1984 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1985 # so the `.' trick is pointless.
1986 mkdir_p='mkdir -p --'
1987 else
1988 # On NextStep and OpenStep, the `mkdir' command does not
1989 # recognize any option. It will interpret all options as
1990 # directories to create, and then abort because `.' already
1991 # exists.
1992 for d in ./-p ./--version;
1994 test -d $d && rmdir $d
1995 done
1996 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1997 if test -f "$ac_aux_dir/mkinstalldirs"; then
1998 mkdir_p='$(mkinstalldirs)'
1999 else
2000 mkdir_p='$(install_sh) -d'
2004 for ac_prog in gawk mawk nawk awk
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_AWK+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$AWK"; then
2014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_AWK="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 AWK=$ac_cv_prog_AWK
2033 if test -n "$AWK"; then
2034 echo "$as_me:$LINENO: result: $AWK" >&5
2035 echo "${ECHO_T}$AWK" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2041 test -n "$AWK" && break
2042 done
2044 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2045 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2046 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2047 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050 cat >conftest.make <<\_ACEOF
2051 all:
2052 @echo 'ac_maketemp="$(MAKE)"'
2053 _ACEOF
2054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2055 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2056 if test -n "$ac_maketemp"; then
2057 eval ac_cv_prog_make_${ac_make}_set=yes
2058 else
2059 eval ac_cv_prog_make_${ac_make}_set=no
2061 rm -f conftest.make
2063 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2064 echo "$as_me:$LINENO: result: yes" >&5
2065 echo "${ECHO_T}yes" >&6
2066 SET_MAKE=
2067 else
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 SET_MAKE="MAKE=${MAKE-make}"
2073 rm -rf .tst 2>/dev/null
2074 mkdir .tst 2>/dev/null
2075 if test -d .tst; then
2076 am__leading_dot=.
2077 else
2078 am__leading_dot=_
2080 rmdir .tst 2>/dev/null
2082 # test to see if srcdir already configured
2083 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2084 test -f $srcdir/config.status; then
2085 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2086 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2087 { (exit 1); exit 1; }; }
2090 # test whether we have cygpath
2091 if test -z "$CYGPATH_W"; then
2092 if (cygpath --version) >/dev/null 2>/dev/null; then
2093 CYGPATH_W='cygpath -w'
2094 else
2095 CYGPATH_W=echo
2100 # Define the identity of the package.
2101 PACKAGE='classpath'
2102 VERSION='0.96-pre'
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE "$PACKAGE"
2107 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define VERSION "$VERSION"
2112 _ACEOF
2114 # Some tools Automake needs.
2116 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2119 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2122 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2125 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2128 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2130 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2132 # Installed binaries are usually stripped using `strip' when the user
2133 # run `make install-strip'. However `strip' might not be the right
2134 # tool to use in cross-compilation environments, therefore Automake
2135 # will honor the `STRIP' environment variable to overrule this program.
2136 if test "$cross_compiling" != no; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}strip; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_STRIP+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$STRIP"; then
2146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2164 STRIP=$ac_cv_prog_STRIP
2165 if test -n "$STRIP"; then
2166 echo "$as_me:$LINENO: result: $STRIP" >&5
2167 echo "${ECHO_T}$STRIP" >&6
2168 else
2169 echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2174 if test -z "$ac_cv_prog_STRIP"; then
2175 ac_ct_STRIP=$STRIP
2176 # Extract the first word of "strip", so it can be a program name with args.
2177 set dummy strip; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$ac_ct_STRIP"; then
2184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_ac_ct_STRIP="strip"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2197 done
2198 done
2200 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2204 if test -n "$ac_ct_STRIP"; then
2205 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2206 echo "${ECHO_T}$ac_ct_STRIP" >&6
2207 else
2208 echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6
2212 STRIP=$ac_ct_STRIP
2213 else
2214 STRIP="$ac_cv_prog_STRIP"
2218 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2220 # We need awk for the "check" target. The system "awk" is bad on
2221 # some platforms.
2222 # Always define AMTAR for backward compatibility.
2224 AMTAR=${AMTAR-"${am_missing_run}tar"}
2227 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2228 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2229 # Loop over all known methods to create a tar archive until one works.
2230 _am_tools='gnutar plaintar pax cpio none'
2231 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2232 # Do not fold the above two line into one, because Tru64 sh and
2233 # Solaris sh will not grok spaces in the rhs of `-'.
2234 for _am_tool in $_am_tools
2236 case $_am_tool in
2237 gnutar)
2238 for _am_tar in tar gnutar gtar;
2240 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2241 ($_am_tar --version) >&5 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } && break
2245 done
2246 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2247 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2248 am__untar="$_am_tar -xf -"
2250 plaintar)
2251 # Must skip GNU tar: if it does not support --format= it doesn't create
2252 # ustar tarball either.
2253 (tar --version) >/dev/null 2>&1 && continue
2254 am__tar='tar chf - "$$tardir"'
2255 am__tar_='tar chf - "$tardir"'
2256 am__untar='tar xf -'
2258 pax)
2259 am__tar='pax -L -x ustar -w "$$tardir"'
2260 am__tar_='pax -L -x ustar -w "$tardir"'
2261 am__untar='pax -r'
2263 cpio)
2264 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2265 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2266 am__untar='cpio -i -H ustar -d'
2268 none)
2269 am__tar=false
2270 am__tar_=false
2271 am__untar=false
2273 esac
2275 # If the value was cached, stop now. We just wanted to have am__tar
2276 # and am__untar set.
2277 test -n "${am_cv_prog_tar_ustar}" && break
2279 # tar/untar a dummy directory, and stop if the command works
2280 rm -rf conftest.dir
2281 mkdir conftest.dir
2282 echo GrepMe > conftest.dir/file
2283 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2284 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288 rm -rf conftest.dir
2289 if test -s conftest.tar; then
2290 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2291 ($am__untar <conftest.tar) >&5 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2297 done
2298 rm -rf conftest.dir
2300 if test "${am_cv_prog_tar_ustar+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 am_cv_prog_tar_ustar=$_am_tool
2306 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2307 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2313 ac_config_headers="$ac_config_headers include/config.h"
2319 # Check whether --enable-collections or --disable-collections was given.
2320 if test "${enable_collections+set}" = set; then
2321 enableval="$enable_collections"
2322 case x"${enableval}" in
2323 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2324 xno) COMPILE_COLLECTIONS=no ;;
2325 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2326 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2327 esac
2328 else
2329 COMPILE_COLLECTIONS=no
2333 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2334 CREATE_COLLECTIONS_TRUE=
2335 CREATE_COLLECTIONS_FALSE='#'
2336 else
2337 CREATE_COLLECTIONS_TRUE='#'
2338 CREATE_COLLECTIONS_FALSE=
2342 # Check whether --enable-jni or --disable-jni was given.
2343 if test "${enable_jni+set}" = set; then
2344 enableval="$enable_jni"
2345 case "${enableval}" in
2346 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2347 no) COMPILE_JNI=no ;;
2348 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2349 esac
2350 else
2351 COMPILE_JNI=yes
2355 if test "x${COMPILE_JNI}" = xyes; then
2356 CREATE_JNI_LIBRARIES_TRUE=
2357 CREATE_JNI_LIBRARIES_FALSE='#'
2358 else
2359 CREATE_JNI_LIBRARIES_TRUE='#'
2360 CREATE_JNI_LIBRARIES_FALSE=
2364 # Check whether --enable-core-jni or --disable-core-jni was given.
2365 if test "${enable_core_jni+set}" = set; then
2366 enableval="$enable_core_jni"
2367 case "${enableval}" in
2368 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2369 no) COMPILE_CORE_JNI=no ;;
2370 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2371 esac
2372 else
2373 COMPILE_CORE_JNI=yes
2377 if test "x${COMPILE_CORE_JNI}" = xyes; then
2378 CREATE_CORE_JNI_LIBRARIES_TRUE=
2379 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2380 else
2381 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2382 CREATE_CORE_JNI_LIBRARIES_FALSE=
2386 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2387 if test "${enable_default_preferences_peer+set}" = set; then
2388 enableval="$enable_default_preferences_peer"
2389 case "${enableval}" in
2390 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
2391 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
2392 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
2393 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2394 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2395 { (exit 1); exit 1; }; } ;;
2396 *) DEFAULT_PREFS_PEER=${enableval} ;;
2397 esac
2398 else
2399 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2402 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2403 if test "${enable_gconf_peer+set}" = set; then
2404 enableval="$enable_gconf_peer"
2405 case "${enableval}" in
2406 yes) COMPILE_GCONF_PEER=yes ;;
2407 no) COMPILE_GCONF_PEER=no ;;
2408 *) COMPILE_GCONF_PEER=yes ;;
2409 esac
2410 else
2411 COMPILE_GCONF_PEER=yes
2415 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2416 CREATE_GCONF_PEER_LIBRARIES_TRUE=
2417 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2418 else
2419 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2420 CREATE_GCONF_PEER_LIBRARIES_FALSE=
2424 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2425 if test "${enable_gconf_peers+set}" = set; then
2426 enableval="$enable_gconf_peers"
2427 { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2428 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2429 { (exit 1); exit 1; }; }
2432 # Check whether --enable-gstreamer-peer or --disable-gstreamer-peer was given.
2433 if test "${enable_gstreamer_peer+set}" = set; then
2434 enableval="$enable_gstreamer_peer"
2435 case "${enableval}" in
2436 yes) COMPILE_GSTREAMER_PEER=yes ;;
2437 no) COMPILE_GSTREAMER_PEER=no ;;
2438 *) COMPILE_GSTREAMER_PEER=default ;;
2439 esac
2440 else
2441 COMPILE_GSTREAMER_PEER=default
2445 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
2446 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
2447 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
2448 else
2449 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
2450 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
2454 # Check whether --enable-gstreamer-peers or --disable-gstreamer-peers was given.
2455 if test "${enable_gstreamer_peers+set}" = set; then
2456 enableval="$enable_gstreamer_peers"
2457 { { echo "$as_me:$LINENO: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&5
2458 echo "$as_me: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&2;}
2459 { (exit 1); exit 1; }; }
2462 # Check whether --enable-Werror or --disable-Werror was given.
2463 if test "${enable_Werror+set}" = set; then
2464 enableval="$enable_Werror"
2465 case "${enableval}" in
2466 yes) ENABLE_WERROR=yes ;;
2467 no) ENABLE_WERROR=no ;;
2468 *) ENABLE_WERROR=default ;;
2469 esac
2470 else
2471 ENABLE_WERROR=default
2474 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2475 if test "${enable_default_toolkit+set}" = set; then
2476 enableval="$enable_default_toolkit"
2479 default_toolkit=$enable_default_toolkit
2480 if test "$default_toolkit" = ""; then
2481 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2485 # Check whether --enable-xmlj or --disable-xmlj was given.
2486 if test "${enable_xmlj+set}" = set; then
2487 enableval="$enable_xmlj"
2488 case "${enableval}" in
2489 yes) COMPILE_XMLJ=yes ;;
2490 no) COMPILE_XMLJ=no ;;
2491 *) COMPILE_XMLJ=no ;;
2492 esac
2493 else
2494 COMPILE_XMLJ=no
2498 if test "x${COMPILE_XMLJ}" = xyes; then
2499 CREATE_XMLJ_LIBRARY_TRUE=
2500 CREATE_XMLJ_LIBRARY_FALSE='#'
2501 else
2502 CREATE_XMLJ_LIBRARY_TRUE='#'
2503 CREATE_XMLJ_LIBRARY_FALSE=
2507 DEPDIR="${am__leading_dot}deps"
2509 ac_config_commands="$ac_config_commands depfiles"
2512 am_make=${MAKE-make}
2513 cat > confinc << 'END'
2514 am__doit:
2515 @echo done
2516 .PHONY: am__doit
2518 # If we don't find an include directive, just comment out the code.
2519 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2520 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2521 am__include="#"
2522 am__quote=
2523 _am_result=none
2524 # First try GNU make style include.
2525 echo "include confinc" > confmf
2526 # We grep out `Entering directory' and `Leaving directory'
2527 # messages which can occur if `w' ends up in MAKEFLAGS.
2528 # In particular we don't look at `^make:' because GNU make might
2529 # be invoked under some other name (usually "gmake"), in which
2530 # case it prints its new name instead of `make'.
2531 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2532 am__include=include
2533 am__quote=
2534 _am_result=GNU
2536 # Now try BSD make style include.
2537 if test "$am__include" = "#"; then
2538 echo '.include "confinc"' > confmf
2539 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2540 am__include=.include
2541 am__quote="\""
2542 _am_result=BSD
2547 echo "$as_me:$LINENO: result: $_am_result" >&5
2548 echo "${ECHO_T}$_am_result" >&6
2549 rm -f confinc confmf
2551 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2552 if test "${enable_dependency_tracking+set}" = set; then
2553 enableval="$enable_dependency_tracking"
2556 if test "x$enable_dependency_tracking" != xno; then
2557 am_depcomp="$ac_aux_dir/depcomp"
2558 AMDEPBACKSLASH='\'
2562 if test "x$enable_dependency_tracking" != xno; then
2563 AMDEP_TRUE=
2564 AMDEP_FALSE='#'
2565 else
2566 AMDEP_TRUE='#'
2567 AMDEP_FALSE=
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2580 echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606 echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6
2608 else
2609 echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6
2614 if test -z "$ac_cv_prog_CC"; then
2615 ac_ct_CC=$CC
2616 # Extract the first word of "gcc", so it can be a program name with args.
2617 set dummy gcc; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_ac_ct_CC="gcc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2645 echo "${ECHO_T}$ac_ct_CC" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2651 CC=$ac_ct_CC
2652 else
2653 CC="$ac_cv_prog_CC"
2656 if test -z "$CC"; then
2657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2659 set dummy ${ac_tool_prefix}cc; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_CC+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CC="${ac_tool_prefix}cc"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2679 done
2680 done
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686 echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6
2688 else
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2694 if test -z "$ac_cv_prog_CC"; then
2695 ac_ct_CC=$CC
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 if test -n "$ac_ct_CC"; then
2704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_ac_ct_CC="cc"
2714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2717 done
2718 done
2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2725 echo "${ECHO_T}$ac_ct_CC" >&6
2726 else
2727 echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6
2731 CC=$ac_ct_CC
2732 else
2733 CC="$ac_cv_prog_CC"
2737 if test -z "$CC"; then
2738 # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc; ac_word=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 ac_prog_rejected=no
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757 ac_prog_rejected=yes
2758 continue
2760 ac_cv_prog_CC="cc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2764 done
2765 done
2767 if test $ac_prog_rejected = yes; then
2768 # We found a bogon in the path, so make sure we never use it.
2769 set dummy $ac_cv_prog_CC
2770 shift
2771 if test $# != 0; then
2772 # We chose a different compiler from the bogus one.
2773 # However, it has the same basename, so the bogon will be chosen
2774 # first if we set CC to just the basename; use the full file name.
2775 shift
2776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2781 CC=$ac_cv_prog_CC
2782 if test -n "$CC"; then
2783 echo "$as_me:$LINENO: result: $CC" >&5
2784 echo "${ECHO_T}$CC" >&6
2785 else
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in cl
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6
2825 else
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2830 test -n "$CC" && break
2831 done
2833 if test -z "$CC"; then
2834 ac_ct_CC=$CC
2835 for ac_prog in cl
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838 set dummy $ac_prog; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 echo "${ECHO_T}$ac_ct_CC" >&6
2867 else
2868 echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 test -n "$ac_ct_CC" && break
2873 done
2875 CC=$ac_ct_CC
2881 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2882 See \`config.log' for more details." >&5
2883 echo "$as_me: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2887 # Provide some information about the compiler.
2888 echo "$as_me:$LINENO:" \
2889 "checking for C compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2892 (eval $ac_compiler --version </dev/null >&5) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2897 (eval $ac_compiler -v </dev/null >&5) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2902 (eval $ac_compiler -V </dev/null >&5) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2915 main ()
2919 return 0;
2921 _ACEOF
2922 # FIXME: Cleanup?
2923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2924 (eval $ac_link) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 gcc_no_link=no
2929 else
2930 gcc_no_link=yes
2933 if test x$gcc_no_link = xyes; then
2934 # Setting cross_compile will disable run tests; it will
2935 # also disable AC_CHECK_FILE but that's generally
2936 # correct if we can't link.
2937 cross_compiling=yes
2938 EXEEXT=
2939 else
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2948 main ()
2952 return 0;
2954 _ACEOF
2955 ac_clean_files_save=$ac_clean_files
2956 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2957 # Try to create an executable without -o first, disregard a.out.
2958 # It will help us diagnose broken compilers, and finding out an intuition
2959 # of exeext.
2960 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2961 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2962 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2963 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2964 (eval $ac_link_default) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; then
2968 # Find the output, starting from the most likely. This scheme is
2969 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2970 # resort.
2972 # Be careful to initialize this variable, since it used to be cached.
2973 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2974 ac_cv_exeext=
2975 # b.out is created by i960 compilers.
2976 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2978 test -f "$ac_file" || continue
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2982 conftest.$ac_ext )
2983 # This is the source file.
2985 [ab].out )
2986 # We found the default executable, but exeext='' is most
2987 # certainly right.
2988 break;;
2989 *.* )
2990 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 # FIXME: I believe we export ac_cv_exeext for Libtool,
2992 # but it would be cool to find out if it's true. Does anybody
2993 # maintain Libtool? --akim.
2994 export ac_cv_exeext
2995 break;;
2997 break;;
2998 esac
2999 done
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&2;}
3008 { (exit 77); exit 77; }; }
3011 ac_exeext=$ac_cv_exeext
3012 echo "$as_me:$LINENO: result: $ac_file" >&5
3013 echo "${ECHO_T}$ac_file" >&6
3015 # Check the compiler produces executables we can run. If not, either
3016 # the compiler is broken, or we cross compile.
3017 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3018 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3019 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3020 # If not cross compiling, check that we can run a simple program.
3021 if test "$cross_compiling" != yes; then
3022 if { ac_try='./$ac_file'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3028 cross_compiling=no
3029 else
3030 if test "$cross_compiling" = maybe; then
3031 cross_compiling=yes
3032 else
3033 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3046 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3047 ac_clean_files=$ac_clean_files_save
3048 # Check the compiler produces executables we can run. If not, either
3049 # the compiler is broken, or we cross compile.
3050 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3051 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3052 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3053 echo "${ECHO_T}$cross_compiling" >&6
3055 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3056 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3058 (eval $ac_link) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; then
3062 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3063 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3064 # work properly (i.e., refer to `conftest.exe'), while it won't with
3065 # `rm'.
3066 for ac_file in conftest.exe conftest conftest.*; do
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3070 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 export ac_cv_exeext
3072 break;;
3073 * ) break;;
3074 esac
3075 done
3076 else
3077 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&2;}
3081 { (exit 1); exit 1; }; }
3084 rm -f conftest$ac_cv_exeext
3085 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3086 echo "${ECHO_T}$ac_cv_exeext" >&6
3088 rm -f conftest.$ac_ext
3089 EXEEXT=$ac_cv_exeext
3090 ac_exeext=$EXEEXT
3092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3094 if test "${ac_cv_objext+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 rm -f conftest.o conftest.obj
3113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3114 (eval $ac_compile) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; then
3118 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3122 break;;
3123 esac
3124 done
3125 else
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3130 See \`config.log' for more details." >&5
3131 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3132 See \`config.log' for more details." >&2;}
3133 { (exit 1); exit 1; }; }
3136 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3139 echo "${ECHO_T}$ac_cv_objext" >&6
3140 OBJEXT=$ac_cv_objext
3141 ac_objext=$OBJEXT
3142 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3143 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3144 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3155 main ()
3157 #ifndef __GNUC__
3158 choke me
3159 #endif
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167 (eval $ac_compile) 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_c_werror_flag"
3175 || test ! -s conftest.err'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 ac_compiler_gnu=yes
3188 else
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 ac_compiler_gnu=no
3194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3199 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3200 GCC=`test $ac_compiler_gnu = yes && echo yes`
3201 ac_test_CFLAGS=${CFLAGS+set}
3202 ac_save_CFLAGS=$CFLAGS
3203 CFLAGS="-g"
3204 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3205 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3206 if test "${ac_cv_prog_cc_g+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226 (eval $ac_compile) 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag"
3234 || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest.$ac_objext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_prog_cc_g=yes
3247 else
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3251 ac_cv_prog_cc_g=no
3253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3257 if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259 elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3261 CFLAGS="-g -O2"
3262 else
3263 CFLAGS="-g"
3265 else
3266 if test "$GCC" = yes; then
3267 CFLAGS="-O2"
3268 else
3269 CFLAGS=
3272 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3273 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3274 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 ac_cv_prog_cc_stdc=no
3278 ac_save_CC=$CC
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <stdarg.h>
3286 #include <stdio.h>
3287 #include <sys/types.h>
3288 #include <sys/stat.h>
3289 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3290 struct buf { int x; };
3291 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292 static char *e (p, i)
3293 char **p;
3294 int i;
3296 return p[i];
3298 static char *f (char * (*g) (char **, int), char **p, ...)
3300 char *s;
3301 va_list v;
3302 va_start (v,p);
3303 s = g (p, va_arg (v,int));
3304 va_end (v);
3305 return s;
3308 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3309 function prototypes and stuff, but not '\xHH' hex character constants.
3310 These don't provoke an error unfortunately, instead are silently treated
3311 as 'x'. The following induces an error, until -std1 is added to get
3312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3313 array size at least. It's necessary to write '\x00'==0 to get something
3314 that's true only with -std1. */
3315 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3324 main ()
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 return 0;
3330 _ACEOF
3331 # Don't try gcc -ansi; that turns off useful extensions and
3332 # breaks some systems' header files.
3333 # AIX -qlanglvl=ansi
3334 # Ultrix and OSF/1 -std1
3335 # HP-UX 10.20 and later -Ae
3336 # HP-UX older versions -Aa -D_HPUX_SOURCE
3337 # SVR4 -Xc -D__EXTENSIONS__
3338 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC="$ac_save_CC $ac_arg"
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 (eval $ac_try) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_prog_cc_stdc=$ac_arg
3364 break
3365 else
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f conftest.err conftest.$ac_objext
3371 done
3372 rm -f conftest.$ac_ext conftest.$ac_objext
3373 CC=$ac_save_CC
3377 case "x$ac_cv_prog_cc_stdc" in
3378 x|xno)
3379 echo "$as_me:$LINENO: result: none needed" >&5
3380 echo "${ECHO_T}none needed" >&6 ;;
3382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3384 CC="$CC $ac_cv_prog_cc_stdc" ;;
3385 esac
3387 # Some people use a C++ compiler to compile C. Since we use `exit',
3388 # in C++ we need to declare it. In case someone uses the same compiler
3389 # for both compiling C and C++ we need to have the C++ compiler decide
3390 # the declaration of exit, since it's the most demanding environment.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 #ifndef __cplusplus
3393 choke me
3394 #endif
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag"
3406 || test ! -s conftest.err'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 for ac_declaration in \
3419 '' \
3420 'extern "C" void std::exit (int) throw (); using std::exit;' \
3421 'extern "C" void std::exit (int); using std::exit;' \
3422 'extern "C" void exit (int) throw ();' \
3423 'extern "C" void exit (int);' \
3424 'void exit (int);'
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 $ac_declaration
3433 #include <stdlib.h>
3435 main ()
3437 exit (42);
3439 return 0;
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 continue
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_declaration
3480 main ()
3482 exit (42);
3484 return 0;
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489 (eval $ac_compile) 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } &&
3496 { ac_try='test -z "$ac_c_werror_flag"
3497 || test ! -s conftest.err'
3498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 break
3510 else
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516 done
3517 rm -f conftest*
3518 if test -n "$ac_declaration"; then
3519 echo '#ifdef __cplusplus' >>confdefs.h
3520 echo $ac_declaration >>confdefs.h
3521 echo '#endif' >>confdefs.h
3524 else
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 depcc="$CC" am_compiler_list=
3538 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3540 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544 # We make a subdir and do the tests there. Otherwise we can end up
3545 # making bogus files that we don't know about and never remove. For
3546 # instance it was reported that on HP-UX the gcc test will end up
3547 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # in D'.
3549 mkdir conftest.dir
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3553 cd conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3559 # directory.
3560 mkdir sub
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3566 for depmode in $am_compiler_list; do
3567 # Setup a source with many dependencies, because some compilers
3568 # like to wrap large dependency lists on column 80 (with \), and
3569 # we should not choose a depcomp mode which is confused by this.
3571 # We need to recreate these files for each test, as the compiler may
3572 # overwrite some of them when testing with obscure command lines.
3573 # This happens at least with the AIX C compiler.
3574 : > sub/conftest.c
3575 for i in 1 2 3 4 5 6; do
3576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578 # Solaris 8's {/usr,}/bin/sh.
3579 touch sub/conftst$i.h
3580 done
3581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3583 case $depmode in
3584 nosideeffect)
3585 # after this tag, mechanisms are not by side-effect, so they'll
3586 # only be used when explicitly requested
3587 if test "x$enable_dependency_tracking" = xyes; then
3588 continue
3589 else
3590 break
3593 none) break ;;
3594 esac
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this.
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3606 # icc doesn't choke on unknown options, it will just issue warnings
3607 # or remarks (even with -Werror). So we grep stderr for any message
3608 # that says an option was ignored or not supported.
3609 # When given -MP, icc 7.0 and 7.1 complain thusly:
3610 # icc: Command line warning: ignoring option '-M'; no argument required
3611 # The diagnosis changed in icc 8.0:
3612 # icc: Command line remark: option '-MP' not supported
3613 if (grep 'ignoring option' conftest.err ||
3614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3615 am_cv_CC_dependencies_compiler_type=$depmode
3616 break
3619 done
3621 cd ..
3622 rm -rf conftest.dir
3623 else
3624 am_cv_CC_dependencies_compiler_type=none
3628 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3629 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3635 test "x$enable_dependency_tracking" != xno \
3636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3637 am__fastdepCC_TRUE=
3638 am__fastdepCC_FALSE='#'
3639 else
3640 am__fastdepCC_TRUE='#'
3641 am__fastdepCC_FALSE=
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3657 if test -z "$CPP"; then
3658 if test "${ac_cv_prog_CPP+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 # Double quotes because CPP needs to be expanded
3662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3664 ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3667 # Use a header file that comes with gcc, so configuring glibc
3668 # with a fresh cross-compiler works.
3669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670 # <limits.h> exists even on freestanding compilers.
3671 # On the NeXT, cc -E runs the code through the compiler's parser,
3672 # not just through cpp. "Syntax error" is here to catch this case.
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3684 Syntax error
3685 _ACEOF
3686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } >/dev/null; then
3694 if test -s conftest.err; then
3695 ac_cpp_err=$ac_c_preproc_warn_flag
3696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3697 else
3698 ac_cpp_err=
3700 else
3701 ac_cpp_err=yes
3703 if test -z "$ac_cpp_err"; then
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 # Broken: fails on valid input.
3710 continue
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether non-existent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3735 else
3736 ac_cpp_err=
3738 else
3739 ac_cpp_err=yes
3741 if test -z "$ac_cpp_err"; then
3742 # Broken: success on invalid input.
3743 continue
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 # Passes both tests.
3749 ac_preproc_ok=:
3750 break
3752 rm -f conftest.err conftest.$ac_ext
3754 done
3755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3756 rm -f conftest.err conftest.$ac_ext
3757 if $ac_preproc_ok; then
3758 break
3761 done
3762 ac_cv_prog_CPP=$CPP
3765 CPP=$ac_cv_prog_CPP
3766 else
3767 ac_cv_prog_CPP=$CPP
3769 echo "$as_me:$LINENO: result: $CPP" >&5
3770 echo "${ECHO_T}$CPP" >&6
3771 ac_preproc_ok=false
3772 for ac_c_preproc_warn_flag in '' yes
3774 # Use a header file that comes with gcc, so configuring glibc
3775 # with a fresh cross-compiler works.
3776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3777 # <limits.h> exists even on freestanding compilers.
3778 # On the NeXT, cc -E runs the code through the compiler's parser,
3779 # not just through cpp. "Syntax error" is here to catch this case.
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3786 #ifdef __STDC__
3787 # include <limits.h>
3788 #else
3789 # include <assert.h>
3790 #endif
3791 Syntax error
3792 _ACEOF
3793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } >/dev/null; then
3801 if test -s conftest.err; then
3802 ac_cpp_err=$ac_c_preproc_warn_flag
3803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3804 else
3805 ac_cpp_err=
3807 else
3808 ac_cpp_err=yes
3810 if test -z "$ac_cpp_err"; then
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 # Broken: fails on valid input.
3817 continue
3819 rm -f conftest.err conftest.$ac_ext
3821 # OK, works on sane cases. Now check whether non-existent headers
3822 # can be detected and how.
3823 cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h. */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3829 #include <ac_nonexistent.h>
3830 _ACEOF
3831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } >/dev/null; then
3839 if test -s conftest.err; then
3840 ac_cpp_err=$ac_c_preproc_warn_flag
3841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3842 else
3843 ac_cpp_err=
3845 else
3846 ac_cpp_err=yes
3848 if test -z "$ac_cpp_err"; then
3849 # Broken: success on invalid input.
3850 continue
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 # Passes both tests.
3856 ac_preproc_ok=:
3857 break
3859 rm -f conftest.err conftest.$ac_ext
3861 done
3862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3863 rm -f conftest.err conftest.$ac_ext
3864 if $ac_preproc_ok; then
3866 else
3867 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3868 See \`config.log' for more details." >&5
3869 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3870 See \`config.log' for more details." >&2;}
3871 { (exit 1); exit 1; }; }
3874 ac_ext=c
3875 ac_cpp='$CPP $CPPFLAGS'
3876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 echo "$as_me:$LINENO: checking for egrep" >&5
3882 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3883 if test "${ac_cv_prog_egrep+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3887 then ac_cv_prog_egrep='grep -E'
3888 else ac_cv_prog_egrep='egrep'
3891 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3892 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3893 EGREP=$ac_cv_prog_egrep
3896 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3897 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3898 if test "${ac_cv_header_stdc+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <stdlib.h>
3908 #include <stdarg.h>
3909 #include <string.h>
3910 #include <float.h>
3913 main ()
3917 return 0;
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922 (eval $ac_compile) 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_c_werror_flag"
3930 || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try='test -s conftest.$ac_objext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_cv_header_stdc=yes
3943 else
3944 echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 ac_cv_header_stdc=no
3949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3951 if test $ac_cv_header_stdc = yes; then
3952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <string.h>
3961 _ACEOF
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 $EGREP "memchr" >/dev/null 2>&1; then
3965 else
3966 ac_cv_header_stdc=no
3968 rm -f conftest*
3972 if test $ac_cv_header_stdc = yes; then
3973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 #include <stdlib.h>
3982 _ACEOF
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984 $EGREP "free" >/dev/null 2>&1; then
3986 else
3987 ac_cv_header_stdc=no
3989 rm -f conftest*
3993 if test $ac_cv_header_stdc = yes; then
3994 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3995 if test "$cross_compiling" = yes; then
3997 else
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h. */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #include <ctype.h>
4005 #if ((' ' & 0x0FF) == 0x020)
4006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4008 #else
4009 # define ISLOWER(c) \
4010 (('a' <= (c) && (c) <= 'i') \
4011 || ('j' <= (c) && (c) <= 'r') \
4012 || ('s' <= (c) && (c) <= 'z'))
4013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4014 #endif
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4018 main ()
4020 int i;
4021 for (i = 0; i < 256; i++)
4022 if (XOR (islower (i), ISLOWER (i))
4023 || toupper (i) != TOUPPER (i))
4024 exit(2);
4025 exit (0);
4027 _ACEOF
4028 rm -f conftest$ac_exeext
4029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4040 else
4041 echo "$as_me: program exited with status $ac_status" >&5
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 ( exit $ac_status )
4046 ac_cv_header_stdc=no
4048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4053 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4054 if test $ac_cv_header_stdc = yes; then
4056 cat >>confdefs.h <<\_ACEOF
4057 #define STDC_HEADERS 1
4058 _ACEOF
4062 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4073 inttypes.h stdint.h unistd.h
4075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076 echo "$as_me:$LINENO: checking for $ac_header" >&5
4077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 cat >conftest.$ac_ext <<_ACEOF
4082 /* confdefs.h. */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 $ac_includes_default
4089 #include <$ac_header>
4090 _ACEOF
4091 rm -f conftest.$ac_objext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -z "$ac_c_werror_flag"
4101 || test ! -s conftest.err'
4102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; } &&
4107 { ac_try='test -s conftest.$ac_objext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 (eval $ac_try) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 eval "$as_ac_Header=yes"
4114 else
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 eval "$as_ac_Header=no"
4120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4125 cat >>confdefs.h <<_ACEOF
4126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4127 _ACEOF
4131 done
4134 # Check whether --enable-alsa or --disable-alsa was given.
4135 if test "${enable_alsa+set}" = set; then
4136 enableval="$enable_alsa"
4137 case "${enableval}" in
4138 yes) COMPILE_ALSA=yes ;;
4139 no) COMPILE_ALSA=no ;;
4140 *) COMPILE_ALSA=yes ;;
4141 esac
4142 else
4144 for ac_header in alsa/asoundlib.h
4146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4148 echo "$as_me:$LINENO: checking for $ac_header" >&5
4149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4155 else
4156 # Is the header compilable?
4157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4159 cat >conftest.$ac_ext <<_ACEOF
4160 /* confdefs.h. */
4161 _ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 $ac_includes_default
4166 #include <$ac_header>
4167 _ACEOF
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_header_compiler=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_header_compiler=no
4197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4199 echo "${ECHO_T}$ac_header_compiler" >&6
4201 # Is the header present?
4202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <$ac_header>
4211 _ACEOF
4212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null; then
4220 if test -s conftest.err; then
4221 ac_cpp_err=$ac_c_preproc_warn_flag
4222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4223 else
4224 ac_cpp_err=
4226 else
4227 ac_cpp_err=yes
4229 if test -z "$ac_cpp_err"; then
4230 ac_header_preproc=yes
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 ac_header_preproc=no
4237 rm -f conftest.err conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4239 echo "${ECHO_T}$ac_header_preproc" >&6
4241 # So? What about this header?
4242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4243 yes:no: )
4244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4248 ac_header_preproc=yes
4250 no:yes:* )
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4264 cat <<\_ASBOX
4265 ## -------------------------------- ##
4266 ## Report this to classpath@gnu.org ##
4267 ## -------------------------------- ##
4268 _ASBOX
4270 sed "s/^/$as_me: WARNING: /" >&2
4272 esac
4273 echo "$as_me:$LINENO: checking for $ac_header" >&5
4274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 eval "$as_ac_Header=\$ac_header_preproc"
4280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 _ACEOF
4288 echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4289 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
4290 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 ac_check_lib_save_LIBS=$LIBS
4294 LIBS="-lasound $LIBS"
4295 if test x$gcc_no_link = xyes; then
4296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4298 { (exit 1); exit 1; }; }
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 #ifdef __cplusplus
4309 extern "C"
4310 #endif
4311 /* We use char because int might match the return type of a gcc2
4312 builtin and then its argument prototype would still apply. */
4313 char snd_seq_open ();
4315 main ()
4317 snd_seq_open ();
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4324 (eval $ac_link) 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag"
4332 || test ! -s conftest.err'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try='test -s conftest$ac_exeext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_lib_asound_snd_seq_open=yes
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 ac_cv_lib_asound_snd_seq_open=no
4351 rm -f conftest.err conftest.$ac_objext \
4352 conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4355 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4356 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4357 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4358 COMPILE_ALSA=yes
4359 else
4360 COMPILE_ALSA=no
4363 else
4364 COMPILE_ALSA=no
4367 done
4372 if test "x${COMPILE_ALSA}" = xyes; then
4373 CREATE_ALSA_LIBRARIES_TRUE=
4374 CREATE_ALSA_LIBRARIES_FALSE='#'
4375 else
4376 CREATE_ALSA_LIBRARIES_TRUE='#'
4377 CREATE_ALSA_LIBRARIES_FALSE=
4381 # Check whether --enable-dssi or --disable-dssi was given.
4382 if test "${enable_dssi+set}" = set; then
4383 enableval="$enable_dssi"
4384 case "${enableval}" in
4385 yes) COMPILE_DSSI=yes ;;
4386 no) COMPILE_DSSI=no ;;
4387 *) COMPILE_DSSI=yes ;;
4388 esac
4389 else
4390 COMPILE_DSSI=no
4392 for ac_header in dssi.h
4394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396 echo "$as_me:$LINENO: checking for $ac_header" >&5
4397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403 else
4404 # Is the header compilable?
4405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 $ac_includes_default
4414 #include <$ac_header>
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -z "$ac_c_werror_flag"
4426 || test ! -s conftest.err'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; } &&
4432 { ac_try='test -s conftest.$ac_objext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_header_compiler=yes
4439 else
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 ac_header_compiler=no
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447 echo "${ECHO_T}$ac_header_compiler" >&6
4449 # Is the header present?
4450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <$ac_header>
4459 _ACEOF
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_c_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4471 else
4472 ac_cpp_err=
4474 else
4475 ac_cpp_err=yes
4477 if test -z "$ac_cpp_err"; then
4478 ac_header_preproc=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_header_preproc=no
4485 rm -f conftest.err conftest.$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4487 echo "${ECHO_T}$ac_header_preproc" >&6
4489 # So? What about this header?
4490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4491 yes:no: )
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4496 ac_header_preproc=yes
4498 no:yes:* )
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4512 cat <<\_ASBOX
4513 ## -------------------------------- ##
4514 ## Report this to classpath@gnu.org ##
4515 ## -------------------------------- ##
4516 _ASBOX
4518 sed "s/^/$as_me: WARNING: /" >&2
4520 esac
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 eval "$as_ac_Header=\$ac_header_preproc"
4528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533 cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535 _ACEOF
4538 for ac_header in jack/jack.h
4540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4542 echo "$as_me:$LINENO: checking for $ac_header" >&5
4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549 else
4550 # Is the header compilable?
4551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4560 #include <$ac_header>
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 (eval $ac_compile) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_c_werror_flag"
4572 || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_header_compiler=yes
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_header_compiler=no
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4593 echo "${ECHO_T}$ac_header_compiler" >&6
4595 # Is the header present?
4596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4598 cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h. */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 #include <$ac_header>
4605 _ACEOF
4606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4608 ac_status=$?
4609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } >/dev/null; then
4614 if test -s conftest.err; then
4615 ac_cpp_err=$ac_c_preproc_warn_flag
4616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4617 else
4618 ac_cpp_err=
4620 else
4621 ac_cpp_err=yes
4623 if test -z "$ac_cpp_err"; then
4624 ac_header_preproc=yes
4625 else
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_header_preproc=no
4631 rm -f conftest.err conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4633 echo "${ECHO_T}$ac_header_preproc" >&6
4635 # So? What about this header?
4636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4637 yes:no: )
4638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4642 ac_header_preproc=yes
4644 no:yes:* )
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4658 cat <<\_ASBOX
4659 ## -------------------------------- ##
4660 ## Report this to classpath@gnu.org ##
4661 ## -------------------------------- ##
4662 _ASBOX
4664 sed "s/^/$as_me: WARNING: /" >&2
4666 esac
4667 echo "$as_me:$LINENO: checking for $ac_header" >&5
4668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 else
4672 eval "$as_ac_Header=\$ac_header_preproc"
4674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4679 cat >>confdefs.h <<_ACEOF
4680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 _ACEOF
4682 COMPILE_DSSI=yes
4685 done
4689 done
4694 if test "x${COMPILE_DSSI}" = xyes; then
4695 CREATE_DSSI_LIBRARIES_TRUE=
4696 CREATE_DSSI_LIBRARIES_FALSE='#'
4697 else
4698 CREATE_DSSI_LIBRARIES_TRUE='#'
4699 CREATE_DSSI_LIBRARIES_FALSE=
4703 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4704 if test "${enable_gtk_peer+set}" = set; then
4705 enableval="$enable_gtk_peer"
4706 case "${enableval}" in
4707 yes) COMPILE_GTK_PEER=yes ;;
4708 no) COMPILE_GTK_PEER=no ;;
4709 *) COMPILE_GTK_PEER=yes ;;
4710 esac
4711 else
4712 COMPILE_GTK_PEER=yes
4716 if test "x${COMPILE_GTK_PEER}" = xyes; then
4717 CREATE_GTK_PEER_LIBRARIES_TRUE=
4718 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4719 else
4720 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4721 CREATE_GTK_PEER_LIBRARIES_FALSE=
4725 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4726 if test "${enable_gtk_peers+set}" = set; then
4727 enableval="$enable_gtk_peers"
4728 { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4729 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4730 { (exit 1); exit 1; }; }
4733 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4734 if test "${enable_qt_peer+set}" = set; then
4735 enableval="$enable_qt_peer"
4736 case "${enableval}" in
4737 yes) COMPILE_QT_PEER=yes ;;
4738 no) COMPILE_QT_PEER=no ;;
4739 *) COMPILE_QT_PEER=yes ;;
4740 esac
4741 else
4742 COMPILE_QT_PEER=no
4746 if test "x${COMPILE_QT_PEER}" = xyes; then
4747 CREATE_QT_PEER_LIBRARIES_TRUE=
4748 CREATE_QT_PEER_LIBRARIES_FALSE='#'
4749 else
4750 CREATE_QT_PEER_LIBRARIES_TRUE='#'
4751 CREATE_QT_PEER_LIBRARIES_FALSE=
4755 # Check whether --enable-plugin or --disable-plugin was given.
4756 if test "${enable_plugin+set}" = set; then
4757 enableval="$enable_plugin"
4758 case "${enableval}" in
4759 yes) COMPILE_PLUGIN=yes ;;
4760 no) COMPILE_PLUGIN=no ;;
4761 *) COMPILE_PLUGIN=yes ;;
4762 esac
4763 else
4764 COMPILE_PLUGIN=yes
4768 if test "x${COMPILE_PLUGIN}" = xyes; then
4769 CREATE_PLUGIN_TRUE=
4770 CREATE_PLUGIN_FALSE='#'
4771 else
4772 CREATE_PLUGIN_TRUE='#'
4773 CREATE_PLUGIN_FALSE=
4778 multi_os_directory=`$CC -print-multi-os-directory`
4779 case $multi_os_directory in
4780 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
4781 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
4782 esac
4787 # Check whether --with-native-libdir or --without-native-libdir was given.
4788 if test "${with_native_libdir+set}" = set; then
4789 withval="$with_native_libdir"
4791 nativeexeclibdir=${withval}
4793 else
4795 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
4802 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4803 if test "${with_glibj_dir+set}" = set; then
4804 withval="$with_glibj_dir"
4806 glibjdir=${withval}
4808 else
4810 glibjdir='${datadir}/${PACKAGE}'
4817 # Check whether --with-vm or --without-vm was given.
4818 if test "${with_vm+set}" = set; then
4819 withval="$with_vm"
4821 VM_BINARY=${withval}
4823 else
4825 VM_BINARY='${prefix}/bin/jamvm'
4831 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4832 if test "${enable_regen_headers+set}" = set; then
4833 enableval="$enable_regen_headers"
4834 case "${enableval}" in
4835 yes) REGENERATE_JNI_HEADERS=yes ;;
4836 no) REGENERATE_JNI_HEADERS=no ;;
4837 *) REGENERATE_JNI_HEADERS=no ;;
4838 esac
4839 else
4840 REGENERATE_JNI_HEADERS=no
4844 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4845 CREATE_JNI_HEADERS_TRUE=
4846 CREATE_JNI_HEADERS_FALSE='#'
4847 else
4848 CREATE_JNI_HEADERS_TRUE='#'
4849 CREATE_JNI_HEADERS_FALSE=
4853 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4854 if test "${enable_tool_wrappers+set}" = set; then
4855 enableval="$enable_tool_wrappers"
4856 case x"${enableval}" in
4857 xyes)
4858 COMPILE_WRAPPERS=yes;
4860 for ac_header in ltdl.h
4862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4864 echo "$as_me:$LINENO: checking for $ac_header" >&5
4865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4871 else
4872 # Is the header compilable?
4873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4875 cat >conftest.$ac_ext <<_ACEOF
4876 /* confdefs.h. */
4877 _ACEOF
4878 cat confdefs.h >>conftest.$ac_ext
4879 cat >>conftest.$ac_ext <<_ACEOF
4880 /* end confdefs.h. */
4881 $ac_includes_default
4882 #include <$ac_header>
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4887 ac_status=$?
4888 grep -v '^ *+' conftest.er1 >conftest.err
4889 rm -f conftest.er1
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 ac_header_compiler=yes
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 ac_header_compiler=no
4913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4915 echo "${ECHO_T}$ac_header_compiler" >&6
4917 # Is the header present?
4918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 #include <$ac_header>
4927 _ACEOF
4928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4930 ac_status=$?
4931 grep -v '^ *+' conftest.er1 >conftest.err
4932 rm -f conftest.er1
4933 cat conftest.err >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } >/dev/null; then
4936 if test -s conftest.err; then
4937 ac_cpp_err=$ac_c_preproc_warn_flag
4938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4939 else
4940 ac_cpp_err=
4942 else
4943 ac_cpp_err=yes
4945 if test -z "$ac_cpp_err"; then
4946 ac_header_preproc=yes
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ac_header_preproc=no
4953 rm -f conftest.err conftest.$ac_ext
4954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4955 echo "${ECHO_T}$ac_header_preproc" >&6
4957 # So? What about this header?
4958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4959 yes:no: )
4960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4964 ac_header_preproc=yes
4966 no:yes:* )
4967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4980 cat <<\_ASBOX
4981 ## -------------------------------- ##
4982 ## Report this to classpath@gnu.org ##
4983 ## -------------------------------- ##
4984 _ASBOX
4986 sed "s/^/$as_me: WARNING: /" >&2
4988 esac
4989 echo "$as_me:$LINENO: checking for $ac_header" >&5
4990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 eval "$as_ac_Header=\$ac_header_preproc"
4996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5001 cat >>confdefs.h <<_ACEOF
5002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5003 _ACEOF
5005 else
5006 { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
5007 echo "$as_me: error: cannot find ltdl.h" >&2;}
5008 { (exit 1); exit 1; }; }
5011 done
5014 echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
5015 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6
5016 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 ac_check_lib_save_LIBS=$LIBS
5020 LIBS="-lltdl $LIBS"
5021 if test x$gcc_no_link = xyes; then
5022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5023 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5024 { (exit 1); exit 1; }; }
5026 cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h. */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5033 /* Override any gcc2 internal prototype to avoid an error. */
5034 #ifdef __cplusplus
5035 extern "C"
5036 #endif
5037 /* We use char because int might match the return type of a gcc2
5038 builtin and then its argument prototype would still apply. */
5039 char lt_dlopen ();
5041 main ()
5043 lt_dlopen ();
5045 return 0;
5047 _ACEOF
5048 rm -f conftest.$ac_objext conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050 (eval $ac_link) 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try='test -z "$ac_c_werror_flag"
5058 || test ! -s conftest.err'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 (eval $ac_try) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; } &&
5064 { ac_try='test -s conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_lib_ltdl_lt_dlopen=yes
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 ac_cv_lib_ltdl_lt_dlopen=no
5077 rm -f conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5082 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6
5083 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define HAVE_LIBLTDL 1
5086 _ACEOF
5088 LIBS="-lltdl $LIBS"
5090 else
5091 { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
5092 echo "$as_me: error: cannot find libltdl" >&2;}
5093 { (exit 1); exit 1; }; }
5097 xno) COMPILE_WRAPPERS=no ;;
5098 x) COMPILE_WRAPPERS=yes ;;
5099 *) COMPILE_WRAPPERS=yes ;;
5100 esac
5101 else
5102 COMPILE_WRAPPERS=no
5106 if test "x${COMPILE_WRAPPERS}" = xyes; then
5107 CREATE_WRAPPERS_TRUE=
5108 CREATE_WRAPPERS_FALSE='#'
5109 else
5110 CREATE_WRAPPERS_TRUE='#'
5111 CREATE_WRAPPERS_FALSE=
5115 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5116 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5117 LN_S=$as_ln_s
5118 if test "$LN_S" = "ln -s"; then
5119 echo "$as_me:$LINENO: result: yes" >&5
5120 echo "${ECHO_T}yes" >&6
5121 else
5122 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5123 echo "${ECHO_T}no, using $LN_S" >&6
5126 # Find a good install program. We prefer a C program (faster),
5127 # so one script is as good as another. But avoid the broken or
5128 # incompatible versions:
5129 # SysV /etc/install, /usr/sbin/install
5130 # SunOS /usr/etc/install
5131 # IRIX /sbin/install
5132 # AIX /bin/install
5133 # AmigaOS /C/install, which installs bootblocks on floppy discs
5134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5137 # OS/2's system install, which has a completely different semantic
5138 # ./install, which can be erroneously created by make from ./install.sh.
5139 # Reject install programs that cannot install multiple files.
5140 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5141 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5142 if test -z "$INSTALL"; then
5143 if test "${ac_cv_path_install+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 # Account for people who put trailing slashes in PATH elements.
5152 case $as_dir/ in
5153 ./ | .// | /cC/* | \
5154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5155 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5156 /usr/ucb/* ) ;;
5158 # OSF1 and SCO ODT 3.0 have their own names for install.
5159 # Don't use installbsd from OSF since it installs stuff as root
5160 # by default.
5161 for ac_prog in ginstall scoinst install; do
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5164 if test $ac_prog = install &&
5165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5166 # AIX install. It has an incompatible calling convention.
5168 elif test $ac_prog = install &&
5169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5170 # program-specific install script used by HP pwplus--don't use.
5172 else
5173 rm -rf conftest.one conftest.two conftest.dir
5174 echo one > conftest.one
5175 echo two > conftest.two
5176 mkdir conftest.dir
5177 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5178 test -s conftest.one && test -s conftest.two &&
5179 test -s conftest.dir/conftest.one &&
5180 test -s conftest.dir/conftest.two
5181 then
5182 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5183 break 3
5187 done
5188 done
5190 esac
5191 done
5193 rm -rf conftest.one conftest.two conftest.dir
5196 if test "${ac_cv_path_install+set}" = set; then
5197 INSTALL=$ac_cv_path_install
5198 else
5199 # As a last resort, use the slow shell script. Don't cache a
5200 # value for INSTALL within a source directory, because that will
5201 # break other packages using the cache if that directory is
5202 # removed, or if the value is a relative name.
5203 INSTALL=$ac_install_sh
5206 echo "$as_me:$LINENO: result: $INSTALL" >&5
5207 echo "${ECHO_T}$INSTALL" >&6
5209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5210 # It thinks the first close brace ends the variable substitution.
5211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5219 # Check whether --enable-static or --disable-static was given.
5220 if test "${enable_static+set}" = set; then
5221 enableval="$enable_static"
5222 p=${PACKAGE-default}
5223 case $enableval in
5224 yes) enable_static=yes ;;
5225 no) enable_static=no ;;
5227 enable_static=no
5228 # Look at the argument we got. We use all the common list separators.
5229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5230 for pkg in $enableval; do
5231 IFS="$lt_save_ifs"
5232 if test "X$pkg" = "X$p"; then
5233 enable_static=yes
5235 done
5236 IFS="$lt_save_ifs"
5238 esac
5239 else
5240 enable_static=no
5252 macro_version='2.1a'
5253 macro_revision='1.2435'
5266 ltmain="$ac_aux_dir/ltmain.sh"
5268 # Set options
5270 enable_dlopen=no
5273 enable_win32_dll=no
5276 # Check whether --enable-shared or --disable-shared was given.
5277 if test "${enable_shared+set}" = set; then
5278 enableval="$enable_shared"
5279 p=${PACKAGE-default}
5280 case $enableval in
5281 yes) enable_shared=yes ;;
5282 no) enable_shared=no ;;
5284 enable_shared=no
5285 # Look at the argument we got. We use all the common list separators.
5286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5287 for pkg in $enableval; do
5288 IFS="$lt_save_ifs"
5289 if test "X$pkg" = "X$p"; then
5290 enable_shared=yes
5292 done
5293 IFS="$lt_save_ifs"
5295 esac
5296 else
5297 enable_shared=yes
5309 # Check whether --with-pic or --without-pic was given.
5310 if test "${with_pic+set}" = set; then
5311 withval="$with_pic"
5312 pic_mode="$withval"
5313 else
5314 pic_mode=default
5317 test -z "$pic_mode" && pic_mode=default
5325 # Check whether --enable-fast-install or --disable-fast-install was given.
5326 if test "${enable_fast_install+set}" = set; then
5327 enableval="$enable_fast_install"
5328 p=${PACKAGE-default}
5329 case $enableval in
5330 yes) enable_fast_install=yes ;;
5331 no) enable_fast_install=no ;;
5333 enable_fast_install=no
5334 # Look at the argument we got. We use all the common list separators.
5335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5336 for pkg in $enableval; do
5337 IFS="$lt_save_ifs"
5338 if test "X$pkg" = "X$p"; then
5339 enable_fast_install=yes
5341 done
5342 IFS="$lt_save_ifs"
5344 esac
5345 else
5346 enable_fast_install=yes
5356 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5357 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5358 if test "${lt_cv_path_SED+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 # Loop through the user's path and test for sed and gsed.
5362 # Then use that list of sed's as ones to test for truncation.
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for lt_ac_prog in sed gsed; do
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5371 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5373 done
5374 done
5375 done
5376 IFS=$as_save_IFS
5377 lt_ac_max=0
5378 lt_ac_count=0
5379 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5380 # along with /bin/sed that truncates output.
5381 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5382 test ! -f $lt_ac_sed && continue
5383 cat /dev/null > conftest.in
5384 lt_ac_count=0
5385 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5386 # Check for GNU sed and select it if it is found.
5387 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5388 lt_cv_path_SED=$lt_ac_sed
5389 break
5391 while true; do
5392 cat conftest.in conftest.in >conftest.tmp
5393 mv conftest.tmp conftest.in
5394 cp conftest.in conftest.nl
5395 echo >>conftest.nl
5396 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5397 cmp -s conftest.out conftest.nl || break
5398 # 10000 chars as input seems more than enough
5399 test $lt_ac_count -gt 10 && break
5400 lt_ac_count=`expr $lt_ac_count + 1`
5401 if test $lt_ac_count -gt $lt_ac_max; then
5402 lt_ac_max=$lt_ac_count
5403 lt_cv_path_SED=$lt_ac_sed
5405 done
5406 done
5410 SED=$lt_cv_path_SED
5412 echo "$as_me:$LINENO: result: $SED" >&5
5413 echo "${ECHO_T}$SED" >&6
5415 test -z "$SED" && SED=sed
5416 Xsed="$SED -e 1s/^X//"
5428 echo "$as_me:$LINENO: checking for fgrep" >&5
5429 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5430 if test "${ac_cv_prog_fgrep+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5434 then ac_cv_prog_fgrep='grep -F'
5435 else ac_cv_prog_fgrep='fgrep'
5438 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5439 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5440 FGREP=$ac_cv_prog_fgrep
5443 test -z "$GREP" && GREP=grep
5463 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5464 if test "${with_gnu_ld+set}" = set; then
5465 withval="$with_gnu_ld"
5466 test "$withval" = no || with_gnu_ld=yes
5467 else
5468 with_gnu_ld=no
5470 ac_prog=ld
5471 if test "$GCC" = yes; then
5472 # Check if gcc -print-prog-name=ld gives a path.
5473 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5474 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5475 case $host in
5476 *-*-mingw*)
5477 # gcc leaves a trailing carriage return which upsets mingw
5478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5481 esac
5482 case $ac_prog in
5483 # Accept absolute paths.
5484 [\\/]* | ?:[\\/]*)
5485 re_direlt='/[^/][^/]*/\.\./'
5486 # Canonicalize the pathname of ld
5487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5490 done
5491 test -z "$LD" && LD="$ac_prog"
5494 # If it fails, then pretend we aren't using GCC.
5495 ac_prog=ld
5498 # If it is relative, then search for the first ld in PATH.
5499 with_gnu_ld=unknown
5501 esac
5502 elif test "$with_gnu_ld" = yes; then
5503 echo "$as_me:$LINENO: checking for GNU ld" >&5
5504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5505 else
5506 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5509 if test "${lt_cv_path_LD+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 if test -z "$LD"; then
5513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5514 for ac_dir in $PATH; do
5515 IFS="$lt_save_ifs"
5516 test -z "$ac_dir" && ac_dir=.
5517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5518 lt_cv_path_LD="$ac_dir/$ac_prog"
5519 # Check to see if the program is GNU ld. I'd rather use --version,
5520 # but apparently some variants of GNU ld only accept -v.
5521 # Break only if it was the GNU/non-GNU ld that we prefer.
5522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5523 *GNU* | *'with BFD'*)
5524 test "$with_gnu_ld" != no && break
5527 test "$with_gnu_ld" != yes && break
5529 esac
5531 done
5532 IFS="$lt_save_ifs"
5533 else
5534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5538 LD="$lt_cv_path_LD"
5539 if test -n "$LD"; then
5540 echo "$as_me:$LINENO: result: $LD" >&5
5541 echo "${ECHO_T}$LD" >&6
5542 else
5543 echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6
5546 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5547 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5548 { (exit 1); exit 1; }; }
5549 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5550 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5551 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5555 case `$LD -v 2>&1 </dev/null` in
5556 *GNU* | *'with BFD'*)
5557 lt_cv_prog_gnu_ld=yes
5560 lt_cv_prog_gnu_ld=no
5562 esac
5564 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5565 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5566 with_gnu_ld=$lt_cv_prog_gnu_ld
5577 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5578 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5579 if test "${lt_cv_path_NM+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 if test -n "$NM"; then
5583 # Let the user override the test.
5584 lt_cv_path_NM="$NM"
5585 else
5586 lt_nm_to_check="${ac_tool_prefix}nm"
5587 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5588 lt_nm_to_check="$lt_nm_to_check nm"
5590 for lt_tmp_nm in $lt_nm_to_check; do
5591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5592 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5593 IFS="$lt_save_ifs"
5594 test -z "$ac_dir" && ac_dir=.
5595 tmp_nm="$ac_dir/$lt_tmp_nm"
5596 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5597 # Check to see if the nm accepts a BSD-compat flag.
5598 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5599 # nm: unknown option "B" ignored
5600 # Tru64's nm complains that /dev/null is an invalid object file
5601 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5602 */dev/null* | *'Invalid file or object type'*)
5603 lt_cv_path_NM="$tmp_nm -B"
5604 break
5607 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5608 */dev/null*)
5609 lt_cv_path_NM="$tmp_nm -p"
5610 break
5613 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5614 continue # so that we can try to find one that supports BSD flags
5616 esac
5618 esac
5620 done
5621 IFS="$lt_save_ifs"
5622 done
5623 : ${lt_cv_path_NM=no}
5626 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5627 echo "${ECHO_T}$lt_cv_path_NM" >&6
5628 if test "$lt_cv_path_NM" != "no"; then
5629 NM="$lt_cv_path_NM"
5630 else
5631 # Didn't find any BSD compatible name lister, look for dumpbin.
5632 if test -n "$ac_tool_prefix"; then
5633 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5637 echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if test -n "$DUMPBIN"; then
5643 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5656 done
5657 done
5661 DUMPBIN=$ac_cv_prog_DUMPBIN
5662 if test -n "$DUMPBIN"; then
5663 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5664 echo "${ECHO_T}$DUMPBIN" >&6
5665 else
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5670 test -n "$DUMPBIN" && break
5671 done
5673 if test -z "$DUMPBIN"; then
5674 ac_ct_DUMPBIN=$DUMPBIN
5675 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678 set dummy $ac_prog; ac_word=$2
5679 echo "$as_me:$LINENO: checking for $ac_word" >&5
5680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 if test -n "$ac_ct_DUMPBIN"; then
5685 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5703 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5704 if test -n "$ac_ct_DUMPBIN"; then
5705 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5706 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5707 else
5708 echo "$as_me:$LINENO: result: no" >&5
5709 echo "${ECHO_T}no" >&6
5712 test -n "$ac_ct_DUMPBIN" && break
5713 done
5714 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5716 DUMPBIN=$ac_ct_DUMPBIN
5720 if test "$DUMPBIN" != ":"; then
5721 NM="$DUMPBIN"
5724 test -z "$NM" && NM=nm
5731 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5732 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5733 if test "${lt_cv_nm_interface+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 lt_cv_nm_interface="BSD nm"
5737 echo "int some_variable = 0;" > conftest.$ac_ext
5738 (eval echo "\"\$as_me:5738: $ac_compile\"" >&5)
5739 (eval "$ac_compile" 2>conftest.err)
5740 cat conftest.err >&5
5741 (eval echo "\"\$as_me:5741: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5742 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5743 cat conftest.err >&5
5744 (eval echo "\"\$as_me:5744: output\"" >&5)
5745 cat conftest.out >&5
5746 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5747 lt_cv_nm_interface="MS dumpbin"
5749 rm -f conftest*
5751 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5752 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5754 # find the maximum length of command line arguments
5755 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5756 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5757 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5761 teststring="ABCD"
5763 case $build_os in
5764 msdosdjgpp*)
5765 # On DJGPP, this test can blow up pretty badly due to problems in libc
5766 # (any single argument exceeding 2000 bytes causes a buffer overrun
5767 # during glob expansion). Even if it were fixed, the result of this
5768 # check would be larger than it should be.
5769 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5772 gnu*)
5773 # Under GNU Hurd, this test is not required because there is
5774 # no limit to the length of command line arguments.
5775 # Libtool will interpret -1 as no limit whatsoever
5776 lt_cv_sys_max_cmd_len=-1;
5779 cygwin* | mingw*)
5780 # On Win9x/ME, this test blows up -- it succeeds, but takes
5781 # about 5 minutes as the teststring grows exponentially.
5782 # Worse, since 9x/ME are not pre-emptively multitasking,
5783 # you end up with a "frozen" computer, even though with patience
5784 # the test eventually succeeds (with a max line length of 256k).
5785 # Instead, let's just punt: use the minimum linelength reported by
5786 # all of the supported platforms: 8192 (on NT/2K/XP).
5787 lt_cv_sys_max_cmd_len=8192;
5790 amigaos*)
5791 # On AmigaOS with pdksh, this test takes hours, literally.
5792 # So we just punt and use a minimum line length of 8192.
5793 lt_cv_sys_max_cmd_len=8192;
5796 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5797 # This has been around since 386BSD, at least. Likely further.
5798 if test -x /sbin/sysctl; then
5799 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5800 elif test -x /usr/sbin/sysctl; then
5801 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5802 else
5803 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5805 # And add a safety zone
5806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5810 interix*)
5811 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5812 lt_cv_sys_max_cmd_len=196608
5815 osf*)
5816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5818 # nice to cause kernel panics so lets avoid the loop below.
5819 # First set a reasonable default.
5820 lt_cv_sys_max_cmd_len=16384
5822 if test -x /sbin/sysconfig; then
5823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5824 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5825 esac
5828 sco3.2v5*)
5829 lt_cv_sys_max_cmd_len=102400
5831 sysv5* | sco5v6* | sysv4.2uw2*)
5832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5833 if test -n "$kargmax"; then
5834 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5835 else
5836 lt_cv_sys_max_cmd_len=32768
5840 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5841 if test -n $lt_cv_sys_max_cmd_len; then
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844 else
5845 # Make teststring a little bigger before we do anything with it.
5846 # a 1K string should be a reasonable start.
5847 for i in 1 2 3 4 5 6 7 8 ; do
5848 teststring=$teststring$teststring
5849 done
5850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5851 # If test is not a shell built-in, we'll probably end up computing a
5852 # maximum length that is only half of the actual maximum length, but
5853 # we can't tell.
5854 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5855 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5856 test $i != 17 # 1/2 MB should be enough
5858 i=`expr $i + 1`
5859 teststring=$teststring$teststring
5860 done
5861 # Only check the string length outside the loop.
5862 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5863 teststring=
5864 # Add a significant safety factor because C++ compilers can tack on
5865 # massive amounts of additional arguments before passing them to the
5866 # linker. It appears as though 1/2 is a usable value.
5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5870 esac
5874 if test -n $lt_cv_sys_max_cmd_len ; then
5875 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5876 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5877 else
5878 echo "$as_me:$LINENO: result: none" >&5
5879 echo "${ECHO_T}none" >&6
5881 max_cmd_len=$lt_cv_sys_max_cmd_len
5889 : ${CP="cp -f"}
5890 : ${MV="mv -f"}
5891 : ${RM="rm -f"}
5893 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5894 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5895 # Try some XSI features
5896 xsi_shell=no
5897 ( _lt_dummy="a/b/c"
5898 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5899 = c,a/b,, ) >/dev/null 2>&1 \
5900 && xsi_shell=yes
5901 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5902 echo "${ECHO_T}$xsi_shell" >&6
5905 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5906 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5907 lt_shell_append=no
5908 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5909 >/dev/null 2>&1 \
5910 && lt_shell_append=yes
5911 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5912 echo "${ECHO_T}$lt_shell_append" >&6
5915 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5916 lt_unset=unset
5917 else
5918 lt_unset=false
5925 # test EBCDIC or ASCII
5926 case `echo X|tr X '\101'` in
5927 A) # ASCII based system
5928 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5929 lt_SP2NL='tr \040 \012'
5930 lt_NL2SP='tr \015\012 \040\040'
5932 *) # EBCDIC based system
5933 lt_SP2NL='tr \100 \n'
5934 lt_NL2SP='tr \r\n \100\100'
5936 esac
5946 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5947 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5948 if test "${lt_cv_ld_reload_flag+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 lt_cv_ld_reload_flag='-r'
5953 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5954 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5955 reload_flag=$lt_cv_ld_reload_flag
5956 case $reload_flag in
5957 "" | " "*) ;;
5958 *) reload_flag=" $reload_flag" ;;
5959 esac
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 case $host_os in
5962 darwin*)
5963 if test "$GCC" = yes; then
5964 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5965 else
5966 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5969 esac
5980 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5981 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5982 if test "${lt_cv_deplibs_check_method+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 lt_cv_file_magic_cmd='$MAGIC_CMD'
5986 lt_cv_file_magic_test_file=
5987 lt_cv_deplibs_check_method='unknown'
5988 # Need to set the preceding variable on all platforms that support
5989 # interlibrary dependencies.
5990 # 'none' -- dependencies not supported.
5991 # `unknown' -- same as none, but documents that we really don't know.
5992 # 'pass_all' -- all dependencies passed with no checks.
5993 # 'test_compile' -- check by making test program.
5994 # 'file_magic [[regex]]' -- check by looking for files in library path
5995 # which responds to the $file_magic_cmd with a given extended regex.
5996 # If you have `file' or equivalent on your system and you're not sure
5997 # whether `pass_all' will *always* work, you probably want this one.
5999 case $host_os in
6000 aix[4-9]*)
6001 lt_cv_deplibs_check_method=pass_all
6004 beos*)
6005 lt_cv_deplibs_check_method=pass_all
6008 bsdi[45]*)
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6010 lt_cv_file_magic_cmd='/usr/bin/file -L'
6011 lt_cv_file_magic_test_file=/shlib/libc.so
6014 cygwin*)
6015 # func_win32_libid is a shell function defined in ltmain.sh
6016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017 lt_cv_file_magic_cmd='func_win32_libid'
6020 mingw* | pw32*)
6021 # Base MSYS/MinGW do not provide the 'file' command needed by
6022 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6023 # unless we find 'file', for example because we are cross-compiling.
6024 if ( file / ) >/dev/null 2>&1; then
6025 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6026 lt_cv_file_magic_cmd='func_win32_libid'
6027 else
6028 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6029 lt_cv_file_magic_cmd='$OBJDUMP -f'
6033 darwin* | rhapsody*)
6034 lt_cv_deplibs_check_method=pass_all
6037 freebsd* | dragonfly*)
6038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6039 case $host_cpu in
6040 i*86 )
6041 # Not sure whether the presence of OpenBSD here was a mistake.
6042 # Let's accept both of them until this is cleared up.
6043 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6044 lt_cv_file_magic_cmd=/usr/bin/file
6045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6047 esac
6048 else
6049 lt_cv_deplibs_check_method=pass_all
6053 gnu*)
6054 lt_cv_deplibs_check_method=pass_all
6057 hpux10.20* | hpux11*)
6058 lt_cv_file_magic_cmd=/usr/bin/file
6059 case $host_cpu in
6060 ia64*)
6061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6062 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6064 hppa*64*)
6065 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]'
6066 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6070 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6072 esac
6075 interix[3-9]*)
6076 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6080 irix5* | irix6* | nonstopux*)
6081 case $LD in
6082 *-32|*"-32 ") libmagic=32-bit;;
6083 *-n32|*"-n32 ") libmagic=N32;;
6084 *-64|*"-64 ") libmagic=64-bit;;
6085 *) libmagic=never-match;;
6086 esac
6087 lt_cv_deplibs_check_method=pass_all
6090 # This must be Linux ELF.
6091 linux* | k*bsd*-gnu)
6092 lt_cv_deplibs_check_method=pass_all
6095 netbsd*)
6096 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6098 else
6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6103 newos6*)
6104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6105 lt_cv_file_magic_cmd=/usr/bin/file
6106 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6109 *nto* | *qnx*)
6110 lt_cv_deplibs_check_method=pass_all
6113 openbsd*)
6114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6116 else
6117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6121 osf3* | osf4* | osf5*)
6122 lt_cv_deplibs_check_method=pass_all
6125 rdos*)
6126 lt_cv_deplibs_check_method=pass_all
6129 solaris*)
6130 lt_cv_deplibs_check_method=pass_all
6133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6134 lt_cv_deplibs_check_method=pass_all
6137 sysv4 | sysv4.3*)
6138 case $host_vendor in
6139 motorola)
6140 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]'
6141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6143 ncr)
6144 lt_cv_deplibs_check_method=pass_all
6146 sequent)
6147 lt_cv_file_magic_cmd='/bin/file'
6148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6150 sni)
6151 lt_cv_file_magic_cmd='/bin/file'
6152 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6153 lt_cv_file_magic_test_file=/lib/libc.so
6155 siemens)
6156 lt_cv_deplibs_check_method=pass_all
6159 lt_cv_deplibs_check_method=pass_all
6161 esac
6164 tpf*)
6165 lt_cv_deplibs_check_method=pass_all
6167 esac
6170 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6171 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6172 file_magic_cmd=$lt_cv_file_magic_cmd
6173 deplibs_check_method=$lt_cv_deplibs_check_method
6174 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}ar; ac_word=$2
6190 echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6192 if test "${ac_cv_prog_AR+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195 if test -n "$AR"; then
6196 ac_cv_prog_AR="$AR" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_AR="${ac_tool_prefix}ar"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6214 AR=$ac_cv_prog_AR
6215 if test -n "$AR"; then
6216 echo "$as_me:$LINENO: result: $AR" >&5
6217 echo "${ECHO_T}$AR" >&6
6218 else
6219 echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6224 if test -z "$ac_cv_prog_AR"; then
6225 ac_ct_AR=$AR
6226 # Extract the first word of "ar", so it can be a program name with args.
6227 set dummy ar; ac_word=$2
6228 echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6230 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 if test -n "$ac_ct_AR"; then
6234 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_ac_ct_AR="ar"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6247 done
6248 done
6250 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6254 if test -n "$ac_ct_AR"; then
6255 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6256 echo "${ECHO_T}$ac_ct_AR" >&6
6257 else
6258 echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6
6262 AR=$ac_ct_AR
6263 else
6264 AR="$ac_cv_prog_AR"
6267 test -z "$AR" && AR=ar
6268 test -z "$AR_FLAGS" && AR_FLAGS=cru
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6282 set dummy ${ac_tool_prefix}strip; ac_word=$2
6283 echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285 if test "${ac_cv_prog_STRIP+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 if test -n "$STRIP"; then
6289 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6302 done
6303 done
6307 STRIP=$ac_cv_prog_STRIP
6308 if test -n "$STRIP"; then
6309 echo "$as_me:$LINENO: result: $STRIP" >&5
6310 echo "${ECHO_T}$STRIP" >&6
6311 else
6312 echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6
6317 if test -z "$ac_cv_prog_STRIP"; then
6318 ac_ct_STRIP=$STRIP
6319 # Extract the first word of "strip", so it can be a program name with args.
6320 set dummy strip; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 if test -n "$ac_ct_STRIP"; then
6327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_ac_ct_STRIP="strip"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6340 done
6341 done
6343 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6347 if test -n "$ac_ct_STRIP"; then
6348 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6349 echo "${ECHO_T}$ac_ct_STRIP" >&6
6350 else
6351 echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6
6355 STRIP=$ac_ct_STRIP
6356 else
6357 STRIP="$ac_cv_prog_STRIP"
6360 test -z "$STRIP" && STRIP=:
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6370 echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6372 if test "${ac_cv_prog_RANLIB+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 if test -n "$RANLIB"; then
6376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6394 RANLIB=$ac_cv_prog_RANLIB
6395 if test -n "$RANLIB"; then
6396 echo "$as_me:$LINENO: result: $RANLIB" >&5
6397 echo "${ECHO_T}$RANLIB" >&6
6398 else
6399 echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6
6404 if test -z "$ac_cv_prog_RANLIB"; then
6405 ac_ct_RANLIB=$RANLIB
6406 # Extract the first word of "ranlib", so it can be a program name with args.
6407 set dummy ranlib; ac_word=$2
6408 echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 if test -n "$ac_ct_RANLIB"; then
6414 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_RANLIB="ranlib"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6427 done
6428 done
6430 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6433 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6434 if test -n "$ac_ct_RANLIB"; then
6435 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6436 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6442 RANLIB=$ac_ct_RANLIB
6443 else
6444 RANLIB="$ac_cv_prog_RANLIB"
6447 test -z "$RANLIB" && RANLIB=:
6454 # Determine commands to create old-style static archives.
6455 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6456 old_postinstall_cmds='chmod 644 $oldlib'
6457 old_postuninstall_cmds=
6459 if test -n "$RANLIB"; then
6460 case $host_os in
6461 openbsd*)
6462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6467 esac
6468 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6504 # If no C compiler was specified, use CC.
6505 LTCC=${LTCC-"$CC"}
6507 # If no C compiler flags were specified, use CFLAGS.
6508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6510 # Allow CC to be a program name with arguments.
6511 compiler=$CC
6514 # Check for command to grab the raw symbol name followed by C symbol from nm.
6515 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6516 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6517 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6521 # These are sane defaults that work on at least a few old systems.
6522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6524 # Character class describing NM global symbol codes.
6525 symcode='[BCDEGRST]'
6527 # Regexp to match symbols that can be accessed directly from C.
6528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6530 # Define system-specific variables.
6531 case $host_os in
6532 aix*)
6533 symcode='[BCDT]'
6535 cygwin* | mingw* | pw32*)
6536 symcode='[ABCDGISTW]'
6538 hpux*)
6539 if test "$host_cpu" = ia64; then
6540 symcode='[ABCDEGRST]'
6543 irix* | nonstopux*)
6544 symcode='[BCDEGRST]'
6546 osf*)
6547 symcode='[BCDEGQRST]'
6549 solaris*)
6550 symcode='[BDRT]'
6552 sco3.2v5*)
6553 symcode='[DT]'
6555 sysv4.2uw2*)
6556 symcode='[DT]'
6558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6559 symcode='[ABDT]'
6561 sysv4)
6562 symcode='[DFNSTU]'
6564 esac
6566 # If we're using GNU nm, then use its standard symbol codes.
6567 case `$NM -V 2>&1` in
6568 *GNU* | *'with BFD'*)
6569 symcode='[ABCDGIRSTW]' ;;
6570 esac
6572 # Transform an extracted symbol line into a proper C declaration.
6573 # Some systems (esp. on ia64) link data and code symbols differently,
6574 # so use this general approach.
6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6577 # Transform an extracted symbol line into symbol name and symbol address
6578 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6580 # Handle CRLF in mingw tool chain
6581 opt_cr=
6582 case $build_os in
6583 mingw*)
6584 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6586 esac
6588 # Try without a prefix underscore, then with it.
6589 for ac_symprfx in "" "_"; do
6591 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6592 symxfrm="\\1 $ac_symprfx\\2 \\2"
6594 # Write the raw and C identifiers.
6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6596 # Fake it for dumpbin and say T for any non-static function
6597 # and D for any global variable.
6598 # Also find C++ and __fastcall symbols from MSVC++,
6599 # which start with @ or ?.
6600 lt_cv_sys_global_symbol_pipe="$AWK '"\
6601 " {last_section=section; section=\$ 3};"\
6602 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6603 " \$ 0!~/External *\|/{next};"\
6604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6605 " {if(hide[section]) next};"\
6606 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6607 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6608 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6609 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6610 " ' prfx=^$ac_symprfx"
6611 else
6612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6615 # Check to see that the pipe works correctly.
6616 pipe_works=no
6618 rm -f conftest*
6619 cat > conftest.$ac_ext <<_LT_EOF
6620 #ifdef __cplusplus
6621 extern "C" {
6622 #endif
6623 char nm_test_var;
6624 void nm_test_func(void);
6625 void nm_test_func(void){}
6626 #ifdef __cplusplus
6628 #endif
6629 int main(){nm_test_var='a';nm_test_func();return(0);}
6630 _LT_EOF
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; then
6637 # Now try to grab the symbols.
6638 nlist=conftest.nm
6639 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6640 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && test -s "$nlist"; then
6644 # Try sorting and uniquifying the output.
6645 if sort "$nlist" | uniq > "$nlist"T; then
6646 mv -f "$nlist"T "$nlist"
6647 else
6648 rm -f "$nlist"T
6651 # Make sure that we snagged all the symbols we need.
6652 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6653 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6654 cat <<_LT_EOF > conftest.$ac_ext
6655 #ifdef __cplusplus
6656 extern "C" {
6657 #endif
6659 _LT_EOF
6660 # Now generate the symbol file.
6661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6663 cat <<_LT_EOF >> conftest.$ac_ext
6665 /* The mapping between symbol names and symbols. */
6666 const struct {
6667 const char *name;
6668 void *address;
6670 lt__PROGRAM__LTX_preloaded_symbols[] =
6672 { "@PROGRAM@", (void *) 0 },
6673 _LT_EOF
6674 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6675 cat <<\_LT_EOF >> conftest.$ac_ext
6676 {0, (void *) 0}
6679 /* This works around a problem in FreeBSD linker */
6680 #ifdef FREEBSD_WORKAROUND
6681 static const void *lt_preloaded_setup() {
6682 return lt__PROGRAM__LTX_preloaded_symbols;
6684 #endif
6686 #ifdef __cplusplus
6688 #endif
6689 _LT_EOF
6690 # Now try linking the two files.
6691 mv conftest.$ac_objext conftstm.$ac_objext
6692 lt_save_LIBS="$LIBS"
6693 lt_save_CFLAGS="$CFLAGS"
6694 LIBS="conftstm.$ac_objext"
6695 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697 (eval $ac_link) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6701 pipe_works=yes
6703 LIBS="$lt_save_LIBS"
6704 CFLAGS="$lt_save_CFLAGS"
6705 else
6706 echo "cannot find nm_test_func in $nlist" >&5
6708 else
6709 echo "cannot find nm_test_var in $nlist" >&5
6711 else
6712 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6714 else
6715 echo "$progname: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 rm -f conftest* conftst*
6720 # Do not use the global_symbol_pipe unless it works.
6721 if test "$pipe_works" = yes; then
6722 break
6723 else
6724 lt_cv_sys_global_symbol_pipe=
6726 done
6730 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6731 lt_cv_sys_global_symbol_to_cdecl=
6733 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6734 echo "$as_me:$LINENO: result: failed" >&5
6735 echo "${ECHO_T}failed" >&6
6736 else
6737 echo "$as_me:$LINENO: result: ok" >&5
6738 echo "${ECHO_T}ok" >&6
6757 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6758 if test "${enable_libtool_lock+set}" = set; then
6759 enableval="$enable_libtool_lock"
6762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6764 # Some flags need to be propagated to the compiler or linker for good
6765 # libtool support.
6766 case $host in
6767 ia64-*-hpux*)
6768 # Find out which ABI we are using.
6769 echo 'int i;' > conftest.$ac_ext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; then
6775 case `/usr/bin/file conftest.$ac_objext` in
6776 *ELF-32*)
6777 HPUX_IA64_MODE="32"
6779 *ELF-64*)
6780 HPUX_IA64_MODE="64"
6782 esac
6784 rm -rf conftest*
6786 *-*-irix6*)
6787 # Find out which ABI we are using.
6788 echo '#line 6788 "configure"' > conftest.$ac_ext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; then
6794 if test "$lt_cv_prog_gnu_ld" = yes; then
6795 case `/usr/bin/file conftest.$ac_objext` in
6796 *32-bit*)
6797 LD="${LD-ld} -melf32bsmip"
6799 *N32*)
6800 LD="${LD-ld} -melf32bmipn32"
6802 *64-bit*)
6803 LD="${LD-ld} -melf64bmip"
6805 esac
6806 else
6807 case `/usr/bin/file conftest.$ac_objext` in
6808 *32-bit*)
6809 LD="${LD-ld} -32"
6811 *N32*)
6812 LD="${LD-ld} -n32"
6814 *64-bit*)
6815 LD="${LD-ld} -64"
6817 esac
6820 rm -rf conftest*
6823 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6824 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6825 # Find out which ABI we are using.
6826 echo 'int i;' > conftest.$ac_ext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; then
6832 case `/usr/bin/file conftest.o` in
6833 *32-bit*)
6834 case $host in
6835 x86_64-*kfreebsd*-gnu)
6836 LD="${LD-ld} -m elf_i386_fbsd"
6838 x86_64-*linux*)
6839 LD="${LD-ld} -m elf_i386"
6841 ppc64-*linux*|powerpc64-*linux*)
6842 LD="${LD-ld} -m elf32ppclinux"
6844 s390x-*linux*)
6845 LD="${LD-ld} -m elf_s390"
6847 sparc64-*linux*)
6848 LD="${LD-ld} -m elf32_sparc"
6850 esac
6852 *64-bit*)
6853 case $host in
6854 x86_64-*kfreebsd*-gnu)
6855 LD="${LD-ld} -m elf_x86_64_fbsd"
6857 x86_64-*linux*)
6858 LD="${LD-ld} -m elf_x86_64"
6860 ppc*-*linux*|powerpc*-*linux*)
6861 LD="${LD-ld} -m elf64ppc"
6863 s390*-*linux*|s390*-*tpf*)
6864 LD="${LD-ld} -m elf64_s390"
6866 sparc*-*linux*)
6867 LD="${LD-ld} -m elf64_sparc"
6869 esac
6871 esac
6873 rm -rf conftest*
6876 *-*-sco3.2v5*)
6877 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6878 SAVE_CFLAGS="$CFLAGS"
6879 CFLAGS="$CFLAGS -belf"
6880 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6881 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6882 if test "${lt_cv_cc_needs_belf+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 ac_ext=c
6886 ac_cpp='$CPP $CPPFLAGS'
6887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6891 if test x$gcc_no_link = xyes; then
6892 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6894 { (exit 1); exit 1; }; }
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6904 main ()
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6914 ac_status=$?
6915 grep -v '^ *+' conftest.er1 >conftest.err
6916 rm -f conftest.er1
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest$ac_exeext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 lt_cv_cc_needs_belf=yes
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 lt_cv_cc_needs_belf=no
6940 rm -f conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 ac_ext=c
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6950 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6953 CFLAGS="$SAVE_CFLAGS"
6956 sparc*-*solaris*)
6957 # Find out which ABI we are using.
6958 echo 'int i;' > conftest.$ac_ext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; then
6964 case `/usr/bin/file conftest.o` in
6965 *64-bit*)
6966 case $lt_cv_prog_gnu_ld in
6967 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6968 *) LD="${LD-ld} -64" ;;
6969 esac
6971 esac
6973 rm -rf conftest*
6975 esac
6977 need_locks="$enable_libtool_lock"
6980 for ac_header in dlfcn.h
6982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6983 echo "$as_me:$LINENO: checking for $ac_header" >&5
6984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6996 #include <$ac_header>
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -z "$ac_c_werror_flag"
7008 || test ! -s conftest.err'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 eval "$as_ac_Header=yes"
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 eval "$as_ac_Header=no"
7027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7032 cat >>confdefs.h <<_ACEOF
7033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7034 _ACEOF
7038 done
7042 # This can be used to rebuild libtool when needed
7043 LIBTOOL_DEPS="$ltmain"
7045 # Always use our own libtool.
7046 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7072 test -z "$LN_S" && LN_S="ln -s"
7087 if test -n "${ZSH_VERSION+set}" ; then
7088 setopt NO_GLOB_SUBST
7091 echo "$as_me:$LINENO: checking for objdir" >&5
7092 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7093 if test "${lt_cv_objdir+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 rm -f .libs 2>/dev/null
7097 mkdir .libs 2>/dev/null
7098 if test -d .libs; then
7099 lt_cv_objdir=.libs
7100 else
7101 # MS-DOS does not allow filenames that begin with a dot.
7102 lt_cv_objdir=_libs
7104 rmdir .libs 2>/dev/null
7106 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7107 echo "${ECHO_T}$lt_cv_objdir" >&6
7108 objdir=$lt_cv_objdir
7114 cat >>confdefs.h <<_ACEOF
7115 #define LT_OBJDIR "$lt_cv_objdir/"
7116 _ACEOF
7134 case $host_os in
7135 aix3*)
7136 # AIX sometimes has problems with the GCC collect2 program. For some
7137 # reason, if we set the COLLECT_NAMES environment variable, the problems
7138 # vanish in a puff of smoke.
7139 if test "X${COLLECT_NAMES+set}" != Xset; then
7140 COLLECT_NAMES=
7141 export COLLECT_NAMES
7144 esac
7146 # Sed substitution that helps us do robust quoting. It backslashifies
7147 # metacharacters that are still active within double-quoted strings.
7148 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7150 # Same as above, but do not quote variable references.
7151 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7153 # Sed substitution to delay expansion of an escaped shell variable in a
7154 # double_quote_subst'ed string.
7155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7157 # Sed substitution to delay expansion of an escaped single quote.
7158 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7160 # Sed substitution to avoid accidental globbing in evaled expressions
7161 no_glob_subst='s/\*/\\\*/g'
7163 # Global variables:
7164 ofile=libtool
7165 can_build_shared=yes
7167 # All known linkers require a `.a' archive for static linking (except MSVC,
7168 # which needs '.lib').
7169 libext=a
7171 with_gnu_ld="$lt_cv_prog_gnu_ld"
7173 old_CC="$CC"
7174 old_CFLAGS="$CFLAGS"
7176 # Set sane defaults for various variables
7177 test -z "$CC" && CC=cc
7178 test -z "$LTCC" && LTCC=$CC
7179 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7180 test -z "$LD" && LD=ld
7181 test -z "$ac_objext" && ac_objext=o
7183 for cc_temp in $compiler""; do
7184 case $cc_temp in
7185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7187 \-*) ;;
7188 *) break;;
7189 esac
7190 done
7191 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7194 # Only perform the check for file, if the check method requires it
7195 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7196 case $deplibs_check_method in
7197 file_magic*)
7198 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7199 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7200 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 case $MAGIC_CMD in
7205 [\\/*] | ?:[\\/]*)
7206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7209 lt_save_MAGIC_CMD="$MAGIC_CMD"
7210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7211 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7212 for ac_dir in $ac_dummy; do
7213 IFS="$lt_save_ifs"
7214 test -z "$ac_dir" && ac_dir=.
7215 if test -f $ac_dir/${ac_tool_prefix}file; then
7216 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7217 if test -n "$file_magic_test_file"; then
7218 case $deplibs_check_method in
7219 "file_magic "*)
7220 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7223 $EGREP "$file_magic_regex" > /dev/null; then
7225 else
7226 cat <<_LT_EOF 1>&2
7228 *** Warning: the command libtool uses to detect shared libraries,
7229 *** $file_magic_cmd, produces output that libtool cannot recognize.
7230 *** The result is that libtool may fail to recognize shared libraries
7231 *** as such. This will affect the creation of libtool libraries that
7232 *** depend on shared libraries, but programs linked with such libtool
7233 *** libraries will work regardless of this problem. Nevertheless, you
7234 *** may want to report the problem to your system manager and/or to
7235 *** bug-libtool@gnu.org
7237 _LT_EOF
7238 fi ;;
7239 esac
7241 break
7243 done
7244 IFS="$lt_save_ifs"
7245 MAGIC_CMD="$lt_save_MAGIC_CMD"
7247 esac
7250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251 if test -n "$MAGIC_CMD"; then
7252 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7253 echo "${ECHO_T}$MAGIC_CMD" >&6
7254 else
7255 echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7263 if test -z "$lt_cv_path_MAGIC_CMD"; then
7264 if test -n "$ac_tool_prefix"; then
7265 echo "$as_me:$LINENO: checking for file" >&5
7266 echo $ECHO_N "checking for file... $ECHO_C" >&6
7267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 case $MAGIC_CMD in
7271 [\\/*] | ?:[\\/]*)
7272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7275 lt_save_MAGIC_CMD="$MAGIC_CMD"
7276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278 for ac_dir in $ac_dummy; do
7279 IFS="$lt_save_ifs"
7280 test -z "$ac_dir" && ac_dir=.
7281 if test -f $ac_dir/file; then
7282 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7283 if test -n "$file_magic_test_file"; then
7284 case $deplibs_check_method in
7285 "file_magic "*)
7286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289 $EGREP "$file_magic_regex" > /dev/null; then
7291 else
7292 cat <<_LT_EOF 1>&2
7294 *** Warning: the command libtool uses to detect shared libraries,
7295 *** $file_magic_cmd, produces output that libtool cannot recognize.
7296 *** The result is that libtool may fail to recognize shared libraries
7297 *** as such. This will affect the creation of libtool libraries that
7298 *** depend on shared libraries, but programs linked with such libtool
7299 *** libraries will work regardless of this problem. Nevertheless, you
7300 *** may want to report the problem to your system manager and/or to
7301 *** bug-libtool@gnu.org
7303 _LT_EOF
7304 fi ;;
7305 esac
7307 break
7309 done
7310 IFS="$lt_save_ifs"
7311 MAGIC_CMD="$lt_save_MAGIC_CMD"
7313 esac
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if test -n "$MAGIC_CMD"; then
7318 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7319 echo "${ECHO_T}$MAGIC_CMD" >&6
7320 else
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7326 else
7327 MAGIC_CMD=:
7333 esac
7335 # Use C for the default configuration in the libtool script
7337 lt_save_CC="$CC"
7338 ac_ext=c
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345 # Source file extension for C test sources.
7346 ac_ext=c
7348 # Object file extension for compiled C test sources.
7349 objext=o
7350 objext=$objext
7352 # Code to be used in simple compile tests
7353 lt_simple_compile_test_code="int some_variable = 0;"
7355 # Code to be used in simple link tests
7356 lt_simple_link_test_code='int main(){return(0);}'
7364 # If no C compiler was specified, use CC.
7365 LTCC=${LTCC-"$CC"}
7367 # If no C compiler flags were specified, use CFLAGS.
7368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7370 # Allow CC to be a program name with arguments.
7371 compiler=$CC
7373 # Save the default compiler, since it gets overwritten when the other
7374 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7375 compiler_DEFAULT=$CC
7377 # save warnings/boilerplate of simple test code
7378 ac_outfile=conftest.$ac_objext
7379 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7381 _lt_compiler_boilerplate=`cat conftest.err`
7382 $RM conftest*
7384 ac_outfile=conftest.$ac_objext
7385 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7387 _lt_linker_boilerplate=`cat conftest.err`
7388 $RM conftest*
7391 ## CAVEAT EMPTOR:
7392 ## There is no encapsulation within the following macros, do not change
7393 ## the running order or otherwise move them around unless you know exactly
7394 ## what you are doing...
7395 if test -n "$compiler"; then
7397 lt_prog_compiler_no_builtin_flag=
7399 if test "$GCC" = yes; then
7400 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7402 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7403 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 lt_cv_prog_compiler_rtti_exceptions=no
7408 ac_outfile=conftest.$ac_objext
7409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7410 lt_compiler_flag="-fno-rtti -fno-exceptions"
7411 # Insert the option either (1) after the last *FLAGS variable, or
7412 # (2) before a word containing "conftest.", or (3) at the end.
7413 # Note that $ac_compile itself does not contain backslashes and begins
7414 # with a dollar sign (not a hyphen), so the echo should work correctly.
7415 # The option is referenced via a variable to avoid confusing sed.
7416 lt_compile=`echo "$ac_compile" | $SED \
7417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7419 -e 's:$: $lt_compiler_flag:'`
7420 (eval echo "\"\$as_me:7420: $lt_compile\"" >&5)
7421 (eval "$lt_compile" 2>conftest.err)
7422 ac_status=$?
7423 cat conftest.err >&5
7424 echo "$as_me:7424: \$? = $ac_status" >&5
7425 if (exit $ac_status) && test -s "$ac_outfile"; then
7426 # The compiler can only warn and ignore the option if not recognized
7427 # So say no if there are warnings other than the usual output.
7428 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7431 lt_cv_prog_compiler_rtti_exceptions=yes
7434 $RM conftest*
7437 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7438 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7441 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7442 else
7453 lt_prog_compiler_wl=
7454 lt_prog_compiler_pic=
7455 lt_prog_compiler_static=
7457 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7460 if test "$GCC" = yes; then
7461 lt_prog_compiler_wl='-Wl,'
7462 lt_prog_compiler_static='-static'
7464 case $host_os in
7465 aix*)
7466 # All AIX code is PIC.
7467 if test "$host_cpu" = ia64; then
7468 # AIX 5 now supports IA64 processor
7469 lt_prog_compiler_static='-Bstatic'
7473 amigaos*)
7474 if test "$host_cpu" = m68k; then
7475 # FIXME: we need at least 68020 code to build shared libraries, but
7476 # adding the `-m68020' flag to GCC prevents building anything better,
7477 # like `-m68040'.
7478 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7482 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7483 # PIC is the default for these OSes.
7486 mingw* | cygwin* | pw32* | os2*)
7487 # This hack is so that the source file can tell whether it is being
7488 # built for inclusion in a dll (and should export symbols for example).
7489 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7490 # (--disable-auto-import) libraries
7491 lt_prog_compiler_pic='-DDLL_EXPORT'
7494 darwin* | rhapsody*)
7495 # PIC is the default on this platform
7496 # Common symbols not allowed in MH_DYLIB files
7497 lt_prog_compiler_pic='-fno-common'
7500 hpux*)
7501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7502 # not for PA HP-UX.
7503 case $host_cpu in
7504 hppa*64*|ia64*)
7505 # +Z the default
7508 lt_prog_compiler_pic='-fPIC'
7510 esac
7513 interix[3-9]*)
7514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7515 # Instead, we relocate shared libraries at runtime.
7518 msdosdjgpp*)
7519 # Just because we use GCC doesn't mean we suddenly get shared libraries
7520 # on systems that don't support them.
7521 lt_prog_compiler_can_build_shared=no
7522 enable_shared=no
7525 *nto* | *qnx*)
7526 # QNX uses GNU C++, but need to define -shared option too, otherwise
7527 # it will coredump.
7528 lt_prog_compiler_pic='-fPIC -shared'
7531 sysv4*MP*)
7532 if test -d /usr/nec; then
7533 lt_prog_compiler_pic=-Kconform_pic
7538 lt_prog_compiler_pic='-fPIC'
7540 esac
7541 else
7542 # PORTME Check for flag to pass linker flags through the system compiler.
7543 case $host_os in
7544 aix*)
7545 lt_prog_compiler_wl='-Wl,'
7546 if test "$host_cpu" = ia64; then
7547 # AIX 5 now supports IA64 processor
7548 lt_prog_compiler_static='-Bstatic'
7549 else
7550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7553 darwin*)
7554 # PIC is the default on this platform
7555 # Common symbols not allowed in MH_DYLIB files
7556 case $cc_basename in
7557 xlc*)
7558 lt_prog_compiler_pic='-qnocommon'
7559 lt_prog_compiler_wl='-Wl,'
7561 esac
7564 mingw* | cygwin* | pw32* | os2*)
7565 # This hack is so that the source file can tell whether it is being
7566 # built for inclusion in a dll (and should export symbols for example).
7567 lt_prog_compiler_pic='-DDLL_EXPORT'
7570 hpux9* | hpux10* | hpux11*)
7571 lt_prog_compiler_wl='-Wl,'
7572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7573 # not for PA HP-UX.
7574 case $host_cpu in
7575 hppa*64*|ia64*)
7576 # +Z the default
7579 lt_prog_compiler_pic='+Z'
7581 esac
7582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7583 lt_prog_compiler_static='${wl}-a ${wl}archive'
7586 irix5* | irix6* | nonstopux*)
7587 lt_prog_compiler_wl='-Wl,'
7588 # PIC (with -KPIC) is the default.
7589 lt_prog_compiler_static='-non_shared'
7592 linux* | k*bsd*-gnu)
7593 case $cc_basename in
7594 icc* | ecc*)
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_pic='-KPIC'
7597 lt_prog_compiler_static='-static'
7599 pgcc* | pgf77* | pgf90* | pgf95*)
7600 # Portland Group compilers (*not* the Pentium gcc compiler,
7601 # which looks to be a dead project)
7602 lt_prog_compiler_wl='-Wl,'
7603 lt_prog_compiler_pic='-fpic'
7604 lt_prog_compiler_static='-Bstatic'
7606 ccc*)
7607 lt_prog_compiler_wl='-Wl,'
7608 # All Alpha code is PIC.
7609 lt_prog_compiler_static='-non_shared'
7612 case `$CC -V 2>&1 | sed 5q` in
7613 *Sun\ C*)
7614 # Sun C 5.9
7615 lt_prog_compiler_pic='-KPIC'
7616 lt_prog_compiler_static='-Bstatic'
7617 lt_prog_compiler_wl='-Wl,'
7619 *Sun\ F*)
7620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7621 lt_prog_compiler_pic='-KPIC'
7622 lt_prog_compiler_static='-Bstatic'
7623 lt_prog_compiler_wl=''
7625 esac
7627 esac
7630 newsos6)
7631 lt_prog_compiler_pic='-KPIC'
7632 lt_prog_compiler_static='-Bstatic'
7635 *nto* | *qnx*)
7636 # QNX uses GNU C++, but need to define -shared option too, otherwise
7637 # it will coredump.
7638 lt_prog_compiler_pic='-fPIC -shared'
7641 osf3* | osf4* | osf5*)
7642 lt_prog_compiler_wl='-Wl,'
7643 # All OSF/1 code is PIC.
7644 lt_prog_compiler_static='-non_shared'
7647 rdos*)
7648 lt_prog_compiler_static='-non_shared'
7651 solaris*)
7652 lt_prog_compiler_pic='-KPIC'
7653 lt_prog_compiler_static='-Bstatic'
7654 case $cc_basename in
7655 f77* | f90* | f95*)
7656 lt_prog_compiler_wl='-Qoption ld ';;
7658 lt_prog_compiler_wl='-Wl,';;
7659 esac
7662 sunos4*)
7663 lt_prog_compiler_wl='-Qoption ld '
7664 lt_prog_compiler_pic='-PIC'
7665 lt_prog_compiler_static='-Bstatic'
7668 sysv4 | sysv4.2uw2* | sysv4.3*)
7669 lt_prog_compiler_wl='-Wl,'
7670 lt_prog_compiler_pic='-KPIC'
7671 lt_prog_compiler_static='-Bstatic'
7674 sysv4*MP*)
7675 if test -d /usr/nec ;then
7676 lt_prog_compiler_pic='-Kconform_pic'
7677 lt_prog_compiler_static='-Bstatic'
7681 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7682 lt_prog_compiler_wl='-Wl,'
7683 lt_prog_compiler_pic='-KPIC'
7684 lt_prog_compiler_static='-Bstatic'
7687 unicos*)
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_can_build_shared=no
7692 uts4*)
7693 lt_prog_compiler_pic='-pic'
7694 lt_prog_compiler_static='-Bstatic'
7698 lt_prog_compiler_can_build_shared=no
7700 esac
7703 case $host_os in
7704 # For platforms which do not support PIC, -DPIC is meaningless:
7705 *djgpp*)
7706 lt_prog_compiler_pic=
7709 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7711 esac
7712 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7713 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7721 # Check to make sure the PIC flag actually works.
7723 if test -n "$lt_prog_compiler_pic"; then
7724 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7725 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7726 if test "${lt_prog_compiler_pic_works+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 lt_prog_compiler_pic_works=no
7730 ac_outfile=conftest.$ac_objext
7731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7732 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7733 # Insert the option either (1) after the last *FLAGS variable, or
7734 # (2) before a word containing "conftest.", or (3) at the end.
7735 # Note that $ac_compile itself does not contain backslashes and begins
7736 # with a dollar sign (not a hyphen), so the echo should work correctly.
7737 # The option is referenced via a variable to avoid confusing sed.
7738 lt_compile=`echo "$ac_compile" | $SED \
7739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7741 -e 's:$: $lt_compiler_flag:'`
7742 (eval echo "\"\$as_me:7742: $lt_compile\"" >&5)
7743 (eval "$lt_compile" 2>conftest.err)
7744 ac_status=$?
7745 cat conftest.err >&5
7746 echo "$as_me:7746: \$? = $ac_status" >&5
7747 if (exit $ac_status) && test -s "$ac_outfile"; then
7748 # The compiler can only warn and ignore the option if not recognized
7749 # So say no if there are warnings other than the usual output.
7750 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7753 lt_prog_compiler_pic_works=yes
7756 $RM conftest*
7759 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7760 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7762 if test x"$lt_prog_compiler_pic_works" = xyes; then
7763 case $lt_prog_compiler_pic in
7764 "" | " "*) ;;
7765 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7766 esac
7767 else
7768 lt_prog_compiler_pic=
7769 lt_prog_compiler_can_build_shared=no
7780 # Check to make sure the static flag actually works.
7782 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7783 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7784 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7785 if test "${lt_prog_compiler_static_works+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 lt_prog_compiler_static_works=no
7789 save_LDFLAGS="$LDFLAGS"
7790 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7793 # The linker can only warn and ignore the option if not recognized
7794 # So say no if there are warnings
7795 if test -s conftest.err; then
7796 # Append any errors to the config.log.
7797 cat conftest.err 1>&5
7798 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7800 if diff conftest.exp conftest.er2 >/dev/null; then
7801 lt_prog_compiler_static_works=yes
7803 else
7804 lt_prog_compiler_static_works=yes
7807 $RM conftest*
7808 LDFLAGS="$save_LDFLAGS"
7811 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7812 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7814 if test x"$lt_prog_compiler_static_works" = xyes; then
7816 else
7817 lt_prog_compiler_static=
7826 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7827 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7828 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 lt_cv_prog_compiler_c_o=no
7832 $RM -r conftest 2>/dev/null
7833 mkdir conftest
7834 cd conftest
7835 mkdir out
7836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838 lt_compiler_flag="-o out/conftest2.$ac_objext"
7839 # Insert the option either (1) after the last *FLAGS variable, or
7840 # (2) before a word containing "conftest.", or (3) at the end.
7841 # Note that $ac_compile itself does not contain backslashes and begins
7842 # with a dollar sign (not a hyphen), so the echo should work correctly.
7843 lt_compile=`echo "$ac_compile" | $SED \
7844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7846 -e 's:$: $lt_compiler_flag:'`
7847 (eval echo "\"\$as_me:7847: $lt_compile\"" >&5)
7848 (eval "$lt_compile" 2>out/conftest.err)
7849 ac_status=$?
7850 cat out/conftest.err >&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7853 then
7854 # The compiler can only warn and ignore the option if not recognized
7855 # So say no if there are warnings
7856 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7859 lt_cv_prog_compiler_c_o=yes
7862 chmod u+w . 2>&5
7863 $RM conftest*
7864 # SGI C++ compiler will create directory out/ii_files/ for
7865 # template instantiation
7866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7867 $RM out/* && rmdir out
7868 cd ..
7869 $RM -r conftest
7870 $RM conftest*
7873 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7881 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7883 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 lt_cv_prog_compiler_c_o=no
7887 $RM -r conftest 2>/dev/null
7888 mkdir conftest
7889 cd conftest
7890 mkdir out
7891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893 lt_compiler_flag="-o out/conftest2.$ac_objext"
7894 # Insert the option either (1) after the last *FLAGS variable, or
7895 # (2) before a word containing "conftest.", or (3) at the end.
7896 # Note that $ac_compile itself does not contain backslashes and begins
7897 # with a dollar sign (not a hyphen), so the echo should work correctly.
7898 lt_compile=`echo "$ac_compile" | $SED \
7899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901 -e 's:$: $lt_compiler_flag:'`
7902 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7903 (eval "$lt_compile" 2>out/conftest.err)
7904 ac_status=$?
7905 cat out/conftest.err >&5
7906 echo "$as_me:7906: \$? = $ac_status" >&5
7907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7908 then
7909 # The compiler can only warn and ignore the option if not recognized
7910 # So say no if there are warnings
7911 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_c_o=yes
7917 chmod u+w . 2>&5
7918 $RM conftest*
7919 # SGI C++ compiler will create directory out/ii_files/ for
7920 # template instantiation
7921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7922 $RM out/* && rmdir out
7923 cd ..
7924 $RM -r conftest
7925 $RM conftest*
7928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7934 hard_links="nottested"
7935 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7936 # do not overwrite the value of need_locks provided by the user
7937 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7938 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7939 hard_links=yes
7940 $RM conftest*
7941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7942 touch conftest.a
7943 ln conftest.a conftest.b 2>&5 || hard_links=no
7944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7945 echo "$as_me:$LINENO: result: $hard_links" >&5
7946 echo "${ECHO_T}$hard_links" >&6
7947 if test "$hard_links" = no; then
7948 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7949 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7950 need_locks=warn
7952 else
7953 need_locks=no
7961 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7964 runpath_var=
7965 allow_undefined_flag=
7966 always_export_symbols=no
7967 archive_cmds=
7968 archive_expsym_cmds=
7969 compiler_needs_object=no
7970 enable_shared_with_static_runtimes=no
7971 export_dynamic_flag_spec=
7972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7973 hardcode_automatic=no
7974 hardcode_direct=no
7975 hardcode_direct_absolute=no
7976 hardcode_libdir_flag_spec=
7977 hardcode_libdir_flag_spec_ld=
7978 hardcode_libdir_separator=
7979 hardcode_minus_L=no
7980 hardcode_shlibpath_var=unsupported
7981 inherit_rpath=no
7982 link_all_deplibs=unknown
7983 module_cmds=
7984 module_expsym_cmds=
7985 old_archive_from_new_cmds=
7986 old_archive_from_expsyms_cmds=
7987 thread_safe_flag_spec=
7988 whole_archive_flag_spec=
7989 # include_expsyms should be a list of space-separated symbols to be *always*
7990 # included in the symbol list
7991 include_expsyms=
7992 # exclude_expsyms can be an extended regexp of symbols to exclude
7993 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7995 # as well as any symbol that contains `d'.
7996 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7998 # platforms (ab)use it in PIC code, but their linkers get confused if
7999 # the symbol is explicitly referenced. Since portable code cannot
8000 # rely on this symbol name, it's probably fine to never include it in
8001 # preloaded symbol tables.
8002 extract_expsyms_cmds=
8004 case $host_os in
8005 cygwin* | mingw* | pw32*)
8006 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8007 # When not using gcc, we currently assume that we are using
8008 # Microsoft Visual C++.
8009 if test "$GCC" != yes; then
8010 with_gnu_ld=no
8013 interix*)
8014 # we just hope/assume this is gcc and not c89 (= MSVC++)
8015 with_gnu_ld=yes
8017 openbsd*)
8018 with_gnu_ld=no
8020 esac
8022 ld_shlibs=yes
8023 if test "$with_gnu_ld" = yes; then
8024 # If archive_cmds runs LD, not CC, wlarc should be empty
8025 wlarc='${wl}'
8027 # Set some defaults for GNU ld with shared library support. These
8028 # are reset later if shared libraries are not supported. Putting them
8029 # here allows them to be overridden if necessary.
8030 runpath_var=LD_RUN_PATH
8031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8032 export_dynamic_flag_spec='${wl}--export-dynamic'
8033 # ancient GNU ld didn't support --whole-archive et. al.
8034 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8035 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8036 else
8037 whole_archive_flag_spec=
8039 supports_anon_versioning=no
8040 case `$LD -v 2>&1` in
8041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8044 *\ 2.11.*) ;; # other 2.11 versions
8045 *) supports_anon_versioning=yes ;;
8046 esac
8048 # See if GNU ld supports shared libraries.
8049 case $host_os in
8050 aix[3-9]*)
8051 # On AIX/PPC, the GNU linker is very broken
8052 if test "$host_cpu" != ia64; then
8053 ld_shlibs=no
8054 cat <<_LT_EOF 1>&2
8056 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8057 *** to be unable to reliably create shared libraries on AIX.
8058 *** Therefore, libtool is disabling shared libraries support. If you
8059 *** really care for shared libraries, you may want to modify your PATH
8060 *** so that a non-GNU linker is found, and then restart.
8062 _LT_EOF
8066 amigaos*)
8067 if test "$host_cpu" = m68k; then
8068 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)'
8069 hardcode_libdir_flag_spec='-L$libdir'
8070 hardcode_minus_L=yes
8073 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8074 # that the semantics of dynamic libraries on AmigaOS, at least up
8075 # to version 4, is to share data among multiple programs linked
8076 # with the same dynamic library. Since this doesn't match the
8077 # behavior of shared libraries on other platforms, we can't use
8078 # them.
8079 ld_shlibs=no
8082 beos*)
8083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8084 allow_undefined_flag=unsupported
8085 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8086 # support --undefined. This deserves some investigation. FIXME
8087 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8088 else
8089 ld_shlibs=no
8093 cygwin* | mingw* | pw32*)
8094 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8095 # as there is no search path for DLLs.
8096 hardcode_libdir_flag_spec='-L$libdir'
8097 allow_undefined_flag=unsupported
8098 always_export_symbols=no
8099 enable_shared_with_static_runtimes=yes
8100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8104 # If the export-symbols file already is a .def file (1st line
8105 # is EXPORTS), use it as is; otherwise, prepend...
8106 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8107 cp $export_symbols $output_objdir/$soname.def;
8108 else
8109 echo EXPORTS > $output_objdir/$soname.def;
8110 cat $export_symbols >> $output_objdir/$soname.def;
8112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8113 else
8114 ld_shlibs=no
8118 interix[3-9]*)
8119 hardcode_direct=no
8120 hardcode_shlibpath_var=no
8121 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8122 export_dynamic_flag_spec='${wl}-E'
8123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8124 # Instead, shared libraries are loaded at an image base (0x10000000 by
8125 # default) and relocated if they conflict, which is a slow very memory
8126 # consuming and fragmenting process. To avoid this, we pick a random,
8127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8130 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'
8133 gnu* | linux* | tpf* | k*bsd*-gnu)
8134 tmp_diet=no
8135 if test "$host_os" = linux-dietlibc; then
8136 case $cc_basename in
8137 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8138 esac
8140 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8141 && test "$tmp_diet" = no
8142 then
8143 tmp_addflag=
8144 case $cc_basename,$host_cpu in
8145 pgcc*) # Portland Group C compiler
8146 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'
8147 tmp_addflag=' $pic_flag'
8149 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8150 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'
8151 tmp_addflag=' $pic_flag -Mnomain' ;;
8152 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8153 tmp_addflag=' -i_dynamic' ;;
8154 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8155 tmp_addflag=' -i_dynamic -nofor_main' ;;
8156 ifc* | ifort*) # Intel Fortran compiler
8157 tmp_addflag=' -nofor_main' ;;
8158 esac
8159 case `$CC -V 2>&1 | sed 5q` in
8160 *Sun\ C*) # Sun C 5.9
8161 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'
8162 compiler_needs_object=yes
8163 tmp_sharedflag='-G' ;;
8164 *Sun\ F*) # Sun Fortran 8.3
8165 tmp_sharedflag='-G' ;;
8167 tmp_sharedflag='-shared' ;;
8168 esac
8169 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8171 if test "x$supports_anon_versioning" = xyes; then
8172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8174 echo "local: *; };" >> $output_objdir/$libname.ver~
8175 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8177 else
8178 ld_shlibs=no
8182 netbsd*)
8183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8184 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8185 wlarc=
8186 else
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8192 solaris*)
8193 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8194 ld_shlibs=no
8195 cat <<_LT_EOF 1>&2
8197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8198 *** create shared libraries on Solaris systems. Therefore, libtool
8199 *** is disabling shared libraries support. We urge you to upgrade GNU
8200 *** binutils to release 2.9.1 or newer. Another option is to modify
8201 *** your PATH or compiler configuration so that the native linker is
8202 *** used, and then restart.
8204 _LT_EOF
8205 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8208 else
8209 ld_shlibs=no
8213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8214 case `$LD -v 2>&1` in
8215 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8216 ld_shlibs=no
8217 cat <<_LT_EOF 1>&2
8219 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8220 *** reliably create shared libraries on SCO systems. Therefore, libtool
8221 *** is disabling shared libraries support. We urge you to upgrade GNU
8222 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8223 *** your PATH or compiler configuration so that the native linker is
8224 *** used, and then restart.
8226 _LT_EOF
8229 # For security reasons, it is highly recommended that you always
8230 # use absolute paths for naming shared libraries, and exclude the
8231 # DT_RUNPATH tag from executables and libraries. But doing so
8232 # requires that you compile everything twice, which is a pain.
8233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8237 else
8238 ld_shlibs=no
8241 esac
8244 sunos4*)
8245 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8246 wlarc=
8247 hardcode_direct=yes
8248 hardcode_shlibpath_var=no
8252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8255 else
8256 ld_shlibs=no
8259 esac
8261 if test "$ld_shlibs" = no; then
8262 runpath_var=
8263 hardcode_libdir_flag_spec=
8264 export_dynamic_flag_spec=
8265 whole_archive_flag_spec=
8267 else
8268 # PORTME fill in a description of your system's linker (not GNU ld)
8269 case $host_os in
8270 aix3*)
8271 allow_undefined_flag=unsupported
8272 always_export_symbols=yes
8273 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'
8274 # Note: this linker hardcodes the directories in LIBPATH if there
8275 # are no directories specified by -L.
8276 hardcode_minus_L=yes
8277 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8278 # Neither direct hardcoding nor static linking is supported with a
8279 # broken collect2.
8280 hardcode_direct=unsupported
8284 aix[4-9]*)
8285 if test "$host_cpu" = ia64; then
8286 # On IA64, the linker does run time linking by default, so we don't
8287 # have to do anything special.
8288 aix_use_runtimelinking=no
8289 exp_sym_flag='-Bexport'
8290 no_entry_flag=""
8291 else
8292 # If we're using GNU nm, then we don't want the "-C" option.
8293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8294 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8295 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'
8296 else
8297 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'
8299 aix_use_runtimelinking=no
8301 # Test if we are trying to use run time linking or normal
8302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8303 # need to do runtime linking.
8304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8305 for ld_flag in $LDFLAGS; do
8306 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8307 aix_use_runtimelinking=yes
8308 break
8310 done
8312 esac
8314 exp_sym_flag='-bexport'
8315 no_entry_flag='-bnoentry'
8318 # When large executables or shared objects are built, AIX ld can
8319 # have problems creating the table of contents. If linking a library
8320 # or program results in "error TOC overflow" add -mminimal-toc to
8321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8324 archive_cmds=''
8325 hardcode_direct=yes
8326 hardcode_direct_absolute=yes
8327 hardcode_libdir_separator=':'
8328 link_all_deplibs=yes
8329 file_list_spec='${wl}-f,'
8331 if test "$GCC" = yes; then
8332 case $host_os in aix4.[012]|aix4.[012].*)
8333 # We only want to do this on AIX 4.2 and lower, the check
8334 # below for broken collect2 doesn't work under 4.3+
8335 collect2name=`${CC} -print-prog-name=collect2`
8336 if test -f "$collect2name" &&
8337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8338 then
8339 # We have reworked collect2
8341 else
8342 # We have old collect2
8343 hardcode_direct=unsupported
8344 # It fails to find uninstalled libraries when the uninstalled
8345 # path is not listed in the libpath. Setting hardcode_minus_L
8346 # to unsupported forces relinking
8347 hardcode_minus_L=yes
8348 hardcode_libdir_flag_spec='-L$libdir'
8349 hardcode_libdir_separator=
8352 esac
8353 shared_flag='-shared'
8354 if test "$aix_use_runtimelinking" = yes; then
8355 shared_flag="$shared_flag "'${wl}-G'
8357 else
8358 # not using gcc
8359 if test "$host_cpu" = ia64; then
8360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8361 # chokes on -Wl,-G. The following line is correct:
8362 shared_flag='-G'
8363 else
8364 if test "$aix_use_runtimelinking" = yes; then
8365 shared_flag='${wl}-G'
8366 else
8367 shared_flag='${wl}-bM:SRE'
8372 # It seems that -bexpall does not export symbols beginning with
8373 # underscore (_), so it is better to generate a list of symbols to export.
8374 always_export_symbols=yes
8375 if test "$aix_use_runtimelinking" = yes; then
8376 # Warning - without using the other runtime loading flags (-brtl),
8377 # -berok will link without error, but may produce a broken library.
8378 allow_undefined_flag='-berok'
8379 # Determine the default libpath from the value encoded in an
8380 # empty executable.
8381 if test x$gcc_no_link = xyes; then
8382 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8384 { (exit 1); exit 1; }; }
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8394 main ()
8398 return 0;
8400 _ACEOF
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8403 (eval $ac_link) 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest$ac_exeext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8424 lt_aix_libpath_sed='
8425 /Import File Strings/,/^$/ {
8426 /^0/ {
8427 s/^0 *\(.*\)$/\1/
8431 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8432 # Check for a 64-bit object if we didn't find anything.
8433 if test -z "$aix_libpath"; then
8434 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8441 rm -f conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8446 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"
8447 else
8448 if test "$host_cpu" = ia64; then
8449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8450 allow_undefined_flag="-z nodefs"
8451 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"
8452 else
8453 # Determine the default libpath from the value encoded in an
8454 # empty executable.
8455 if test x$gcc_no_link = xyes; then
8456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8458 { (exit 1); exit 1; }; }
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8468 main ()
8472 return 0;
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477 (eval $ac_link) 2>conftest.er1
8478 ac_status=$?
8479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
8484 { ac_try='test -z "$ac_c_werror_flag"
8485 || test ! -s conftest.err'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8498 lt_aix_libpath_sed='
8499 /Import File Strings/,/^$/ {
8500 /^0/ {
8501 s/^0 *\(.*\)$/\1/
8505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 # Check for a 64-bit object if we didn't find anything.
8507 if test -z "$aix_libpath"; then
8508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8515 rm -f conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520 # Warning - without using the other run time loading flags,
8521 # -berok will link without error, but may produce a broken library.
8522 no_undefined_flag=' ${wl}-bernotok'
8523 allow_undefined_flag=' ${wl}-berok'
8524 # Exported symbols can be pulled into shared objects from archives
8525 whole_archive_flag_spec='$convenience'
8526 archive_cmds_need_lc=yes
8527 # This is similar to how AIX traditionally builds its shared libraries.
8528 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'
8533 amigaos*)
8534 if test "$host_cpu" = m68k; then
8535 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)'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_minus_L=yes
8539 # see comment about different semantics on the GNU ld section
8540 ld_shlibs=no
8543 bsdi[45]*)
8544 export_dynamic_flag_spec=-rdynamic
8547 cygwin* | mingw* | pw32*)
8548 # When not using gcc, we currently assume that we are using
8549 # Microsoft Visual C++.
8550 # hardcode_libdir_flag_spec is actually meaningless, as there is
8551 # no search path for DLLs.
8552 hardcode_libdir_flag_spec=' '
8553 allow_undefined_flag=unsupported
8554 # Tell ltmain to make .lib files, not .a files.
8555 libext=lib
8556 # Tell ltmain to make .dll files, not .so files.
8557 shrext_cmds=".dll"
8558 # FIXME: Setting linknames here is a bad hack.
8559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8560 # The linker will automatically build a .lib file if we build a DLL.
8561 old_archive_from_new_cmds='true'
8562 # FIXME: Should let the user specify the lib program.
8563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8564 fix_srcfile_path='`cygpath -w "$srcfile"`'
8565 enable_shared_with_static_runtimes=yes
8568 darwin* | rhapsody*)
8569 case $host_os in
8570 rhapsody* | darwin1.[012])
8571 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8573 *) # Darwin 1.3 on
8574 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8575 10.[012])
8576 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8578 10.*)
8579 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8581 esac
8583 esac
8584 archive_cmds_need_lc=no
8585 hardcode_direct=no
8586 hardcode_automatic=yes
8587 hardcode_shlibpath_var=unsupported
8588 whole_archive_flag_spec=''
8589 link_all_deplibs=yes
8590 if test "$GCC" = yes ; then
8591 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594 lt_cv_apple_cc_single_mod=no
8595 if test -z "${LT_MULTI_MODULE}"; then
8596 # By default we will add the -single_module flag. You can override
8597 # by either setting the environment variable LT_MULTI_MODULE
8598 # non-empty at configure time, or by adding -multi-module to the
8599 # link flags.
8600 echo "int foo(void){return 1;}" > conftest.c
8601 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8602 -dynamiclib ${wl}-single_module conftest.c
8603 if test -f libconftest.dylib; then
8604 lt_cv_apple_cc_single_mod=yes
8605 rm libconftest.dylib
8607 rm conftest.$ac_ext
8611 output_verbose_link_cmd=echo
8612 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8613 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8614 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8615 else
8616 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8617 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8619 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8620 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8621 else
8622 case $cc_basename in
8623 xlc*)
8624 output_verbose_link_cmd=echo
8625 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8626 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8627 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8628 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8629 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8632 ld_shlibs=no
8634 esac
8638 dgux*)
8639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 hardcode_shlibpath_var=no
8644 freebsd1*)
8645 ld_shlibs=no
8648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8649 # support. Future versions do this automatically, but an explicit c++rt0.o
8650 # does not break anything, and helps significantly (at the cost of a little
8651 # extra space).
8652 freebsd2.2*)
8653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8654 hardcode_libdir_flag_spec='-R$libdir'
8655 hardcode_direct=yes
8656 hardcode_shlibpath_var=no
8659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8660 freebsd2*)
8661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_direct=yes
8663 hardcode_minus_L=yes
8664 hardcode_shlibpath_var=no
8667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8668 freebsd* | dragonfly*)
8669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 hardcode_direct=yes
8672 hardcode_shlibpath_var=no
8675 hpux9*)
8676 if test "$GCC" = yes; then
8677 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'
8678 else
8679 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'
8681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8682 hardcode_libdir_separator=:
8683 hardcode_direct=yes
8685 # hardcode_minus_L: Not really in the search PATH,
8686 # but as the default location of the library.
8687 hardcode_minus_L=yes
8688 export_dynamic_flag_spec='${wl}-E'
8691 hpux10*)
8692 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8694 else
8695 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8697 if test "$with_gnu_ld" = no; then
8698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699 hardcode_libdir_flag_spec_ld='+b $libdir'
8700 hardcode_libdir_separator=:
8701 hardcode_direct=yes
8702 hardcode_direct_absolute=yes
8703 export_dynamic_flag_spec='${wl}-E'
8704 # hardcode_minus_L: Not really in the search PATH,
8705 # but as the default location of the library.
8706 hardcode_minus_L=yes
8710 hpux11*)
8711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8712 case $host_cpu in
8713 hppa*64*)
8714 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 ia64*)
8717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722 esac
8723 else
8724 case $host_cpu in
8725 hppa*64*)
8726 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728 ia64*)
8729 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 esac
8736 if test "$with_gnu_ld" = no; then
8737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8738 hardcode_libdir_separator=:
8740 case $host_cpu in
8741 hppa*64*|ia64*)
8742 hardcode_direct=no
8743 hardcode_shlibpath_var=no
8746 hardcode_direct=yes
8747 hardcode_direct_absolute=yes
8748 export_dynamic_flag_spec='${wl}-E'
8750 # hardcode_minus_L: Not really in the search PATH,
8751 # but as the default location of the library.
8752 hardcode_minus_L=yes
8754 esac
8758 irix5* | irix6* | nonstopux*)
8759 if test "$GCC" = yes; then
8760 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'
8761 # Try to use the -exported_symbol ld option, if it does not
8762 # work, assume that -exports_file does not work either and
8763 # implicitly export all symbols.
8764 save_LDFLAGS="$LDFLAGS"
8765 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8766 if test x$gcc_no_link = xyes; then
8767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8769 { (exit 1); exit 1; }; }
8771 cat >conftest.$ac_ext <<_ACEOF
8772 int foo(void) {}
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8776 (eval $ac_link) 2>conftest.er1
8777 ac_status=$?
8778 grep -v '^ *+' conftest.er1 >conftest.err
8779 rm -f conftest.er1
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } &&
8783 { ac_try='test -z "$ac_c_werror_flag"
8784 || test ! -s conftest.err'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792 (eval $ac_try) 2>&5
8793 ac_status=$?
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 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'
8798 else
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.$ac_ext >&5
8803 rm -f conftest.err conftest.$ac_objext \
8804 conftest$ac_exeext conftest.$ac_ext
8805 LDFLAGS="$save_LDFLAGS"
8806 else
8807 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'
8808 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'
8810 archive_cmds_need_lc='no'
8811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8812 hardcode_libdir_separator=:
8813 inherit_rpath=yes
8814 link_all_deplibs=yes
8817 netbsd*)
8818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8820 else
8821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8823 hardcode_libdir_flag_spec='-R$libdir'
8824 hardcode_direct=yes
8825 hardcode_shlibpath_var=no
8828 newsos6)
8829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830 hardcode_direct=yes
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832 hardcode_libdir_separator=:
8833 hardcode_shlibpath_var=no
8836 *nto* | *qnx*)
8839 openbsd*)
8840 hardcode_direct=yes
8841 hardcode_shlibpath_var=no
8842 hardcode_direct_absolute=yes
8843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8847 export_dynamic_flag_spec='${wl}-E'
8848 else
8849 case $host_os in
8850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8852 hardcode_libdir_flag_spec='-R$libdir'
8855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8858 esac
8862 os2*)
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 hardcode_minus_L=yes
8865 allow_undefined_flag=unsupported
8866 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'
8867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8870 osf3*)
8871 if test "$GCC" = yes; then
8872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8873 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'
8874 else
8875 allow_undefined_flag=' -expect_unresolved \*'
8876 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'
8878 archive_cmds_need_lc='no'
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 hardcode_libdir_separator=:
8883 osf4* | osf5*) # as osf3* with the addition of -msym flag
8884 if test "$GCC" = yes; then
8885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8886 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'
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 else
8889 allow_undefined_flag=' -expect_unresolved \*'
8890 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'
8891 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~
8892 $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'
8894 # Both c and cxx compiler support -rpath directly
8895 hardcode_libdir_flag_spec='-rpath $libdir'
8897 archive_cmds_need_lc='no'
8898 hardcode_libdir_separator=:
8901 solaris*)
8902 no_undefined_flag=' -z defs'
8903 if test "$GCC" = yes; then
8904 wlarc='${wl}'
8905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8908 else
8909 case `$CC -V 2>&1` in
8910 *"Compilers 5.0"*)
8911 wlarc=''
8912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8917 wlarc='${wl}'
8918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8922 esac
8924 hardcode_libdir_flag_spec='-R$libdir'
8925 hardcode_shlibpath_var=no
8926 case $host_os in
8927 solaris2.[0-5] | solaris2.[0-5].*) ;;
8929 # The compiler driver will combine and reorder linker options,
8930 # but understands `-z linker_flag'. GCC discards it without `$wl',
8931 # but is careful enough not to reorder.
8932 # Supported since Solaris 2.6 (maybe 2.5.1?)
8933 if test "$GCC" = yes; then
8934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8935 else
8936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8939 esac
8940 link_all_deplibs=yes
8943 sunos4*)
8944 if test "x$host_vendor" = xsequent; then
8945 # Use $CC to link under sequent, because it throws in some extra .o
8946 # files that make .init and .fini sections work.
8947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8948 else
8949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8951 hardcode_libdir_flag_spec='-L$libdir'
8952 hardcode_direct=yes
8953 hardcode_minus_L=yes
8954 hardcode_shlibpath_var=no
8957 sysv4)
8958 case $host_vendor in
8959 sni)
8960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_direct=yes # is this really true???
8963 siemens)
8964 ## LD is ld it makes a PLAMLIB
8965 ## CC just makes a GrossModule.
8966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8967 reload_cmds='$CC -r -o $output$reload_objs'
8968 hardcode_direct=no
8970 motorola)
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8974 esac
8975 runpath_var='LD_RUN_PATH'
8976 hardcode_shlibpath_var=no
8979 sysv4.3*)
8980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 hardcode_shlibpath_var=no
8982 export_dynamic_flag_spec='-Bexport'
8985 sysv4*MP*)
8986 if test -d /usr/nec; then
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_shlibpath_var=no
8989 runpath_var=LD_RUN_PATH
8990 hardcode_runpath_var=yes
8991 ld_shlibs=yes
8995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8996 no_undefined_flag='${wl}-z,text'
8997 archive_cmds_need_lc=no
8998 hardcode_shlibpath_var=no
8999 runpath_var='LD_RUN_PATH'
9001 if test "$GCC" = yes; then
9002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9004 else
9005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010 sysv5* | sco3.2v5* | sco5v6*)
9011 # Note: We can NOT use -z defs as we might desire, because we do not
9012 # link with -lc, and that would cause any symbols used from libc to
9013 # always be unresolved, which means just about no library would
9014 # ever link correctly. If we're not using GNU ld we use -z text
9015 # though, which does catch some bad symbols but isn't as heavy-handed
9016 # as -z defs.
9017 no_undefined_flag='${wl}-z,text'
9018 allow_undefined_flag='${wl}-z,nodefs'
9019 archive_cmds_need_lc=no
9020 hardcode_shlibpath_var=no
9021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9022 hardcode_libdir_separator=':'
9023 link_all_deplibs=yes
9024 export_dynamic_flag_spec='${wl}-Bexport'
9025 runpath_var='LD_RUN_PATH'
9027 if test "$GCC" = yes; then
9028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 else
9031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9036 uts4*)
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9043 ld_shlibs=no
9045 esac
9047 if test x$host_vendor = xsni; then
9048 case $host in
9049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9050 export_dynamic_flag_spec='${wl}-Blargedynsym'
9052 esac
9056 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9057 echo "${ECHO_T}$ld_shlibs" >&6
9058 test "$ld_shlibs" = no && can_build_shared=no
9060 with_gnu_ld=$with_gnu_ld
9077 # Do we need to explicitly link libc?
9079 case "x$archive_cmds_need_lc" in
9080 x|xyes)
9081 # Assume -lc should be added
9082 archive_cmds_need_lc=yes
9084 if test "$enable_shared" = yes && test "$GCC" = yes; then
9085 case $archive_cmds in
9086 *'~'*)
9087 # FIXME: we may have to deal with multi-command sequences.
9089 '$CC '*)
9090 # Test whether the compiler implicitly links with -lc since on some
9091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9092 # to ld, don't add -lc before -lgcc.
9093 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9095 $RM conftest*
9096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } 2>conftest.err; then
9103 soname=conftest
9104 lib=conftest
9105 libobjs=conftest.$ac_objext
9106 deplibs=
9107 wl=$lt_prog_compiler_wl
9108 pic_flag=$lt_prog_compiler_pic
9109 compiler_flags=-v
9110 linker_flags=-v
9111 verstring=
9112 output_objdir=.
9113 libname=conftest
9114 lt_save_allow_undefined_flag=$allow_undefined_flag
9115 allow_undefined_flag=
9116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }
9121 then
9122 archive_cmds_need_lc=no
9123 else
9124 archive_cmds_need_lc=yes
9126 allow_undefined_flag=$lt_save_allow_undefined_flag
9127 else
9128 cat conftest.err 1>&5
9130 $RM conftest*
9131 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9132 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9134 esac
9137 esac
9295 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9297 withGCC=$GCC
9298 if test "$withGCC" = yes; then
9299 case $host_os in
9300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9301 *) lt_awk_arg="/^libraries:/" ;;
9302 esac
9303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9305 # if the path contains ";" then we assume it to be the separator
9306 # otherwise default to the standard path separator (i.e. ":") - it is
9307 # assumed that no part of a normal pathname contains ";" but that should
9308 # okay in the real world where ";" in dirpaths is itself problematic.
9309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9310 else
9311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9313 # Ok, now we have the path, separated by spaces, we can step through it
9314 # and add multilib dir if necessary.
9315 lt_tmp_lt_search_path_spec=
9316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9317 for lt_sys_path in $lt_search_path_spec; do
9318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9320 else
9321 test -d "$lt_sys_path" && \
9322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9324 done
9325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9326 BEGIN {RS=" "; FS="/|\n";} {
9327 lt_foo="";
9328 lt_count=0;
9329 for (lt_i = NF; lt_i > 0; lt_i--) {
9330 if ($lt_i != "" && $lt_i != ".") {
9331 if ($lt_i == "..") {
9332 lt_count++;
9333 } else {
9334 if (lt_count == 0) {
9335 lt_foo="/" $lt_i lt_foo;
9336 } else {
9337 lt_count--;
9342 if (lt_foo != "") { lt_freq[lt_foo]++; }
9343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9346 else
9347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9349 library_names_spec=
9350 libname_spec='lib$name'
9351 soname_spec=
9352 shrext_cmds=".so"
9353 postinstall_cmds=
9354 postuninstall_cmds=
9355 finish_cmds=
9356 finish_eval=
9357 shlibpath_var=
9358 shlibpath_overrides_runpath=unknown
9359 version_type=none
9360 dynamic_linker="$host_os ld.so"
9361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9362 need_lib_prefix=unknown
9363 hardcode_into_libs=no
9365 # when you set need_version to no, make sure it does not cause -set_version
9366 # flags to be left without arguments
9367 need_version=unknown
9369 case $host_os in
9370 aix3*)
9371 version_type=linux
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9373 shlibpath_var=LIBPATH
9375 # AIX 3 has no versioning support, so we append a major version to the name.
9376 soname_spec='${libname}${release}${shared_ext}$major'
9379 aix[4-9]*)
9380 version_type=linux
9381 need_lib_prefix=no
9382 need_version=no
9383 hardcode_into_libs=yes
9384 if test "$host_cpu" = ia64; then
9385 # AIX 5 supports IA64
9386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 else
9389 # With GCC up to 2.95.x, collect2 would create an import file
9390 # for dependence libraries. The import file would start with
9391 # the line `#! .'. This would cause the generated library to
9392 # depend on `.', always an invalid library. This was fixed in
9393 # development snapshots of GCC prior to 3.0.
9394 case $host_os in
9395 aix4 | aix4.[01] | aix4.[01].*)
9396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9397 echo ' yes '
9398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9400 else
9401 can_build_shared=no
9404 esac
9405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9406 # soname into executable. Probably we can add versioning support to
9407 # collect2, so additional links can be useful in future.
9408 if test "$aix_use_runtimelinking" = yes; then
9409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9410 # instead of lib<name>.a to let people know that these are not
9411 # typical AIX shared libraries.
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413 else
9414 # We preserve .a as extension for shared libraries through AIX4.2
9415 # and later when we are not doing run time linking.
9416 library_names_spec='${libname}${release}.a $libname.a'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LIBPATH
9423 amigaos*)
9424 if test "$host_cpu" = m68k; then
9425 library_names_spec='$libname.ixlibrary $libname.a'
9426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9427 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'
9428 else
9429 dynamic_linker=no
9433 beos*)
9434 library_names_spec='${libname}${shared_ext}'
9435 dynamic_linker="$host_os ld.so"
9436 shlibpath_var=LIBRARY_PATH
9439 bsdi[45]*)
9440 version_type=linux
9441 need_version=no
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9448 # the default ld.so.conf also contains /usr/contrib/lib and
9449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9450 # libtool to hard-code these into programs
9453 cygwin* | mingw* | pw32*)
9454 version_type=windows
9455 shrext_cmds=".dll"
9456 need_version=no
9457 need_lib_prefix=no
9459 case $withGCC,$host_os in
9460 yes,cygwin* | yes,mingw* | yes,pw32*)
9461 library_names_spec='$libname.dll.a'
9462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9463 postinstall_cmds='base_file=`basename \${file}`~
9464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9465 dldir=$destdir/`dirname \$dlpath`~
9466 test -d \$dldir || mkdir -p \$dldir~
9467 $install_prog $dir/$dlname \$dldir/$dlname~
9468 chmod a+x \$dldir/$dlname~
9469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9473 dlpath=$dir/\$dldll~
9474 $RM \$dlpath'
9475 shlibpath_overrides_runpath=yes
9477 case $host_os in
9478 cygwin*)
9479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9481 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9483 mingw*)
9484 # MinGW DLLs use traditional 'lib' prefix
9485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9486 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9488 # It is most probably a Windows format PATH printed by
9489 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9490 # path with ; separators, and with drive letters. We can handle the
9491 # drive letters (cygwin fileutils understands them), so leave them,
9492 # especially as we might pass files found there to a mingw objdump,
9493 # which wouldn't understand a cygwinified path. Ahh.
9494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9495 else
9496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9499 pw32*)
9500 # pw32 DLLs use 'pw' prefix rather than 'lib'
9501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9503 esac
9507 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9509 esac
9510 dynamic_linker='Win32 ld.exe'
9511 # FIXME: first we should search . and the directory the executable is in
9512 shlibpath_var=PATH
9515 darwin* | rhapsody*)
9516 dynamic_linker="$host_os dyld"
9517 version_type=darwin
9518 need_lib_prefix=no
9519 need_version=no
9520 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9521 soname_spec='${libname}${release}${major}$shared_ext'
9522 shlibpath_overrides_runpath=yes
9523 shlibpath_var=DYLD_LIBRARY_PATH
9524 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9530 dgux*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 shlibpath_var=LD_LIBRARY_PATH
9539 freebsd1*)
9540 dynamic_linker=no
9543 freebsd* | dragonfly*)
9544 # DragonFly does not have aout. When/if they implement a new
9545 # versioning mechanism, adjust this.
9546 if test -x /usr/bin/objformat; then
9547 objformat=`/usr/bin/objformat`
9548 else
9549 case $host_os in
9550 freebsd[123]*) objformat=aout ;;
9551 *) objformat=elf ;;
9552 esac
9554 version_type=freebsd-$objformat
9555 case $version_type in
9556 freebsd-elf*)
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9558 need_version=no
9559 need_lib_prefix=no
9561 freebsd-*)
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9563 need_version=yes
9565 esac
9566 shlibpath_var=LD_LIBRARY_PATH
9567 case $host_os in
9568 freebsd2*)
9569 shlibpath_overrides_runpath=yes
9571 freebsd3.[01]* | freebsdelf3.[01]*)
9572 shlibpath_overrides_runpath=yes
9573 hardcode_into_libs=yes
9575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9577 shlibpath_overrides_runpath=no
9578 hardcode_into_libs=yes
9580 *) # from 4.6 on, and DragonFly
9581 shlibpath_overrides_runpath=yes
9582 hardcode_into_libs=yes
9584 esac
9587 gnu*)
9588 version_type=linux
9589 need_lib_prefix=no
9590 need_version=no
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 hardcode_into_libs=yes
9597 hpux9* | hpux10* | hpux11*)
9598 # Give a soname corresponding to the major version so that dld.sl refuses to
9599 # link against other versions.
9600 version_type=sunos
9601 need_lib_prefix=no
9602 need_version=no
9603 case $host_cpu in
9604 ia64*)
9605 shrext_cmds='.so'
9606 hardcode_into_libs=yes
9607 dynamic_linker="$host_os dld.so"
9608 shlibpath_var=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611 soname_spec='${libname}${release}${shared_ext}$major'
9612 if test "X$HPUX_IA64_MODE" = X32; then
9613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9614 else
9615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9619 hppa*64*)
9620 shrext_cmds='.sl'
9621 hardcode_into_libs=yes
9622 dynamic_linker="$host_os dld.sl"
9623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9631 shrext_cmds='.sl'
9632 dynamic_linker="$host_os dld.sl"
9633 shlibpath_var=SHLIB_PATH
9634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9638 esac
9639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9640 postinstall_cmds='chmod 555 $lib'
9643 interix[3-9]*)
9644 version_type=linux
9645 need_lib_prefix=no
9646 need_version=no
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 shlibpath_overrides_runpath=no
9652 hardcode_into_libs=yes
9655 irix5* | irix6* | nonstopux*)
9656 case $host_os in
9657 nonstopux*) version_type=nonstopux ;;
9659 if test "$lt_cv_prog_gnu_ld" = yes; then
9660 version_type=linux
9661 else
9662 version_type=irix
9663 fi ;;
9664 esac
9665 need_lib_prefix=no
9666 need_version=no
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9669 case $host_os in
9670 irix5* | nonstopux*)
9671 libsuff= shlibsuff=
9674 case $LD in # libtool.m4 will add one of these switches to LD
9675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9676 libsuff= shlibsuff= libmagic=32-bit;;
9677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9678 libsuff=32 shlibsuff=N32 libmagic=N32;;
9679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9681 *) libsuff= shlibsuff= libmagic=never-match;;
9682 esac
9684 esac
9685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9686 shlibpath_overrides_runpath=no
9687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9689 hardcode_into_libs=yes
9692 # No shared lib support for Linux oldld, aout, or coff.
9693 linux*oldld* | linux*aout* | linux*coff*)
9694 dynamic_linker=no
9697 # This must be Linux ELF.
9698 linux* | k*bsd*-gnu)
9699 version_type=linux
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=no
9707 # Some binutils ld are patched to set DT_RUNPATH
9708 save_LDFLAGS=$LDFLAGS
9709 save_libdir=$libdir
9710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9712 if test x$gcc_no_link = xyes; then
9713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9715 { (exit 1); exit 1; }; }
9717 cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h. */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9725 main ()
9729 return 0;
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9755 shlibpath_overrides_runpath=yes
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9763 rm -f conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LDFLAGS=$save_LDFLAGS
9766 libdir=$save_libdir
9768 # This implies no fast_install, which is unacceptable.
9769 # Some rework will be needed to allow for fast_install
9770 # before this can be enabled.
9771 hardcode_into_libs=yes
9773 # Append ld.so.conf contents to the search path
9774 if test -f /etc/ld.so.conf; then
9775 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9776 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9779 # We used to test for /lib/ld.so.1 and disable shared libraries on
9780 # powerpc, because MkLinux only supported shared libraries with the
9781 # GNU dynamic linker. Since this was broken with cross compilers,
9782 # most powerpc-linux boxes support dynamic linking these days and
9783 # people can always --disable-shared, the test was removed, and we
9784 # assume the GNU/Linux dynamic linker is in use.
9785 dynamic_linker='GNU/Linux ld.so'
9788 netbsd*)
9789 version_type=sunos
9790 need_lib_prefix=no
9791 need_version=no
9792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9795 dynamic_linker='NetBSD (a.out) ld.so'
9796 else
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 dynamic_linker='NetBSD ld.elf_so'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes
9803 hardcode_into_libs=yes
9806 newsos6)
9807 version_type=linux
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 shlibpath_overrides_runpath=yes
9813 *nto* | *qnx*)
9814 version_type=qnx
9815 need_lib_prefix=no
9816 need_version=no
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9819 shlibpath_var=LD_LIBRARY_PATH
9820 shlibpath_overrides_runpath=no
9821 hardcode_into_libs=yes
9822 dynamic_linker='ldqnx.so'
9825 openbsd*)
9826 version_type=sunos
9827 sys_lib_dlsearch_path_spec="/usr/lib"
9828 need_lib_prefix=no
9829 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9830 case $host_os in
9831 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9832 *) need_version=no ;;
9833 esac
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9838 case $host_os in
9839 openbsd2.[89] | openbsd2.[89].*)
9840 shlibpath_overrides_runpath=no
9843 shlibpath_overrides_runpath=yes
9845 esac
9846 else
9847 shlibpath_overrides_runpath=yes
9851 os2*)
9852 libname_spec='$name'
9853 shrext_cmds=".dll"
9854 need_lib_prefix=no
9855 library_names_spec='$libname${shared_ext} $libname.a'
9856 dynamic_linker='OS/2 ld.exe'
9857 shlibpath_var=LIBPATH
9860 osf3* | osf4* | osf5*)
9861 version_type=osf
9862 need_lib_prefix=no
9863 need_version=no
9864 soname_spec='${libname}${release}${shared_ext}$major'
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 shlibpath_var=LD_LIBRARY_PATH
9867 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9868 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9871 rdos*)
9872 dynamic_linker=no
9875 solaris*)
9876 version_type=linux
9877 need_lib_prefix=no
9878 need_version=no
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 shlibpath_overrides_runpath=yes
9883 hardcode_into_libs=yes
9884 # ldd complains unless libraries are executable
9885 postinstall_cmds='chmod +x $lib'
9888 sunos4*)
9889 version_type=sunos
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9891 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 shlibpath_overrides_runpath=yes
9894 if test "$with_gnu_ld" = yes; then
9895 need_lib_prefix=no
9897 need_version=yes
9900 sysv4 | sysv4.3*)
9901 version_type=linux
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 case $host_vendor in
9906 sni)
9907 shlibpath_overrides_runpath=no
9908 need_lib_prefix=no
9909 runpath_var=LD_RUN_PATH
9911 siemens)
9912 need_lib_prefix=no
9914 motorola)
9915 need_lib_prefix=no
9916 need_version=no
9917 shlibpath_overrides_runpath=no
9918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9920 esac
9923 sysv4*MP*)
9924 if test -d /usr/nec ;then
9925 version_type=linux
9926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9927 soname_spec='$libname${shared_ext}.$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9933 version_type=freebsd-elf
9934 need_lib_prefix=no
9935 need_version=no
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 hardcode_into_libs=yes
9941 if test "$with_gnu_ld" = yes; then
9942 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9943 else
9944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9945 case $host_os in
9946 sco3.2v5*)
9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9949 esac
9951 sys_lib_dlsearch_path_spec='/usr/lib'
9954 tpf*)
9955 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9956 version_type=linux
9957 need_lib_prefix=no
9958 need_version=no
9959 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=no
9962 hardcode_into_libs=yes
9965 uts4*)
9966 version_type=linux
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968 soname_spec='${libname}${release}${shared_ext}$major'
9969 shlibpath_var=LD_LIBRARY_PATH
9973 dynamic_linker=no
9975 esac
9976 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9977 echo "${ECHO_T}$dynamic_linker" >&6
9978 test "$dynamic_linker" = no && can_build_shared=no
9980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9981 if test "$GCC" = yes; then
9982 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10071 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10073 hardcode_action=
10074 if test -n "$hardcode_libdir_flag_spec" ||
10075 test -n "$runpath_var" ||
10076 test "X$hardcode_automatic" = "Xyes" ; then
10078 # We can hardcode non-existent directories.
10079 if test "$hardcode_direct" != no &&
10080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10081 # have to relink, otherwise we might link with an installed library
10082 # when we should be linking with a yet-to-be-installed one
10083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10084 test "$hardcode_minus_L" != no; then
10085 # Linking always hardcodes the temporary library directory.
10086 hardcode_action=relink
10087 else
10088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10089 hardcode_action=immediate
10091 else
10092 # We cannot hardcode anything, or else we can only hardcode existing
10093 # directories.
10094 hardcode_action=unsupported
10096 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10097 echo "${ECHO_T}$hardcode_action" >&6
10099 if test "$hardcode_action" = relink ||
10100 test "$inherit_rpath" = yes; then
10101 # Fast installation is not supported
10102 enable_fast_install=no
10103 elif test "$shlibpath_overrides_runpath" = yes ||
10104 test "$enable_shared" = no; then
10105 # Fast installation is not necessary
10106 enable_fast_install=needless
10114 if test "x$enable_dlopen" != xyes; then
10115 enable_dlopen=unknown
10116 enable_dlopen_self=unknown
10117 enable_dlopen_self_static=unknown
10118 else
10119 lt_cv_dlopen=no
10120 lt_cv_dlopen_libs=
10122 case $host_os in
10123 beos*)
10124 lt_cv_dlopen="load_add_on"
10125 lt_cv_dlopen_libs=
10126 lt_cv_dlopen_self=yes
10129 mingw* | pw32*)
10130 lt_cv_dlopen="LoadLibrary"
10131 lt_cv_dlopen_libs=
10134 cygwin*)
10135 lt_cv_dlopen="dlopen"
10136 lt_cv_dlopen_libs=
10139 darwin*)
10140 # if libdl is installed we need to link against it
10141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146 ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldl $LIBS"
10148 if test x$gcc_no_link = xyes; then
10149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10151 { (exit 1); exit 1; }; }
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10160 /* Override any gcc2 internal prototype to avoid an error. */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166 char dlopen ();
10168 main ()
10170 dlopen ();
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_lib_dl_dlopen=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_lib_dl_dlopen=no
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10210 if test $ac_cv_lib_dl_dlopen = yes; then
10211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10212 else
10214 lt_cv_dlopen="dyld"
10215 lt_cv_dlopen_libs=
10216 lt_cv_dlopen_self=yes
10223 echo "$as_me:$LINENO: checking for shl_load" >&5
10224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10225 if test "${ac_cv_func_shl_load+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228 if test x$gcc_no_link = xyes; then
10229 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10230 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10231 { (exit 1); exit 1; }; }
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10241 #define shl_load innocuous_shl_load
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char shl_load (); below.
10245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246 <limits.h> exists even on freestanding compilers. */
10248 #ifdef __STDC__
10249 # include <limits.h>
10250 #else
10251 # include <assert.h>
10252 #endif
10254 #undef shl_load
10256 /* Override any gcc2 internal prototype to avoid an error. */
10257 #ifdef __cplusplus
10258 extern "C"
10260 #endif
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10263 char shl_load ();
10264 /* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10268 choke me
10269 #else
10270 char (*f) () = shl_load;
10271 #endif
10272 #ifdef __cplusplus
10274 #endif
10277 main ()
10279 return f != shl_load;
10281 return 0;
10283 _ACEOF
10284 rm -f conftest.$ac_objext conftest$ac_exeext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag"
10294 || test ! -s conftest.err'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 ac_cv_func_shl_load=yes
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_func_shl_load=no
10313 rm -f conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10316 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10317 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10318 if test $ac_cv_func_shl_load = yes; then
10319 lt_cv_dlopen="shl_load"
10320 else
10321 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10322 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10323 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-ldld $LIBS"
10328 if test x$gcc_no_link = xyes; then
10329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10331 { (exit 1); exit 1; }; }
10333 cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h. */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10340 /* Override any gcc2 internal prototype to avoid an error. */
10341 #ifdef __cplusplus
10342 extern "C"
10343 #endif
10344 /* We use char because int might match the return type of a gcc2
10345 builtin and then its argument prototype would still apply. */
10346 char shl_load ();
10348 main ()
10350 shl_load ();
10352 return 0;
10354 _ACEOF
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 (eval $ac_link) 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag"
10365 || test ! -s conftest.err'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; } &&
10371 { ac_try='test -s conftest$ac_exeext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_lib_dld_shl_load=yes
10378 else
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ac_cv_lib_dld_shl_load=no
10384 rm -f conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10390 if test $ac_cv_lib_dld_shl_load = yes; then
10391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10392 else
10393 echo "$as_me:$LINENO: checking for dlopen" >&5
10394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10395 if test "${ac_cv_func_dlopen+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398 if test x$gcc_no_link = xyes; then
10399 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10401 { (exit 1); exit 1; }; }
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10411 #define dlopen innocuous_dlopen
10413 /* System header to define __stub macros and hopefully few prototypes,
10414 which can conflict with char dlopen (); below.
10415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416 <limits.h> exists even on freestanding compilers. */
10418 #ifdef __STDC__
10419 # include <limits.h>
10420 #else
10421 # include <assert.h>
10422 #endif
10424 #undef dlopen
10426 /* Override any gcc2 internal prototype to avoid an error. */
10427 #ifdef __cplusplus
10428 extern "C"
10430 #endif
10431 /* We use char because int might match the return type of a gcc2
10432 builtin and then its argument prototype would still apply. */
10433 char dlopen ();
10434 /* The GNU C library defines this for functions which it implements
10435 to always fail with ENOSYS. Some functions are actually named
10436 something starting with __ and the normal name is an alias. */
10437 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10438 choke me
10439 #else
10440 char (*f) () = dlopen;
10441 #endif
10442 #ifdef __cplusplus
10444 #endif
10447 main ()
10449 return f != dlopen;
10451 return 0;
10453 _ACEOF
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_func_dlopen=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_func_dlopen=no
10483 rm -f conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10486 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10487 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10488 if test $ac_cv_func_dlopen = yes; then
10489 lt_cv_dlopen="dlopen"
10490 else
10491 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10492 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10493 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 ac_check_lib_save_LIBS=$LIBS
10497 LIBS="-ldl $LIBS"
10498 if test x$gcc_no_link = xyes; then
10499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10500 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10501 { (exit 1); exit 1; }; }
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10510 /* Override any gcc2 internal prototype to avoid an error. */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char dlopen ();
10518 main ()
10520 dlopen ();
10522 return 0;
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest$ac_exeext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_cv_lib_dl_dlopen=yes
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_cv_lib_dl_dlopen=no
10554 rm -f conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10558 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10560 if test $ac_cv_lib_dl_dlopen = yes; then
10561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10562 else
10563 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10564 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10565 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-lsvld $LIBS"
10570 if test x$gcc_no_link = xyes; then
10571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10573 { (exit 1); exit 1; }; }
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10582 /* Override any gcc2 internal prototype to avoid an error. */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588 char dlopen ();
10590 main ()
10592 dlopen ();
10594 return 0;
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag"
10607 || test ! -s conftest.err'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; } &&
10613 { ac_try='test -s conftest$ac_exeext'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_lib_svld_dlopen=yes
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_lib_svld_dlopen=no
10626 rm -f conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10630 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10631 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10632 if test $ac_cv_lib_svld_dlopen = yes; then
10633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10634 else
10635 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10636 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10637 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-ldld $LIBS"
10642 if test x$gcc_no_link = xyes; then
10643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10645 { (exit 1); exit 1; }; }
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10654 /* Override any gcc2 internal prototype to avoid an error. */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10660 char dld_link ();
10662 main ()
10664 dld_link ();
10666 return 0;
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10682 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_lib_dld_dld_link=yes
10692 else
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_lib_dld_dld_link=no
10698 rm -f conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10702 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10703 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10704 if test $ac_cv_lib_dld_dld_link = yes; then
10705 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10724 esac
10726 if test "x$lt_cv_dlopen" != xno; then
10727 enable_dlopen=yes
10728 else
10729 enable_dlopen=no
10732 case $lt_cv_dlopen in
10733 dlopen)
10734 save_CPPFLAGS="$CPPFLAGS"
10735 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10737 save_LDFLAGS="$LDFLAGS"
10738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10740 save_LIBS="$LIBS"
10741 LIBS="$lt_cv_dlopen_libs $LIBS"
10743 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10744 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10745 if test "${lt_cv_dlopen_self+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 if test "$cross_compiling" = yes; then :
10749 lt_cv_dlopen_self=cross
10750 else
10751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10752 lt_status=$lt_dlunknown
10753 cat > conftest.$ac_ext <<_LT_EOF
10754 #line 10754 "configure"
10755 #include "confdefs.h"
10757 #if HAVE_DLFCN_H
10758 #include <dlfcn.h>
10759 #endif
10761 #include <stdio.h>
10763 #ifdef RTLD_GLOBAL
10764 # define LT_DLGLOBAL RTLD_GLOBAL
10765 #else
10766 # ifdef DL_GLOBAL
10767 # define LT_DLGLOBAL DL_GLOBAL
10768 # else
10769 # define LT_DLGLOBAL 0
10770 # endif
10771 #endif
10773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10774 find out it does not work in some platform. */
10775 #ifndef LT_DLLAZY_OR_NOW
10776 # ifdef RTLD_LAZY
10777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10778 # else
10779 # ifdef DL_LAZY
10780 # define LT_DLLAZY_OR_NOW DL_LAZY
10781 # else
10782 # ifdef RTLD_NOW
10783 # define LT_DLLAZY_OR_NOW RTLD_NOW
10784 # else
10785 # ifdef DL_NOW
10786 # define LT_DLLAZY_OR_NOW DL_NOW
10787 # else
10788 # define LT_DLLAZY_OR_NOW 0
10789 # endif
10790 # endif
10791 # endif
10792 # endif
10793 #endif
10795 #ifdef __cplusplus
10796 extern "C" void exit (int);
10797 #endif
10799 void fnord() { int i=42;}
10800 int main ()
10802 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10803 int status = $lt_dlunknown;
10805 if (self)
10807 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10808 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10809 /* dlclose (self); */
10811 else
10812 puts (dlerror ());
10814 exit (status);
10816 _LT_EOF
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818 (eval $ac_link) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10822 (./conftest; exit; ) >&5 2>/dev/null
10823 lt_status=$?
10824 case x$lt_status in
10825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10827 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10828 esac
10829 else :
10830 # compilation failed
10831 lt_cv_dlopen_self=no
10834 rm -fr conftest*
10838 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10839 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10841 if test "x$lt_cv_dlopen_self" = xyes; then
10842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10843 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10844 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10845 if test "${lt_cv_dlopen_self_static+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 if test "$cross_compiling" = yes; then :
10849 lt_cv_dlopen_self_static=cross
10850 else
10851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10852 lt_status=$lt_dlunknown
10853 cat > conftest.$ac_ext <<_LT_EOF
10854 #line 10854 "configure"
10855 #include "confdefs.h"
10857 #if HAVE_DLFCN_H
10858 #include <dlfcn.h>
10859 #endif
10861 #include <stdio.h>
10863 #ifdef RTLD_GLOBAL
10864 # define LT_DLGLOBAL RTLD_GLOBAL
10865 #else
10866 # ifdef DL_GLOBAL
10867 # define LT_DLGLOBAL DL_GLOBAL
10868 # else
10869 # define LT_DLGLOBAL 0
10870 # endif
10871 #endif
10873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10874 find out it does not work in some platform. */
10875 #ifndef LT_DLLAZY_OR_NOW
10876 # ifdef RTLD_LAZY
10877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10878 # else
10879 # ifdef DL_LAZY
10880 # define LT_DLLAZY_OR_NOW DL_LAZY
10881 # else
10882 # ifdef RTLD_NOW
10883 # define LT_DLLAZY_OR_NOW RTLD_NOW
10884 # else
10885 # ifdef DL_NOW
10886 # define LT_DLLAZY_OR_NOW DL_NOW
10887 # else
10888 # define LT_DLLAZY_OR_NOW 0
10889 # endif
10890 # endif
10891 # endif
10892 # endif
10893 #endif
10895 #ifdef __cplusplus
10896 extern "C" void exit (int);
10897 #endif
10899 void fnord() { int i=42;}
10900 int main ()
10902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10903 int status = $lt_dlunknown;
10905 if (self)
10907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 /* dlclose (self); */
10911 else
10912 puts (dlerror ());
10914 exit (status);
10916 _LT_EOF
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918 (eval $ac_link) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10922 (./conftest; exit; ) >&5 2>/dev/null
10923 lt_status=$?
10924 case x$lt_status in
10925 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10926 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10927 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10928 esac
10929 else :
10930 # compilation failed
10931 lt_cv_dlopen_self_static=no
10934 rm -fr conftest*
10938 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10939 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10942 CPPFLAGS="$save_CPPFLAGS"
10943 LDFLAGS="$save_LDFLAGS"
10944 LIBS="$save_LIBS"
10946 esac
10948 case $lt_cv_dlopen_self in
10949 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10950 *) enable_dlopen_self=unknown ;;
10951 esac
10953 case $lt_cv_dlopen_self_static in
10954 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10955 *) enable_dlopen_self_static=unknown ;;
10956 esac
10975 striplib=
10976 old_striplib=
10977 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10978 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10979 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10980 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10981 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10982 echo "$as_me:$LINENO: result: yes" >&5
10983 echo "${ECHO_T}yes" >&6
10984 else
10985 # FIXME - insert some real tests, host_os isn't really good enough
10986 case $host_os in
10987 darwin*)
10988 if test -n "$STRIP" ; then
10989 striplib="$STRIP -x"
10990 old_striplib="$STRIP -S"
10991 echo "$as_me:$LINENO: result: yes" >&5
10992 echo "${ECHO_T}yes" >&6
10993 else
10994 echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6
10999 echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11002 esac
11016 # Report which library types will actually be built
11017 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11018 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11019 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11020 echo "${ECHO_T}$can_build_shared" >&6
11022 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11023 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11024 test "$can_build_shared" = "no" && enable_shared=no
11026 # On AIX, shared libraries and static libraries use the same namespace, and
11027 # are all built from PIC.
11028 case $host_os in
11029 aix3*)
11030 test "$enable_shared" = yes && enable_static=no
11031 if test -n "$RANLIB"; then
11032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11033 postinstall_cmds='$RANLIB $lib'
11037 aix[4-9]*)
11038 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11039 test "$enable_shared" = yes && enable_static=no
11042 esac
11043 echo "$as_me:$LINENO: result: $enable_shared" >&5
11044 echo "${ECHO_T}$enable_shared" >&6
11046 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11047 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11048 # Make sure either enable_shared or enable_static is yes.
11049 test "$enable_shared" = yes || enable_static=yes
11050 echo "$as_me:$LINENO: result: $enable_static" >&5
11051 echo "${ECHO_T}$enable_static" >&6
11057 ac_ext=c
11058 ac_cpp='$CPP $CPPFLAGS'
11059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11063 CC="$lt_save_CC"
11077 ac_config_commands="$ac_config_commands libtool"
11082 # Only expand once:
11085 for ac_prog in gawk mawk nawk awk
11087 # Extract the first word of "$ac_prog", so it can be a program name with args.
11088 set dummy $ac_prog; ac_word=$2
11089 echo "$as_me:$LINENO: checking for $ac_word" >&5
11090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091 if test "${ac_cv_prog_AWK+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 if test -n "$AWK"; then
11095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11096 else
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_AWK="$ac_prog"
11105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11108 done
11109 done
11113 AWK=$ac_cv_prog_AWK
11114 if test -n "$AWK"; then
11115 echo "$as_me:$LINENO: result: $AWK" >&5
11116 echo "${ECHO_T}$AWK" >&6
11117 else
11118 echo "$as_me:$LINENO: result: no" >&5
11119 echo "${ECHO_T}no" >&6
11122 test -n "$AWK" && break
11123 done
11125 ac_ext=c
11126 ac_cpp='$CPP $CPPFLAGS'
11127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11130 if test -n "$ac_tool_prefix"; then
11131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11133 echo "$as_me:$LINENO: checking for $ac_word" >&5
11134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11135 if test "${ac_cv_prog_CC+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138 if test -n "$CC"; then
11139 ac_cv_prog_CC="$CC" # Let the user override the test.
11140 else
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11152 done
11153 done
11157 CC=$ac_cv_prog_CC
11158 if test -n "$CC"; then
11159 echo "$as_me:$LINENO: result: $CC" >&5
11160 echo "${ECHO_T}$CC" >&6
11161 else
11162 echo "$as_me:$LINENO: result: no" >&5
11163 echo "${ECHO_T}no" >&6
11167 if test -z "$ac_cv_prog_CC"; then
11168 ac_ct_CC=$CC
11169 # Extract the first word of "gcc", so it can be a program name with args.
11170 set dummy gcc; ac_word=$2
11171 echo "$as_me:$LINENO: checking for $ac_word" >&5
11172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 if test -n "$ac_ct_CC"; then
11177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11178 else
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180 for as_dir in $PATH
11182 IFS=$as_save_IFS
11183 test -z "$as_dir" && as_dir=.
11184 for ac_exec_ext in '' $ac_executable_extensions; do
11185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11186 ac_cv_prog_ac_ct_CC="gcc"
11187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 break 2
11190 done
11191 done
11195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11196 if test -n "$ac_ct_CC"; then
11197 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11198 echo "${ECHO_T}$ac_ct_CC" >&6
11199 else
11200 echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6
11204 CC=$ac_ct_CC
11205 else
11206 CC="$ac_cv_prog_CC"
11209 if test -z "$CC"; then
11210 if test -n "$ac_tool_prefix"; then
11211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11212 set dummy ${ac_tool_prefix}cc; ac_word=$2
11213 echo "$as_me:$LINENO: checking for $ac_word" >&5
11214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11215 if test "${ac_cv_prog_CC+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218 if test -n "$CC"; then
11219 ac_cv_prog_CC="$CC" # Let the user override the test.
11220 else
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
11227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228 ac_cv_prog_CC="${ac_tool_prefix}cc"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11232 done
11233 done
11237 CC=$ac_cv_prog_CC
11238 if test -n "$CC"; then
11239 echo "$as_me:$LINENO: result: $CC" >&5
11240 echo "${ECHO_T}$CC" >&6
11241 else
11242 echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6
11247 if test -z "$ac_cv_prog_CC"; then
11248 ac_ct_CC=$CC
11249 # Extract the first word of "cc", so it can be a program name with args.
11250 set dummy cc; ac_word=$2
11251 echo "$as_me:$LINENO: checking for $ac_word" >&5
11252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 if test -n "$ac_ct_CC"; then
11257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_prog_ac_ct_CC="cc"
11267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 break 2
11270 done
11271 done
11275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11276 if test -n "$ac_ct_CC"; then
11277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11278 echo "${ECHO_T}$ac_ct_CC" >&6
11279 else
11280 echo "$as_me:$LINENO: result: no" >&5
11281 echo "${ECHO_T}no" >&6
11284 CC=$ac_ct_CC
11285 else
11286 CC="$ac_cv_prog_CC"
11290 if test -z "$CC"; then
11291 # Extract the first word of "cc", so it can be a program name with args.
11292 set dummy cc; ac_word=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_prog_CC+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 if test -n "$CC"; then
11299 ac_cv_prog_CC="$CC" # Let the user override the test.
11300 else
11301 ac_prog_rejected=no
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11310 ac_prog_rejected=yes
11311 continue
11313 ac_cv_prog_CC="cc"
11314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11317 done
11318 done
11320 if test $ac_prog_rejected = yes; then
11321 # We found a bogon in the path, so make sure we never use it.
11322 set dummy $ac_cv_prog_CC
11323 shift
11324 if test $# != 0; then
11325 # We chose a different compiler from the bogus one.
11326 # However, it has the same basename, so the bogon will be chosen
11327 # first if we set CC to just the basename; use the full file name.
11328 shift
11329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11334 CC=$ac_cv_prog_CC
11335 if test -n "$CC"; then
11336 echo "$as_me:$LINENO: result: $CC" >&5
11337 echo "${ECHO_T}$CC" >&6
11338 else
11339 echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6
11344 if test -z "$CC"; then
11345 if test -n "$ac_tool_prefix"; then
11346 for ac_prog in cl
11348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11350 echo "$as_me:$LINENO: checking for $ac_word" >&5
11351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11352 if test "${ac_cv_prog_CC+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355 if test -n "$CC"; then
11356 ac_cv_prog_CC="$CC" # Let the user override the test.
11357 else
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 break 2
11369 done
11370 done
11374 CC=$ac_cv_prog_CC
11375 if test -n "$CC"; then
11376 echo "$as_me:$LINENO: result: $CC" >&5
11377 echo "${ECHO_T}$CC" >&6
11378 else
11379 echo "$as_me:$LINENO: result: no" >&5
11380 echo "${ECHO_T}no" >&6
11383 test -n "$CC" && break
11384 done
11386 if test -z "$CC"; then
11387 ac_ct_CC=$CC
11388 for ac_prog in cl
11390 # Extract the first word of "$ac_prog", so it can be a program name with args.
11391 set dummy $ac_prog; ac_word=$2
11392 echo "$as_me:$LINENO: checking for $ac_word" >&5
11393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397 if test -n "$ac_ct_CC"; then
11398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11399 else
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11407 ac_cv_prog_ac_ct_CC="$ac_prog"
11408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 break 2
11411 done
11412 done
11416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11417 if test -n "$ac_ct_CC"; then
11418 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11419 echo "${ECHO_T}$ac_ct_CC" >&6
11420 else
11421 echo "$as_me:$LINENO: result: no" >&5
11422 echo "${ECHO_T}no" >&6
11425 test -n "$ac_ct_CC" && break
11426 done
11428 CC=$ac_ct_CC
11434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11435 See \`config.log' for more details." >&5
11436 echo "$as_me: error: no acceptable C compiler found in \$PATH
11437 See \`config.log' for more details." >&2;}
11438 { (exit 1); exit 1; }; }
11440 # Provide some information about the compiler.
11441 echo "$as_me:$LINENO:" \
11442 "checking for C compiler version" >&5
11443 ac_compiler=`set X $ac_compile; echo $2`
11444 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11445 (eval $ac_compiler --version </dev/null >&5) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }
11449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11450 (eval $ac_compiler -v </dev/null >&5) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }
11454 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11455 (eval $ac_compiler -V </dev/null >&5) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }
11460 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11461 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11462 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h. */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11473 main ()
11475 #ifndef __GNUC__
11476 choke me
11477 #endif
11480 return 0;
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 ac_compiler_gnu=yes
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_compiler_gnu=no
11512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11516 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11517 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11518 GCC=`test $ac_compiler_gnu = yes && echo yes`
11519 ac_test_CFLAGS=${CFLAGS+set}
11520 ac_save_CFLAGS=$CFLAGS
11521 CFLAGS="-g"
11522 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11524 if test "${ac_cv_prog_cc_g+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11535 main ()
11539 return 0;
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544 (eval $ac_compile) 2>conftest.er1
11545 ac_status=$?
11546 grep -v '^ *+' conftest.er1 >conftest.err
11547 rm -f conftest.er1
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } &&
11551 { ac_try='test -z "$ac_c_werror_flag"
11552 || test ! -s conftest.err'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; } &&
11558 { ac_try='test -s conftest.$ac_objext'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 ac_cv_prog_cc_g=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_cv_prog_cc_g=no
11571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11573 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11574 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11575 if test "$ac_test_CFLAGS" = set; then
11576 CFLAGS=$ac_save_CFLAGS
11577 elif test $ac_cv_prog_cc_g = yes; then
11578 if test "$GCC" = yes; then
11579 CFLAGS="-g -O2"
11580 else
11581 CFLAGS="-g"
11583 else
11584 if test "$GCC" = yes; then
11585 CFLAGS="-O2"
11586 else
11587 CFLAGS=
11590 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11591 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11592 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 ac_cv_prog_cc_stdc=no
11596 ac_save_CC=$CC
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 #include <stdarg.h>
11604 #include <stdio.h>
11605 #include <sys/types.h>
11606 #include <sys/stat.h>
11607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11608 struct buf { int x; };
11609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11610 static char *e (p, i)
11611 char **p;
11612 int i;
11614 return p[i];
11616 static char *f (char * (*g) (char **, int), char **p, ...)
11618 char *s;
11619 va_list v;
11620 va_start (v,p);
11621 s = g (p, va_arg (v,int));
11622 va_end (v);
11623 return s;
11626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11627 function prototypes and stuff, but not '\xHH' hex character constants.
11628 These don't provoke an error unfortunately, instead are silently treated
11629 as 'x'. The following induces an error, until -std1 is added to get
11630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11631 array size at least. It's necessary to write '\x00'==0 to get something
11632 that's true only with -std1. */
11633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11635 int test (int i, double x);
11636 struct s1 {int (*f) (int a);};
11637 struct s2 {int (*f) (double a);};
11638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11639 int argc;
11640 char **argv;
11642 main ()
11644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11646 return 0;
11648 _ACEOF
11649 # Don't try gcc -ansi; that turns off useful extensions and
11650 # breaks some systems' header files.
11651 # AIX -qlanglvl=ansi
11652 # Ultrix and OSF/1 -std1
11653 # HP-UX 10.20 and later -Ae
11654 # HP-UX older versions -Aa -D_HPUX_SOURCE
11655 # SVR4 -Xc -D__EXTENSIONS__
11656 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11658 CC="$ac_save_CC $ac_arg"
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_prog_cc_stdc=$ac_arg
11682 break
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11688 rm -f conftest.err conftest.$ac_objext
11689 done
11690 rm -f conftest.$ac_ext conftest.$ac_objext
11691 CC=$ac_save_CC
11695 case "x$ac_cv_prog_cc_stdc" in
11696 x|xno)
11697 echo "$as_me:$LINENO: result: none needed" >&5
11698 echo "${ECHO_T}none needed" >&6 ;;
11700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11701 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11702 CC="$CC $ac_cv_prog_cc_stdc" ;;
11703 esac
11705 # Some people use a C++ compiler to compile C. Since we use `exit',
11706 # in C++ we need to declare it. In case someone uses the same compiler
11707 # for both compiling C and C++ we need to have the C++ compiler decide
11708 # the declaration of exit, since it's the most demanding environment.
11709 cat >conftest.$ac_ext <<_ACEOF
11710 #ifndef __cplusplus
11711 choke me
11712 #endif
11713 _ACEOF
11714 rm -f conftest.$ac_objext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716 (eval $ac_compile) 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag"
11724 || test ! -s conftest.err'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; } &&
11730 { ac_try='test -s conftest.$ac_objext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 for ac_declaration in \
11737 '' \
11738 'extern "C" void std::exit (int) throw (); using std::exit;' \
11739 'extern "C" void std::exit (int); using std::exit;' \
11740 'extern "C" void exit (int) throw ();' \
11741 'extern "C" void exit (int);' \
11742 'void exit (int);'
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_declaration
11751 #include <stdlib.h>
11753 main ()
11755 exit (42);
11757 return 0;
11759 _ACEOF
11760 rm -f conftest.$ac_objext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag"
11770 || test ! -s conftest.err'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11783 else
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 continue
11789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 $ac_declaration
11798 main ()
11800 exit (42);
11802 return 0;
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807 (eval $ac_compile) 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest.$ac_objext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 break
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11834 done
11835 rm -f conftest*
11836 if test -n "$ac_declaration"; then
11837 echo '#ifdef __cplusplus' >>confdefs.h
11838 echo $ac_declaration >>confdefs.h
11839 echo '#endif' >>confdefs.h
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848 ac_ext=c
11849 ac_cpp='$CPP $CPPFLAGS'
11850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11854 depcc="$CC" am_compiler_list=
11856 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11857 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11858 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11862 # We make a subdir and do the tests there. Otherwise we can end up
11863 # making bogus files that we don't know about and never remove. For
11864 # instance it was reported that on HP-UX the gcc test will end up
11865 # making a dummy file named `D' -- because `-MD' means `put the output
11866 # in D'.
11867 mkdir conftest.dir
11868 # Copy depcomp to subdir because otherwise we won't find it if we're
11869 # using a relative directory.
11870 cp "$am_depcomp" conftest.dir
11871 cd conftest.dir
11872 # We will build objects and dependencies in a subdirectory because
11873 # it helps to detect inapplicable dependency modes. For instance
11874 # both Tru64's cc and ICC support -MD to output dependencies as a
11875 # side effect of compilation, but ICC will put the dependencies in
11876 # the current directory while Tru64 will put them in the object
11877 # directory.
11878 mkdir sub
11880 am_cv_CC_dependencies_compiler_type=none
11881 if test "$am_compiler_list" = ""; then
11882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11884 for depmode in $am_compiler_list; do
11885 # Setup a source with many dependencies, because some compilers
11886 # like to wrap large dependency lists on column 80 (with \), and
11887 # we should not choose a depcomp mode which is confused by this.
11889 # We need to recreate these files for each test, as the compiler may
11890 # overwrite some of them when testing with obscure command lines.
11891 # This happens at least with the AIX C compiler.
11892 : > sub/conftest.c
11893 for i in 1 2 3 4 5 6; do
11894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11895 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11896 # Solaris 8's {/usr,}/bin/sh.
11897 touch sub/conftst$i.h
11898 done
11899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11901 case $depmode in
11902 nosideeffect)
11903 # after this tag, mechanisms are not by side-effect, so they'll
11904 # only be used when explicitly requested
11905 if test "x$enable_dependency_tracking" = xyes; then
11906 continue
11907 else
11908 break
11911 none) break ;;
11912 esac
11913 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11914 # mode. It turns out that the SunPro C++ compiler does not properly
11915 # handle `-M -o', and we need to detect this.
11916 if depmode=$depmode \
11917 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11919 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11920 >/dev/null 2>conftest.err &&
11921 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11922 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11923 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11924 # icc doesn't choke on unknown options, it will just issue warnings
11925 # or remarks (even with -Werror). So we grep stderr for any message
11926 # that says an option was ignored or not supported.
11927 # When given -MP, icc 7.0 and 7.1 complain thusly:
11928 # icc: Command line warning: ignoring option '-M'; no argument required
11929 # The diagnosis changed in icc 8.0:
11930 # icc: Command line remark: option '-MP' not supported
11931 if (grep 'ignoring option' conftest.err ||
11932 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11933 am_cv_CC_dependencies_compiler_type=$depmode
11934 break
11937 done
11939 cd ..
11940 rm -rf conftest.dir
11941 else
11942 am_cv_CC_dependencies_compiler_type=none
11946 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11947 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
11948 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11953 test "x$enable_dependency_tracking" != xno \
11954 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11955 am__fastdepCC_TRUE=
11956 am__fastdepCC_FALSE='#'
11957 else
11958 am__fastdepCC_TRUE='#'
11959 am__fastdepCC_FALSE=
11963 if test "x$CC" != xcc; then
11964 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11965 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
11966 else
11967 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11968 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
11970 set dummy $CC; ac_cc=`echo $2 |
11971 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11972 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11983 main ()
11987 return 0;
11989 _ACEOF
11990 # Make sure it works both with $CC and with simple cc.
11991 # We do the test twice because some compilers refuse to overwrite an
11992 # existing .o file with -o, though they will create one.
11993 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
11994 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); };
12004 then
12005 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12006 if test "x$CC" != xcc; then
12007 # Test first that cc exists at all.
12008 if { ac_try='cc -c conftest.$ac_ext >&5'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
12015 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); };
12025 then
12026 # cc works too.
12028 else
12029 # cc exists but doesn't like -o.
12030 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12034 else
12035 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12037 rm -f conftest*
12040 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
12041 echo "$as_me:$LINENO: result: yes" >&5
12042 echo "${ECHO_T}yes" >&6
12043 else
12044 echo "$as_me:$LINENO: result: no" >&5
12045 echo "${ECHO_T}no" >&6
12047 cat >>confdefs.h <<\_ACEOF
12048 #define NO_MINUS_C_MINUS_O 1
12049 _ACEOF
12053 # FIXME: we rely on the cache variable name because
12054 # there is no other way.
12055 set dummy $CC
12056 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12057 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
12058 # Losing compiler, so override with the script.
12059 # FIXME: It is wrong to rewrite CC.
12060 # But if we don't then we get into trouble of one sort or another.
12061 # A longer-term fix would be to have automake use am__CC in this case,
12062 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12063 CC="$am_aux_dir/compile $CC"
12066 ac_ext=c
12067 ac_cpp='$CPP $CPPFLAGS'
12068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12072 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12073 # On Suns, sometimes $CPP names a directory.
12074 if test -n "$CPP" && test -d "$CPP"; then
12075 CPP=
12077 if test -z "$CPP"; then
12078 if test "${ac_cv_prog_CPP+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081 # Double quotes because CPP needs to be expanded
12082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12084 ac_preproc_ok=false
12085 for ac_c_preproc_warn_flag in '' yes
12087 # Use a header file that comes with gcc, so configuring glibc
12088 # with a fresh cross-compiler works.
12089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 # <limits.h> exists even on freestanding compilers.
12091 # On the NeXT, cc -E runs the code through the compiler's parser,
12092 # not just through cpp. "Syntax error" is here to catch this case.
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #ifdef __STDC__
12100 # include <limits.h>
12101 #else
12102 # include <assert.h>
12103 #endif
12104 Syntax error
12105 _ACEOF
12106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } >/dev/null; then
12114 if test -s conftest.err; then
12115 ac_cpp_err=$ac_c_preproc_warn_flag
12116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12117 else
12118 ac_cpp_err=
12120 else
12121 ac_cpp_err=yes
12123 if test -z "$ac_cpp_err"; then
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 # Broken: fails on valid input.
12130 continue
12132 rm -f conftest.err conftest.$ac_ext
12134 # OK, works on sane cases. Now check whether non-existent headers
12135 # can be detected and how.
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 #include <ac_nonexistent.h>
12143 _ACEOF
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev/null; then
12152 if test -s conftest.err; then
12153 ac_cpp_err=$ac_c_preproc_warn_flag
12154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12155 else
12156 ac_cpp_err=
12158 else
12159 ac_cpp_err=yes
12161 if test -z "$ac_cpp_err"; then
12162 # Broken: success on invalid input.
12163 continue
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 # Passes both tests.
12169 ac_preproc_ok=:
12170 break
12172 rm -f conftest.err conftest.$ac_ext
12174 done
12175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12176 rm -f conftest.err conftest.$ac_ext
12177 if $ac_preproc_ok; then
12178 break
12181 done
12182 ac_cv_prog_CPP=$CPP
12185 CPP=$ac_cv_prog_CPP
12186 else
12187 ac_cv_prog_CPP=$CPP
12189 echo "$as_me:$LINENO: result: $CPP" >&5
12190 echo "${ECHO_T}$CPP" >&6
12191 ac_preproc_ok=false
12192 for ac_c_preproc_warn_flag in '' yes
12194 # Use a header file that comes with gcc, so configuring glibc
12195 # with a fresh cross-compiler works.
12196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12197 # <limits.h> exists even on freestanding compilers.
12198 # On the NeXT, cc -E runs the code through the compiler's parser,
12199 # not just through cpp. "Syntax error" is here to catch this case.
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 #ifdef __STDC__
12207 # include <limits.h>
12208 #else
12209 # include <assert.h>
12210 #endif
12211 Syntax error
12212 _ACEOF
12213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } >/dev/null; then
12221 if test -s conftest.err; then
12222 ac_cpp_err=$ac_c_preproc_warn_flag
12223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12224 else
12225 ac_cpp_err=
12227 else
12228 ac_cpp_err=yes
12230 if test -z "$ac_cpp_err"; then
12232 else
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 # Broken: fails on valid input.
12237 continue
12239 rm -f conftest.err conftest.$ac_ext
12241 # OK, works on sane cases. Now check whether non-existent headers
12242 # can be detected and how.
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 #include <ac_nonexistent.h>
12250 _ACEOF
12251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12253 ac_status=$?
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } >/dev/null; then
12259 if test -s conftest.err; then
12260 ac_cpp_err=$ac_c_preproc_warn_flag
12261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12262 else
12263 ac_cpp_err=
12265 else
12266 ac_cpp_err=yes
12268 if test -z "$ac_cpp_err"; then
12269 # Broken: success on invalid input.
12270 continue
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 # Passes both tests.
12276 ac_preproc_ok=:
12277 break
12279 rm -f conftest.err conftest.$ac_ext
12281 done
12282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12283 rm -f conftest.err conftest.$ac_ext
12284 if $ac_preproc_ok; then
12286 else
12287 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12288 See \`config.log' for more details." >&5
12289 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12290 See \`config.log' for more details." >&2;}
12291 { (exit 1); exit 1; }; }
12294 ac_ext=c
12295 ac_cpp='$CPP $CPPFLAGS'
12296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300 ac_ext=cc
12301 ac_cpp='$CXXCPP $CPPFLAGS'
12302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12305 if test -n "$ac_tool_prefix"; then
12306 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12310 echo "$as_me:$LINENO: checking for $ac_word" >&5
12311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12312 if test "${ac_cv_prog_CXX+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 if test -n "$CXX"; then
12316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12317 else
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12329 done
12330 done
12334 CXX=$ac_cv_prog_CXX
12335 if test -n "$CXX"; then
12336 echo "$as_me:$LINENO: result: $CXX" >&5
12337 echo "${ECHO_T}$CXX" >&6
12338 else
12339 echo "$as_me:$LINENO: result: no" >&5
12340 echo "${ECHO_T}no" >&6
12343 test -n "$CXX" && break
12344 done
12346 if test -z "$CXX"; then
12347 ac_ct_CXX=$CXX
12348 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12350 # Extract the first word of "$ac_prog", so it can be a program name with args.
12351 set dummy $ac_prog; ac_word=$2
12352 echo "$as_me:$LINENO: checking for $ac_word" >&5
12353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357 if test -n "$ac_ct_CXX"; then
12358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367 ac_cv_prog_ac_ct_CXX="$ac_prog"
12368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12371 done
12372 done
12376 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12377 if test -n "$ac_ct_CXX"; then
12378 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12379 echo "${ECHO_T}$ac_ct_CXX" >&6
12380 else
12381 echo "$as_me:$LINENO: result: no" >&5
12382 echo "${ECHO_T}no" >&6
12385 test -n "$ac_ct_CXX" && break
12386 done
12387 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12389 CXX=$ac_ct_CXX
12393 # Provide some information about the compiler.
12394 echo "$as_me:$LINENO:" \
12395 "checking for C++ compiler version" >&5
12396 ac_compiler=`set X $ac_compile; echo $2`
12397 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12398 (eval $ac_compiler --version </dev/null >&5) 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }
12402 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12403 (eval $ac_compiler -v </dev/null >&5) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }
12407 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12408 (eval $ac_compiler -V </dev/null >&5) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }
12413 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12414 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12415 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12426 main ()
12428 #ifndef __GNUC__
12429 choke me
12430 #endif
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438 (eval $ac_compile) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -z "$ac_cxx_werror_flag"
12446 || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_compiler_gnu=yes
12459 else
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ac_compiler_gnu=no
12465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12466 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12469 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12470 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12471 GXX=`test $ac_compiler_gnu = yes && echo yes`
12472 ac_test_CXXFLAGS=${CXXFLAGS+set}
12473 ac_save_CXXFLAGS=$CXXFLAGS
12474 CXXFLAGS="-g"
12475 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12477 if test "${ac_cv_prog_cxx_g+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h. */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12488 main ()
12492 return 0;
12494 _ACEOF
12495 rm -f conftest.$ac_objext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12497 (eval $ac_compile) 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_cxx_werror_flag"
12505 || test ! -s conftest.err'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest.$ac_objext'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_cv_prog_cxx_g=yes
12518 else
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_cv_prog_cxx_g=no
12524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12526 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12527 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12528 if test "$ac_test_CXXFLAGS" = set; then
12529 CXXFLAGS=$ac_save_CXXFLAGS
12530 elif test $ac_cv_prog_cxx_g = yes; then
12531 if test "$GXX" = yes; then
12532 CXXFLAGS="-g -O2"
12533 else
12534 CXXFLAGS="-g"
12536 else
12537 if test "$GXX" = yes; then
12538 CXXFLAGS="-O2"
12539 else
12540 CXXFLAGS=
12543 for ac_declaration in \
12544 '' \
12545 'extern "C" void std::exit (int) throw (); using std::exit;' \
12546 'extern "C" void std::exit (int); using std::exit;' \
12547 'extern "C" void exit (int) throw ();' \
12548 'extern "C" void exit (int);' \
12549 'void exit (int);'
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 $ac_declaration
12558 #include <stdlib.h>
12560 main ()
12562 exit (42);
12564 return 0;
12566 _ACEOF
12567 rm -f conftest.$ac_objext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12569 (eval $ac_compile) 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_cxx_werror_flag"
12577 || test ! -s conftest.err'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 continue
12596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_declaration
12605 main ()
12607 exit (42);
12609 return 0;
12611 _ACEOF
12612 rm -f conftest.$ac_objext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614 (eval $ac_compile) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_cxx_werror_flag"
12622 || test ! -s conftest.err'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest.$ac_objext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 break
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12641 done
12642 rm -f conftest*
12643 if test -n "$ac_declaration"; then
12644 echo '#ifdef __cplusplus' >>confdefs.h
12645 echo $ac_declaration >>confdefs.h
12646 echo '#endif' >>confdefs.h
12649 ac_ext=c
12650 ac_cpp='$CPP $CPPFLAGS'
12651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655 depcc="$CXX" am_compiler_list=
12657 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12658 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12659 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12663 # We make a subdir and do the tests there. Otherwise we can end up
12664 # making bogus files that we don't know about and never remove. For
12665 # instance it was reported that on HP-UX the gcc test will end up
12666 # making a dummy file named `D' -- because `-MD' means `put the output
12667 # in D'.
12668 mkdir conftest.dir
12669 # Copy depcomp to subdir because otherwise we won't find it if we're
12670 # using a relative directory.
12671 cp "$am_depcomp" conftest.dir
12672 cd conftest.dir
12673 # We will build objects and dependencies in a subdirectory because
12674 # it helps to detect inapplicable dependency modes. For instance
12675 # both Tru64's cc and ICC support -MD to output dependencies as a
12676 # side effect of compilation, but ICC will put the dependencies in
12677 # the current directory while Tru64 will put them in the object
12678 # directory.
12679 mkdir sub
12681 am_cv_CXX_dependencies_compiler_type=none
12682 if test "$am_compiler_list" = ""; then
12683 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12685 for depmode in $am_compiler_list; do
12686 # Setup a source with many dependencies, because some compilers
12687 # like to wrap large dependency lists on column 80 (with \), and
12688 # we should not choose a depcomp mode which is confused by this.
12690 # We need to recreate these files for each test, as the compiler may
12691 # overwrite some of them when testing with obscure command lines.
12692 # This happens at least with the AIX C compiler.
12693 : > sub/conftest.c
12694 for i in 1 2 3 4 5 6; do
12695 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12696 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12697 # Solaris 8's {/usr,}/bin/sh.
12698 touch sub/conftst$i.h
12699 done
12700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12702 case $depmode in
12703 nosideeffect)
12704 # after this tag, mechanisms are not by side-effect, so they'll
12705 # only be used when explicitly requested
12706 if test "x$enable_dependency_tracking" = xyes; then
12707 continue
12708 else
12709 break
12712 none) break ;;
12713 esac
12714 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12715 # mode. It turns out that the SunPro C++ compiler does not properly
12716 # handle `-M -o', and we need to detect this.
12717 if depmode=$depmode \
12718 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12720 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12721 >/dev/null 2>conftest.err &&
12722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12723 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12725 # icc doesn't choke on unknown options, it will just issue warnings
12726 # or remarks (even with -Werror). So we grep stderr for any message
12727 # that says an option was ignored or not supported.
12728 # When given -MP, icc 7.0 and 7.1 complain thusly:
12729 # icc: Command line warning: ignoring option '-M'; no argument required
12730 # The diagnosis changed in icc 8.0:
12731 # icc: Command line remark: option '-MP' not supported
12732 if (grep 'ignoring option' conftest.err ||
12733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12734 am_cv_CXX_dependencies_compiler_type=$depmode
12735 break
12738 done
12740 cd ..
12741 rm -rf conftest.dir
12742 else
12743 am_cv_CXX_dependencies_compiler_type=none
12747 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12748 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12749 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12754 test "x$enable_dependency_tracking" != xno \
12755 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12756 am__fastdepCXX_TRUE=
12757 am__fastdepCXX_FALSE='#'
12758 else
12759 am__fastdepCXX_TRUE='#'
12760 am__fastdepCXX_FALSE=
12765 ac_ext=cc
12766 ac_cpp='$CXXCPP $CPPFLAGS'
12767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12770 if test -n "$ac_tool_prefix"; then
12771 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12775 echo "$as_me:$LINENO: checking for $ac_word" >&5
12776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12777 if test "${ac_cv_prog_CXX+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 if test -n "$CXX"; then
12781 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12782 else
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12790 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12792 break 2
12794 done
12795 done
12799 CXX=$ac_cv_prog_CXX
12800 if test -n "$CXX"; then
12801 echo "$as_me:$LINENO: result: $CXX" >&5
12802 echo "${ECHO_T}$CXX" >&6
12803 else
12804 echo "$as_me:$LINENO: result: no" >&5
12805 echo "${ECHO_T}no" >&6
12808 test -n "$CXX" && break
12809 done
12811 if test -z "$CXX"; then
12812 ac_ct_CXX=$CXX
12813 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12815 # Extract the first word of "$ac_prog", so it can be a program name with args.
12816 set dummy $ac_prog; ac_word=$2
12817 echo "$as_me:$LINENO: checking for $ac_word" >&5
12818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12819 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822 if test -n "$ac_ct_CXX"; then
12823 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832 ac_cv_prog_ac_ct_CXX="$ac_prog"
12833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12836 done
12837 done
12841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12842 if test -n "$ac_ct_CXX"; then
12843 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12844 echo "${ECHO_T}$ac_ct_CXX" >&6
12845 else
12846 echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6
12850 test -n "$ac_ct_CXX" && break
12851 done
12852 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12854 CXX=$ac_ct_CXX
12858 # Provide some information about the compiler.
12859 echo "$as_me:$LINENO:" \
12860 "checking for C++ compiler version" >&5
12861 ac_compiler=`set X $ac_compile; echo $2`
12862 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12863 (eval $ac_compiler --version </dev/null >&5) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }
12867 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12868 (eval $ac_compiler -v </dev/null >&5) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }
12872 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12873 (eval $ac_compiler -V </dev/null >&5) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }
12878 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12879 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12880 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12891 main ()
12893 #ifndef __GNUC__
12894 choke me
12895 #endif
12898 return 0;
12900 _ACEOF
12901 rm -f conftest.$ac_objext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_cxx_werror_flag"
12911 || test ! -s conftest.err'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 ac_compiler_gnu=yes
12924 else
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 ac_compiler_gnu=no
12930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12931 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12934 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12935 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12936 GXX=`test $ac_compiler_gnu = yes && echo yes`
12937 ac_test_CXXFLAGS=${CXXFLAGS+set}
12938 ac_save_CXXFLAGS=$CXXFLAGS
12939 CXXFLAGS="-g"
12940 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12941 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12942 if test "${ac_cv_prog_cxx_g+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 else
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12953 main ()
12957 return 0;
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_cxx_werror_flag"
12970 || test ! -s conftest.err'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; } &&
12976 { ac_try='test -s conftest.$ac_objext'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_cv_prog_cxx_g=yes
12983 else
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 ac_cv_prog_cxx_g=no
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12992 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12993 if test "$ac_test_CXXFLAGS" = set; then
12994 CXXFLAGS=$ac_save_CXXFLAGS
12995 elif test $ac_cv_prog_cxx_g = yes; then
12996 if test "$GXX" = yes; then
12997 CXXFLAGS="-g -O2"
12998 else
12999 CXXFLAGS="-g"
13001 else
13002 if test "$GXX" = yes; then
13003 CXXFLAGS="-O2"
13004 else
13005 CXXFLAGS=
13008 for ac_declaration in \
13009 '' \
13010 'extern "C" void std::exit (int) throw (); using std::exit;' \
13011 'extern "C" void std::exit (int); using std::exit;' \
13012 'extern "C" void exit (int) throw ();' \
13013 'extern "C" void exit (int);' \
13014 'void exit (int);'
13016 cat >conftest.$ac_ext <<_ACEOF
13017 /* confdefs.h. */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 $ac_declaration
13023 #include <stdlib.h>
13025 main ()
13027 exit (42);
13029 return 0;
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13035 ac_status=$?
13036 grep -v '^ *+' conftest.er1 >conftest.err
13037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_cxx_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13055 else
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 continue
13061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 $ac_declaration
13070 main ()
13072 exit (42);
13074 return 0;
13076 _ACEOF
13077 rm -f conftest.$ac_objext
13078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13079 (eval $ac_compile) 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_cxx_werror_flag"
13087 || test ! -s conftest.err'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest.$ac_objext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13099 break
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13106 done
13107 rm -f conftest*
13108 if test -n "$ac_declaration"; then
13109 echo '#ifdef __cplusplus' >>confdefs.h
13110 echo $ac_declaration >>confdefs.h
13111 echo '#endif' >>confdefs.h
13114 ac_ext=c
13115 ac_cpp='$CPP $CPPFLAGS'
13116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13120 depcc="$CXX" am_compiler_list=
13122 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13123 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13124 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13128 # We make a subdir and do the tests there. Otherwise we can end up
13129 # making bogus files that we don't know about and never remove. For
13130 # instance it was reported that on HP-UX the gcc test will end up
13131 # making a dummy file named `D' -- because `-MD' means `put the output
13132 # in D'.
13133 mkdir conftest.dir
13134 # Copy depcomp to subdir because otherwise we won't find it if we're
13135 # using a relative directory.
13136 cp "$am_depcomp" conftest.dir
13137 cd conftest.dir
13138 # We will build objects and dependencies in a subdirectory because
13139 # it helps to detect inapplicable dependency modes. For instance
13140 # both Tru64's cc and ICC support -MD to output dependencies as a
13141 # side effect of compilation, but ICC will put the dependencies in
13142 # the current directory while Tru64 will put them in the object
13143 # directory.
13144 mkdir sub
13146 am_cv_CXX_dependencies_compiler_type=none
13147 if test "$am_compiler_list" = ""; then
13148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13150 for depmode in $am_compiler_list; do
13151 # Setup a source with many dependencies, because some compilers
13152 # like to wrap large dependency lists on column 80 (with \), and
13153 # we should not choose a depcomp mode which is confused by this.
13155 # We need to recreate these files for each test, as the compiler may
13156 # overwrite some of them when testing with obscure command lines.
13157 # This happens at least with the AIX C compiler.
13158 : > sub/conftest.c
13159 for i in 1 2 3 4 5 6; do
13160 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13161 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13162 # Solaris 8's {/usr,}/bin/sh.
13163 touch sub/conftst$i.h
13164 done
13165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13167 case $depmode in
13168 nosideeffect)
13169 # after this tag, mechanisms are not by side-effect, so they'll
13170 # only be used when explicitly requested
13171 if test "x$enable_dependency_tracking" = xyes; then
13172 continue
13173 else
13174 break
13177 none) break ;;
13178 esac
13179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13180 # mode. It turns out that the SunPro C++ compiler does not properly
13181 # handle `-M -o', and we need to detect this.
13182 if depmode=$depmode \
13183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13186 >/dev/null 2>conftest.err &&
13187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13190 # icc doesn't choke on unknown options, it will just issue warnings
13191 # or remarks (even with -Werror). So we grep stderr for any message
13192 # that says an option was ignored or not supported.
13193 # When given -MP, icc 7.0 and 7.1 complain thusly:
13194 # icc: Command line warning: ignoring option '-M'; no argument required
13195 # The diagnosis changed in icc 8.0:
13196 # icc: Command line remark: option '-MP' not supported
13197 if (grep 'ignoring option' conftest.err ||
13198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13199 am_cv_CXX_dependencies_compiler_type=$depmode
13200 break
13203 done
13205 cd ..
13206 rm -rf conftest.dir
13207 else
13208 am_cv_CXX_dependencies_compiler_type=none
13212 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13213 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
13214 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13219 test "x$enable_dependency_tracking" != xno \
13220 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13221 am__fastdepCXX_TRUE=
13222 am__fastdepCXX_FALSE='#'
13223 else
13224 am__fastdepCXX_TRUE='#'
13225 am__fastdepCXX_FALSE=
13229 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13230 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13231 (test "X$CXX" != "Xg++"))) ; then
13232 ac_ext=cc
13233 ac_cpp='$CXXCPP $CPPFLAGS'
13234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13237 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13238 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
13239 if test -z "$CXXCPP"; then
13240 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 # Double quotes because CXXCPP needs to be expanded
13244 for CXXCPP in "$CXX -E" "/lib/cpp"
13246 ac_preproc_ok=false
13247 for ac_cxx_preproc_warn_flag in '' yes
13249 # Use a header file that comes with gcc, so configuring glibc
13250 # with a fresh cross-compiler works.
13251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13252 # <limits.h> exists even on freestanding compilers.
13253 # On the NeXT, cc -E runs the code through the compiler's parser,
13254 # not just through cpp. "Syntax error" is here to catch this case.
13255 cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h. */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 #ifdef __STDC__
13262 # include <limits.h>
13263 #else
13264 # include <assert.h>
13265 #endif
13266 Syntax error
13267 _ACEOF
13268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } >/dev/null; then
13276 if test -s conftest.err; then
13277 ac_cpp_err=$ac_cxx_preproc_warn_flag
13278 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13279 else
13280 ac_cpp_err=
13282 else
13283 ac_cpp_err=yes
13285 if test -z "$ac_cpp_err"; then
13287 else
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 # Broken: fails on valid input.
13292 continue
13294 rm -f conftest.err conftest.$ac_ext
13296 # OK, works on sane cases. Now check whether non-existent headers
13297 # can be detected and how.
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 #include <ac_nonexistent.h>
13305 _ACEOF
13306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13308 ac_status=$?
13309 grep -v '^ *+' conftest.er1 >conftest.err
13310 rm -f conftest.er1
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } >/dev/null; then
13314 if test -s conftest.err; then
13315 ac_cpp_err=$ac_cxx_preproc_warn_flag
13316 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13317 else
13318 ac_cpp_err=
13320 else
13321 ac_cpp_err=yes
13323 if test -z "$ac_cpp_err"; then
13324 # Broken: success on invalid input.
13325 continue
13326 else
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 # Passes both tests.
13331 ac_preproc_ok=:
13332 break
13334 rm -f conftest.err conftest.$ac_ext
13336 done
13337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13338 rm -f conftest.err conftest.$ac_ext
13339 if $ac_preproc_ok; then
13340 break
13343 done
13344 ac_cv_prog_CXXCPP=$CXXCPP
13347 CXXCPP=$ac_cv_prog_CXXCPP
13348 else
13349 ac_cv_prog_CXXCPP=$CXXCPP
13351 echo "$as_me:$LINENO: result: $CXXCPP" >&5
13352 echo "${ECHO_T}$CXXCPP" >&6
13353 ac_preproc_ok=false
13354 for ac_cxx_preproc_warn_flag in '' yes
13356 # Use a header file that comes with gcc, so configuring glibc
13357 # with a fresh cross-compiler works.
13358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13359 # <limits.h> exists even on freestanding compilers.
13360 # On the NeXT, cc -E runs the code through the compiler's parser,
13361 # not just through cpp. "Syntax error" is here to catch this case.
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 #ifdef __STDC__
13369 # include <limits.h>
13370 #else
13371 # include <assert.h>
13372 #endif
13373 Syntax error
13374 _ACEOF
13375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } >/dev/null; then
13383 if test -s conftest.err; then
13384 ac_cpp_err=$ac_cxx_preproc_warn_flag
13385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13386 else
13387 ac_cpp_err=
13389 else
13390 ac_cpp_err=yes
13392 if test -z "$ac_cpp_err"; then
13394 else
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 # Broken: fails on valid input.
13399 continue
13401 rm -f conftest.err conftest.$ac_ext
13403 # OK, works on sane cases. Now check whether non-existent headers
13404 # can be detected and how.
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h. */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <ac_nonexistent.h>
13412 _ACEOF
13413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } >/dev/null; then
13421 if test -s conftest.err; then
13422 ac_cpp_err=$ac_cxx_preproc_warn_flag
13423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13424 else
13425 ac_cpp_err=
13427 else
13428 ac_cpp_err=yes
13430 if test -z "$ac_cpp_err"; then
13431 # Broken: success on invalid input.
13432 continue
13433 else
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 # Passes both tests.
13438 ac_preproc_ok=:
13439 break
13441 rm -f conftest.err conftest.$ac_ext
13443 done
13444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13445 rm -f conftest.err conftest.$ac_ext
13446 if $ac_preproc_ok; then
13448 else
13449 _lt_caught_CXX_error=yes
13452 ac_ext=c
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13458 else
13459 _lt_caught_CXX_error=yes
13465 ac_ext=cc
13466 ac_cpp='$CXXCPP $CPPFLAGS'
13467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13471 archive_cmds_need_lc_CXX=no
13472 allow_undefined_flag_CXX=
13473 always_export_symbols_CXX=no
13474 archive_expsym_cmds_CXX=
13475 compiler_needs_object_CXX=no
13476 export_dynamic_flag_spec_CXX=
13477 hardcode_direct_CXX=no
13478 hardcode_direct_absolute_CXX=no
13479 hardcode_libdir_flag_spec_CXX=
13480 hardcode_libdir_flag_spec_ld_CXX=
13481 hardcode_libdir_separator_CXX=
13482 hardcode_minus_L_CXX=no
13483 hardcode_shlibpath_var_CXX=unsupported
13484 hardcode_automatic_CXX=no
13485 inherit_rpath_CXX=no
13486 module_cmds_CXX=
13487 module_expsym_cmds_CXX=
13488 link_all_deplibs_CXX=unknown
13489 old_archive_cmds_CXX=$old_archive_cmds
13490 no_undefined_flag_CXX=
13491 whole_archive_flag_spec_CXX=
13492 enable_shared_with_static_runtimes_CXX=no
13494 # Source file extension for C++ test sources.
13495 ac_ext=cpp
13497 # Object file extension for compiled C++ test sources.
13498 objext=o
13499 objext_CXX=$objext
13501 # No sense in running all these tests if we already determined that
13502 # the CXX compiler isn't working. Some variables (like enable_shared)
13503 # are currently assumed to apply to all compilers on this platform,
13504 # and will be corrupted by setting them based on a non-working compiler.
13505 if test "$_lt_caught_CXX_error" != yes; then
13506 # Code to be used in simple compile tests
13507 lt_simple_compile_test_code="int some_variable = 0;"
13509 # Code to be used in simple link tests
13510 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13512 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13519 # If no C compiler was specified, use CC.
13520 LTCC=${LTCC-"$CC"}
13522 # If no C compiler flags were specified, use CFLAGS.
13523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13525 # Allow CC to be a program name with arguments.
13526 compiler=$CC
13529 # save warnings/boilerplate of simple test code
13530 ac_outfile=conftest.$ac_objext
13531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13533 _lt_compiler_boilerplate=`cat conftest.err`
13534 $RM conftest*
13536 ac_outfile=conftest.$ac_objext
13537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13539 _lt_linker_boilerplate=`cat conftest.err`
13540 $RM conftest*
13543 # Allow CC to be a program name with arguments.
13544 lt_save_CC=$CC
13545 lt_save_LD=$LD
13546 lt_save_GCC=$GCC
13547 GCC=$GXX
13548 lt_save_with_gnu_ld=$with_gnu_ld
13549 lt_save_path_LD=$lt_cv_path_LD
13550 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13551 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13552 else
13553 $as_unset lt_cv_prog_gnu_ld
13555 if test -n "${lt_cv_path_LDCXX+set}"; then
13556 lt_cv_path_LD=$lt_cv_path_LDCXX
13557 else
13558 $as_unset lt_cv_path_LD
13560 test -z "${LDCXX+set}" || LD=$LDCXX
13561 CC=${CXX-"c++"}
13562 compiler=$CC
13563 compiler_CXX=$CC
13564 for cc_temp in $compiler""; do
13565 case $cc_temp in
13566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13568 \-*) ;;
13569 *) break;;
13570 esac
13571 done
13572 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13575 if test -n "$compiler"; then
13576 # We don't want -fno-exception when compiling C++ code, so set the
13577 # no_builtin_flag separately
13578 if test "$GXX" = yes; then
13579 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13580 else
13581 lt_prog_compiler_no_builtin_flag_CXX=
13584 if test "$GXX" = yes; then
13585 # Set up default GNU C++ configuration
13589 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13590 if test "${with_gnu_ld+set}" = set; then
13591 withval="$with_gnu_ld"
13592 test "$withval" = no || with_gnu_ld=yes
13593 else
13594 with_gnu_ld=no
13596 ac_prog=ld
13597 if test "$GCC" = yes; then
13598 # Check if gcc -print-prog-name=ld gives a path.
13599 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13600 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13601 case $host in
13602 *-*-mingw*)
13603 # gcc leaves a trailing carriage return which upsets mingw
13604 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13606 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13607 esac
13608 case $ac_prog in
13609 # Accept absolute paths.
13610 [\\/]* | ?:[\\/]*)
13611 re_direlt='/[^/][^/]*/\.\./'
13612 # Canonicalize the pathname of ld
13613 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13614 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13615 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13616 done
13617 test -z "$LD" && LD="$ac_prog"
13620 # If it fails, then pretend we aren't using GCC.
13621 ac_prog=ld
13624 # If it is relative, then search for the first ld in PATH.
13625 with_gnu_ld=unknown
13627 esac
13628 elif test "$with_gnu_ld" = yes; then
13629 echo "$as_me:$LINENO: checking for GNU ld" >&5
13630 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13631 else
13632 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13633 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13635 if test "${lt_cv_path_LD+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638 if test -z "$LD"; then
13639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13640 for ac_dir in $PATH; do
13641 IFS="$lt_save_ifs"
13642 test -z "$ac_dir" && ac_dir=.
13643 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13644 lt_cv_path_LD="$ac_dir/$ac_prog"
13645 # Check to see if the program is GNU ld. I'd rather use --version,
13646 # but apparently some variants of GNU ld only accept -v.
13647 # Break only if it was the GNU/non-GNU ld that we prefer.
13648 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13649 *GNU* | *'with BFD'*)
13650 test "$with_gnu_ld" != no && break
13653 test "$with_gnu_ld" != yes && break
13655 esac
13657 done
13658 IFS="$lt_save_ifs"
13659 else
13660 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13664 LD="$lt_cv_path_LD"
13665 if test -n "$LD"; then
13666 echo "$as_me:$LINENO: result: $LD" >&5
13667 echo "${ECHO_T}$LD" >&6
13668 else
13669 echo "$as_me:$LINENO: result: no" >&5
13670 echo "${ECHO_T}no" >&6
13672 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13673 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13674 { (exit 1); exit 1; }; }
13675 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13676 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13677 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13681 case `$LD -v 2>&1 </dev/null` in
13682 *GNU* | *'with BFD'*)
13683 lt_cv_prog_gnu_ld=yes
13686 lt_cv_prog_gnu_ld=no
13688 esac
13690 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13691 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13692 with_gnu_ld=$lt_cv_prog_gnu_ld
13700 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13701 # archiving commands below assume that GNU ld is being used.
13702 if test "$with_gnu_ld" = yes; then
13703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13704 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'
13706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13709 # If archive_cmds runs LD, not CC, wlarc should be empty
13710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13711 # investigate it a little bit more. (MM)
13712 wlarc='${wl}'
13714 # ancient GNU ld didn't support --whole-archive et. al.
13715 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13716 $GREP 'no-whole-archive' > /dev/null; then
13717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13718 else
13719 whole_archive_flag_spec_CXX=
13721 else
13722 with_gnu_ld=no
13723 wlarc=
13725 # A generic and very simple default shared library creation
13726 # command for GNU C++ for the case where it uses the native
13727 # linker, instead of GNU ld. If possible, this setting should
13728 # overridden to take advantage of the native linker features on
13729 # the platform it is being used on.
13730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13733 # Commands to make compiler produce verbose output that lists
13734 # what "hidden" libraries, object files and flags are used when
13735 # linking a shared library.
13736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13738 else
13739 GXX=no
13740 with_gnu_ld=no
13741 wlarc=
13744 # PORTME: fill in a description of your system's C++ link characteristics
13745 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13746 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13747 ld_shlibs_CXX=yes
13748 case $host_os in
13749 aix3*)
13750 # FIXME: insert proper C++ library support
13751 ld_shlibs_CXX=no
13753 aix[4-9]*)
13754 if test "$host_cpu" = ia64; then
13755 # On IA64, the linker does run time linking by default, so we don't
13756 # have to do anything special.
13757 aix_use_runtimelinking=no
13758 exp_sym_flag='-Bexport'
13759 no_entry_flag=""
13760 else
13761 aix_use_runtimelinking=no
13763 # Test if we are trying to use run time linking or normal
13764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13765 # need to do runtime linking.
13766 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13767 for ld_flag in $LDFLAGS; do
13768 case $ld_flag in
13769 *-brtl*)
13770 aix_use_runtimelinking=yes
13771 break
13773 esac
13774 done
13776 esac
13778 exp_sym_flag='-bexport'
13779 no_entry_flag='-bnoentry'
13782 # When large executables or shared objects are built, AIX ld can
13783 # have problems creating the table of contents. If linking a library
13784 # or program results in "error TOC overflow" add -mminimal-toc to
13785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13788 archive_cmds_CXX=''
13789 hardcode_direct_CXX=yes
13790 hardcode_direct_absolute_CXX=yes
13791 hardcode_libdir_separator_CXX=':'
13792 link_all_deplibs_CXX=yes
13793 file_list_spec_CXX='${wl}-f,'
13795 if test "$GXX" = yes; then
13796 case $host_os in aix4.[012]|aix4.[012].*)
13797 # We only want to do this on AIX 4.2 and lower, the check
13798 # below for broken collect2 doesn't work under 4.3+
13799 collect2name=`${CC} -print-prog-name=collect2`
13800 if test -f "$collect2name" &&
13801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13802 then
13803 # We have reworked collect2
13805 else
13806 # We have old collect2
13807 hardcode_direct_CXX=unsupported
13808 # It fails to find uninstalled libraries when the uninstalled
13809 # path is not listed in the libpath. Setting hardcode_minus_L
13810 # to unsupported forces relinking
13811 hardcode_minus_L_CXX=yes
13812 hardcode_libdir_flag_spec_CXX='-L$libdir'
13813 hardcode_libdir_separator_CXX=
13815 esac
13816 shared_flag='-shared'
13817 if test "$aix_use_runtimelinking" = yes; then
13818 shared_flag="$shared_flag "'${wl}-G'
13820 else
13821 # not using gcc
13822 if test "$host_cpu" = ia64; then
13823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13824 # chokes on -Wl,-G. The following line is correct:
13825 shared_flag='-G'
13826 else
13827 if test "$aix_use_runtimelinking" = yes; then
13828 shared_flag='${wl}-G'
13829 else
13830 shared_flag='${wl}-bM:SRE'
13835 # It seems that -bexpall does not export symbols beginning with
13836 # underscore (_), so it is better to generate a list of symbols to
13837 # export.
13838 always_export_symbols_CXX=yes
13839 if test "$aix_use_runtimelinking" = yes; then
13840 # Warning - without using the other runtime loading flags (-brtl),
13841 # -berok will link without error, but may produce a broken library.
13842 allow_undefined_flag_CXX='-berok'
13843 # Determine the default libpath from the value encoded in an empty
13844 # executable.
13845 if test x$gcc_no_link = xyes; then
13846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13848 { (exit 1); exit 1; }; }
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h. */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13858 main ()
13862 return 0;
13864 _ACEOF
13865 rm -f conftest.$ac_objext conftest$ac_exeext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13867 (eval $ac_link) 2>conftest.er1
13868 ac_status=$?
13869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_cxx_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest$ac_exeext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13888 lt_aix_libpath_sed='
13889 /Import File Strings/,/^$/ {
13890 /^0/ {
13891 s/^0 *\(.*\)$/\1/
13895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13896 # Check for a 64-bit object if we didn't find anything.
13897 if test -z "$aix_libpath"; then
13898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13905 rm -f conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13909 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13911 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"
13912 else
13913 if test "$host_cpu" = ia64; then
13914 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13915 allow_undefined_flag_CXX="-z nodefs"
13916 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"
13917 else
13918 # Determine the default libpath from the value encoded in an
13919 # empty executable.
13920 if test x$gcc_no_link = xyes; then
13921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13923 { (exit 1); exit 1; }; }
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13933 main ()
13937 return 0;
13939 _ACEOF
13940 rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13942 (eval $ac_link) 2>conftest.er1
13943 ac_status=$?
13944 grep -v '^ *+' conftest.er1 >conftest.err
13945 rm -f conftest.er1
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_cxx_werror_flag"
13950 || test ! -s conftest.err'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13963 lt_aix_libpath_sed='
13964 /Import File Strings/,/^$/ {
13965 /^0/ {
13966 s/^0 *\(.*\)$/\1/
13970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13971 # Check for a 64-bit object if we didn't find anything.
13972 if test -z "$aix_libpath"; then
13973 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13975 else
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13980 rm -f conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13985 # Warning - without using the other run time loading flags,
13986 # -berok will link without error, but may produce a broken library.
13987 no_undefined_flag_CXX=' ${wl}-bernotok'
13988 allow_undefined_flag_CXX=' ${wl}-berok'
13989 # Exported symbols can be pulled into shared objects from archives
13990 whole_archive_flag_spec_CXX='$convenience'
13991 archive_cmds_need_lc_CXX=yes
13992 # This is similar to how AIX traditionally builds its shared
13993 # libraries.
13994 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'
13999 beos*)
14000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14001 allow_undefined_flag_CXX=unsupported
14002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14003 # support --undefined. This deserves some investigation. FIXME
14004 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14005 else
14006 ld_shlibs_CXX=no
14010 chorus*)
14011 case $cc_basename in
14013 # FIXME: insert proper C++ library support
14014 ld_shlibs_CXX=no
14016 esac
14019 cygwin* | mingw* | pw32*)
14020 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14021 # as there is no search path for DLLs.
14022 hardcode_libdir_flag_spec_CXX='-L$libdir'
14023 allow_undefined_flag_CXX=unsupported
14024 always_export_symbols_CXX=no
14025 enable_shared_with_static_runtimes_CXX=yes
14027 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14028 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'
14029 # If the export-symbols file already is a .def file (1st line
14030 # is EXPORTS), use it as is; otherwise, prepend...
14031 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14032 cp $export_symbols $output_objdir/$soname.def;
14033 else
14034 echo EXPORTS > $output_objdir/$soname.def;
14035 cat $export_symbols >> $output_objdir/$soname.def;
14037 $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'
14038 else
14039 ld_shlibs_CXX=no
14042 darwin* | rhapsody*)
14043 case $host_os in
14044 rhapsody* | darwin1.[012])
14045 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14047 *) # Darwin 1.3 on
14048 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
14049 10.[012])
14050 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14052 10.*)
14053 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14055 esac
14057 esac
14058 archive_cmds_need_lc_CXX=no
14059 hardcode_direct_CXX=no
14060 hardcode_automatic_CXX=yes
14061 hardcode_shlibpath_var_CXX=unsupported
14062 whole_archive_flag_spec_CXX=''
14063 link_all_deplibs_CXX=yes
14065 if test "$GXX" = yes ; then
14066 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 lt_cv_apple_cc_single_mod=no
14070 if test -z "${LT_MULTI_MODULE}"; then
14071 # By default we will add the -single_module flag. You can override
14072 # by either setting the environment variable LT_MULTI_MODULE
14073 # non-empty at configure time, or by adding -multi-module to the
14074 # link flags.
14075 echo "int foo(void){return 1;}" > conftest.c
14076 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14077 -dynamiclib ${wl}-single_module conftest.c
14078 if test -f libconftest.dylib; then
14079 lt_cv_apple_cc_single_mod=yes
14080 rm libconftest.dylib
14082 rm conftest.$ac_ext
14086 output_verbose_link_cmd=echo
14087 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
14088 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14089 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14090 else
14091 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'
14092 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14094 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14095 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14096 else
14097 case $cc_basename in
14098 xlc*)
14099 output_verbose_link_cmd=echo
14100 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
14101 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14102 # Don't fix this by using the ld -exported_symbols_list flag,
14103 # it doesn't exist in older darwin lds
14104 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14105 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14108 ld_shlibs_CXX=no
14110 esac
14114 dgux*)
14115 case $cc_basename in
14116 ec++*)
14117 # FIXME: insert proper C++ library support
14118 ld_shlibs_CXX=no
14120 ghcx*)
14121 # Green Hills C++ Compiler
14122 # FIXME: insert proper C++ library support
14123 ld_shlibs_CXX=no
14126 # FIXME: insert proper C++ library support
14127 ld_shlibs_CXX=no
14129 esac
14132 freebsd[12]*)
14133 # C++ shared libraries reported to be fairly broken before
14134 # switch to ELF
14135 ld_shlibs_CXX=no
14138 freebsd-elf*)
14139 archive_cmds_need_lc_CXX=no
14142 freebsd* | dragonfly*)
14143 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14144 # conventions
14145 ld_shlibs_CXX=yes
14148 gnu*)
14151 hpux9*)
14152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14153 hardcode_libdir_separator_CXX=:
14154 export_dynamic_flag_spec_CXX='${wl}-E'
14155 hardcode_direct_CXX=yes
14156 hardcode_minus_L_CXX=yes # Not in the search PATH,
14157 # but as the default
14158 # location of the library.
14160 case $cc_basename in
14161 CC*)
14162 # FIXME: insert proper C++ library support
14163 ld_shlibs_CXX=no
14165 aCC*)
14166 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'
14167 # Commands to make compiler produce verbose output that lists
14168 # what "hidden" libraries, object files and flags are used when
14169 # linking a shared library.
14171 # There doesn't appear to be a way to prevent this compiler from
14172 # explicitly linking system object files so we need to strip them
14173 # from the output so that they don't get included in the library
14174 # dependencies.
14175 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'
14178 if test "$GXX" = yes; then
14179 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'
14180 else
14181 # FIXME: insert proper C++ library support
14182 ld_shlibs_CXX=no
14185 esac
14188 hpux10*|hpux11*)
14189 if test $with_gnu_ld = no; then
14190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14191 hardcode_libdir_separator_CXX=:
14193 case $host_cpu in
14194 hppa*64*|ia64*)
14197 export_dynamic_flag_spec_CXX='${wl}-E'
14199 esac
14201 case $host_cpu in
14202 hppa*64*|ia64*)
14203 hardcode_direct_CXX=no
14204 hardcode_shlibpath_var_CXX=no
14207 hardcode_direct_CXX=yes
14208 hardcode_direct_absolute_CXX=yes
14209 hardcode_minus_L_CXX=yes # Not in the search PATH,
14210 # but as the default
14211 # location of the library.
14213 esac
14215 case $cc_basename in
14216 CC*)
14217 # FIXME: insert proper C++ library support
14218 ld_shlibs_CXX=no
14220 aCC*)
14221 case $host_cpu in
14222 hppa*64*)
14223 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14225 ia64*)
14226 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14231 esac
14232 # Commands to make compiler produce verbose output that lists
14233 # what "hidden" libraries, object files and flags are used when
14234 # linking a shared library.
14236 # There doesn't appear to be a way to prevent this compiler from
14237 # explicitly linking system object files so we need to strip them
14238 # from the output so that they don't get included in the library
14239 # dependencies.
14240 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'
14243 if test "$GXX" = yes; then
14244 if test $with_gnu_ld = no; then
14245 case $host_cpu in
14246 hppa*64*)
14247 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14249 ia64*)
14250 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14253 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'
14255 esac
14257 else
14258 # FIXME: insert proper C++ library support
14259 ld_shlibs_CXX=no
14262 esac
14265 interix[3-9]*)
14266 hardcode_direct_CXX=no
14267 hardcode_shlibpath_var_CXX=no
14268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14269 export_dynamic_flag_spec_CXX='${wl}-E'
14270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14271 # Instead, shared libraries are loaded at an image base (0x10000000 by
14272 # default) and relocated if they conflict, which is a slow very memory
14273 # consuming and fragmenting process. To avoid this, we pick a random,
14274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14276 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'
14277 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'
14279 irix5* | irix6*)
14280 case $cc_basename in
14281 CC*)
14282 # SGI C++
14283 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'
14285 # Archives containing C++ object files must be created using
14286 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14287 # necessary to make sure instantiated templates are included
14288 # in the archive.
14289 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14292 if test "$GXX" = yes; then
14293 if test "$with_gnu_ld" = no; then
14294 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'
14295 else
14296 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'
14299 link_all_deplibs_CXX=yes
14301 esac
14302 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14303 hardcode_libdir_separator_CXX=:
14304 inherit_rpath_CXX=yes
14307 linux* | k*bsd*-gnu)
14308 case $cc_basename in
14309 KCC*)
14310 # Kuck and Associates, Inc. (KAI) C++ Compiler
14312 # KCC will only create a shared library if the output file
14313 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14314 # to its proper name (with version) after linking.
14315 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'
14316 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'
14317 # Commands to make compiler produce verbose output that lists
14318 # what "hidden" libraries, object files and flags are used when
14319 # linking a shared library.
14321 # There doesn't appear to be a way to prevent this compiler from
14322 # explicitly linking system object files so we need to strip them
14323 # from the output so that they don't get included in the library
14324 # dependencies.
14325 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'
14327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14330 # Archives containing C++ object files must be created using
14331 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14332 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14334 icpc* | ecpc* )
14335 # Intel C++
14336 with_gnu_ld=yes
14337 # version 8.0 and above of icpc choke on multiply defined symbols
14338 # if we add $predep_objects and $postdep_objects, however 7.1 and
14339 # earlier do not add the objects themselves.
14340 case `$CC -V 2>&1` in
14341 *"Version 7."*)
14342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343 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'
14345 *) # Version 8.0 or newer
14346 tmp_idyn=
14347 case $host_cpu in
14348 ia64*) tmp_idyn=' -i_dynamic';;
14349 esac
14350 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14351 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'
14353 esac
14354 archive_cmds_need_lc_CXX=no
14355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14357 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14359 pgCC*)
14360 # Portland Group C++ compiler
14361 case `$CC -V` in
14362 *pgCC\ [1-5]*)
14363 prelink_cmds_CXX='tpldir=Template.dir~
14364 rm -rf $tpldir~
14365 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14366 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14367 old_archive_cmds_CXX='tpldir=Template.dir~
14368 rm -rf $tpldir~
14369 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14370 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14371 $RANLIB $oldlib'
14372 archive_cmds_CXX='tpldir=Template.dir~
14373 rm -rf $tpldir~
14374 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14375 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14376 archive_expsym_cmds_CXX='tpldir=Template.dir~
14377 rm -rf $tpldir~
14378 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14379 $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'
14381 *) # Version 6 will use weak symbols
14382 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14383 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'
14385 esac
14387 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14389 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'
14391 cxx*)
14392 # Compaq C++
14393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14394 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'
14396 runpath_var=LD_RUN_PATH
14397 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14398 hardcode_libdir_separator_CXX=:
14400 # Commands to make compiler produce verbose output that lists
14401 # what "hidden" libraries, object files and flags are used when
14402 # linking a shared library.
14404 # There doesn't appear to be a way to prevent this compiler from
14405 # explicitly linking system object files so we need to strip them
14406 # from the output so that they don't get included in the library
14407 # dependencies.
14408 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'
14411 case `$CC -V 2>&1 | sed 5q` in
14412 *Sun\ C*)
14413 # Sun C++ 5.9
14414 no_undefined_flag_CXX=' -zdefs'
14415 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14416 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'
14417 hardcode_libdir_flag_spec_CXX='-R$libdir'
14418 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'
14419 compiler_needs_object_CXX=yes
14421 # Not sure whether something based on
14422 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14423 # would be better.
14424 output_verbose_link_cmd='echo'
14426 # Archives containing C++ object files must be created using
14427 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14428 # necessary to make sure instantiated templates are included
14429 # in the archive.
14430 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14432 esac
14434 esac
14437 lynxos*)
14438 # FIXME: insert proper C++ library support
14439 ld_shlibs_CXX=no
14442 m88k*)
14443 # FIXME: insert proper C++ library support
14444 ld_shlibs_CXX=no
14447 mvs*)
14448 case $cc_basename in
14449 cxx*)
14450 # FIXME: insert proper C++ library support
14451 ld_shlibs_CXX=no
14454 # FIXME: insert proper C++ library support
14455 ld_shlibs_CXX=no
14457 esac
14460 netbsd*)
14461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14462 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14463 wlarc=
14464 hardcode_libdir_flag_spec_CXX='-R$libdir'
14465 hardcode_direct_CXX=yes
14466 hardcode_shlibpath_var_CXX=no
14468 # Workaround some broken pre-1.5 toolchains
14469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14472 *nto* | *qnx*)
14473 ld_shlibs_CXX=yes
14476 openbsd2*)
14477 # C++ shared libraries are fairly broken
14478 ld_shlibs_CXX=no
14481 openbsd*)
14482 hardcode_direct_CXX=yes
14483 hardcode_shlibpath_var_CXX=no
14484 hardcode_direct_absolute_CXX=yes
14485 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14487 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14488 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14489 export_dynamic_flag_spec_CXX='${wl}-E'
14490 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14492 output_verbose_link_cmd=echo
14495 osf3* | osf4* | osf5*)
14496 case $cc_basename in
14497 KCC*)
14498 # Kuck and Associates, Inc. (KAI) C++ Compiler
14500 # KCC will only create a shared library if the output file
14501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14502 # to its proper name (with version) after linking.
14503 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'
14505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14506 hardcode_libdir_separator_CXX=:
14508 # Archives containing C++ object files must be created using
14509 # the KAI C++ compiler.
14510 case $host in
14511 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14512 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14513 esac
14515 RCC*)
14516 # Rational C++ 2.4.1
14517 # FIXME: insert proper C++ library support
14518 ld_shlibs_CXX=no
14520 cxx*)
14521 case $host in
14522 osf3*)
14523 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14524 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'
14525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14528 allow_undefined_flag_CXX=' -expect_unresolved \*'
14529 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'
14530 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14531 echo "-hidden">> $lib.exp~
14532 $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~
14533 $RM $lib.exp'
14534 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14536 esac
14538 hardcode_libdir_separator_CXX=:
14540 # Commands to make compiler produce verbose output that lists
14541 # what "hidden" libraries, object files and flags are used when
14542 # linking a shared library.
14544 # There doesn't appear to be a way to prevent this compiler from
14545 # explicitly linking system object files so we need to strip them
14546 # from the output so that they don't get included in the library
14547 # dependencies.
14548 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'
14551 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14553 case $host in
14554 osf3*)
14555 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'
14558 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'
14560 esac
14562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator_CXX=:
14565 # Commands to make compiler produce verbose output that lists
14566 # what "hidden" libraries, object files and flags are used when
14567 # linking a shared library.
14568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14570 else
14571 # FIXME: insert proper C++ library support
14572 ld_shlibs_CXX=no
14575 esac
14578 psos*)
14579 # FIXME: insert proper C++ library support
14580 ld_shlibs_CXX=no
14583 sunos4*)
14584 case $cc_basename in
14585 CC*)
14586 # Sun C++ 4.x
14587 # FIXME: insert proper C++ library support
14588 ld_shlibs_CXX=no
14590 lcc*)
14591 # Lucid
14592 # FIXME: insert proper C++ library support
14593 ld_shlibs_CXX=no
14596 # FIXME: insert proper C++ library support
14597 ld_shlibs_CXX=no
14599 esac
14602 solaris*)
14603 case $cc_basename in
14604 CC*)
14605 # Sun C++ 4.2, 5.x and Centerline C++
14606 archive_cmds_need_lc_CXX=yes
14607 no_undefined_flag_CXX=' -zdefs'
14608 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14610 $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'
14612 hardcode_libdir_flag_spec_CXX='-R$libdir'
14613 hardcode_shlibpath_var_CXX=no
14614 case $host_os in
14615 solaris2.[0-5] | solaris2.[0-5].*) ;;
14617 # The compiler driver will combine and reorder linker options,
14618 # but understands `-z linker_flag'.
14619 # Supported since Solaris 2.6 (maybe 2.5.1?)
14620 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14622 esac
14623 link_all_deplibs_CXX=yes
14625 output_verbose_link_cmd='echo'
14627 # Archives containing C++ object files must be created using
14628 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14629 # necessary to make sure instantiated templates are included
14630 # in the archive.
14631 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14633 gcx*)
14634 # Green Hills C++ Compiler
14635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14637 # The C++ compiler must be used to create the archive.
14638 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14641 # GNU C++ compiler with Solaris linker
14642 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14643 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14644 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14645 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14646 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14647 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14649 # Commands to make compiler produce verbose output that lists
14650 # what "hidden" libraries, object files and flags are used when
14651 # linking a shared library.
14652 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14653 else
14654 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14655 # platform.
14656 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14657 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14658 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14660 # Commands to make compiler produce verbose output that lists
14661 # what "hidden" libraries, object files and flags are used when
14662 # linking a shared library.
14663 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14666 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14667 case $host_os in
14668 solaris2.[0-5] | solaris2.[0-5].*) ;;
14670 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14672 esac
14675 esac
14678 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14679 no_undefined_flag_CXX='${wl}-z,text'
14680 archive_cmds_need_lc_CXX=no
14681 hardcode_shlibpath_var_CXX=no
14682 runpath_var='LD_RUN_PATH'
14684 case $cc_basename in
14685 CC*)
14686 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14690 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14693 esac
14696 sysv5* | sco3.2v5* | sco5v6*)
14697 # Note: We can NOT use -z defs as we might desire, because we do not
14698 # link with -lc, and that would cause any symbols used from libc to
14699 # always be unresolved, which means just about no library would
14700 # ever link correctly. If we're not using GNU ld we use -z text
14701 # though, which does catch some bad symbols but isn't as heavy-handed
14702 # as -z defs.
14703 no_undefined_flag_CXX='${wl}-z,text'
14704 allow_undefined_flag_CXX='${wl}-z,nodefs'
14705 archive_cmds_need_lc_CXX=no
14706 hardcode_shlibpath_var_CXX=no
14707 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14708 hardcode_libdir_separator_CXX=':'
14709 link_all_deplibs_CXX=yes
14710 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14711 runpath_var='LD_RUN_PATH'
14713 case $cc_basename in
14714 CC*)
14715 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14716 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14719 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14722 esac
14725 tandem*)
14726 case $cc_basename in
14727 NCC*)
14728 # NonStop-UX NCC 3.20
14729 # FIXME: insert proper C++ library support
14730 ld_shlibs_CXX=no
14733 # FIXME: insert proper C++ library support
14734 ld_shlibs_CXX=no
14736 esac
14739 vxworks*)
14740 # FIXME: insert proper C++ library support
14741 ld_shlibs_CXX=no
14745 # FIXME: insert proper C++ library support
14746 ld_shlibs_CXX=no
14748 esac
14750 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14751 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14752 test "$ld_shlibs_CXX" = no && can_build_shared=no
14754 GCC_CXX="$GXX"
14755 LD_CXX="$LD"
14757 ## CAVEAT EMPTOR:
14758 ## There is no encapsulation within the following macros, do not change
14759 ## the running order or otherwise move them around unless you know exactly
14760 ## what you are doing...
14761 # Dependencies to place before and after the object being linked:
14762 predep_objects_CXX=
14763 postdep_objects_CXX=
14764 predeps_CXX=
14765 postdeps_CXX=
14766 compiler_lib_search_path_CXX=
14768 cat > conftest.$ac_ext <<_LT_EOF
14769 class Foo
14771 public:
14772 Foo (void) { a = 0; }
14773 private:
14774 int a;
14776 _LT_EOF
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779 (eval $ac_compile) 2>&5
14780 ac_status=$?
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; then
14783 # Parse the compiler output and extract the necessary
14784 # objects, libraries and library flags.
14786 # Sentinel used to keep track of whether or not we are before
14787 # the conftest object file.
14788 pre_test_object_deps_done=no
14790 # The `*' in the case matches for architectures that use `case' in
14791 # $output_verbose_cmd can trigger glob expansion during the loop
14792 # eval without this substitution.
14793 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14795 for p in `eval $output_verbose_link_cmd`; do
14796 case $p in
14798 -L* | -R* | -l*)
14799 # Some compilers place space between "-{L,R}" and the path.
14800 # Remove the space.
14801 if test $p = "-L" ||
14802 test $p = "-R"; then
14803 prev=$p
14804 continue
14805 else
14806 prev=
14809 if test "$pre_test_object_deps_done" = no; then
14810 case $p in
14811 -L* | -R*)
14812 # Internal compiler library paths should come after those
14813 # provided the user. The postdeps already come after the
14814 # user supplied libs so there is no need to process them.
14815 if test -z "$compiler_lib_search_path_CXX"; then
14816 compiler_lib_search_path_CXX="${prev}${p}"
14817 else
14818 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14821 # The "-l" case would never come before the object being
14822 # linked, so don't bother handling this case.
14823 esac
14824 else
14825 if test -z "$postdeps_CXX"; then
14826 postdeps_CXX="${prev}${p}"
14827 else
14828 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14833 *.$objext)
14834 # This assumes that the test object file only shows up
14835 # once in the compiler output.
14836 if test "$p" = "conftest.$objext"; then
14837 pre_test_object_deps_done=yes
14838 continue
14841 if test "$pre_test_object_deps_done" = no; then
14842 if test -z "$predep_objects_CXX"; then
14843 predep_objects_CXX="$p"
14844 else
14845 predep_objects_CXX="$predep_objects_CXX $p"
14847 else
14848 if test -z "$postdep_objects_CXX"; then
14849 postdep_objects_CXX="$p"
14850 else
14851 postdep_objects_CXX="$postdep_objects_CXX $p"
14856 *) ;; # Ignore the rest.
14858 esac
14859 done
14861 # Clean up.
14862 rm -f a.out a.exe
14863 else
14864 echo "libtool.m4: error: problem compiling CXX test program"
14867 $RM -f confest.$objext
14869 # PORTME: override above test on systems where it is broken
14870 case $host_os in
14871 interix[3-9]*)
14872 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14873 # hack all around it, let's just trust "g++" to DTRT.
14874 predep_objects_CXX=
14875 postdep_objects_CXX=
14876 postdeps_CXX=
14879 linux*)
14880 case `$CC -V 2>&1 | sed 5q` in
14881 *Sun\ C*)
14882 # Sun C++ 5.9
14884 # The more standards-conforming stlport4 library is
14885 # incompatible with the Cstd library. Avoid specifying
14886 # it if it's in CXXFLAGS. Ignore libCrun as
14887 # -library=stlport4 depends on it.
14888 case " $CXX $CXXFLAGS " in
14889 *" -library=stlport4 "*)
14890 solaris_use_stlport4=yes
14892 esac
14894 if test "$solaris_use_stlport4" != yes; then
14895 postdeps_CXX='-library=Cstd -library=Crun'
14898 esac
14901 solaris*)
14902 case $cc_basename in
14903 CC*)
14904 # The more standards-conforming stlport4 library is
14905 # incompatible with the Cstd library. Avoid specifying
14906 # it if it's in CXXFLAGS. Ignore libCrun as
14907 # -library=stlport4 depends on it.
14908 case " $CXX $CXXFLAGS " in
14909 *" -library=stlport4 "*)
14910 solaris_use_stlport4=yes
14912 esac
14914 # Adding this requires a known-good setup of shared libraries for
14915 # Sun compiler versions before 5.6, else PIC objects from an old
14916 # archive will be linked into the output, leading to subtle bugs.
14917 if test "$solaris_use_stlport4" != yes; then
14918 postdeps_CXX='-library=Cstd -library=Crun'
14921 esac
14923 esac
14926 case " $postdeps_CXX " in
14927 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14928 esac
14955 lt_prog_compiler_wl_CXX=
14956 lt_prog_compiler_pic_CXX=
14957 lt_prog_compiler_static_CXX=
14959 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14960 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14962 # C++ specific cases for pic, static, wl, etc.
14963 if test "$GXX" = yes; then
14964 lt_prog_compiler_wl_CXX='-Wl,'
14965 lt_prog_compiler_static_CXX='-static'
14967 case $host_os in
14968 aix*)
14969 # All AIX code is PIC.
14970 if test "$host_cpu" = ia64; then
14971 # AIX 5 now supports IA64 processor
14972 lt_prog_compiler_static_CXX='-Bstatic'
14975 amigaos*)
14976 if test "$host_cpu" = m68k; then
14977 # FIXME: we need at least 68020 code to build shared libraries, but
14978 # adding the `-m68020' flag to GCC prevents building anything better,
14979 # like `-m68040'.
14980 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14983 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14984 # PIC is the default for these OSes.
14986 mingw* | cygwin* | os2* | pw32*)
14987 # This hack is so that the source file can tell whether it is being
14988 # built for inclusion in a dll (and should export symbols for example).
14989 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14990 # (--disable-auto-import) libraries
14991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14993 darwin* | rhapsody*)
14994 # PIC is the default on this platform
14995 # Common symbols not allowed in MH_DYLIB files
14996 lt_prog_compiler_pic_CXX='-fno-common'
14998 *djgpp*)
14999 # DJGPP does not support shared libraries at all
15000 lt_prog_compiler_pic_CXX=
15002 interix[3-9]*)
15003 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15004 # Instead, we relocate shared libraries at runtime.
15006 sysv4*MP*)
15007 if test -d /usr/nec; then
15008 lt_prog_compiler_pic_CXX=-Kconform_pic
15011 hpux*)
15012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15013 # not for PA HP-UX.
15014 case $host_cpu in
15015 hppa*64*|ia64*)
15018 lt_prog_compiler_pic_CXX='-fPIC'
15020 esac
15022 *qnx* | *nto*)
15023 # QNX uses GNU C++, but need to define -shared option too, otherwise
15024 # it will coredump.
15025 lt_prog_compiler_pic_CXX='-fPIC -shared'
15028 lt_prog_compiler_pic_CXX='-fPIC'
15030 esac
15031 else
15032 case $host_os in
15033 aix[4-9]*)
15034 # All AIX code is PIC.
15035 if test "$host_cpu" = ia64; then
15036 # AIX 5 now supports IA64 processor
15037 lt_prog_compiler_static_CXX='-Bstatic'
15038 else
15039 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15042 chorus*)
15043 case $cc_basename in
15044 cxch68*)
15045 # Green Hills C++ Compiler
15046 # _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"
15048 esac
15050 darwin*)
15051 # PIC is the default on this platform
15052 # Common symbols not allowed in MH_DYLIB files
15053 case $cc_basename in
15054 xlc*)
15055 lt_prog_compiler_pic_CXX='-qnocommon'
15056 lt_prog_compiler_wl_CXX='-Wl,'
15058 esac
15060 dgux*)
15061 case $cc_basename in
15062 ec++*)
15063 lt_prog_compiler_pic_CXX='-KPIC'
15065 ghcx*)
15066 # Green Hills C++ Compiler
15067 lt_prog_compiler_pic_CXX='-pic'
15071 esac
15073 freebsd* | dragonfly*)
15074 # FreeBSD uses GNU C++
15076 hpux9* | hpux10* | hpux11*)
15077 case $cc_basename in
15078 CC*)
15079 lt_prog_compiler_wl_CXX='-Wl,'
15080 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15081 if test "$host_cpu" != ia64; then
15082 lt_prog_compiler_pic_CXX='+Z'
15085 aCC*)
15086 lt_prog_compiler_wl_CXX='-Wl,'
15087 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15088 case $host_cpu in
15089 hppa*64*|ia64*)
15090 # +Z the default
15093 lt_prog_compiler_pic_CXX='+Z'
15095 esac
15099 esac
15101 interix*)
15102 # This is c89, which is MS Visual C++ (no shared libs)
15103 # Anyone wants to do a port?
15105 irix5* | irix6* | nonstopux*)
15106 case $cc_basename in
15107 CC*)
15108 lt_prog_compiler_wl_CXX='-Wl,'
15109 lt_prog_compiler_static_CXX='-non_shared'
15110 # CC pic flag -KPIC is the default.
15114 esac
15116 linux* | k*bsd*-gnu)
15117 case $cc_basename in
15118 KCC*)
15119 # KAI C++ Compiler
15120 lt_prog_compiler_wl_CXX='--backend -Wl,'
15121 lt_prog_compiler_pic_CXX='-fPIC'
15123 icpc* | ecpc* )
15124 # Intel C++
15125 lt_prog_compiler_wl_CXX='-Wl,'
15126 lt_prog_compiler_pic_CXX='-KPIC'
15127 lt_prog_compiler_static_CXX='-static'
15129 pgCC*)
15130 # Portland Group C++ compiler
15131 lt_prog_compiler_wl_CXX='-Wl,'
15132 lt_prog_compiler_pic_CXX='-fpic'
15133 lt_prog_compiler_static_CXX='-Bstatic'
15135 cxx*)
15136 # Compaq C++
15137 # Make sure the PIC flag is empty. It appears that all Alpha
15138 # Linux and Compaq Tru64 Unix objects are PIC.
15139 lt_prog_compiler_pic_CXX=
15140 lt_prog_compiler_static_CXX='-non_shared'
15143 case `$CC -V 2>&1 | sed 5q` in
15144 *Sun\ C*)
15145 # Sun C++ 5.9
15146 lt_prog_compiler_pic_CXX='-KPIC'
15147 lt_prog_compiler_static_CXX='-Bstatic'
15148 lt_prog_compiler_wl_CXX='-Qoption ld '
15150 esac
15152 esac
15154 lynxos*)
15156 m88k*)
15158 mvs*)
15159 case $cc_basename in
15160 cxx*)
15161 lt_prog_compiler_pic_CXX='-W c,exportall'
15165 esac
15167 netbsd*)
15169 *qnx* | *nto*)
15170 # QNX uses GNU C++, but need to define -shared option too, otherwise
15171 # it will coredump.
15172 lt_prog_compiler_pic_CXX='-fPIC -shared'
15174 osf3* | osf4* | osf5*)
15175 case $cc_basename in
15176 KCC*)
15177 lt_prog_compiler_wl_CXX='--backend -Wl,'
15179 RCC*)
15180 # Rational C++ 2.4.1
15181 lt_prog_compiler_pic_CXX='-pic'
15183 cxx*)
15184 # Digital/Compaq C++
15185 lt_prog_compiler_wl_CXX='-Wl,'
15186 # Make sure the PIC flag is empty. It appears that all Alpha
15187 # Linux and Compaq Tru64 Unix objects are PIC.
15188 lt_prog_compiler_pic_CXX=
15189 lt_prog_compiler_static_CXX='-non_shared'
15193 esac
15195 psos*)
15197 solaris*)
15198 case $cc_basename in
15199 CC*)
15200 # Sun C++ 4.2, 5.x and Centerline C++
15201 lt_prog_compiler_pic_CXX='-KPIC'
15202 lt_prog_compiler_static_CXX='-Bstatic'
15203 lt_prog_compiler_wl_CXX='-Qoption ld '
15205 gcx*)
15206 # Green Hills C++ Compiler
15207 lt_prog_compiler_pic_CXX='-PIC'
15211 esac
15213 sunos4*)
15214 case $cc_basename in
15215 CC*)
15216 # Sun C++ 4.x
15217 lt_prog_compiler_pic_CXX='-pic'
15218 lt_prog_compiler_static_CXX='-Bstatic'
15220 lcc*)
15221 # Lucid
15222 lt_prog_compiler_pic_CXX='-pic'
15226 esac
15228 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15229 case $cc_basename in
15230 CC*)
15231 lt_prog_compiler_wl_CXX='-Wl,'
15232 lt_prog_compiler_pic_CXX='-KPIC'
15233 lt_prog_compiler_static_CXX='-Bstatic'
15235 esac
15237 tandem*)
15238 case $cc_basename in
15239 NCC*)
15240 # NonStop-UX NCC 3.20
15241 lt_prog_compiler_pic_CXX='-KPIC'
15245 esac
15247 vxworks*)
15250 lt_prog_compiler_can_build_shared_CXX=no
15252 esac
15255 case $host_os in
15256 # For platforms which do not support PIC, -DPIC is meaningless:
15257 *djgpp*)
15258 lt_prog_compiler_pic_CXX=
15261 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15263 esac
15264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15265 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15270 # Check to make sure the PIC flag actually works.
15272 if test -n "$lt_prog_compiler_pic_CXX"; then
15273 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15274 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15275 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278 lt_prog_compiler_pic_works_CXX=no
15279 ac_outfile=conftest.$ac_objext
15280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15281 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15282 # Insert the option either (1) after the last *FLAGS variable, or
15283 # (2) before a word containing "conftest.", or (3) at the end.
15284 # Note that $ac_compile itself does not contain backslashes and begins
15285 # with a dollar sign (not a hyphen), so the echo should work correctly.
15286 # The option is referenced via a variable to avoid confusing sed.
15287 lt_compile=`echo "$ac_compile" | $SED \
15288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15290 -e 's:$: $lt_compiler_flag:'`
15291 (eval echo "\"\$as_me:15291: $lt_compile\"" >&5)
15292 (eval "$lt_compile" 2>conftest.err)
15293 ac_status=$?
15294 cat conftest.err >&5
15295 echo "$as_me:15295: \$? = $ac_status" >&5
15296 if (exit $ac_status) && test -s "$ac_outfile"; then
15297 # The compiler can only warn and ignore the option if not recognized
15298 # So say no if there are warnings other than the usual output.
15299 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15302 lt_prog_compiler_pic_works_CXX=yes
15305 $RM conftest*
15308 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15309 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
15311 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15312 case $lt_prog_compiler_pic_CXX in
15313 "" | " "*) ;;
15314 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15315 esac
15316 else
15317 lt_prog_compiler_pic_CXX=
15318 lt_prog_compiler_can_build_shared_CXX=no
15326 # Check to make sure the static flag actually works.
15328 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15329 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15330 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15331 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 lt_prog_compiler_static_works_CXX=no
15335 save_LDFLAGS="$LDFLAGS"
15336 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15337 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15339 # The linker can only warn and ignore the option if not recognized
15340 # So say no if there are warnings
15341 if test -s conftest.err; then
15342 # Append any errors to the config.log.
15343 cat conftest.err 1>&5
15344 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15346 if diff conftest.exp conftest.er2 >/dev/null; then
15347 lt_prog_compiler_static_works_CXX=yes
15349 else
15350 lt_prog_compiler_static_works_CXX=yes
15353 $RM conftest*
15354 LDFLAGS="$save_LDFLAGS"
15357 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15358 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
15360 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15362 else
15363 lt_prog_compiler_static_CXX=
15369 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15370 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15371 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 lt_cv_prog_compiler_c_o_CXX=no
15375 $RM -r conftest 2>/dev/null
15376 mkdir conftest
15377 cd conftest
15378 mkdir out
15379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15381 lt_compiler_flag="-o out/conftest2.$ac_objext"
15382 # Insert the option either (1) after the last *FLAGS variable, or
15383 # (2) before a word containing "conftest.", or (3) at the end.
15384 # Note that $ac_compile itself does not contain backslashes and begins
15385 # with a dollar sign (not a hyphen), so the echo should work correctly.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
15390 (eval echo "\"\$as_me:15390: $lt_compile\"" >&5)
15391 (eval "$lt_compile" 2>out/conftest.err)
15392 ac_status=$?
15393 cat out/conftest.err >&5
15394 echo "$as_me:15394: \$? = $ac_status" >&5
15395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15396 then
15397 # The compiler can only warn and ignore the option if not recognized
15398 # So say no if there are warnings
15399 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15402 lt_cv_prog_compiler_c_o_CXX=yes
15405 chmod u+w . 2>&5
15406 $RM conftest*
15407 # SGI C++ compiler will create directory out/ii_files/ for
15408 # template instantiation
15409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15410 $RM out/* && rmdir out
15411 cd ..
15412 $RM -r conftest
15413 $RM conftest*
15416 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15417 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15423 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 lt_cv_prog_compiler_c_o_CXX=no
15427 $RM -r conftest 2>/dev/null
15428 mkdir conftest
15429 cd conftest
15430 mkdir out
15431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15433 lt_compiler_flag="-o out/conftest2.$ac_objext"
15434 # Insert the option either (1) after the last *FLAGS variable, or
15435 # (2) before a word containing "conftest.", or (3) at the end.
15436 # Note that $ac_compile itself does not contain backslashes and begins
15437 # with a dollar sign (not a hyphen), so the echo should work correctly.
15438 lt_compile=`echo "$ac_compile" | $SED \
15439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15441 -e 's:$: $lt_compiler_flag:'`
15442 (eval echo "\"\$as_me:15442: $lt_compile\"" >&5)
15443 (eval "$lt_compile" 2>out/conftest.err)
15444 ac_status=$?
15445 cat out/conftest.err >&5
15446 echo "$as_me:15446: \$? = $ac_status" >&5
15447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15448 then
15449 # The compiler can only warn and ignore the option if not recognized
15450 # So say no if there are warnings
15451 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15454 lt_cv_prog_compiler_c_o_CXX=yes
15457 chmod u+w . 2>&5
15458 $RM conftest*
15459 # SGI C++ compiler will create directory out/ii_files/ for
15460 # template instantiation
15461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15462 $RM out/* && rmdir out
15463 cd ..
15464 $RM -r conftest
15465 $RM conftest*
15468 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15474 hard_links="nottested"
15475 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15476 # do not overwrite the value of need_locks provided by the user
15477 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15479 hard_links=yes
15480 $RM conftest*
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482 touch conftest.a
15483 ln conftest.a conftest.b 2>&5 || hard_links=no
15484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485 echo "$as_me:$LINENO: result: $hard_links" >&5
15486 echo "${ECHO_T}$hard_links" >&6
15487 if test "$hard_links" = no; then
15488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15490 need_locks=warn
15492 else
15493 need_locks=no
15498 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15502 case $host_os in
15503 aix[4-9]*)
15504 # If we're using GNU nm, then we don't want the "-C" option.
15505 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15506 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15507 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'
15508 else
15509 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'
15512 pw32*)
15513 export_symbols_cmds_CXX="$ltdll_cmds"
15515 cygwin* | mingw*)
15516 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'
15519 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15521 esac
15523 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15524 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15525 test "$ld_shlibs_CXX" = no && can_build_shared=no
15527 with_gnu_ld_CXX=$with_gnu_ld
15535 # Do we need to explicitly link libc?
15537 case "x$archive_cmds_need_lc_CXX" in
15538 x|xyes)
15539 # Assume -lc should be added
15540 archive_cmds_need_lc_CXX=yes
15542 if test "$enable_shared" = yes && test "$GCC" = yes; then
15543 case $archive_cmds_CXX in
15544 *'~'*)
15545 # FIXME: we may have to deal with multi-command sequences.
15547 '$CC '*)
15548 # Test whether the compiler implicitly links with -lc since on some
15549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15550 # to ld, don't add -lc before -lgcc.
15551 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15552 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15553 $RM conftest*
15554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } 2>conftest.err; then
15561 soname=conftest
15562 lib=conftest
15563 libobjs=conftest.$ac_objext
15564 deplibs=
15565 wl=$lt_prog_compiler_wl_CXX
15566 pic_flag=$lt_prog_compiler_pic_CXX
15567 compiler_flags=-v
15568 linker_flags=-v
15569 verstring=
15570 output_objdir=.
15571 libname=conftest
15572 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15573 allow_undefined_flag_CXX=
15574 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15575 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }
15579 then
15580 archive_cmds_need_lc_CXX=no
15581 else
15582 archive_cmds_need_lc_CXX=yes
15584 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15585 else
15586 cat conftest.err 1>&5
15588 $RM conftest*
15589 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15590 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15592 esac
15595 esac
15660 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15662 withGCC=$GXX
15663 library_names_spec=
15664 libname_spec='lib$name'
15665 soname_spec=
15666 shrext_cmds=".so"
15667 postinstall_cmds=
15668 postuninstall_cmds=
15669 finish_cmds=
15670 finish_eval=
15671 shlibpath_var=
15672 shlibpath_overrides_runpath=unknown
15673 version_type=none
15674 dynamic_linker="$host_os ld.so"
15675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15676 need_lib_prefix=unknown
15677 hardcode_into_libs=no
15679 # when you set need_version to no, make sure it does not cause -set_version
15680 # flags to be left without arguments
15681 need_version=unknown
15683 case $host_os in
15684 aix3*)
15685 version_type=linux
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15687 shlibpath_var=LIBPATH
15689 # AIX 3 has no versioning support, so we append a major version to the name.
15690 soname_spec='${libname}${release}${shared_ext}$major'
15693 aix[4-9]*)
15694 version_type=linux
15695 need_lib_prefix=no
15696 need_version=no
15697 hardcode_into_libs=yes
15698 if test "$host_cpu" = ia64; then
15699 # AIX 5 supports IA64
15700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 else
15703 # With GCC up to 2.95.x, collect2 would create an import file
15704 # for dependence libraries. The import file would start with
15705 # the line `#! .'. This would cause the generated library to
15706 # depend on `.', always an invalid library. This was fixed in
15707 # development snapshots of GCC prior to 3.0.
15708 case $host_os in
15709 aix4 | aix4.[01] | aix4.[01].*)
15710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15711 echo ' yes '
15712 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15714 else
15715 can_build_shared=no
15718 esac
15719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15720 # soname into executable. Probably we can add versioning support to
15721 # collect2, so additional links can be useful in future.
15722 if test "$aix_use_runtimelinking" = yes; then
15723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724 # instead of lib<name>.a to let people know that these are not
15725 # typical AIX shared libraries.
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 else
15728 # We preserve .a as extension for shared libraries through AIX4.2
15729 # and later when we are not doing run time linking.
15730 library_names_spec='${libname}${release}.a $libname.a'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LIBPATH
15737 amigaos*)
15738 if test "$host_cpu" = m68k; then
15739 library_names_spec='$libname.ixlibrary $libname.a'
15740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15741 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'
15742 else
15743 dynamic_linker=no
15747 beos*)
15748 library_names_spec='${libname}${shared_ext}'
15749 dynamic_linker="$host_os ld.so"
15750 shlibpath_var=LIBRARY_PATH
15753 bsdi[45]*)
15754 version_type=linux
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15762 # the default ld.so.conf also contains /usr/contrib/lib and
15763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15764 # libtool to hard-code these into programs
15767 cygwin* | mingw* | pw32*)
15768 version_type=windows
15769 shrext_cmds=".dll"
15770 need_version=no
15771 need_lib_prefix=no
15773 case $withGCC,$host_os in
15774 yes,cygwin* | yes,mingw* | yes,pw32*)
15775 library_names_spec='$libname.dll.a'
15776 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15777 postinstall_cmds='base_file=`basename \${file}`~
15778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15779 dldir=$destdir/`dirname \$dlpath`~
15780 test -d \$dldir || mkdir -p \$dldir~
15781 $install_prog $dir/$dlname \$dldir/$dlname~
15782 chmod a+x \$dldir/$dlname~
15783 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15784 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15787 dlpath=$dir/\$dldll~
15788 $RM \$dlpath'
15789 shlibpath_overrides_runpath=yes
15791 case $host_os in
15792 cygwin*)
15793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15797 mingw*)
15798 # MinGW DLLs use traditional 'lib' prefix
15799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15800 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15801 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15802 # It is most probably a Windows format PATH printed by
15803 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15804 # path with ; separators, and with drive letters. We can handle the
15805 # drive letters (cygwin fileutils understands them), so leave them,
15806 # especially as we might pass files found there to a mingw objdump,
15807 # which wouldn't understand a cygwinified path. Ahh.
15808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15809 else
15810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15813 pw32*)
15814 # pw32 DLLs use 'pw' prefix rather than 'lib'
15815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15817 esac
15821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15823 esac
15824 dynamic_linker='Win32 ld.exe'
15825 # FIXME: first we should search . and the directory the executable is in
15826 shlibpath_var=PATH
15829 darwin* | rhapsody*)
15830 dynamic_linker="$host_os dyld"
15831 version_type=darwin
15832 need_lib_prefix=no
15833 need_version=no
15834 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15835 soname_spec='${libname}${release}${major}$shared_ext'
15836 shlibpath_overrides_runpath=yes
15837 shlibpath_var=DYLD_LIBRARY_PATH
15838 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15843 dgux*)
15844 version_type=linux
15845 need_lib_prefix=no
15846 need_version=no
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 shlibpath_var=LD_LIBRARY_PATH
15852 freebsd1*)
15853 dynamic_linker=no
15856 freebsd* | dragonfly*)
15857 # DragonFly does not have aout. When/if they implement a new
15858 # versioning mechanism, adjust this.
15859 if test -x /usr/bin/objformat; then
15860 objformat=`/usr/bin/objformat`
15861 else
15862 case $host_os in
15863 freebsd[123]*) objformat=aout ;;
15864 *) objformat=elf ;;
15865 esac
15867 version_type=freebsd-$objformat
15868 case $version_type in
15869 freebsd-elf*)
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15871 need_version=no
15872 need_lib_prefix=no
15874 freebsd-*)
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15876 need_version=yes
15878 esac
15879 shlibpath_var=LD_LIBRARY_PATH
15880 case $host_os in
15881 freebsd2*)
15882 shlibpath_overrides_runpath=yes
15884 freebsd3.[01]* | freebsdelf3.[01]*)
15885 shlibpath_overrides_runpath=yes
15886 hardcode_into_libs=yes
15888 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15889 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15890 shlibpath_overrides_runpath=no
15891 hardcode_into_libs=yes
15893 *) # from 4.6 on, and DragonFly
15894 shlibpath_overrides_runpath=yes
15895 hardcode_into_libs=yes
15897 esac
15900 gnu*)
15901 version_type=linux
15902 need_lib_prefix=no
15903 need_version=no
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 shlibpath_var=LD_LIBRARY_PATH
15907 hardcode_into_libs=yes
15910 hpux9* | hpux10* | hpux11*)
15911 # Give a soname corresponding to the major version so that dld.sl refuses to
15912 # link against other versions.
15913 version_type=sunos
15914 need_lib_prefix=no
15915 need_version=no
15916 case $host_cpu in
15917 ia64*)
15918 shrext_cmds='.so'
15919 hardcode_into_libs=yes
15920 dynamic_linker="$host_os dld.so"
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 if test "X$HPUX_IA64_MODE" = X32; then
15926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15927 else
15928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15932 hppa*64*)
15933 shrext_cmds='.sl'
15934 hardcode_into_libs=yes
15935 dynamic_linker="$host_os dld.sl"
15936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15944 shrext_cmds='.sl'
15945 dynamic_linker="$host_os dld.sl"
15946 shlibpath_var=SHLIB_PATH
15947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949 soname_spec='${libname}${release}${shared_ext}$major'
15951 esac
15952 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15953 postinstall_cmds='chmod 555 $lib'
15956 interix[3-9]*)
15957 version_type=linux
15958 need_lib_prefix=no
15959 need_version=no
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 shlibpath_overrides_runpath=no
15965 hardcode_into_libs=yes
15968 irix5* | irix6* | nonstopux*)
15969 case $host_os in
15970 nonstopux*) version_type=nonstopux ;;
15972 if test "$lt_cv_prog_gnu_ld" = yes; then
15973 version_type=linux
15974 else
15975 version_type=irix
15976 fi ;;
15977 esac
15978 need_lib_prefix=no
15979 need_version=no
15980 soname_spec='${libname}${release}${shared_ext}$major'
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15982 case $host_os in
15983 irix5* | nonstopux*)
15984 libsuff= shlibsuff=
15987 case $LD in # libtool.m4 will add one of these switches to LD
15988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15989 libsuff= shlibsuff= libmagic=32-bit;;
15990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15991 libsuff=32 shlibsuff=N32 libmagic=N32;;
15992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15994 *) libsuff= shlibsuff= libmagic=never-match;;
15995 esac
15997 esac
15998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15999 shlibpath_overrides_runpath=no
16000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16002 hardcode_into_libs=yes
16005 # No shared lib support for Linux oldld, aout, or coff.
16006 linux*oldld* | linux*aout* | linux*coff*)
16007 dynamic_linker=no
16010 # This must be Linux ELF.
16011 linux* | k*bsd*-gnu)
16012 version_type=linux
16013 need_lib_prefix=no
16014 need_version=no
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 shlibpath_overrides_runpath=no
16020 # Some binutils ld are patched to set DT_RUNPATH
16021 save_LDFLAGS=$LDFLAGS
16022 save_libdir=$libdir
16023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16025 if test x$gcc_no_link = xyes; then
16026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16028 { (exit 1); exit 1; }; }
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16038 main ()
16042 return 0;
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047 (eval $ac_link) 2>conftest.er1
16048 ac_status=$?
16049 grep -v '^ *+' conftest.er1 >conftest.err
16050 rm -f conftest.er1
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } &&
16054 { ac_try='test -z "$ac_cxx_werror_flag"
16055 || test ! -s conftest.err'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest$ac_exeext'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
16068 shlibpath_overrides_runpath=yes
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16076 rm -f conftest.err conftest.$ac_objext \
16077 conftest$ac_exeext conftest.$ac_ext
16078 LDFLAGS=$save_LDFLAGS
16079 libdir=$save_libdir
16081 # This implies no fast_install, which is unacceptable.
16082 # Some rework will be needed to allow for fast_install
16083 # before this can be enabled.
16084 hardcode_into_libs=yes
16086 # Append ld.so.conf contents to the search path
16087 if test -f /etc/ld.so.conf; then
16088 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16092 # We used to test for /lib/ld.so.1 and disable shared libraries on
16093 # powerpc, because MkLinux only supported shared libraries with the
16094 # GNU dynamic linker. Since this was broken with cross compilers,
16095 # most powerpc-linux boxes support dynamic linking these days and
16096 # people can always --disable-shared, the test was removed, and we
16097 # assume the GNU/Linux dynamic linker is in use.
16098 dynamic_linker='GNU/Linux ld.so'
16101 netbsd*)
16102 version_type=sunos
16103 need_lib_prefix=no
16104 need_version=no
16105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16108 dynamic_linker='NetBSD (a.out) ld.so'
16109 else
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 dynamic_linker='NetBSD ld.elf_so'
16114 shlibpath_var=LD_LIBRARY_PATH
16115 shlibpath_overrides_runpath=yes
16116 hardcode_into_libs=yes
16119 newsos6)
16120 version_type=linux
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122 shlibpath_var=LD_LIBRARY_PATH
16123 shlibpath_overrides_runpath=yes
16126 *nto* | *qnx*)
16127 version_type=qnx
16128 need_lib_prefix=no
16129 need_version=no
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 shlibpath_overrides_runpath=no
16134 hardcode_into_libs=yes
16135 dynamic_linker='ldqnx.so'
16138 openbsd*)
16139 version_type=sunos
16140 sys_lib_dlsearch_path_spec="/usr/lib"
16141 need_lib_prefix=no
16142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16143 case $host_os in
16144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16145 *) need_version=no ;;
16146 esac
16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16149 shlibpath_var=LD_LIBRARY_PATH
16150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16151 case $host_os in
16152 openbsd2.[89] | openbsd2.[89].*)
16153 shlibpath_overrides_runpath=no
16156 shlibpath_overrides_runpath=yes
16158 esac
16159 else
16160 shlibpath_overrides_runpath=yes
16164 os2*)
16165 libname_spec='$name'
16166 shrext_cmds=".dll"
16167 need_lib_prefix=no
16168 library_names_spec='$libname${shared_ext} $libname.a'
16169 dynamic_linker='OS/2 ld.exe'
16170 shlibpath_var=LIBPATH
16173 osf3* | osf4* | osf5*)
16174 version_type=osf
16175 need_lib_prefix=no
16176 need_version=no
16177 soname_spec='${libname}${release}${shared_ext}$major'
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16184 rdos*)
16185 dynamic_linker=no
16188 solaris*)
16189 version_type=linux
16190 need_lib_prefix=no
16191 need_version=no
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16196 hardcode_into_libs=yes
16197 # ldd complains unless libraries are executable
16198 postinstall_cmds='chmod +x $lib'
16201 sunos4*)
16202 version_type=sunos
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16205 shlibpath_var=LD_LIBRARY_PATH
16206 shlibpath_overrides_runpath=yes
16207 if test "$with_gnu_ld" = yes; then
16208 need_lib_prefix=no
16210 need_version=yes
16213 sysv4 | sysv4.3*)
16214 version_type=linux
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 case $host_vendor in
16219 sni)
16220 shlibpath_overrides_runpath=no
16221 need_lib_prefix=no
16222 runpath_var=LD_RUN_PATH
16224 siemens)
16225 need_lib_prefix=no
16227 motorola)
16228 need_lib_prefix=no
16229 need_version=no
16230 shlibpath_overrides_runpath=no
16231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16233 esac
16236 sysv4*MP*)
16237 if test -d /usr/nec ;then
16238 version_type=linux
16239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16240 soname_spec='$libname${shared_ext}.$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16246 version_type=freebsd-elf
16247 need_lib_prefix=no
16248 need_version=no
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=yes
16253 hardcode_into_libs=yes
16254 if test "$with_gnu_ld" = yes; then
16255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16256 else
16257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16258 case $host_os in
16259 sco3.2v5*)
16260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16262 esac
16264 sys_lib_dlsearch_path_spec='/usr/lib'
16267 tpf*)
16268 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16269 version_type=linux
16270 need_lib_prefix=no
16271 need_version=no
16272 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16278 uts4*)
16279 version_type=linux
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 shlibpath_var=LD_LIBRARY_PATH
16286 dynamic_linker=no
16288 esac
16289 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16290 echo "${ECHO_T}$dynamic_linker" >&6
16291 test "$dynamic_linker" = no && can_build_shared=no
16293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16294 if test "$GCC" = yes; then
16295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16333 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16334 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16335 hardcode_action_CXX=
16336 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16337 test -n "$runpath_var_CXX" ||
16338 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16340 # We can hardcode non-existent directories.
16341 if test "$hardcode_direct_CXX" != no &&
16342 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16343 # have to relink, otherwise we might link with an installed library
16344 # when we should be linking with a yet-to-be-installed one
16345 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16346 test "$hardcode_minus_L_CXX" != no; then
16347 # Linking always hardcodes the temporary library directory.
16348 hardcode_action_CXX=relink
16349 else
16350 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16351 hardcode_action_CXX=immediate
16353 else
16354 # We cannot hardcode anything, or else we can only hardcode existing
16355 # directories.
16356 hardcode_action_CXX=unsupported
16358 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16359 echo "${ECHO_T}$hardcode_action_CXX" >&6
16361 if test "$hardcode_action_CXX" = relink ||
16362 test "$inherit_rpath_CXX" = yes; then
16363 # Fast installation is not supported
16364 enable_fast_install=no
16365 elif test "$shlibpath_overrides_runpath" = yes ||
16366 test "$enable_shared" = no; then
16367 # Fast installation is not necessary
16368 enable_fast_install=needless
16377 fi # test -n "$compiler"
16379 CC=$lt_save_CC
16380 LDCXX=$LD
16381 LD=$lt_save_LD
16382 GCC=$lt_save_GCC
16383 with_gnu_ld=$lt_save_with_gnu_ld
16384 lt_cv_path_LDCXX=$lt_cv_path_LD
16385 lt_cv_path_LD=$lt_save_path_LD
16386 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16387 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16388 fi # test "$_lt_caught_CXX_error" != yes
16390 ac_ext=c
16391 ac_cpp='$CPP $CPPFLAGS'
16392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16398 # Handle -Werror default case.
16399 if test "$ENABLE_WERROR" = default; then
16400 case "$host_os" in
16401 *linux*)
16402 if test "$GCC" = yes; then
16403 ENABLE_WERROR=yes
16406 esac
16409 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16410 # Extract the first word of "perl", so it can be a program name with args.
16411 set dummy perl; ac_word=$2
16412 echo "$as_me:$LINENO: checking for $ac_word" >&5
16413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16414 if test "${ac_cv_path_PERL+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 case $PERL in
16418 [\\/]* | ?:[\\/]*)
16419 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16423 for as_dir in $PATH
16425 IFS=$as_save_IFS
16426 test -z "$as_dir" && as_dir=.
16427 for ac_exec_ext in '' $ac_executable_extensions; do
16428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16429 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16431 break 2
16433 done
16434 done
16437 esac
16439 PERL=$ac_cv_path_PERL
16441 if test -n "$PERL"; then
16442 echo "$as_me:$LINENO: result: $PERL" >&5
16443 echo "${ECHO_T}$PERL" >&6
16444 else
16445 echo "$as_me:$LINENO: result: no" >&5
16446 echo "${ECHO_T}no" >&6
16451 ac_config_files="$ac_config_files lib/mkcollections.pl"
16453 ac_config_commands="$ac_config_commands mkcollections.pl"
16457 if test "x${COMPILE_JNI}" = xyes; then
16461 echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
16462 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
16463 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16475 main ()
16477 extern int testfunction(int x) __attribute__((,,))
16479 return 0;
16481 _ACEOF
16482 rm -f conftest.$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 gcc_cv_c_gcc_attribute_supported=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 gcc_cv_c_gcc_attribute_supported=no
16511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16515 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16516 true
16517 echo "$as_me:$LINENO: result: yes" >&5
16518 echo "${ECHO_T}yes" >&6
16520 cat >>confdefs.h <<\_ACEOF
16521 #define HAVE_GNUC25_ATTRIB
16522 _ACEOF
16525 else
16526 true
16527 echo "$as_me:$LINENO: result: no" >&5
16528 echo "${ECHO_T}no" >&6
16541 echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
16542 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
16543 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16555 main ()
16557 extern int testfunction(int x) __attribute__((unused))
16559 return 0;
16561 _ACEOF
16562 rm -f conftest.$ac_objext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag"
16572 || test ! -s conftest.err'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest.$ac_objext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 gcc_cv_c_gcc_attribute_unused=yes
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 gcc_cv_c_gcc_attribute_unused=no
16591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16595 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16596 true
16597 echo "$as_me:$LINENO: result: yes" >&5
16598 echo "${ECHO_T}yes" >&6
16600 cat >>confdefs.h <<\_ACEOF
16601 #define HAVE_GNUC25_UNUSED
16602 _ACEOF
16605 else
16606 true
16607 echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6
16617 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16619 if test "${ac_cv_header_stdc+set}" = set; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 #include <stdlib.h>
16629 #include <stdarg.h>
16630 #include <string.h>
16631 #include <float.h>
16634 main ()
16638 return 0;
16640 _ACEOF
16641 rm -f conftest.$ac_objext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16643 (eval $ac_compile) 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag"
16651 || test ! -s conftest.err'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_cv_header_stdc=yes
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_cv_header_stdc=no
16670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 if test $ac_cv_header_stdc = yes; then
16673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 #include <string.h>
16682 _ACEOF
16683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16684 $EGREP "memchr" >/dev/null 2>&1; then
16686 else
16687 ac_cv_header_stdc=no
16689 rm -f conftest*
16693 if test $ac_cv_header_stdc = yes; then
16694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16695 cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h. */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <stdlib.h>
16703 _ACEOF
16704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16705 $EGREP "free" >/dev/null 2>&1; then
16707 else
16708 ac_cv_header_stdc=no
16710 rm -f conftest*
16714 if test $ac_cv_header_stdc = yes; then
16715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16716 if test "$cross_compiling" = yes; then
16718 else
16719 cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h. */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 #include <ctype.h>
16726 #if ((' ' & 0x0FF) == 0x020)
16727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16729 #else
16730 # define ISLOWER(c) \
16731 (('a' <= (c) && (c) <= 'i') \
16732 || ('j' <= (c) && (c) <= 'r') \
16733 || ('s' <= (c) && (c) <= 'z'))
16734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16735 #endif
16737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16739 main ()
16741 int i;
16742 for (i = 0; i < 256; i++)
16743 if (XOR (islower (i), ISLOWER (i))
16744 || toupper (i) != TOUPPER (i))
16745 exit(2);
16746 exit (0);
16748 _ACEOF
16749 rm -f conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751 (eval $ac_link) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16761 else
16762 echo "$as_me: program exited with status $ac_status" >&5
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 ( exit $ac_status )
16767 ac_cv_header_stdc=no
16769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16773 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16774 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16775 if test $ac_cv_header_stdc = yes; then
16777 cat >>confdefs.h <<\_ACEOF
16778 #define STDC_HEADERS 1
16779 _ACEOF
16784 echo "$as_me:$LINENO: checking size of void *" >&5
16785 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16786 if test "${ac_cv_sizeof_void_p+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16790 cat >conftest.$ac_ext <<_ACEOF
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 #include "confdefs.h"
16797 #include <sys/types.h>
16801 main ()
16803 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16805 return 0;
16807 _ACEOF
16808 rm -f conftest.$ac_objext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 (eval $ac_compile) 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag"
16818 || test ! -s conftest.err'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_sizeof_void_p=$ac_size
16831 else
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16837 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16838 done
16842 if test x$ac_cv_sizeof_void_p = x ; then
16843 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
16844 echo "$as_me: error: cannot determine a size for void *" >&2;}
16845 { (exit 1); exit 1; }; }
16847 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16848 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16850 cat >>confdefs.h <<_ACEOF
16851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16852 _ACEOF
16856 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16857 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16858 if test "${ac_cv_c_bigendian+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861 ac_cv_c_bigendian=unknown
16862 # See if sys/param.h defines the BYTE_ORDER macro.
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 #include <sys/types.h>
16870 #include <sys/param.h>
16872 main ()
16875 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16876 bogus endian macros
16877 #endif
16879 return 0;
16881 _ACEOF
16882 rm -f conftest.$ac_objext
16883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16884 (eval $ac_compile) 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
16891 { ac_try='test -z "$ac_c_werror_flag"
16892 || test ! -s conftest.err'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 # It does; now see whether it defined to BIG_ENDIAN or not.
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 #include <sys/types.h>
16912 #include <sys/param.h>
16914 main ()
16917 #if BYTE_ORDER != BIG_ENDIAN
16918 not big endian
16919 #endif
16921 return 0;
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_c_bigendian=yes
16947 else
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16951 ac_cv_c_bigendian=no
16953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954 else
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16960 if test $ac_cv_c_bigendian = unknown; then
16961 if test "$cross_compiling" = yes; then
16962 echo $ac_n "cross-compiling... " 2>&6
16963 else
16964 cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h. */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 main () {
16971 /* Are we little or big endian? From Harbison&Steele. */
16972 union
16974 long l;
16975 char c[sizeof (long)];
16976 } u;
16977 u.l = 1;
16978 exit (u.c[sizeof (long) - 1] == 1);
16980 _ACEOF
16981 rm -f conftest$ac_exeext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983 (eval $ac_link) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 ac_cv_c_bigendian=no
16993 else
16994 echo "$as_me: program exited with status $ac_status" >&5
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ( exit $ac_status )
16999 ac_cv_c_bigendian=yes
17001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17006 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17007 if test $ac_cv_c_bigendian = unknown; then
17008 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
17009 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
17011 cat >conftest.c <<EOF
17012 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17013 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17014 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
17015 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17016 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17017 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
17018 int main() { _ascii (); _ebcdic (); return 0; }
17020 if test -f conftest.c ; then
17021 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
17022 if test `grep -l BIGenDianSyS conftest.o` ; then
17023 echo $ac_n ' big endian probe OK, ' 1>&6
17024 ac_cv_c_bigendian=yes
17026 if test `grep -l LiTTleEnDian conftest.o` ; then
17027 echo $ac_n ' little endian probe OK, ' 1>&6
17028 if test $ac_cv_c_bigendian = yes ; then
17029 ac_cv_c_bigendian=unknown;
17030 else
17031 ac_cv_c_bigendian=no
17034 echo $ac_n 'guessing bigendian ... ' >&6
17037 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17038 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17040 if test $ac_cv_c_bigendian = yes; then
17042 cat >>confdefs.h <<\_ACEOF
17043 #define WORDS_BIGENDIAN 1
17044 _ACEOF
17047 cat >>confdefs.h <<\_ACEOF
17048 #define HOST_WORDS_BIG_ENDIAN 1
17049 _ACEOF
17051 BYTEORDER=4321
17052 else
17053 BYTEORDER=1234
17056 cat >>confdefs.h <<_ACEOF
17057 #define BYTEORDER $BYTEORDER
17058 _ACEOF
17060 if test $ac_cv_c_bigendian = unknown; then
17061 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
17062 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
17063 { (exit 1); exit 1; }; }
17086 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
17087 asm/ioctls.h \
17088 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17089 sys/time.h \
17090 sys/select.h \
17091 crt_externs.h \
17092 fcntl.h \
17093 sys/mman.h \
17094 magic.h \
17095 sys/event.h sys/epoll.h \
17096 ifaddrs.h
17098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17100 echo "$as_me:$LINENO: checking for $ac_header" >&5
17101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17107 else
17108 # Is the header compilable?
17109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 $ac_includes_default
17118 #include <$ac_header>
17119 _ACEOF
17120 rm -f conftest.$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag"
17130 || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_header_compiler=yes
17143 else
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_header_compiler=no
17149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151 echo "${ECHO_T}$ac_header_compiler" >&6
17153 # Is the header present?
17154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <$ac_header>
17163 _ACEOF
17164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } >/dev/null; then
17172 if test -s conftest.err; then
17173 ac_cpp_err=$ac_c_preproc_warn_flag
17174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17175 else
17176 ac_cpp_err=
17178 else
17179 ac_cpp_err=yes
17181 if test -z "$ac_cpp_err"; then
17182 ac_header_preproc=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_preproc=no
17189 rm -f conftest.err conftest.$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17191 echo "${ECHO_T}$ac_header_preproc" >&6
17193 # So? What about this header?
17194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17195 yes:no: )
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17200 ac_header_preproc=yes
17202 no:yes:* )
17203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17216 cat <<\_ASBOX
17217 ## -------------------------------- ##
17218 ## Report this to classpath@gnu.org ##
17219 ## -------------------------------- ##
17220 _ASBOX
17222 sed "s/^/$as_me: WARNING: /" >&2
17224 esac
17225 echo "$as_me:$LINENO: checking for $ac_header" >&5
17226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 eval "$as_ac_Header=\$ac_header_preproc"
17232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17239 _ACEOF
17243 done
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h. */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 #include <stdint.h>
17254 _ACEOF
17255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17256 $EGREP "uint32_t" >/dev/null 2>&1; then
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_INT32_DEFINED 1
17260 _ACEOF
17263 rm -f conftest*
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h. */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 #include <inttypes.h>
17273 _ACEOF
17274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17275 $EGREP "uint32_t" >/dev/null 2>&1; then
17277 cat >>confdefs.h <<\_ACEOF
17278 #define HAVE_INT32_DEFINED 1
17279 _ACEOF
17282 rm -f conftest*
17284 cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h. */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <sys/types.h>
17292 _ACEOF
17293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17294 $EGREP "u_int32_t" >/dev/null 2>&1; then
17296 cat >>confdefs.h <<\_ACEOF
17297 #define HAVE_BSD_INT32_DEFINED 1
17298 _ACEOF
17301 rm -f conftest*
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h. */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 #include <sys/config.h>
17311 _ACEOF
17312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17313 $EGREP "u_int32_t" >/dev/null 2>&1; then
17315 cat >>confdefs.h <<\_ACEOF
17316 #define HAVE_BSD_INT32_DEFINED 1
17317 _ACEOF
17320 rm -f conftest*
17323 echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
17324 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6
17325 if test "${ac_cv_search_inet_pton+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328 ac_func_search_save_LIBS=$LIBS
17329 ac_cv_search_inet_pton=no
17330 if test x$gcc_no_link = xyes; then
17331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17333 { (exit 1); exit 1; }; }
17335 cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h. */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17342 /* Override any gcc2 internal prototype to avoid an error. */
17343 #ifdef __cplusplus
17344 extern "C"
17345 #endif
17346 /* We use char because int might match the return type of a gcc2
17347 builtin and then its argument prototype would still apply. */
17348 char inet_pton ();
17350 main ()
17352 inet_pton ();
17354 return 0;
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17359 (eval $ac_link) 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest$ac_exeext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_cv_search_inet_pton="none required"
17380 else
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17385 rm -f conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387 if test "$ac_cv_search_inet_pton" = no; then
17388 for ac_lib in nsl; do
17389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17390 if test x$gcc_no_link = xyes; then
17391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17393 { (exit 1); exit 1; }; }
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17402 /* Override any gcc2 internal prototype to avoid an error. */
17403 #ifdef __cplusplus
17404 extern "C"
17405 #endif
17406 /* We use char because int might match the return type of a gcc2
17407 builtin and then its argument prototype would still apply. */
17408 char inet_pton ();
17410 main ()
17412 inet_pton ();
17414 return 0;
17416 _ACEOF
17417 rm -f conftest.$ac_objext conftest$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_search_inet_pton="-l$ac_lib"
17440 break
17441 else
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17446 rm -f conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17448 done
17450 LIBS=$ac_func_search_save_LIBS
17452 echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
17453 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6
17454 if test "$ac_cv_search_inet_pton" != no; then
17455 test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS"
17514 for ac_func in ftruncate fsync select \
17515 gethostname socket strerror fork pipe execve open close \
17516 lseek fstat read readv write writev htonl memset htons connect \
17517 getsockname getpeername bind listen accept \
17518 recvfrom send sendto setsockopt getsockopt time mktime \
17519 gethostbyname_r localtime_r \
17520 strerror_r \
17521 fcntl \
17522 mmap munmap mincore msync madvise getpagesize sysconf \
17523 lstat readlink \
17524 inet_aton inet_addr inet_pton \
17525 getifaddrs kqueue kevent epoll_create \
17526 readdir_r getloadavg
17528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17529 echo "$as_me:$LINENO: checking for $ac_func" >&5
17530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17531 if eval "test \"\${$as_ac_var+set}\" = set"; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534 if test x$gcc_no_link = xyes; then
17535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17537 { (exit 1); exit 1; }; }
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17547 #define $ac_func innocuous_$ac_func
17549 /* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func (); below.
17551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552 <limits.h> exists even on freestanding compilers. */
17554 #ifdef __STDC__
17555 # include <limits.h>
17556 #else
17557 # include <assert.h>
17558 #endif
17560 #undef $ac_func
17562 /* Override any gcc2 internal prototype to avoid an error. */
17563 #ifdef __cplusplus
17564 extern "C"
17566 #endif
17567 /* We use char because int might match the return type of a gcc2
17568 builtin and then its argument prototype would still apply. */
17569 char $ac_func ();
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17574 choke me
17575 #else
17576 char (*f) () = $ac_func;
17577 #endif
17578 #ifdef __cplusplus
17580 #endif
17583 main ()
17585 return f != $ac_func;
17587 return 0;
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>conftest.er1
17593 ac_status=$?
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag"
17600 || test ! -s conftest.err'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17613 else
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 eval "$as_ac_var=no"
17619 rm -f conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17627 _ACEOF
17630 done
17633 LIBMAGIC=
17634 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
17635 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
17636 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639 ac_check_lib_save_LIBS=$LIBS
17640 LIBS="-lmagic $LIBS"
17641 if test x$gcc_no_link = xyes; then
17642 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17644 { (exit 1); exit 1; }; }
17646 cat >conftest.$ac_ext <<_ACEOF
17647 /* confdefs.h. */
17648 _ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17653 /* Override any gcc2 internal prototype to avoid an error. */
17654 #ifdef __cplusplus
17655 extern "C"
17656 #endif
17657 /* We use char because int might match the return type of a gcc2
17658 builtin and then its argument prototype would still apply. */
17659 char magic_open ();
17661 main ()
17663 magic_open ();
17665 return 0;
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest$ac_exeext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_lib_magic_magic_open=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_lib_magic_magic_open=no
17697 rm -f conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17699 LIBS=$ac_check_lib_save_LIBS
17701 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
17702 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
17703 if test $ac_cv_lib_magic_magic_open = yes; then
17704 LIBMAGIC=-lmagic
17709 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17710 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
17711 cat >conftest.$ac_ext <<_ACEOF
17712 /* confdefs.h. */
17713 _ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 #include <netinet/in.h>
17719 main ()
17721 struct sockaddr_in6 addr6;
17723 return 0;
17725 _ACEOF
17726 rm -f conftest.$ac_objext
17727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17728 (eval $ac_compile) 2>conftest.er1
17729 ac_status=$?
17730 grep -v '^ *+' conftest.er1 >conftest.err
17731 rm -f conftest.er1
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } &&
17735 { ac_try='test -z "$ac_c_werror_flag"
17736 || test ! -s conftest.err'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17749 cat >>confdefs.h <<\_ACEOF
17750 #define HAVE_INET6 1
17751 _ACEOF
17753 echo "$as_me:$LINENO: result: yes" >&5
17754 echo "${ECHO_T}yes" >&6
17755 else
17756 echo "$as_me: failed program was:" >&5
17757 sed 's/^/| /' conftest.$ac_ext >&5
17759 echo "$as_me:$LINENO: result: no" >&5
17760 echo "${ECHO_T}no" >&6
17762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17764 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17765 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17766 if test "${ac_cv_header_time+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769 cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h. */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 #include <sys/types.h>
17776 #include <sys/time.h>
17777 #include <time.h>
17780 main ()
17782 if ((struct tm *) 0)
17783 return 0;
17785 return 0;
17787 _ACEOF
17788 rm -f conftest.$ac_objext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17790 (eval $ac_compile) 2>conftest.er1
17791 ac_status=$?
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } &&
17797 { ac_try='test -z "$ac_c_werror_flag"
17798 || test ! -s conftest.err'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest.$ac_objext'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 ac_cv_header_time=yes
17811 else
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 ac_cv_header_time=no
17817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17819 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17820 echo "${ECHO_T}$ac_cv_header_time" >&6
17821 if test $ac_cv_header_time = yes; then
17823 cat >>confdefs.h <<\_ACEOF
17824 #define TIME_WITH_SYS_TIME 1
17825 _ACEOF
17829 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17830 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
17831 if test "${ac_cv_struct_tm+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 else
17834 cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h. */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 #include <sys/types.h>
17841 #include <time.h>
17844 main ()
17846 struct tm *tp; tp->tm_sec;
17848 return 0;
17850 _ACEOF
17851 rm -f conftest.$ac_objext
17852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17853 (eval $ac_compile) 2>conftest.er1
17854 ac_status=$?
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -z "$ac_c_werror_flag"
17861 || test ! -s conftest.err'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; } &&
17867 { ac_try='test -s conftest.$ac_objext'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; }; then
17873 ac_cv_struct_tm=time.h
17874 else
17875 echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_cv_struct_tm=sys/time.h
17880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17882 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17883 echo "${ECHO_T}$ac_cv_struct_tm" >&6
17884 if test $ac_cv_struct_tm = sys/time.h; then
17886 cat >>confdefs.h <<\_ACEOF
17887 #define TM_IN_SYS_TIME 1
17888 _ACEOF
17892 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17893 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
17894 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17903 #include <sys/types.h>
17904 #include <$ac_cv_struct_tm>
17908 main ()
17910 static struct tm ac_aggr;
17911 if (ac_aggr.tm_zone)
17912 return 0;
17914 return 0;
17916 _ACEOF
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_cv_member_struct_tm_tm_zone=yes
17940 else
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h. */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 #include <sys/types.h>
17951 #include <$ac_cv_struct_tm>
17955 main ()
17957 static struct tm ac_aggr;
17958 if (sizeof ac_aggr.tm_zone)
17959 return 0;
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17966 (eval $ac_compile) 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -z "$ac_c_werror_flag"
17974 || test ! -s conftest.err'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest.$ac_objext'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_cv_member_struct_tm_tm_zone=yes
17987 else
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 ac_cv_member_struct_tm_tm_zone=no
17993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17997 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17998 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
17999 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_STRUCT_TM_TM_ZONE 1
18003 _ACEOF
18008 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE_TM_ZONE 1
18012 _ACEOF
18014 else
18015 echo "$as_me:$LINENO: checking for tzname" >&5
18016 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18017 if test "${ac_cv_var_tzname+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 else
18020 if test x$gcc_no_link = xyes; then
18021 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18023 { (exit 1); exit 1; }; }
18025 cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h. */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18031 #include <time.h>
18032 #ifndef tzname /* For SGI. */
18033 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
18034 #endif
18037 main ()
18039 atoi(*tzname);
18041 return 0;
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag"
18054 || test ! -s conftest.err'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest$ac_exeext'
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 ac_cv_var_tzname=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_cv_var_tzname=no
18073 rm -f conftest.err conftest.$ac_objext \
18074 conftest$ac_exeext conftest.$ac_ext
18076 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18077 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18078 if test $ac_cv_var_tzname = yes; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define HAVE_TZNAME 1
18082 _ACEOF
18088 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
18089 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
18090 cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h. */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 #include <time.h>
18098 main ()
18100 struct tm tim; tim.tm_gmtoff = 0;
18102 return 0;
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107 (eval $ac_compile) 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag"
18115 || test ! -s conftest.err'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; }; then
18128 cat >>confdefs.h <<\_ACEOF
18129 #define STRUCT_TM_HAS_GMTOFF 1
18130 _ACEOF
18132 echo "$as_me:$LINENO: result: yes" >&5
18133 echo "${ECHO_T}yes" >&6
18134 else
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 echo "$as_me:$LINENO: result: no" >&5
18139 echo "${ECHO_T}no" >&6
18140 echo "$as_me:$LINENO: checking for global timezone variable" >&5
18141 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 #include <time.h>
18150 main ()
18152 void i(){long z2 = 2*timezone;}
18154 return 0;
18156 _ACEOF
18157 rm -f conftest.$ac_objext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag"
18167 || test ! -s conftest.err'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest.$ac_objext'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18180 cat >>confdefs.h <<\_ACEOF
18181 #define HAVE_TIMEZONE 1
18182 _ACEOF
18184 echo "$as_me:$LINENO: result: yes" >&5
18185 echo "${ECHO_T}yes" >&6
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 echo "$as_me:$LINENO: result: no" >&5
18191 echo "${ECHO_T}no" >&6
18192 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
18193 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h. */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <time.h>
18202 main ()
18204 long z2 = _timezone;
18206 return 0;
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211 (eval $ac_compile) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_UNDERSCORE_TIMEZONE 1
18234 _ACEOF
18236 echo "$as_me:$LINENO: result: yes" >&5
18237 echo "${ECHO_T}yes" >&6
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 echo "$as_me:$LINENO: result: no" >&5
18243 echo "${ECHO_T}no" >&6
18245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18251 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18253 if test "${ac_cv_c_const+set}" = set; then
18254 echo $ECHO_N "(cached) $ECHO_C" >&6
18255 else
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h. */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18264 main ()
18266 /* FIXME: Include the comments suggested by Paul. */
18267 #ifndef __cplusplus
18268 /* Ultrix mips cc rejects this. */
18269 typedef int charset[2];
18270 const charset x;
18271 /* SunOS 4.1.1 cc rejects this. */
18272 char const *const *ccp;
18273 char **p;
18274 /* NEC SVR4.0.2 mips cc rejects this. */
18275 struct point {int x, y;};
18276 static struct point const zero = {0,0};
18277 /* AIX XL C 1.02.0.0 rejects this.
18278 It does not let you subtract one const X* pointer from another in
18279 an arm of an if-expression whose if-part is not a constant
18280 expression */
18281 const char *g = "string";
18282 ccp = &g + (g ? g-g : 0);
18283 /* HPUX 7.0 cc rejects these. */
18284 ++ccp;
18285 p = (char**) ccp;
18286 ccp = (char const *const *) p;
18287 { /* SCO 3.2v4 cc rejects this. */
18288 char *t;
18289 char const *s = 0 ? (char *) 0 : (char const *) 0;
18291 *t++ = 0;
18293 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18294 int x[] = {25, 17};
18295 const int *foo = &x[0];
18296 ++foo;
18298 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18299 typedef const int *iptr;
18300 iptr p = 0;
18301 ++p;
18303 { /* AIX XL C 1.02.0.0 rejects this saying
18304 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18305 struct s { int j; const int *ap[3]; };
18306 struct s *b; b->j = 5;
18308 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18309 const int foo = 10;
18311 #endif
18314 return 0;
18316 _ACEOF
18317 rm -f conftest.$ac_objext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18319 (eval $ac_compile) 2>conftest.er1
18320 ac_status=$?
18321 grep -v '^ *+' conftest.er1 >conftest.err
18322 rm -f conftest.er1
18323 cat conftest.err >&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); } &&
18326 { ac_try='test -z "$ac_c_werror_flag"
18327 || test ! -s conftest.err'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18330 ac_status=$?
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; } &&
18333 { ac_try='test -s conftest.$ac_objext'
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_c_const=yes
18340 else
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_c_const=no
18346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18349 echo "${ECHO_T}$ac_cv_c_const" >&6
18350 if test $ac_cv_c_const = no; then
18352 cat >>confdefs.h <<\_ACEOF
18353 #define const
18354 _ACEOF
18358 echo "$as_me:$LINENO: checking for inline" >&5
18359 echo $ECHO_N "checking for inline... $ECHO_C" >&6
18360 if test "${ac_cv_c_inline+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363 ac_cv_c_inline=no
18364 for ac_kw in inline __inline__ __inline; do
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #ifndef __cplusplus
18372 typedef int foo_t;
18373 static $ac_kw foo_t static_foo () {return 0; }
18374 $ac_kw foo_t foo () {return 0; }
18375 #endif
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18380 (eval $ac_compile) 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -z "$ac_c_werror_flag"
18388 || test ! -s conftest.err'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest.$ac_objext'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_cv_c_inline=$ac_kw; break
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18407 done
18410 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18411 echo "${ECHO_T}$ac_cv_c_inline" >&6
18414 case $ac_cv_c_inline in
18415 inline | yes) ;;
18417 case $ac_cv_c_inline in
18418 no) ac_val=;;
18419 *) ac_val=$ac_cv_c_inline;;
18420 esac
18421 cat >>confdefs.h <<_ACEOF
18422 #ifndef __cplusplus
18423 #define inline $ac_val
18424 #endif
18425 _ACEOF
18427 esac
18429 echo "$as_me:$LINENO: checking for __attribute__" >&5
18430 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
18431 if test "${ac_cv_c_attribute+set}" = set; then
18432 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h. */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 void foo(void) __attribute__ ((__noreturn__));
18443 _ACEOF
18444 rm -f conftest.$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446 (eval $ac_compile) 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_c_attribute=yes
18467 else
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_cv_c_attribute=no
18474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18477 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
18478 echo "${ECHO_T}$ac_cv_c_attribute" >&6
18481 case $ac_cv_c_attribute in
18482 yes) ;;
18484 cat >>confdefs.h <<_ACEOF
18485 #define __attribute__(x) /* nothing */
18486 _ACEOF
18488 esac
18492 ac_ext=c
18493 ac_cpp='$CPP $CPPFLAGS'
18494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18498 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
18499 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
18501 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18506 ################################################################
18508 ac_cv_func_which_gethostbyname_r=unknown
18511 # ONE ARGUMENT (sanity check)
18514 # This should fail, as there is no variant of gethostbyname_r() that takes
18515 # a single argument. If it actually compiles, then we can assume that
18516 # netdb.h is not declaring the function, and the compiler is thereby
18517 # assuming an implicit prototype. In which case, we're out of luck.
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h. */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 #include <netdb.h>
18527 main ()
18530 char *name = "www.gnu.org";
18531 (void)gethostbyname_r(name) /* ; */
18534 return 0;
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18539 (eval $ac_compile) 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } &&
18546 { ac_try='test -z "$ac_c_werror_flag"
18547 || test ! -s conftest.err'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 ac_cv_func_which_gethostbyname_r=no
18560 else
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18568 # SIX ARGUMENTS
18569 # (e.g. Linux)
18572 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
18574 cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h. */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18580 #include <netdb.h>
18582 main ()
18585 char *name = "www.gnu.org";
18586 struct hostent ret, *retp;
18587 char buf[1024];
18588 int buflen = 1024;
18589 int my_h_errno;
18590 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
18593 return 0;
18595 _ACEOF
18596 rm -f conftest.$ac_objext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_func_which_gethostbyname_r=six
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18629 # FIVE ARGUMENTS
18630 # (e.g. Solaris)
18633 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 #include <netdb.h>
18643 main ()
18646 char *name = "www.gnu.org";
18647 struct hostent ret;
18648 char buf[1024];
18649 int buflen = 1024;
18650 int my_h_errno;
18651 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
18654 return 0;
18656 _ACEOF
18657 rm -f conftest.$ac_objext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18659 (eval $ac_compile) 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -z "$ac_c_werror_flag"
18667 || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_func_which_gethostbyname_r=five
18680 else
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 # THREE ARGUMENTS
18691 # (e.g. AIX, HP-UX, Tru64)
18694 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <netdb.h>
18704 main ()
18707 char *name = "www.gnu.org";
18708 struct hostent ret;
18709 struct hostent_data data;
18710 (void)gethostbyname_r(name, &ret, &data) /* ; */
18713 return 0;
18715 _ACEOF
18716 rm -f conftest.$ac_objext
18717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718 (eval $ac_compile) 2>conftest.er1
18719 ac_status=$?
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -z "$ac_c_werror_flag"
18726 || test ! -s conftest.err'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; } &&
18732 { ac_try='test -s conftest.$ac_objext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_func_which_gethostbyname_r=three
18739 else
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18748 ################################################################
18753 case "$ac_cv_func_which_gethostbyname_r" in
18754 three)
18755 echo "$as_me:$LINENO: result: three" >&5
18756 echo "${ECHO_T}three" >&6
18758 cat >>confdefs.h <<\_ACEOF
18759 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
18760 _ACEOF
18764 five)
18765 echo "$as_me:$LINENO: result: five" >&5
18766 echo "${ECHO_T}five" >&6
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
18770 _ACEOF
18774 six)
18775 echo "$as_me:$LINENO: result: six" >&5
18776 echo "${ECHO_T}six" >&6
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
18780 _ACEOF
18785 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
18786 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
18789 unknown)
18790 echo "$as_me:$LINENO: result: can't tell" >&5
18791 echo "${ECHO_T}can't tell" >&6
18795 { { echo "$as_me:$LINENO: error: internal error" >&5
18796 echo "$as_me: error: internal error" >&2;}
18797 { (exit 1); exit 1; }; }
18799 esac
18801 ac_ext=c
18802 ac_cpp='$CPP $CPPFLAGS'
18803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18811 if test "X$prefix" = "XNONE"; then
18812 acl_final_prefix="$ac_default_prefix"
18813 else
18814 acl_final_prefix="$prefix"
18816 if test "X$exec_prefix" = "XNONE"; then
18817 acl_final_exec_prefix='${prefix}'
18818 else
18819 acl_final_exec_prefix="$exec_prefix"
18821 acl_save_prefix="$prefix"
18822 prefix="$acl_final_prefix"
18823 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18824 prefix="$acl_save_prefix"
18827 # Check whether --with-gnu-ld or --without-gnu-ld was given.
18828 if test "${with_gnu_ld+set}" = set; then
18829 withval="$with_gnu_ld"
18830 test "$withval" = no || with_gnu_ld=yes
18831 else
18832 with_gnu_ld=no
18834 # Prepare PATH_SEPARATOR.
18835 # The user is always right.
18836 if test "${PATH_SEPARATOR+set}" != set; then
18837 echo "#! /bin/sh" >conf$$.sh
18838 echo "exit 0" >>conf$$.sh
18839 chmod +x conf$$.sh
18840 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18841 PATH_SEPARATOR=';'
18842 else
18843 PATH_SEPARATOR=:
18845 rm -f conf$$.sh
18847 ac_prog=ld
18848 if test "$GCC" = yes; then
18849 # Check if gcc -print-prog-name=ld gives a path.
18850 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
18851 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
18852 case $host in
18853 *-*-mingw*)
18854 # gcc leaves a trailing carriage return which upsets mingw
18855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18858 esac
18859 case $ac_prog in
18860 # Accept absolute paths.
18861 [\\/]* | [A-Za-z]:[\\/]*)
18862 re_direlt='/[^/][^/]*/\.\./'
18863 # Canonicalize the path of ld
18864 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18865 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18866 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18867 done
18868 test -z "$LD" && LD="$ac_prog"
18871 # If it fails, then pretend we aren't using GCC.
18872 ac_prog=ld
18875 # If it is relative, then search for the first ld in PATH.
18876 with_gnu_ld=unknown
18878 esac
18879 elif test "$with_gnu_ld" = yes; then
18880 echo "$as_me:$LINENO: checking for GNU ld" >&5
18881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18882 else
18883 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18886 if test "${acl_cv_path_LD+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 else
18889 if test -z "$LD"; then
18890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18891 for ac_dir in $PATH; do
18892 test -z "$ac_dir" && ac_dir=.
18893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18894 acl_cv_path_LD="$ac_dir/$ac_prog"
18895 # Check to see if the program is GNU ld. I'd rather use --version,
18896 # but apparently some GNU ld's only accept -v.
18897 # Break only if it was the GNU/non-GNU ld that we prefer.
18898 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
18899 test "$with_gnu_ld" != no && break
18900 else
18901 test "$with_gnu_ld" != yes && break
18904 done
18905 IFS="$ac_save_ifs"
18906 else
18907 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18911 LD="$acl_cv_path_LD"
18912 if test -n "$LD"; then
18913 echo "$as_me:$LINENO: result: $LD" >&5
18914 echo "${ECHO_T}$LD" >&6
18915 else
18916 echo "$as_me:$LINENO: result: no" >&5
18917 echo "${ECHO_T}no" >&6
18919 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18920 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18921 { (exit 1); exit 1; }; }
18922 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18923 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18924 if test "${acl_cv_prog_gnu_ld+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18928 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
18929 acl_cv_prog_gnu_ld=yes
18930 else
18931 acl_cv_prog_gnu_ld=no
18934 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
18935 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
18936 with_gnu_ld=$acl_cv_prog_gnu_ld
18940 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
18941 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
18942 if test "${acl_cv_rpath+set}" = set; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18946 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18947 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18948 . ./conftest.sh
18949 rm -f ./conftest.sh
18950 acl_cv_rpath=done
18953 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
18954 echo "${ECHO_T}$acl_cv_rpath" >&6
18955 wl="$acl_cv_wl"
18956 libext="$acl_cv_libext"
18957 shlibext="$acl_cv_shlibext"
18958 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18959 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18960 hardcode_direct="$acl_cv_hardcode_direct"
18961 hardcode_minus_L="$acl_cv_hardcode_minus_L"
18962 # Check whether --enable-rpath or --disable-rpath was given.
18963 if test "${enable_rpath+set}" = set; then
18964 enableval="$enable_rpath"
18966 else
18967 enable_rpath=yes
18976 use_additional=yes
18978 acl_save_prefix="$prefix"
18979 prefix="$acl_final_prefix"
18980 acl_save_exec_prefix="$exec_prefix"
18981 exec_prefix="$acl_final_exec_prefix"
18983 eval additional_includedir=\"$includedir\"
18984 eval additional_libdir=\"$libdir\"
18986 exec_prefix="$acl_save_exec_prefix"
18987 prefix="$acl_save_prefix"
18990 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
18991 if test "${with_libiconv_prefix+set}" = set; then
18992 withval="$with_libiconv_prefix"
18994 if test "X$withval" = "Xno"; then
18995 use_additional=no
18996 else
18997 if test "X$withval" = "X"; then
18999 acl_save_prefix="$prefix"
19000 prefix="$acl_final_prefix"
19001 acl_save_exec_prefix="$exec_prefix"
19002 exec_prefix="$acl_final_exec_prefix"
19004 eval additional_includedir=\"$includedir\"
19005 eval additional_libdir=\"$libdir\"
19007 exec_prefix="$acl_save_exec_prefix"
19008 prefix="$acl_save_prefix"
19010 else
19011 additional_includedir="$withval/include"
19012 additional_libdir="$withval/lib"
19017 LIBICONV=
19018 LTLIBICONV=
19019 INCICONV=
19020 rpathdirs=
19021 ltrpathdirs=
19022 names_already_handled=
19023 names_next_round='iconv '
19024 while test -n "$names_next_round"; do
19025 names_this_round="$names_next_round"
19026 names_next_round=
19027 for name in $names_this_round; do
19028 already_handled=
19029 for n in $names_already_handled; do
19030 if test "$n" = "$name"; then
19031 already_handled=yes
19032 break
19034 done
19035 if test -z "$already_handled"; then
19036 names_already_handled="$names_already_handled $name"
19037 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19038 eval value=\"\$HAVE_LIB$uppername\"
19039 if test -n "$value"; then
19040 if test "$value" = yes; then
19041 eval value=\"\$LIB$uppername\"
19042 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19043 eval value=\"\$LTLIB$uppername\"
19044 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19045 else
19048 else
19049 found_dir=
19050 found_la=
19051 found_so=
19052 found_a=
19053 if test $use_additional = yes; then
19054 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19055 found_dir="$additional_libdir"
19056 found_so="$additional_libdir/lib$name.$shlibext"
19057 if test -f "$additional_libdir/lib$name.la"; then
19058 found_la="$additional_libdir/lib$name.la"
19060 else
19061 if test -f "$additional_libdir/lib$name.$libext"; then
19062 found_dir="$additional_libdir"
19063 found_a="$additional_libdir/lib$name.$libext"
19064 if test -f "$additional_libdir/lib$name.la"; then
19065 found_la="$additional_libdir/lib$name.la"
19070 if test "X$found_dir" = "X"; then
19071 for x in $LDFLAGS $LTLIBICONV; do
19073 acl_save_prefix="$prefix"
19074 prefix="$acl_final_prefix"
19075 acl_save_exec_prefix="$exec_prefix"
19076 exec_prefix="$acl_final_exec_prefix"
19077 eval x=\"$x\"
19078 exec_prefix="$acl_save_exec_prefix"
19079 prefix="$acl_save_prefix"
19081 case "$x" in
19082 -L*)
19083 dir=`echo "X$x" | sed -e 's/^X-L//'`
19084 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19085 found_dir="$dir"
19086 found_so="$dir/lib$name.$shlibext"
19087 if test -f "$dir/lib$name.la"; then
19088 found_la="$dir/lib$name.la"
19090 else
19091 if test -f "$dir/lib$name.$libext"; then
19092 found_dir="$dir"
19093 found_a="$dir/lib$name.$libext"
19094 if test -f "$dir/lib$name.la"; then
19095 found_la="$dir/lib$name.la"
19100 esac
19101 if test "X$found_dir" != "X"; then
19102 break
19104 done
19106 if test "X$found_dir" != "X"; then
19107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19108 if test "X$found_so" != "X"; then
19109 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19110 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19111 else
19112 haveit=
19113 for x in $ltrpathdirs; do
19114 if test "X$x" = "X$found_dir"; then
19115 haveit=yes
19116 break
19118 done
19119 if test -z "$haveit"; then
19120 ltrpathdirs="$ltrpathdirs $found_dir"
19122 if test "$hardcode_direct" = yes; then
19123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19124 else
19125 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19126 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19127 haveit=
19128 for x in $rpathdirs; do
19129 if test "X$x" = "X$found_dir"; then
19130 haveit=yes
19131 break
19133 done
19134 if test -z "$haveit"; then
19135 rpathdirs="$rpathdirs $found_dir"
19137 else
19138 haveit=
19139 for x in $LDFLAGS $LIBICONV; do
19141 acl_save_prefix="$prefix"
19142 prefix="$acl_final_prefix"
19143 acl_save_exec_prefix="$exec_prefix"
19144 exec_prefix="$acl_final_exec_prefix"
19145 eval x=\"$x\"
19146 exec_prefix="$acl_save_exec_prefix"
19147 prefix="$acl_save_prefix"
19149 if test "X$x" = "X-L$found_dir"; then
19150 haveit=yes
19151 break
19153 done
19154 if test -z "$haveit"; then
19155 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19157 if test "$hardcode_minus_L" != no; then
19158 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19159 else
19160 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19165 else
19166 if test "X$found_a" != "X"; then
19167 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19168 else
19169 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19172 additional_includedir=
19173 case "$found_dir" in
19174 */lib | */lib/)
19175 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19176 additional_includedir="$basedir/include"
19178 esac
19179 if test "X$additional_includedir" != "X"; then
19180 if test "X$additional_includedir" != "X/usr/include"; then
19181 haveit=
19182 if test "X$additional_includedir" = "X/usr/local/include"; then
19183 if test -n "$GCC"; then
19184 case $host_os in
19185 linux*) haveit=yes;;
19186 esac
19189 if test -z "$haveit"; then
19190 for x in $CPPFLAGS $INCICONV; do
19192 acl_save_prefix="$prefix"
19193 prefix="$acl_final_prefix"
19194 acl_save_exec_prefix="$exec_prefix"
19195 exec_prefix="$acl_final_exec_prefix"
19196 eval x=\"$x\"
19197 exec_prefix="$acl_save_exec_prefix"
19198 prefix="$acl_save_prefix"
19200 if test "X$x" = "X-I$additional_includedir"; then
19201 haveit=yes
19202 break
19204 done
19205 if test -z "$haveit"; then
19206 if test -d "$additional_includedir"; then
19207 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19213 if test -n "$found_la"; then
19214 save_libdir="$libdir"
19215 case "$found_la" in
19216 */* | *\\*) . "$found_la" ;;
19217 *) . "./$found_la" ;;
19218 esac
19219 libdir="$save_libdir"
19220 for dep in $dependency_libs; do
19221 case "$dep" in
19222 -L*)
19223 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19224 if test "X$additional_libdir" != "X/usr/lib"; then
19225 haveit=
19226 if test "X$additional_libdir" = "X/usr/local/lib"; then
19227 if test -n "$GCC"; then
19228 case $host_os in
19229 linux*) haveit=yes;;
19230 esac
19233 if test -z "$haveit"; then
19234 haveit=
19235 for x in $LDFLAGS $LIBICONV; do
19237 acl_save_prefix="$prefix"
19238 prefix="$acl_final_prefix"
19239 acl_save_exec_prefix="$exec_prefix"
19240 exec_prefix="$acl_final_exec_prefix"
19241 eval x=\"$x\"
19242 exec_prefix="$acl_save_exec_prefix"
19243 prefix="$acl_save_prefix"
19245 if test "X$x" = "X-L$additional_libdir"; then
19246 haveit=yes
19247 break
19249 done
19250 if test -z "$haveit"; then
19251 if test -d "$additional_libdir"; then
19252 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19255 haveit=
19256 for x in $LDFLAGS $LTLIBICONV; do
19258 acl_save_prefix="$prefix"
19259 prefix="$acl_final_prefix"
19260 acl_save_exec_prefix="$exec_prefix"
19261 exec_prefix="$acl_final_exec_prefix"
19262 eval x=\"$x\"
19263 exec_prefix="$acl_save_exec_prefix"
19264 prefix="$acl_save_prefix"
19266 if test "X$x" = "X-L$additional_libdir"; then
19267 haveit=yes
19268 break
19270 done
19271 if test -z "$haveit"; then
19272 if test -d "$additional_libdir"; then
19273 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19279 -R*)
19280 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19281 if test "$enable_rpath" != no; then
19282 haveit=
19283 for x in $rpathdirs; do
19284 if test "X$x" = "X$dir"; then
19285 haveit=yes
19286 break
19288 done
19289 if test -z "$haveit"; then
19290 rpathdirs="$rpathdirs $dir"
19292 haveit=
19293 for x in $ltrpathdirs; do
19294 if test "X$x" = "X$dir"; then
19295 haveit=yes
19296 break
19298 done
19299 if test -z "$haveit"; then
19300 ltrpathdirs="$ltrpathdirs $dir"
19304 -l*)
19305 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19307 *.la)
19308 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19311 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19312 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19314 esac
19315 done
19317 else
19318 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19319 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19323 done
19324 done
19325 if test "X$rpathdirs" != "X"; then
19326 if test -n "$hardcode_libdir_separator"; then
19327 alldirs=
19328 for found_dir in $rpathdirs; do
19329 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19330 done
19331 acl_save_libdir="$libdir"
19332 libdir="$alldirs"
19333 eval flag=\"$hardcode_libdir_flag_spec\"
19334 libdir="$acl_save_libdir"
19335 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19336 else
19337 for found_dir in $rpathdirs; do
19338 acl_save_libdir="$libdir"
19339 libdir="$found_dir"
19340 eval flag=\"$hardcode_libdir_flag_spec\"
19341 libdir="$acl_save_libdir"
19342 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19343 done
19346 if test "X$ltrpathdirs" != "X"; then
19347 for found_dir in $ltrpathdirs; do
19348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19349 done
19358 am_save_CPPFLAGS="$CPPFLAGS"
19360 for element in $INCICONV; do
19361 haveit=
19362 for x in $CPPFLAGS; do
19364 acl_save_prefix="$prefix"
19365 prefix="$acl_final_prefix"
19366 acl_save_exec_prefix="$exec_prefix"
19367 exec_prefix="$acl_final_exec_prefix"
19368 eval x=\"$x\"
19369 exec_prefix="$acl_save_exec_prefix"
19370 prefix="$acl_save_prefix"
19372 if test "X$x" = "X$element"; then
19373 haveit=yes
19374 break
19376 done
19377 if test -z "$haveit"; then
19378 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19380 done
19383 echo "$as_me:$LINENO: checking for iconv" >&5
19384 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
19385 if test "${am_cv_func_iconv+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 else
19389 am_cv_func_iconv="no, consider installing GNU libiconv"
19390 am_cv_lib_iconv=no
19391 if test x$gcc_no_link = xyes; then
19392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19394 { (exit 1); exit 1; }; }
19396 cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h. */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19402 #include <stdlib.h>
19403 #include <iconv.h>
19405 main ()
19407 iconv_t cd = iconv_open("","");
19408 iconv(cd,NULL,NULL,NULL,NULL);
19409 iconv_close(cd);
19411 return 0;
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416 (eval $ac_link) 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag"
19424 || test ! -s conftest.err'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 am_cv_func_iconv=yes
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19442 rm -f conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19444 if test "$am_cv_func_iconv" != yes; then
19445 am_save_LIBS="$LIBS"
19446 LIBS="$LIBS $LIBICONV"
19447 if test x$gcc_no_link = xyes; then
19448 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19450 { (exit 1); exit 1; }; }
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h. */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458 #include <stdlib.h>
19459 #include <iconv.h>
19461 main ()
19463 iconv_t cd = iconv_open("","");
19464 iconv(cd,NULL,NULL,NULL,NULL);
19465 iconv_close(cd);
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 am_cv_lib_iconv=yes
19493 am_cv_func_iconv=yes
19494 else
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19499 rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501 LIBS="$am_save_LIBS"
19505 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
19506 echo "${ECHO_T}$am_cv_func_iconv" >&6
19507 if test "$am_cv_func_iconv" = yes; then
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_ICONV 1
19511 _ACEOF
19514 if test "$am_cv_lib_iconv" = yes; then
19515 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
19516 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
19517 echo "$as_me:$LINENO: result: $LIBICONV" >&5
19518 echo "${ECHO_T}$LIBICONV" >&6
19519 else
19520 CPPFLAGS="$am_save_CPPFLAGS"
19521 LIBICONV=
19522 LTLIBICONV=
19527 if test "$am_cv_func_iconv" = yes; then
19528 echo "$as_me:$LINENO: checking for iconv declaration" >&5
19529 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
19530 if test "${am_cv_proto_iconv+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 #include <stdlib.h>
19542 #include <iconv.h>
19543 extern
19544 #ifdef __cplusplus
19546 #endif
19547 #if defined(__STDC__) || defined(__cplusplus)
19548 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19549 #else
19550 size_t iconv();
19551 #endif
19554 main ()
19558 return 0;
19560 _ACEOF
19561 rm -f conftest.$ac_objext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19563 (eval $ac_compile) 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag"
19571 || test ! -s conftest.err'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 am_cv_proto_iconv_arg1=""
19584 else
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 am_cv_proto_iconv_arg1="const"
19590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591 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);"
19594 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19595 echo "$as_me:$LINENO: result: ${ac_t:-
19596 }$am_cv_proto_iconv" >&5
19597 echo "${ECHO_T}${ac_t:-
19598 }$am_cv_proto_iconv" >&6
19600 cat >>confdefs.h <<_ACEOF
19601 #define ICONV_CONST $am_cv_proto_iconv_arg1
19602 _ACEOF
19607 if test "x${GCC}" = xyes; then
19609 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
19612 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
19615 ERROR_CFLAGS=
19616 if test "x${ENABLE_WERROR}" = xyes; then
19617 ERROR_CFLAGS='-Werror'
19622 if test "x${COMPILE_XMLJ}" = xyes; then
19624 succeeded=no
19626 if test -z "$PKG_CONFIG"; then
19627 # Extract the first word of "pkg-config", so it can be a program name with args.
19628 set dummy pkg-config; ac_word=$2
19629 echo "$as_me:$LINENO: checking for $ac_word" >&5
19630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19631 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634 case $PKG_CONFIG in
19635 [\\/]* | ?:[\\/]*)
19636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19640 for as_dir in $PATH
19642 IFS=$as_save_IFS
19643 test -z "$as_dir" && as_dir=.
19644 for ac_exec_ext in '' $ac_executable_extensions; do
19645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19648 break 2
19650 done
19651 done
19653 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19655 esac
19657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19659 if test -n "$PKG_CONFIG"; then
19660 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19661 echo "${ECHO_T}$PKG_CONFIG" >&6
19662 else
19663 echo "$as_me:$LINENO: result: no" >&5
19664 echo "${ECHO_T}no" >&6
19669 if test "$PKG_CONFIG" = "no" ; then
19670 echo "*** The pkg-config script could not be found. Make sure it is"
19671 echo "*** in your path, or set the PKG_CONFIG environment variable"
19672 echo "*** to the full path to pkg-config."
19673 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19674 else
19675 PKG_CONFIG_MIN_VERSION=0.9.0
19676 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19677 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
19678 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
19680 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
19681 echo "$as_me:$LINENO: result: yes" >&5
19682 echo "${ECHO_T}yes" >&6
19683 succeeded=yes
19685 echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
19686 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
19687 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
19688 echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
19689 echo "${ECHO_T}$XML_CFLAGS" >&6
19691 echo "$as_me:$LINENO: checking XML_LIBS" >&5
19692 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
19693 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
19694 echo "$as_me:$LINENO: result: $XML_LIBS" >&5
19695 echo "${ECHO_T}$XML_LIBS" >&6
19696 else
19697 XML_CFLAGS=""
19698 XML_LIBS=""
19699 ## If we have a custom action on failure, don't print errors, but
19700 ## do set a variable so people can do so.
19701 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
19702 echo $XML_PKG_ERRORS
19707 else
19708 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19709 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19713 if test $succeeded = yes; then
19715 else
19716 { { 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
19717 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;}
19718 { (exit 1); exit 1; }; }
19722 succeeded=no
19724 if test -z "$PKG_CONFIG"; then
19725 # Extract the first word of "pkg-config", so it can be a program name with args.
19726 set dummy pkg-config; ac_word=$2
19727 echo "$as_me:$LINENO: checking for $ac_word" >&5
19728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732 case $PKG_CONFIG in
19733 [\\/]* | ?:[\\/]*)
19734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19738 for as_dir in $PATH
19740 IFS=$as_save_IFS
19741 test -z "$as_dir" && as_dir=.
19742 for ac_exec_ext in '' $ac_executable_extensions; do
19743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19744 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19746 break 2
19748 done
19749 done
19751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19753 esac
19755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19757 if test -n "$PKG_CONFIG"; then
19758 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19759 echo "${ECHO_T}$PKG_CONFIG" >&6
19760 else
19761 echo "$as_me:$LINENO: result: no" >&5
19762 echo "${ECHO_T}no" >&6
19767 if test "$PKG_CONFIG" = "no" ; then
19768 echo "*** The pkg-config script could not be found. Make sure it is"
19769 echo "*** in your path, or set the PKG_CONFIG environment variable"
19770 echo "*** to the full path to pkg-config."
19771 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19772 else
19773 PKG_CONFIG_MIN_VERSION=0.9.0
19774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19775 echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
19776 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
19778 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
19779 echo "$as_me:$LINENO: result: yes" >&5
19780 echo "${ECHO_T}yes" >&6
19781 succeeded=yes
19783 echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
19784 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
19785 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
19786 echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
19787 echo "${ECHO_T}$XSLT_CFLAGS" >&6
19789 echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
19790 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
19791 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
19792 echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
19793 echo "${ECHO_T}$XSLT_LIBS" >&6
19794 else
19795 XSLT_CFLAGS=""
19796 XSLT_LIBS=""
19797 ## If we have a custom action on failure, don't print errors, but
19798 ## do set a variable so people can do so.
19799 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
19800 echo $XSLT_PKG_ERRORS
19805 else
19806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19811 if test $succeeded = yes; then
19813 else
19814 { { 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
19815 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;}
19816 { (exit 1); exit 1; }; }
19825 if test "x${COMPILE_GTK_PEER}" = xyes; then
19826 echo "$as_me:$LINENO: checking for X" >&5
19827 echo $ECHO_N "checking for X... $ECHO_C" >&6
19830 # Check whether --with-x or --without-x was given.
19831 if test "${with_x+set}" = set; then
19832 withval="$with_x"
19835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19836 if test "x$with_x" = xno; then
19837 # The user explicitly disabled X.
19838 have_x=disabled
19839 else
19840 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19841 # Both variables are already set.
19842 have_x=yes
19843 else
19844 if test "${ac_cv_have_x+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847 # One or both of the vars are not set, and there is no cached value.
19848 ac_x_includes=no ac_x_libraries=no
19849 rm -fr conftest.dir
19850 if mkdir conftest.dir; then
19851 cd conftest.dir
19852 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19853 cat >Imakefile <<'_ACEOF'
19854 acfindx:
19855 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19856 _ACEOF
19857 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19859 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19861 for ac_extension in a so sl; do
19862 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19863 test -f $ac_im_libdir/libX11.$ac_extension; then
19864 ac_im_usrlibdir=$ac_im_libdir; break
19866 done
19867 # Screen out bogus values from the imake configuration. They are
19868 # bogus both because they are the default anyway, and because
19869 # using them would break gcc on systems where it needs fixed includes.
19870 case $ac_im_incroot in
19871 /usr/include) ;;
19872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19873 esac
19874 case $ac_im_usrlibdir in
19875 /usr/lib | /lib) ;;
19876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19877 esac
19879 cd ..
19880 rm -fr conftest.dir
19883 # Standard set of common directories for X headers.
19884 # Check X11 before X11Rn because it is often a symlink to the current release.
19885 ac_x_header_dirs='
19886 /usr/X11/include
19887 /usr/X11R6/include
19888 /usr/X11R5/include
19889 /usr/X11R4/include
19891 /usr/include/X11
19892 /usr/include/X11R6
19893 /usr/include/X11R5
19894 /usr/include/X11R4
19896 /usr/local/X11/include
19897 /usr/local/X11R6/include
19898 /usr/local/X11R5/include
19899 /usr/local/X11R4/include
19901 /usr/local/include/X11
19902 /usr/local/include/X11R6
19903 /usr/local/include/X11R5
19904 /usr/local/include/X11R4
19906 /usr/X386/include
19907 /usr/x386/include
19908 /usr/XFree86/include/X11
19910 /usr/include
19911 /usr/local/include
19912 /usr/unsupported/include
19913 /usr/athena/include
19914 /usr/local/x11r5/include
19915 /usr/lpp/Xamples/include
19917 /usr/openwin/include
19918 /usr/openwin/share/include'
19920 if test "$ac_x_includes" = no; then
19921 # Guess where to find include files, by looking for Intrinsic.h.
19922 # First, try using that file with no special directory specified.
19923 cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h. */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 #include <X11/Intrinsic.h>
19930 _ACEOF
19931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } >/dev/null; then
19939 if test -s conftest.err; then
19940 ac_cpp_err=$ac_c_preproc_warn_flag
19941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19942 else
19943 ac_cpp_err=
19945 else
19946 ac_cpp_err=yes
19948 if test -z "$ac_cpp_err"; then
19949 # We can compile using X headers with no special include directory.
19950 ac_x_includes=
19951 else
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 for ac_dir in $ac_x_header_dirs; do
19956 if test -r "$ac_dir/X11/Intrinsic.h"; then
19957 ac_x_includes=$ac_dir
19958 break
19960 done
19962 rm -f conftest.err conftest.$ac_ext
19963 fi # $ac_x_includes = no
19965 if test "$ac_x_libraries" = no; then
19966 # Check for the libraries.
19967 # See if we find them without any special options.
19968 # Don't add to $LIBS permanently.
19969 ac_save_LIBS=$LIBS
19970 LIBS="-lXt $LIBS"
19971 if test x$gcc_no_link = xyes; then
19972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19974 { (exit 1); exit 1; }; }
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 #include <X11/Intrinsic.h>
19984 main ()
19986 XtMalloc (0)
19988 return 0;
19990 _ACEOF
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993 (eval $ac_link) 2>conftest.er1
19994 ac_status=$?
19995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest$ac_exeext'
20008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 LIBS=$ac_save_LIBS
20014 # We can link X programs with no special library path.
20015 ac_x_libraries=
20016 else
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20020 LIBS=$ac_save_LIBS
20021 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20023 # Don't even attempt the hair of trying to link an X program!
20024 for ac_extension in a so sl; do
20025 if test -r $ac_dir/libXt.$ac_extension; then
20026 ac_x_libraries=$ac_dir
20027 break 2
20029 done
20030 done
20032 rm -f conftest.err conftest.$ac_objext \
20033 conftest$ac_exeext conftest.$ac_ext
20034 fi # $ac_x_libraries = no
20036 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20037 # Didn't find X anywhere. Cache the known absence of X.
20038 ac_cv_have_x="have_x=no"
20039 else
20040 # Record where we found X for the cache.
20041 ac_cv_have_x="have_x=yes \
20042 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20047 eval "$ac_cv_have_x"
20048 fi # $with_x != no
20050 if test "$have_x" != yes; then
20051 echo "$as_me:$LINENO: result: $have_x" >&5
20052 echo "${ECHO_T}$have_x" >&6
20053 no_x=yes
20054 else
20055 # If each of the values was on the command line, it overrides each guess.
20056 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20057 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20058 # Update the cache value to reflect the command line values.
20059 ac_cv_have_x="have_x=yes \
20060 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20061 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20062 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20065 if test "$no_x" = yes; then
20066 # Not all programs may use this symbol, but it does not hurt to define it.
20068 cat >>confdefs.h <<\_ACEOF
20069 #define X_DISPLAY_MISSING 1
20070 _ACEOF
20072 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20073 else
20074 if test -n "$x_includes"; then
20075 X_CFLAGS="$X_CFLAGS -I$x_includes"
20078 # It would also be nice to do this for all -L options, not just this one.
20079 if test -n "$x_libraries"; then
20080 X_LIBS="$X_LIBS -L$x_libraries"
20081 # For Solaris; some versions of Sun CC require a space after -R and
20082 # others require no space. Words are not sufficient . . . .
20083 case `(uname -sr) 2>/dev/null` in
20084 "SunOS 5"*)
20085 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20086 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20087 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20088 if test x$gcc_no_link = xyes; then
20089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20091 { (exit 1); exit 1; }; }
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20101 main ()
20105 return 0;
20107 _ACEOF
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20110 (eval $ac_link) 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
20117 { ac_try='test -z "$ac_c_werror_flag"
20118 || test ! -s conftest.err'
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest$ac_exeext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_R_nospace=yes
20131 else
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ac_R_nospace=no
20137 rm -f conftest.err conftest.$ac_objext \
20138 conftest$ac_exeext conftest.$ac_ext
20139 if test $ac_R_nospace = yes; then
20140 echo "$as_me:$LINENO: result: no" >&5
20141 echo "${ECHO_T}no" >&6
20142 X_LIBS="$X_LIBS -R$x_libraries"
20143 else
20144 LIBS="$ac_xsave_LIBS -R $x_libraries"
20145 if test x$gcc_no_link = xyes; then
20146 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20148 { (exit 1); exit 1; }; }
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20158 main ()
20162 return 0;
20164 _ACEOF
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20167 (eval $ac_link) 2>conftest.er1
20168 ac_status=$?
20169 grep -v '^ *+' conftest.er1 >conftest.err
20170 rm -f conftest.er1
20171 cat conftest.err >&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } &&
20174 { ac_try='test -z "$ac_c_werror_flag"
20175 || test ! -s conftest.err'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; } &&
20181 { ac_try='test -s conftest$ac_exeext'
20182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183 (eval $ac_try) 2>&5
20184 ac_status=$?
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); }; }; then
20187 ac_R_space=yes
20188 else
20189 echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20192 ac_R_space=no
20194 rm -f conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20196 if test $ac_R_space = yes; then
20197 echo "$as_me:$LINENO: result: yes" >&5
20198 echo "${ECHO_T}yes" >&6
20199 X_LIBS="$X_LIBS -R $x_libraries"
20200 else
20201 echo "$as_me:$LINENO: result: neither works" >&5
20202 echo "${ECHO_T}neither works" >&6
20205 LIBS=$ac_xsave_LIBS
20206 esac
20209 # Check for system-dependent libraries X programs must link with.
20210 # Do this before checking for the system-independent R6 libraries
20211 # (-lICE), since we may need -lsocket or whatever for X linking.
20213 if test "$ISC" = yes; then
20214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20215 else
20216 # Martyn Johnson says this is needed for Ultrix, if the X
20217 # libraries were built with DECnet support. And Karl Berry says
20218 # the Alpha needs dnet_stub (dnet does not exist).
20219 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20220 if test x$gcc_no_link = xyes; then
20221 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20222 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20223 { (exit 1); exit 1; }; }
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 /* Override any gcc2 internal prototype to avoid an error. */
20233 #ifdef __cplusplus
20234 extern "C"
20235 #endif
20236 /* We use char because int might match the return type of a gcc2
20237 builtin and then its argument prototype would still apply. */
20238 char XOpenDisplay ();
20240 main ()
20242 XOpenDisplay ();
20244 return 0;
20246 _ACEOF
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20249 (eval $ac_link) 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -z "$ac_c_werror_flag"
20257 || test ! -s conftest.err'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest$ac_exeext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20270 else
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20275 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20276 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-ldnet $LIBS"
20281 if test x$gcc_no_link = xyes; then
20282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20284 { (exit 1); exit 1; }; }
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h. */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 /* Override any gcc2 internal prototype to avoid an error. */
20294 #ifdef __cplusplus
20295 extern "C"
20296 #endif
20297 /* We use char because int might match the return type of a gcc2
20298 builtin and then its argument prototype would still apply. */
20299 char dnet_ntoa ();
20301 main ()
20303 dnet_ntoa ();
20305 return 0;
20307 _ACEOF
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20310 (eval $ac_link) 2>conftest.er1
20311 ac_status=$?
20312 grep -v '^ *+' conftest.er1 >conftest.err
20313 rm -f conftest.er1
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } &&
20317 { ac_try='test -z "$ac_c_werror_flag"
20318 || test ! -s conftest.err'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; } &&
20324 { ac_try='test -s conftest$ac_exeext'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
20330 ac_cv_lib_dnet_dnet_ntoa=yes
20331 else
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_cv_lib_dnet_dnet_ntoa=no
20337 rm -f conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20342 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20343 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20344 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20347 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20348 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20349 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20350 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353 ac_check_lib_save_LIBS=$LIBS
20354 LIBS="-ldnet_stub $LIBS"
20355 if test x$gcc_no_link = xyes; then
20356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20358 { (exit 1); exit 1; }; }
20360 cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h. */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20367 /* Override any gcc2 internal prototype to avoid an error. */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 /* We use char because int might match the return type of a gcc2
20372 builtin and then its argument prototype would still apply. */
20373 char dnet_ntoa ();
20375 main ()
20377 dnet_ntoa ();
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 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20405 else
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_cv_lib_dnet_stub_dnet_ntoa=no
20411 rm -f conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20415 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20416 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20417 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20418 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20423 rm -f conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20425 LIBS="$ac_xsave_LIBS"
20427 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20428 # to get the SysV transport functions.
20429 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20430 # needs -lnsl.
20431 # The nsl library prevents programs from opening the X display
20432 # on Irix 5.2, according to T.E. Dickey.
20433 # The functions gethostbyname, getservbyname, and inet_addr are
20434 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20435 echo "$as_me:$LINENO: checking for gethostbyname" >&5
20436 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20437 if test "${ac_cv_func_gethostbyname+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440 if test x$gcc_no_link = xyes; then
20441 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20442 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20443 { (exit 1); exit 1; }; }
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453 #define gethostbyname innocuous_gethostbyname
20455 /* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char gethostbyname (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20460 #ifdef __STDC__
20461 # include <limits.h>
20462 #else
20463 # include <assert.h>
20464 #endif
20466 #undef gethostbyname
20468 /* Override any gcc2 internal prototype to avoid an error. */
20469 #ifdef __cplusplus
20470 extern "C"
20472 #endif
20473 /* We use char because int might match the return type of a gcc2
20474 builtin and then its argument prototype would still apply. */
20475 char gethostbyname ();
20476 /* The GNU C library defines this for functions which it implements
20477 to always fail with ENOSYS. Some functions are actually named
20478 something starting with __ and the normal name is an alias. */
20479 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20480 choke me
20481 #else
20482 char (*f) () = gethostbyname;
20483 #endif
20484 #ifdef __cplusplus
20486 #endif
20489 main ()
20491 return f != gethostbyname;
20493 return 0;
20495 _ACEOF
20496 rm -f conftest.$ac_objext conftest$ac_exeext
20497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20498 (eval $ac_link) 2>conftest.er1
20499 ac_status=$?
20500 grep -v '^ *+' conftest.er1 >conftest.err
20501 rm -f conftest.er1
20502 cat conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -z "$ac_c_werror_flag"
20506 || test ! -s conftest.err'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest$ac_exeext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_func_gethostbyname=yes
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ac_cv_func_gethostbyname=no
20525 rm -f conftest.err conftest.$ac_objext \
20526 conftest$ac_exeext conftest.$ac_ext
20528 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20529 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20531 if test $ac_cv_func_gethostbyname = no; then
20532 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20533 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20534 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537 ac_check_lib_save_LIBS=$LIBS
20538 LIBS="-lnsl $LIBS"
20539 if test x$gcc_no_link = xyes; then
20540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20541 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20542 { (exit 1); exit 1; }; }
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h. */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20551 /* Override any gcc2 internal prototype to avoid an error. */
20552 #ifdef __cplusplus
20553 extern "C"
20554 #endif
20555 /* We use char because int might match the return type of a gcc2
20556 builtin and then its argument prototype would still apply. */
20557 char gethostbyname ();
20559 main ()
20561 gethostbyname ();
20563 return 0;
20565 _ACEOF
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568 (eval $ac_link) 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_lib_nsl_gethostbyname=yes
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_lib_nsl_gethostbyname=no
20595 rm -f conftest.err conftest.$ac_objext \
20596 conftest$ac_exeext conftest.$ac_ext
20597 LIBS=$ac_check_lib_save_LIBS
20599 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20600 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20601 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20605 if test $ac_cv_lib_nsl_gethostbyname = no; then
20606 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20607 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20608 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611 ac_check_lib_save_LIBS=$LIBS
20612 LIBS="-lbsd $LIBS"
20613 if test x$gcc_no_link = xyes; then
20614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20616 { (exit 1); exit 1; }; }
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 /* Override any gcc2 internal prototype to avoid an error. */
20626 #ifdef __cplusplus
20627 extern "C"
20628 #endif
20629 /* We use char because int might match the return type of a gcc2
20630 builtin and then its argument prototype would still apply. */
20631 char gethostbyname ();
20633 main ()
20635 gethostbyname ();
20637 return 0;
20639 _ACEOF
20640 rm -f conftest.$ac_objext conftest$ac_exeext
20641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20642 (eval $ac_link) 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } &&
20649 { ac_try='test -z "$ac_c_werror_flag"
20650 || test ! -s conftest.err'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; } &&
20656 { ac_try='test -s conftest$ac_exeext'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; }; then
20662 ac_cv_lib_bsd_gethostbyname=yes
20663 else
20664 echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ac_cv_lib_bsd_gethostbyname=no
20669 rm -f conftest.err conftest.$ac_objext \
20670 conftest$ac_exeext conftest.$ac_ext
20671 LIBS=$ac_check_lib_save_LIBS
20673 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20674 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20675 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20682 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20683 # socket/setsockopt and other routines are undefined under SCO ODT
20684 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20685 # on later versions), says Simon Leinen: it contains gethostby*
20686 # variants that don't use the name server (or something). -lsocket
20687 # must be given before -lnsl if both are needed. We assume that
20688 # if connect needs -lnsl, so does gethostbyname.
20689 echo "$as_me:$LINENO: checking for connect" >&5
20690 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20691 if test "${ac_cv_func_connect+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 if test x$gcc_no_link = xyes; then
20695 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20697 { (exit 1); exit 1; }; }
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20707 #define connect innocuous_connect
20709 /* System header to define __stub macros and hopefully few prototypes,
20710 which can conflict with char connect (); below.
20711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20712 <limits.h> exists even on freestanding compilers. */
20714 #ifdef __STDC__
20715 # include <limits.h>
20716 #else
20717 # include <assert.h>
20718 #endif
20720 #undef connect
20722 /* Override any gcc2 internal prototype to avoid an error. */
20723 #ifdef __cplusplus
20724 extern "C"
20726 #endif
20727 /* We use char because int might match the return type of a gcc2
20728 builtin and then its argument prototype would still apply. */
20729 char connect ();
20730 /* The GNU C library defines this for functions which it implements
20731 to always fail with ENOSYS. Some functions are actually named
20732 something starting with __ and the normal name is an alias. */
20733 #if defined (__stub_connect) || defined (__stub___connect)
20734 choke me
20735 #else
20736 char (*f) () = connect;
20737 #endif
20738 #ifdef __cplusplus
20740 #endif
20743 main ()
20745 return f != connect;
20747 return 0;
20749 _ACEOF
20750 rm -f conftest.$ac_objext conftest$ac_exeext
20751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20752 (eval $ac_link) 2>conftest.er1
20753 ac_status=$?
20754 grep -v '^ *+' conftest.er1 >conftest.err
20755 rm -f conftest.er1
20756 cat conftest.err >&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } &&
20759 { ac_try='test -z "$ac_c_werror_flag"
20760 || test ! -s conftest.err'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; } &&
20766 { ac_try='test -s conftest$ac_exeext'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20772 ac_cv_func_connect=yes
20773 else
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20777 ac_cv_func_connect=no
20779 rm -f conftest.err conftest.$ac_objext \
20780 conftest$ac_exeext conftest.$ac_ext
20782 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20783 echo "${ECHO_T}$ac_cv_func_connect" >&6
20785 if test $ac_cv_func_connect = no; then
20786 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20787 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20788 if test "${ac_cv_lib_socket_connect+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791 ac_check_lib_save_LIBS=$LIBS
20792 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20793 if test x$gcc_no_link = xyes; then
20794 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20795 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20796 { (exit 1); exit 1; }; }
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20805 /* Override any gcc2 internal prototype to avoid an error. */
20806 #ifdef __cplusplus
20807 extern "C"
20808 #endif
20809 /* We use char because int might match the return type of a gcc2
20810 builtin and then its argument prototype would still apply. */
20811 char connect ();
20813 main ()
20815 connect ();
20817 return 0;
20819 _ACEOF
20820 rm -f conftest.$ac_objext conftest$ac_exeext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822 (eval $ac_link) 2>conftest.er1
20823 ac_status=$?
20824 grep -v '^ *+' conftest.er1 >conftest.err
20825 rm -f conftest.er1
20826 cat conftest.err >&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); } &&
20829 { ac_try='test -z "$ac_c_werror_flag"
20830 || test ! -s conftest.err'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; } &&
20836 { ac_try='test -s conftest$ac_exeext'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_cv_lib_socket_connect=yes
20843 else
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20847 ac_cv_lib_socket_connect=no
20849 rm -f conftest.err conftest.$ac_objext \
20850 conftest$ac_exeext conftest.$ac_ext
20851 LIBS=$ac_check_lib_save_LIBS
20853 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20854 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20855 if test $ac_cv_lib_socket_connect = yes; then
20856 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20861 # Guillermo Gomez says -lposix is necessary on A/UX.
20862 echo "$as_me:$LINENO: checking for remove" >&5
20863 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20864 if test "${ac_cv_func_remove+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 if test x$gcc_no_link = xyes; then
20868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20870 { (exit 1); exit 1; }; }
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20880 #define remove innocuous_remove
20882 /* System header to define __stub macros and hopefully few prototypes,
20883 which can conflict with char remove (); below.
20884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20885 <limits.h> exists even on freestanding compilers. */
20887 #ifdef __STDC__
20888 # include <limits.h>
20889 #else
20890 # include <assert.h>
20891 #endif
20893 #undef remove
20895 /* Override any gcc2 internal prototype to avoid an error. */
20896 #ifdef __cplusplus
20897 extern "C"
20899 #endif
20900 /* We use char because int might match the return type of a gcc2
20901 builtin and then its argument prototype would still apply. */
20902 char remove ();
20903 /* The GNU C library defines this for functions which it implements
20904 to always fail with ENOSYS. Some functions are actually named
20905 something starting with __ and the normal name is an alias. */
20906 #if defined (__stub_remove) || defined (__stub___remove)
20907 choke me
20908 #else
20909 char (*f) () = remove;
20910 #endif
20911 #ifdef __cplusplus
20913 #endif
20916 main ()
20918 return f != remove;
20920 return 0;
20922 _ACEOF
20923 rm -f conftest.$ac_objext conftest$ac_exeext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20925 (eval $ac_link) 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
20932 { ac_try='test -z "$ac_c_werror_flag"
20933 || test ! -s conftest.err'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; } &&
20939 { ac_try='test -s conftest$ac_exeext'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; }; then
20945 ac_cv_func_remove=yes
20946 else
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ac_cv_func_remove=no
20952 rm -f conftest.err conftest.$ac_objext \
20953 conftest$ac_exeext conftest.$ac_ext
20955 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20956 echo "${ECHO_T}$ac_cv_func_remove" >&6
20958 if test $ac_cv_func_remove = no; then
20959 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20960 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20961 if test "${ac_cv_lib_posix_remove+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 else
20964 ac_check_lib_save_LIBS=$LIBS
20965 LIBS="-lposix $LIBS"
20966 if test x$gcc_no_link = xyes; then
20967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20969 { (exit 1); exit 1; }; }
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20978 /* Override any gcc2 internal prototype to avoid an error. */
20979 #ifdef __cplusplus
20980 extern "C"
20981 #endif
20982 /* We use char because int might match the return type of a gcc2
20983 builtin and then its argument prototype would still apply. */
20984 char remove ();
20986 main ()
20988 remove ();
20990 return 0;
20992 _ACEOF
20993 rm -f conftest.$ac_objext conftest$ac_exeext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995 (eval $ac_link) 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -z "$ac_c_werror_flag"
21003 || test ! -s conftest.err'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest$ac_exeext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_lib_posix_remove=yes
21016 else
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_cv_lib_posix_remove=no
21022 rm -f conftest.err conftest.$ac_objext \
21023 conftest$ac_exeext conftest.$ac_ext
21024 LIBS=$ac_check_lib_save_LIBS
21026 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21027 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21028 if test $ac_cv_lib_posix_remove = yes; then
21029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21034 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21035 echo "$as_me:$LINENO: checking for shmat" >&5
21036 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21037 if test "${ac_cv_func_shmat+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040 if test x$gcc_no_link = xyes; then
21041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21043 { (exit 1); exit 1; }; }
21045 cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h. */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21051 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21053 #define shmat innocuous_shmat
21055 /* System header to define __stub macros and hopefully few prototypes,
21056 which can conflict with char shmat (); below.
21057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21058 <limits.h> exists even on freestanding compilers. */
21060 #ifdef __STDC__
21061 # include <limits.h>
21062 #else
21063 # include <assert.h>
21064 #endif
21066 #undef shmat
21068 /* Override any gcc2 internal prototype to avoid an error. */
21069 #ifdef __cplusplus
21070 extern "C"
21072 #endif
21073 /* We use char because int might match the return type of a gcc2
21074 builtin and then its argument prototype would still apply. */
21075 char shmat ();
21076 /* The GNU C library defines this for functions which it implements
21077 to always fail with ENOSYS. Some functions are actually named
21078 something starting with __ and the normal name is an alias. */
21079 #if defined (__stub_shmat) || defined (__stub___shmat)
21080 choke me
21081 #else
21082 char (*f) () = shmat;
21083 #endif
21084 #ifdef __cplusplus
21086 #endif
21089 main ()
21091 return f != shmat;
21093 return 0;
21095 _ACEOF
21096 rm -f conftest.$ac_objext conftest$ac_exeext
21097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21098 (eval $ac_link) 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
21105 { ac_try='test -z "$ac_c_werror_flag"
21106 || test ! -s conftest.err'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; } &&
21112 { ac_try='test -s conftest$ac_exeext'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 ac_cv_func_shmat=yes
21119 else
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21123 ac_cv_func_shmat=no
21125 rm -f conftest.err conftest.$ac_objext \
21126 conftest$ac_exeext conftest.$ac_ext
21128 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21129 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21131 if test $ac_cv_func_shmat = no; then
21132 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21133 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21134 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137 ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-lipc $LIBS"
21139 if test x$gcc_no_link = xyes; then
21140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21142 { (exit 1); exit 1; }; }
21144 cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h. */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21151 /* Override any gcc2 internal prototype to avoid an error. */
21152 #ifdef __cplusplus
21153 extern "C"
21154 #endif
21155 /* We use char because int might match the return type of a gcc2
21156 builtin and then its argument prototype would still apply. */
21157 char shmat ();
21159 main ()
21161 shmat ();
21163 return 0;
21165 _ACEOF
21166 rm -f conftest.$ac_objext conftest$ac_exeext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21168 (eval $ac_link) 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } &&
21175 { ac_try='test -z "$ac_c_werror_flag"
21176 || test ! -s conftest.err'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest$ac_exeext'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; }; then
21188 ac_cv_lib_ipc_shmat=yes
21189 else
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21193 ac_cv_lib_ipc_shmat=no
21195 rm -f conftest.err conftest.$ac_objext \
21196 conftest$ac_exeext conftest.$ac_ext
21197 LIBS=$ac_check_lib_save_LIBS
21199 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21200 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21201 if test $ac_cv_lib_ipc_shmat = yes; then
21202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21208 # Check for libraries that X11R6 Xt/Xaw programs need.
21209 ac_save_LDFLAGS=$LDFLAGS
21210 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21211 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21212 # check for ICE first), but we must link in the order -lSM -lICE or
21213 # we get undefined symbols. So assume we have SM if we have ICE.
21214 # These have to be linked with before -lX11, unlike the other
21215 # libraries we check for below, so use a different variable.
21216 # John Interrante, Karl Berry
21217 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21218 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21219 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 ac_check_lib_save_LIBS=$LIBS
21223 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21224 if test x$gcc_no_link = xyes; then
21225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21227 { (exit 1); exit 1; }; }
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h. */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21236 /* Override any gcc2 internal prototype to avoid an error. */
21237 #ifdef __cplusplus
21238 extern "C"
21239 #endif
21240 /* We use char because int might match the return type of a gcc2
21241 builtin and then its argument prototype would still apply. */
21242 char IceConnectionNumber ();
21244 main ()
21246 IceConnectionNumber ();
21248 return 0;
21250 _ACEOF
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21253 (eval $ac_link) 2>conftest.er1
21254 ac_status=$?
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } &&
21260 { ac_try='test -z "$ac_c_werror_flag"
21261 || test ! -s conftest.err'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; } &&
21267 { ac_try='test -s conftest$ac_exeext'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 ac_cv_lib_ICE_IceConnectionNumber=yes
21274 else
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_cv_lib_ICE_IceConnectionNumber=no
21280 rm -f conftest.err conftest.$ac_objext \
21281 conftest$ac_exeext conftest.$ac_ext
21282 LIBS=$ac_check_lib_save_LIBS
21284 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21285 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21286 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21287 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21290 LDFLAGS=$ac_save_LDFLAGS
21294 if test "$no_x" = yes; then
21295 { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
21296 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
21297 { (exit 1); exit 1; }; }
21299 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
21300 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
21301 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304 ac_check_lib_save_LIBS=$LIBS
21305 LIBS="-lXtst ${X_LIBS} $LIBS"
21306 if test x$gcc_no_link = xyes; then
21307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21309 { (exit 1); exit 1; }; }
21311 cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h. */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21318 /* Override any gcc2 internal prototype to avoid an error. */
21319 #ifdef __cplusplus
21320 extern "C"
21321 #endif
21322 /* We use char because int might match the return type of a gcc2
21323 builtin and then its argument prototype would still apply. */
21324 char XTestQueryExtension ();
21326 main ()
21328 XTestQueryExtension ();
21330 return 0;
21332 _ACEOF
21333 rm -f conftest.$ac_objext conftest$ac_exeext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335 (eval $ac_link) 2>conftest.er1
21336 ac_status=$?
21337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_c_werror_flag"
21343 || test ! -s conftest.err'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest$ac_exeext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_cv_lib_Xtst_XTestQueryExtension=yes
21356 else
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 ac_cv_lib_Xtst_XTestQueryExtension=no
21362 rm -f conftest.err conftest.$ac_objext \
21363 conftest$ac_exeext conftest.$ac_ext
21364 LIBS=$ac_check_lib_save_LIBS
21366 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
21367 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
21368 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
21369 XTEST_LIBS="$XTEST_LIBS -lX11 -lXtst"
21370 else
21371 { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
21372 echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
21373 { (exit 1); exit 1; }; }
21378 succeeded=no
21380 if test -z "$PKG_CONFIG"; then
21381 # Extract the first word of "pkg-config", so it can be a program name with args.
21382 set dummy pkg-config; ac_word=$2
21383 echo "$as_me:$LINENO: checking for $ac_word" >&5
21384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21385 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388 case $PKG_CONFIG in
21389 [\\/]* | ?:[\\/]*)
21390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21394 for as_dir in $PATH
21396 IFS=$as_save_IFS
21397 test -z "$as_dir" && as_dir=.
21398 for ac_exec_ext in '' $ac_executable_extensions; do
21399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21402 break 2
21404 done
21405 done
21407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21409 esac
21411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21413 if test -n "$PKG_CONFIG"; then
21414 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21415 echo "${ECHO_T}$PKG_CONFIG" >&6
21416 else
21417 echo "$as_me:$LINENO: result: no" >&5
21418 echo "${ECHO_T}no" >&6
21423 if test "$PKG_CONFIG" = "no" ; then
21424 echo "*** The pkg-config script could not be found. Make sure it is"
21425 echo "*** in your path, or set the PKG_CONFIG environment variable"
21426 echo "*** to the full path to pkg-config."
21427 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21428 else
21429 PKG_CONFIG_MIN_VERSION=0.9.0
21430 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21431 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
21432 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
21434 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
21435 echo "$as_me:$LINENO: result: yes" >&5
21436 echo "${ECHO_T}yes" >&6
21437 succeeded=yes
21439 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
21440 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
21441 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21442 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
21443 echo "${ECHO_T}$GTK_CFLAGS" >&6
21445 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
21446 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
21447 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21448 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
21449 echo "${ECHO_T}$GTK_LIBS" >&6
21450 else
21451 GTK_CFLAGS=""
21452 GTK_LIBS=""
21453 ## If we have a custom action on failure, don't print errors, but
21454 ## do set a variable so people can do so.
21455 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21456 echo $GTK_PKG_ERRORS
21461 else
21462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21467 if test $succeeded = yes; then
21469 else
21470 { { 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
21471 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;}
21472 { (exit 1); exit 1; }; }
21476 succeeded=no
21478 if test -z "$PKG_CONFIG"; then
21479 # Extract the first word of "pkg-config", so it can be a program name with args.
21480 set dummy pkg-config; ac_word=$2
21481 echo "$as_me:$LINENO: checking for $ac_word" >&5
21482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21483 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21484 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 else
21486 case $PKG_CONFIG in
21487 [\\/]* | ?:[\\/]*)
21488 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21492 for as_dir in $PATH
21494 IFS=$as_save_IFS
21495 test -z "$as_dir" && as_dir=.
21496 for ac_exec_ext in '' $ac_executable_extensions; do
21497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21498 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21500 break 2
21502 done
21503 done
21505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21507 esac
21509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21511 if test -n "$PKG_CONFIG"; then
21512 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21513 echo "${ECHO_T}$PKG_CONFIG" >&6
21514 else
21515 echo "$as_me:$LINENO: result: no" >&5
21516 echo "${ECHO_T}no" >&6
21521 if test "$PKG_CONFIG" = "no" ; then
21522 echo "*** The pkg-config script could not be found. Make sure it is"
21523 echo "*** in your path, or set the PKG_CONFIG environment variable"
21524 echo "*** to the full path to pkg-config."
21525 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21526 else
21527 PKG_CONFIG_MIN_VERSION=0.9.0
21528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21529 echo "$as_me:$LINENO: checking for freetype2" >&5
21530 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
21532 if $PKG_CONFIG --exists "freetype2" ; then
21533 echo "$as_me:$LINENO: result: yes" >&5
21534 echo "${ECHO_T}yes" >&6
21535 succeeded=yes
21537 echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
21538 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
21539 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
21540 echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
21541 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
21543 echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
21544 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
21545 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
21546 echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
21547 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
21548 else
21549 FREETYPE2_CFLAGS=""
21550 FREETYPE2_LIBS=""
21551 ## If we have a custom action on failure, don't print errors, but
21552 ## do set a variable so people can do so.
21553 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
21554 echo $FREETYPE2_PKG_ERRORS
21559 else
21560 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21561 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21565 if test $succeeded = yes; then
21567 else
21568 { { 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
21569 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;}
21570 { (exit 1); exit 1; }; }
21574 succeeded=no
21576 if test -z "$PKG_CONFIG"; then
21577 # Extract the first word of "pkg-config", so it can be a program name with args.
21578 set dummy pkg-config; ac_word=$2
21579 echo "$as_me:$LINENO: checking for $ac_word" >&5
21580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21581 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21583 else
21584 case $PKG_CONFIG in
21585 [\\/]* | ?:[\\/]*)
21586 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21590 for as_dir in $PATH
21592 IFS=$as_save_IFS
21593 test -z "$as_dir" && as_dir=.
21594 for ac_exec_ext in '' $ac_executable_extensions; do
21595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21596 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21598 break 2
21600 done
21601 done
21603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21605 esac
21607 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21609 if test -n "$PKG_CONFIG"; then
21610 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21611 echo "${ECHO_T}$PKG_CONFIG" >&6
21612 else
21613 echo "$as_me:$LINENO: result: no" >&5
21614 echo "${ECHO_T}no" >&6
21619 if test "$PKG_CONFIG" = "no" ; then
21620 echo "*** The pkg-config script could not be found. Make sure it is"
21621 echo "*** in your path, or set the PKG_CONFIG environment variable"
21622 echo "*** to the full path to pkg-config."
21623 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21624 else
21625 PKG_CONFIG_MIN_VERSION=0.9.0
21626 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21627 echo "$as_me:$LINENO: checking for pangoft2" >&5
21628 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
21630 if $PKG_CONFIG --exists "pangoft2" ; then
21631 echo "$as_me:$LINENO: result: yes" >&5
21632 echo "${ECHO_T}yes" >&6
21633 succeeded=yes
21635 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21636 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
21637 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
21638 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21639 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
21641 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21642 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
21643 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
21644 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21645 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
21646 else
21647 PANGOFT2_CFLAGS=""
21648 PANGOFT2_LIBS=""
21649 ## If we have a custom action on failure, don't print errors, but
21650 ## do set a variable so people can do so.
21651 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
21652 echo $PANGOFT2_PKG_ERRORS
21657 else
21658 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21659 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21663 if test $succeeded = yes; then
21665 else
21666 { { 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
21667 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;}
21668 { (exit 1); exit 1; }; }
21672 succeeded=no
21674 if test -z "$PKG_CONFIG"; then
21675 # Extract the first word of "pkg-config", so it can be a program name with args.
21676 set dummy pkg-config; ac_word=$2
21677 echo "$as_me:$LINENO: checking for $ac_word" >&5
21678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21679 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682 case $PKG_CONFIG in
21683 [\\/]* | ?:[\\/]*)
21684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21688 for as_dir in $PATH
21690 IFS=$as_save_IFS
21691 test -z "$as_dir" && as_dir=.
21692 for ac_exec_ext in '' $ac_executable_extensions; do
21693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21694 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21696 break 2
21698 done
21699 done
21701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21703 esac
21705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21707 if test -n "$PKG_CONFIG"; then
21708 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21709 echo "${ECHO_T}$PKG_CONFIG" >&6
21710 else
21711 echo "$as_me:$LINENO: result: no" >&5
21712 echo "${ECHO_T}no" >&6
21717 if test "$PKG_CONFIG" = "no" ; then
21718 echo "*** The pkg-config script could not be found. Make sure it is"
21719 echo "*** in your path, or set the PKG_CONFIG environment variable"
21720 echo "*** to the full path to pkg-config."
21721 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21722 else
21723 PKG_CONFIG_MIN_VERSION=0.9.0
21724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21725 echo "$as_me:$LINENO: checking for cairo >= 1.1.8" >&5
21726 echo $ECHO_N "checking for cairo >= 1.1.8... $ECHO_C" >&6
21728 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
21729 echo "$as_me:$LINENO: result: yes" >&5
21730 echo "${ECHO_T}yes" >&6
21731 succeeded=yes
21733 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
21734 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
21735 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
21736 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
21737 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
21739 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
21740 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
21741 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
21742 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
21743 echo "${ECHO_T}$CAIRO_LIBS" >&6
21744 else
21745 CAIRO_CFLAGS=""
21746 CAIRO_LIBS=""
21747 ## If we have a custom action on failure, don't print errors, but
21748 ## do set a variable so people can do so.
21749 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
21750 echo $CAIRO_PKG_ERRORS
21755 else
21756 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21757 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21761 if test $succeeded = yes; then
21763 else
21764 { { 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
21765 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;}
21766 { (exit 1); exit 1; }; }
21769 echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
21770 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
21771 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774 ac_check_lib_save_LIBS=$LIBS
21775 LIBS="-lXrender ${X_LIBS} $LIBS"
21776 if test x$gcc_no_link = xyes; then
21777 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21779 { (exit 1); exit 1; }; }
21781 cat >conftest.$ac_ext <<_ACEOF
21782 /* confdefs.h. */
21783 _ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21788 /* Override any gcc2 internal prototype to avoid an error. */
21789 #ifdef __cplusplus
21790 extern "C"
21791 #endif
21792 /* We use char because int might match the return type of a gcc2
21793 builtin and then its argument prototype would still apply. */
21794 char XRenderQueryExtension ();
21796 main ()
21798 XRenderQueryExtension ();
21800 return 0;
21802 _ACEOF
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21805 (eval $ac_link) 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } &&
21812 { ac_try='test -z "$ac_c_werror_flag"
21813 || test ! -s conftest.err'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; } &&
21819 { ac_try='test -s conftest$ac_exeext'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825 ac_cv_lib_Xrender_XRenderQueryExtension=yes
21826 else
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21830 ac_cv_lib_Xrender_XRenderQueryExtension=no
21832 rm -f conftest.err conftest.$ac_objext \
21833 conftest$ac_exeext conftest.$ac_ext
21834 LIBS=$ac_check_lib_save_LIBS
21836 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
21837 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
21838 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
21840 cat >>confdefs.h <<\_ACEOF
21841 #define HAVE_XRENDER 1
21842 _ACEOF
21843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
21844 else
21845 true
21849 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
21850 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
21851 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
21852 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854 ac_check_lib_save_LIBS=$LIBS
21855 LIBS="-lXrandr ${X_LIBS} $LIBS"
21856 if test x$gcc_no_link = xyes; then
21857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21859 { (exit 1); exit 1; }; }
21861 cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h. */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21868 /* Override any gcc2 internal prototype to avoid an error. */
21869 #ifdef __cplusplus
21870 extern "C"
21871 #endif
21872 /* We use char because int might match the return type of a gcc2
21873 builtin and then its argument prototype would still apply. */
21874 char XRRQueryExtension ();
21876 main ()
21878 XRRQueryExtension ();
21880 return 0;
21882 _ACEOF
21883 rm -f conftest.$ac_objext conftest$ac_exeext
21884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21885 (eval $ac_link) 2>conftest.er1
21886 ac_status=$?
21887 grep -v '^ *+' conftest.er1 >conftest.err
21888 rm -f conftest.er1
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } &&
21892 { ac_try='test -z "$ac_c_werror_flag"
21893 || test ! -s conftest.err'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest$ac_exeext'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; }; then
21905 ac_cv_lib_Xrandr_XRRQueryExtension=yes
21906 else
21907 echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21910 ac_cv_lib_Xrandr_XRRQueryExtension=no
21912 rm -f conftest.err conftest.$ac_objext \
21913 conftest$ac_exeext conftest.$ac_ext
21914 LIBS=$ac_check_lib_save_LIBS
21916 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
21917 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
21918 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
21920 cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_XRANDR 1
21922 _ACEOF
21923 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
21924 else
21925 true
21938 if test "x${COMPILE_GCONF_PEER}" = xyes; then
21940 succeeded=no
21942 if test -z "$PKG_CONFIG"; then
21943 # Extract the first word of "pkg-config", so it can be a program name with args.
21944 set dummy pkg-config; ac_word=$2
21945 echo "$as_me:$LINENO: checking for $ac_word" >&5
21946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21947 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950 case $PKG_CONFIG in
21951 [\\/]* | ?:[\\/]*)
21952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21956 for as_dir in $PATH
21958 IFS=$as_save_IFS
21959 test -z "$as_dir" && as_dir=.
21960 for ac_exec_ext in '' $ac_executable_extensions; do
21961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21962 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21964 break 2
21966 done
21967 done
21969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21971 esac
21973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21975 if test -n "$PKG_CONFIG"; then
21976 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21977 echo "${ECHO_T}$PKG_CONFIG" >&6
21978 else
21979 echo "$as_me:$LINENO: result: no" >&5
21980 echo "${ECHO_T}no" >&6
21985 if test "$PKG_CONFIG" = "no" ; then
21986 echo "*** The pkg-config script could not be found. Make sure it is"
21987 echo "*** in your path, or set the PKG_CONFIG environment variable"
21988 echo "*** to the full path to pkg-config."
21989 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21990 else
21991 PKG_CONFIG_MIN_VERSION=0.9.0
21992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21993 echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6.0" >&5
21994 echo $ECHO_N "checking for gconf-2.0 >= 2.6.0... $ECHO_C" >&6
21996 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
21997 echo "$as_me:$LINENO: result: yes" >&5
21998 echo "${ECHO_T}yes" >&6
21999 succeeded=yes
22001 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
22002 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
22003 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
22004 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
22005 echo "${ECHO_T}$GCONF_CFLAGS" >&6
22007 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
22008 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
22009 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
22010 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
22011 echo "${ECHO_T}$GCONF_LIBS" >&6
22012 else
22013 GCONF_CFLAGS=""
22014 GCONF_LIBS=""
22015 ## If we have a custom action on failure, don't print errors, but
22016 ## do set a variable so people can do so.
22017 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
22018 echo $GCONF_PKG_ERRORS
22023 else
22024 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22025 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22029 if test $succeeded = yes; then
22031 else
22032 { { 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
22033 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;}
22034 { (exit 1); exit 1; }; }
22040 succeeded=no
22042 if test -z "$PKG_CONFIG"; then
22043 # Extract the first word of "pkg-config", so it can be a program name with args.
22044 set dummy pkg-config; ac_word=$2
22045 echo "$as_me:$LINENO: checking for $ac_word" >&5
22046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22047 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050 case $PKG_CONFIG in
22051 [\\/]* | ?:[\\/]*)
22052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22056 for as_dir in $PATH
22058 IFS=$as_save_IFS
22059 test -z "$as_dir" && as_dir=.
22060 for ac_exec_ext in '' $ac_executable_extensions; do
22061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22064 break 2
22066 done
22067 done
22069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22071 esac
22073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22075 if test -n "$PKG_CONFIG"; then
22076 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22077 echo "${ECHO_T}$PKG_CONFIG" >&6
22078 else
22079 echo "$as_me:$LINENO: result: no" >&5
22080 echo "${ECHO_T}no" >&6
22085 if test "$PKG_CONFIG" = "no" ; then
22086 echo "*** The pkg-config script could not be found. Make sure it is"
22087 echo "*** in your path, or set the PKG_CONFIG environment variable"
22088 echo "*** to the full path to pkg-config."
22089 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22090 else
22091 PKG_CONFIG_MIN_VERSION=0.9.0
22092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22093 echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
22094 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
22096 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
22097 echo "$as_me:$LINENO: result: yes" >&5
22098 echo "${ECHO_T}yes" >&6
22099 succeeded=yes
22101 echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
22102 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
22103 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
22104 echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
22105 echo "${ECHO_T}$GDK_CFLAGS" >&6
22107 echo "$as_me:$LINENO: checking GDK_LIBS" >&5
22108 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
22109 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
22110 echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
22111 echo "${ECHO_T}$GDK_LIBS" >&6
22112 else
22113 GDK_CFLAGS=""
22114 GDK_LIBS=""
22115 ## If we have a custom action on failure, don't print errors, but
22116 ## do set a variable so people can do so.
22117 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
22118 echo $GDK_PKG_ERRORS
22123 else
22124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22129 if test $succeeded = yes; then
22131 else
22132 { { 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
22133 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;}
22134 { (exit 1); exit 1; }; }
22139 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
22140 if test "$USE_GCONF_PREFS_PEER" = ""; then
22141 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
22145 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
22146 GST_MAJORMINOR=0.10
22147 GST_REQUIRED=0.10.10
22150 succeeded=no
22152 if test -z "$PKG_CONFIG"; then
22153 # Extract the first word of "pkg-config", so it can be a program name with args.
22154 set dummy pkg-config; ac_word=$2
22155 echo "$as_me:$LINENO: checking for $ac_word" >&5
22156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22157 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22158 echo $ECHO_N "(cached) $ECHO_C" >&6
22159 else
22160 case $PKG_CONFIG in
22161 [\\/]* | ?:[\\/]*)
22162 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22166 for as_dir in $PATH
22168 IFS=$as_save_IFS
22169 test -z "$as_dir" && as_dir=.
22170 for ac_exec_ext in '' $ac_executable_extensions; do
22171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22172 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22174 break 2
22176 done
22177 done
22179 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22181 esac
22183 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22185 if test -n "$PKG_CONFIG"; then
22186 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22187 echo "${ECHO_T}$PKG_CONFIG" >&6
22188 else
22189 echo "$as_me:$LINENO: result: no" >&5
22190 echo "${ECHO_T}no" >&6
22195 if test "$PKG_CONFIG" = "no" ; then
22196 echo "*** The pkg-config script could not be found. Make sure it is"
22197 echo "*** in your path, or set the PKG_CONFIG environment variable"
22198 echo "*** to the full path to pkg-config."
22199 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22200 else
22201 PKG_CONFIG_MIN_VERSION=0.9.0
22202 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22203 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
22204 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
22206 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
22207 echo "$as_me:$LINENO: result: yes" >&5
22208 echo "${ECHO_T}yes" >&6
22209 succeeded=yes
22211 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
22212 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
22213 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
22214 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
22215 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
22217 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
22218 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
22219 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
22220 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
22221 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
22222 else
22223 GSTREAMER_CFLAGS=""
22224 GSTREAMER_LIBS=""
22225 ## If we have a custom action on failure, don't print errors, but
22226 ## do set a variable so people can do so.
22227 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
22228 echo $GSTREAMER_PKG_ERRORS
22233 else
22234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22239 if test $succeeded = yes; then
22241 else
22242 { { 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
22243 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;}
22244 { (exit 1); exit 1; }; }
22251 succeeded=no
22253 if test -z "$PKG_CONFIG"; then
22254 # Extract the first word of "pkg-config", so it can be a program name with args.
22255 set dummy pkg-config; ac_word=$2
22256 echo "$as_me:$LINENO: checking for $ac_word" >&5
22257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22258 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22261 case $PKG_CONFIG in
22262 [\\/]* | ?:[\\/]*)
22263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22267 for as_dir in $PATH
22269 IFS=$as_save_IFS
22270 test -z "$as_dir" && as_dir=.
22271 for ac_exec_ext in '' $ac_executable_extensions; do
22272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22275 break 2
22277 done
22278 done
22280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22282 esac
22284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22286 if test -n "$PKG_CONFIG"; then
22287 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22288 echo "${ECHO_T}$PKG_CONFIG" >&6
22289 else
22290 echo "$as_me:$LINENO: result: no" >&5
22291 echo "${ECHO_T}no" >&6
22296 if test "$PKG_CONFIG" = "no" ; then
22297 echo "*** The pkg-config script could not be found. Make sure it is"
22298 echo "*** in your path, or set the PKG_CONFIG environment variable"
22299 echo "*** to the full path to pkg-config."
22300 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22301 else
22302 PKG_CONFIG_MIN_VERSION=0.9.0
22303 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22304 echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
22305 echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
22307 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
22308 echo "$as_me:$LINENO: result: yes" >&5
22309 echo "${ECHO_T}yes" >&6
22310 succeeded=yes
22312 echo "$as_me:$LINENO: checking GSTREAMER_BASE_CFLAGS" >&5
22313 echo $ECHO_N "checking GSTREAMER_BASE_CFLAGS... $ECHO_C" >&6
22314 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22315 echo "$as_me:$LINENO: result: $GSTREAMER_BASE_CFLAGS" >&5
22316 echo "${ECHO_T}$GSTREAMER_BASE_CFLAGS" >&6
22318 echo "$as_me:$LINENO: checking GSTREAMER_BASE_LIBS" >&5
22319 echo $ECHO_N "checking GSTREAMER_BASE_LIBS... $ECHO_C" >&6
22320 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22321 echo "$as_me:$LINENO: result: $GSTREAMER_BASE_LIBS" >&5
22322 echo "${ECHO_T}$GSTREAMER_BASE_LIBS" >&6
22323 else
22324 GSTREAMER_BASE_CFLAGS=""
22325 GSTREAMER_BASE_LIBS=""
22326 ## If we have a custom action on failure, don't print errors, but
22327 ## do set a variable so people can do so.
22328 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22329 echo $GSTREAMER_BASE_PKG_ERRORS
22334 else
22335 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22336 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22340 if test $succeeded = yes; then
22342 else
22343 { { 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
22344 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;}
22345 { (exit 1); exit 1; }; }
22352 succeeded=no
22354 if test -z "$PKG_CONFIG"; then
22355 # Extract the first word of "pkg-config", so it can be a program name with args.
22356 set dummy pkg-config; ac_word=$2
22357 echo "$as_me:$LINENO: checking for $ac_word" >&5
22358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22359 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22360 echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362 case $PKG_CONFIG in
22363 [\\/]* | ?:[\\/]*)
22364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22368 for as_dir in $PATH
22370 IFS=$as_save_IFS
22371 test -z "$as_dir" && as_dir=.
22372 for ac_exec_ext in '' $ac_executable_extensions; do
22373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22376 break 2
22378 done
22379 done
22381 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22383 esac
22385 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22387 if test -n "$PKG_CONFIG"; then
22388 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22389 echo "${ECHO_T}$PKG_CONFIG" >&6
22390 else
22391 echo "$as_me:$LINENO: result: no" >&5
22392 echo "${ECHO_T}no" >&6
22397 if test "$PKG_CONFIG" = "no" ; then
22398 echo "*** The pkg-config script could not be found. Make sure it is"
22399 echo "*** in your path, or set the PKG_CONFIG environment variable"
22400 echo "*** to the full path to pkg-config."
22401 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22402 else
22403 PKG_CONFIG_MIN_VERSION=0.9.0
22404 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22405 echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
22406 echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
22408 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
22409 echo "$as_me:$LINENO: result: yes" >&5
22410 echo "${ECHO_T}yes" >&6
22411 succeeded=yes
22413 echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
22414 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
22415 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22416 echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
22417 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6
22419 echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
22420 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_LIBS... $ECHO_C" >&6
22421 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22422 echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
22423 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_LIBS" >&6
22424 else
22425 GSTREAMER_PLUGINS_BASE_CFLAGS=""
22426 GSTREAMER_PLUGINS_BASE_LIBS=""
22427 ## If we have a custom action on failure, don't print errors, but
22428 ## do set a variable so people can do so.
22429 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
22430 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
22435 else
22436 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22437 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22441 if test $succeeded = yes; then
22443 else
22444 { { 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
22445 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;}
22446 { (exit 1); exit 1; }; }
22452 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
22455 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
22456 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
22461 if test "x${COMPILE_QT_PEER}" = xyes; then
22463 succeeded=no
22465 if test -z "$PKG_CONFIG"; then
22466 # Extract the first word of "pkg-config", so it can be a program name with args.
22467 set dummy pkg-config; ac_word=$2
22468 echo "$as_me:$LINENO: checking for $ac_word" >&5
22469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22470 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 else
22473 case $PKG_CONFIG in
22474 [\\/]* | ?:[\\/]*)
22475 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479 for as_dir in $PATH
22481 IFS=$as_save_IFS
22482 test -z "$as_dir" && as_dir=.
22483 for ac_exec_ext in '' $ac_executable_extensions; do
22484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22485 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22487 break 2
22489 done
22490 done
22492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22494 esac
22496 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22498 if test -n "$PKG_CONFIG"; then
22499 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22500 echo "${ECHO_T}$PKG_CONFIG" >&6
22501 else
22502 echo "$as_me:$LINENO: result: no" >&5
22503 echo "${ECHO_T}no" >&6
22508 if test "$PKG_CONFIG" = "no" ; then
22509 echo "*** The pkg-config script could not be found. Make sure it is"
22510 echo "*** in your path, or set the PKG_CONFIG environment variable"
22511 echo "*** to the full path to pkg-config."
22512 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22513 else
22514 PKG_CONFIG_MIN_VERSION=0.9.0
22515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22516 echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
22517 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
22519 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
22520 echo "$as_me:$LINENO: result: yes" >&5
22521 echo "${ECHO_T}yes" >&6
22522 succeeded=yes
22524 echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
22525 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
22526 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
22527 echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
22528 echo "${ECHO_T}$QT_CFLAGS" >&6
22530 echo "$as_me:$LINENO: checking QT_LIBS" >&5
22531 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
22532 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
22533 echo "$as_me:$LINENO: result: $QT_LIBS" >&5
22534 echo "${ECHO_T}$QT_LIBS" >&6
22535 else
22536 QT_CFLAGS=""
22537 QT_LIBS=""
22538 ## If we have a custom action on failure, don't print errors, but
22539 ## do set a variable so people can do so.
22540 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
22546 else
22547 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22548 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22552 if test $succeeded = yes; then
22553 HAVE_QT4="yes"
22554 else
22555 HAVE_QT4="no"
22558 if test "x$HAVE_QT4" = "xyes"; then
22559 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
22560 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
22561 as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
22562 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
22563 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
22564 if eval "test \"\${$as_ac_File+set}\" = set"; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567 test "$cross_compiling" = yes &&
22568 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22569 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22570 { (exit 1); exit 1; }; }
22571 if test -r "$QT_INCLUDE_DIR/QWidget"; then
22572 eval "$as_ac_File=yes"
22573 else
22574 eval "$as_ac_File=no"
22577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
22578 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
22579 if test `eval echo '${'$as_ac_File'}'` = yes; then
22580 { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
22581 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
22582 else
22583 as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
22584 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
22585 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
22586 if eval "test \"\${$as_ac_File+set}\" = set"; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589 test "$cross_compiling" = yes &&
22590 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22591 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22592 { (exit 1); exit 1; }; }
22593 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
22594 eval "$as_ac_File=yes"
22595 else
22596 eval "$as_ac_File=no"
22599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
22600 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
22601 if test `eval echo '${'$as_ac_File'}'` = yes; then
22602 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
22603 else
22604 { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
22605 echo "$as_me: WARNING: QWidget not found" >&2;}
22610 # Extract the first word of "moc", so it can be a program name with args.
22611 set dummy moc; ac_word=$2
22612 echo "$as_me:$LINENO: checking for $ac_word" >&5
22613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22614 if test "${ac_cv_prog_MOC+set}" = set; then
22615 echo $ECHO_N "(cached) $ECHO_C" >&6
22616 else
22617 if test -n "$MOC"; then
22618 ac_cv_prog_MOC="$MOC" # Let the user override the test.
22619 else
22620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22623 IFS=$as_save_IFS
22624 test -z "$as_dir" && as_dir=.
22625 for ac_exec_ext in '' $ac_executable_extensions; do
22626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22627 ac_cv_prog_MOC="moc"
22628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22629 break 2
22631 done
22632 done
22636 MOC=$ac_cv_prog_MOC
22637 if test -n "$MOC"; then
22638 echo "$as_me:$LINENO: result: $MOC" >&5
22639 echo "${ECHO_T}$MOC" >&6
22640 else
22641 echo "$as_me:$LINENO: result: no" >&5
22642 echo "${ECHO_T}no" >&6
22645 # Extract the first word of "moc-qt4", so it can be a program name with args.
22646 set dummy moc-qt4; ac_word=$2
22647 echo "$as_me:$LINENO: checking for $ac_word" >&5
22648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22649 if test "${ac_cv_prog_MOC+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 if test -n "$MOC"; then
22653 ac_cv_prog_MOC="$MOC" # Let the user override the test.
22654 else
22655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22656 for as_dir in $PATH
22658 IFS=$as_save_IFS
22659 test -z "$as_dir" && as_dir=.
22660 for ac_exec_ext in '' $ac_executable_extensions; do
22661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22662 ac_cv_prog_MOC="moc-qt4"
22663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22664 break 2
22666 done
22667 done
22671 MOC=$ac_cv_prog_MOC
22672 if test -n "$MOC"; then
22673 echo "$as_me:$LINENO: result: $MOC" >&5
22674 echo "${ECHO_T}$MOC" >&6
22675 else
22676 echo "$as_me:$LINENO: result: no" >&5
22677 echo "${ECHO_T}no" >&6
22681 if test "x$HAVE_QT4" = "xno"; then
22682 { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
22683 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
22684 case "$host_os" in
22685 darwin*)
22687 # Check whether --with-qt4dir or --without-qt4dir was given.
22688 if test "${with_qt4dir+set}" = set; then
22689 withval="$with_qt4dir"
22690 QT4DIR=$withval
22693 if test x"$QT4DIR" = x ; then
22694 { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
22695 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
22696 { (exit 1); exit 1; }; }
22698 echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
22699 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
22700 # Extract the first word of "moc", so it can be a program name with args.
22701 set dummy moc; ac_word=$2
22702 echo "$as_me:$LINENO: checking for $ac_word" >&5
22703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22704 if test "${ac_cv_prog_MOC+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707 if test -n "$MOC"; then
22708 ac_cv_prog_MOC="$MOC" # Let the user override the test.
22709 else
22710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22711 for as_dir in $QT4DIR/bin
22713 IFS=$as_save_IFS
22714 test -z "$as_dir" && as_dir=.
22715 for ac_exec_ext in '' $ac_executable_extensions; do
22716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22717 ac_cv_prog_MOC="$QT4DIR/bin/moc"
22718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22719 break 2
22721 done
22722 done
22726 MOC=$ac_cv_prog_MOC
22727 if test -n "$MOC"; then
22728 echo "$as_me:$LINENO: result: $MOC" >&5
22729 echo "${ECHO_T}$MOC" >&6
22730 else
22731 echo "$as_me:$LINENO: result: no" >&5
22732 echo "${ECHO_T}no" >&6
22735 if test x"$MOC" = x; then
22736 { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
22737 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
22738 { (exit 1); exit 1; }; }
22740 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
22741 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
22742 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
22743 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
22746 { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
22747 of your installed Qt4 installation." >&5
22748 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
22749 of your installed Qt4 installation." >&2;}
22750 { (exit 1); exit 1; }; }
22752 esac
22754 { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
22755 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
22759 echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
22760 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6
22761 cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 #include <sys/socket.h>
22769 main ()
22771 int f = MSG_NOSIGNAL;
22773 return 0;
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778 (eval $ac_compile) 2>conftest.er1
22779 ac_status=$?
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } &&
22785 { ac_try='test -z "$ac_c_werror_flag"
22786 || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest.$ac_objext'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
22798 echo "$as_me:$LINENO: result: yes" >&5
22799 echo "${ECHO_T}yes" >&6
22801 cat >>confdefs.h <<\_ACEOF
22802 #define HAVE_MSG_NOSIGNAL 1
22803 _ACEOF
22805 else
22806 echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 echo "$as_me:$LINENO: result: no" >&5
22810 echo "${ECHO_T}no" >&6
22813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22814 echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
22815 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6
22816 cat >conftest.$ac_ext <<_ACEOF
22817 /* confdefs.h. */
22818 _ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22822 #include <sys/socket.h>
22824 main ()
22826 int f = SO_NOSIGPIPE;
22828 return 0;
22830 _ACEOF
22831 rm -f conftest.$ac_objext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22833 (eval $ac_compile) 2>conftest.er1
22834 ac_status=$?
22835 grep -v '^ *+' conftest.er1 >conftest.err
22836 rm -f conftest.er1
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -z "$ac_c_werror_flag"
22841 || test ! -s conftest.err'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest.$ac_objext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 echo "$as_me:$LINENO: result: yes" >&5
22854 echo "${ECHO_T}yes" >&6
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_SO_NOSIGPIPE 1
22858 _ACEOF
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 echo "$as_me:$LINENO: result: no" >&5
22865 echo "${ECHO_T}no" >&6
22868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22869 echo "$as_me:$LINENO: checking for MSG_WAITALL" >&5
22870 echo $ECHO_N "checking for MSG_WAITALL... $ECHO_C" >&6
22871 cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h. */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 #include <sys/socket.h>
22879 main ()
22881 int f = MSG_WAITALL;
22883 return 0;
22885 _ACEOF
22886 rm -f conftest.$ac_objext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22888 (eval $ac_compile) 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } &&
22895 { ac_try='test -z "$ac_c_werror_flag"
22896 || test ! -s conftest.err'
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; } &&
22902 { ac_try='test -s conftest.$ac_objext'
22903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904 (eval $ac_try) 2>&5
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; }; then
22908 echo "$as_me:$LINENO: result: yes" >&5
22909 echo "${ECHO_T}yes" >&6
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE_MSG_WAITALL 1
22913 _ACEOF
22915 else
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22919 echo "$as_me:$LINENO: result: no" >&5
22920 echo "${ECHO_T}no" >&6
22923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22925 if test "x${COMPILE_PLUGIN}" = xyes; then
22927 succeeded=no
22929 if test -z "$PKG_CONFIG"; then
22930 # Extract the first word of "pkg-config", so it can be a program name with args.
22931 set dummy pkg-config; ac_word=$2
22932 echo "$as_me:$LINENO: checking for $ac_word" >&5
22933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937 case $PKG_CONFIG in
22938 [\\/]* | ?:[\\/]*)
22939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22943 for as_dir in $PATH
22945 IFS=$as_save_IFS
22946 test -z "$as_dir" && as_dir=.
22947 for ac_exec_ext in '' $ac_executable_extensions; do
22948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22951 break 2
22953 done
22954 done
22956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22958 esac
22960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22962 if test -n "$PKG_CONFIG"; then
22963 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22964 echo "${ECHO_T}$PKG_CONFIG" >&6
22965 else
22966 echo "$as_me:$LINENO: result: no" >&5
22967 echo "${ECHO_T}no" >&6
22972 if test "$PKG_CONFIG" = "no" ; then
22973 echo "*** The pkg-config script could not be found. Make sure it is"
22974 echo "*** in your path, or set the PKG_CONFIG environment variable"
22975 echo "*** to the full path to pkg-config."
22976 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22977 else
22978 PKG_CONFIG_MIN_VERSION=0.9.0
22979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22980 echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
22981 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
22983 if $PKG_CONFIG --exists "mozilla-plugin" ; then
22984 echo "$as_me:$LINENO: result: yes" >&5
22985 echo "${ECHO_T}yes" >&6
22986 succeeded=yes
22988 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
22989 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
22990 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
22991 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
22992 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
22994 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
22995 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
22996 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
22997 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
22998 echo "${ECHO_T}$MOZILLA_LIBS" >&6
22999 else
23000 MOZILLA_CFLAGS=""
23001 MOZILLA_LIBS=""
23002 ## If we have a custom action on failure, don't print errors, but
23003 ## do set a variable so people can do so.
23004 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
23010 else
23011 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23012 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23016 if test $succeeded = yes; then
23017 MOZILLA_FOUND=yes
23018 else
23019 MOZILLA_FOUND=no
23022 if test "x${MOZILLA_FOUND}" = xno; then
23024 succeeded=no
23026 if test -z "$PKG_CONFIG"; then
23027 # Extract the first word of "pkg-config", so it can be a program name with args.
23028 set dummy pkg-config; ac_word=$2
23029 echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034 case $PKG_CONFIG in
23035 [\\/]* | ?:[\\/]*)
23036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23040 for as_dir in $PATH
23042 IFS=$as_save_IFS
23043 test -z "$as_dir" && as_dir=.
23044 for ac_exec_ext in '' $ac_executable_extensions; do
23045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23048 break 2
23050 done
23051 done
23053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23055 esac
23057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23059 if test -n "$PKG_CONFIG"; then
23060 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23061 echo "${ECHO_T}$PKG_CONFIG" >&6
23062 else
23063 echo "$as_me:$LINENO: result: no" >&5
23064 echo "${ECHO_T}no" >&6
23069 if test "$PKG_CONFIG" = "no" ; then
23070 echo "*** The pkg-config script could not be found. Make sure it is"
23071 echo "*** in your path, or set the PKG_CONFIG environment variable"
23072 echo "*** to the full path to pkg-config."
23073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23074 else
23075 PKG_CONFIG_MIN_VERSION=0.9.0
23076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23077 echo "$as_me:$LINENO: checking for firefox-plugin firefox-xpcom" >&5
23078 echo $ECHO_N "checking for firefox-plugin firefox-xpcom... $ECHO_C" >&6
23080 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
23081 echo "$as_me:$LINENO: result: yes" >&5
23082 echo "${ECHO_T}yes" >&6
23083 succeeded=yes
23085 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
23086 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
23087 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
23088 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
23089 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
23091 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
23092 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
23093 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
23094 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
23095 echo "${ECHO_T}$MOZILLA_LIBS" >&6
23096 else
23097 MOZILLA_CFLAGS=""
23098 MOZILLA_LIBS=""
23099 ## If we have a custom action on failure, don't print errors, but
23100 ## do set a variable so people can do so.
23101 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
23107 else
23108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23113 if test $succeeded = yes; then
23114 MOZILLA_FOUND=yes
23115 else
23116 MOZILLA_FOUND=no
23120 if test "x${MOZILLA_FOUND}" = xno; then
23122 succeeded=no
23124 if test -z "$PKG_CONFIG"; then
23125 # Extract the first word of "pkg-config", so it can be a program name with args.
23126 set dummy pkg-config; ac_word=$2
23127 echo "$as_me:$LINENO: checking for $ac_word" >&5
23128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23130 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 else
23132 case $PKG_CONFIG in
23133 [\\/]* | ?:[\\/]*)
23134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23138 for as_dir in $PATH
23140 IFS=$as_save_IFS
23141 test -z "$as_dir" && as_dir=.
23142 for ac_exec_ext in '' $ac_executable_extensions; do
23143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23146 break 2
23148 done
23149 done
23151 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23153 esac
23155 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23157 if test -n "$PKG_CONFIG"; then
23158 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23159 echo "${ECHO_T}$PKG_CONFIG" >&6
23160 else
23161 echo "$as_me:$LINENO: result: no" >&5
23162 echo "${ECHO_T}no" >&6
23167 if test "$PKG_CONFIG" = "no" ; then
23168 echo "*** The pkg-config script could not be found. Make sure it is"
23169 echo "*** in your path, or set the PKG_CONFIG environment variable"
23170 echo "*** to the full path to pkg-config."
23171 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23172 else
23173 PKG_CONFIG_MIN_VERSION=0.9.0
23174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23175 echo "$as_me:$LINENO: checking for xulrunner-plugin xulrunner-xpcom" >&5
23176 echo $ECHO_N "checking for xulrunner-plugin xulrunner-xpcom... $ECHO_C" >&6
23178 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
23179 echo "$as_me:$LINENO: result: yes" >&5
23180 echo "${ECHO_T}yes" >&6
23181 succeeded=yes
23183 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
23184 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
23185 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
23186 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
23187 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
23189 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
23190 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
23191 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
23192 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
23193 echo "${ECHO_T}$MOZILLA_LIBS" >&6
23194 else
23195 MOZILLA_CFLAGS=""
23196 MOZILLA_LIBS=""
23197 ## If we have a custom action on failure, don't print errors, but
23198 ## do set a variable so people can do so.
23199 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
23205 else
23206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23211 if test $succeeded = yes; then
23212 MOZILLA_FOUND=yes
23213 else
23214 MOZILLA_FOUND=no
23218 if test "x${MOZILLA_FOUND}" = xno; then
23220 succeeded=no
23222 if test -z "$PKG_CONFIG"; then
23223 # Extract the first word of "pkg-config", so it can be a program name with args.
23224 set dummy pkg-config; ac_word=$2
23225 echo "$as_me:$LINENO: checking for $ac_word" >&5
23226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230 case $PKG_CONFIG in
23231 [\\/]* | ?:[\\/]*)
23232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23236 for as_dir in $PATH
23238 IFS=$as_save_IFS
23239 test -z "$as_dir" && as_dir=.
23240 for ac_exec_ext in '' $ac_executable_extensions; do
23241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23244 break 2
23246 done
23247 done
23249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23251 esac
23253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23255 if test -n "$PKG_CONFIG"; then
23256 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23257 echo "${ECHO_T}$PKG_CONFIG" >&6
23258 else
23259 echo "$as_me:$LINENO: result: no" >&5
23260 echo "${ECHO_T}no" >&6
23265 if test "$PKG_CONFIG" = "no" ; then
23266 echo "*** The pkg-config script could not be found. Make sure it is"
23267 echo "*** in your path, or set the PKG_CONFIG environment variable"
23268 echo "*** to the full path to pkg-config."
23269 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23270 else
23271 PKG_CONFIG_MIN_VERSION=0.9.0
23272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23273 echo "$as_me:$LINENO: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
23274 echo $ECHO_N "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... $ECHO_C" >&6
23276 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
23277 echo "$as_me:$LINENO: result: yes" >&5
23278 echo "${ECHO_T}yes" >&6
23279 succeeded=yes
23281 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
23282 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
23283 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
23284 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
23285 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
23287 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
23288 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
23289 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
23290 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
23291 echo "${ECHO_T}$MOZILLA_LIBS" >&6
23292 else
23293 MOZILLA_CFLAGS=""
23294 MOZILLA_LIBS=""
23295 ## If we have a custom action on failure, don't print errors, but
23296 ## do set a variable so people can do so.
23297 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
23303 else
23304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23309 if test $succeeded = yes; then
23310 MOZILLA_FOUND=yes
23311 else
23312 MOZILLA_FOUND=no
23316 if test "x${MOZILLA_FOUND}" = xno; then
23318 succeeded=no
23320 if test -z "$PKG_CONFIG"; then
23321 # Extract the first word of "pkg-config", so it can be a program name with args.
23322 set dummy pkg-config; ac_word=$2
23323 echo "$as_me:$LINENO: checking for $ac_word" >&5
23324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 else
23328 case $PKG_CONFIG in
23329 [\\/]* | ?:[\\/]*)
23330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23334 for as_dir in $PATH
23336 IFS=$as_save_IFS
23337 test -z "$as_dir" && as_dir=.
23338 for ac_exec_ext in '' $ac_executable_extensions; do
23339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23342 break 2
23344 done
23345 done
23347 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23349 esac
23351 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23353 if test -n "$PKG_CONFIG"; then
23354 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23355 echo "${ECHO_T}$PKG_CONFIG" >&6
23356 else
23357 echo "$as_me:$LINENO: result: no" >&5
23358 echo "${ECHO_T}no" >&6
23363 if test "$PKG_CONFIG" = "no" ; then
23364 echo "*** The pkg-config script could not be found. Make sure it is"
23365 echo "*** in your path, or set the PKG_CONFIG environment variable"
23366 echo "*** to the full path to pkg-config."
23367 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23368 else
23369 PKG_CONFIG_MIN_VERSION=0.9.0
23370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23371 echo "$as_me:$LINENO: checking for seamonkey-plugin seamonkey-xpcom" >&5
23372 echo $ECHO_N "checking for seamonkey-plugin seamonkey-xpcom... $ECHO_C" >&6
23374 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
23375 echo "$as_me:$LINENO: result: yes" >&5
23376 echo "${ECHO_T}yes" >&6
23377 succeeded=yes
23379 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
23380 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
23381 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
23382 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
23383 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
23385 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
23386 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
23387 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
23388 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
23389 echo "${ECHO_T}$MOZILLA_LIBS" >&6
23390 else
23391 MOZILLA_CFLAGS=""
23392 MOZILLA_LIBS=""
23393 ## If we have a custom action on failure, don't print errors, but
23394 ## do set a variable so people can do so.
23395 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
23401 else
23402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23407 if test $succeeded = yes; then
23408 MOZILLA_FOUND=yes
23409 else
23410 MOZILLA_FOUND=no
23414 if test "x${MOZILLA_FOUND}" = xno; then
23416 succeeded=no
23418 if test -z "$PKG_CONFIG"; then
23419 # Extract the first word of "pkg-config", so it can be a program name with args.
23420 set dummy pkg-config; ac_word=$2
23421 echo "$as_me:$LINENO: checking for $ac_word" >&5
23422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23423 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23424 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 else
23426 case $PKG_CONFIG in
23427 [\\/]* | ?:[\\/]*)
23428 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23432 for as_dir in $PATH
23434 IFS=$as_save_IFS
23435 test -z "$as_dir" && as_dir=.
23436 for ac_exec_ext in '' $ac_executable_extensions; do
23437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23438 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23440 break 2
23442 done
23443 done
23445 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23447 esac
23449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23451 if test -n "$PKG_CONFIG"; then
23452 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23453 echo "${ECHO_T}$PKG_CONFIG" >&6
23454 else
23455 echo "$as_me:$LINENO: result: no" >&5
23456 echo "${ECHO_T}no" >&6
23461 if test "$PKG_CONFIG" = "no" ; then
23462 echo "*** The pkg-config script could not be found. Make sure it is"
23463 echo "*** in your path, or set the PKG_CONFIG environment variable"
23464 echo "*** to the full path to pkg-config."
23465 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23466 else
23467 PKG_CONFIG_MIN_VERSION=0.9.0
23468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23469 echo "$as_me:$LINENO: checking for iceape-plugin iceape-xpcom" >&5
23470 echo $ECHO_N "checking for iceape-plugin iceape-xpcom... $ECHO_C" >&6
23472 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
23473 echo "$as_me:$LINENO: result: yes" >&5
23474 echo "${ECHO_T}yes" >&6
23475 succeeded=yes
23477 echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
23478 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
23479 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
23480 echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
23481 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
23483 echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
23484 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
23485 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
23486 echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
23487 echo "${ECHO_T}$MOZILLA_LIBS" >&6
23488 else
23489 MOZILLA_CFLAGS=""
23490 MOZILLA_LIBS=""
23491 ## If we have a custom action on failure, don't print errors, but
23492 ## do set a variable so people can do so.
23493 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
23499 else
23500 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23501 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23505 if test $succeeded = yes; then
23506 MOZILLA_FOUND=yes
23507 else
23508 MOZILLA_FOUND=no
23512 if test "x${MOZILLA_FOUND}" = xno; then
23513 { { echo "$as_me:$LINENO: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&5
23514 echo "$as_me: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&2;}
23515 { (exit 1); exit 1; }; }
23519 succeeded=no
23521 if test -z "$PKG_CONFIG"; then
23522 # Extract the first word of "pkg-config", so it can be a program name with args.
23523 set dummy pkg-config; ac_word=$2
23524 echo "$as_me:$LINENO: checking for $ac_word" >&5
23525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23527 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 else
23529 case $PKG_CONFIG in
23530 [\\/]* | ?:[\\/]*)
23531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23535 for as_dir in $PATH
23537 IFS=$as_save_IFS
23538 test -z "$as_dir" && as_dir=.
23539 for ac_exec_ext in '' $ac_executable_extensions; do
23540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23543 break 2
23545 done
23546 done
23548 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23550 esac
23552 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23554 if test -n "$PKG_CONFIG"; then
23555 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23556 echo "${ECHO_T}$PKG_CONFIG" >&6
23557 else
23558 echo "$as_me:$LINENO: result: no" >&5
23559 echo "${ECHO_T}no" >&6
23564 if test "$PKG_CONFIG" = "no" ; then
23565 echo "*** The pkg-config script could not be found. Make sure it is"
23566 echo "*** in your path, or set the PKG_CONFIG environment variable"
23567 echo "*** to the full path to pkg-config."
23568 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23569 else
23570 PKG_CONFIG_MIN_VERSION=0.9.0
23571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23572 echo "$as_me:$LINENO: checking for glib-2.0" >&5
23573 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
23575 if $PKG_CONFIG --exists "glib-2.0" ; then
23576 echo "$as_me:$LINENO: result: yes" >&5
23577 echo "${ECHO_T}yes" >&6
23578 succeeded=yes
23580 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
23581 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
23582 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
23583 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
23584 echo "${ECHO_T}$GLIB_CFLAGS" >&6
23586 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
23587 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
23588 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
23589 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
23590 echo "${ECHO_T}$GLIB_LIBS" >&6
23591 else
23592 GLIB_CFLAGS=""
23593 GLIB_LIBS=""
23594 ## If we have a custom action on failure, don't print errors, but
23595 ## do set a variable so people can do so.
23596 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
23597 echo $GLIB_PKG_ERRORS
23602 else
23603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23608 if test $succeeded = yes; then
23610 else
23611 { { 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
23612 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;}
23613 { (exit 1); exit 1; }; }
23617 succeeded=no
23619 if test -z "$PKG_CONFIG"; then
23620 # Extract the first word of "pkg-config", so it can be a program name with args.
23621 set dummy pkg-config; ac_word=$2
23622 echo "$as_me:$LINENO: checking for $ac_word" >&5
23623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23627 case $PKG_CONFIG in
23628 [\\/]* | ?:[\\/]*)
23629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23633 for as_dir in $PATH
23635 IFS=$as_save_IFS
23636 test -z "$as_dir" && as_dir=.
23637 for ac_exec_ext in '' $ac_executable_extensions; do
23638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23641 break 2
23643 done
23644 done
23646 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23648 esac
23650 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23652 if test -n "$PKG_CONFIG"; then
23653 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23654 echo "${ECHO_T}$PKG_CONFIG" >&6
23655 else
23656 echo "$as_me:$LINENO: result: no" >&5
23657 echo "${ECHO_T}no" >&6
23662 if test "$PKG_CONFIG" = "no" ; then
23663 echo "*** The pkg-config script could not be found. Make sure it is"
23664 echo "*** in your path, or set the PKG_CONFIG environment variable"
23665 echo "*** to the full path to pkg-config."
23666 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23667 else
23668 PKG_CONFIG_MIN_VERSION=0.9.0
23669 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23670 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
23671 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
23673 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
23674 echo "$as_me:$LINENO: result: yes" >&5
23675 echo "${ECHO_T}yes" >&6
23676 succeeded=yes
23678 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
23679 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
23680 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23681 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
23682 echo "${ECHO_T}$GTK_CFLAGS" >&6
23684 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
23685 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
23686 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23687 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
23688 echo "${ECHO_T}$GTK_LIBS" >&6
23689 else
23690 GTK_CFLAGS=""
23691 GTK_LIBS=""
23692 ## If we have a custom action on failure, don't print errors, but
23693 ## do set a variable so people can do so.
23694 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23695 echo $GTK_PKG_ERRORS
23700 else
23701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23706 if test $succeeded = yes; then
23708 else
23709 { { 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
23710 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;}
23711 { (exit 1); exit 1; }; }
23722 PLUGIN_DIR=$HOME/.mozilla/plugins/
23727 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
23730 # Check whether --with-javah or --without-javah was given.
23731 if test "${with_javah+set}" = set; then
23732 withval="$with_javah"
23734 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23736 if test "x${withval}" != x; then
23737 if test -f "${withval}"; then
23738 USER_JAVAH="${withval}"
23739 else
23740 # Extract the first word of ""${withval}"", so it can be a program name with args.
23741 set dummy "${withval}"; ac_word=$2
23742 echo "$as_me:$LINENO: checking for $ac_word" >&5
23743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23744 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
23745 echo $ECHO_N "(cached) $ECHO_C" >&6
23746 else
23747 case $USER_JAVAH in
23748 [\\/]* | ?:[\\/]*)
23749 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23753 for as_dir in $PATH
23755 IFS=$as_save_IFS
23756 test -z "$as_dir" && as_dir=.
23757 for ac_exec_ext in '' $ac_executable_extensions; do
23758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23759 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23761 break 2
23763 done
23764 done
23767 esac
23769 USER_JAVAH=$ac_cv_path_USER_JAVAH
23771 if test -n "$USER_JAVAH"; then
23772 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
23773 echo "${ECHO_T}$USER_JAVAH" >&6
23774 else
23775 echo "$as_me:$LINENO: result: no" >&5
23776 echo "${ECHO_T}no" >&6
23780 else
23781 for ac_prog in gjavah gcjh-wrapper-4.1 gcjh-4.1 gcjh javah
23783 # Extract the first word of "$ac_prog", so it can be a program name with args.
23784 set dummy $ac_prog; ac_word=$2
23785 echo "$as_me:$LINENO: checking for $ac_word" >&5
23786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23787 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 else
23790 case $USER_JAVAH in
23791 [\\/]* | ?:[\\/]*)
23792 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23796 for as_dir in $PATH
23798 IFS=$as_save_IFS
23799 test -z "$as_dir" && as_dir=.
23800 for ac_exec_ext in '' $ac_executable_extensions; do
23801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23802 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23804 break 2
23806 done
23807 done
23810 esac
23812 USER_JAVAH=$ac_cv_path_USER_JAVAH
23814 if test -n "$USER_JAVAH"; then
23815 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
23816 echo "${ECHO_T}$USER_JAVAH" >&6
23817 else
23818 echo "$as_me:$LINENO: result: no" >&5
23819 echo "${ECHO_T}no" >&6
23822 test -n "$USER_JAVAH" && break
23823 done
23827 if test "x${USER_JAVAH}" = x; then
23828 { { echo "$as_me:$LINENO: error: can not find javah" >&5
23829 echo "$as_me: error: can not find javah" >&2;}
23830 { (exit 1); exit 1; }; }
23833 else
23835 if test "x" != x; then
23836 if test -f ""; then
23837 USER_JAVAH=""
23838 else
23839 # Extract the first word of """", so it can be a program name with args.
23840 set dummy ""; ac_word=$2
23841 echo "$as_me:$LINENO: checking for $ac_word" >&5
23842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23843 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846 case $USER_JAVAH in
23847 [\\/]* | ?:[\\/]*)
23848 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23852 for as_dir in $PATH
23854 IFS=$as_save_IFS
23855 test -z "$as_dir" && as_dir=.
23856 for ac_exec_ext in '' $ac_executable_extensions; do
23857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23858 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23860 break 2
23862 done
23863 done
23866 esac
23868 USER_JAVAH=$ac_cv_path_USER_JAVAH
23870 if test -n "$USER_JAVAH"; then
23871 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
23872 echo "${ECHO_T}$USER_JAVAH" >&6
23873 else
23874 echo "$as_me:$LINENO: result: no" >&5
23875 echo "${ECHO_T}no" >&6
23879 else
23880 for ac_prog in gjavah gcjh-wrapper-4.1 gcjh-4.1 gcjh javah
23882 # Extract the first word of "$ac_prog", so it can be a program name with args.
23883 set dummy $ac_prog; ac_word=$2
23884 echo "$as_me:$LINENO: checking for $ac_word" >&5
23885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23886 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
23887 echo $ECHO_N "(cached) $ECHO_C" >&6
23888 else
23889 case $USER_JAVAH in
23890 [\\/]* | ?:[\\/]*)
23891 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23895 for as_dir in $PATH
23897 IFS=$as_save_IFS
23898 test -z "$as_dir" && as_dir=.
23899 for ac_exec_ext in '' $ac_executable_extensions; do
23900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23901 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23903 break 2
23905 done
23906 done
23909 esac
23911 USER_JAVAH=$ac_cv_path_USER_JAVAH
23913 if test -n "$USER_JAVAH"; then
23914 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
23915 echo "${ECHO_T}$USER_JAVAH" >&6
23916 else
23917 echo "$as_me:$LINENO: result: no" >&5
23918 echo "${ECHO_T}no" >&6
23921 test -n "$USER_JAVAH" && break
23922 done
23926 if test "x${USER_JAVAH}" = x; then
23927 { { echo "$as_me:$LINENO: error: can not find javah" >&5
23928 echo "$as_me: error: can not find javah" >&2;}
23929 { (exit 1); exit 1; }; }
23934 else
23937 if test "x" != x; then
23938 if test -f ""; then
23939 USER_JAVAH=""
23940 else
23941 # Extract the first word of """", so it can be a program name with args.
23942 set dummy ""; ac_word=$2
23943 echo "$as_me:$LINENO: checking for $ac_word" >&5
23944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23945 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948 case $USER_JAVAH in
23949 [\\/]* | ?:[\\/]*)
23950 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23954 for as_dir in $PATH
23956 IFS=$as_save_IFS
23957 test -z "$as_dir" && as_dir=.
23958 for ac_exec_ext in '' $ac_executable_extensions; do
23959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23960 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23962 break 2
23964 done
23965 done
23968 esac
23970 USER_JAVAH=$ac_cv_path_USER_JAVAH
23972 if test -n "$USER_JAVAH"; then
23973 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
23974 echo "${ECHO_T}$USER_JAVAH" >&6
23975 else
23976 echo "$as_me:$LINENO: result: no" >&5
23977 echo "${ECHO_T}no" >&6
23981 else
23982 for ac_prog in gjavah gcjh-wrapper-4.1 gcjh-4.1 gcjh javah
23984 # Extract the first word of "$ac_prog", so it can be a program name with args.
23985 set dummy $ac_prog; ac_word=$2
23986 echo "$as_me:$LINENO: checking for $ac_word" >&5
23987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23988 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
23989 echo $ECHO_N "(cached) $ECHO_C" >&6
23990 else
23991 case $USER_JAVAH in
23992 [\\/]* | ?:[\\/]*)
23993 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997 for as_dir in $PATH
23999 IFS=$as_save_IFS
24000 test -z "$as_dir" && as_dir=.
24001 for ac_exec_ext in '' $ac_executable_extensions; do
24002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24003 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
24004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24005 break 2
24007 done
24008 done
24011 esac
24013 USER_JAVAH=$ac_cv_path_USER_JAVAH
24015 if test -n "$USER_JAVAH"; then
24016 echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
24017 echo "${ECHO_T}$USER_JAVAH" >&6
24018 else
24019 echo "$as_me:$LINENO: result: no" >&5
24020 echo "${ECHO_T}no" >&6
24023 test -n "$USER_JAVAH" && break
24024 done
24028 if test "x${USER_JAVAH}" = x; then
24029 { { echo "$as_me:$LINENO: error: can not find javah" >&5
24030 echo "$as_me: error: can not find javah" >&2;}
24031 { (exit 1); exit 1; }; }
24040 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
24043 if test "x${COMPILE_JNI}" = xyes; then
24044 echo "$as_me:$LINENO: checking jni_md.h support" >&5
24045 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
24046 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
24047 echo "$as_me:$LINENO: result: yes" >&5
24048 echo "${ECHO_T}yes" >&6
24049 else
24050 target_cpu=x86
24051 target_os=linux-gnu
24052 { echo "$as_me:$LINENO: WARNING: no" >&5
24053 echo "$as_me: WARNING: no" >&2;}
24055 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
24056 ac_dests="include/jni_md.h"
24057 while test -n "$ac_sources"; do
24058 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24059 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24060 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24061 done
24062 ac_config_links="$ac_config_links $ac_config_links_1"
24067 user_specified_javac=
24071 # Check whether --with-gcj or --without-gcj was given.
24072 if test "${with_gcj+set}" = set; then
24073 withval="$with_gcj"
24075 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
24077 if test "x${withval}" != x; then
24078 if test -f "${withval}"; then
24079 GCJ="${withval}"
24080 else
24081 # Extract the first word of ""${withval}"", so it can be a program name with args.
24082 set dummy "${withval}"; ac_word=$2
24083 echo "$as_me:$LINENO: checking for $ac_word" >&5
24084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24085 if test "${ac_cv_path_GCJ+set}" = set; then
24086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088 case $GCJ in
24089 [\\/]* | ?:[\\/]*)
24090 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
24093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24094 for as_dir in $PATH
24096 IFS=$as_save_IFS
24097 test -z "$as_dir" && as_dir=.
24098 for ac_exec_ext in '' $ac_executable_extensions; do
24099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24100 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
24101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24102 break 2
24104 done
24105 done
24108 esac
24110 GCJ=$ac_cv_path_GCJ
24112 if test -n "$GCJ"; then
24113 echo "$as_me:$LINENO: result: $GCJ" >&5
24114 echo "${ECHO_T}$GCJ" >&6
24115 else
24116 echo "$as_me:$LINENO: result: no" >&5
24117 echo "${ECHO_T}no" >&6
24121 else
24122 # Extract the first word of ""gcj"", so it can be a program name with args.
24123 set dummy "gcj"; ac_word=$2
24124 echo "$as_me:$LINENO: checking for $ac_word" >&5
24125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24126 if test "${ac_cv_path_GCJ+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24128 else
24129 case $GCJ in
24130 [\\/]* | ?:[\\/]*)
24131 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
24134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24135 for as_dir in $PATH
24137 IFS=$as_save_IFS
24138 test -z "$as_dir" && as_dir=.
24139 for ac_exec_ext in '' $ac_executable_extensions; do
24140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24141 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
24142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24143 break 2
24145 done
24146 done
24149 esac
24151 GCJ=$ac_cv_path_GCJ
24153 if test -n "$GCJ"; then
24154 echo "$as_me:$LINENO: result: $GCJ" >&5
24155 echo "${ECHO_T}$GCJ" >&6
24156 else
24157 echo "$as_me:$LINENO: result: no" >&5
24158 echo "${ECHO_T}no" >&6
24162 if test "x$GCJ" != x; then
24163 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
24164 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
24165 ac_ext=c
24166 ac_cpp='$CPP $CPPFLAGS'
24167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24171 cat >conftest.$ac_ext <<_ACEOF
24172 #if __GNUC__ <= 3
24173 #error GCJ 4.0.0 or higher is required
24174 #endif
24176 _ACEOF
24177 $GCJ -E conftest.c > /dev/null
24178 gcj_4_result=$?
24179 if test "x$gcj_4_result" = "x0"; then
24180 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
24181 echo "${ECHO_T}4.0 or higher found" >&6
24182 else
24183 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
24184 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
24186 ac_ext=c
24187 ac_cpp='$CPP $CPPFLAGS'
24188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24194 else
24195 if test "x${withval}" != xno; then
24197 if test "x" != x; then
24198 if test -f ""; then
24199 GCJ=""
24200 else
24201 # Extract the first word of """", so it can be a program name with args.
24202 set dummy ""; ac_word=$2
24203 echo "$as_me:$LINENO: checking for $ac_word" >&5
24204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24205 if test "${ac_cv_path_GCJ+set}" = set; then
24206 echo $ECHO_N "(cached) $ECHO_C" >&6
24207 else
24208 case $GCJ in
24209 [\\/]* | ?:[\\/]*)
24210 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
24213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24214 for as_dir in $PATH
24216 IFS=$as_save_IFS
24217 test -z "$as_dir" && as_dir=.
24218 for ac_exec_ext in '' $ac_executable_extensions; do
24219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24220 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
24221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24222 break 2
24224 done
24225 done
24228 esac
24230 GCJ=$ac_cv_path_GCJ
24232 if test -n "$GCJ"; then
24233 echo "$as_me:$LINENO: result: $GCJ" >&5
24234 echo "${ECHO_T}$GCJ" >&6
24235 else
24236 echo "$as_me:$LINENO: result: no" >&5
24237 echo "${ECHO_T}no" >&6
24241 else
24242 # Extract the first word of ""gcj"", so it can be a program name with args.
24243 set dummy "gcj"; 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_GCJ+set}" = set; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24248 else
24249 case $GCJ in
24250 [\\/]* | ?:[\\/]*)
24251 ac_cv_path_GCJ="$GCJ" # 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_GCJ="$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
24269 esac
24271 GCJ=$ac_cv_path_GCJ
24273 if test -n "$GCJ"; then
24274 echo "$as_me:$LINENO: result: $GCJ" >&5
24275 echo "${ECHO_T}$GCJ" >&6
24276 else
24277 echo "$as_me:$LINENO: result: no" >&5
24278 echo "${ECHO_T}no" >&6
24282 if test "x$GCJ" != x; then
24283 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
24284 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
24285 ac_ext=c
24286 ac_cpp='$CPP $CPPFLAGS'
24287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24291 cat >conftest.$ac_ext <<_ACEOF
24292 #if __GNUC__ <= 3
24293 #error GCJ 4.0.0 or higher is required
24294 #endif
24296 _ACEOF
24297 $GCJ -E conftest.c > /dev/null
24298 gcj_4_result=$?
24299 if test "x$gcj_4_result" = "x0"; then
24300 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
24301 echo "${ECHO_T}4.0 or higher found" >&6
24302 else
24303 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
24304 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
24306 ac_ext=c
24307 ac_cpp='$CPP $CPPFLAGS'
24308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24316 user_specified_javac=gcj
24318 else
24321 if test "x" != x; then
24322 if test -f ""; then
24323 GCJ=""
24324 else
24325 # Extract the first word of """", so it can be a program name with args.
24326 set dummy ""; ac_word=$2
24327 echo "$as_me:$LINENO: checking for $ac_word" >&5
24328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24329 if test "${ac_cv_path_GCJ+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332 case $GCJ in
24333 [\\/]* | ?:[\\/]*)
24334 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
24337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24338 for as_dir in $PATH
24340 IFS=$as_save_IFS
24341 test -z "$as_dir" && as_dir=.
24342 for ac_exec_ext in '' $ac_executable_extensions; do
24343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24344 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
24345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24346 break 2
24348 done
24349 done
24352 esac
24354 GCJ=$ac_cv_path_GCJ
24356 if test -n "$GCJ"; then
24357 echo "$as_me:$LINENO: result: $GCJ" >&5
24358 echo "${ECHO_T}$GCJ" >&6
24359 else
24360 echo "$as_me:$LINENO: result: no" >&5
24361 echo "${ECHO_T}no" >&6
24365 else
24366 # Extract the first word of ""gcj"", so it can be a program name with args.
24367 set dummy "gcj"; ac_word=$2
24368 echo "$as_me:$LINENO: checking for $ac_word" >&5
24369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24370 if test "${ac_cv_path_GCJ+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24372 else
24373 case $GCJ in
24374 [\\/]* | ?:[\\/]*)
24375 ac_cv_path_GCJ="$GCJ" # Let the user override the test with a path.
24378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24379 for as_dir in $PATH
24381 IFS=$as_save_IFS
24382 test -z "$as_dir" && as_dir=.
24383 for ac_exec_ext in '' $ac_executable_extensions; do
24384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24385 ac_cv_path_GCJ="$as_dir/$ac_word$ac_exec_ext"
24386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24387 break 2
24389 done
24390 done
24393 esac
24395 GCJ=$ac_cv_path_GCJ
24397 if test -n "$GCJ"; then
24398 echo "$as_me:$LINENO: result: $GCJ" >&5
24399 echo "${ECHO_T}$GCJ" >&6
24400 else
24401 echo "$as_me:$LINENO: result: no" >&5
24402 echo "${ECHO_T}no" >&6
24406 if test "x$GCJ" != x; then
24407 echo "$as_me:$LINENO: checking gcj version 4.0" >&5
24408 echo $ECHO_N "checking gcj version 4.0... $ECHO_C" >&6
24409 ac_ext=c
24410 ac_cpp='$CPP $CPPFLAGS'
24411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24415 cat >conftest.$ac_ext <<_ACEOF
24416 #if __GNUC__ <= 3
24417 #error GCJ 4.0.0 or higher is required
24418 #endif
24420 _ACEOF
24421 $GCJ -E conftest.c > /dev/null
24422 gcj_4_result=$?
24423 if test "x$gcj_4_result" = "x0"; then
24424 echo "$as_me:$LINENO: result: 4.0 or higher found" >&5
24425 echo "${ECHO_T}4.0 or higher found" >&6
24426 else
24427 { echo "$as_me:$LINENO: WARNING: 4.0 or higher required" >&5
24428 echo "$as_me: WARNING: 4.0 or higher required" >&2;}
24430 ac_ext=c
24431 ac_cpp='$CPP $CPPFLAGS'
24432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24444 # Check whether --with-jikes or --without-jikes was given.
24445 if test "${with_jikes+set}" = set; then
24446 withval="$with_jikes"
24448 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
24450 if test "x${withval}" != x; then
24451 if test -f "${withval}"; then
24452 JIKES="${withval}"
24453 else
24454 # Extract the first word of ""${withval}"", so it can be a program name with args.
24455 set dummy "${withval}"; ac_word=$2
24456 echo "$as_me:$LINENO: checking for $ac_word" >&5
24457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24458 if test "${ac_cv_path_JIKES+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 else
24461 case $JIKES in
24462 [\\/]* | ?:[\\/]*)
24463 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
24466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24467 for as_dir in $PATH
24469 IFS=$as_save_IFS
24470 test -z "$as_dir" && as_dir=.
24471 for ac_exec_ext in '' $ac_executable_extensions; do
24472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24473 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
24474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24475 break 2
24477 done
24478 done
24481 esac
24483 JIKES=$ac_cv_path_JIKES
24485 if test -n "$JIKES"; then
24486 echo "$as_me:$LINENO: result: $JIKES" >&5
24487 echo "${ECHO_T}$JIKES" >&6
24488 else
24489 echo "$as_me:$LINENO: result: no" >&5
24490 echo "${ECHO_T}no" >&6
24494 else
24495 # Extract the first word of ""jikes"", so it can be a program name with args.
24496 set dummy "jikes"; ac_word=$2
24497 echo "$as_me:$LINENO: checking for $ac_word" >&5
24498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24499 if test "${ac_cv_path_JIKES+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502 case $JIKES in
24503 [\\/]* | ?:[\\/]*)
24504 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
24507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24508 for as_dir in $PATH
24510 IFS=$as_save_IFS
24511 test -z "$as_dir" && as_dir=.
24512 for ac_exec_ext in '' $ac_executable_extensions; do
24513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24514 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
24515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24516 break 2
24518 done
24519 done
24522 esac
24524 JIKES=$ac_cv_path_JIKES
24526 if test -n "$JIKES"; then
24527 echo "$as_me:$LINENO: result: $JIKES" >&5
24528 echo "${ECHO_T}$JIKES" >&6
24529 else
24530 echo "$as_me:$LINENO: result: no" >&5
24531 echo "${ECHO_T}no" >&6
24535 if test "x$JIKES" != "x"; then
24536 echo "$as_me:$LINENO: checking jikes version" >&5
24537 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
24538 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
24539 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
24540 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
24541 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
24542 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
24543 JIKES=""
24546 if test "x$JIKES" != "x"; then
24547 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
24548 echo "${ECHO_T}$JIKES_VERSION" >&6
24549 else
24550 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
24551 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
24554 JIKESENCODING=
24555 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
24556 JIKESENCODING='-encoding UTF-8'
24560 JIKESWARNINGS="+Pno-switchcheck"
24561 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
24562 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
24563 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
24570 else
24571 if test "x${withval}" != xno; then
24573 if test "x" != x; then
24574 if test -f ""; then
24575 JIKES=""
24576 else
24577 # Extract the first word of """", so it can be a program name with args.
24578 set dummy ""; ac_word=$2
24579 echo "$as_me:$LINENO: checking for $ac_word" >&5
24580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24581 if test "${ac_cv_path_JIKES+set}" = set; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 else
24584 case $JIKES in
24585 [\\/]* | ?:[\\/]*)
24586 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
24589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24590 for as_dir in $PATH
24592 IFS=$as_save_IFS
24593 test -z "$as_dir" && as_dir=.
24594 for ac_exec_ext in '' $ac_executable_extensions; do
24595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24596 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
24597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24598 break 2
24600 done
24601 done
24604 esac
24606 JIKES=$ac_cv_path_JIKES
24608 if test -n "$JIKES"; then
24609 echo "$as_me:$LINENO: result: $JIKES" >&5
24610 echo "${ECHO_T}$JIKES" >&6
24611 else
24612 echo "$as_me:$LINENO: result: no" >&5
24613 echo "${ECHO_T}no" >&6
24617 else
24618 # Extract the first word of ""jikes"", so it can be a program name with args.
24619 set dummy "jikes"; ac_word=$2
24620 echo "$as_me:$LINENO: checking for $ac_word" >&5
24621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24622 if test "${ac_cv_path_JIKES+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24624 else
24625 case $JIKES in
24626 [\\/]* | ?:[\\/]*)
24627 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
24630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631 for as_dir in $PATH
24633 IFS=$as_save_IFS
24634 test -z "$as_dir" && as_dir=.
24635 for ac_exec_ext in '' $ac_executable_extensions; do
24636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24637 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
24638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24639 break 2
24641 done
24642 done
24645 esac
24647 JIKES=$ac_cv_path_JIKES
24649 if test -n "$JIKES"; then
24650 echo "$as_me:$LINENO: result: $JIKES" >&5
24651 echo "${ECHO_T}$JIKES" >&6
24652 else
24653 echo "$as_me:$LINENO: result: no" >&5
24654 echo "${ECHO_T}no" >&6
24658 if test "x$JIKES" != "x"; then
24659 echo "$as_me:$LINENO: checking jikes version" >&5
24660 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
24661 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
24662 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
24663 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
24664 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
24665 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
24666 JIKES=""
24669 if test "x$JIKES" != "x"; then
24670 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
24671 echo "${ECHO_T}$JIKES_VERSION" >&6
24672 else
24673 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
24674 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
24677 JIKESENCODING=
24678 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
24679 JIKESENCODING='-encoding UTF-8'
24683 JIKESWARNINGS="+Pno-switchcheck"
24684 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
24685 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
24686 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
24695 user_specified_javac=jikes
24697 else
24700 if test "x" != x; then
24701 if test -f ""; then
24702 JIKES=""
24703 else
24704 # Extract the first word of """", so it can be a program name with args.
24705 set dummy ""; ac_word=$2
24706 echo "$as_me:$LINENO: checking for $ac_word" >&5
24707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24708 if test "${ac_cv_path_JIKES+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 else
24711 case $JIKES in
24712 [\\/]* | ?:[\\/]*)
24713 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
24716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24717 for as_dir in $PATH
24719 IFS=$as_save_IFS
24720 test -z "$as_dir" && as_dir=.
24721 for ac_exec_ext in '' $ac_executable_extensions; do
24722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24723 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
24724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24725 break 2
24727 done
24728 done
24731 esac
24733 JIKES=$ac_cv_path_JIKES
24735 if test -n "$JIKES"; then
24736 echo "$as_me:$LINENO: result: $JIKES" >&5
24737 echo "${ECHO_T}$JIKES" >&6
24738 else
24739 echo "$as_me:$LINENO: result: no" >&5
24740 echo "${ECHO_T}no" >&6
24744 else
24745 # Extract the first word of ""jikes"", so it can be a program name with args.
24746 set dummy "jikes"; ac_word=$2
24747 echo "$as_me:$LINENO: checking for $ac_word" >&5
24748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24749 if test "${ac_cv_path_JIKES+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24751 else
24752 case $JIKES in
24753 [\\/]* | ?:[\\/]*)
24754 ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
24757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24758 for as_dir in $PATH
24760 IFS=$as_save_IFS
24761 test -z "$as_dir" && as_dir=.
24762 for ac_exec_ext in '' $ac_executable_extensions; do
24763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24764 ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
24765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24766 break 2
24768 done
24769 done
24772 esac
24774 JIKES=$ac_cv_path_JIKES
24776 if test -n "$JIKES"; then
24777 echo "$as_me:$LINENO: result: $JIKES" >&5
24778 echo "${ECHO_T}$JIKES" >&6
24779 else
24780 echo "$as_me:$LINENO: result: no" >&5
24781 echo "${ECHO_T}no" >&6
24785 if test "x$JIKES" != "x"; then
24786 echo "$as_me:$LINENO: checking jikes version" >&5
24787 echo $ECHO_N "checking jikes version... $ECHO_C" >&6
24788 JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
24789 JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
24790 JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
24791 if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
24792 if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
24793 JIKES=""
24796 if test "x$JIKES" != "x"; then
24797 echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
24798 echo "${ECHO_T}$JIKES_VERSION" >&6
24799 else
24800 { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
24801 echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
24804 JIKESENCODING=
24805 if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
24806 JIKESENCODING='-encoding UTF-8'
24810 JIKESWARNINGS="+Pno-switchcheck"
24811 if test "x$JIKES_VERSION_MAJOR" = x"1" ; then
24812 if ! test "x$JIKES_VERSION_MINOR" = x"19"; then
24813 JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow"
24826 # Check whether --with-kjc or --without-kjc was given.
24827 if test "${with_kjc+set}" = set; then
24828 withval="$with_kjc"
24830 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
24832 if test "x${withval}" != x; then
24833 if test -f "${withval}"; then
24834 KJC="${withval}"
24835 else
24836 # Extract the first word of ""${withval}"", so it can be a program name with args.
24837 set dummy "${withval}"; ac_word=$2
24838 echo "$as_me:$LINENO: checking for $ac_word" >&5
24839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24840 if test "${ac_cv_path_KJC+set}" = set; then
24841 echo $ECHO_N "(cached) $ECHO_C" >&6
24842 else
24843 case $KJC in
24844 [\\/]* | ?:[\\/]*)
24845 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
24848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24849 for as_dir in $PATH
24851 IFS=$as_save_IFS
24852 test -z "$as_dir" && as_dir=.
24853 for ac_exec_ext in '' $ac_executable_extensions; do
24854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24855 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
24856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24857 break 2
24859 done
24860 done
24863 esac
24865 KJC=$ac_cv_path_KJC
24867 if test -n "$KJC"; then
24868 echo "$as_me:$LINENO: result: $KJC" >&5
24869 echo "${ECHO_T}$KJC" >&6
24870 else
24871 echo "$as_me:$LINENO: result: no" >&5
24872 echo "${ECHO_T}no" >&6
24876 else
24877 # Extract the first word of ""kJC"", so it can be a program name with args.
24878 set dummy "kJC"; ac_word=$2
24879 echo "$as_me:$LINENO: checking for $ac_word" >&5
24880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24881 if test "${ac_cv_path_KJC+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 else
24884 case $KJC in
24885 [\\/]* | ?:[\\/]*)
24886 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
24889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24890 for as_dir in $PATH
24892 IFS=$as_save_IFS
24893 test -z "$as_dir" && as_dir=.
24894 for ac_exec_ext in '' $ac_executable_extensions; do
24895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24896 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
24897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24898 break 2
24900 done
24901 done
24904 esac
24906 KJC=$ac_cv_path_KJC
24908 if test -n "$KJC"; then
24909 echo "$as_me:$LINENO: result: $KJC" >&5
24910 echo "${ECHO_T}$KJC" >&6
24911 else
24912 echo "$as_me:$LINENO: result: no" >&5
24913 echo "${ECHO_T}no" >&6
24918 else
24919 if test "x${withval}" != xno; then
24921 if test "x" != x; then
24922 if test -f ""; then
24923 KJC=""
24924 else
24925 # Extract the first word of """", so it can be a program name with args.
24926 set dummy ""; ac_word=$2
24927 echo "$as_me:$LINENO: checking for $ac_word" >&5
24928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24929 if test "${ac_cv_path_KJC+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 else
24932 case $KJC in
24933 [\\/]* | ?:[\\/]*)
24934 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
24937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24938 for as_dir in $PATH
24940 IFS=$as_save_IFS
24941 test -z "$as_dir" && as_dir=.
24942 for ac_exec_ext in '' $ac_executable_extensions; do
24943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24944 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
24945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24946 break 2
24948 done
24949 done
24952 esac
24954 KJC=$ac_cv_path_KJC
24956 if test -n "$KJC"; then
24957 echo "$as_me:$LINENO: result: $KJC" >&5
24958 echo "${ECHO_T}$KJC" >&6
24959 else
24960 echo "$as_me:$LINENO: result: no" >&5
24961 echo "${ECHO_T}no" >&6
24965 else
24966 # Extract the first word of ""kJC"", so it can be a program name with args.
24967 set dummy "kJC"; ac_word=$2
24968 echo "$as_me:$LINENO: checking for $ac_word" >&5
24969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24970 if test "${ac_cv_path_KJC+set}" = set; then
24971 echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973 case $KJC in
24974 [\\/]* | ?:[\\/]*)
24975 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
24978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24979 for as_dir in $PATH
24981 IFS=$as_save_IFS
24982 test -z "$as_dir" && as_dir=.
24983 for ac_exec_ext in '' $ac_executable_extensions; do
24984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24985 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
24986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24987 break 2
24989 done
24990 done
24993 esac
24995 KJC=$ac_cv_path_KJC
24997 if test -n "$KJC"; then
24998 echo "$as_me:$LINENO: result: $KJC" >&5
24999 echo "${ECHO_T}$KJC" >&6
25000 else
25001 echo "$as_me:$LINENO: result: no" >&5
25002 echo "${ECHO_T}no" >&6
25009 user_specified_javac=kjc
25011 else
25014 if test "x" != x; then
25015 if test -f ""; then
25016 KJC=""
25017 else
25018 # Extract the first word of """", so it can be a program name with args.
25019 set dummy ""; ac_word=$2
25020 echo "$as_me:$LINENO: checking for $ac_word" >&5
25021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25022 if test "${ac_cv_path_KJC+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025 case $KJC in
25026 [\\/]* | ?:[\\/]*)
25027 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
25030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25031 for as_dir in $PATH
25033 IFS=$as_save_IFS
25034 test -z "$as_dir" && as_dir=.
25035 for ac_exec_ext in '' $ac_executable_extensions; do
25036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25037 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
25038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25039 break 2
25041 done
25042 done
25045 esac
25047 KJC=$ac_cv_path_KJC
25049 if test -n "$KJC"; then
25050 echo "$as_me:$LINENO: result: $KJC" >&5
25051 echo "${ECHO_T}$KJC" >&6
25052 else
25053 echo "$as_me:$LINENO: result: no" >&5
25054 echo "${ECHO_T}no" >&6
25058 else
25059 # Extract the first word of ""kJC"", so it can be a program name with args.
25060 set dummy "kJC"; ac_word=$2
25061 echo "$as_me:$LINENO: checking for $ac_word" >&5
25062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25063 if test "${ac_cv_path_KJC+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066 case $KJC in
25067 [\\/]* | ?:[\\/]*)
25068 ac_cv_path_KJC="$KJC" # Let the user override the test with a path.
25071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25072 for as_dir in $PATH
25074 IFS=$as_save_IFS
25075 test -z "$as_dir" && as_dir=.
25076 for ac_exec_ext in '' $ac_executable_extensions; do
25077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25078 ac_cv_path_KJC="$as_dir/$ac_word$ac_exec_ext"
25079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25080 break 2
25082 done
25083 done
25086 esac
25088 KJC=$ac_cv_path_KJC
25090 if test -n "$KJC"; then
25091 echo "$as_me:$LINENO: result: $KJC" >&5
25092 echo "${ECHO_T}$KJC" >&6
25093 else
25094 echo "$as_me:$LINENO: result: no" >&5
25095 echo "${ECHO_T}no" >&6
25106 # Check whether --with-ecj or --without-ecj was given.
25107 if test "${with_ecj+set}" = set; then
25108 withval="$with_ecj"
25110 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
25112 if test "x${withval}" != x; then
25113 if test -f "${withval}"; then
25114 ECJ="${withval}"
25115 else
25116 # Extract the first word of ""${withval}"", so it can be a program name with args.
25117 set dummy "${withval}"; ac_word=$2
25118 echo "$as_me:$LINENO: checking for $ac_word" >&5
25119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25120 if test "${ac_cv_path_ECJ+set}" = set; then
25121 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 else
25123 case $ECJ in
25124 [\\/]* | ?:[\\/]*)
25125 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
25128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25129 for as_dir in $PATH
25131 IFS=$as_save_IFS
25132 test -z "$as_dir" && as_dir=.
25133 for ac_exec_ext in '' $ac_executable_extensions; do
25134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25135 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
25136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25137 break 2
25139 done
25140 done
25143 esac
25145 ECJ=$ac_cv_path_ECJ
25147 if test -n "$ECJ"; then
25148 echo "$as_me:$LINENO: result: $ECJ" >&5
25149 echo "${ECHO_T}$ECJ" >&6
25150 else
25151 echo "$as_me:$LINENO: result: no" >&5
25152 echo "${ECHO_T}no" >&6
25156 else
25157 # Extract the first word of ""ecj"", so it can be a program name with args.
25158 set dummy "ecj"; ac_word=$2
25159 echo "$as_me:$LINENO: checking for $ac_word" >&5
25160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25161 if test "${ac_cv_path_ECJ+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164 case $ECJ in
25165 [\\/]* | ?:[\\/]*)
25166 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
25169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25170 for as_dir in $PATH
25172 IFS=$as_save_IFS
25173 test -z "$as_dir" && as_dir=.
25174 for ac_exec_ext in '' $ac_executable_extensions; do
25175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25176 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
25177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25178 break 2
25180 done
25181 done
25184 esac
25186 ECJ=$ac_cv_path_ECJ
25188 if test -n "$ECJ"; then
25189 echo "$as_me:$LINENO: result: $ECJ" >&5
25190 echo "${ECHO_T}$ECJ" >&6
25191 else
25192 echo "$as_me:$LINENO: result: no" >&5
25193 echo "${ECHO_T}no" >&6
25198 else
25199 if test "x${withval}" != xno; then
25201 if test "x" != x; then
25202 if test -f ""; then
25203 ECJ=""
25204 else
25205 # Extract the first word of """", so it can be a program name with args.
25206 set dummy ""; ac_word=$2
25207 echo "$as_me:$LINENO: checking for $ac_word" >&5
25208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25209 if test "${ac_cv_path_ECJ+set}" = set; then
25210 echo $ECHO_N "(cached) $ECHO_C" >&6
25211 else
25212 case $ECJ in
25213 [\\/]* | ?:[\\/]*)
25214 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
25217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25218 for as_dir in $PATH
25220 IFS=$as_save_IFS
25221 test -z "$as_dir" && as_dir=.
25222 for ac_exec_ext in '' $ac_executable_extensions; do
25223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25224 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
25225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25226 break 2
25228 done
25229 done
25232 esac
25234 ECJ=$ac_cv_path_ECJ
25236 if test -n "$ECJ"; then
25237 echo "$as_me:$LINENO: result: $ECJ" >&5
25238 echo "${ECHO_T}$ECJ" >&6
25239 else
25240 echo "$as_me:$LINENO: result: no" >&5
25241 echo "${ECHO_T}no" >&6
25245 else
25246 # Extract the first word of ""ecj"", so it can be a program name with args.
25247 set dummy "ecj"; ac_word=$2
25248 echo "$as_me:$LINENO: checking for $ac_word" >&5
25249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25250 if test "${ac_cv_path_ECJ+set}" = set; then
25251 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 else
25253 case $ECJ in
25254 [\\/]* | ?:[\\/]*)
25255 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
25258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25259 for as_dir in $PATH
25261 IFS=$as_save_IFS
25262 test -z "$as_dir" && as_dir=.
25263 for ac_exec_ext in '' $ac_executable_extensions; do
25264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25265 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
25266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25267 break 2
25269 done
25270 done
25273 esac
25275 ECJ=$ac_cv_path_ECJ
25277 if test -n "$ECJ"; then
25278 echo "$as_me:$LINENO: result: $ECJ" >&5
25279 echo "${ECHO_T}$ECJ" >&6
25280 else
25281 echo "$as_me:$LINENO: result: no" >&5
25282 echo "${ECHO_T}no" >&6
25289 user_specified_javac=ecj
25291 else
25294 if test "x" != x; then
25295 if test -f ""; then
25296 ECJ=""
25297 else
25298 # Extract the first word of """", so it can be a program name with args.
25299 set dummy ""; ac_word=$2
25300 echo "$as_me:$LINENO: checking for $ac_word" >&5
25301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25302 if test "${ac_cv_path_ECJ+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25304 else
25305 case $ECJ in
25306 [\\/]* | ?:[\\/]*)
25307 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
25310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25311 for as_dir in $PATH
25313 IFS=$as_save_IFS
25314 test -z "$as_dir" && as_dir=.
25315 for ac_exec_ext in '' $ac_executable_extensions; do
25316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25317 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
25318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25319 break 2
25321 done
25322 done
25325 esac
25327 ECJ=$ac_cv_path_ECJ
25329 if test -n "$ECJ"; then
25330 echo "$as_me:$LINENO: result: $ECJ" >&5
25331 echo "${ECHO_T}$ECJ" >&6
25332 else
25333 echo "$as_me:$LINENO: result: no" >&5
25334 echo "${ECHO_T}no" >&6
25338 else
25339 # Extract the first word of ""ecj"", so it can be a program name with args.
25340 set dummy "ecj"; ac_word=$2
25341 echo "$as_me:$LINENO: checking for $ac_word" >&5
25342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25343 if test "${ac_cv_path_ECJ+set}" = set; then
25344 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 else
25346 case $ECJ in
25347 [\\/]* | ?:[\\/]*)
25348 ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
25351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25352 for as_dir in $PATH
25354 IFS=$as_save_IFS
25355 test -z "$as_dir" && as_dir=.
25356 for ac_exec_ext in '' $ac_executable_extensions; do
25357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25358 ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
25359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25360 break 2
25362 done
25363 done
25366 esac
25368 ECJ=$ac_cv_path_ECJ
25370 if test -n "$ECJ"; then
25371 echo "$as_me:$LINENO: result: $ECJ" >&5
25372 echo "${ECHO_T}$ECJ" >&6
25373 else
25374 echo "$as_me:$LINENO: result: no" >&5
25375 echo "${ECHO_T}no" >&6
25386 # Check whether --with-javac or --without-javac was given.
25387 if test "${with_javac+set}" = set; then
25388 withval="$with_javac"
25390 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
25392 if test "x${withval}" != x; then
25393 JAVAC="${withval}"
25394 else
25395 # Extract the first word of ""javac"", so it can be a program name with args.
25396 set dummy "javac"; ac_word=$2
25397 echo "$as_me:$LINENO: checking for $ac_word" >&5
25398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25399 if test "${ac_cv_path_JAVAC+set}" = set; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 else
25402 case $JAVAC in
25403 [\\/]* | ?:[\\/]*)
25404 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25408 for as_dir in $PATH
25410 IFS=$as_save_IFS
25411 test -z "$as_dir" && as_dir=.
25412 for ac_exec_ext in '' $ac_executable_extensions; do
25413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25414 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25416 break 2
25418 done
25419 done
25422 esac
25424 JAVAC=$ac_cv_path_JAVAC
25426 if test -n "$JAVAC"; then
25427 echo "$as_me:$LINENO: result: $JAVAC" >&5
25428 echo "${ECHO_T}$JAVAC" >&6
25429 else
25430 echo "$as_me:$LINENO: result: no" >&5
25431 echo "${ECHO_T}no" >&6
25436 else
25437 if test "x${withval}" != xno; then
25439 if test "x" != x; then
25440 JAVAC=""
25441 else
25442 # Extract the first word of ""javac"", so it can be a program name with args.
25443 set dummy "javac"; ac_word=$2
25444 echo "$as_me:$LINENO: checking for $ac_word" >&5
25445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25446 if test "${ac_cv_path_JAVAC+set}" = set; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 else
25449 case $JAVAC in
25450 [\\/]* | ?:[\\/]*)
25451 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25455 for as_dir in $PATH
25457 IFS=$as_save_IFS
25458 test -z "$as_dir" && as_dir=.
25459 for ac_exec_ext in '' $ac_executable_extensions; do
25460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25461 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25463 break 2
25465 done
25466 done
25469 esac
25471 JAVAC=$ac_cv_path_JAVAC
25473 if test -n "$JAVAC"; then
25474 echo "$as_me:$LINENO: result: $JAVAC" >&5
25475 echo "${ECHO_T}$JAVAC" >&6
25476 else
25477 echo "$as_me:$LINENO: result: no" >&5
25478 echo "${ECHO_T}no" >&6
25485 user_specified_javac=javac
25487 else
25490 if test "x" != x; then
25491 JAVAC=""
25492 else
25493 # Extract the first word of ""javac"", so it can be a program name with args.
25494 set dummy "javac"; ac_word=$2
25495 echo "$as_me:$LINENO: checking for $ac_word" >&5
25496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25497 if test "${ac_cv_path_JAVAC+set}" = set; then
25498 echo $ECHO_N "(cached) $ECHO_C" >&6
25499 else
25500 case $JAVAC in
25501 [\\/]* | ?:[\\/]*)
25502 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25506 for as_dir in $PATH
25508 IFS=$as_save_IFS
25509 test -z "$as_dir" && as_dir=.
25510 for ac_exec_ext in '' $ac_executable_extensions; do
25511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25512 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25514 break 2
25516 done
25517 done
25520 esac
25522 JAVAC=$ac_cv_path_JAVAC
25524 if test -n "$JAVAC"; then
25525 echo "$as_me:$LINENO: result: $JAVAC" >&5
25526 echo "${ECHO_T}$JAVAC" >&6
25527 else
25528 echo "$as_me:$LINENO: result: no" >&5
25529 echo "${ECHO_T}no" >&6
25539 if test "x${user_specified_javac}" = x; then
25542 if test "x${GCJ}" != x; then
25543 FOUND_GCJ_TRUE=
25544 FOUND_GCJ_FALSE='#'
25545 else
25546 FOUND_GCJ_TRUE='#'
25547 FOUND_GCJ_FALSE=
25552 if test "x${JIKES}" != x; then
25553 FOUND_JIKES_TRUE=
25554 FOUND_JIKES_FALSE='#'
25555 else
25556 FOUND_JIKES_TRUE='#'
25557 FOUND_JIKES_FALSE=
25562 if test "x${ECJ}" != x; then
25563 FOUND_ECJ_TRUE=
25564 FOUND_ECJ_FALSE='#'
25565 else
25566 FOUND_ECJ_TRUE='#'
25567 FOUND_ECJ_FALSE=
25572 if test "x${JAVAC}" != x; then
25573 FOUND_JAVAC_TRUE=
25574 FOUND_JAVAC_FALSE='#'
25575 else
25576 FOUND_JAVAC_TRUE='#'
25577 FOUND_JAVAC_FALSE=
25580 else
25583 if test "x${user_specified_javac}" = xgcj; then
25584 FOUND_GCJ_TRUE=
25585 FOUND_GCJ_FALSE='#'
25586 else
25587 FOUND_GCJ_TRUE='#'
25588 FOUND_GCJ_FALSE=
25593 if test "x${user_specified_javac}" = xjikes; then
25594 FOUND_JIKES_TRUE=
25595 FOUND_JIKES_FALSE='#'
25596 else
25597 FOUND_JIKES_TRUE='#'
25598 FOUND_JIKES_FALSE=
25603 if test "x${user_specified_javac}" = xecj; then
25604 FOUND_ECJ_TRUE=
25605 FOUND_ECJ_FALSE='#'
25606 else
25607 FOUND_ECJ_TRUE='#'
25608 FOUND_ECJ_FALSE=
25613 if test "x${user_specified_javac}" = xjavac; then
25614 FOUND_JAVAC_TRUE=
25615 FOUND_JAVAC_FALSE='#'
25616 else
25617 FOUND_JAVAC_TRUE='#'
25618 FOUND_JAVAC_FALSE=
25624 if test "x${user_specified_javac}" = xkjc; then
25625 FOUND_KJC_TRUE=
25626 FOUND_KJC_FALSE='#'
25627 else
25628 FOUND_KJC_TRUE='#'
25629 FOUND_KJC_FALSE=
25633 ## GCJ LOCAL
25634 if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${ECJ}" = x \
25635 && test "x${JAVAC}" = x && test "x${user_specified_javac}" != xkjc
25636 then
25637 { { echo "$as_me:$LINENO: error: cannot find javac, try --with-ecj" >&5
25638 echo "$as_me: error: cannot find javac, try --with-ecj" >&2;}
25639 { (exit 1); exit 1; }; }
25641 ## END GCJ LOCAL
25646 # Check whether --with-classpath or --without-classpath was given.
25647 if test "${with_classpath+set}" = set; then
25648 withval="$with_classpath"
25650 if test "x${withval}" = xyes; then
25651 # set user classpath to CLASSPATH from env
25652 echo "$as_me:$LINENO: checking for classlib" >&5
25653 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
25654 USER_CLASSLIB=${CLASSPATH}
25656 echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
25657 echo "${ECHO_T}${USER_CLASSLIB}" >&6
25658 conditional_with_classlib=true
25659 elif test "x${withval}" != x && test "x${withval}" != xno; then
25660 # set user classpath to specified value
25661 echo "$as_me:$LINENO: checking for classlib" >&5
25662 echo $ECHO_N "checking for classlib... $ECHO_C" >&6
25663 USER_CLASSLIB=${withval}
25665 echo "$as_me:$LINENO: result: ${withval}" >&5
25666 echo "${ECHO_T}${withval}" >&6
25667 conditional_with_classlib=true
25670 else
25671 conditional_with_classlib=false
25675 if test "x${conditional_with_classlib}" = xtrue; then
25676 USER_SPECIFIED_CLASSLIB_TRUE=
25677 USER_SPECIFIED_CLASSLIB_FALSE='#'
25678 else
25679 USER_SPECIFIED_CLASSLIB_TRUE='#'
25680 USER_SPECIFIED_CLASSLIB_FALSE=
25685 # Check whether --with-vm-classes or --without-vm-classes was given.
25686 if test "${with_vm_classes+set}" = set; then
25687 withval="$with_vm_classes"
25688 vm_classes="$with_vm_classes"
25689 else
25690 vm_classes='${top_srcdir}/vm/reference'
25695 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25696 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
25697 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
25698 if test "${enable_maintainer_mode+set}" = set; then
25699 enableval="$enable_maintainer_mode"
25700 USE_MAINTAINER_MODE=$enableval
25701 else
25702 USE_MAINTAINER_MODE=no
25704 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25705 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
25708 if test $USE_MAINTAINER_MODE = yes; then
25709 MAINTAINER_MODE_TRUE=
25710 MAINTAINER_MODE_FALSE='#'
25711 else
25712 MAINTAINER_MODE_TRUE='#'
25713 MAINTAINER_MODE_FALSE=
25716 MAINT=$MAINTAINER_MODE_TRUE
25720 # Check whether --enable-debug or --disable-debug was given.
25721 if test "${enable_debug+set}" = set; then
25722 enableval="$enable_debug"
25723 case "${enableval}" in
25724 yes)
25725 LIBDEBUG="true"
25727 cat >>confdefs.h <<\_ACEOF
25728 #define DEBUG 1
25729 _ACEOF
25732 no) LIBDEBUG="false" ;;
25733 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
25734 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
25735 { (exit 1); exit 1; }; } ;;
25736 esac
25737 else
25738 LIBDEBUG="false"
25742 # Check whether --enable-load-library or --disable-load-library was given.
25743 if test "${enable_load_library+set}" = set; then
25744 enableval="$enable_load_library"
25745 case "${enableval}" in
25746 yes) INIT_LOAD_LIBRARY="true" ;;
25747 no) INIT_LOAD_LIBRARY="false" ;;
25748 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
25749 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
25750 { (exit 1); exit 1; }; } ;;
25751 esac
25752 else
25753 INIT_LOAD_LIBRARY="true"
25759 # Check whether --with-ecj-jar or --without-ecj-jar was given.
25760 if test "${with_ecj_jar+set}" = set; then
25761 withval="$with_ecj_jar"
25762 ECJ_JAR=$withval
25763 else
25764 if test -f $multi_basedir/ecj.jar; then
25765 ECJ_JAR='$(jardir)/ecj.jar'
25770 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
25771 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
25772 enableval="$enable_java_lang_system_explicit_initialization"
25773 case "${enableval}" in
25774 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
25775 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
25776 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
25777 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
25778 { (exit 1); exit 1; }; } ;;
25779 esac
25780 else
25781 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
25786 REMOVE=""
25789 # Extract the first word of "mkdir", so it can be a program name with args.
25790 set dummy mkdir; ac_word=$2
25791 echo "$as_me:$LINENO: checking for $ac_word" >&5
25792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25793 if test "${ac_cv_path_MKDIR+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796 case $MKDIR in
25797 [\\/]* | ?:[\\/]*)
25798 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
25801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25802 for as_dir in $PATH
25804 IFS=$as_save_IFS
25805 test -z "$as_dir" && as_dir=.
25806 for ac_exec_ext in '' $ac_executable_extensions; do
25807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25808 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
25809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25810 break 2
25812 done
25813 done
25816 esac
25818 MKDIR=$ac_cv_path_MKDIR
25820 if test -n "$MKDIR"; then
25821 echo "$as_me:$LINENO: result: $MKDIR" >&5
25822 echo "${ECHO_T}$MKDIR" >&6
25823 else
25824 echo "$as_me:$LINENO: result: no" >&5
25825 echo "${ECHO_T}no" >&6
25828 # Extract the first word of "cp", so it can be a program name with args.
25829 set dummy cp; ac_word=$2
25830 echo "$as_me:$LINENO: checking for $ac_word" >&5
25831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25832 if test "${ac_cv_path_CP+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835 case $CP in
25836 [\\/]* | ?:[\\/]*)
25837 ac_cv_path_CP="$CP" # Let the user override the test with a path.
25840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25841 for as_dir in $PATH
25843 IFS=$as_save_IFS
25844 test -z "$as_dir" && as_dir=.
25845 for ac_exec_ext in '' $ac_executable_extensions; do
25846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25847 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
25848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25849 break 2
25851 done
25852 done
25855 esac
25857 CP=$ac_cv_path_CP
25859 if test -n "$CP"; then
25860 echo "$as_me:$LINENO: result: $CP" >&5
25861 echo "${ECHO_T}$CP" >&6
25862 else
25863 echo "$as_me:$LINENO: result: no" >&5
25864 echo "${ECHO_T}no" >&6
25867 # Extract the first word of "date", so it can be a program name with args.
25868 set dummy date; ac_word=$2
25869 echo "$as_me:$LINENO: checking for $ac_word" >&5
25870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25871 if test "${ac_cv_path_DATE+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874 case $DATE in
25875 [\\/]* | ?:[\\/]*)
25876 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
25879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25880 for as_dir in $PATH
25882 IFS=$as_save_IFS
25883 test -z "$as_dir" && as_dir=.
25884 for ac_exec_ext in '' $ac_executable_extensions; do
25885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25886 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
25887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25888 break 2
25890 done
25891 done
25894 esac
25896 DATE=$ac_cv_path_DATE
25898 if test -n "$DATE"; then
25899 echo "$as_me:$LINENO: result: $DATE" >&5
25900 echo "${ECHO_T}$DATE" >&6
25901 else
25902 echo "$as_me:$LINENO: result: no" >&5
25903 echo "${ECHO_T}no" >&6
25907 # Extract the first word of "find", so it can be a program name with args.
25908 set dummy find; ac_word=$2
25909 echo "$as_me:$LINENO: checking for $ac_word" >&5
25910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25911 if test "${ac_cv_path_FIND+set}" = set; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25913 else
25914 case $FIND in
25915 [\\/]* | ?:[\\/]*)
25916 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
25919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25920 for as_dir in $PATH
25922 IFS=$as_save_IFS
25923 test -z "$as_dir" && as_dir=.
25924 for ac_exec_ext in '' $ac_executable_extensions; do
25925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25926 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
25927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25928 break 2
25930 done
25931 done
25934 esac
25936 FIND=$ac_cv_path_FIND
25938 if test -n "$FIND"; then
25939 echo "$as_me:$LINENO: result: $FIND" >&5
25940 echo "${ECHO_T}$FIND" >&6
25941 else
25942 echo "$as_me:$LINENO: result: no" >&5
25943 echo "${ECHO_T}no" >&6
25948 # Extract the first word of "zip", so it can be a program name with args.
25949 set dummy zip; ac_word=$2
25950 echo "$as_me:$LINENO: checking for $ac_word" >&5
25951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25952 if test "${ac_cv_path_ZIP+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 else
25955 case $ZIP in
25956 [\\/]* | ?:[\\/]*)
25957 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
25960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25961 for as_dir in $PATH
25963 IFS=$as_save_IFS
25964 test -z "$as_dir" && as_dir=.
25965 for ac_exec_ext in '' $ac_executable_extensions; do
25966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25967 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
25968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25969 break 2
25971 done
25972 done
25975 esac
25977 ZIP=$ac_cv_path_ZIP
25979 if test -n "$ZIP"; then
25980 echo "$as_me:$LINENO: result: $ZIP" >&5
25981 echo "${ECHO_T}$ZIP" >&6
25982 else
25983 echo "$as_me:$LINENO: result: no" >&5
25984 echo "${ECHO_T}no" >&6
25988 # Check whether --with-fastjar or --without-fastjar was given.
25989 if test "${with_fastjar+set}" = set; then
25990 withval="$with_fastjar"
25992 echo "$as_me:$LINENO: checking for user supplied fastjar" >&5
25993 echo $ECHO_N "checking for user supplied fastjar... $ECHO_C" >&6
25994 FASTJAR=${withval}
25995 echo "$as_me:$LINENO: result: ${FASTJAR}" >&5
25996 echo "${ECHO_T}${FASTJAR}" >&6
25998 else
25999 # Extract the first word of "fastjar", so it can be a program name with args.
26000 set dummy fastjar; ac_word=$2
26001 echo "$as_me:$LINENO: checking for $ac_word" >&5
26002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26003 if test "${ac_cv_path_FASTJAR+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 else
26006 case $FASTJAR in
26007 [\\/]* | ?:[\\/]*)
26008 ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
26011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26012 for as_dir in $PATH
26014 IFS=$as_save_IFS
26015 test -z "$as_dir" && as_dir=.
26016 for ac_exec_ext in '' $ac_executable_extensions; do
26017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26018 ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
26019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26020 break 2
26022 done
26023 done
26026 esac
26028 FASTJAR=$ac_cv_path_FASTJAR
26030 if test -n "$FASTJAR"; then
26031 echo "$as_me:$LINENO: result: $FASTJAR" >&5
26032 echo "${ECHO_T}$FASTJAR" >&6
26033 else
26034 echo "$as_me:$LINENO: result: no" >&5
26035 echo "${ECHO_T}no" >&6
26039 if test x"${FASTJAR}" != x; then
26040 ZIP=""
26044 # Check whether --with-glibj or --without-glibj was given.
26045 if test "${with_glibj+set}" = set; then
26046 withval="$with_glibj"
26048 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
26049 install_class_files=no
26050 build_class_files=yes
26051 use_zip=yes
26052 elif test "x${withval}" = xboth; then
26053 install_class_files=yes
26054 build_class_files=yes
26055 use_zip=yes
26056 elif test "x${withval}" = xflat; then
26057 install_class_files=yes
26058 build_class_files=yes
26059 use_zip=no
26060 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
26061 install_class_files=no
26062 build_class_files=no
26063 use_zip=no
26064 elif test "x${withval}" = xbuild; then
26065 install_class_files=no
26066 build_class_files=yes
26067 use_zip=no
26068 else
26069 { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
26070 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
26071 { (exit 1); exit 1; }; }
26074 else
26076 install_class_files=no
26077 use_zip=yes
26082 if test "x${use_zip}" = xyes; then
26083 INSTALL_GLIBJ_ZIP_TRUE=
26084 INSTALL_GLIBJ_ZIP_FALSE='#'
26085 else
26086 INSTALL_GLIBJ_ZIP_TRUE='#'
26087 INSTALL_GLIBJ_ZIP_FALSE=
26092 if test "x${install_class_files}" = xyes; then
26093 INSTALL_CLASS_FILES_TRUE=
26094 INSTALL_CLASS_FILES_FALSE='#'
26095 else
26096 INSTALL_CLASS_FILES_TRUE='#'
26097 INSTALL_CLASS_FILES_FALSE=
26102 if test "x${build_class_files}" = xyes; then
26103 BUILD_CLASS_FILES_TRUE=
26104 BUILD_CLASS_FILES_FALSE='#'
26105 else
26106 BUILD_CLASS_FILES_TRUE='#'
26107 BUILD_CLASS_FILES_FALSE=
26111 # Check whether --enable-examples or --disable-examples was given.
26112 if test "${enable_examples+set}" = set; then
26113 enableval="$enable_examples"
26114 case "${enableval}" in
26115 yes) EXAMPLESDIR="examples" ;;
26116 no) EXAMPLESDIR="" ;;
26117 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
26118 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
26119 { (exit 1); exit 1; }; } ;;
26120 esac
26121 else
26122 EXAMPLESDIR="examples"
26124 if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
26125 EXAMPLESDIR=""
26132 # Check whether --with-gjdoc or --without-gjdoc was given.
26133 if test "${with_gjdoc+set}" = set; then
26134 withval="$with_gjdoc"
26135 if test "x${withval}" = xno; then
26136 WITH_GJDOC=no;
26137 elif test "x${withval}" = xyes -o "x{withval}" = x; then
26138 WITH_GJDOC=yes;
26139 # Extract the first word of "gjdoc", so it can be a program name with args.
26140 set dummy gjdoc; ac_word=$2
26141 echo "$as_me:$LINENO: checking for $ac_word" >&5
26142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26143 if test "${ac_cv_path_GJDOC+set}" = set; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26145 else
26146 case $GJDOC in
26147 [\\/]* | ?:[\\/]*)
26148 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
26151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26152 for as_dir in $PATH
26154 IFS=$as_save_IFS
26155 test -z "$as_dir" && as_dir=.
26156 for ac_exec_ext in '' $ac_executable_extensions; do
26157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26158 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
26159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26160 break 2
26162 done
26163 done
26165 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
26167 esac
26169 GJDOC=$ac_cv_path_GJDOC
26171 if test -n "$GJDOC"; then
26172 echo "$as_me:$LINENO: result: $GJDOC" >&5
26173 echo "${ECHO_T}$GJDOC" >&6
26174 else
26175 echo "$as_me:$LINENO: result: no" >&5
26176 echo "${ECHO_T}no" >&6
26179 if test "x${GJDOC}" = xno; then
26180 { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
26181 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
26182 { (exit 1); exit 1; }; };
26184 else
26185 WITH_GJDOC=yes
26186 GJDOC="${withval}"
26187 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
26188 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
26189 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
26190 if eval "test \"\${$as_ac_File+set}\" = set"; then
26191 echo $ECHO_N "(cached) $ECHO_C" >&6
26192 else
26193 test "$cross_compiling" = yes &&
26194 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
26195 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26196 { (exit 1); exit 1; }; }
26197 if test -r "${GJDOC}"; then
26198 eval "$as_ac_File=yes"
26199 else
26200 eval "$as_ac_File=no"
26203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
26204 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
26205 if test `eval echo '${'$as_ac_File'}'` = yes; then
26207 else
26208 { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
26209 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
26210 { (exit 1); exit 1; }; }
26214 else
26215 WITH_GJDOC=no
26220 if test "x${WITH_GJDOC}" = xyes; then
26221 CREATE_API_DOCS_TRUE=
26222 CREATE_API_DOCS_FALSE='#'
26223 else
26224 CREATE_API_DOCS_TRUE='#'
26225 CREATE_API_DOCS_FALSE=
26232 # Check whether --with-jay or --without-jay was given.
26233 if test "${with_jay+set}" = set; then
26234 withval="$with_jay"
26236 if test -d "${withval}"; then
26237 JAY_DIR_PATH="${withval}"
26238 # Extract the first word of "jay", so it can be a program name with args.
26239 set dummy jay; ac_word=$2
26240 echo "$as_me:$LINENO: checking for $ac_word" >&5
26241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26242 if test "${ac_cv_path_JAY+set}" = set; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245 case $JAY in
26246 [\\/]* | ?:[\\/]*)
26247 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
26250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26251 for as_dir in ${JAY_DIR_PATH}
26253 IFS=$as_save_IFS
26254 test -z "$as_dir" && as_dir=.
26255 for ac_exec_ext in '' $ac_executable_extensions; do
26256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26257 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
26258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26259 break 2
26261 done
26262 done
26264 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
26266 esac
26268 JAY=$ac_cv_path_JAY
26270 if test -n "$JAY"; then
26271 echo "$as_me:$LINENO: result: $JAY" >&5
26272 echo "${ECHO_T}$JAY" >&6
26273 else
26274 echo "$as_me:$LINENO: result: no" >&5
26275 echo "${ECHO_T}no" >&6
26278 if test "x${JAY}" = xno; then
26279 { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
26280 echo "$as_me: error: \"jay executable not found\"" >&2;}
26281 { (exit 1); exit 1; }; };
26283 else
26284 JAY_DIR_PATH=`dirname "${withval}"`
26285 JAY="${withval}"
26288 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
26289 as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
26290 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
26291 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
26292 if eval "test \"\${$as_ac_File+set}\" = set"; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 else
26295 test "$cross_compiling" = yes &&
26296 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
26297 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26298 { (exit 1); exit 1; }; }
26299 if test -r "${JAY_SKELETON}"; then
26300 eval "$as_ac_File=yes"
26301 else
26302 eval "$as_ac_File=no"
26305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
26306 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
26307 if test `eval echo '${'$as_ac_File'}'` = yes; then
26309 else
26310 { { echo "$as_me:$LINENO: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&5
26311 echo "$as_me: error: \"Expected skeleton file in \`dirname ${withval}\`\"" >&2;}
26312 { (exit 1); exit 1; }; }
26315 JAY_FOUND=yes
26317 else
26319 JAY_FOUND=no
26324 if test "x${JAY_FOUND}" = xyes; then
26325 REGEN_PARSERS_TRUE=
26326 REGEN_PARSERS_FALSE='#'
26327 else
26328 REGEN_PARSERS_TRUE='#'
26329 REGEN_PARSERS_FALSE=
26334 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
26335 if test "${enable_portable_native_sync+set}" = set; then
26336 enableval="$enable_portable_native_sync"
26337 case "${enableval}" in
26338 yes)
26340 cat >>confdefs.h <<\_ACEOF
26341 #define PORTABLE_NATIVE_SYNC 1
26342 _ACEOF
26345 no) ;;
26347 { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
26348 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
26349 { (exit 1); exit 1; }; }
26351 esac
26354 # ------ AX CREATE STDINT H -------------------------------------
26355 echo "$as_me:$LINENO: checking for stdint types" >&5
26356 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
26357 ac_stdint_h=`echo include/config-int.h`
26358 # try to shortcircuit - if the default include path of the compiler
26359 # can find a "stdint.h" header then we assume that all compilers can.
26360 if test "${ac_cv_header_stdint_t+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26364 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
26365 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
26366 old_CFLAGS="$CFLAGS" ; CFLAGS=""
26367 cat >conftest.$ac_ext <<_ACEOF
26368 /* confdefs.h. */
26369 _ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h. */
26373 #include <stdint.h>
26375 main ()
26377 int_least32_t v = 0;
26379 return 0;
26381 _ACEOF
26382 rm -f conftest.$ac_objext
26383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26384 (eval $ac_compile) 2>conftest.er1
26385 ac_status=$?
26386 grep -v '^ *+' conftest.er1 >conftest.err
26387 rm -f conftest.er1
26388 cat conftest.err >&5
26389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390 (exit $ac_status); } &&
26391 { ac_try='test -z "$ac_c_werror_flag"
26392 || test ! -s conftest.err'
26393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394 (eval $ac_try) 2>&5
26395 ac_status=$?
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; } &&
26398 { ac_try='test -s conftest.$ac_objext'
26399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400 (eval $ac_try) 2>&5
26401 ac_status=$?
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; }; then
26404 ac_cv_stdint_result="(assuming C99 compatible system)"
26405 ac_cv_header_stdint_t="stdint.h";
26406 else
26407 echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26410 ac_cv_header_stdint_t=""
26412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26413 CXXFLAGS="$old_CXXFLAGS"
26414 CPPFLAGS="$old_CPPFLAGS"
26415 CFLAGS="$old_CFLAGS"
26419 v="... $ac_cv_header_stdint_h"
26420 if test "$ac_stdint_h" = "stdint.h" ; then
26421 echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
26422 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
26423 elif test "$ac_stdint_h" = "inttypes.h" ; then
26424 echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
26425 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
26426 elif test "_$ac_cv_header_stdint_t" = "_" ; then
26427 echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
26428 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
26429 else
26430 ac_cv_header_stdint="$ac_cv_header_stdint_t"
26431 echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
26432 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
26435 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
26438 inttype_headers=`echo | sed -e 's/,/ /g'`
26440 ac_cv_stdint_result="(no helpful system typedefs seen)"
26442 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
26443 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
26444 if test "${ac_cv_header_stdint_x+set}" = set; then
26445 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26448 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
26449 echo "$as_me:$LINENO: result: (..)" >&5
26450 echo "${ECHO_T}(..)" >&6
26451 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
26452 unset ac_cv_type_uintptr_t
26453 unset ac_cv_type_uint64_t
26454 echo "$as_me:$LINENO: checking for uintptr_t" >&5
26455 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
26456 if test "${ac_cv_type_uintptr_t+set}" = set; then
26457 echo $ECHO_N "(cached) $ECHO_C" >&6
26458 else
26459 cat >conftest.$ac_ext <<_ACEOF
26460 /* confdefs.h. */
26461 _ACEOF
26462 cat confdefs.h >>conftest.$ac_ext
26463 cat >>conftest.$ac_ext <<_ACEOF
26464 /* end confdefs.h. */
26465 #include <$i>
26468 main ()
26470 if ((uintptr_t *) 0)
26471 return 0;
26472 if (sizeof (uintptr_t))
26473 return 0;
26475 return 0;
26477 _ACEOF
26478 rm -f conftest.$ac_objext
26479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26480 (eval $ac_compile) 2>conftest.er1
26481 ac_status=$?
26482 grep -v '^ *+' conftest.er1 >conftest.err
26483 rm -f conftest.er1
26484 cat conftest.err >&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } &&
26487 { ac_try='test -z "$ac_c_werror_flag"
26488 || test ! -s conftest.err'
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); }; } &&
26494 { ac_try='test -s conftest.$ac_objext'
26495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26496 (eval $ac_try) 2>&5
26497 ac_status=$?
26498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499 (exit $ac_status); }; }; then
26500 ac_cv_type_uintptr_t=yes
26501 else
26502 echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26505 ac_cv_type_uintptr_t=no
26507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26509 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
26510 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
26511 if test $ac_cv_type_uintptr_t = yes; then
26512 ac_cv_header_stdint_x=$i
26513 else
26514 continue
26517 echo "$as_me:$LINENO: checking for uint64_t" >&5
26518 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26519 if test "${ac_cv_type_uint64_t+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522 cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h. */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26528 #include<$i>
26531 main ()
26533 if ((uint64_t *) 0)
26534 return 0;
26535 if (sizeof (uint64_t))
26536 return 0;
26538 return 0;
26540 _ACEOF
26541 rm -f conftest.$ac_objext
26542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26543 (eval $ac_compile) 2>conftest.er1
26544 ac_status=$?
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
26550 { ac_try='test -z "$ac_c_werror_flag"
26551 || test ! -s conftest.err'
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); }; } &&
26557 { ac_try='test -s conftest.$ac_objext'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563 ac_cv_type_uint64_t=yes
26564 else
26565 echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26568 ac_cv_type_uint64_t=no
26570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26572 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26573 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26574 if test $ac_cv_type_uint64_t = yes; then
26575 and64="/uint64_t"
26576 else
26577 and64=""
26580 stdint.h inttypes.h sys/inttypes.h $inttype_headers
26581 break
26582 done
26583 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
26584 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
26587 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
26588 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
26591 if test "_$ac_cv_header_stdint_x" = "_" ; then
26593 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
26594 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
26595 if test "${ac_cv_header_stdint_o+set}" = set; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26597 else
26599 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
26600 echo "$as_me:$LINENO: result: (..)" >&5
26601 echo "${ECHO_T}(..)" >&6
26602 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
26603 unset ac_cv_type_uint32_t
26604 unset ac_cv_type_uint64_t
26605 echo "$as_me:$LINENO: checking for uint32_t" >&5
26606 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
26607 if test "${ac_cv_type_uint32_t+set}" = set; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26609 else
26610 cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h. */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h. */
26616 #include <$i>
26619 main ()
26621 if ((uint32_t *) 0)
26622 return 0;
26623 if (sizeof (uint32_t))
26624 return 0;
26626 return 0;
26628 _ACEOF
26629 rm -f conftest.$ac_objext
26630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26631 (eval $ac_compile) 2>conftest.er1
26632 ac_status=$?
26633 grep -v '^ *+' conftest.er1 >conftest.err
26634 rm -f conftest.er1
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } &&
26638 { ac_try='test -z "$ac_c_werror_flag"
26639 || test ! -s conftest.err'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; } &&
26645 { ac_try='test -s conftest.$ac_objext'
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651 ac_cv_type_uint32_t=yes
26652 else
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26656 ac_cv_type_uint32_t=no
26658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26660 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
26661 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
26662 if test $ac_cv_type_uint32_t = yes; then
26663 ac_cv_header_stdint_o=$i
26664 else
26665 continue
26668 echo "$as_me:$LINENO: checking for uint64_t" >&5
26669 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26670 if test "${ac_cv_type_uint64_t+set}" = set; then
26671 echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26673 cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h. */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26679 #include<$i>
26682 main ()
26684 if ((uint64_t *) 0)
26685 return 0;
26686 if (sizeof (uint64_t))
26687 return 0;
26689 return 0;
26691 _ACEOF
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694 (eval $ac_compile) 2>conftest.er1
26695 ac_status=$?
26696 grep -v '^ *+' conftest.er1 >conftest.err
26697 rm -f conftest.er1
26698 cat conftest.err >&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try='test -z "$ac_c_werror_flag"
26702 || test ! -s conftest.err'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; } &&
26708 { ac_try='test -s conftest.$ac_objext'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26711 ac_status=$?
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26714 ac_cv_type_uint64_t=yes
26715 else
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ac_cv_type_uint64_t=no
26721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26724 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26725 if test $ac_cv_type_uint64_t = yes; then
26726 and64="/uint64_t"
26727 else
26728 and64=""
26731 inttypes.h sys/inttypes.h stdint.h $inttype_headers
26732 break
26733 break;
26734 done
26735 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
26736 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
26739 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
26740 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
26744 if test "_$ac_cv_header_stdint_x" = "_" ; then
26745 if test "_$ac_cv_header_stdint_o" = "_" ; then
26747 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
26748 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
26749 if test "${ac_cv_header_stdint_u+set}" = set; then
26750 echo $ECHO_N "(cached) $ECHO_C" >&6
26751 else
26753 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
26754 echo "$as_me:$LINENO: result: (..)" >&5
26755 echo "${ECHO_T}(..)" >&6
26756 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
26757 unset ac_cv_type_u_int32_t
26758 unset ac_cv_type_u_int64_t
26759 echo "$as_me:$LINENO: checking for u_int32_t" >&5
26760 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
26761 if test "${ac_cv_type_u_int32_t+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764 cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h. */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 #include <$i>
26773 main ()
26775 if ((u_int32_t *) 0)
26776 return 0;
26777 if (sizeof (u_int32_t))
26778 return 0;
26780 return 0;
26782 _ACEOF
26783 rm -f conftest.$ac_objext
26784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26785 (eval $ac_compile) 2>conftest.er1
26786 ac_status=$?
26787 grep -v '^ *+' conftest.er1 >conftest.err
26788 rm -f conftest.er1
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
26792 { ac_try='test -z "$ac_c_werror_flag"
26793 || test ! -s conftest.err'
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; } &&
26799 { ac_try='test -s conftest.$ac_objext'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
26805 ac_cv_type_u_int32_t=yes
26806 else
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26810 ac_cv_type_u_int32_t=no
26812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26814 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
26815 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
26816 if test $ac_cv_type_u_int32_t = yes; then
26817 ac_cv_header_stdint_u=$i
26818 else
26819 continue
26822 echo "$as_me:$LINENO: checking for u_int64_t" >&5
26823 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26824 if test "${ac_cv_type_u_int64_t+set}" = set; then
26825 echo $ECHO_N "(cached) $ECHO_C" >&6
26826 else
26827 cat >conftest.$ac_ext <<_ACEOF
26828 /* confdefs.h. */
26829 _ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h. */
26833 #include<$i>
26836 main ()
26838 if ((u_int64_t *) 0)
26839 return 0;
26840 if (sizeof (u_int64_t))
26841 return 0;
26843 return 0;
26845 _ACEOF
26846 rm -f conftest.$ac_objext
26847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26848 (eval $ac_compile) 2>conftest.er1
26849 ac_status=$?
26850 grep -v '^ *+' conftest.er1 >conftest.err
26851 rm -f conftest.er1
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } &&
26855 { ac_try='test -z "$ac_c_werror_flag"
26856 || test ! -s conftest.err'
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; } &&
26862 { ac_try='test -s conftest.$ac_objext'
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; }; then
26868 ac_cv_type_u_int64_t=yes
26869 else
26870 echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26873 ac_cv_type_u_int64_t=no
26875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26877 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26878 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26879 if test $ac_cv_type_u_int64_t = yes; then
26880 and64="/u_int64_t"
26881 else
26882 and64=""
26885 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
26886 break
26887 break;
26888 done
26889 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
26890 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
26893 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
26894 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
26896 fi fi
26898 if test "_$ac_cv_header_stdint_x" = "_" ; then
26899 echo "$as_me:$LINENO: checking for stdint datatype model" >&5
26900 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
26901 echo "$as_me:$LINENO: result: (..)" >&5
26902 echo "${ECHO_T}(..)" >&6
26904 echo "$as_me:$LINENO: checking for char" >&5
26905 echo $ECHO_N "checking for char... $ECHO_C" >&6
26906 if test "${ac_cv_type_char+set}" = set; then
26907 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 else
26909 cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h. */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 $ac_includes_default
26917 main ()
26919 if ((char *) 0)
26920 return 0;
26921 if (sizeof (char))
26922 return 0;
26924 return 0;
26926 _ACEOF
26927 rm -f conftest.$ac_objext
26928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26929 (eval $ac_compile) 2>conftest.er1
26930 ac_status=$?
26931 grep -v '^ *+' conftest.er1 >conftest.err
26932 rm -f conftest.er1
26933 cat conftest.err >&5
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); } &&
26936 { ac_try='test -z "$ac_c_werror_flag"
26937 || test ! -s conftest.err'
26938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26939 (eval $ac_try) 2>&5
26940 ac_status=$?
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); }; } &&
26943 { ac_try='test -s conftest.$ac_objext'
26944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26945 (eval $ac_try) 2>&5
26946 ac_status=$?
26947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948 (exit $ac_status); }; }; then
26949 ac_cv_type_char=yes
26950 else
26951 echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26954 ac_cv_type_char=no
26956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26958 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26959 echo "${ECHO_T}$ac_cv_type_char" >&6
26961 echo "$as_me:$LINENO: checking size of char" >&5
26962 echo $ECHO_N "checking size of char... $ECHO_C" >&6
26963 if test "${ac_cv_sizeof_char+set}" = set; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26965 else
26966 if test "$ac_cv_type_char" = yes; then
26967 # The cast to unsigned long works around a bug in the HP C Compiler
26968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26970 # This bug is HP SR number 8606223364.
26971 if test "$cross_compiling" = yes; then
26972 # Depending upon the size, compute the lo and hi bounds.
26973 cat >conftest.$ac_ext <<_ACEOF
26974 /* confdefs.h. */
26975 _ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h. */
26979 $ac_includes_default
26981 main ()
26983 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
26984 test_array [0] = 0
26987 return 0;
26989 _ACEOF
26990 rm -f conftest.$ac_objext
26991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26992 (eval $ac_compile) 2>conftest.er1
26993 ac_status=$?
26994 grep -v '^ *+' conftest.er1 >conftest.err
26995 rm -f conftest.er1
26996 cat conftest.err >&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } &&
26999 { ac_try='test -z "$ac_c_werror_flag"
27000 || test ! -s conftest.err'
27001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002 (eval $ac_try) 2>&5
27003 ac_status=$?
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); }; } &&
27006 { ac_try='test -s conftest.$ac_objext'
27007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); }; }; then
27012 ac_lo=0 ac_mid=0
27013 while :; do
27014 cat >conftest.$ac_ext <<_ACEOF
27015 /* confdefs.h. */
27016 _ACEOF
27017 cat confdefs.h >>conftest.$ac_ext
27018 cat >>conftest.$ac_ext <<_ACEOF
27019 /* end confdefs.h. */
27020 $ac_includes_default
27022 main ()
27024 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
27025 test_array [0] = 0
27028 return 0;
27030 _ACEOF
27031 rm -f conftest.$ac_objext
27032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27033 (eval $ac_compile) 2>conftest.er1
27034 ac_status=$?
27035 grep -v '^ *+' conftest.er1 >conftest.err
27036 rm -f conftest.er1
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); } &&
27040 { ac_try='test -z "$ac_c_werror_flag"
27041 || test ! -s conftest.err'
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } &&
27047 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27053 ac_hi=$ac_mid; break
27054 else
27055 echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27058 ac_lo=`expr $ac_mid + 1`
27059 if test $ac_lo -le $ac_mid; then
27060 ac_lo= ac_hi=
27061 break
27063 ac_mid=`expr 2 '*' $ac_mid + 1`
27065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27066 done
27067 else
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27071 cat >conftest.$ac_ext <<_ACEOF
27072 /* confdefs.h. */
27073 _ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h. */
27077 $ac_includes_default
27079 main ()
27081 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
27082 test_array [0] = 0
27085 return 0;
27087 _ACEOF
27088 rm -f conftest.$ac_objext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27090 (eval $ac_compile) 2>conftest.er1
27091 ac_status=$?
27092 grep -v '^ *+' conftest.er1 >conftest.err
27093 rm -f conftest.er1
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } &&
27097 { ac_try='test -z "$ac_c_werror_flag"
27098 || test ! -s conftest.err'
27099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100 (eval $ac_try) 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try='test -s conftest.$ac_objext'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27107 ac_status=$?
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; }; then
27110 ac_hi=-1 ac_mid=-1
27111 while :; do
27112 cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h. */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27118 $ac_includes_default
27120 main ()
27122 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
27123 test_array [0] = 0
27126 return 0;
27128 _ACEOF
27129 rm -f conftest.$ac_objext
27130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27131 (eval $ac_compile) 2>conftest.er1
27132 ac_status=$?
27133 grep -v '^ *+' conftest.er1 >conftest.err
27134 rm -f conftest.er1
27135 cat conftest.err >&5
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } &&
27138 { ac_try='test -z "$ac_c_werror_flag"
27139 || test ! -s conftest.err'
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; } &&
27145 { ac_try='test -s conftest.$ac_objext'
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_lo=$ac_mid; break
27152 else
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_hi=`expr '(' $ac_mid ')' - 1`
27157 if test $ac_mid -le $ac_hi; then
27158 ac_lo= ac_hi=
27159 break
27161 ac_mid=`expr 2 '*' $ac_mid`
27163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27164 done
27165 else
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27169 ac_lo= ac_hi=
27171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27174 # Binary search between lo and hi bounds.
27175 while test "x$ac_lo" != "x$ac_hi"; do
27176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27177 cat >conftest.$ac_ext <<_ACEOF
27178 /* confdefs.h. */
27179 _ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h. */
27183 $ac_includes_default
27185 main ()
27187 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
27188 test_array [0] = 0
27191 return 0;
27193 _ACEOF
27194 rm -f conftest.$ac_objext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196 (eval $ac_compile) 2>conftest.er1
27197 ac_status=$?
27198 grep -v '^ *+' conftest.er1 >conftest.err
27199 rm -f conftest.er1
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try='test -z "$ac_c_werror_flag"
27204 || test ! -s conftest.err'
27205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206 (eval $ac_try) 2>&5
27207 ac_status=$?
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); }; } &&
27210 { ac_try='test -s conftest.$ac_objext'
27211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212 (eval $ac_try) 2>&5
27213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
27216 ac_hi=$ac_mid
27217 else
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27221 ac_lo=`expr '(' $ac_mid ')' + 1`
27223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27224 done
27225 case $ac_lo in
27226 ?*) ac_cv_sizeof_char=$ac_lo;;
27227 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27228 See \`config.log' for more details." >&5
27229 echo "$as_me: error: cannot compute sizeof (char), 77
27230 See \`config.log' for more details." >&2;}
27231 { (exit 1); exit 1; }; } ;;
27232 esac
27233 else
27234 if test "$cross_compiling" = yes; then
27235 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27236 See \`config.log' for more details." >&5
27237 echo "$as_me: error: cannot run test program while cross compiling
27238 See \`config.log' for more details." >&2;}
27239 { (exit 1); exit 1; }; }
27240 else
27241 cat >conftest.$ac_ext <<_ACEOF
27242 /* confdefs.h. */
27243 _ACEOF
27244 cat confdefs.h >>conftest.$ac_ext
27245 cat >>conftest.$ac_ext <<_ACEOF
27246 /* end confdefs.h. */
27247 $ac_includes_default
27248 long longval () { return (long) (sizeof (char)); }
27249 unsigned long ulongval () { return (long) (sizeof (char)); }
27250 #include <stdio.h>
27251 #include <stdlib.h>
27253 main ()
27256 FILE *f = fopen ("conftest.val", "w");
27257 if (! f)
27258 exit (1);
27259 if (((long) (sizeof (char))) < 0)
27261 long i = longval ();
27262 if (i != ((long) (sizeof (char))))
27263 exit (1);
27264 fprintf (f, "%ld\n", i);
27266 else
27268 unsigned long i = ulongval ();
27269 if (i != ((long) (sizeof (char))))
27270 exit (1);
27271 fprintf (f, "%lu\n", i);
27273 exit (ferror (f) || fclose (f) != 0);
27276 return 0;
27278 _ACEOF
27279 rm -f conftest$ac_exeext
27280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27281 (eval $ac_link) 2>&5
27282 ac_status=$?
27283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27286 (eval $ac_try) 2>&5
27287 ac_status=$?
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); }; }; then
27290 ac_cv_sizeof_char=`cat conftest.val`
27291 else
27292 echo "$as_me: program exited with status $ac_status" >&5
27293 echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27296 ( exit $ac_status )
27297 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27298 See \`config.log' for more details." >&5
27299 echo "$as_me: error: cannot compute sizeof (char), 77
27300 See \`config.log' for more details." >&2;}
27301 { (exit 1); exit 1; }; }
27303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27306 rm -f conftest.val
27307 else
27308 ac_cv_sizeof_char=0
27311 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
27312 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
27313 cat >>confdefs.h <<_ACEOF
27314 #define SIZEOF_CHAR $ac_cv_sizeof_char
27315 _ACEOF
27318 echo "$as_me:$LINENO: checking for short" >&5
27319 echo $ECHO_N "checking for short... $ECHO_C" >&6
27320 if test "${ac_cv_type_short+set}" = set; then
27321 echo $ECHO_N "(cached) $ECHO_C" >&6
27322 else
27323 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h. */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 $ac_includes_default
27331 main ()
27333 if ((short *) 0)
27334 return 0;
27335 if (sizeof (short))
27336 return 0;
27338 return 0;
27340 _ACEOF
27341 rm -f conftest.$ac_objext
27342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27343 (eval $ac_compile) 2>conftest.er1
27344 ac_status=$?
27345 grep -v '^ *+' conftest.er1 >conftest.err
27346 rm -f conftest.er1
27347 cat conftest.err >&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } &&
27350 { ac_try='test -z "$ac_c_werror_flag"
27351 || test ! -s conftest.err'
27352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27353 (eval $ac_try) 2>&5
27354 ac_status=$?
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); }; } &&
27357 { ac_try='test -s conftest.$ac_objext'
27358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27359 (eval $ac_try) 2>&5
27360 ac_status=$?
27361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362 (exit $ac_status); }; }; then
27363 ac_cv_type_short=yes
27364 else
27365 echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27368 ac_cv_type_short=no
27370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27372 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27373 echo "${ECHO_T}$ac_cv_type_short" >&6
27375 echo "$as_me:$LINENO: checking size of short" >&5
27376 echo $ECHO_N "checking size of short... $ECHO_C" >&6
27377 if test "${ac_cv_sizeof_short+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380 if test "$ac_cv_type_short" = yes; then
27381 # The cast to unsigned long works around a bug in the HP C Compiler
27382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27384 # This bug is HP SR number 8606223364.
27385 if test "$cross_compiling" = yes; then
27386 # Depending upon the size, compute the lo and hi bounds.
27387 cat >conftest.$ac_ext <<_ACEOF
27388 /* confdefs.h. */
27389 _ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h. */
27393 $ac_includes_default
27395 main ()
27397 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
27398 test_array [0] = 0
27401 return 0;
27403 _ACEOF
27404 rm -f conftest.$ac_objext
27405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27406 (eval $ac_compile) 2>conftest.er1
27407 ac_status=$?
27408 grep -v '^ *+' conftest.er1 >conftest.err
27409 rm -f conftest.er1
27410 cat conftest.err >&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); } &&
27413 { ac_try='test -z "$ac_c_werror_flag"
27414 || test ! -s conftest.err'
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; } &&
27420 { ac_try='test -s conftest.$ac_objext'
27421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27426 ac_lo=0 ac_mid=0
27427 while :; do
27428 cat >conftest.$ac_ext <<_ACEOF
27429 /* confdefs.h. */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27434 $ac_includes_default
27436 main ()
27438 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27439 test_array [0] = 0
27442 return 0;
27444 _ACEOF
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447 (eval $ac_compile) 2>conftest.er1
27448 ac_status=$?
27449 grep -v '^ *+' conftest.er1 >conftest.err
27450 rm -f conftest.er1
27451 cat conftest.err >&5
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
27454 { ac_try='test -z "$ac_c_werror_flag"
27455 || test ! -s conftest.err'
27456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); }; } &&
27461 { ac_try='test -s conftest.$ac_objext'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_hi=$ac_mid; break
27468 else
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27472 ac_lo=`expr $ac_mid + 1`
27473 if test $ac_lo -le $ac_mid; then
27474 ac_lo= ac_hi=
27475 break
27477 ac_mid=`expr 2 '*' $ac_mid + 1`
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27480 done
27481 else
27482 echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27485 cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h. */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h. */
27491 $ac_includes_default
27493 main ()
27495 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27496 test_array [0] = 0
27499 return 0;
27501 _ACEOF
27502 rm -f conftest.$ac_objext
27503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27504 (eval $ac_compile) 2>conftest.er1
27505 ac_status=$?
27506 grep -v '^ *+' conftest.er1 >conftest.err
27507 rm -f conftest.er1
27508 cat conftest.err >&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); } &&
27511 { ac_try='test -z "$ac_c_werror_flag"
27512 || test ! -s conftest.err'
27513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514 (eval $ac_try) 2>&5
27515 ac_status=$?
27516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517 (exit $ac_status); }; } &&
27518 { ac_try='test -s conftest.$ac_objext'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
27524 ac_hi=-1 ac_mid=-1
27525 while :; do
27526 cat >conftest.$ac_ext <<_ACEOF
27527 /* confdefs.h. */
27528 _ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h. */
27532 $ac_includes_default
27534 main ()
27536 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27537 test_array [0] = 0
27540 return 0;
27542 _ACEOF
27543 rm -f conftest.$ac_objext
27544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27545 (eval $ac_compile) 2>conftest.er1
27546 ac_status=$?
27547 grep -v '^ *+' conftest.er1 >conftest.err
27548 rm -f conftest.er1
27549 cat conftest.err >&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } &&
27552 { ac_try='test -z "$ac_c_werror_flag"
27553 || test ! -s conftest.err'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; } &&
27559 { ac_try='test -s conftest.$ac_objext'
27560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; }; then
27565 ac_lo=$ac_mid; break
27566 else
27567 echo "$as_me: failed program was:" >&5
27568 sed 's/^/| /' conftest.$ac_ext >&5
27570 ac_hi=`expr '(' $ac_mid ')' - 1`
27571 if test $ac_mid -le $ac_hi; then
27572 ac_lo= ac_hi=
27573 break
27575 ac_mid=`expr 2 '*' $ac_mid`
27577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27578 done
27579 else
27580 echo "$as_me: failed program was:" >&5
27581 sed 's/^/| /' conftest.$ac_ext >&5
27583 ac_lo= ac_hi=
27585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27588 # Binary search between lo and hi bounds.
27589 while test "x$ac_lo" != "x$ac_hi"; do
27590 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27591 cat >conftest.$ac_ext <<_ACEOF
27592 /* confdefs.h. */
27593 _ACEOF
27594 cat confdefs.h >>conftest.$ac_ext
27595 cat >>conftest.$ac_ext <<_ACEOF
27596 /* end confdefs.h. */
27597 $ac_includes_default
27599 main ()
27601 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27602 test_array [0] = 0
27605 return 0;
27607 _ACEOF
27608 rm -f conftest.$ac_objext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27610 (eval $ac_compile) 2>conftest.er1
27611 ac_status=$?
27612 grep -v '^ *+' conftest.er1 >conftest.err
27613 rm -f conftest.er1
27614 cat conftest.err >&5
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); } &&
27617 { ac_try='test -z "$ac_c_werror_flag"
27618 || test ! -s conftest.err'
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; } &&
27624 { ac_try='test -s conftest.$ac_objext'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; }; then
27630 ac_hi=$ac_mid
27631 else
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27635 ac_lo=`expr '(' $ac_mid ')' + 1`
27637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27638 done
27639 case $ac_lo in
27640 ?*) ac_cv_sizeof_short=$ac_lo;;
27641 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27642 See \`config.log' for more details." >&5
27643 echo "$as_me: error: cannot compute sizeof (short), 77
27644 See \`config.log' for more details." >&2;}
27645 { (exit 1); exit 1; }; } ;;
27646 esac
27647 else
27648 if test "$cross_compiling" = yes; then
27649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27650 See \`config.log' for more details." >&5
27651 echo "$as_me: error: cannot run test program while cross compiling
27652 See \`config.log' for more details." >&2;}
27653 { (exit 1); exit 1; }; }
27654 else
27655 cat >conftest.$ac_ext <<_ACEOF
27656 /* confdefs.h. */
27657 _ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h. */
27661 $ac_includes_default
27662 long longval () { return (long) (sizeof (short)); }
27663 unsigned long ulongval () { return (long) (sizeof (short)); }
27664 #include <stdio.h>
27665 #include <stdlib.h>
27667 main ()
27670 FILE *f = fopen ("conftest.val", "w");
27671 if (! f)
27672 exit (1);
27673 if (((long) (sizeof (short))) < 0)
27675 long i = longval ();
27676 if (i != ((long) (sizeof (short))))
27677 exit (1);
27678 fprintf (f, "%ld\n", i);
27680 else
27682 unsigned long i = ulongval ();
27683 if (i != ((long) (sizeof (short))))
27684 exit (1);
27685 fprintf (f, "%lu\n", i);
27687 exit (ferror (f) || fclose (f) != 0);
27690 return 0;
27692 _ACEOF
27693 rm -f conftest$ac_exeext
27694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27695 (eval $ac_link) 2>&5
27696 ac_status=$?
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; }; then
27704 ac_cv_sizeof_short=`cat conftest.val`
27705 else
27706 echo "$as_me: program exited with status $ac_status" >&5
27707 echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27710 ( exit $ac_status )
27711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27712 See \`config.log' for more details." >&5
27713 echo "$as_me: error: cannot compute sizeof (short), 77
27714 See \`config.log' for more details." >&2;}
27715 { (exit 1); exit 1; }; }
27717 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27720 rm -f conftest.val
27721 else
27722 ac_cv_sizeof_short=0
27725 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27726 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27727 cat >>confdefs.h <<_ACEOF
27728 #define SIZEOF_SHORT $ac_cv_sizeof_short
27729 _ACEOF
27732 echo "$as_me:$LINENO: checking for int" >&5
27733 echo $ECHO_N "checking for int... $ECHO_C" >&6
27734 if test "${ac_cv_type_int+set}" = set; then
27735 echo $ECHO_N "(cached) $ECHO_C" >&6
27736 else
27737 cat >conftest.$ac_ext <<_ACEOF
27738 /* confdefs.h. */
27739 _ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h. */
27743 $ac_includes_default
27745 main ()
27747 if ((int *) 0)
27748 return 0;
27749 if (sizeof (int))
27750 return 0;
27752 return 0;
27754 _ACEOF
27755 rm -f conftest.$ac_objext
27756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27757 (eval $ac_compile) 2>conftest.er1
27758 ac_status=$?
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } &&
27764 { ac_try='test -z "$ac_c_werror_flag"
27765 || test ! -s conftest.err'
27766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27767 (eval $ac_try) 2>&5
27768 ac_status=$?
27769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770 (exit $ac_status); }; } &&
27771 { ac_try='test -s conftest.$ac_objext'
27772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; }; then
27777 ac_cv_type_int=yes
27778 else
27779 echo "$as_me: failed program was:" >&5
27780 sed 's/^/| /' conftest.$ac_ext >&5
27782 ac_cv_type_int=no
27784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27786 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27787 echo "${ECHO_T}$ac_cv_type_int" >&6
27789 echo "$as_me:$LINENO: checking size of int" >&5
27790 echo $ECHO_N "checking size of int... $ECHO_C" >&6
27791 if test "${ac_cv_sizeof_int+set}" = set; then
27792 echo $ECHO_N "(cached) $ECHO_C" >&6
27793 else
27794 if test "$ac_cv_type_int" = yes; then
27795 # The cast to unsigned long works around a bug in the HP C Compiler
27796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27798 # This bug is HP SR number 8606223364.
27799 if test "$cross_compiling" = yes; then
27800 # Depending upon the size, compute the lo and hi bounds.
27801 cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h. */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h. */
27807 $ac_includes_default
27809 main ()
27811 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
27812 test_array [0] = 0
27815 return 0;
27817 _ACEOF
27818 rm -f conftest.$ac_objext
27819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27820 (eval $ac_compile) 2>conftest.er1
27821 ac_status=$?
27822 grep -v '^ *+' conftest.er1 >conftest.err
27823 rm -f conftest.er1
27824 cat conftest.err >&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); } &&
27827 { ac_try='test -z "$ac_c_werror_flag"
27828 || test ! -s conftest.err'
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); }; } &&
27834 { ac_try='test -s conftest.$ac_objext'
27835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27836 (eval $ac_try) 2>&5
27837 ac_status=$?
27838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); }; }; then
27840 ac_lo=0 ac_mid=0
27841 while :; do
27842 cat >conftest.$ac_ext <<_ACEOF
27843 /* confdefs.h. */
27844 _ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h. */
27848 $ac_includes_default
27850 main ()
27852 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27853 test_array [0] = 0
27856 return 0;
27858 _ACEOF
27859 rm -f conftest.$ac_objext
27860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27861 (eval $ac_compile) 2>conftest.er1
27862 ac_status=$?
27863 grep -v '^ *+' conftest.er1 >conftest.err
27864 rm -f conftest.er1
27865 cat conftest.err >&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } &&
27868 { ac_try='test -z "$ac_c_werror_flag"
27869 || test ! -s conftest.err'
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest.$ac_objext'
27876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; }; then
27881 ac_hi=$ac_mid; break
27882 else
27883 echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27886 ac_lo=`expr $ac_mid + 1`
27887 if test $ac_lo -le $ac_mid; then
27888 ac_lo= ac_hi=
27889 break
27891 ac_mid=`expr 2 '*' $ac_mid + 1`
27893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27894 done
27895 else
27896 echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27899 cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h. */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27905 $ac_includes_default
27907 main ()
27909 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
27910 test_array [0] = 0
27913 return 0;
27915 _ACEOF
27916 rm -f conftest.$ac_objext
27917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27918 (eval $ac_compile) 2>conftest.er1
27919 ac_status=$?
27920 grep -v '^ *+' conftest.er1 >conftest.err
27921 rm -f conftest.er1
27922 cat conftest.err >&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } &&
27925 { ac_try='test -z "$ac_c_werror_flag"
27926 || test ! -s conftest.err'
27927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; } &&
27932 { ac_try='test -s conftest.$ac_objext'
27933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27934 (eval $ac_try) 2>&5
27935 ac_status=$?
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); }; }; then
27938 ac_hi=-1 ac_mid=-1
27939 while :; do
27940 cat >conftest.$ac_ext <<_ACEOF
27941 /* confdefs.h. */
27942 _ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h. */
27946 $ac_includes_default
27948 main ()
27950 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
27951 test_array [0] = 0
27954 return 0;
27956 _ACEOF
27957 rm -f conftest.$ac_objext
27958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27959 (eval $ac_compile) 2>conftest.er1
27960 ac_status=$?
27961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag"
27967 || test ! -s conftest.err'
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; } &&
27973 { ac_try='test -s conftest.$ac_objext'
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
27979 ac_lo=$ac_mid; break
27980 else
27981 echo "$as_me: failed program was:" >&5
27982 sed 's/^/| /' conftest.$ac_ext >&5
27984 ac_hi=`expr '(' $ac_mid ')' - 1`
27985 if test $ac_mid -le $ac_hi; then
27986 ac_lo= ac_hi=
27987 break
27989 ac_mid=`expr 2 '*' $ac_mid`
27991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27992 done
27993 else
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
27997 ac_lo= ac_hi=
27999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28002 # Binary search between lo and hi bounds.
28003 while test "x$ac_lo" != "x$ac_hi"; do
28004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28005 cat >conftest.$ac_ext <<_ACEOF
28006 /* confdefs.h. */
28007 _ACEOF
28008 cat confdefs.h >>conftest.$ac_ext
28009 cat >>conftest.$ac_ext <<_ACEOF
28010 /* end confdefs.h. */
28011 $ac_includes_default
28013 main ()
28015 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
28016 test_array [0] = 0
28019 return 0;
28021 _ACEOF
28022 rm -f conftest.$ac_objext
28023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28024 (eval $ac_compile) 2>conftest.er1
28025 ac_status=$?
28026 grep -v '^ *+' conftest.er1 >conftest.err
28027 rm -f conftest.er1
28028 cat conftest.err >&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); } &&
28031 { ac_try='test -z "$ac_c_werror_flag"
28032 || test ! -s conftest.err'
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest.$ac_objext'
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28044 ac_hi=$ac_mid
28045 else
28046 echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28049 ac_lo=`expr '(' $ac_mid ')' + 1`
28051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28052 done
28053 case $ac_lo in
28054 ?*) ac_cv_sizeof_int=$ac_lo;;
28055 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
28056 See \`config.log' for more details." >&5
28057 echo "$as_me: error: cannot compute sizeof (int), 77
28058 See \`config.log' for more details." >&2;}
28059 { (exit 1); exit 1; }; } ;;
28060 esac
28061 else
28062 if test "$cross_compiling" = yes; then
28063 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28064 See \`config.log' for more details." >&5
28065 echo "$as_me: error: cannot run test program while cross compiling
28066 See \`config.log' for more details." >&2;}
28067 { (exit 1); exit 1; }; }
28068 else
28069 cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h. */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h. */
28075 $ac_includes_default
28076 long longval () { return (long) (sizeof (int)); }
28077 unsigned long ulongval () { return (long) (sizeof (int)); }
28078 #include <stdio.h>
28079 #include <stdlib.h>
28081 main ()
28084 FILE *f = fopen ("conftest.val", "w");
28085 if (! f)
28086 exit (1);
28087 if (((long) (sizeof (int))) < 0)
28089 long i = longval ();
28090 if (i != ((long) (sizeof (int))))
28091 exit (1);
28092 fprintf (f, "%ld\n", i);
28094 else
28096 unsigned long i = ulongval ();
28097 if (i != ((long) (sizeof (int))))
28098 exit (1);
28099 fprintf (f, "%lu\n", i);
28101 exit (ferror (f) || fclose (f) != 0);
28104 return 0;
28106 _ACEOF
28107 rm -f conftest$ac_exeext
28108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28109 (eval $ac_link) 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28114 (eval $ac_try) 2>&5
28115 ac_status=$?
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
28118 ac_cv_sizeof_int=`cat conftest.val`
28119 else
28120 echo "$as_me: program exited with status $ac_status" >&5
28121 echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28124 ( exit $ac_status )
28125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
28126 See \`config.log' for more details." >&5
28127 echo "$as_me: error: cannot compute sizeof (int), 77
28128 See \`config.log' for more details." >&2;}
28129 { (exit 1); exit 1; }; }
28131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28134 rm -f conftest.val
28135 else
28136 ac_cv_sizeof_int=0
28139 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28140 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
28141 cat >>confdefs.h <<_ACEOF
28142 #define SIZEOF_INT $ac_cv_sizeof_int
28143 _ACEOF
28146 echo "$as_me:$LINENO: checking for long" >&5
28147 echo $ECHO_N "checking for long... $ECHO_C" >&6
28148 if test "${ac_cv_type_long+set}" = set; then
28149 echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151 cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h. */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28157 $ac_includes_default
28159 main ()
28161 if ((long *) 0)
28162 return 0;
28163 if (sizeof (long))
28164 return 0;
28166 return 0;
28168 _ACEOF
28169 rm -f conftest.$ac_objext
28170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28171 (eval $ac_compile) 2>conftest.er1
28172 ac_status=$?
28173 grep -v '^ *+' conftest.er1 >conftest.err
28174 rm -f conftest.er1
28175 cat conftest.err >&5
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); } &&
28178 { ac_try='test -z "$ac_c_werror_flag"
28179 || test ! -s conftest.err'
28180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181 (eval $ac_try) 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest.$ac_objext'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28188 ac_status=$?
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; }; then
28191 ac_cv_type_long=yes
28192 else
28193 echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28196 ac_cv_type_long=no
28198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28200 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28201 echo "${ECHO_T}$ac_cv_type_long" >&6
28203 echo "$as_me:$LINENO: checking size of long" >&5
28204 echo $ECHO_N "checking size of long... $ECHO_C" >&6
28205 if test "${ac_cv_sizeof_long+set}" = set; then
28206 echo $ECHO_N "(cached) $ECHO_C" >&6
28207 else
28208 if test "$ac_cv_type_long" = yes; then
28209 # The cast to unsigned long works around a bug in the HP C Compiler
28210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28212 # This bug is HP SR number 8606223364.
28213 if test "$cross_compiling" = yes; then
28214 # Depending upon the size, compute the lo and hi bounds.
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))) >= 0)];
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=0 ac_mid=0
28255 while :; do
28256 cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h. */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h. */
28262 $ac_includes_default
28264 main ()
28266 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28267 test_array [0] = 0
28270 return 0;
28272 _ACEOF
28273 rm -f conftest.$ac_objext
28274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28275 (eval $ac_compile) 2>conftest.er1
28276 ac_status=$?
28277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } &&
28282 { ac_try='test -z "$ac_c_werror_flag"
28283 || test ! -s conftest.err'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28286 ac_status=$?
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; } &&
28289 { ac_try='test -s conftest.$ac_objext'
28290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291 (eval $ac_try) 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
28295 ac_hi=$ac_mid; break
28296 else
28297 echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28300 ac_lo=`expr $ac_mid + 1`
28301 if test $ac_lo -le $ac_mid; then
28302 ac_lo= ac_hi=
28303 break
28305 ac_mid=`expr 2 '*' $ac_mid + 1`
28307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28308 done
28309 else
28310 echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28313 cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h. */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h. */
28319 $ac_includes_default
28321 main ()
28323 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
28324 test_array [0] = 0
28327 return 0;
28329 _ACEOF
28330 rm -f conftest.$ac_objext
28331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28332 (eval $ac_compile) 2>conftest.er1
28333 ac_status=$?
28334 grep -v '^ *+' conftest.er1 >conftest.err
28335 rm -f conftest.er1
28336 cat conftest.err >&5
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); } &&
28339 { ac_try='test -z "$ac_c_werror_flag"
28340 || test ! -s conftest.err'
28341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 (eval $ac_try) 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; } &&
28346 { ac_try='test -s conftest.$ac_objext'
28347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28349 ac_status=$?
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; }; then
28352 ac_hi=-1 ac_mid=-1
28353 while :; do
28354 cat >conftest.$ac_ext <<_ACEOF
28355 /* confdefs.h. */
28356 _ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h. */
28360 $ac_includes_default
28362 main ()
28364 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
28365 test_array [0] = 0
28368 return 0;
28370 _ACEOF
28371 rm -f conftest.$ac_objext
28372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28373 (eval $ac_compile) 2>conftest.er1
28374 ac_status=$?
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
28380 { ac_try='test -z "$ac_c_werror_flag"
28381 || test ! -s conftest.err'
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; } &&
28387 { ac_try='test -s conftest.$ac_objext'
28388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28389 (eval $ac_try) 2>&5
28390 ac_status=$?
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; }; then
28393 ac_lo=$ac_mid; break
28394 else
28395 echo "$as_me: failed program was:" >&5
28396 sed 's/^/| /' conftest.$ac_ext >&5
28398 ac_hi=`expr '(' $ac_mid ')' - 1`
28399 if test $ac_mid -le $ac_hi; then
28400 ac_lo= ac_hi=
28401 break
28403 ac_mid=`expr 2 '*' $ac_mid`
28405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28406 done
28407 else
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28411 ac_lo= ac_hi=
28413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28416 # Binary search between lo and hi bounds.
28417 while test "x$ac_lo" != "x$ac_hi"; do
28418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28419 cat >conftest.$ac_ext <<_ACEOF
28420 /* confdefs.h. */
28421 _ACEOF
28422 cat confdefs.h >>conftest.$ac_ext
28423 cat >>conftest.$ac_ext <<_ACEOF
28424 /* end confdefs.h. */
28425 $ac_includes_default
28427 main ()
28429 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28430 test_array [0] = 0
28433 return 0;
28435 _ACEOF
28436 rm -f conftest.$ac_objext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438 (eval $ac_compile) 2>conftest.er1
28439 ac_status=$?
28440 grep -v '^ *+' conftest.er1 >conftest.err
28441 rm -f conftest.er1
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } &&
28445 { ac_try='test -z "$ac_c_werror_flag"
28446 || test ! -s conftest.err'
28447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); }; } &&
28452 { ac_try='test -s conftest.$ac_objext'
28453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); }; }; then
28458 ac_hi=$ac_mid
28459 else
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ac_lo=`expr '(' $ac_mid ')' + 1`
28465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28466 done
28467 case $ac_lo in
28468 ?*) ac_cv_sizeof_long=$ac_lo;;
28469 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28470 See \`config.log' for more details." >&5
28471 echo "$as_me: error: cannot compute sizeof (long), 77
28472 See \`config.log' for more details." >&2;}
28473 { (exit 1); exit 1; }; } ;;
28474 esac
28475 else
28476 if test "$cross_compiling" = yes; then
28477 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28478 See \`config.log' for more details." >&5
28479 echo "$as_me: error: cannot run test program while cross compiling
28480 See \`config.log' for more details." >&2;}
28481 { (exit 1); exit 1; }; }
28482 else
28483 cat >conftest.$ac_ext <<_ACEOF
28484 /* confdefs.h. */
28485 _ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h. */
28489 $ac_includes_default
28490 long longval () { return (long) (sizeof (long)); }
28491 unsigned long ulongval () { return (long) (sizeof (long)); }
28492 #include <stdio.h>
28493 #include <stdlib.h>
28495 main ()
28498 FILE *f = fopen ("conftest.val", "w");
28499 if (! f)
28500 exit (1);
28501 if (((long) (sizeof (long))) < 0)
28503 long i = longval ();
28504 if (i != ((long) (sizeof (long))))
28505 exit (1);
28506 fprintf (f, "%ld\n", i);
28508 else
28510 unsigned long i = ulongval ();
28511 if (i != ((long) (sizeof (long))))
28512 exit (1);
28513 fprintf (f, "%lu\n", i);
28515 exit (ferror (f) || fclose (f) != 0);
28518 return 0;
28520 _ACEOF
28521 rm -f conftest$ac_exeext
28522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28523 (eval $ac_link) 2>&5
28524 ac_status=$?
28525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; }; then
28532 ac_cv_sizeof_long=`cat conftest.val`
28533 else
28534 echo "$as_me: program exited with status $ac_status" >&5
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28538 ( exit $ac_status )
28539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28540 See \`config.log' for more details." >&5
28541 echo "$as_me: error: cannot compute sizeof (long), 77
28542 See \`config.log' for more details." >&2;}
28543 { (exit 1); exit 1; }; }
28545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28548 rm -f conftest.val
28549 else
28550 ac_cv_sizeof_long=0
28553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28554 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28555 cat >>confdefs.h <<_ACEOF
28556 #define SIZEOF_LONG $ac_cv_sizeof_long
28557 _ACEOF
28560 echo "$as_me:$LINENO: checking for void*" >&5
28561 echo $ECHO_N "checking for void*... $ECHO_C" >&6
28562 if test "${ac_cv_type_voidp+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565 cat >conftest.$ac_ext <<_ACEOF
28566 /* confdefs.h. */
28567 _ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h. */
28571 $ac_includes_default
28573 main ()
28575 if ((void* *) 0)
28576 return 0;
28577 if (sizeof (void*))
28578 return 0;
28580 return 0;
28582 _ACEOF
28583 rm -f conftest.$ac_objext
28584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28585 (eval $ac_compile) 2>conftest.er1
28586 ac_status=$?
28587 grep -v '^ *+' conftest.er1 >conftest.err
28588 rm -f conftest.er1
28589 cat conftest.err >&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); } &&
28592 { ac_try='test -z "$ac_c_werror_flag"
28593 || test ! -s conftest.err'
28594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28595 (eval $ac_try) 2>&5
28596 ac_status=$?
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; } &&
28599 { ac_try='test -s conftest.$ac_objext'
28600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; }; then
28605 ac_cv_type_voidp=yes
28606 else
28607 echo "$as_me: failed program was:" >&5
28608 sed 's/^/| /' conftest.$ac_ext >&5
28610 ac_cv_type_voidp=no
28612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28614 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
28615 echo "${ECHO_T}$ac_cv_type_voidp" >&6
28617 echo "$as_me:$LINENO: checking size of void*" >&5
28618 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
28619 if test "${ac_cv_sizeof_voidp+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28621 else
28622 if test "$ac_cv_type_voidp" = yes; then
28623 # The cast to unsigned long works around a bug in the HP C Compiler
28624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28626 # This bug is HP SR number 8606223364.
28627 if test "$cross_compiling" = yes; then
28628 # Depending upon the size, compute the lo and hi bounds.
28629 cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h. */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 $ac_includes_default
28637 main ()
28639 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
28640 test_array [0] = 0
28643 return 0;
28645 _ACEOF
28646 rm -f conftest.$ac_objext
28647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28648 (eval $ac_compile) 2>conftest.er1
28649 ac_status=$?
28650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } &&
28655 { ac_try='test -z "$ac_c_werror_flag"
28656 || test ! -s conftest.err'
28657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28658 (eval $ac_try) 2>&5
28659 ac_status=$?
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); }; } &&
28662 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28668 ac_lo=0 ac_mid=0
28669 while :; do
28670 cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h. */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h. */
28676 $ac_includes_default
28678 main ()
28680 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
28681 test_array [0] = 0
28684 return 0;
28686 _ACEOF
28687 rm -f conftest.$ac_objext
28688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28689 (eval $ac_compile) 2>conftest.er1
28690 ac_status=$?
28691 grep -v '^ *+' conftest.er1 >conftest.err
28692 rm -f conftest.er1
28693 cat conftest.err >&5
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } &&
28696 { ac_try='test -z "$ac_c_werror_flag"
28697 || test ! -s conftest.err'
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; } &&
28703 { ac_try='test -s conftest.$ac_objext'
28704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
28709 ac_hi=$ac_mid; break
28710 else
28711 echo "$as_me: failed program was:" >&5
28712 sed 's/^/| /' conftest.$ac_ext >&5
28714 ac_lo=`expr $ac_mid + 1`
28715 if test $ac_lo -le $ac_mid; then
28716 ac_lo= ac_hi=
28717 break
28719 ac_mid=`expr 2 '*' $ac_mid + 1`
28721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28722 done
28723 else
28724 echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28727 cat >conftest.$ac_ext <<_ACEOF
28728 /* confdefs.h. */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h. */
28733 $ac_includes_default
28735 main ()
28737 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
28738 test_array [0] = 0
28741 return 0;
28743 _ACEOF
28744 rm -f conftest.$ac_objext
28745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28746 (eval $ac_compile) 2>conftest.er1
28747 ac_status=$?
28748 grep -v '^ *+' conftest.er1 >conftest.err
28749 rm -f conftest.er1
28750 cat conftest.err >&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } &&
28753 { ac_try='test -z "$ac_c_werror_flag"
28754 || test ! -s conftest.err'
28755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756 (eval $ac_try) 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; } &&
28760 { ac_try='test -s conftest.$ac_objext'
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; }; then
28766 ac_hi=-1 ac_mid=-1
28767 while :; do
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
28776 main ()
28778 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
28779 test_array [0] = 0
28782 return 0;
28784 _ACEOF
28785 rm -f conftest.$ac_objext
28786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28787 (eval $ac_compile) 2>conftest.er1
28788 ac_status=$?
28789 grep -v '^ *+' conftest.er1 >conftest.err
28790 rm -f conftest.er1
28791 cat conftest.err >&5
28792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); } &&
28794 { ac_try='test -z "$ac_c_werror_flag"
28795 || test ! -s conftest.err'
28796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 (eval $ac_try) 2>&5
28798 ac_status=$?
28799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 (exit $ac_status); }; } &&
28801 { ac_try='test -s conftest.$ac_objext'
28802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 (eval $ac_try) 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ac_lo=$ac_mid; break
28808 else
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28812 ac_hi=`expr '(' $ac_mid ')' - 1`
28813 if test $ac_mid -le $ac_hi; then
28814 ac_lo= ac_hi=
28815 break
28817 ac_mid=`expr 2 '*' $ac_mid`
28819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28820 done
28821 else
28822 echo "$as_me: failed program was:" >&5
28823 sed 's/^/| /' conftest.$ac_ext >&5
28825 ac_lo= ac_hi=
28827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28830 # Binary search between lo and hi bounds.
28831 while test "x$ac_lo" != "x$ac_hi"; do
28832 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28833 cat >conftest.$ac_ext <<_ACEOF
28834 /* confdefs.h. */
28835 _ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28839 $ac_includes_default
28841 main ()
28843 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
28844 test_array [0] = 0
28847 return 0;
28849 _ACEOF
28850 rm -f conftest.$ac_objext
28851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28852 (eval $ac_compile) 2>conftest.er1
28853 ac_status=$?
28854 grep -v '^ *+' conftest.er1 >conftest.err
28855 rm -f conftest.er1
28856 cat conftest.err >&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } &&
28859 { ac_try='test -z "$ac_c_werror_flag"
28860 || test ! -s conftest.err'
28861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28862 (eval $ac_try) 2>&5
28863 ac_status=$?
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); }; } &&
28866 { ac_try='test -s conftest.$ac_objext'
28867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28868 (eval $ac_try) 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
28872 ac_hi=$ac_mid
28873 else
28874 echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28877 ac_lo=`expr '(' $ac_mid ')' + 1`
28879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28880 done
28881 case $ac_lo in
28882 ?*) ac_cv_sizeof_voidp=$ac_lo;;
28883 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
28884 See \`config.log' for more details." >&5
28885 echo "$as_me: error: cannot compute sizeof (void*), 77
28886 See \`config.log' for more details." >&2;}
28887 { (exit 1); exit 1; }; } ;;
28888 esac
28889 else
28890 if test "$cross_compiling" = yes; then
28891 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28892 See \`config.log' for more details." >&5
28893 echo "$as_me: error: cannot run test program while cross compiling
28894 See \`config.log' for more details." >&2;}
28895 { (exit 1); exit 1; }; }
28896 else
28897 cat >conftest.$ac_ext <<_ACEOF
28898 /* confdefs.h. */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h. */
28903 $ac_includes_default
28904 long longval () { return (long) (sizeof (void*)); }
28905 unsigned long ulongval () { return (long) (sizeof (void*)); }
28906 #include <stdio.h>
28907 #include <stdlib.h>
28909 main ()
28912 FILE *f = fopen ("conftest.val", "w");
28913 if (! f)
28914 exit (1);
28915 if (((long) (sizeof (void*))) < 0)
28917 long i = longval ();
28918 if (i != ((long) (sizeof (void*))))
28919 exit (1);
28920 fprintf (f, "%ld\n", i);
28922 else
28924 unsigned long i = ulongval ();
28925 if (i != ((long) (sizeof (void*))))
28926 exit (1);
28927 fprintf (f, "%lu\n", i);
28929 exit (ferror (f) || fclose (f) != 0);
28932 return 0;
28934 _ACEOF
28935 rm -f conftest$ac_exeext
28936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28937 (eval $ac_link) 2>&5
28938 ac_status=$?
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; }; then
28946 ac_cv_sizeof_voidp=`cat conftest.val`
28947 else
28948 echo "$as_me: program exited with status $ac_status" >&5
28949 echo "$as_me: failed program was:" >&5
28950 sed 's/^/| /' conftest.$ac_ext >&5
28952 ( exit $ac_status )
28953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
28954 See \`config.log' for more details." >&5
28955 echo "$as_me: error: cannot compute sizeof (void*), 77
28956 See \`config.log' for more details." >&2;}
28957 { (exit 1); exit 1; }; }
28959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28962 rm -f conftest.val
28963 else
28964 ac_cv_sizeof_voidp=0
28967 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
28968 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
28969 cat >>confdefs.h <<_ACEOF
28970 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
28971 _ACEOF
28974 ac_cv_char_data_model=""
28975 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
28976 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
28977 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
28978 ac_cv_long_data_model=""
28979 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
28980 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
28981 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
28982 echo "$as_me:$LINENO: checking data model" >&5
28983 echo $ECHO_N "checking data model... $ECHO_C" >&6
28984 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
28985 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
28986 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
28987 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
28988 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
28989 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
28990 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
28991 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
28992 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
28993 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
28994 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
28995 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
28996 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
28997 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
28998 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
28999 222/*|333/*|444/*|666/*|888/*) :
29000 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
29001 *) ac_cv_data_model="none" ; n="very unusual model" ;;
29002 esac
29003 echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
29004 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
29008 if test "_$ac_cv_header_stdint_x" != "_" ; then
29009 ac_cv_header_stdint="$ac_cv_header_stdint_x"
29010 elif test "_$ac_cv_header_stdint_o" != "_" ; then
29011 ac_cv_header_stdint="$ac_cv_header_stdint_o"
29012 elif test "_$ac_cv_header_stdint_u" != "_" ; then
29013 ac_cv_header_stdint="$ac_cv_header_stdint_u"
29014 else
29015 ac_cv_header_stdint="stddef.h"
29018 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
29019 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
29020 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
29021 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
29022 unset ac_cv_type_int_least32_t
29023 unset ac_cv_type_int_fast32_t
29024 echo "$as_me:$LINENO: checking for int_least32_t" >&5
29025 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
29026 if test "${ac_cv_type_int_least32_t+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29028 else
29029 cat >conftest.$ac_ext <<_ACEOF
29030 /* confdefs.h. */
29031 _ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h. */
29035 #include <$ac_cv_header_stdint>
29038 main ()
29040 if ((int_least32_t *) 0)
29041 return 0;
29042 if (sizeof (int_least32_t))
29043 return 0;
29045 return 0;
29047 _ACEOF
29048 rm -f conftest.$ac_objext
29049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29050 (eval $ac_compile) 2>conftest.er1
29051 ac_status=$?
29052 grep -v '^ *+' conftest.er1 >conftest.err
29053 rm -f conftest.er1
29054 cat conftest.err >&5
29055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056 (exit $ac_status); } &&
29057 { ac_try='test -z "$ac_c_werror_flag"
29058 || test ! -s conftest.err'
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; } &&
29064 { ac_try='test -s conftest.$ac_objext'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; }; then
29070 ac_cv_type_int_least32_t=yes
29071 else
29072 echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29075 ac_cv_type_int_least32_t=no
29077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29079 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
29080 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
29082 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
29083 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
29084 if test "${ac_cv_type_int_fast32_t+set}" = set; then
29085 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 else
29087 cat >conftest.$ac_ext <<_ACEOF
29088 /* confdefs.h. */
29089 _ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h. */
29093 #include<$ac_cv_header_stdint>
29096 main ()
29098 if ((int_fast32_t *) 0)
29099 return 0;
29100 if (sizeof (int_fast32_t))
29101 return 0;
29103 return 0;
29105 _ACEOF
29106 rm -f conftest.$ac_objext
29107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29108 (eval $ac_compile) 2>conftest.er1
29109 ac_status=$?
29110 grep -v '^ *+' conftest.er1 >conftest.err
29111 rm -f conftest.er1
29112 cat conftest.err >&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } &&
29115 { ac_try='test -z "$ac_c_werror_flag"
29116 || test ! -s conftest.err'
29117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29118 (eval $ac_try) 2>&5
29119 ac_status=$?
29120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121 (exit $ac_status); }; } &&
29122 { ac_try='test -s conftest.$ac_objext'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; }; then
29128 ac_cv_type_int_fast32_t=yes
29129 else
29130 echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29133 ac_cv_type_int_fast32_t=no
29135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29137 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
29138 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
29140 echo "$as_me:$LINENO: checking for intmax_t" >&5
29141 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
29142 if test "${ac_cv_type_intmax_t+set}" = set; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145 cat >conftest.$ac_ext <<_ACEOF
29146 /* confdefs.h. */
29147 _ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h. */
29151 #include <$ac_cv_header_stdint>
29154 main ()
29156 if ((intmax_t *) 0)
29157 return 0;
29158 if (sizeof (intmax_t))
29159 return 0;
29161 return 0;
29163 _ACEOF
29164 rm -f conftest.$ac_objext
29165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29166 (eval $ac_compile) 2>conftest.er1
29167 ac_status=$?
29168 grep -v '^ *+' conftest.er1 >conftest.err
29169 rm -f conftest.er1
29170 cat conftest.err >&5
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
29173 { ac_try='test -z "$ac_c_werror_flag"
29174 || test ! -s conftest.err'
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest.$ac_objext'
29181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182 (eval $ac_try) 2>&5
29183 ac_status=$?
29184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); }; }; then
29186 ac_cv_type_intmax_t=yes
29187 else
29188 echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29191 ac_cv_type_intmax_t=no
29193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29195 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
29196 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
29199 fi # shortcircut to system "stdint.h"
29200 # ------------------ PREPARE VARIABLES ------------------------------
29201 if test "$GCC" = "yes" ; then
29202 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
29203 else
29204 ac_cv_stdint_message="using $CC"
29207 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
29208 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
29210 # ----------------- DONE inttypes.h checks START header -------------
29211 ac_config_commands="$ac_config_commands $ac_stdint_h"
29216 # Check whether --with-glibj_zip or --without-glibj_zip was given.
29217 if test "${with_glibj_zip+set}" = set; then
29218 withval="$with_glibj_zip"
29222 case "$with_glibj_zip" in
29224 use_glibj_zip=false
29226 "no" )
29227 use_glibj_zip=false
29229 "yes")
29230 { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
29231 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
29232 { (exit 1); exit 1; }; }
29235 use_glibj_zip=true
29236 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
29238 esac;
29242 if test x$use_glibj_zip = xtrue; then
29243 USE_PREBUILT_GLIBJ_ZIP_TRUE=
29244 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
29245 else
29246 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
29247 USE_PREBUILT_GLIBJ_ZIP_FALSE=
29253 # Check whether --with-escher or --without-escher was given.
29254 if test "${with_escher+set}" = set; then
29255 withval="$with_escher"
29258 case "$with_escher" in
29260 use_escher=false
29262 "no")
29263 use_escher=false
29265 "yes")
29266 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
29267 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
29268 { (exit 1); exit 1; }; }
29271 use_escher=true
29272 PATH_TO_ESCHER=$with_escher
29274 esac
29278 if test x$use_escher = xtrue; then
29279 USE_ESCHER_TRUE=
29280 USE_ESCHER_FALSE='#'
29281 else
29282 USE_ESCHER_TRUE='#'
29283 USE_ESCHER_FALSE=
29288 # Check whether --enable-local-sockets or --disable-local-sockets was given.
29289 if test "${enable_local_sockets+set}" = set; then
29290 enableval="$enable_local_sockets"
29291 case "${enableval}" in
29292 yes)
29293 ENABLE_LOCAL_SOCKETS=yes
29296 ENABLE_LOCAL_SOCKETS=no
29298 esac
29300 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
29301 then
29302 if test "${ac_cv_header_sys_un_h+set}" = set; then
29303 echo "$as_me:$LINENO: checking for sys/un.h" >&5
29304 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
29305 if test "${ac_cv_header_sys_un_h+set}" = set; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29308 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
29309 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
29310 else
29311 # Is the header compilable?
29312 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
29313 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
29314 cat >conftest.$ac_ext <<_ACEOF
29315 /* confdefs.h. */
29316 _ACEOF
29317 cat confdefs.h >>conftest.$ac_ext
29318 cat >>conftest.$ac_ext <<_ACEOF
29319 /* end confdefs.h. */
29320 $ac_includes_default
29321 #include <sys/un.h>
29322 _ACEOF
29323 rm -f conftest.$ac_objext
29324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29325 (eval $ac_compile) 2>conftest.er1
29326 ac_status=$?
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
29332 { ac_try='test -z "$ac_c_werror_flag"
29333 || test ! -s conftest.err'
29334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338 (exit $ac_status); }; } &&
29339 { ac_try='test -s conftest.$ac_objext'
29340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29341 (eval $ac_try) 2>&5
29342 ac_status=$?
29343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344 (exit $ac_status); }; }; then
29345 ac_header_compiler=yes
29346 else
29347 echo "$as_me: failed program was:" >&5
29348 sed 's/^/| /' conftest.$ac_ext >&5
29350 ac_header_compiler=no
29352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29354 echo "${ECHO_T}$ac_header_compiler" >&6
29356 # Is the header present?
29357 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
29358 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
29359 cat >conftest.$ac_ext <<_ACEOF
29360 /* confdefs.h. */
29361 _ACEOF
29362 cat confdefs.h >>conftest.$ac_ext
29363 cat >>conftest.$ac_ext <<_ACEOF
29364 /* end confdefs.h. */
29365 #include <sys/un.h>
29366 _ACEOF
29367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29369 ac_status=$?
29370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } >/dev/null; then
29375 if test -s conftest.err; then
29376 ac_cpp_err=$ac_c_preproc_warn_flag
29377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29378 else
29379 ac_cpp_err=
29381 else
29382 ac_cpp_err=yes
29384 if test -z "$ac_cpp_err"; then
29385 ac_header_preproc=yes
29386 else
29387 echo "$as_me: failed program was:" >&5
29388 sed 's/^/| /' conftest.$ac_ext >&5
29390 ac_header_preproc=no
29392 rm -f conftest.err conftest.$ac_ext
29393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29394 echo "${ECHO_T}$ac_header_preproc" >&6
29396 # So? What about this header?
29397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29398 yes:no: )
29399 { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
29400 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
29402 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
29403 ac_header_preproc=yes
29405 no:yes:* )
29406 { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
29407 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
29408 { echo "$as_me:$LINENO: WARNING: sys/un.h: check for missing prerequisite headers?" >&5
29409 echo "$as_me: WARNING: sys/un.h: check for missing prerequisite headers?" >&2;}
29410 { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
29411 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&5
29413 echo "$as_me: WARNING: sys/un.h: section \"Present But Cannot Be Compiled\"" >&2;}
29414 { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
29415 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
29417 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
29419 cat <<\_ASBOX
29420 ## -------------------------------- ##
29421 ## Report this to classpath@gnu.org ##
29422 ## -------------------------------- ##
29423 _ASBOX
29425 sed "s/^/$as_me: WARNING: /" >&2
29427 esac
29428 echo "$as_me:$LINENO: checking for sys/un.h" >&5
29429 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
29430 if test "${ac_cv_header_sys_un_h+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432 else
29433 ac_cv_header_sys_un_h=$ac_header_preproc
29435 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
29436 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
29447 for ac_func in read write bind listen accept shutdown
29449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29450 echo "$as_me:$LINENO: checking for $ac_func" >&5
29451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29452 if eval "test \"\${$as_ac_var+set}\" = set"; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454 else
29455 if test x$gcc_no_link = xyes; then
29456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29458 { (exit 1); exit 1; }; }
29460 cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h. */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h. */
29466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29468 #define $ac_func innocuous_$ac_func
29470 /* System header to define __stub macros and hopefully few prototypes,
29471 which can conflict with char $ac_func (); below.
29472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29473 <limits.h> exists even on freestanding compilers. */
29475 #ifdef __STDC__
29476 # include <limits.h>
29477 #else
29478 # include <assert.h>
29479 #endif
29481 #undef $ac_func
29483 /* Override any gcc2 internal prototype to avoid an error. */
29484 #ifdef __cplusplus
29485 extern "C"
29487 #endif
29488 /* We use char because int might match the return type of a gcc2
29489 builtin and then its argument prototype would still apply. */
29490 char $ac_func ();
29491 /* The GNU C library defines this for functions which it implements
29492 to always fail with ENOSYS. Some functions are actually named
29493 something starting with __ and the normal name is an alias. */
29494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29495 choke me
29496 #else
29497 char (*f) () = $ac_func;
29498 #endif
29499 #ifdef __cplusplus
29501 #endif
29504 main ()
29506 return f != $ac_func;
29508 return 0;
29510 _ACEOF
29511 rm -f conftest.$ac_objext conftest$ac_exeext
29512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29513 (eval $ac_link) 2>conftest.er1
29514 ac_status=$?
29515 grep -v '^ *+' conftest.er1 >conftest.err
29516 rm -f conftest.er1
29517 cat conftest.err >&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); } &&
29520 { ac_try='test -z "$ac_c_werror_flag"
29521 || test ! -s conftest.err'
29522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523 (eval $ac_try) 2>&5
29524 ac_status=$?
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; } &&
29527 { ac_try='test -s conftest$ac_exeext'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29530 ac_status=$?
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; }; then
29533 eval "$as_ac_var=yes"
29534 else
29535 echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.$ac_ext >&5
29538 eval "$as_ac_var=no"
29540 rm -f conftest.err conftest.$ac_objext \
29541 conftest$ac_exeext conftest.$ac_ext
29543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29545 if test `eval echo '${'$as_ac_var'}'` = yes; then
29546 cat >>confdefs.h <<_ACEOF
29547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29548 _ACEOF
29550 else
29551 { { echo "$as_me:$LINENO: error: networking support not available" >&5
29552 echo "$as_me: error: networking support not available" >&2;}
29553 { (exit 1); exit 1; }; }
29555 done
29558 cat >>confdefs.h <<\_ACEOF
29559 #define ENABLE_LOCAL_SOCKETS 1
29560 _ACEOF
29565 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
29566 ENABLE_LOCAL_SOCKETS_TRUE=
29567 ENABLE_LOCAL_SOCKETS_FALSE='#'
29568 else
29569 ENABLE_LOCAL_SOCKETS_TRUE='#'
29570 ENABLE_LOCAL_SOCKETS_FALSE=
29576 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-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 tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
29579 if test "x${COMPILE_WRAPPERS}" = xno
29580 then
29581 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"
29583 ac_config_commands="$ac_config_commands gappletviewer"
29585 ac_config_commands="$ac_config_commands gjarsigner"
29587 ac_config_commands="$ac_config_commands gkeytool"
29589 ac_config_commands="$ac_config_commands gjar"
29591 ac_config_commands="$ac_config_commands gnative2ascii"
29593 ac_config_commands="$ac_config_commands gserialver"
29595 ac_config_commands="$ac_config_commands grmiregistry"
29597 ac_config_commands="$ac_config_commands gtnameserv"
29599 ac_config_commands="$ac_config_commands gorbd"
29601 ac_config_commands="$ac_config_commands grmid"
29603 ac_config_commands="$ac_config_commands grmic"
29605 ac_config_commands="$ac_config_commands gjavah"
29609 ac_config_commands="$ac_config_commands gen-classlist"
29611 ac_config_commands="$ac_config_commands copy-vmresources"
29613 cat >confcache <<\_ACEOF
29614 # This file is a shell script that caches the results of configure
29615 # tests run on this system so they can be shared between configure
29616 # scripts and configure runs, see configure's option --config-cache.
29617 # It is not useful on other systems. If it contains results you don't
29618 # want to keep, you may remove or edit it.
29620 # config.status only pays attention to the cache file if you give it
29621 # the --recheck option to rerun configure.
29623 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29624 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29625 # following values.
29627 _ACEOF
29629 # The following way of writing the cache mishandles newlines in values,
29630 # but we know of no workaround that is simple, portable, and efficient.
29631 # So, don't put newlines in cache variables' values.
29632 # Ultrix sh set writes to stderr and can't be redirected directly,
29633 # and sets the high bit in the cache file unless we assign to the vars.
29635 (set) 2>&1 |
29636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29637 *ac_space=\ *)
29638 # `set' does not quote correctly, so add quotes (double-quote
29639 # substitution turns \\\\ into \\, and sed turns \\ into \).
29640 sed -n \
29641 "s/'/'\\\\''/g;
29642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29645 # `set' quotes correctly as required by POSIX, so do not add quotes.
29646 sed -n \
29647 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29649 esac;
29651 sed '
29652 t clear
29653 : clear
29654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29655 t end
29656 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29657 : end' >>confcache
29658 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29659 if test -w $cache_file; then
29660 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29661 cat confcache >$cache_file
29662 else
29663 echo "not updating unwritable cache $cache_file"
29666 rm -f confcache
29668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29669 # Let make expand exec_prefix.
29670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29674 # trailing colons and then remove the whole line if VPATH becomes empty
29675 # (actually we leave an empty line to preserve line numbers).
29676 if test "x$srcdir" = x.; then
29677 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29678 s/:*\$(srcdir):*/:/;
29679 s/:*\${srcdir}:*/:/;
29680 s/:*@srcdir@:*/:/;
29681 s/^\([^=]*=[ ]*\):*/\1/;
29682 s/:*$//;
29683 s/^[^=]*=[ ]*$//;
29687 DEFS=-DHAVE_CONFIG_H
29689 ac_libobjs=
29690 ac_ltlibobjs=
29691 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29692 # 1. Remove the extension, and $U if already installed.
29693 ac_i=`echo "$ac_i" |
29694 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29695 # 2. Add them.
29696 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29697 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29698 done
29699 LIBOBJS=$ac_libobjs
29701 LTLIBOBJS=$ac_ltlibobjs
29704 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
29705 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
29706 Usually this means the macro was only invoked conditionally." >&5
29707 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
29708 Usually this means the macro was only invoked conditionally." >&2;}
29709 { (exit 1); exit 1; }; }
29711 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
29712 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
29713 Usually this means the macro was only invoked conditionally." >&5
29714 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
29715 Usually this means the macro was only invoked conditionally." >&2;}
29716 { (exit 1); exit 1; }; }
29718 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
29719 { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
29720 Usually this means the macro was only invoked conditionally." >&5
29721 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
29722 Usually this means the macro was only invoked conditionally." >&2;}
29723 { (exit 1); exit 1; }; }
29725 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
29726 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
29727 Usually this means the macro was only invoked conditionally." >&5
29728 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
29729 Usually this means the macro was only invoked conditionally." >&2;}
29730 { (exit 1); exit 1; }; }
29732 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
29733 { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
29734 Usually this means the macro was only invoked conditionally." >&5
29735 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
29736 Usually this means the macro was only invoked conditionally." >&2;}
29737 { (exit 1); exit 1; }; }
29739 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
29740 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
29741 Usually this means the macro was only invoked conditionally." >&5
29742 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
29743 Usually this means the macro was only invoked conditionally." >&2;}
29744 { (exit 1); exit 1; }; }
29746 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
29747 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
29748 Usually this means the macro was only invoked conditionally." >&5
29749 echo "$as_me: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
29750 Usually this means the macro was only invoked conditionally." >&2;}
29751 { (exit 1); exit 1; }; }
29753 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
29754 { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
29755 Usually this means the macro was only invoked conditionally." >&5
29756 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
29757 Usually this means the macro was only invoked conditionally." >&2;}
29758 { (exit 1); exit 1; }; }
29760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29761 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29762 Usually this means the macro was only invoked conditionally." >&5
29763 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29764 Usually this means the macro was only invoked conditionally." >&2;}
29765 { (exit 1); exit 1; }; }
29767 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29768 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29769 Usually this means the macro was only invoked conditionally." >&5
29770 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29771 Usually this means the macro was only invoked conditionally." >&2;}
29772 { (exit 1); exit 1; }; }
29774 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
29775 { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
29776 Usually this means the macro was only invoked conditionally." >&5
29777 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
29778 Usually this means the macro was only invoked conditionally." >&2;}
29779 { (exit 1); exit 1; }; }
29781 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
29782 { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
29783 Usually this means the macro was only invoked conditionally." >&5
29784 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
29785 Usually this means the macro was only invoked conditionally." >&2;}
29786 { (exit 1); exit 1; }; }
29788 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
29789 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
29790 Usually this means the macro was only invoked conditionally." >&5
29791 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
29792 Usually this means the macro was only invoked conditionally." >&2;}
29793 { (exit 1); exit 1; }; }
29795 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
29796 { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
29797 Usually this means the macro was only invoked conditionally." >&5
29798 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
29799 Usually this means the macro was only invoked conditionally." >&2;}
29800 { (exit 1); exit 1; }; }
29802 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
29803 { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
29804 Usually this means the macro was only invoked conditionally." >&5
29805 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
29806 Usually this means the macro was only invoked conditionally." >&2;}
29807 { (exit 1); exit 1; }; }
29809 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
29810 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
29811 Usually this means the macro was only invoked conditionally." >&5
29812 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
29813 Usually this means the macro was only invoked conditionally." >&2;}
29814 { (exit 1); exit 1; }; }
29816 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
29817 { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
29818 Usually this means the macro was only invoked conditionally." >&5
29819 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
29820 Usually this means the macro was only invoked conditionally." >&2;}
29821 { (exit 1); exit 1; }; }
29823 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29824 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29825 Usually this means the macro was only invoked conditionally." >&5
29826 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29827 Usually this means the macro was only invoked conditionally." >&2;}
29828 { (exit 1); exit 1; }; }
29830 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29831 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29832 Usually this means the macro was only invoked conditionally." >&5
29833 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29834 Usually this means the macro was only invoked conditionally." >&2;}
29835 { (exit 1); exit 1; }; }
29837 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29838 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29839 Usually this means the macro was only invoked conditionally." >&5
29840 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29841 Usually this means the macro was only invoked conditionally." >&2;}
29842 { (exit 1); exit 1; }; }
29844 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
29845 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
29846 Usually this means the macro was only invoked conditionally." >&5
29847 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
29848 Usually this means the macro was only invoked conditionally." >&2;}
29849 { (exit 1); exit 1; }; }
29851 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
29852 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
29853 Usually this means the macro was only invoked conditionally." >&5
29854 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
29855 Usually this means the macro was only invoked conditionally." >&2;}
29856 { (exit 1); exit 1; }; }
29858 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
29859 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
29860 Usually this means the macro was only invoked conditionally." >&5
29861 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
29862 Usually this means the macro was only invoked conditionally." >&2;}
29863 { (exit 1); exit 1; }; }
29865 if test -z "${FOUND_JAVAC_TRUE}" && test -z "${FOUND_JAVAC_FALSE}"; then
29866 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JAVAC\" was never defined.
29867 Usually this means the macro was only invoked conditionally." >&5
29868 echo "$as_me: error: conditional \"FOUND_JAVAC\" was never defined.
29869 Usually this means the macro was only invoked conditionally." >&2;}
29870 { (exit 1); exit 1; }; }
29872 if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
29873 { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
29874 Usually this means the macro was only invoked conditionally." >&5
29875 echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
29876 Usually this means the macro was only invoked conditionally." >&2;}
29877 { (exit 1); exit 1; }; }
29879 if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
29880 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
29881 Usually this means the macro was only invoked conditionally." >&5
29882 echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
29883 Usually this means the macro was only invoked conditionally." >&2;}
29884 { (exit 1); exit 1; }; }
29886 if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
29887 { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
29888 Usually this means the macro was only invoked conditionally." >&5
29889 echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
29890 Usually this means the macro was only invoked conditionally." >&2;}
29891 { (exit 1); exit 1; }; }
29893 if test -z "${FOUND_JAVAC_TRUE}" && test -z "${FOUND_JAVAC_FALSE}"; then
29894 { { echo "$as_me:$LINENO: error: conditional \"FOUND_JAVAC\" was never defined.
29895 Usually this means the macro was only invoked conditionally." >&5
29896 echo "$as_me: error: conditional \"FOUND_JAVAC\" was never defined.
29897 Usually this means the macro was only invoked conditionally." >&2;}
29898 { (exit 1); exit 1; }; }
29900 if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
29901 { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
29902 Usually this means the macro was only invoked conditionally." >&5
29903 echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
29904 Usually this means the macro was only invoked conditionally." >&2;}
29905 { (exit 1); exit 1; }; }
29907 if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
29908 { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
29909 Usually this means the macro was only invoked conditionally." >&5
29910 echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
29911 Usually this means the macro was only invoked conditionally." >&2;}
29912 { (exit 1); exit 1; }; }
29914 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29915 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29916 Usually this means the macro was only invoked conditionally." >&5
29917 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29918 Usually this means the macro was only invoked conditionally." >&2;}
29919 { (exit 1); exit 1; }; }
29921 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
29922 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
29923 Usually this means the macro was only invoked conditionally." >&5
29924 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
29925 Usually this means the macro was only invoked conditionally." >&2;}
29926 { (exit 1); exit 1; }; }
29928 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
29929 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
29930 Usually this means the macro was only invoked conditionally." >&5
29931 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
29932 Usually this means the macro was only invoked conditionally." >&2;}
29933 { (exit 1); exit 1; }; }
29935 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
29936 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
29937 Usually this means the macro was only invoked conditionally." >&5
29938 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
29939 Usually this means the macro was only invoked conditionally." >&2;}
29940 { (exit 1); exit 1; }; }
29942 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
29943 { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
29944 Usually this means the macro was only invoked conditionally." >&5
29945 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
29946 Usually this means the macro was only invoked conditionally." >&2;}
29947 { (exit 1); exit 1; }; }
29949 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
29950 { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
29951 Usually this means the macro was only invoked conditionally." >&5
29952 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
29953 Usually this means the macro was only invoked conditionally." >&2;}
29954 { (exit 1); exit 1; }; }
29956 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
29957 { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
29958 Usually this means the macro was only invoked conditionally." >&5
29959 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
29960 Usually this means the macro was only invoked conditionally." >&2;}
29961 { (exit 1); exit 1; }; }
29963 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
29964 { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
29965 Usually this means the macro was only invoked conditionally." >&5
29966 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
29967 Usually this means the macro was only invoked conditionally." >&2;}
29968 { (exit 1); exit 1; }; }
29970 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
29971 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
29972 Usually this means the macro was only invoked conditionally." >&5
29973 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
29974 Usually this means the macro was only invoked conditionally." >&2;}
29975 { (exit 1); exit 1; }; }
29978 : ${CONFIG_STATUS=./config.status}
29979 ac_clean_files_save=$ac_clean_files
29980 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29981 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29982 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29983 cat >$CONFIG_STATUS <<_ACEOF
29984 #! $SHELL
29985 # Generated by $as_me.
29986 # Run this file to recreate the current configuration.
29987 # Compiler output produced by configure, useful for debugging
29988 # configure, is in config.log if it exists.
29990 debug=false
29991 ac_cs_recheck=false
29992 ac_cs_silent=false
29993 SHELL=\${CONFIG_SHELL-$SHELL}
29994 _ACEOF
29996 cat >>$CONFIG_STATUS <<\_ACEOF
29997 ## --------------------- ##
29998 ## M4sh Initialization. ##
29999 ## --------------------- ##
30001 # Be Bourne compatible
30002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30003 emulate sh
30004 NULLCMD=:
30005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30006 # is contrary to our usage. Disable this feature.
30007 alias -g '${1+"$@"}'='"$@"'
30008 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30009 set -o posix
30011 DUALCASE=1; export DUALCASE # for MKS sh
30013 # Support unset when possible.
30014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30015 as_unset=unset
30016 else
30017 as_unset=false
30021 # Work around bugs in pre-3.0 UWIN ksh.
30022 $as_unset ENV MAIL MAILPATH
30023 PS1='$ '
30024 PS2='> '
30025 PS4='+ '
30027 # NLS nuisances.
30028 for as_var in \
30029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30031 LC_TELEPHONE LC_TIME
30033 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30034 eval $as_var=C; export $as_var
30035 else
30036 $as_unset $as_var
30038 done
30040 # Required to use basename.
30041 if expr a : '\(a\)' >/dev/null 2>&1; then
30042 as_expr=expr
30043 else
30044 as_expr=false
30047 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30048 as_basename=basename
30049 else
30050 as_basename=false
30054 # Name of the executable.
30055 as_me=`$as_basename "$0" ||
30056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30057 X"$0" : 'X\(//\)$' \| \
30058 X"$0" : 'X\(/\)$' \| \
30059 . : '\(.\)' 2>/dev/null ||
30060 echo X/"$0" |
30061 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30062 /^X\/\(\/\/\)$/{ s//\1/; q; }
30063 /^X\/\(\/\).*/{ s//\1/; q; }
30064 s/.*/./; q'`
30067 # PATH needs CR, and LINENO needs CR and PATH.
30068 # Avoid depending upon Character Ranges.
30069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30072 as_cr_digits='0123456789'
30073 as_cr_alnum=$as_cr_Letters$as_cr_digits
30075 # The user is always right.
30076 if test "${PATH_SEPARATOR+set}" != set; then
30077 echo "#! /bin/sh" >conf$$.sh
30078 echo "exit 0" >>conf$$.sh
30079 chmod +x conf$$.sh
30080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30081 PATH_SEPARATOR=';'
30082 else
30083 PATH_SEPARATOR=:
30085 rm -f conf$$.sh
30089 as_lineno_1=$LINENO
30090 as_lineno_2=$LINENO
30091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30092 test "x$as_lineno_1" != "x$as_lineno_2" &&
30093 test "x$as_lineno_3" = "x$as_lineno_2" || {
30094 # Find who we are. Look in the path if we contain no path at all
30095 # relative or not.
30096 case $0 in
30097 *[\\/]* ) as_myself=$0 ;;
30098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30099 for as_dir in $PATH
30101 IFS=$as_save_IFS
30102 test -z "$as_dir" && as_dir=.
30103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30104 done
30107 esac
30108 # We did not find ourselves, most probably we were run as `sh COMMAND'
30109 # in which case we are not to be found in the path.
30110 if test "x$as_myself" = x; then
30111 as_myself=$0
30113 if test ! -f "$as_myself"; then
30114 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30115 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30116 { (exit 1); exit 1; }; }
30118 case $CONFIG_SHELL in
30120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30121 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30123 IFS=$as_save_IFS
30124 test -z "$as_dir" && as_dir=.
30125 for as_base in sh bash ksh sh5; do
30126 case $as_dir in
30128 if ("$as_dir/$as_base" -c '
30129 as_lineno_1=$LINENO
30130 as_lineno_2=$LINENO
30131 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30132 test "x$as_lineno_1" != "x$as_lineno_2" &&
30133 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30134 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30135 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30136 CONFIG_SHELL=$as_dir/$as_base
30137 export CONFIG_SHELL
30138 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30139 fi;;
30140 esac
30141 done
30142 done
30144 esac
30146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30147 # uniformly replaced by the line number. The first 'sed' inserts a
30148 # line-number line before each line; the second 'sed' does the real
30149 # work. The second script uses 'N' to pair each line-number line
30150 # with the numbered line, and appends trailing '-' during
30151 # substitution so that $LINENO is not a special case at line end.
30152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30153 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30154 sed '=' <$as_myself |
30155 sed '
30157 s,$,-,
30158 : loop
30159 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30160 t loop
30161 s,-$,,
30162 s,^['$as_cr_digits']*\n,,
30163 ' >$as_me.lineno &&
30164 chmod +x $as_me.lineno ||
30165 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30166 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30167 { (exit 1); exit 1; }; }
30169 # Don't try to exec as it changes $[0], causing all sort of problems
30170 # (the dirname of $[0] is not the place where we might find the
30171 # original and so on. Autoconf is especially sensible to this).
30172 . ./$as_me.lineno
30173 # Exit status is that of the last command.
30174 exit
30178 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30179 *c*,-n*) ECHO_N= ECHO_C='
30180 ' ECHO_T=' ' ;;
30181 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30182 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30183 esac
30185 if expr a : '\(a\)' >/dev/null 2>&1; then
30186 as_expr=expr
30187 else
30188 as_expr=false
30191 rm -f conf$$ conf$$.exe conf$$.file
30192 echo >conf$$.file
30193 if ln -s conf$$.file conf$$ 2>/dev/null; then
30194 # We could just check for DJGPP; but this test a) works b) is more generic
30195 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30196 if test -f conf$$.exe; then
30197 # Don't use ln at all; we don't have any links
30198 as_ln_s='cp -p'
30199 else
30200 as_ln_s='ln -s'
30202 elif ln conf$$.file conf$$ 2>/dev/null; then
30203 as_ln_s=ln
30204 else
30205 as_ln_s='cp -p'
30207 rm -f conf$$ conf$$.exe conf$$.file
30209 if mkdir -p . 2>/dev/null; then
30210 as_mkdir_p=:
30211 else
30212 test -d ./-p && rmdir ./-p
30213 as_mkdir_p=false
30216 as_executable_p="test -f"
30218 # Sed expression to map a string onto a valid CPP name.
30219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30221 # Sed expression to map a string onto a valid variable name.
30222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30225 # IFS
30226 # We need space, tab and new line, in precisely that order.
30227 as_nl='
30229 IFS=" $as_nl"
30231 # CDPATH.
30232 $as_unset CDPATH
30234 exec 6>&1
30236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30237 # report actual input values of CONFIG_FILES etc. instead of their
30238 # values after options handling. Logging --version etc. is OK.
30239 exec 5>>config.log
30241 echo
30242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30243 ## Running $as_me. ##
30244 _ASBOX
30245 } >&5
30246 cat >&5 <<_CSEOF
30248 This file was extended by GNU Classpath $as_me 0.96-pre, which was
30249 generated by GNU Autoconf 2.59. Invocation command line was
30251 CONFIG_FILES = $CONFIG_FILES
30252 CONFIG_HEADERS = $CONFIG_HEADERS
30253 CONFIG_LINKS = $CONFIG_LINKS
30254 CONFIG_COMMANDS = $CONFIG_COMMANDS
30255 $ $0 $@
30257 _CSEOF
30258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30259 echo >&5
30260 _ACEOF
30262 # Files that config.status was made for.
30263 if test -n "$ac_config_files"; then
30264 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30267 if test -n "$ac_config_headers"; then
30268 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30271 if test -n "$ac_config_links"; then
30272 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30275 if test -n "$ac_config_commands"; then
30276 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30279 cat >>$CONFIG_STATUS <<\_ACEOF
30281 ac_cs_usage="\
30282 \`$as_me' instantiates files from templates according to the
30283 current configuration.
30285 Usage: $0 [OPTIONS] [FILE]...
30287 -h, --help print this help, then exit
30288 -V, --version print version number, then exit
30289 -q, --quiet do not print progress messages
30290 -d, --debug don't remove temporary files
30291 --recheck update $as_me by reconfiguring in the same conditions
30292 --file=FILE[:TEMPLATE]
30293 instantiate the configuration file FILE
30294 --header=FILE[:TEMPLATE]
30295 instantiate the configuration header FILE
30297 Configuration files:
30298 $config_files
30300 Configuration headers:
30301 $config_headers
30303 Configuration links:
30304 $config_links
30306 Configuration commands:
30307 $config_commands
30309 Report bugs to <bug-autoconf@gnu.org>."
30310 _ACEOF
30312 cat >>$CONFIG_STATUS <<_ACEOF
30313 ac_cs_version="\\
30314 GNU Classpath config.status 0.96-pre
30315 configured by $0, generated by GNU Autoconf 2.59,
30316 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30318 Copyright (C) 2003 Free Software Foundation, Inc.
30319 This config.status script is free software; the Free Software Foundation
30320 gives unlimited permission to copy, distribute and modify it."
30321 srcdir=$srcdir
30322 INSTALL="$INSTALL"
30323 _ACEOF
30325 cat >>$CONFIG_STATUS <<\_ACEOF
30326 # If no file are specified by the user, then we need to provide default
30327 # value. By we need to know if files were specified by the user.
30328 ac_need_defaults=:
30329 while test $# != 0
30331 case $1 in
30332 --*=*)
30333 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30334 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30335 ac_shift=:
30338 ac_option=$1
30339 ac_optarg=$2
30340 ac_shift=shift
30342 *) # This is not an option, so the user has probably given explicit
30343 # arguments.
30344 ac_option=$1
30345 ac_need_defaults=false;;
30346 esac
30348 case $ac_option in
30349 # Handling of the options.
30350 _ACEOF
30351 cat >>$CONFIG_STATUS <<\_ACEOF
30352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30353 ac_cs_recheck=: ;;
30354 --version | --vers* | -V )
30355 echo "$ac_cs_version"; exit 0 ;;
30356 --he | --h)
30357 # Conflict between --help and --header
30358 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30359 Try \`$0 --help' for more information." >&5
30360 echo "$as_me: error: ambiguous option: $1
30361 Try \`$0 --help' for more information." >&2;}
30362 { (exit 1); exit 1; }; };;
30363 --help | --hel | -h )
30364 echo "$ac_cs_usage"; exit 0 ;;
30365 --debug | --d* | -d )
30366 debug=: ;;
30367 --file | --fil | --fi | --f )
30368 $ac_shift
30369 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30370 ac_need_defaults=false;;
30371 --header | --heade | --head | --hea )
30372 $ac_shift
30373 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30374 ac_need_defaults=false;;
30375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30377 ac_cs_silent=: ;;
30379 # This is an error.
30380 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30381 Try \`$0 --help' for more information." >&5
30382 echo "$as_me: error: unrecognized option: $1
30383 Try \`$0 --help' for more information." >&2;}
30384 { (exit 1); exit 1; }; } ;;
30386 *) ac_config_targets="$ac_config_targets $1" ;;
30388 esac
30389 shift
30390 done
30392 ac_configure_extra_args=
30394 if $ac_cs_silent; then
30395 exec 6>/dev/null
30396 ac_configure_extra_args="$ac_configure_extra_args --silent"
30399 _ACEOF
30400 cat >>$CONFIG_STATUS <<_ACEOF
30401 if \$ac_cs_recheck; then
30402 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30403 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30406 _ACEOF
30408 cat >>$CONFIG_STATUS <<_ACEOF
30410 # INIT-COMMANDS section.
30414 srcdir="$srcdir"
30415 host="$host"
30416 target="$target"
30417 with_multisubdir="$with_multisubdir"
30418 with_multisrctop="$with_multisrctop"
30419 with_target_subdir="$with_target_subdir"
30420 ac_configure_args="${multilib_arg} ${ac_configure_args}"
30421 multi_basedir="$multi_basedir"
30422 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
30423 CC="$CC"
30424 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30427 # The HP-UX ksh and POSIX shell print the target directory to stdout
30428 # if CDPATH is set.
30429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30431 sed_quote_subst='$sed_quote_subst'
30432 double_quote_subst='$double_quote_subst'
30433 delay_variable_subst='$delay_variable_subst'
30434 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30435 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30436 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30437 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30438 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30439 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30440 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30441 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30442 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30443 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30444 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30445 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30446 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30447 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30448 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30449 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30450 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30451 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30452 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30453 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30454 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30455 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30456 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30457 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30458 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30459 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30460 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30461 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30462 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30463 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30464 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30465 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30466 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30467 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30468 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30469 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30470 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30471 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30472 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30473 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30474 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30475 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30476 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30477 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"`'
30478 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30479 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30480 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30481 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30482 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30483 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30484 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30485 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30486 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30487 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30488 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30489 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30490 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30491 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30492 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30493 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30494 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30495 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30496 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30497 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30498 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30499 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30500 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30501 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30502 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30503 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30504 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30505 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30506 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30507 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30508 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30509 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30510 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30511 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30512 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30513 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30514 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30515 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30516 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30517 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30518 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30519 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30520 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30521 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30522 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30523 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30524 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30525 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30526 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30527 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30528 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30529 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30530 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30531 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30532 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30533 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30534 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30535 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30536 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30537 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30538 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30539 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30540 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30541 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30542 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30543 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30544 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30545 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30546 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30547 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30548 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30549 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30550 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30551 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30552 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30553 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30554 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30555 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30556 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30557 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30558 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30559 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30560 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30561 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30562 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30563 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30564 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30565 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30566 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30567 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30568 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30569 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30570 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30571 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30572 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30573 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30574 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30575 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30576 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30577 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30578 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30579 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30580 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30581 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30582 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30583 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30584 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30585 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30586 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30587 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30588 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30589 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30590 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30591 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30592 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30593 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30594 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30595 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30597 LTCC='$LTCC'
30598 LTCFLAGS='$LTCFLAGS'
30599 compiler='$compiler_DEFAULT'
30601 # Quote evaled strings.
30602 for var in SED \
30603 GREP \
30604 EGREP \
30605 FGREP \
30606 LD \
30607 NM \
30608 LN_S \
30609 lt_SP2NL \
30610 lt_NL2SP \
30611 reload_flag \
30612 deplibs_check_method \
30613 file_magic_cmd \
30614 AR \
30615 AR_FLAGS \
30616 STRIP \
30617 RANLIB \
30618 CC \
30619 CFLAGS \
30620 compiler \
30621 lt_cv_sys_global_symbol_pipe \
30622 lt_cv_sys_global_symbol_to_cdecl \
30623 lt_cv_sys_global_symbol_to_c_name_address \
30624 SHELL \
30625 ECHO \
30626 lt_prog_compiler_no_builtin_flag \
30627 lt_prog_compiler_wl \
30628 lt_prog_compiler_pic \
30629 lt_prog_compiler_static \
30630 lt_cv_prog_compiler_c_o \
30631 need_locks \
30632 shrext_cmds \
30633 export_dynamic_flag_spec \
30634 whole_archive_flag_spec \
30635 compiler_needs_object \
30636 with_gnu_ld \
30637 allow_undefined_flag \
30638 no_undefined_flag \
30639 hardcode_libdir_flag_spec \
30640 hardcode_libdir_flag_spec_ld \
30641 hardcode_libdir_separator \
30642 fix_srcfile_path \
30643 exclude_expsyms \
30644 include_expsyms \
30645 file_list_spec \
30646 variables_saved_for_relink \
30647 libname_spec \
30648 library_names_spec \
30649 soname_spec \
30650 finish_eval \
30651 old_striplib \
30652 striplib \
30653 predep_objects \
30654 postdep_objects \
30655 predeps \
30656 postdeps \
30657 compiler_lib_search_path \
30658 LD_CXX \
30659 compiler_CXX \
30660 lt_prog_compiler_no_builtin_flag_CXX \
30661 lt_prog_compiler_wl_CXX \
30662 lt_prog_compiler_pic_CXX \
30663 lt_prog_compiler_static_CXX \
30664 lt_cv_prog_compiler_c_o_CXX \
30665 export_dynamic_flag_spec_CXX \
30666 whole_archive_flag_spec_CXX \
30667 compiler_needs_object_CXX \
30668 with_gnu_ld_CXX \
30669 allow_undefined_flag_CXX \
30670 no_undefined_flag_CXX \
30671 hardcode_libdir_flag_spec_CXX \
30672 hardcode_libdir_flag_spec_ld_CXX \
30673 hardcode_libdir_separator_CXX \
30674 fix_srcfile_path_CXX \
30675 exclude_expsyms_CXX \
30676 include_expsyms_CXX \
30677 file_list_spec_CXX \
30678 predep_objects_CXX \
30679 postdep_objects_CXX \
30680 predeps_CXX \
30681 postdeps_CXX \
30682 compiler_lib_search_path_CXX; do
30683 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30684 *[\\\\\\\`\\"\\\$]*)
30685 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30688 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30690 esac
30691 done
30693 # Double-quote double-evaled strings.
30694 for var in reload_cmds \
30695 old_postinstall_cmds \
30696 old_postuninstall_cmds \
30697 old_archive_cmds \
30698 extract_expsyms_cmds \
30699 old_archive_from_new_cmds \
30700 old_archive_from_expsyms_cmds \
30701 archive_cmds \
30702 archive_expsym_cmds \
30703 module_cmds \
30704 module_expsym_cmds \
30705 export_symbols_cmds \
30706 prelink_cmds \
30707 postinstall_cmds \
30708 postuninstall_cmds \
30709 finish_cmds \
30710 sys_lib_search_path_spec \
30711 sys_lib_dlsearch_path_spec \
30712 old_archive_cmds_CXX \
30713 old_archive_from_new_cmds_CXX \
30714 old_archive_from_expsyms_cmds_CXX \
30715 archive_cmds_CXX \
30716 archive_expsym_cmds_CXX \
30717 module_cmds_CXX \
30718 module_expsym_cmds_CXX \
30719 export_symbols_cmds_CXX \
30720 prelink_cmds_CXX; do
30721 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30722 *[\\\\\\\`\\"\\\$]*)
30723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30728 esac
30729 done
30731 # Fix-up fallback echo if it was mangled by the above quoting rules.
30732 case \$lt_ECHO in
30733 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30735 esac
30737 ac_aux_dir='$ac_aux_dir'
30738 xsi_shell='$xsi_shell'
30739 lt_shell_append='$lt_shell_append'
30741 # See if we are running on zsh, and set the options which allow our
30742 # commands through without removal of \ escapes INIT.
30743 if test -n "\${ZSH_VERSION+set}" ; then
30744 setopt NO_GLOB_SUBST
30748 PACKAGE='$PACKAGE'
30749 VERSION='$VERSION'
30750 TIMESTAMP='$TIMESTAMP'
30751 RM='$RM'
30752 ofile='$ofile'
30758 # variables for create stdint.h replacement
30759 PACKAGE="$PACKAGE"
30760 VERSION="$VERSION"
30761 ac_stdint_h="$ac_stdint_h"
30762 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
30763 ac_cv_stdint_message="$ac_cv_stdint_message"
30764 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
30765 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
30766 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
30767 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
30768 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
30769 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
30770 ac_cv_char_data_model="$ac_cv_char_data_model"
30771 ac_cv_long_data_model="$ac_cv_long_data_model"
30772 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
30773 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
30774 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
30777 _ACEOF
30781 cat >>$CONFIG_STATUS <<\_ACEOF
30782 for ac_config_target in $ac_config_targets
30784 case "$ac_config_target" in
30785 # Handling of arguments.
30786 "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
30787 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30788 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30789 "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
30790 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
30791 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
30792 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
30793 "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
30794 "external/jsr166/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
30795 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
30796 "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
30797 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
30798 "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
30799 "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
30800 "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
30801 "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
30802 "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
30803 "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
30804 "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
30805 "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
30806 "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
30807 "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
30808 "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
30809 "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
30810 "native/jni/gstreamer-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
30811 "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
30812 "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
30813 "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
30814 "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
30815 "native/jni/native-lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
30816 "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
30817 "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
30818 "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
30819 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
30820 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
30821 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30822 "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
30823 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30824 "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
30825 "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
30826 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30827 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30828 "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
30829 "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
30830 "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
30831 "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
30832 "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
30833 "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
30834 "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
30835 "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
30836 "tools/grmiregistry" ) CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
30837 "tools/gtnameserv" ) CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
30838 "tools/gorbd" ) CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
30839 "tools/grmid" ) CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
30840 "tools/grmic" ) CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
30841 "tools/gjavah" ) CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
30842 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
30843 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30844 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30845 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30846 "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
30847 "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
30848 "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
30849 "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
30850 "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
30851 "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
30852 "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
30853 "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
30854 "grmiregistry" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
30855 "gtnameserv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
30856 "gorbd" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
30857 "grmid" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
30858 "grmic" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
30859 "gjavah" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
30860 "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
30861 "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
30862 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
30863 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30865 { (exit 1); exit 1; }; };;
30866 esac
30867 done
30869 # If the user did not use the arguments to specify the items to instantiate,
30870 # then the envvar interface is used. Set only those that are not.
30871 # We use the long form for the default assignment because of an extremely
30872 # bizarre bug on SunOS 4.1.3.
30873 if $ac_need_defaults; then
30874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30876 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30880 # Have a temporary directory for convenience. Make it in the build tree
30881 # simply because there is no reason to put it here, and in addition,
30882 # creating and moving files from /tmp can sometimes cause problems.
30883 # Create a temporary directory, and hook for its removal unless debugging.
30884 $debug ||
30886 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30887 trap '{ (exit 1); exit 1; }' 1 2 13 15
30890 # Create a (secure) tmp directory for tmp files.
30893 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30894 test -n "$tmp" && test -d "$tmp"
30895 } ||
30897 tmp=./confstat$$-$RANDOM
30898 (umask 077 && mkdir $tmp)
30899 } ||
30901 echo "$me: cannot create a temporary directory in ." >&2
30902 { (exit 1); exit 1; }
30905 _ACEOF
30907 cat >>$CONFIG_STATUS <<_ACEOF
30910 # CONFIG_FILES section.
30913 # No need to generate the scripts if there are no CONFIG_FILES.
30914 # This happens for instance when ./config.status config.h
30915 if test -n "\$CONFIG_FILES"; then
30916 # Protect against being on the right side of a sed subst in config.status.
30917 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30918 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30919 s,@SHELL@,$SHELL,;t t
30920 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30921 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30922 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30923 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30924 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30925 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30926 s,@exec_prefix@,$exec_prefix,;t t
30927 s,@prefix@,$prefix,;t t
30928 s,@program_transform_name@,$program_transform_name,;t t
30929 s,@bindir@,$bindir,;t t
30930 s,@sbindir@,$sbindir,;t t
30931 s,@libexecdir@,$libexecdir,;t t
30932 s,@datadir@,$datadir,;t t
30933 s,@sysconfdir@,$sysconfdir,;t t
30934 s,@sharedstatedir@,$sharedstatedir,;t t
30935 s,@localstatedir@,$localstatedir,;t t
30936 s,@libdir@,$libdir,;t t
30937 s,@includedir@,$includedir,;t t
30938 s,@oldincludedir@,$oldincludedir,;t t
30939 s,@infodir@,$infodir,;t t
30940 s,@mandir@,$mandir,;t t
30941 s,@build_alias@,$build_alias,;t t
30942 s,@host_alias@,$host_alias,;t t
30943 s,@target_alias@,$target_alias,;t t
30944 s,@DEFS@,$DEFS,;t t
30945 s,@ECHO_C@,$ECHO_C,;t t
30946 s,@ECHO_N@,$ECHO_N,;t t
30947 s,@ECHO_T@,$ECHO_T,;t t
30948 s,@LIBS@,$LIBS,;t t
30949 s,@build@,$build,;t t
30950 s,@build_cpu@,$build_cpu,;t t
30951 s,@build_vendor@,$build_vendor,;t t
30952 s,@build_os@,$build_os,;t t
30953 s,@host@,$host,;t t
30954 s,@host_cpu@,$host_cpu,;t t
30955 s,@host_vendor@,$host_vendor,;t t
30956 s,@host_os@,$host_os,;t t
30957 s,@target@,$target,;t t
30958 s,@target_cpu@,$target_cpu,;t t
30959 s,@target_vendor@,$target_vendor,;t t
30960 s,@target_os@,$target_os,;t t
30961 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
30962 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
30963 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
30964 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
30965 s,@multi_basedir@,$multi_basedir,;t t
30966 s,@LIBVERSION@,$LIBVERSION,;t t
30967 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
30968 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
30969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30970 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30971 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30972 s,@CYGPATH_W@,$CYGPATH_W,;t t
30973 s,@PACKAGE@,$PACKAGE,;t t
30974 s,@VERSION@,$VERSION,;t t
30975 s,@ACLOCAL@,$ACLOCAL,;t t
30976 s,@AUTOCONF@,$AUTOCONF,;t t
30977 s,@AUTOMAKE@,$AUTOMAKE,;t t
30978 s,@AUTOHEADER@,$AUTOHEADER,;t t
30979 s,@MAKEINFO@,$MAKEINFO,;t t
30980 s,@install_sh@,$install_sh,;t t
30981 s,@STRIP@,$STRIP,;t t
30982 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30983 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30984 s,@mkdir_p@,$mkdir_p,;t t
30985 s,@AWK@,$AWK,;t t
30986 s,@SET_MAKE@,$SET_MAKE,;t t
30987 s,@am__leading_dot@,$am__leading_dot,;t t
30988 s,@AMTAR@,$AMTAR,;t t
30989 s,@am__tar@,$am__tar,;t t
30990 s,@am__untar@,$am__untar,;t t
30991 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
30992 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
30993 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
30994 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
30995 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
30996 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
30997 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
30998 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
30999 s,@CREATE_GSTREAMER_PEER_LIBRARIES_TRUE@,$CREATE_GSTREAMER_PEER_LIBRARIES_TRUE,;t t
31000 s,@CREATE_GSTREAMER_PEER_LIBRARIES_FALSE@,$CREATE_GSTREAMER_PEER_LIBRARIES_FALSE,;t t
31001 s,@default_toolkit@,$default_toolkit,;t t
31002 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
31003 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
31004 s,@CC@,$CC,;t t
31005 s,@CFLAGS@,$CFLAGS,;t t
31006 s,@LDFLAGS@,$LDFLAGS,;t t
31007 s,@CPPFLAGS@,$CPPFLAGS,;t t
31008 s,@ac_ct_CC@,$ac_ct_CC,;t t
31009 s,@EXEEXT@,$EXEEXT,;t t
31010 s,@OBJEXT@,$OBJEXT,;t t
31011 s,@DEPDIR@,$DEPDIR,;t t
31012 s,@am__include@,$am__include,;t t
31013 s,@am__quote@,$am__quote,;t t
31014 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31015 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31016 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31017 s,@CCDEPMODE@,$CCDEPMODE,;t t
31018 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31019 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31020 s,@CPP@,$CPP,;t t
31021 s,@EGREP@,$EGREP,;t t
31022 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
31023 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
31024 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
31025 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
31026 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
31027 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
31028 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
31029 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
31030 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
31031 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
31032 s,@toolexeclibdir@,$toolexeclibdir,;t t
31033 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
31034 s,@glibjdir@,$glibjdir,;t t
31035 s,@VM_BINARY@,$VM_BINARY,;t t
31036 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
31037 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
31038 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
31039 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
31040 s,@LN_S@,$LN_S,;t t
31041 s,@LIBTOOL@,$LIBTOOL,;t t
31042 s,@SED@,$SED,;t t
31043 s,@FGREP@,$FGREP,;t t
31044 s,@GREP@,$GREP,;t t
31045 s,@LD@,$LD,;t t
31046 s,@DUMPBIN@,$DUMPBIN,;t t
31047 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
31048 s,@NM@,$NM,;t t
31049 s,@AR@,$AR,;t t
31050 s,@ac_ct_AR@,$ac_ct_AR,;t t
31051 s,@RANLIB@,$RANLIB,;t t
31052 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31053 s,@lt_ECHO@,$lt_ECHO,;t t
31054 s,@CXX@,$CXX,;t t
31055 s,@CXXFLAGS@,$CXXFLAGS,;t t
31056 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31057 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31058 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31059 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31060 s,@CXXCPP@,$CXXCPP,;t t
31061 s,@PERL@,$PERL,;t t
31062 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
31063 s,@LIBMAGIC@,$LIBMAGIC,;t t
31064 s,@LIBICONV@,$LIBICONV,;t t
31065 s,@LTLIBICONV@,$LTLIBICONV,;t t
31066 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
31067 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
31068 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
31069 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
31070 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
31071 s,@XML_LIBS@,$XML_LIBS,;t t
31072 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
31073 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
31074 s,@X_CFLAGS@,$X_CFLAGS,;t t
31075 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31076 s,@X_LIBS@,$X_LIBS,;t t
31077 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31078 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
31079 s,@GTK_LIBS@,$GTK_LIBS,;t t
31080 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
31081 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
31082 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
31083 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
31084 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
31085 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
31086 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
31087 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
31088 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
31089 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
31090 s,@GDK_LIBS@,$GDK_LIBS,;t t
31091 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
31092 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
31093 s,@GSTREAMER_BASE_CFLAGS@,$GSTREAMER_BASE_CFLAGS,;t t
31094 s,@GSTREAMER_BASE_LIBS@,$GSTREAMER_BASE_LIBS,;t t
31095 s,@GSTREAMER_PLUGINS_BASE_CFLAGS@,$GSTREAMER_PLUGINS_BASE_CFLAGS,;t t
31096 s,@GSTREAMER_PLUGINS_BASE_LIBS@,$GSTREAMER_PLUGINS_BASE_LIBS,;t t
31097 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
31098 s,@GSTREAMER_FILE_READER@,$GSTREAMER_FILE_READER,;t t
31099 s,@GSTREAMER_MIXER_PROVIDER@,$GSTREAMER_MIXER_PROVIDER,;t t
31100 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
31101 s,@QT_LIBS@,$QT_LIBS,;t t
31102 s,@MOC@,$MOC,;t t
31103 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
31104 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
31105 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
31106 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
31107 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
31108 s,@USER_JAVAH@,$USER_JAVAH,;t t
31109 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
31110 s,@GCJ@,$GCJ,;t t
31111 s,@JIKES@,$JIKES,;t t
31112 s,@JIKESENCODING@,$JIKESENCODING,;t t
31113 s,@JIKESWARNINGS@,$JIKESWARNINGS,;t t
31114 s,@KJC@,$KJC,;t t
31115 s,@ECJ@,$ECJ,;t t
31116 s,@JAVAC@,$JAVAC,;t t
31117 s,@FOUND_GCJ_TRUE@,$FOUND_GCJ_TRUE,;t t
31118 s,@FOUND_GCJ_FALSE@,$FOUND_GCJ_FALSE,;t t
31119 s,@FOUND_JIKES_TRUE@,$FOUND_JIKES_TRUE,;t t
31120 s,@FOUND_JIKES_FALSE@,$FOUND_JIKES_FALSE,;t t
31121 s,@FOUND_ECJ_TRUE@,$FOUND_ECJ_TRUE,;t t
31122 s,@FOUND_ECJ_FALSE@,$FOUND_ECJ_FALSE,;t t
31123 s,@FOUND_JAVAC_TRUE@,$FOUND_JAVAC_TRUE,;t t
31124 s,@FOUND_JAVAC_FALSE@,$FOUND_JAVAC_FALSE,;t t
31125 s,@FOUND_KJC_TRUE@,$FOUND_KJC_TRUE,;t t
31126 s,@FOUND_KJC_FALSE@,$FOUND_KJC_FALSE,;t t
31127 s,@USER_CLASSLIB@,$USER_CLASSLIB,;t t
31128 s,@USER_SPECIFIED_CLASSLIB_TRUE@,$USER_SPECIFIED_CLASSLIB_TRUE,;t t
31129 s,@USER_SPECIFIED_CLASSLIB_FALSE@,$USER_SPECIFIED_CLASSLIB_FALSE,;t t
31130 s,@vm_classes@,$vm_classes,;t t
31131 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
31132 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
31133 s,@MAINT@,$MAINT,;t t
31134 s,@LIBDEBUG@,$LIBDEBUG,;t t
31135 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
31136 s,@ECJ_JAR@,$ECJ_JAR,;t t
31137 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
31138 s,@REMOVE@,$REMOVE,;t t
31139 s,@MKDIR@,$MKDIR,;t t
31140 s,@CP@,$CP,;t t
31141 s,@DATE@,$DATE,;t t
31142 s,@FIND@,$FIND,;t t
31143 s,@ZIP@,$ZIP,;t t
31144 s,@FASTJAR@,$FASTJAR,;t t
31145 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
31146 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
31147 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
31148 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
31149 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
31150 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
31151 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
31152 s,@GJDOC@,$GJDOC,;t t
31153 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
31154 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
31155 s,@JAY@,$JAY,;t t
31156 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
31157 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
31158 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
31159 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
31160 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
31161 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
31162 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
31163 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
31164 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
31165 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
31166 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
31167 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
31168 s,@LIBOBJS@,$LIBOBJS,;t t
31169 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31170 CEOF
31172 _ACEOF
31174 cat >>$CONFIG_STATUS <<\_ACEOF
31175 # Split the substitutions into bite-sized pieces for seds with
31176 # small command number limits, like on Digital OSF/1 and HP-UX.
31177 ac_max_sed_lines=48
31178 ac_sed_frag=1 # Number of current file.
31179 ac_beg=1 # First line for current file.
31180 ac_end=$ac_max_sed_lines # Line after last line for current file.
31181 ac_more_lines=:
31182 ac_sed_cmds=
31183 while $ac_more_lines; do
31184 if test $ac_beg -gt 1; then
31185 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31186 else
31187 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31189 if test ! -s $tmp/subs.frag; then
31190 ac_more_lines=false
31191 else
31192 # The purpose of the label and of the branching condition is to
31193 # speed up the sed processing (if there are no `@' at all, there
31194 # is no need to browse any of the substitutions).
31195 # These are the two extra sed commands mentioned above.
31196 (echo ':t
31197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31198 if test -z "$ac_sed_cmds"; then
31199 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31200 else
31201 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31203 ac_sed_frag=`expr $ac_sed_frag + 1`
31204 ac_beg=$ac_end
31205 ac_end=`expr $ac_end + $ac_max_sed_lines`
31207 done
31208 if test -z "$ac_sed_cmds"; then
31209 ac_sed_cmds=cat
31211 fi # test -n "$CONFIG_FILES"
31213 _ACEOF
31214 cat >>$CONFIG_STATUS <<\_ACEOF
31215 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31217 case $ac_file in
31218 - | *:- | *:-:* ) # input from stdin
31219 cat >$tmp/stdin
31220 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31222 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31224 * ) ac_file_in=$ac_file.in ;;
31225 esac
31227 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31228 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31230 X"$ac_file" : 'X\(//\)[^/]' \| \
31231 X"$ac_file" : 'X\(//\)$' \| \
31232 X"$ac_file" : 'X\(/\)' \| \
31233 . : '\(.\)' 2>/dev/null ||
31234 echo X"$ac_file" |
31235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31237 /^X\(\/\/\)$/{ s//\1/; q; }
31238 /^X\(\/\).*/{ s//\1/; q; }
31239 s/.*/./; q'`
31240 { if $as_mkdir_p; then
31241 mkdir -p "$ac_dir"
31242 else
31243 as_dir="$ac_dir"
31244 as_dirs=
31245 while test ! -d "$as_dir"; do
31246 as_dirs="$as_dir $as_dirs"
31247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31249 X"$as_dir" : 'X\(//\)[^/]' \| \
31250 X"$as_dir" : 'X\(//\)$' \| \
31251 X"$as_dir" : 'X\(/\)' \| \
31252 . : '\(.\)' 2>/dev/null ||
31253 echo X"$as_dir" |
31254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31256 /^X\(\/\/\)$/{ s//\1/; q; }
31257 /^X\(\/\).*/{ s//\1/; q; }
31258 s/.*/./; q'`
31259 done
31260 test ! -n "$as_dirs" || mkdir $as_dirs
31261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31262 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31263 { (exit 1); exit 1; }; }; }
31265 ac_builddir=.
31267 if test "$ac_dir" != .; then
31268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31269 # A "../" for each directory in $ac_dir_suffix.
31270 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31271 else
31272 ac_dir_suffix= ac_top_builddir=
31275 case $srcdir in
31276 .) # No --srcdir option. We are building in place.
31277 ac_srcdir=.
31278 if test -z "$ac_top_builddir"; then
31279 ac_top_srcdir=.
31280 else
31281 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31282 fi ;;
31283 [\\/]* | ?:[\\/]* ) # Absolute path.
31284 ac_srcdir=$srcdir$ac_dir_suffix;
31285 ac_top_srcdir=$srcdir ;;
31286 *) # Relative path.
31287 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31288 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31289 esac
31291 # Do not use `cd foo && pwd` to compute absolute paths, because
31292 # the directories may not exist.
31293 case `pwd` in
31294 .) ac_abs_builddir="$ac_dir";;
31296 case "$ac_dir" in
31297 .) ac_abs_builddir=`pwd`;;
31298 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31299 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31300 esac;;
31301 esac
31302 case $ac_abs_builddir in
31303 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31305 case ${ac_top_builddir}. in
31306 .) ac_abs_top_builddir=$ac_abs_builddir;;
31307 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31308 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31309 esac;;
31310 esac
31311 case $ac_abs_builddir in
31312 .) ac_abs_srcdir=$ac_srcdir;;
31314 case $ac_srcdir in
31315 .) ac_abs_srcdir=$ac_abs_builddir;;
31316 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31317 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31318 esac;;
31319 esac
31320 case $ac_abs_builddir in
31321 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31323 case $ac_top_srcdir in
31324 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31325 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31326 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31327 esac;;
31328 esac
31331 case $INSTALL in
31332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31333 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31334 esac
31336 if test x"$ac_file" != x-; then
31337 { echo "$as_me:$LINENO: creating $ac_file" >&5
31338 echo "$as_me: creating $ac_file" >&6;}
31339 rm -f "$ac_file"
31341 # Let's still pretend it is `configure' which instantiates (i.e., don't
31342 # use $as_me), people would be surprised to read:
31343 # /* config.h. Generated by config.status. */
31344 if test x"$ac_file" = x-; then
31345 configure_input=
31346 else
31347 configure_input="$ac_file. "
31349 configure_input=$configure_input"Generated from `echo $ac_file_in |
31350 sed 's,.*/,,'` by configure."
31352 # First look for the input files in the build tree, otherwise in the
31353 # src tree.
31354 ac_file_inputs=`IFS=:
31355 for f in $ac_file_in; do
31356 case $f in
31357 -) echo $tmp/stdin ;;
31358 [\\/$]*)
31359 # Absolute (can't be DOS-style, as IFS=:)
31360 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31361 echo "$as_me: error: cannot find input file: $f" >&2;}
31362 { (exit 1); exit 1; }; }
31363 echo "$f";;
31364 *) # Relative
31365 if test -f "$f"; then
31366 # Build tree
31367 echo "$f"
31368 elif test -f "$srcdir/$f"; then
31369 # Source tree
31370 echo "$srcdir/$f"
31371 else
31372 # /dev/null tree
31373 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31374 echo "$as_me: error: cannot find input file: $f" >&2;}
31375 { (exit 1); exit 1; }; }
31376 fi;;
31377 esac
31378 done` || { (exit 1); exit 1; }
31379 _ACEOF
31380 cat >>$CONFIG_STATUS <<_ACEOF
31381 sed "$ac_vpsub
31382 $extrasub
31383 _ACEOF
31384 cat >>$CONFIG_STATUS <<\_ACEOF
31386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31387 s,@configure_input@,$configure_input,;t t
31388 s,@srcdir@,$ac_srcdir,;t t
31389 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31390 s,@top_srcdir@,$ac_top_srcdir,;t t
31391 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31392 s,@builddir@,$ac_builddir,;t t
31393 s,@abs_builddir@,$ac_abs_builddir,;t t
31394 s,@top_builddir@,$ac_top_builddir,;t t
31395 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31396 s,@INSTALL@,$ac_INSTALL,;t t
31397 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31398 rm -f $tmp/stdin
31399 if test x"$ac_file" != x-; then
31400 mv $tmp/out $ac_file
31401 else
31402 cat $tmp/out
31403 rm -f $tmp/out
31406 done
31407 _ACEOF
31408 cat >>$CONFIG_STATUS <<\_ACEOF
31411 # CONFIG_HEADER section.
31414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31417 # ac_d sets the value in "#define NAME VALUE" lines.
31418 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31419 ac_dB='[ ].*$,\1#\2'
31420 ac_dC=' '
31421 ac_dD=',;t'
31422 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31423 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31424 ac_uB='$,\1#\2define\3'
31425 ac_uC=' '
31426 ac_uD=',;t'
31428 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31430 case $ac_file in
31431 - | *:- | *:-:* ) # input from stdin
31432 cat >$tmp/stdin
31433 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31435 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31437 * ) ac_file_in=$ac_file.in ;;
31438 esac
31440 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31441 echo "$as_me: creating $ac_file" >&6;}
31443 # First look for the input files in the build tree, otherwise in the
31444 # src tree.
31445 ac_file_inputs=`IFS=:
31446 for f in $ac_file_in; do
31447 case $f in
31448 -) echo $tmp/stdin ;;
31449 [\\/$]*)
31450 # Absolute (can't be DOS-style, as IFS=:)
31451 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31452 echo "$as_me: error: cannot find input file: $f" >&2;}
31453 { (exit 1); exit 1; }; }
31454 # Do quote $f, to prevent DOS paths from being IFS'd.
31455 echo "$f";;
31456 *) # Relative
31457 if test -f "$f"; then
31458 # Build tree
31459 echo "$f"
31460 elif test -f "$srcdir/$f"; then
31461 # Source tree
31462 echo "$srcdir/$f"
31463 else
31464 # /dev/null tree
31465 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31466 echo "$as_me: error: cannot find input file: $f" >&2;}
31467 { (exit 1); exit 1; }; }
31468 fi;;
31469 esac
31470 done` || { (exit 1); exit 1; }
31471 # Remove the trailing spaces.
31472 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
31474 _ACEOF
31476 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31477 # `conftest.undefs', that substitutes the proper values into
31478 # config.h.in to produce config.h. The first handles `#define'
31479 # templates, and the second `#undef' templates.
31480 # And first: Protect against being on the right side of a sed subst in
31481 # config.status. Protect against being in an unquoted here document
31482 # in config.status.
31483 rm -f conftest.defines conftest.undefs
31484 # Using a here document instead of a string reduces the quoting nightmare.
31485 # Putting comments in sed scripts is not portable.
31487 # `end' is used to avoid that the second main sed command (meant for
31488 # 0-ary CPP macros) applies to n-ary macro definitions.
31489 # See the Autoconf documentation for `clear'.
31490 cat >confdef2sed.sed <<\_ACEOF
31491 s/[\\&,]/\\&/g
31492 s,[\\$`],\\&,g
31493 t clear
31494 : clear
31495 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31496 t end
31497 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31498 : end
31499 _ACEOF
31500 # If some macros were called several times there might be several times
31501 # the same #defines, which is useless. Nevertheless, we may not want to
31502 # sort them, since we want the *last* AC-DEFINE to be honored.
31503 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31504 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31505 rm -f confdef2sed.sed
31507 # This sed command replaces #undef with comments. This is necessary, for
31508 # example, in the case of _POSIX_SOURCE, which is predefined and required
31509 # on some systems where configure will not decide to define it.
31510 cat >>conftest.undefs <<\_ACEOF
31511 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31512 _ACEOF
31514 # Break up conftest.defines because some shells have a limit on the size
31515 # of here documents, and old seds have small limits too (100 cmds).
31516 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31517 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31518 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31519 echo ' :' >>$CONFIG_STATUS
31520 rm -f conftest.tail
31521 while grep . conftest.defines >/dev/null
31523 # Write a limited-size here document to $tmp/defines.sed.
31524 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31525 # Speed up: don't consider the non `#define' lines.
31526 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31527 # Work around the forget-to-reset-the-flag bug.
31528 echo 't clr' >>$CONFIG_STATUS
31529 echo ': clr' >>$CONFIG_STATUS
31530 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31531 echo 'CEOF
31532 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31533 rm -f $tmp/in
31534 mv $tmp/out $tmp/in
31535 ' >>$CONFIG_STATUS
31536 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31537 rm -f conftest.defines
31538 mv conftest.tail conftest.defines
31539 done
31540 rm -f conftest.defines
31541 echo ' fi # grep' >>$CONFIG_STATUS
31542 echo >>$CONFIG_STATUS
31544 # Break up conftest.undefs because some shells have a limit on the size
31545 # of here documents, and old seds have small limits too (100 cmds).
31546 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31547 rm -f conftest.tail
31548 while grep . conftest.undefs >/dev/null
31550 # Write a limited-size here document to $tmp/undefs.sed.
31551 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31552 # Speed up: don't consider the non `#undef'
31553 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31554 # Work around the forget-to-reset-the-flag bug.
31555 echo 't clr' >>$CONFIG_STATUS
31556 echo ': clr' >>$CONFIG_STATUS
31557 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31558 echo 'CEOF
31559 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31560 rm -f $tmp/in
31561 mv $tmp/out $tmp/in
31562 ' >>$CONFIG_STATUS
31563 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31564 rm -f conftest.undefs
31565 mv conftest.tail conftest.undefs
31566 done
31567 rm -f conftest.undefs
31569 cat >>$CONFIG_STATUS <<\_ACEOF
31570 # Let's still pretend it is `configure' which instantiates (i.e., don't
31571 # use $as_me), people would be surprised to read:
31572 # /* config.h. Generated by config.status. */
31573 if test x"$ac_file" = x-; then
31574 echo "/* Generated by configure. */" >$tmp/config.h
31575 else
31576 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31578 cat $tmp/in >>$tmp/config.h
31579 rm -f $tmp/in
31580 if test x"$ac_file" != x-; then
31581 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31582 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31583 echo "$as_me: $ac_file is unchanged" >&6;}
31584 else
31585 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31587 X"$ac_file" : 'X\(//\)[^/]' \| \
31588 X"$ac_file" : 'X\(//\)$' \| \
31589 X"$ac_file" : 'X\(/\)' \| \
31590 . : '\(.\)' 2>/dev/null ||
31591 echo X"$ac_file" |
31592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31594 /^X\(\/\/\)$/{ s//\1/; q; }
31595 /^X\(\/\).*/{ s//\1/; q; }
31596 s/.*/./; q'`
31597 { if $as_mkdir_p; then
31598 mkdir -p "$ac_dir"
31599 else
31600 as_dir="$ac_dir"
31601 as_dirs=
31602 while test ! -d "$as_dir"; do
31603 as_dirs="$as_dir $as_dirs"
31604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31606 X"$as_dir" : 'X\(//\)[^/]' \| \
31607 X"$as_dir" : 'X\(//\)$' \| \
31608 X"$as_dir" : 'X\(/\)' \| \
31609 . : '\(.\)' 2>/dev/null ||
31610 echo X"$as_dir" |
31611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31613 /^X\(\/\/\)$/{ s//\1/; q; }
31614 /^X\(\/\).*/{ s//\1/; q; }
31615 s/.*/./; q'`
31616 done
31617 test ! -n "$as_dirs" || mkdir $as_dirs
31618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31620 { (exit 1); exit 1; }; }; }
31622 rm -f $ac_file
31623 mv $tmp/config.h $ac_file
31625 else
31626 cat $tmp/config.h
31627 rm -f $tmp/config.h
31629 # Compute $ac_file's index in $config_headers.
31630 _am_stamp_count=1
31631 for _am_header in $config_headers :; do
31632 case $_am_header in
31633 $ac_file | $ac_file:* )
31634 break ;;
31636 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31637 esac
31638 done
31639 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31640 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31641 X$ac_file : 'X\(//\)[^/]' \| \
31642 X$ac_file : 'X\(//\)$' \| \
31643 X$ac_file : 'X\(/\)' \| \
31644 . : '\(.\)' 2>/dev/null ||
31645 echo X$ac_file |
31646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31648 /^X\(\/\/\)$/{ s//\1/; q; }
31649 /^X\(\/\).*/{ s//\1/; q; }
31650 s/.*/./; q'`/stamp-h$_am_stamp_count
31651 done
31652 _ACEOF
31653 cat >>$CONFIG_STATUS <<\_ACEOF
31656 # CONFIG_LINKS section.
31659 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
31660 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31661 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31663 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
31664 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
31666 if test ! -r $srcdir/$ac_source; then
31667 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
31668 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
31669 { (exit 1); exit 1; }; }
31671 rm -f $ac_dest
31673 # Make relative symlinks.
31674 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
31675 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31676 X"$ac_dest" : 'X\(//\)[^/]' \| \
31677 X"$ac_dest" : 'X\(//\)$' \| \
31678 X"$ac_dest" : 'X\(/\)' \| \
31679 . : '\(.\)' 2>/dev/null ||
31680 echo X"$ac_dest" |
31681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31683 /^X\(\/\/\)$/{ s//\1/; q; }
31684 /^X\(\/\).*/{ s//\1/; q; }
31685 s/.*/./; q'`
31686 { if $as_mkdir_p; then
31687 mkdir -p "$ac_dest_dir"
31688 else
31689 as_dir="$ac_dest_dir"
31690 as_dirs=
31691 while test ! -d "$as_dir"; do
31692 as_dirs="$as_dir $as_dirs"
31693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31695 X"$as_dir" : 'X\(//\)[^/]' \| \
31696 X"$as_dir" : 'X\(//\)$' \| \
31697 X"$as_dir" : 'X\(/\)' \| \
31698 . : '\(.\)' 2>/dev/null ||
31699 echo X"$as_dir" |
31700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31702 /^X\(\/\/\)$/{ s//\1/; q; }
31703 /^X\(\/\).*/{ s//\1/; q; }
31704 s/.*/./; q'`
31705 done
31706 test ! -n "$as_dirs" || mkdir $as_dirs
31707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31708 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31709 { (exit 1); exit 1; }; }; }
31711 ac_builddir=.
31713 if test "$ac_dest_dir" != .; then
31714 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31715 # A "../" for each directory in $ac_dir_suffix.
31716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31717 else
31718 ac_dir_suffix= ac_top_builddir=
31721 case $srcdir in
31722 .) # No --srcdir option. We are building in place.
31723 ac_srcdir=.
31724 if test -z "$ac_top_builddir"; then
31725 ac_top_srcdir=.
31726 else
31727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31728 fi ;;
31729 [\\/]* | ?:[\\/]* ) # Absolute path.
31730 ac_srcdir=$srcdir$ac_dir_suffix;
31731 ac_top_srcdir=$srcdir ;;
31732 *) # Relative path.
31733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31735 esac
31737 # Do not use `cd foo && pwd` to compute absolute paths, because
31738 # the directories may not exist.
31739 case `pwd` in
31740 .) ac_abs_builddir="$ac_dest_dir";;
31742 case "$ac_dest_dir" in
31743 .) ac_abs_builddir=`pwd`;;
31744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31745 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31746 esac;;
31747 esac
31748 case $ac_abs_builddir in
31749 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31751 case ${ac_top_builddir}. in
31752 .) ac_abs_top_builddir=$ac_abs_builddir;;
31753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31755 esac;;
31756 esac
31757 case $ac_abs_builddir in
31758 .) ac_abs_srcdir=$ac_srcdir;;
31760 case $ac_srcdir in
31761 .) ac_abs_srcdir=$ac_abs_builddir;;
31762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31764 esac;;
31765 esac
31766 case $ac_abs_builddir in
31767 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31769 case $ac_top_srcdir in
31770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31773 esac;;
31774 esac
31777 case $srcdir in
31778 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31779 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31780 esac
31782 # Try a symlink, then a hard link, then a copy.
31783 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31784 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31785 cp -p $srcdir/$ac_source $ac_dest ||
31786 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31787 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31788 { (exit 1); exit 1; }; }
31789 done
31790 _ACEOF
31791 cat >>$CONFIG_STATUS <<\_ACEOF
31794 # CONFIG_COMMANDS section.
31796 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31797 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31798 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31799 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31800 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31801 X"$ac_dest" : 'X\(//\)[^/]' \| \
31802 X"$ac_dest" : 'X\(//\)$' \| \
31803 X"$ac_dest" : 'X\(/\)' \| \
31804 . : '\(.\)' 2>/dev/null ||
31805 echo X"$ac_dest" |
31806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31808 /^X\(\/\/\)$/{ s//\1/; q; }
31809 /^X\(\/\).*/{ s//\1/; q; }
31810 s/.*/./; q'`
31811 { if $as_mkdir_p; then
31812 mkdir -p "$ac_dir"
31813 else
31814 as_dir="$ac_dir"
31815 as_dirs=
31816 while test ! -d "$as_dir"; do
31817 as_dirs="$as_dir $as_dirs"
31818 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31820 X"$as_dir" : 'X\(//\)[^/]' \| \
31821 X"$as_dir" : 'X\(//\)$' \| \
31822 X"$as_dir" : 'X\(/\)' \| \
31823 . : '\(.\)' 2>/dev/null ||
31824 echo X"$as_dir" |
31825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31827 /^X\(\/\/\)$/{ s//\1/; q; }
31828 /^X\(\/\).*/{ s//\1/; q; }
31829 s/.*/./; q'`
31830 done
31831 test ! -n "$as_dirs" || mkdir $as_dirs
31832 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31833 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31834 { (exit 1); exit 1; }; }; }
31836 ac_builddir=.
31838 if test "$ac_dir" != .; then
31839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31840 # A "../" for each directory in $ac_dir_suffix.
31841 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31842 else
31843 ac_dir_suffix= ac_top_builddir=
31846 case $srcdir in
31847 .) # No --srcdir option. We are building in place.
31848 ac_srcdir=.
31849 if test -z "$ac_top_builddir"; then
31850 ac_top_srcdir=.
31851 else
31852 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31853 fi ;;
31854 [\\/]* | ?:[\\/]* ) # Absolute path.
31855 ac_srcdir=$srcdir$ac_dir_suffix;
31856 ac_top_srcdir=$srcdir ;;
31857 *) # Relative path.
31858 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31859 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31860 esac
31862 # Do not use `cd foo && pwd` to compute absolute paths, because
31863 # the directories may not exist.
31864 case `pwd` in
31865 .) ac_abs_builddir="$ac_dir";;
31867 case "$ac_dir" in
31868 .) ac_abs_builddir=`pwd`;;
31869 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31870 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31871 esac;;
31872 esac
31873 case $ac_abs_builddir in
31874 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31876 case ${ac_top_builddir}. in
31877 .) ac_abs_top_builddir=$ac_abs_builddir;;
31878 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31879 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31880 esac;;
31881 esac
31882 case $ac_abs_builddir in
31883 .) ac_abs_srcdir=$ac_srcdir;;
31885 case $ac_srcdir in
31886 .) ac_abs_srcdir=$ac_abs_builddir;;
31887 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31888 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31889 esac;;
31890 esac
31891 case $ac_abs_builddir in
31892 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31894 case $ac_top_srcdir in
31895 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31896 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31897 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31898 esac;;
31899 esac
31902 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31903 echo "$as_me: executing $ac_dest commands" >&6;}
31904 case $ac_dest in
31905 default-1 )
31906 # Only add multilib support code if we just rebuilt the top-level
31907 # Makefile.
31908 case " $CONFIG_FILES " in
31909 *" Makefile "*)
31910 ac_file=Makefile . ${multi_basedir}/config-ml.in
31912 esac ;;
31913 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31914 # Strip MF so we end up with the name of the file.
31915 mf=`echo "$mf" | sed -e 's/:.*$//'`
31916 # Check whether this is an Automake generated Makefile or not.
31917 # We used to match only the files named `Makefile.in', but
31918 # some people rename them; so instead we look at the file content.
31919 # Grep'ing the first line is not enough: some people post-process
31920 # each Makefile.in and add a new line on top of each file to say so.
31921 # So let's grep whole file.
31922 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31923 dirpart=`(dirname "$mf") 2>/dev/null ||
31924 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31925 X"$mf" : 'X\(//\)[^/]' \| \
31926 X"$mf" : 'X\(//\)$' \| \
31927 X"$mf" : 'X\(/\)' \| \
31928 . : '\(.\)' 2>/dev/null ||
31929 echo X"$mf" |
31930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31932 /^X\(\/\/\)$/{ s//\1/; q; }
31933 /^X\(\/\).*/{ s//\1/; q; }
31934 s/.*/./; q'`
31935 else
31936 continue
31938 # Extract the definition of DEPDIR, am__include, and am__quote
31939 # from the Makefile without running `make'.
31940 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31941 test -z "$DEPDIR" && continue
31942 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31943 test -z "am__include" && continue
31944 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31945 # When using ansi2knr, U may be empty or an underscore; expand it
31946 U=`sed -n 's/^U = //p' < "$mf"`
31947 # Find all dependency output files, they are included files with
31948 # $(DEPDIR) in their names. We invoke sed twice because it is the
31949 # simplest approach to changing $(DEPDIR) to its actual value in the
31950 # expansion.
31951 for file in `sed -n "
31952 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31953 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31954 # Make sure the directory exists.
31955 test -f "$dirpart/$file" && continue
31956 fdir=`(dirname "$file") 2>/dev/null ||
31957 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31958 X"$file" : 'X\(//\)[^/]' \| \
31959 X"$file" : 'X\(//\)$' \| \
31960 X"$file" : 'X\(/\)' \| \
31961 . : '\(.\)' 2>/dev/null ||
31962 echo X"$file" |
31963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31965 /^X\(\/\/\)$/{ s//\1/; q; }
31966 /^X\(\/\).*/{ s//\1/; q; }
31967 s/.*/./; q'`
31968 { if $as_mkdir_p; then
31969 mkdir -p $dirpart/$fdir
31970 else
31971 as_dir=$dirpart/$fdir
31972 as_dirs=
31973 while test ! -d "$as_dir"; do
31974 as_dirs="$as_dir $as_dirs"
31975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31977 X"$as_dir" : 'X\(//\)[^/]' \| \
31978 X"$as_dir" : 'X\(//\)$' \| \
31979 X"$as_dir" : 'X\(/\)' \| \
31980 . : '\(.\)' 2>/dev/null ||
31981 echo X"$as_dir" |
31982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31984 /^X\(\/\/\)$/{ s//\1/; q; }
31985 /^X\(\/\).*/{ s//\1/; q; }
31986 s/.*/./; q'`
31987 done
31988 test ! -n "$as_dirs" || mkdir $as_dirs
31989 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31990 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31991 { (exit 1); exit 1; }; }; }
31993 # echo "creating $dirpart/$file"
31994 echo '# dummy' > "$dirpart/$file"
31995 done
31996 done
31998 libtool )
32000 # See if we are running on zsh, and set the options which allow our
32001 # commands through without removal of \ escapes.
32002 if test -n "${ZSH_VERSION+set}" ; then
32003 setopt NO_GLOB_SUBST
32006 cfgfile="${ofile}T"
32007 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32008 $RM "$cfgfile"
32010 cat <<_LT_EOF >> "$cfgfile"
32011 #! $SHELL
32013 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32014 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
32015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32016 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32018 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32019 # 2006, 2007 Free Software Foundation, Inc.
32021 # This file is part of GNU Libtool:
32022 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
32024 # This program is free software; you can redistribute it and/or modify
32025 # it under the terms of the GNU General Public License as published by
32026 # the Free Software Foundation; either version 2 of the License, or
32027 # (at your option) any later version.
32029 # This program is distributed in the hope that it will be useful, but
32030 # WITHOUT ANY WARRANTY; without even the implied warranty of
32031 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32032 # General Public License for more details.
32034 # You should have received a copy of the GNU General Public License
32035 # along with this program; if not, a copy can be downloaded from
32036 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
32037 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
32038 # MA 02110-1301, USA.
32040 # As a special exception to the GNU General Public License, if you
32041 # distribute this file as part of a program that contains a
32042 # configuration script generated by Autoconf, you may include it under
32043 # the same distribution terms that you use for the rest of that program.
32046 # The names of the tagged configurations supported by this script.
32047 available_tags="CXX "
32049 # ### BEGIN LIBTOOL CONFIG
32051 # Whether or not to build static libraries.
32052 build_old_libs=$enable_static
32054 # Which release of libtool.m4 was used?
32055 macro_version=$macro_version
32056 macro_revision=$macro_revision
32058 # Whether or not to build shared libraries.
32059 build_libtool_libs=$enable_shared
32061 # What type of objects to build.
32062 pic_mode=$pic_mode
32064 # Whether or not to optimize for fast installation.
32065 fast_install=$enable_fast_install
32067 # The host system.
32068 host_alias=$host_alias
32069 host=$host
32070 host_os=$host_os
32072 # The build system.
32073 build_alias=$build_alias
32074 build=$build
32075 build_os=$build_os
32077 # A sed program that does not truncate output.
32078 SED=$lt_SED
32080 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32081 Xsed="\$SED -e 1s/^X//"
32083 # A grep program that handles long lines.
32084 GREP=$lt_GREP
32086 # An ERE matcher.
32087 EGREP=$lt_EGREP
32089 # A literal string matcher.
32090 FGREP=$lt_FGREP
32092 # A BSD- or MS-compatible name lister.
32093 NM=$lt_NM
32095 # Whether we need soft or hard links.
32096 LN_S=$lt_LN_S
32098 # What is the maximum length of a command?
32099 max_cmd_len=$max_cmd_len
32101 # Object file suffix (normally "o").
32102 objext=$ac_objext
32104 # Executable file suffix (normally "").
32105 exeext=$exeext
32107 # whether the shell understands "unset".
32108 lt_unset=$lt_unset
32110 # turn spaces into newlines.
32111 SP2NL=$lt_lt_SP2NL
32113 # turn newlines into spaces.
32114 NL2SP=$lt_lt_NL2SP
32116 # How to create reloadable object files.
32117 reload_flag=$lt_reload_flag
32118 reload_cmds=$lt_reload_cmds
32120 # Method to check whether dependent libraries are shared objects.
32121 deplibs_check_method=$lt_deplibs_check_method
32123 # Command to use when deplibs_check_method == "file_magic".
32124 file_magic_cmd=$lt_file_magic_cmd
32126 # The archiver.
32127 AR=$lt_AR
32128 AR_FLAGS=$lt_AR_FLAGS
32130 # A symbol stripping program.
32131 STRIP=$lt_STRIP
32133 # Commands used to install an old-style archive.
32134 RANLIB=$lt_RANLIB
32135 old_postinstall_cmds=$lt_old_postinstall_cmds
32136 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32138 # A C compiler.
32139 LTCC=$lt_CC
32141 # LTCC compiler flags.
32142 LTCFLAGS=$lt_CFLAGS
32144 # Take the output of nm and produce a listing of raw symbols and C names.
32145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32147 # Transform the output of nm in a proper C declaration.
32148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32150 # Transform the output of nm in a C name address pair.
32151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32153 # The name of the directory that contains temporary libtool files.
32154 objdir=$objdir
32156 # Shell to use when invoking shell scripts.
32157 SHELL=$lt_SHELL
32159 # An echo program that does not interpret backslashes.
32160 ECHO=$lt_ECHO
32162 # Used to examine libraries when file_magic_cmd begins with "file".
32163 MAGIC_CMD=$MAGIC_CMD
32165 # Must we lock files when doing compilation?
32166 need_locks=$lt_need_locks
32168 # Old archive suffix (normally "a").
32169 libext=$libext
32171 # Shared library suffix (normally ".so").
32172 shrext_cmds=$lt_shrext_cmds
32174 # The commands to extract the exported symbol list from a shared archive.
32175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32177 # Variables whose values should be saved in libtool wrapper scripts and
32178 # restored at link time.
32179 variables_saved_for_relink=$lt_variables_saved_for_relink
32181 # Do we need the "lib" prefix for modules?
32182 need_lib_prefix=$need_lib_prefix
32184 # Do we need a version for libraries?
32185 need_version=$need_version
32187 # Library versioning type.
32188 version_type=$version_type
32190 # Shared library runtime path variable.
32191 runpath_var=$runpath_var
32193 # Shared library path variable.
32194 shlibpath_var=$shlibpath_var
32196 # Is shlibpath searched before the hard-coded library search path?
32197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32199 # Format of library name prefix.
32200 libname_spec=$lt_libname_spec
32202 # List of archive names. First name is the real one, the rest are links.
32203 # The last name is the one that the linker finds with -lNAME
32204 library_names_spec=$lt_library_names_spec
32206 # The coded name of the library, if different from the real name.
32207 soname_spec=$lt_soname_spec
32209 # Command to use after installation of a shared archive.
32210 postinstall_cmds=$lt_postinstall_cmds
32212 # Command to use after uninstallation of a shared archive.
32213 postuninstall_cmds=$lt_postuninstall_cmds
32215 # Commands used to finish a libtool library installation in a directory.
32216 finish_cmds=$lt_finish_cmds
32218 # As "finish_cmds", except a single script fragment to be evaled but
32219 # not shown.
32220 finish_eval=$lt_finish_eval
32222 # Whether we should hardcode library paths into libraries.
32223 hardcode_into_libs=$hardcode_into_libs
32225 # Compile-time system search path for libraries.
32226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32228 # Run-time system search path for libraries.
32229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32231 # Whether dlopen is supported.
32232 dlopen_support=$enable_dlopen
32234 # Whether dlopen of programs is supported.
32235 dlopen_self=$enable_dlopen_self
32237 # Whether dlopen of statically linked programs is supported.
32238 dlopen_self_static=$enable_dlopen_self_static
32240 # Commands to strip libraries.
32241 old_striplib=$lt_old_striplib
32242 striplib=$lt_striplib
32245 # The linker used to build libraries.
32246 LD=$lt_LD
32248 # Commands used to build an old-style archive.
32249 old_archive_cmds=$lt_old_archive_cmds
32251 # A language specific compiler.
32252 CC=$lt_compiler
32254 # Is the compiler the GNU compiler?
32255 with_gcc=$GCC
32257 # Compiler flag to turn off builtin functions.
32258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32260 # How to pass a linker flag through the compiler.
32261 wl=$lt_lt_prog_compiler_wl
32263 # Additional compiler flags for building library objects.
32264 pic_flag=$lt_lt_prog_compiler_pic
32266 # Compiler flag to prevent dynamic linking.
32267 link_static_flag=$lt_lt_prog_compiler_static
32269 # Does compiler simultaneously support -c and -o options?
32270 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32272 # Whether or not to add -lc for building shared libraries.
32273 build_libtool_need_lc=$archive_cmds_need_lc
32275 # Whether or not to disallow shared libs when runtime libs are static.
32276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32278 # Compiler flag to allow reflexive dlopens.
32279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32281 # Compiler flag to generate shared objects directly from archives.
32282 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32284 # Whether the compiler copes with passing no objects directly.
32285 compiler_needs_object=$lt_compiler_needs_object
32287 # Create an old-style archive from a shared archive.
32288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32290 # Create a temporary old-style archive to link instead of a shared archive.
32291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32293 # Commands used to build a shared archive.
32294 archive_cmds=$lt_archive_cmds
32295 archive_expsym_cmds=$lt_archive_expsym_cmds
32297 # Commands used to build a loadable module if different from building
32298 # a shared archive.
32299 module_cmds=$lt_module_cmds
32300 module_expsym_cmds=$lt_module_expsym_cmds
32302 # Whether we are building with GNU ld or not.
32303 with_gnu_ld=$lt_with_gnu_ld
32305 # Flag that allows shared libraries with undefined symbols to be built.
32306 allow_undefined_flag=$lt_allow_undefined_flag
32308 # Flag that enforces no undefined symbols.
32309 no_undefined_flag=$lt_no_undefined_flag
32311 # Flag to hardcode \$libdir into a binary during linking.
32312 # This must work even if \$libdir does not exist
32313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32315 # If ld is used when linking, flag to hardcode \$libdir into a binary
32316 # during linking. This must work even if \$libdir does not exist.
32317 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32319 # Whether we need a single "-rpath" flag with a separated argument.
32320 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32322 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32323 # DIR into the resulting binary.
32324 hardcode_direct=$hardcode_direct
32326 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32327 # DIR into the resulting binary and the resulting library dependency is
32328 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32329 # library is relocated.
32330 hardcode_direct_absolute=$hardcode_direct_absolute
32332 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32333 # into the resulting binary.
32334 hardcode_minus_L=$hardcode_minus_L
32336 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32337 # into the resulting binary.
32338 hardcode_shlibpath_var=$hardcode_shlibpath_var
32340 # Set to "yes" if building a shared library automatically hardcodes DIR
32341 # into the library and all subsequent libraries and executables linked
32342 # against it.
32343 hardcode_automatic=$hardcode_automatic
32345 # Set to yes if linker adds runtime paths of dependent libraries
32346 # to runtime path list.
32347 inherit_rpath=$inherit_rpath
32349 # Whether libtool must link a program against all its dependency libraries.
32350 link_all_deplibs=$link_all_deplibs
32352 # Fix the shell variable \$srcfile for the compiler.
32353 fix_srcfile_path=$lt_fix_srcfile_path
32355 # Set to "yes" if exported symbols are required.
32356 always_export_symbols=$always_export_symbols
32358 # The commands to list exported symbols.
32359 export_symbols_cmds=$lt_export_symbols_cmds
32361 # Symbols that should not be listed in the preloaded symbols.
32362 exclude_expsyms=$lt_exclude_expsyms
32364 # Symbols that must always be exported.
32365 include_expsyms=$lt_include_expsyms
32367 # Commands necessary for linking programs (against libraries) with templates.
32368 prelink_cmds=$lt_prelink_cmds
32370 # Specify filename containing input files.
32371 file_list_spec=$lt_file_list_spec
32373 # How to hardcode a shared library path into an executable.
32374 hardcode_action=$hardcode_action
32376 # Dependencies to place before and after the objects being linked to
32377 # create a shared library.
32378 predep_objects=$lt_predep_objects
32379 postdep_objects=$lt_postdep_objects
32380 predeps=$lt_predeps
32381 postdeps=$lt_postdeps
32383 # The library search path used internally by the compiler when linking
32384 # a shared library.
32385 compiler_lib_search_path=$lt_compiler_lib_search_path
32387 # ### END LIBTOOL CONFIG
32389 _LT_EOF
32391 case $host_os in
32392 aix3*)
32393 cat <<\_LT_EOF >> "$cfgfile"
32394 # AIX sometimes has problems with the GCC collect2 program. For some
32395 # reason, if we set the COLLECT_NAMES environment variable, the problems
32396 # vanish in a puff of smoke.
32397 if test "X${COLLECT_NAMES+set}" != Xset; then
32398 COLLECT_NAMES=
32399 export COLLECT_NAMES
32401 _LT_EOF
32403 esac
32406 ltmain="$ac_aux_dir/ltmain.sh"
32409 # We use sed instead of cat because bash on DJGPP gets confused if
32410 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32411 # text mode, it properly converts lines to CR/LF. This bash problem
32412 # is reportedly fixed, but why not run on old versions too?
32413 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32414 || (rm -f "$cfgfile"; exit 1)
32416 case $xsi_shell in
32417 yes)
32418 cat << \_LT_EOF >> "$cfgfile"
32419 # func_dirname file append nondir_replacement
32420 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32421 # otherwise set result to NONDIR_REPLACEMENT.
32422 func_dirname ()
32424 case ${1} in
32425 */*) func_dirname_result="${1%/*}${2}" ;;
32426 * ) func_dirname_result="${3}" ;;
32427 esac
32430 # func_basename file
32431 func_basename ()
32433 func_basename_result="${1##*/}"
32436 # func_stripname prefix suffix name
32437 # strip PREFIX and SUFFIX off of NAME.
32438 # PREFIX and SUFFIX must not contain globbing or regex special
32439 # characters, hashes, percent signs, but SUFFIX may contain a leading
32440 # dot (in which case that matches only a dot).
32441 func_stripname ()
32443 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32444 # positional parameters, so assign one to ordinary parameter first.
32445 func_stripname_result=${3}
32446 func_stripname_result=${func_stripname_result#"${1}"}
32447 func_stripname_result=${func_stripname_result%"${2}"}
32450 # func_opt_split
32451 func_opt_split ()
32453 func_opt_split_opt=${1%%=*}
32454 func_opt_split_arg=${1#*=}
32457 # func_lo2o object
32458 func_lo2o ()
32460 case ${1} in
32461 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32462 *) func_lo2o_result=${1} ;;
32463 esac
32465 _LT_EOF
32467 *) # Bourne compatible functions.
32468 cat << \_LT_EOF >> "$cfgfile"
32469 # func_dirname file append nondir_replacement
32470 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32471 # otherwise set result to NONDIR_REPLACEMENT.
32472 func_dirname ()
32474 # Extract subdirectory from the argument.
32475 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32476 if test "X$func_dirname_result" = "X${1}"; then
32477 func_dirname_result="${3}"
32478 else
32479 func_dirname_result="$func_dirname_result${2}"
32483 # func_basename file
32484 func_basename ()
32486 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32489 # func_stripname prefix suffix name
32490 # strip PREFIX and SUFFIX off of NAME.
32491 # PREFIX and SUFFIX must not contain globbing or regex special
32492 # characters, hashes, percent signs, but SUFFIX may contain a leading
32493 # dot (in which case that matches only a dot).
32494 # func_strip_suffix prefix name
32495 func_stripname ()
32497 case ${2} in
32498 .*) func_stripname_result=`$ECHO "X${3}" \
32499 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32500 *) func_stripname_result=`$ECHO "X${3}" \
32501 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32502 esac
32505 # sed scripts:
32506 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32507 my_sed_long_arg='1s/^-[^=]*=//'
32509 # func_opt_split
32510 func_opt_split ()
32512 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32513 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32516 # func_lo2o object
32517 func_lo2o ()
32519 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32521 _LT_EOF
32522 esac
32524 case $lt_shell_append in
32525 yes)
32526 cat << \_LT_EOF >> "$cfgfile"
32528 # func_append var value
32529 # Append VALUE to the end of shell variable VAR.
32530 func_append ()
32532 eval "$1+=\$2"
32534 _LT_EOF
32537 cat << \_LT_EOF >> "$cfgfile"
32539 # func_append var value
32540 # Append VALUE to the end of shell variable VAR.
32541 func_append ()
32543 eval "$1=\$$1\$2"
32545 _LT_EOF
32547 esac
32550 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32551 || (rm -f "$cfgfile"; exit 1)
32553 mv -f "$cfgfile" "$ofile" ||
32554 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32555 chmod +x "$ofile"
32558 cat <<_LT_EOF >> "$ofile"
32560 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32562 # The linker used to build libraries.
32563 LD=$lt_LD_CXX
32565 # Commands used to build an old-style archive.
32566 old_archive_cmds=$lt_old_archive_cmds_CXX
32568 # A language specific compiler.
32569 CC=$lt_compiler_CXX
32571 # Is the compiler the GNU compiler?
32572 with_gcc=$GCC_CXX
32574 # Compiler flag to turn off builtin functions.
32575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32577 # How to pass a linker flag through the compiler.
32578 wl=$lt_lt_prog_compiler_wl_CXX
32580 # Additional compiler flags for building library objects.
32581 pic_flag=$lt_lt_prog_compiler_pic_CXX
32583 # Compiler flag to prevent dynamic linking.
32584 link_static_flag=$lt_lt_prog_compiler_static_CXX
32586 # Does compiler simultaneously support -c and -o options?
32587 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32589 # Whether or not to add -lc for building shared libraries.
32590 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32592 # Whether or not to disallow shared libs when runtime libs are static.
32593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32595 # Compiler flag to allow reflexive dlopens.
32596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32598 # Compiler flag to generate shared objects directly from archives.
32599 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32601 # Whether the compiler copes with passing no objects directly.
32602 compiler_needs_object=$lt_compiler_needs_object_CXX
32604 # Create an old-style archive from a shared archive.
32605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32607 # Create a temporary old-style archive to link instead of a shared archive.
32608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32610 # Commands used to build a shared archive.
32611 archive_cmds=$lt_archive_cmds_CXX
32612 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32614 # Commands used to build a loadable module if different from building
32615 # a shared archive.
32616 module_cmds=$lt_module_cmds_CXX
32617 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32619 # Whether we are building with GNU ld or not.
32620 with_gnu_ld=$lt_with_gnu_ld_CXX
32622 # Flag that allows shared libraries with undefined symbols to be built.
32623 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32625 # Flag that enforces no undefined symbols.
32626 no_undefined_flag=$lt_no_undefined_flag_CXX
32628 # Flag to hardcode \$libdir into a binary during linking.
32629 # This must work even if \$libdir does not exist
32630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32632 # If ld is used when linking, flag to hardcode \$libdir into a binary
32633 # during linking. This must work even if \$libdir does not exist.
32634 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32636 # Whether we need a single "-rpath" flag with a separated argument.
32637 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32639 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32640 # DIR into the resulting binary.
32641 hardcode_direct=$hardcode_direct_CXX
32643 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32644 # DIR into the resulting binary and the resulting library dependency is
32645 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32646 # library is relocated.
32647 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32649 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32650 # into the resulting binary.
32651 hardcode_minus_L=$hardcode_minus_L_CXX
32653 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32654 # into the resulting binary.
32655 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32657 # Set to "yes" if building a shared library automatically hardcodes DIR
32658 # into the library and all subsequent libraries and executables linked
32659 # against it.
32660 hardcode_automatic=$hardcode_automatic_CXX
32662 # Set to yes if linker adds runtime paths of dependent libraries
32663 # to runtime path list.
32664 inherit_rpath=$inherit_rpath_CXX
32666 # Whether libtool must link a program against all its dependency libraries.
32667 link_all_deplibs=$link_all_deplibs_CXX
32669 # Fix the shell variable \$srcfile for the compiler.
32670 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32672 # Set to "yes" if exported symbols are required.
32673 always_export_symbols=$always_export_symbols_CXX
32675 # The commands to list exported symbols.
32676 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32678 # Symbols that should not be listed in the preloaded symbols.
32679 exclude_expsyms=$lt_exclude_expsyms_CXX
32681 # Symbols that must always be exported.
32682 include_expsyms=$lt_include_expsyms_CXX
32684 # Commands necessary for linking programs (against libraries) with templates.
32685 prelink_cmds=$lt_prelink_cmds_CXX
32687 # Specify filename containing input files.
32688 file_list_spec=$lt_file_list_spec_CXX
32690 # How to hardcode a shared library path into an executable.
32691 hardcode_action=$hardcode_action_CXX
32693 # Dependencies to place before and after the objects being linked to
32694 # create a shared library.
32695 predep_objects=$lt_predep_objects_CXX
32696 postdep_objects=$lt_postdep_objects_CXX
32697 predeps=$lt_predeps_CXX
32698 postdeps=$lt_postdeps_CXX
32700 # The library search path used internally by the compiler when linking
32701 # a shared library.
32702 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32704 # ### END LIBTOOL TAG CONFIG: CXX
32705 _LT_EOF
32708 mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
32709 $ac_stdint_h )
32710 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
32711 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
32712 ac_stdint=$tmp/_stdint.h
32714 echo "#ifndef" $_ac_stdint_h >$ac_stdint
32715 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
32716 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
32717 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
32718 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
32719 if test "_$ac_cv_header_stdint_t" != "_" ; then
32720 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
32721 echo "#include <stdint.h>" >>$ac_stdint
32722 echo "#endif" >>$ac_stdint
32723 echo "#endif" >>$ac_stdint
32724 else
32726 cat >>$ac_stdint <<STDINT_EOF
32728 /* ................... shortcircuit part ........................... */
32730 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
32731 #include <stdint.h>
32732 #else
32733 #include <stddef.h>
32735 /* .................... configured part ............................ */
32737 STDINT_EOF
32739 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
32740 if test "_$ac_cv_header_stdint_x" != "_" ; then
32741 ac_header="$ac_cv_header_stdint_x"
32742 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
32743 else
32744 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
32747 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
32748 if test "_$ac_cv_header_stdint_o" != "_" ; then
32749 ac_header="$ac_cv_header_stdint_o"
32750 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
32751 else
32752 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
32755 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
32756 if test "_$ac_cv_header_stdint_u" != "_" ; then
32757 ac_header="$ac_cv_header_stdint_u"
32758 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
32759 else
32760 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
32763 echo "" >>$ac_stdint
32765 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
32766 echo "#include <$ac_header>" >>$ac_stdint
32767 echo "" >>$ac_stdint
32768 fi fi
32770 echo "/* which 64bit typedef has been found */" >>$ac_stdint
32771 if test "$ac_cv_type_uint64_t" = "yes" ; then
32772 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
32773 else
32774 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
32776 if test "$ac_cv_type_u_int64_t" = "yes" ; then
32777 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
32778 else
32779 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
32781 echo "" >>$ac_stdint
32783 echo "/* which type model has been detected */" >>$ac_stdint
32784 if test "_$ac_cv_char_data_model" != "_" ; then
32785 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
32786 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
32787 else
32788 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
32789 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
32791 echo "" >>$ac_stdint
32793 echo "/* whether int_least types were detected */" >>$ac_stdint
32794 if test "$ac_cv_type_int_least32_t" = "yes"; then
32795 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
32796 else
32797 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
32799 echo "/* whether int_fast types were detected */" >>$ac_stdint
32800 if test "$ac_cv_type_int_fast32_t" = "yes"; then
32801 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
32802 else
32803 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
32805 echo "/* whether intmax_t type was detected */" >>$ac_stdint
32806 if test "$ac_cv_type_intmax_t" = "yes"; then
32807 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
32808 else
32809 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
32811 echo "" >>$ac_stdint
32813 cat >>$ac_stdint <<STDINT_EOF
32814 /* .................... detections part ............................ */
32816 /* whether we need to define bitspecific types from compiler base types */
32817 #ifndef _STDINT_HEADER_INTPTR
32818 #ifndef _STDINT_HEADER_UINT32
32819 #ifndef _STDINT_HEADER_U_INT32
32820 #define _STDINT_NEED_INT_MODEL_T
32821 #else
32822 #define _STDINT_HAVE_U_INT_TYPES
32823 #endif
32824 #endif
32825 #endif
32827 #ifdef _STDINT_HAVE_U_INT_TYPES
32828 #undef _STDINT_NEED_INT_MODEL_T
32829 #endif
32831 #ifdef _STDINT_CHAR_MODEL
32832 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
32833 #ifndef _STDINT_BYTE_MODEL
32834 #define _STDINT_BYTE_MODEL 12
32835 #endif
32836 #endif
32837 #endif
32839 #ifndef _STDINT_HAVE_INT_LEAST32_T
32840 #define _STDINT_NEED_INT_LEAST_T
32841 #endif
32843 #ifndef _STDINT_HAVE_INT_FAST32_T
32844 #define _STDINT_NEED_INT_FAST_T
32845 #endif
32847 #ifndef _STDINT_HEADER_INTPTR
32848 #define _STDINT_NEED_INTPTR_T
32849 #ifndef _STDINT_HAVE_INTMAX_T
32850 #define _STDINT_NEED_INTMAX_T
32851 #endif
32852 #endif
32855 /* .................... definition part ............................ */
32857 /* some system headers have good uint64_t */
32858 #ifndef _HAVE_UINT64_T
32859 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
32860 #define _HAVE_UINT64_T
32861 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
32862 #define _HAVE_UINT64_T
32863 typedef u_int64_t uint64_t;
32864 #endif
32865 #endif
32867 #ifndef _HAVE_UINT64_T
32868 /* .. here are some common heuristics using compiler runtime specifics */
32869 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
32870 #define _HAVE_UINT64_T
32871 #define _HAVE_LONGLONG_UINT64_T
32872 typedef long long int64_t;
32873 typedef unsigned long long uint64_t;
32875 #elif !defined __STRICT_ANSI__
32876 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
32877 #define _HAVE_UINT64_T
32878 typedef __int64 int64_t;
32879 typedef unsigned __int64 uint64_t;
32881 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
32882 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
32883 #if !defined _NO_LONGLONG
32884 #define _HAVE_UINT64_T
32885 #define _HAVE_LONGLONG_UINT64_T
32886 typedef long long int64_t;
32887 typedef unsigned long long uint64_t;
32888 #endif
32890 #elif defined __alpha || (defined __mips && defined _ABIN32)
32891 #if !defined _NO_LONGLONG
32892 typedef long int64_t;
32893 typedef unsigned long uint64_t;
32894 #endif
32895 /* compiler/cpu type to define int64_t */
32896 #endif
32897 #endif
32898 #endif
32900 #if defined _STDINT_HAVE_U_INT_TYPES
32901 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
32902 typedef u_int8_t uint8_t;
32903 typedef u_int16_t uint16_t;
32904 typedef u_int32_t uint32_t;
32906 /* glibc compatibility */
32907 #ifndef __int8_t_defined
32908 #define __int8_t_defined
32909 #endif
32910 #endif
32912 #ifdef _STDINT_NEED_INT_MODEL_T
32913 /* we must guess all the basic types. Apart from byte-adressable system, */
32914 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
32915 /* (btw, those nibble-addressable systems are way off, or so we assume) */
32918 #if defined _STDINT_BYTE_MODEL
32919 #if _STDINT_LONG_MODEL+0 == 242
32920 /* 2:4:2 = IP16 = a normal 16-bit system */
32921 typedef unsigned char uint8_t;
32922 typedef unsigned short uint16_t;
32923 typedef unsigned long uint32_t;
32924 #ifndef __int8_t_defined
32925 #define __int8_t_defined
32926 typedef char int8_t;
32927 typedef short int16_t;
32928 typedef long int32_t;
32929 #endif
32930 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
32931 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
32932 /* 4:4:4 = ILP32 = a normal 32-bit system */
32933 typedef unsigned char uint8_t;
32934 typedef unsigned short uint16_t;
32935 typedef unsigned int uint32_t;
32936 #ifndef __int8_t_defined
32937 #define __int8_t_defined
32938 typedef char int8_t;
32939 typedef short int16_t;
32940 typedef int int32_t;
32941 #endif
32942 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
32943 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
32944 /* 4:8:8 = LP64 = a normal 64-bit system */
32945 typedef unsigned char uint8_t;
32946 typedef unsigned short uint16_t;
32947 typedef unsigned int uint32_t;
32948 #ifndef __int8_t_defined
32949 #define __int8_t_defined
32950 typedef char int8_t;
32951 typedef short int16_t;
32952 typedef int int32_t;
32953 #endif
32954 /* this system has a "long" of 64bit */
32955 #ifndef _HAVE_UINT64_T
32956 #define _HAVE_UINT64_T
32957 typedef unsigned long uint64_t;
32958 typedef long int64_t;
32959 #endif
32960 #elif _STDINT_LONG_MODEL+0 == 448
32961 /* LLP64 a 64-bit system derived from a 32-bit system */
32962 typedef unsigned char uint8_t;
32963 typedef unsigned short uint16_t;
32964 typedef unsigned int uint32_t;
32965 #ifndef __int8_t_defined
32966 #define __int8_t_defined
32967 typedef char int8_t;
32968 typedef short int16_t;
32969 typedef int int32_t;
32970 #endif
32971 /* assuming the system has a "long long" */
32972 #ifndef _HAVE_UINT64_T
32973 #define _HAVE_UINT64_T
32974 #define _HAVE_LONGLONG_UINT64_T
32975 typedef unsigned long long uint64_t;
32976 typedef long long int64_t;
32977 #endif
32978 #else
32979 #define _STDINT_NO_INT32_T
32980 #endif
32981 #else
32982 #define _STDINT_NO_INT8_T
32983 #define _STDINT_NO_INT32_T
32984 #endif
32985 #endif
32988 * quote from SunOS-5.8 sys/inttypes.h:
32989 * Use at your own risk. As of February 1996, the committee is squarely
32990 * behind the fixed sized types; the "least" and "fast" types are still being
32991 * discussed. The probability that the "fast" types may be removed before
32992 * the standard is finalized is high enough that they are not currently
32993 * implemented.
32996 #if defined _STDINT_NEED_INT_LEAST_T
32997 typedef int8_t int_least8_t;
32998 typedef int16_t int_least16_t;
32999 typedef int32_t int_least32_t;
33000 #ifdef _HAVE_UINT64_T
33001 typedef int64_t int_least64_t;
33002 #endif
33004 typedef uint8_t uint_least8_t;
33005 typedef uint16_t uint_least16_t;
33006 typedef uint32_t uint_least32_t;
33007 #ifdef _HAVE_UINT64_T
33008 typedef uint64_t uint_least64_t;
33009 #endif
33010 /* least types */
33011 #endif
33013 #if defined _STDINT_NEED_INT_FAST_T
33014 typedef int8_t int_fast8_t;
33015 typedef int int_fast16_t;
33016 typedef int32_t int_fast32_t;
33017 #ifdef _HAVE_UINT64_T
33018 typedef int64_t int_fast64_t;
33019 #endif
33021 typedef uint8_t uint_fast8_t;
33022 typedef unsigned uint_fast16_t;
33023 typedef uint32_t uint_fast32_t;
33024 #ifdef _HAVE_UINT64_T
33025 typedef uint64_t uint_fast64_t;
33026 #endif
33027 /* fast types */
33028 #endif
33030 #ifdef _STDINT_NEED_INTMAX_T
33031 #ifdef _HAVE_UINT64_T
33032 typedef int64_t intmax_t;
33033 typedef uint64_t uintmax_t;
33034 #else
33035 typedef long intmax_t;
33036 typedef unsigned long uintmax_t;
33037 #endif
33038 #endif
33040 #ifdef _STDINT_NEED_INTPTR_T
33041 #ifndef __intptr_t_defined
33042 #define __intptr_t_defined
33043 /* we encourage using "long" to store pointer values, never use "int" ! */
33044 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
33045 typedef unsigned int uintptr_t;
33046 typedef int intptr_t;
33047 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
33048 typedef unsigned long uintptr_t;
33049 typedef long intptr_t;
33050 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
33051 typedef uint64_t uintptr_t;
33052 typedef int64_t intptr_t;
33053 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
33054 typedef unsigned long uintptr_t;
33055 typedef long intptr_t;
33056 #endif
33057 #endif
33058 #endif
33060 /* The ISO C99 standard specifies that in C++ implementations these
33061 should only be defined if explicitly requested. */
33062 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
33063 #ifndef UINT32_C
33065 /* Signed. */
33066 # define INT8_C(c) c
33067 # define INT16_C(c) c
33068 # define INT32_C(c) c
33069 # ifdef _HAVE_LONGLONG_UINT64_T
33070 # define INT64_C(c) c ## L
33071 # else
33072 # define INT64_C(c) c ## LL
33073 # endif
33075 /* Unsigned. */
33076 # define UINT8_C(c) c ## U
33077 # define UINT16_C(c) c ## U
33078 # define UINT32_C(c) c ## U
33079 # ifdef _HAVE_LONGLONG_UINT64_T
33080 # define UINT64_C(c) c ## UL
33081 # else
33082 # define UINT64_C(c) c ## ULL
33083 # endif
33085 /* Maximal type. */
33086 # ifdef _HAVE_LONGLONG_UINT64_T
33087 # define INTMAX_C(c) c ## L
33088 # define UINTMAX_C(c) c ## UL
33089 # else
33090 # define INTMAX_C(c) c ## LL
33091 # define UINTMAX_C(c) c ## ULL
33092 # endif
33094 /* literalnumbers */
33095 #endif
33096 #endif
33098 /* These limits are merily those of a two complement byte-oriented system */
33100 /* Minimum of signed integral types. */
33101 #ifndef INT8_MIN
33102 # define INT8_MIN (-128)
33103 #endif
33104 #ifndef INT16_MIN
33105 # define INT16_MIN (-32767-1)
33106 #endif
33107 #ifndef INT32_MIN
33108 # define INT32_MIN (-2147483647-1)
33109 #endif
33110 #ifndef INT64_MIN
33111 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
33112 #endif
33114 /* Maximum of signed integral types. */
33115 #ifndef INT8_MAX
33116 # define INT8_MAX (127)
33117 #endif
33118 #ifndef INT16_MAX
33119 # define INT16_MAX (32767)
33120 #endif
33121 #ifndef INT32_MAX
33122 # define INT32_MAX (2147483647)
33123 #endif
33124 #ifndef INT64_MAX
33125 # define INT64_MAX (__INT64_C(9223372036854775807))
33126 #endif
33128 /* Maximum of unsigned integral types. */
33129 #ifndef UINT8_MAX
33130 # define UINT8_MAX (255)
33131 #endif
33132 #ifndef UINT16_MAX
33133 # define UINT16_MAX (65535)
33134 #endif
33135 #ifndef UINT32_MAX
33136 # define UINT32_MAX (4294967295U)
33137 #endif
33138 #ifndef UINT64_MAX
33139 # define UINT64_MAX (__UINT64_C(18446744073709551615))
33140 #endif
33142 /* Minimum of signed integral types having a minimum size. */
33143 # define INT_LEAST8_MIN INT8_MIN
33144 # define INT_LEAST16_MIN INT16_MIN
33145 # define INT_LEAST32_MIN INT32_MIN
33146 # define INT_LEAST64_MIN INT64_MIN
33147 /* Maximum of signed integral types having a minimum size. */
33148 # define INT_LEAST8_MAX INT8_MAX
33149 # define INT_LEAST16_MAX INT16_MAX
33150 # define INT_LEAST32_MAX INT32_MAX
33151 # define INT_LEAST64_MAX INT64_MAX
33153 /* Maximum of unsigned integral types having a minimum size. */
33154 # define UINT_LEAST8_MAX UINT8_MAX
33155 # define UINT_LEAST16_MAX UINT16_MAX
33156 # define UINT_LEAST32_MAX UINT32_MAX
33157 # define UINT_LEAST64_MAX UINT64_MAX
33159 /* shortcircuit*/
33160 #endif
33161 /* once */
33162 #endif
33163 #endif
33164 STDINT_EOF
33166 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
33167 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
33168 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
33169 else
33170 ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
33171 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33172 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
33173 X"$ac_stdint_h" : 'X\(//\)$' \| \
33174 X"$ac_stdint_h" : 'X\(/\)' \| \
33175 . : '\(.\)' 2>/dev/null ||
33176 echo X"$ac_stdint_h" |
33177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33179 /^X\(\/\/\)$/{ s//\1/; q; }
33180 /^X\(\/\).*/{ s//\1/; q; }
33181 s/.*/./; q'`
33182 { if $as_mkdir_p; then
33183 mkdir -p "$ac_dir"
33184 else
33185 as_dir="$ac_dir"
33186 as_dirs=
33187 while test ! -d "$as_dir"; do
33188 as_dirs="$as_dir $as_dirs"
33189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33191 X"$as_dir" : 'X\(//\)[^/]' \| \
33192 X"$as_dir" : 'X\(//\)$' \| \
33193 X"$as_dir" : 'X\(/\)' \| \
33194 . : '\(.\)' 2>/dev/null ||
33195 echo X"$as_dir" |
33196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33198 /^X\(\/\/\)$/{ s//\1/; q; }
33199 /^X\(\/\).*/{ s//\1/; q; }
33200 s/.*/./; q'`
33201 done
33202 test ! -n "$as_dirs" || mkdir $as_dirs
33203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33205 { (exit 1); exit 1; }; }; }
33207 rm -f $ac_stdint_h
33208 mv $ac_stdint $ac_stdint_h
33211 gappletviewer ) chmod 755 tools/gappletviewer ;;
33212 gjarsigner ) chmod 755 tools/gjarsigner ;;
33213 gkeytool ) chmod 755 tools/gkeytool ;;
33214 gjar ) chmod 755 tools/gjar ;;
33215 gnative2ascii ) chmod 755 tools/gnative2ascii ;;
33216 gserialver ) chmod 755 tools/gserialver ;;
33217 grmiregistry ) chmod 755 tools/grmiregistry ;;
33218 gtnameserv ) chmod 755 tools/gtnameserv ;;
33219 gorbd ) chmod 755 tools/gorbd ;;
33220 grmid ) chmod 755 tools/grmid ;;
33221 grmic ) chmod 755 tools/grmic ;;
33222 gjavah ) chmod 755 tools/gjavah ;;
33223 gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
33224 copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
33225 esac
33226 done
33227 _ACEOF
33229 cat >>$CONFIG_STATUS <<\_ACEOF
33231 { (exit 0); exit 0; }
33232 _ACEOF
33233 chmod +x $CONFIG_STATUS
33234 ac_clean_files=$ac_clean_files_save
33237 # configure is writing to config.log, and then calls config.status.
33238 # config.status does its own redirection, appending to config.log.
33239 # Unfortunately, on DOS this fails, as config.log is still kept open
33240 # by configure, so config.status won't be able to write to it; its
33241 # output is simply discarded. So we exec the FD to /dev/null,
33242 # effectively closing config.log, so it can be properly (re)opened and
33243 # appended to by config.status. When coming back to configure, we
33244 # need to make the FD available again.
33245 if test "$no_create" != yes; then
33246 ac_cs_success=:
33247 ac_config_status_args=
33248 test "$silent" = yes &&
33249 ac_config_status_args="$ac_config_status_args --quiet"
33250 exec 5>/dev/null
33251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33252 exec 5>>config.log
33253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33254 # would make configure fail if this is the last instruction.
33255 $ac_cs_success || { (exit 1); exit 1; }
33259 # Create standard.omit based on decisions we just made.
33260 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
33261 if test x$use_escher != xtrue; then
33262 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit