2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 enable_option_checking=no
603 ac_subst_vars='am__EXEEXT_FALSE
625 CREATE_JAVA_HOME_FALSE
626 CREATE_JAVA_HOME_TRUE
627 INSTALL_AOT_RPM_FALSE
630 python_mod_dir_expanded
633 LD_FINISH_STATIC_SPEC
635 ANONVERSCRIPT_SUN_FALSE
636 ANONVERSCRIPT_SUN_TRUE
637 ANONVERSCRIPT_GNU_FALSE
638 ANONVERSCRIPT_GNU_TRUE
652 INSTALL_BINARIES_FALSE
653 INSTALL_BINARIES_TRUE
654 NEEDS_DATA_START_FALSE
655 NEEDS_DATA_START_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
712 extra_ldflags_libjava
721 USING_DARWIN_CRT_FALSE
722 USING_DARWIN_CRT_TRUE
723 USING_POSIX_PLATFORM_FALSE
724 USING_POSIX_PLATFORM_TRUE
725 USING_WIN32_PLATFORM_FALSE
726 USING_WIN32_PLATFORM_TRUE
733 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
734 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
735 SUPPRESS_LIBGCJ_BC_FALSE
736 SUPPRESS_LIBGCJ_BC_TRUE
740 INSTALL_ECJ_JAR_FALSE
786 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
788 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
789 LIBGCJ_SUBLIB_LTFLAGS
794 MAINTAINER_MODE_FALSE
824 INSTALL_STRIP_PROGRAM
849 JAVA_MAINTAINER_MODE_FALSE
850 JAVA_MAINTAINER_MODE_TRUE
901 program_transform_name
914 enable_option_checking
920 enable_version_specific_runtime_libs
921 enable_browser_plugin
925 enable_java_maintainer_mode
926 enable_dependency_tracking
927 enable_maintainer_mode
928 enable_libgcj_sublibs
938 enable_getenv_properties
939 enable_hash_synchronization
943 enable_reduced_reflection
947 enable_sjlj_exceptions
958 with_system_libunwind
960 enable_aot_compile_rpm
970 ac_precious_vars='build_alias
984 ac_subdirs_all='classpath libltdl'
986 # Initialize some variables set by options.
988 ac_init_version=false
989 ac_unrecognized_opts=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
1000 program_transform_name=s,x,x,
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 includedir='${prefix}/include'
1023 oldincludedir='/usr/include'
1024 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025 infodir='${datarootdir}/info'
1030 libdir='${exec_prefix}/lib'
1031 localedir='${datarootdir}/locale'
1032 mandir='${datarootdir}/man'
1038 # If the previous option needs an argument, assign it.
1039 if test -n "$ac_prev"; then
1040 eval $ac_prev=\$ac_option
1046 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050 # Accept the important Cygnus configure options, so we can diagnose typos.
1052 case $ac_dashdash$ac_option in
1056 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059 bindir=$ac_optarg ;;
1061 -build | --build | --buil | --bui | --bu)
1062 ac_prev=build_alias ;;
1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064 build_alias=$ac_optarg ;;
1066 -cache-file | --cache-file | --cache-fil | --cache-fi \
1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068 ac_prev=cache_file ;;
1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071 cache_file=$ac_optarg ;;
1073 --config-cache | -C)
1074 cache_file=config.cache ;;
1076 -datadir | --datadir | --datadi | --datad)
1078 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1079 datadir=$ac_optarg ;;
1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082 | --dataroo | --dataro | --datar)
1083 ac_prev=datarootdir ;;
1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086 datarootdir=$ac_optarg ;;
1088 -disable-* | --disable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval enable_$ac_useropt=no ;;
1104 -docdir | --docdir | --docdi | --doc | --do)
1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107 docdir=$ac_optarg ;;
1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112 dvidir=$ac_optarg ;;
1114 -enable-* | --enable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval enable_$ac_useropt=\$ac_optarg ;;
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1159 htmldir=$ac_optarg ;;
1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1173 -libdir | --libdir | --libdi | --libd)
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
1191 | --localstate | --localstat | --localsta | --localst | --locals)
1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1195 localstatedir=$ac_optarg ;;
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
1250 -program-transform-name=* | --program-transform-name=* \
1251 | --program-transform-nam=* | --program-transform-na=* \
1252 | --program-transform-n=* | --program-transform-=* \
1253 | --program-transform=* | --program-transfor=* \
1254 | --program-transfo=* | --program-transf=* \
1255 | --program-trans=* | --program-tran=* \
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1264 -psdir | --psdir | --psdi | --psd | --ps)
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1277 sbindir=$ac_optarg ;;
1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281 | --sharedst | --shareds | --shared | --share | --shar \
1283 ac_prev=sharedstatedir ;;
1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1288 sharedstatedir=$ac_optarg ;;
1290 -site | --site | --sit)
1292 -site=* | --site=* | --sit=*)
1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298 srcdir=$ac_optarg ;;
1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301 | --syscon | --sysco | --sysc | --sys | --sy)
1302 ac_prev=sysconfdir ;;
1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305 sysconfdir=$ac_optarg ;;
1307 -target | --target | --targe | --targ | --tar | --ta | --t)
1308 ac_prev=target_alias ;;
1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310 target_alias=$ac_optarg ;;
1312 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1315 -version | --version | --versio | --versi | --vers | -V)
1316 ac_init_version=: ;;
1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 as_fn_error "invalid package name: $ac_useropt"
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1332 eval with_$ac_useropt=\$ac_optarg ;;
1334 -without-* | --without-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1348 eval with_$ac_useropt=no ;;
1351 # Obsolete; use --with-x.
1354 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355 | --x-incl | --x-inc | --x-in | --x-i)
1356 ac_prev=x_includes ;;
1357 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359 x_includes=$ac_optarg ;;
1361 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363 ac_prev=x_libraries ;;
1364 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366 x_libraries=$ac_optarg ;;
1368 -*) as_fn_error "unrecognized option: \`$ac_option'
1369 Try \`$0 --help' for more information."
1373 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374 # Reject names that are not valid shell variable names.
1375 case $ac_envvar in #(
1376 '' | [0-9]* | *[!_$as_cr_alnum]* )
1377 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1379 eval $ac_envvar=\$ac_optarg
1380 export $ac_envvar ;;
1383 # FIXME: should be removed in autoconf 3.0.
1384 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1393 if test -n "$ac_prev"; then
1394 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 as_fn_error "missing argument to $ac_option"
1398 if test -n "$ac_unrecognized_opts"; then
1399 case $enable_option_checking in
1401 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406 # Check all directory arguments for consistency.
1407 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
1419 # Be sure to have absolute directory names.
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1432 target=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448 test "$silent" = yes && exec 6>/dev/null
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 as_fn_error "working directory cannot be determined"
1455 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1456 as_fn_error "pwd does not report name of working directory"
1459 # Find the source files, if location was not specified.
1460 if test -z "$srcdir"; then
1461 ac_srcdir_defaulted=yes
1462 # Try the directory containing this script, then the parent directory.
1463 ac_confdir=`$as_dirname -- "$as_myself" ||
1464 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465 X"$as_myself" : 'X\(//\)[^/]' \| \
1466 X"$as_myself" : 'X\(//\)$' \| \
1467 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1468 $as_echo X"$as_myself" |
1469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1491 ac_srcdir_defaulted=no
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1497 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1501 # When building in place, set srcdir=.
1502 if test "$ac_abs_confdir" = "$ac_pwd"; then
1505 # Remove unnecessary trailing slashes from srcdir.
1506 # Double slashes in file names in object file debugging info
1507 # mess up M-x gdb in Emacs.
1509 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1511 for ac_var in $ac_precious_vars; do
1512 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_env_${ac_var}_value=\$${ac_var}
1514 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1515 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1519 # Report the --help message.
1521 if test "$ac_init_help" = "long"; then
1522 # Omit some internal or obsolete options to make the list less imposing.
1523 # This message is too long to be a string in the A/UX 3.1 sh.
1525 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1527 Usage: $0 [OPTION]... [VAR=VALUE]...
1529 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1530 VAR=VALUE. See below for descriptions of some of the useful variables.
1532 Defaults for the options are specified in brackets.
1535 -h, --help display this help and exit
1536 --help=short display options specific to this package
1537 --help=recursive display the short help of all the included packages
1538 -V, --version display version information and exit
1539 -q, --quiet, --silent do not print \`checking...' messages
1540 --cache-file=FILE cache test results in FILE [disabled]
1541 -C, --config-cache alias for \`--cache-file=config.cache'
1542 -n, --no-create do not create output files
1543 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1545 Installation directories:
1546 --prefix=PREFIX install architecture-independent files in PREFIX
1547 [$ac_default_prefix]
1548 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1551 By default, \`make install' will install all the files in
1552 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1553 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1554 for instance \`--prefix=\$HOME'.
1556 For better control, use the options below.
1558 Fine tuning of the installation directories:
1559 --bindir=DIR user executables [EPREFIX/bin]
1560 --sbindir=DIR system admin executables [EPREFIX/sbin]
1561 --libexecdir=DIR program executables [EPREFIX/libexec]
1562 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1563 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1564 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1565 --libdir=DIR object code libraries [EPREFIX/lib]
1566 --includedir=DIR C header files [PREFIX/include]
1567 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1568 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1569 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1570 --infodir=DIR info documentation [DATAROOTDIR/info]
1571 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1572 --mandir=DIR man documentation [DATAROOTDIR/man]
1573 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1574 --htmldir=DIR html documentation [DOCDIR]
1575 --dvidir=DIR dvi documentation [DOCDIR]
1576 --pdfdir=DIR pdf documentation [DOCDIR]
1577 --psdir=DIR ps documentation [DOCDIR]
1583 --program-prefix=PREFIX prepend PREFIX to installed program names
1584 --program-suffix=SUFFIX append SUFFIX to installed program names
1585 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1588 --x-includes=DIR X include files are in DIR
1589 --x-libraries=DIR X library files are in DIR
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 --target=TARGET configure for building compilers for TARGET [HOST]
1598 if test -n "$ac_init_help"; then
1599 case $ac_init_help in
1600 short | recursive ) echo "Configuration of libjava version-unused:";;
1605 --disable-option-checking ignore unrecognized --enable/--with options
1606 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1607 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1608 --enable-multilib build many library versions (default)
1609 --enable-version-specific-runtime-libs
1610 specify that runtime libraries should be installed
1611 in a compiler-specific directory
1612 --enable-browser-plugin build gcjwebplugin web browser plugin
1613 --enable-gconf-peer compile GConf native peers for util.preferences
1614 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1616 --enable-java-maintainer-mode
1617 allow rebuilding of .class and .h files
1618 --disable-dependency-tracking speeds up one-time build
1619 --enable-dependency-tracking do not reject slow dependency extractors
1620 --enable-maintainer-mode enable make rules and dependencies not useful
1621 (and sometimes confusing) to the casual installer
1622 --enable-libgcj-sublibs build libgcj as many sub-libraries
1623 --enable-libgcj-debug enable runtime debugging code
1624 --enable-java-awt list of AWT peer implementations to be built
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --disable-getenv-properties
1631 don't set system properties from GCJ_PROPERTIES
1632 --enable-hash-synchronization
1633 use global hash table for monitor locks
1634 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1636 --enable-reduced-reflection
1637 enable or disable(default) -freduced-reflection when
1638 building portions of libgcj
1639 --enable-gc-debug include full support for pointer backtracing etc.
1640 --enable-interpreter enable interpreter
1641 --enable-sjlj-exceptions
1642 force use of builtin_setjmp for exceptions
1643 --disable-java-net disable java.net
1644 --disable-jvmpi disable JVMPI support
1645 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-tls Use thread-local storage [default=yes]
1648 --enable-aot-compile-rpm
1649 enable installation of aot-compile-rpm [default=no]
1650 --enable-java-home create a standard JDK-style directory layout in the
1651 install tree [default=no]
1654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1656 --with-build-libsubdir=DIR Directory where to find libraries for build system
1657 --with-target-subdir=SUBDIR
1658 configure in a subdirectory
1659 --with-cross-host=HOST configure with a cross compiler from HOST
1660 --with-newlib configure with newlib
1661 --with-antlr-jar=file Use ANTLR from the specified jar file
1662 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-ecj-jar=FILE use preinstalled ecj jar
1667 --with-java-home=DIRECTORY
1668 value of java.home system property
1669 --with-win32-nlsapi=ansi or unicows or unicode
1670 native MinGW libgcj Win32 OS API (default is ansi)
1671 --without-libffi don't use libffi
1672 --with-ecos enable runtime eCos target support
1673 --with-system-zlib use installed libz
1674 --with-x use the X Window System
1675 --with-gnu-ld assume the C compiler uses GNU ld default=no
1676 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1677 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1678 --with-system-libunwind use installed libunwind
1679 --with-python-dir the location to install Python modules. This path
1680 should NOT include the prefix.
1681 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1682 --with-arch-directory the arch directory under jre/lib (defaults to
1684 --with-os-directory the os directory under include (defaults to
1686 --with-origin-name the JPackage origin name of this package (default is
1688 --with-arch-suffix the arch directory suffix (default is the empty
1690 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1691 --with-jvm-jar-dir where to install jars (default is
1692 ${prefix}/lib/jvm-exports)
1694 Some influential environment variables:
1695 CC C compiler command
1696 CFLAGS C compiler flags
1697 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1698 nonstandard directory <lib dir>
1699 LIBS libraries to pass to the linker, e.g. -l<library>
1700 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1701 you have headers in a nonstandard directory <include dir>
1702 CXX C++ compiler command
1703 CXXFLAGS C++ compiler flags
1705 CXXCPP C++ preprocessor
1706 XMKMF Path to xmkmf, Makefile generator for X Window System
1708 Use these variables to override the choices made by `configure' or to help
1709 it to find libraries and programs with nonstandard names/locations.
1711 Report bugs to the package provider.
1716 if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1741 .) # We are building in place.
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1746 ac_srcdir=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for guested configure.
1758 if test -f "$ac_srcdir/configure.gnu"; then
1760 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1761 elif test -f "$ac_srcdir/configure"; then
1763 $SHELL "$ac_srcdir/configure" --help=recursive
1765 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 cd "$ac_pwd" || { ac_status=$?; break; }
1771 test -n "$ac_init_help" && exit $ac_status
1772 if $ac_init_version; then
1774 libjava configure version-unused
1775 generated by GNU Autoconf 2.64
1777 Copyright (C) 2009 Free Software Foundation, Inc.
1778 This configure script is free software; the Free Software Foundation
1779 gives unlimited permission to copy, distribute and modify it.
1784 ## ------------------------ ##
1785 ## Autoconf initialization. ##
1786 ## ------------------------ ##
1788 # ac_fn_c_try_compile LINENO
1789 # --------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 } # ac_fn_c_try_compile
1826 # ac_fn_cxx_try_compile LINENO
1827 # ----------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_cxx_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_cxx_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 } # ac_fn_cxx_try_compile
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 $as_test_x conftest$ac_exeext
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 } # ac_fn_c_try_link
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1927 if ac_fn_c_try_compile "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 } # ac_fn_c_check_header_compile
1941 # ac_fn_c_try_cpp LINENO
1942 # ----------------------
1943 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } >/dev/null && {
1963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1964 test ! -s conftest.err
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1973 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_link"
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996 { { case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_try") 2>&5
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; }; }; then :
2008 $as_echo "$as_me: program exited with status $ac_status" >&5
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 ac_retval=$ac_status
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 # ac_fn_c_check_func LINENO FUNC VAR
2021 # ----------------------------------
2022 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2023 ac_fn_c_check_func ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 $as_echo_n "(cached) " >&6
2031 if test x$gcc_no_link = xyes; then
2032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2038 #define $2 innocuous_$2
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $2 (); below.
2042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2043 <limits.h> exists even on freestanding compilers. */
2046 # include <limits.h>
2048 # include <assert.h>
2053 /* Override any GCC internal prototype to avoid an error.
2054 Use char because int might match the return type of a GCC
2055 builtin and then its argument prototype would still apply. */
2060 /* The GNU C library defines this for functions which it implements
2061 to always fail with ENOSYS. Some functions are actually named
2062 something starting with __ and the normal name is an alias. */
2063 #if defined __stub_$2 || defined __stub___$2
2075 if ac_fn_c_try_link "$LINENO"; then :
2080 rm -f core conftest.err conftest.$ac_objext \
2081 conftest$ac_exeext conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 } # ac_fn_c_check_func
2090 # ac_fn_cxx_try_cpp LINENO
2091 # ------------------------
2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_cxx_try_cpp ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if { { ac_try="$ac_cpp conftest.$ac_ext"
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2105 if test -s conftest.err; then
2106 grep -v '^ *+' conftest.err >conftest.er1
2107 cat conftest.er1 >&5
2108 mv -f conftest.er1 conftest.err
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; } >/dev/null && {
2112 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2113 test ! -s conftest.err
2117 $as_echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 } # ac_fn_cxx_try_cpp
2127 # ac_fn_cxx_try_link LINENO
2128 # -------------------------
2129 # Try to link conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_cxx_try_link ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 rm -f conftest.$ac_objext conftest$ac_exeext
2134 if { { ac_try="$ac_link"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_link") 2>conftest.err
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && {
2150 test -z "$ac_cxx_werror_flag" ||
2151 test ! -s conftest.err
2152 } && test -s conftest$ac_exeext && {
2153 test "$cross_compiling" = yes ||
2154 $as_test_x conftest$ac_exeext
2158 $as_echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2164 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2165 # interfere with the next link command; also delete a directory that is
2166 # left behind by Apple's compiler. We do this before executing the actions.
2167 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171 } # ac_fn_cxx_try_link
2173 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2174 # -------------------------------------------------------
2175 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2176 # the include files in INCLUDES and setting the cache variable VAR
2178 ac_fn_c_check_header_mongrel ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2191 # Is the header compilable?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2193 $as_echo_n "checking $2 usability... " >&6; }
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_header_compiler=yes
2202 ac_header_compiler=no
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2206 $as_echo "$ac_header_compiler" >&6; }
2208 # Is the header present?
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2210 $as_echo_n "checking $2 presence... " >&6; }
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 if ac_fn_c_try_cpp "$LINENO"; then :
2216 ac_header_preproc=yes
2218 ac_header_preproc=no
2220 rm -f conftest.err conftest.$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2222 $as_echo "$ac_header_preproc" >&6; }
2224 # So? What about this header?
2225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2228 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2234 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2236 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2238 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2240 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2242 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2250 eval "$3=\$ac_header_compiler"
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 } # ac_fn_c_check_header_mongrel
2260 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2261 # ----------------------------------------------------
2262 # Tries to find if the field MEMBER exists in type AGGR, after including
2263 # INCLUDES, setting cache variable VAR accordingly.
2264 ac_fn_c_check_member ()
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2268 $as_echo_n "checking for $2.$3... " >&6; }
2269 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2270 $as_echo_n "(cached) " >&6
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2285 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2295 if (sizeof ac_aggr.$3)
2301 if ac_fn_c_try_compile "$LINENO"; then :
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_member
2317 # ac_fn_c_check_decl LINENO SYMBOL VAR
2318 # ------------------------------------
2319 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2320 ac_fn_c_check_decl ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 as_decl_name=`echo $2|sed 's/ *(.*//'`
2324 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2327 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328 $as_echo_n "(cached) " >&6
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 #ifndef $as_decl_name
2338 (void) $as_decl_use;
2340 (void) $as_decl_name;
2348 if ac_fn_c_try_compile "$LINENO"; then :
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360 } # ac_fn_c_check_decl
2362 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2363 # --------------------------------------------
2364 # Tries to find the compile-time value of EXPR in a program that includes
2365 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2367 ac_fn_c_compute_int ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 if test "$cross_compiling" = yes; then
2371 # Depending upon the size, compute the lo and hi bounds.
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2378 static int test_array [1 - 2 * !(($2) >= 0)];
2385 if ac_fn_c_try_compile "$LINENO"; then :
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2394 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402 ac_hi=$ac_mid; break
2404 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2405 if test $ac_lo -le $ac_mid; then
2409 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2420 static int test_array [1 - 2 * !(($2) < 0)];
2427 if ac_fn_c_try_compile "$LINENO"; then :
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2436 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444 ac_lo=$ac_mid; break
2446 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2447 if test $ac_mid -le $ac_hi; then
2451 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 # Binary search between lo and hi bounds.
2462 while test "x$ac_lo" != "x$ac_hi"; do
2463 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2470 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2477 if ac_fn_c_try_compile "$LINENO"; then :
2480 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2492 static long int longval () { return $2; }
2493 static unsigned long int ulongval () { return $2; }
2500 FILE *f = fopen ("conftest.val", "w");
2505 long int i = longval ();
2508 fprintf (f, "%ld", i);
2512 unsigned long int i = ulongval ();
2515 fprintf (f, "%lu", i);
2517 /* Do not output a trailing newline, as this causes \r\n confusion
2518 on some platforms. */
2519 return ferror (f) || fclose (f) != 0;
2525 if ac_fn_c_try_run "$LINENO"; then :
2526 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2531 conftest.$ac_objext conftest.beam conftest.$ac_ext
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_compute_int
2540 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2541 # -------------------------------------------
2542 # Tests whether TYPE exists after having included INCLUDES, setting cache
2543 # variable VAR accordingly.
2544 ac_fn_c_check_type ()
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2548 $as_echo_n "checking for $2... " >&6; }
2549 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2550 $as_echo_n "(cached) " >&6
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2565 if ac_fn_c_try_compile "$LINENO"; then :
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2578 if ac_fn_c_try_compile "$LINENO"; then :
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2589 $as_echo "$ac_res" >&6; }
2590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2592 } # ac_fn_c_check_type
2593 cat >config.log <<_ACEOF
2594 This file contains any messages produced by compilers while
2595 running configure, to aid debugging if configure makes a mistake.
2597 It was created by libjava $as_me version-unused, which was
2598 generated by GNU Autoconf 2.64. Invocation command line was
2610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 $as_echo "PATH: $as_dir"
2650 # Keep a trace of the command line.
2651 # Strip out --no-create and --no-recursion so they do not pile up.
2652 # Strip out --silent because we don't want to record it for future runs.
2653 # Also quote any args containing shell meta-characters.
2654 # Make two passes to allow for proper duplicate-argument suppression.
2658 ac_must_keep_next=false
2664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2666 | -silent | --silent | --silen | --sile | --sil)
2669 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2672 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2674 as_fn_append ac_configure_args1 " '$ac_arg'"
2675 if test $ac_must_keep_next = true; then
2676 ac_must_keep_next=false # Got value, back to normal.
2679 *=* | --config-cache | -C | -disable-* | --disable-* \
2680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2682 | -with-* | --with-* | -without-* | --without-* | --x)
2683 case "$ac_configure_args0 " in
2684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2687 -* ) ac_must_keep_next=true ;;
2690 as_fn_append ac_configure_args " '$ac_arg'"
2695 { ac_configure_args0=; unset ac_configure_args0;}
2696 { ac_configure_args1=; unset ac_configure_args1;}
2698 # When interrupted or exit'd, cleanup temporary files, and complete
2699 # config.log. We remove comments because anyway the quotes in there
2700 # would cause problems or look ugly.
2701 # WARNING: Use '\'' to represent an apostrophe within the trap.
2702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2703 trap 'exit_status=$?
2704 # Save into config.log some information that might help in debugging.
2709 ## ---------------- ##
2710 ## Cache variables. ##
2711 ## ---------------- ##
2714 # The following way of writing the cache mishandles newlines in values,
2716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2717 eval ac_val=\$$ac_var
2721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2725 _ | IFS | as_nl) ;; #(
2726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2727 *) { eval $ac_var=; unset $ac_var;} ;;
2732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2733 *${as_nl}ac_space=\ *)
2735 "s/'\''/'\''\\\\'\'''\''/g;
2736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2747 ## ----------------- ##
2748 ## Output variables. ##
2749 ## ----------------- ##
2752 for ac_var in $ac_subst_vars
2754 eval ac_val=\$$ac_var
2756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2758 $as_echo "$ac_var='\''$ac_val'\''"
2762 if test -n "$ac_subst_files"; then
2764 ## ------------------- ##
2765 ## File substitutions. ##
2766 ## ------------------- ##
2769 for ac_var in $ac_subst_files
2771 eval ac_val=\$$ac_var
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 $as_echo "$ac_var='\''$ac_val'\''"
2780 if test -s confdefs.h; then
2790 test "$ac_signal" != 0 &&
2791 $as_echo "$as_me: caught signal $ac_signal"
2792 $as_echo "$as_me: exit $exit_status"
2794 rm -f core *.core core.conftest.* &&
2795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2798 for ac_signal in 1 2 13 15; do
2799 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2804 rm -f -r conftest* confdefs.h
2806 $as_echo "/* confdefs.h */" > confdefs.h
2808 # Predefined preprocessor variables.
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_NAME "$PACKAGE_NAME"
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_STRING "$PACKAGE_STRING"
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_URL "$PACKAGE_URL"
2835 # Let the site file select an alternate cache file if it wants to.
2836 # Prefer an explicitly selected file to automatically selected ones.
2839 if test -n "$CONFIG_SITE"; then
2840 ac_site_file1=$CONFIG_SITE
2841 elif test "x$prefix" != xNONE; then
2842 ac_site_file1=$prefix/share/config.site
2843 ac_site_file2=$prefix/etc/config.site
2845 ac_site_file1=$ac_default_prefix/share/config.site
2846 ac_site_file2=$ac_default_prefix/etc/config.site
2848 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2850 test "x$ac_site_file" = xNONE && continue
2851 if test -r "$ac_site_file"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2853 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2854 sed 's/^/| /' "$ac_site_file" >&5
2859 if test -r "$cache_file"; then
2860 # Some versions of bash will fail to source /dev/null (special
2861 # files actually), so we avoid doing that.
2862 if test -f "$cache_file"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2864 $as_echo "$as_me: loading cache $cache_file" >&6;}
2866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2867 *) . "./$cache_file";;
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2872 $as_echo "$as_me: creating cache $cache_file" >&6;}
2876 # Check that the precious variables saved in the cache have kept the same
2878 ac_cache_corrupted=false
2879 for ac_var in $ac_precious_vars; do
2880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2881 eval ac_new_set=\$ac_env_${ac_var}_set
2882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2883 eval ac_new_val=\$ac_env_${ac_var}_value
2884 case $ac_old_set,$ac_new_set in
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2888 ac_cache_corrupted=: ;;
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2892 ac_cache_corrupted=: ;;
2895 if test "x$ac_old_val" != "x$ac_new_val"; then
2896 # differences in whitespace do not lead to failure.
2897 ac_old_val_w=`echo x $ac_old_val`
2898 ac_new_val_w=`echo x $ac_new_val`
2899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2902 ac_cache_corrupted=:
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2906 eval $ac_var=\$ac_old_val
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2909 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2914 # Pass precious variables to config.status.
2915 if test "$ac_new_set" = set; then
2917 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2918 *) ac_arg=$ac_var=$ac_new_val ;;
2920 case " $ac_configure_args " in
2921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2922 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2926 if $ac_cache_corrupted; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2930 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2931 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2933 ## -------------------- ##
2934 ## Main body of script. ##
2935 ## -------------------- ##
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2952 for ac_t in install-sh install.sh shtool; do
2953 if test -f "$ac_dir/$ac_t"; then
2955 ac_install_sh="$ac_aux_dir/$ac_t -c"
2960 if test -z "$ac_aux_dir"; then
2961 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2964 # These three variables are undocumented and unsupported,
2965 # and are intended to be withdrawn in a future Autoconf release.
2966 # They can cause serious problems if a builder's source tree is in a directory
2967 # whose full name contains unusual characters.
2968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2973 # Make sure we can run config.sub.
2974 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2975 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2978 $as_echo_n "checking build system type... " >&6; }
2979 if test "${ac_cv_build+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2982 ac_build_alias=$build_alias
2983 test "x$ac_build_alias" = x &&
2984 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2985 test "x$ac_build_alias" = x &&
2986 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2987 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2988 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2992 $as_echo "$ac_cv_build" >&6; }
2993 case $ac_cv_build in
2995 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2998 ac_save_IFS=$IFS; IFS='-'
3004 # Remember, the first character of IFS is used to create $*,
3005 # except with old shells:
3008 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3011 case ${build_alias} in
3012 "") build_noncanonical=${build} ;;
3013 *) build_noncanonical=${build_alias} ;;
3016 case ${host_alias} in
3017 "") host_noncanonical=${build_noncanonical} ;;
3018 *) host_noncanonical=${host_alias} ;;
3021 case ${target_alias} in
3022 "") target_noncanonical=${host_noncanonical} ;;
3023 *) target_noncanonical=${target_alias} ;;
3027 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3028 # have matching libraries, they should use host libraries: Makefile.tpl
3029 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3030 # However, they still use the build modules, because the corresponding
3031 # host modules (e.g. bison) are only built for the host when bootstrap
3033 # - build_subdir is where we find build modules, and never changes.
3034 # - build_libsubdir is where we find build libraries, and can be overridden.
3036 # Prefix 'build-' so this never conflicts with target_subdir.
3037 build_subdir="build-${build_noncanonical}"
3039 # Check whether --with-build-libsubdir was given.
3040 if test "${with_build_libsubdir+set}" = set; then :
3041 withval=$with_build_libsubdir; build_libsubdir="$withval"
3043 build_libsubdir="$build_subdir"
3046 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3047 if ( test $srcdir = . && test -d gcc ) \
3048 || test -d $srcdir/../host-${host_noncanonical}; then
3049 host_subdir="host-${host_noncanonical}"
3054 target_subdir=${target_noncanonical}
3057 # We use these options to decide which functions to include.
3059 # Check whether --with-target-subdir was given.
3060 if test "${with_target_subdir+set}" = set; then :
3061 withval=$with_target_subdir;
3065 # We may get other options which we don't document:
3066 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3068 # Find the rest of the source tree framework.
3069 # Default to --enable-multilib
3070 # Check whether --enable-multilib was given.
3071 if test "${enable_multilib+set}" = set; then :
3072 enableval=$enable_multilib; case "$enableval" in
3073 yes) multilib=yes ;;
3075 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3082 # We may get other options which we leave undocumented:
3083 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3084 # See config-ml.in if you want the gory details.
3086 if test "$srcdir" = "."; then
3087 if test "$with_target_subdir" != "."; then
3088 multi_basedir="$srcdir/$with_multisrctop../.."
3090 multi_basedir="$srcdir/$with_multisrctop.."
3093 multi_basedir="$srcdir/.."
3097 # Even if the default multilib is not a cross compilation,
3098 # it may be that some of the other multilibs are.
3099 if test $cross_compiling = no && test $multilib = yes \
3100 && test "x${with_multisubdir}" != x ; then
3101 cross_compiling=maybe
3104 ac_config_commands="$ac_config_commands default-1"
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3108 $as_echo_n "checking host system type... " >&6; }
3109 if test "${ac_cv_host+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3112 if test "x$host_alias" = x; then
3113 ac_cv_host=$ac_cv_build
3115 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3116 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3121 $as_echo "$ac_cv_host" >&6; }
3124 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3127 ac_save_IFS=$IFS; IFS='-'
3133 # Remember, the first character of IFS is used to create $*,
3134 # except with old shells:
3137 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3141 $as_echo_n "checking target system type... " >&6; }
3142 if test "${ac_cv_target+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3145 if test "x$target_alias" = x; then
3146 ac_cv_target=$ac_cv_host
3148 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3149 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3154 $as_echo "$ac_cv_target" >&6; }
3155 case $ac_cv_target in
3157 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3159 target=$ac_cv_target
3160 ac_save_IFS=$IFS; IFS='-'
3166 # Remember, the first character of IFS is used to create $*,
3167 # except with old shells:
3170 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3173 # The aliases save the names the user supplied, while $host etc.
3174 # will get canonicalized.
3175 test -n "$target_alias" &&
3176 test "$program_prefix$program_suffix$program_transform_name" = \
3178 program_prefix=${target_alias}-
3180 case ${build_alias} in
3181 "") build_noncanonical=${build} ;;
3182 *) build_noncanonical=${build_alias} ;;
3185 case ${target_alias} in
3186 "") target_noncanonical=${host_noncanonical} ;;
3187 *) target_noncanonical=${target_alias} ;;
3193 # This works around the fact that libtool configuration may change LD
3194 # for this particular configuration, but some shells, instead of
3195 # keeping the changes in LD private, export them just because LD is
3197 ORIGINAL_LD_FOR_MULTILIBS=$LD
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3200 $as_echo_n "checking whether ln -s works... " >&6; }
3202 if test "$LN_S" = "ln -s"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3207 $as_echo "no, using $LN_S" >&6; }
3211 # This works around an automake problem.
3212 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3216 # Check whether --with-cross-host was given.
3217 if test "${with_cross_host+set}" = set; then :
3218 withval=$with_cross_host;
3223 # Check whether --with-newlib was given.
3224 if test "${with_newlib+set}" = set; then :
3225 withval=$with_newlib;
3229 # Check whether --enable-version-specific-runtime-libs was given.
3230 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3231 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3232 yes) version_specific_libs=yes ;;
3233 no) version_specific_libs=no ;;
3234 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3237 version_specific_libs=no
3242 # Check whether --enable-browser-plugin was given.
3243 if test "${enable_browser_plugin+set}" = set; then :
3244 enableval=$enable_browser_plugin; case "$enableval" in
3245 yes) browser_plugin_enabled=yes ;;
3246 no) browser_plugin_enabled=no ;;
3247 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3250 browser_plugin_enabled=no
3255 # Check whether --enable-gconf-peer was given.
3256 if test "${enable_gconf_peer+set}" = set; then :
3257 enableval=$enable_gconf_peer; case "$enableval" in
3258 yes) gconf_enabled=yes ;;
3259 no) gconf_enabled=no ;;
3260 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3269 # Check whether --with-antlr-jar was given.
3270 if test "${with_antlr_jar+set}" = set; then :
3271 withval=$with_antlr_jar;
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3282 $as_echo_n "checking for antlr.jar... " >&6; }
3283 if test "x$ANTLR_JAR" = x; then
3284 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3285 /usr/share/antlr/lib /usr/share/java /usr/lib;
3287 if test -f "$antlr_lib_home/antlr.jar"; then
3288 # FIXME: version check for antlr needed without using a VM
3289 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3293 if test "x$ANTLR_JAR" = x; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3295 $as_echo "not found" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3298 $as_echo "$ANTLR_JAR" >&6; }
3301 if test -f "${ANTLR_JAR}"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3303 $as_echo "$ANTLR_JAR" >&6; }
3305 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3310 # Check whether --enable-gjdoc was given.
3311 if test "${enable_gjdoc+set}" = set; then :
3312 enableval=$enable_gjdoc; case "${enableval}" in
3313 yes) BUILD_GJDOC=yes ;;
3314 no) BUILD_GJDOC=no ;;
3315 *) BUILD_GJDOC=yes ;;
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3323 $as_echo_n "checking whether to build gjdoc... " >&6; }
3324 if test "x$BUILD_GJDOC" = xmaybe; then
3325 if test -f "${ANTLR_JAR}"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3332 $as_echo "no, antlr.jar not found" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3336 $as_echo "$BUILD_GJDOC" >&6; }
3338 if test "x${BUILD_GJDOC}" = xyes; then
3340 CREATE_GJDOC_FALSE='#'
3342 CREATE_GJDOC_TRUE='#'
3347 # Check whether --enable-java-maintainer-mode was given.
3348 if test "${enable_java_maintainer_mode+set}" = set; then :
3349 enableval=$enable_java_maintainer_mode;
3352 if test "$enable_java_maintainer_mode" = yes; then
3353 JAVA_MAINTAINER_MODE_TRUE=
3354 JAVA_MAINTAINER_MODE_FALSE='#'
3356 JAVA_MAINTAINER_MODE_TRUE='#'
3357 JAVA_MAINTAINER_MODE_FALSE=
3361 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3364 # For libstdc++-v3, -fno-builtin must be present here so that a
3365 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3366 # used in later tests. This may not be necessary in libjava; I don't know.
3367 save_CXXFLAGS="$CXXFLAGS"
3368 CXXFLAGS="$CXXFLAGS -fno-builtin"
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3413 if test -z "$ac_cv_prog_CC"; then
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_ac_ct_CC="gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3451 if test "x$ac_ct_CC" = x; then
3454 case $cross_compiling:$ac_tool_warned in
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3507 if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527 ac_prog_rejected=yes
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test $ac_prog_rejected = yes; then
3539 # We found a bogon in the path, so make sure we never use it.
3540 set dummy $ac_cv_prog_CC
3542 if test $# != 0; then
3543 # We chose a different compiler from the bogus one.
3544 # However, it has the same basename, so the bogon will be chosen
3545 # first if we set CC to just the basename; use the full file name.
3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in cl.exe
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 if test -n "$CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$CC" && break
3607 if test -z "$CC"; then
3609 for ac_prog in cl.exe
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_ac_ct_CC="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$ac_ct_CC" && break
3651 if test "x$ac_ct_CC" = x; then
3654 case $cross_compiling:$ac_tool_warned in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details." "$LINENO" 5; }
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3676 for ac_option in --version -v -V -qversion; do
3677 { { ac_try="$ac_compiler $ac_option >&5"
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3686 if test -s conftest.err; then
3688 ... rest of stderr output deleted ...
3689 10q' conftest.err >conftest.er1
3690 cat conftest.er1 >&5
3691 rm -f conftest.er1 conftest.err
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3710 (eval $ac_link) 2>&5
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3718 if test x$gcc_no_link = xyes; then
3719 # Setting cross_compile will disable run tests; it will
3720 # also disable AC_CHECK_FILE but that's generally
3721 # correct if we can't link.
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3736 ac_clean_files_save=$ac_clean_files
3737 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3738 # Try to create an executable without -o first, disregard a.out.
3739 # It will help us diagnose broken compilers, and finding out an intuition
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3742 $as_echo_n "checking for C compiler default output file name... " >&6; }
3743 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3745 # The possible output files:
3746 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3749 for ac_file in $ac_files
3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3758 if { { ac_try="$ac_link_default"
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_link_default") 2>&5
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }; then :
3769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3770 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3771 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3772 # so that the user can short-circuit this test for compilers unknown to
3774 for ac_file in $ac_files ''
3776 test -f "$ac_file" || continue
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3781 # We found the default executable, but exeext='' is most
3785 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789 # We set ac_cv_exeext here because the later test for it is not
3790 # safe: cross compilers may not add the suffix if given an `-o'
3791 # argument, so we may need to know it at that point already.
3792 # Even if this section looks crufty: it has the advantage of
3799 test "$ac_cv_exeext" = no && ac_cv_exeext=
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3805 $as_echo "$ac_file" >&6; }
3806 if test -z "$ac_file"; then :
3807 $as_echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 { as_fn_set_status 77
3813 as_fn_error "C compiler cannot create executables
3814 See \`config.log' for more details." "$LINENO" 5; }; }
3816 ac_exeext=$ac_cv_exeext
3818 # Check that the compiler produces executables we can run. If not, either
3819 # the compiler is broken, or we cross compile.
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3821 $as_echo_n "checking whether the C compiler works... " >&6; }
3822 # If not cross compiling, check that we can run a simple program.
3823 if test "$cross_compiling" != yes; then
3824 if { ac_try='./$ac_file'
3825 { { case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_try") 2>&5
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; }; then
3837 if test "$cross_compiling" = maybe; then
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error "cannot run C compiled programs.
3843 If you meant to cross compile, use \`--host'.
3844 See \`config.log' for more details." "$LINENO" 5; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849 $as_echo "yes" >&6; }
3851 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3852 ac_clean_files=$ac_clean_files_save
3853 # Check that the compiler produces executables we can run. If not, either
3854 # the compiler is broken, or we cross compile.
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3856 $as_echo_n "checking whether we are cross compiling... " >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3858 $as_echo "$cross_compiling" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3861 $as_echo_n "checking for suffix of executables... " >&6; }
3862 if { { ac_try="$ac_link"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_link") 2>&5
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; then :
3873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3874 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3875 # work properly (i.e., refer to `conftest.exe'), while it won't with
3877 for ac_file in conftest.exe conftest conftest.*; do
3878 test -f "$ac_file" || continue
3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot compute suffix of executables: cannot compile and link
3890 See \`config.log' for more details." "$LINENO" 5; }
3892 rm -f conftest$ac_cv_exeext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3894 $as_echo "$ac_cv_exeext" >&6; }
3896 rm -f conftest.$ac_ext
3897 EXEEXT=$ac_cv_exeext
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3901 $as_echo_n "checking for suffix of object files... " >&6; }
3902 if test "${ac_cv_objext+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3916 rm -f conftest.o conftest.obj
3917 if { { ac_try="$ac_compile"
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_compile") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; then :
3928 for ac_file in conftest.o conftest.obj conftest.*; do
3929 test -f "$ac_file" || continue;
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3937 $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot compute suffix of object files: cannot compile
3943 See \`config.log' for more details." "$LINENO" 5; }
3945 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3948 $as_echo "$ac_cv_objext" >&6; }
3949 OBJEXT=$ac_cv_objext
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3952 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3953 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3970 if ac_fn_c_try_compile "$LINENO"; then :
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981 if test $ac_compiler_gnu = yes; then
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3990 if test "${ac_cv_prog_cc_g+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4008 if ac_fn_c_try_compile "$LINENO"; then :
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4023 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4050 $as_echo "$ac_cv_prog_cc_g" >&6; }
4051 if test "$ac_test_CFLAGS" = set; then
4052 CFLAGS=$ac_save_CFLAGS
4053 elif test $ac_cv_prog_cc_g = yes; then
4054 if test "$GCC" = yes; then
4060 if test "$GCC" = yes; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4067 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4068 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4071 ac_cv_prog_cc_c89=no
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 #include <sys/types.h>
4078 #include <sys/stat.h>
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4093 s = g (p, va_arg (v,int));
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4099 function prototypes and stuff, but not '\xHH' hex character constants.
4100 These don't provoke an error unfortunately, instead are silently treated
4101 as 'x'. The following induces an error, until -std is added to get
4102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4103 array size at least. It's necessary to write '\x00'==0 to get something
4104 that's true only with -std. */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108 inside strings and character constants. */
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_c89=$ac_arg
4133 rm -f core conftest.err conftest.$ac_objext
4134 test "x$ac_cv_prog_cc_c89" != "xno" && break
4136 rm -f conftest.$ac_ext
4141 case "x$ac_cv_prog_cc_c89" in
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;;
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147 $as_echo "unsupported" >&6; } ;;
4149 CC="$CC $ac_cv_prog_cc_c89"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4153 if test "x$ac_cv_prog_cc_c89" != xno; then :
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 ac_cpp='$CXXCPP $CPPFLAGS'
4165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4168 if test -z "$CXX"; then
4169 if test -n "$CCC"; then
4172 if test -n "$ac_tool_prefix"; then
4173 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if test "${ac_cv_prog_CXX+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4182 if test -n "$CXX"; then
4183 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CXX"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4205 $as_echo "$CXX" >&6; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4212 test -n "$CXX" && break
4215 if test -z "$CXX"; then
4217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4219 # Extract the first word of "$ac_prog", so it can be a program name with args.
4220 set dummy $ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$ac_ct_CXX"; then
4227 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_ac_ct_CXX="$ac_prog"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4247 if test -n "$ac_ct_CXX"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4249 $as_echo "$ac_ct_CXX" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4256 test -n "$ac_ct_CXX" && break
4259 if test "x$ac_ct_CXX" = x; then
4262 case $cross_compiling:$ac_tool_warned in
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4274 # Provide some information about the compiler.
4275 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4278 for ac_option in --version -v -V -qversion; do
4279 { { ac_try="$ac_compiler $ac_option >&5"
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4288 if test -s conftest.err; then
4290 ... rest of stderr output deleted ...
4291 10q' conftest.err >conftest.er1
4292 cat conftest.er1 >&5
4293 rm -f conftest.er1 conftest.err
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4300 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4301 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4318 if ac_fn_cxx_try_compile "$LINENO"; then :
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4328 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4329 if test $ac_compiler_gnu = yes; then
4334 ac_test_CXXFLAGS=${CXXFLAGS+set}
4335 ac_save_CXXFLAGS=$CXXFLAGS
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4337 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4338 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4341 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4342 ac_cxx_werror_flag=yes
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4356 if ac_fn_cxx_try_compile "$LINENO"; then :
4357 ac_cv_prog_cxx_g=yes
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4371 if ac_fn_cxx_try_compile "$LINENO"; then :
4374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4387 if ac_fn_cxx_try_compile "$LINENO"; then :
4388 ac_cv_prog_cxx_g=yes
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4398 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4399 if test "$ac_test_CXXFLAGS" = set; then
4400 CXXFLAGS=$ac_save_CXXFLAGS
4401 elif test $ac_cv_prog_cxx_g = yes; then
4402 if test "$GXX" = yes; then
4408 if test "$GXX" = yes; then
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 CXXFLAGS="$save_CXXFLAGS"
4422 am__api_version='1.11'
4424 # Find a good install program. We prefer a C program (faster),
4425 # so one script is as good as another. But avoid the broken or
4426 # incompatible versions:
4427 # SysV /etc/install, /usr/sbin/install
4428 # SunOS /usr/etc/install
4429 # IRIX /sbin/install
4431 # AmigaOS /C/install, which installs bootblocks on floppy discs
4432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4435 # OS/2's system install, which has a completely different semantic
4436 # ./install, which can be erroneously created by make from ./install.sh.
4437 # Reject install programs that cannot install multiple files.
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4440 if test -z "$INSTALL"; then
4441 if test "${ac_cv_path_install+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 # Account for people who put trailing slashes in PATH elements.
4450 case $as_dir/ in #((
4451 ./ | .// | /[cC]/* | \
4452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4456 # OSF1 and SCO ODT 3.0 have their own names for install.
4457 # Don't use installbsd from OSF since it installs stuff as root
4459 for ac_prog in ginstall scoinst install; do
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4462 if test $ac_prog = install &&
4463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4464 # AIX install. It has an incompatible calling convention.
4466 elif test $ac_prog = install &&
4467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4468 # program-specific install script used by HP pwplus--don't use.
4471 rm -rf conftest.one conftest.two conftest.dir
4472 echo one > conftest.one
4473 echo two > conftest.two
4475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4476 test -s conftest.one && test -s conftest.two &&
4477 test -s conftest.dir/conftest.one &&
4478 test -s conftest.dir/conftest.two
4480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4493 rm -rf conftest.one conftest.two conftest.dir
4496 if test "${ac_cv_path_install+set}" = set; then
4497 INSTALL=$ac_cv_path_install
4499 # As a last resort, use the slow shell script. Don't cache a
4500 # value for INSTALL within a source directory, because that will
4501 # break other packages using the cache if that directory is
4502 # removed, or if the value is a relative name.
4503 INSTALL=$ac_install_sh
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4507 $as_echo "$INSTALL" >&6; }
4509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4510 # It thinks the first close brace ends the variable substitution.
4511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4518 $as_echo_n "checking whether build environment is sane... " >&6; }
4521 echo timestamp > conftest.file
4522 # Reject unsafe characters in $srcdir or the absolute working directory
4523 # name. Accept space and tab only in the latter.
4527 *[\\\"\#\$\&\'\`$am_lf]*)
4528 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4532 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4535 # Do `set' in a subshell so we don't clobber the current shell's
4536 # arguments. Must try -L first in case configure is actually a
4537 # symlink; some systems play weird games with the mod time of symlinks
4538 # (eg FreeBSD returns the mod time of the symlink's containing
4541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4542 if test "$*" = "X"; then
4544 set X `ls -t "$srcdir/configure" conftest.file`
4547 if test "$*" != "X $srcdir/configure conftest.file" \
4548 && test "$*" != "X conftest.file $srcdir/configure"; then
4550 # If neither matched, then we have a broken ls. This can happen
4551 # if, for instance, CONFIG_SHELL is bash and it inherits a
4552 # broken ls alias from the environment. This has actually
4553 # happened. Such a system could not be considered "sane".
4554 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4555 alias in your environment" "$LINENO" 5
4558 test "$2" = conftest.file
4564 as_fn_error "newly created file is older than distributed files!
4565 Check your system clock" "$LINENO" 5
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568 $as_echo "yes" >&6; }
4569 test "$program_prefix" != NONE &&
4570 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4571 # Use a double $ so make ignores it.
4572 test "$program_suffix" != NONE &&
4573 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4574 # Double any \ or $.
4575 # By default was `s,x,x', remove it if useless.
4576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4577 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4579 # expand $ac_aux_dir to an absolute path
4580 am_aux_dir=`cd $ac_aux_dir && pwd`
4582 if test x"${MISSING+set}" != xset; then
4585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4587 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4590 # Use eval to expand $SHELL
4591 if eval "$MISSING --run true"; then
4592 am_missing_run="$MISSING --run "
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4596 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4599 if test x"${install_sh}" != xset; then
4602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4604 install_sh="\${SHELL} $am_aux_dir/install-sh"
4608 # Installed binaries are usually stripped using `strip' when the user
4609 # run `make install-strip'. However `strip' might not be the right
4610 # tool to use in cross-compilation environments, therefore Automake
4611 # will honor the `STRIP' environment variable to overrule this program.
4612 if test "$cross_compiling" != no; then
4613 if test -n "$ac_tool_prefix"; then
4614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4615 set dummy ${ac_tool_prefix}strip; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_STRIP+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4621 if test -n "$STRIP"; then
4622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 STRIP=$ac_cv_prog_STRIP
4642 if test -n "$STRIP"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4644 $as_echo "$STRIP" >&6; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4652 if test -z "$ac_cv_prog_STRIP"; then
4654 # Extract the first word of "strip", so it can be a program name with args.
4655 set dummy strip; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4661 if test -n "$ac_ct_STRIP"; then
4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_ac_ct_STRIP="strip"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682 if test -n "$ac_ct_STRIP"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4684 $as_echo "$ac_ct_STRIP" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4690 if test "x$ac_ct_STRIP" = x; then
4693 case $cross_compiling:$ac_tool_warned in
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4697 ac_tool_warned=yes ;;
4702 STRIP="$ac_cv_prog_STRIP"
4706 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4709 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4710 if test -z "$MKDIR_P"; then
4711 if test "${ac_cv_path_mkdir+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4718 test -z "$as_dir" && as_dir=.
4719 for ac_prog in mkdir gmkdir; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4723 'mkdir (GNU coreutils) '* | \
4724 'mkdir (coreutils) '* | \
4725 'mkdir (fileutils) '4.1*)
4726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4736 if test "${ac_cv_path_mkdir+set}" = set; then
4737 MKDIR_P="$ac_cv_path_mkdir -p"
4739 # As a last resort, use the slow shell script. Don't cache a
4740 # value for MKDIR_P within a source directory, because that will
4741 # break other packages using the cache if that directory is
4742 # removed, or if the value is a relative name.
4743 test -d ./--version && rmdir ./--version
4744 MKDIR_P="$ac_install_sh -d"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4748 $as_echo "$MKDIR_P" >&6; }
4752 [\\/$]* | ?:[\\/]*) ;;
4753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4756 for ac_prog in gawk mawk nawk awk
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if test "${ac_cv_prog_AWK+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -n "$AWK"; then
4766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_prog_AWK="$ac_prog"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 if test -n "$AWK"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4788 $as_echo "$AWK" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4795 test -n "$AWK" && break
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4803 $as_echo_n "(cached) " >&6
4805 cat >conftest.make <<\_ACEOF
4808 @echo '@@@%%%=$(MAKE)=@@@%%%'
4810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4813 eval ac_cv_prog_make_${ac_make}_set=yes;;
4815 eval ac_cv_prog_make_${ac_make}_set=no;;
4819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4821 $as_echo "yes" >&6; }
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4826 SET_MAKE="MAKE=${MAKE-make}"
4829 rm -rf .tst 2>/dev/null
4830 mkdir .tst 2>/dev/null
4831 if test -d .tst; then
4836 rmdir .tst 2>/dev/null
4838 DEPDIR="${am__leading_dot}deps"
4840 ac_config_commands="$ac_config_commands depfiles"
4843 am_make=${MAKE-make}
4844 cat > confinc << 'END'
4846 @echo this is the am__doit target
4849 # If we don't find an include directive, just comment out the code.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4851 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4855 # First try GNU make style include.
4856 echo "include confinc" > confmf
4857 # Ignore all kinds of additional output from `make'.
4858 case `$am_make -s -f confmf 2> /dev/null` in #(
4859 *the\ am__doit\ target*)
4865 # Now try BSD make style include.
4866 if test "$am__include" = "#"; then
4867 echo '.include "confinc"' > confmf
4868 case `$am_make -s -f confmf 2> /dev/null` in #(
4869 *the\ am__doit\ target*)
4870 am__include=.include
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4879 $as_echo "$_am_result" >&6; }
4880 rm -f confinc confmf
4882 # Check whether --enable-dependency-tracking was given.
4883 if test "${enable_dependency_tracking+set}" = set; then :
4884 enableval=$enable_dependency_tracking;
4887 if test "x$enable_dependency_tracking" != xno; then
4888 am_depcomp="$ac_aux_dir/depcomp"
4891 if test "x$enable_dependency_tracking" != xno; then
4900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4902 # is not polluted with repeated "-I."
4903 am__isrc=' -I$(srcdir)'
4904 # test to see if srcdir already configured
4905 if test -f $srcdir/config.status; then
4906 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4910 # test whether we have cygpath
4911 if test -z "$CYGPATH_W"; then
4912 if (cygpath --version) >/dev/null 2>/dev/null; then
4913 CYGPATH_W='cygpath -w'
4920 # Define the identity of the package.
4922 VERSION='version-unused'
4925 cat >>confdefs.h <<_ACEOF
4926 #define PACKAGE "$PACKAGE"
4930 cat >>confdefs.h <<_ACEOF
4931 #define VERSION "$VERSION"
4934 # Some tools Automake needs.
4936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4950 # We need awk for the "check" target. The system "awk" is bad on
4952 # Always define AMTAR for backward compatibility.
4954 AMTAR=${AMTAR-"${am_missing_run}tar"}
4956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4961 depcc="$CC" am_compiler_list=
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4964 $as_echo_n "checking dependency style of $depcc... " >&6; }
4965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4969 # We make a subdir and do the tests there. Otherwise we can end up
4970 # making bogus files that we don't know about and never remove. For
4971 # instance it was reported that on HP-UX the gcc test will end up
4972 # making a dummy file named `D' -- because `-MD' means `put the output
4975 # Copy depcomp to subdir because otherwise we won't find it if we're
4976 # using a relative directory.
4977 cp "$am_depcomp" conftest.dir
4979 # We will build objects and dependencies in a subdirectory because
4980 # it helps to detect inapplicable dependency modes. For instance
4981 # both Tru64's cc and ICC support -MD to output dependencies as a
4982 # side effect of compilation, but ICC will put the dependencies in
4983 # the current directory while Tru64 will put them in the object
4987 am_cv_CC_dependencies_compiler_type=none
4988 if test "$am_compiler_list" = ""; then
4989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4992 case " $depcc " in #(
4993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4996 for depmode in $am_compiler_list; do
4997 # Setup a source with many dependencies, because some compilers
4998 # like to wrap large dependency lists on column 80 (with \), and
4999 # we should not choose a depcomp mode which is confused by this.
5001 # We need to recreate these files for each test, as the compiler may
5002 # overwrite some of them when testing with obscure command lines.
5003 # This happens at least with the AIX C compiler.
5005 for i in 1 2 3 4 5 6; do
5006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008 # Solaris 8's {/usr,}/bin/sh.
5009 touch sub/conftst$i.h
5011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5013 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5014 # mode. It turns out that the SunPro C++ compiler does not properly
5015 # handle `-M -o', and we need to detect this. Also, some Intel
5016 # versions had trouble with output in subdirs
5017 am__obj=sub/conftest.${OBJEXT-o}
5018 am__minus_obj="-o $am__obj"
5021 # This depmode causes a compiler race in universal mode.
5022 test "$am__universal" = false || continue
5025 # after this tag, mechanisms are not by side-effect, so they'll
5026 # only be used when explicitly requested
5027 if test "x$enable_dependency_tracking" = xyes; then
5033 msvisualcpp | msvcmsys)
5034 # This compiler won't grok `-c -o', but also, the minuso test has
5035 # not run yet. These depmodes are late enough in the game, and
5036 # so weak that their functioning should not be impacted.
5037 am__obj=conftest.${OBJEXT-o}
5042 if depmode=$depmode \
5043 source=sub/conftest.c object=$am__obj \
5044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5046 >/dev/null 2>conftest.err &&
5047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051 # icc doesn't choke on unknown options, it will just issue warnings
5052 # or remarks (even with -Werror). So we grep stderr for any message
5053 # that says an option was ignored or not supported.
5054 # When given -MP, icc 7.0 and 7.1 complain thusly:
5055 # icc: Command line warning: ignoring option '-M'; no argument required
5056 # The diagnosis changed in icc 8.0:
5057 # icc: Command line remark: option '-MP' not supported
5058 if (grep 'ignoring option' conftest.err ||
5059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060 am_cv_CC_dependencies_compiler_type=$depmode
5069 am_cv_CC_dependencies_compiler_type=none
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5078 test "x$enable_dependency_tracking" != xno \
5079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5081 am__fastdepCC_FALSE='#'
5083 am__fastdepCC_TRUE='#'
5084 am__fastdepCC_FALSE=
5088 depcc="$CXX" am_compiler_list=
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5091 $as_echo_n "checking dependency style of $depcc... " >&6; }
5092 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5096 # We make a subdir and do the tests there. Otherwise we can end up
5097 # making bogus files that we don't know about and never remove. For
5098 # instance it was reported that on HP-UX the gcc test will end up
5099 # making a dummy file named `D' -- because `-MD' means `put the output
5102 # Copy depcomp to subdir because otherwise we won't find it if we're
5103 # using a relative directory.
5104 cp "$am_depcomp" conftest.dir
5106 # We will build objects and dependencies in a subdirectory because
5107 # it helps to detect inapplicable dependency modes. For instance
5108 # both Tru64's cc and ICC support -MD to output dependencies as a
5109 # side effect of compilation, but ICC will put the dependencies in
5110 # the current directory while Tru64 will put them in the object
5114 am_cv_CXX_dependencies_compiler_type=none
5115 if test "$am_compiler_list" = ""; then
5116 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5119 case " $depcc " in #(
5120 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5123 for depmode in $am_compiler_list; do
5124 # Setup a source with many dependencies, because some compilers
5125 # like to wrap large dependency lists on column 80 (with \), and
5126 # we should not choose a depcomp mode which is confused by this.
5128 # We need to recreate these files for each test, as the compiler may
5129 # overwrite some of them when testing with obscure command lines.
5130 # This happens at least with the AIX C compiler.
5132 for i in 1 2 3 4 5 6; do
5133 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5134 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5135 # Solaris 8's {/usr,}/bin/sh.
5136 touch sub/conftst$i.h
5138 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5140 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5141 # mode. It turns out that the SunPro C++ compiler does not properly
5142 # handle `-M -o', and we need to detect this. Also, some Intel
5143 # versions had trouble with output in subdirs
5144 am__obj=sub/conftest.${OBJEXT-o}
5145 am__minus_obj="-o $am__obj"
5148 # This depmode causes a compiler race in universal mode.
5149 test "$am__universal" = false || continue
5152 # after this tag, mechanisms are not by side-effect, so they'll
5153 # only be used when explicitly requested
5154 if test "x$enable_dependency_tracking" = xyes; then
5160 msvisualcpp | msvcmsys)
5161 # This compiler won't grok `-c -o', but also, the minuso test has
5162 # not run yet. These depmodes are late enough in the game, and
5163 # so weak that their functioning should not be impacted.
5164 am__obj=conftest.${OBJEXT-o}
5169 if depmode=$depmode \
5170 source=sub/conftest.c object=$am__obj \
5171 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5172 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5173 >/dev/null 2>conftest.err &&
5174 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5175 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5176 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5177 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5178 # icc doesn't choke on unknown options, it will just issue warnings
5179 # or remarks (even with -Werror). So we grep stderr for any message
5180 # that says an option was ignored or not supported.
5181 # When given -MP, icc 7.0 and 7.1 complain thusly:
5182 # icc: Command line warning: ignoring option '-M'; no argument required
5183 # The diagnosis changed in icc 8.0:
5184 # icc: Command line remark: option '-MP' not supported
5185 if (grep 'ignoring option' conftest.err ||
5186 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5187 am_cv_CXX_dependencies_compiler_type=$depmode
5196 am_cv_CXX_dependencies_compiler_type=none
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5201 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5202 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5205 test "x$enable_dependency_tracking" != xno \
5206 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5207 am__fastdepCXX_TRUE=
5208 am__fastdepCXX_FALSE='#'
5210 am__fastdepCXX_TRUE='#'
5211 am__fastdepCXX_FALSE=
5217 if test -n "$ac_tool_prefix"; then
5218 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5219 set dummy ${ac_tool_prefix}as; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if test "${ac_cv_prog_AS+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$AS"; then
5226 ac_cv_prog_AS="$AS" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_AS="${ac_tool_prefix}as"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 if test -n "$AS"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5248 $as_echo "$AS" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5256 if test -z "$ac_cv_prog_AS"; then
5258 # Extract the first word of "as", so it can be a program name with args.
5259 set dummy as; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$ac_ct_AS"; then
5266 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_ac_ct_AS="as"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5286 if test -n "$ac_ct_AS"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5288 $as_echo "$ac_ct_AS" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5294 if test "x$ac_ct_AS" = x; then
5297 case $cross_compiling:$ac_tool_warned in
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}ld; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_LD+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$LD"; then
5318 ac_cv_prog_LD="$LD" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_LD="${ac_tool_prefix}ld"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 if test -n "$LD"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5340 $as_echo "$LD" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5348 if test -z "$ac_cv_prog_LD"; then
5350 # Extract the first word of "ld", so it can be a program name with args.
5351 set dummy ld; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5357 if test -n "$ac_ct_LD"; then
5358 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367 ac_cv_prog_ac_ct_LD="ld"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5378 if test -n "$ac_ct_LD"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5380 $as_echo "$ac_ct_LD" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5386 if test "x$ac_ct_LD" = x; then
5389 case $cross_compiling:$ac_tool_warned in
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5401 if test -n "$ac_tool_prefix"; then
5402 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5403 set dummy ${ac_tool_prefix}ar; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if test "${ac_cv_prog_AR+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$AR"; then
5410 ac_cv_prog_AR="$AR" # Let the user override the test.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_prog_AR="${ac_tool_prefix}ar"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 if test -n "$AR"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432 $as_echo "$AR" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5440 if test -z "$ac_cv_prog_AR"; then
5442 # Extract the first word of "ar", so it can be a program name with args.
5443 set dummy ar; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5449 if test -n "$ac_ct_AR"; then
5450 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_prog_ac_ct_AR="ar"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5470 if test -n "$ac_ct_AR"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5472 $as_echo "$ac_ct_AR" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5478 if test "x$ac_ct_AR" = x; then
5481 case $cross_compiling:$ac_tool_warned in
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5485 ac_tool_warned=yes ;;
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5501 if test -n "$RANLIB"; then
5502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 RANLIB=$ac_cv_prog_RANLIB
5522 if test -n "$RANLIB"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5524 $as_echo "$RANLIB" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5532 if test -z "$ac_cv_prog_RANLIB"; then
5533 ac_ct_RANLIB=$RANLIB
5534 # Extract the first word of "ranlib", so it can be a program name with args.
5535 set dummy ranlib; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5541 if test -n "$ac_ct_RANLIB"; then
5542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_RANLIB="ranlib"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5562 if test -n "$ac_ct_RANLIB"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5564 $as_echo "$ac_ct_RANLIB" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5570 if test "x$ac_ct_RANLIB" = x; then
5573 case $cross_compiling:$ac_tool_warned in
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577 ac_tool_warned=yes ;;
5579 RANLIB=$ac_ct_RANLIB
5582 RANLIB="$ac_cv_prog_RANLIB"
5585 if test -n "$ac_tool_prefix"; then
5586 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5587 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 if test -n "$DLLTOOL"; then
5594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 DLLTOOL=$ac_cv_prog_DLLTOOL
5614 if test -n "$DLLTOOL"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5616 $as_echo "$DLLTOOL" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5624 if test -z "$ac_cv_prog_DLLTOOL"; then
5625 ac_ct_DLLTOOL=$DLLTOOL
5626 # Extract the first word of "dlltool", so it can be a program name with args.
5627 set dummy dlltool; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 if test -n "$ac_ct_DLLTOOL"; then
5634 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5654 if test -n "$ac_ct_DLLTOOL"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5656 $as_echo "$ac_ct_DLLTOOL" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5662 if test "x$ac_ct_DLLTOOL" = x; then
5665 case $cross_compiling:$ac_tool_warned in
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5669 ac_tool_warned=yes ;;
5671 DLLTOOL=$ac_ct_DLLTOOL
5674 DLLTOOL="$ac_cv_prog_DLLTOOL"
5677 for ac_prog in gawk mawk nawk awk
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_AWK+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$AWK"; then
5687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_AWK="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 if test -n "$AWK"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5709 $as_echo "$AWK" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5716 test -n "$AWK" && break
5719 for ac_prog in jar fastjar gjar
5721 # Extract the first word of "$ac_prog", so it can be a program name with args.
5722 set dummy $ac_prog; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_JAR+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5728 if test -n "$JAR"; then
5729 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_prog_JAR="$ac_prog"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 if test -n "$JAR"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5751 $as_echo "$JAR" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5758 test -n "$JAR" && break
5760 test -n "$JAR" || JAR="no"
5762 # Extract the first word of "zip", so it can be a program name with args.
5763 set dummy zip; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if test "${ac_cv_path_ZIP+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5771 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5794 if test -n "$ZIP"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5796 $as_echo "$ZIP" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5803 # Extract the first word of "unzip", so it can be a program name with args.
5804 set dummy unzip; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_path_UNZIP+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5812 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5822 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5834 UNZIP=$ac_cv_path_UNZIP
5835 if test -n "$UNZIP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5837 $as_echo "$UNZIP" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 # We need a jar that supports -@. This is a GNU extension.
5846 if test "$JAR" != no; then
5847 rm -f config-test.jar
5848 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5849 if test -f config-test.jar; then
5850 rm -f config-test.jar
5856 # Prefer the jar we found, but fall back to our jar script.
5857 if test "$JAR" = no; then
5858 if test "$ZIP" = no; then
5859 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5861 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5862 JAR=`pwd`/scripts/jar
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5871 # Check whether --enable-maintainer-mode was given.
5872 if test "${enable_maintainer_mode+set}" = set; then :
5873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5875 USE_MAINTAINER_MODE=no
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5880 if test $USE_MAINTAINER_MODE = yes; then
5881 MAINTAINER_MODE_TRUE=
5882 MAINTAINER_MODE_FALSE='#'
5884 MAINTAINER_MODE_TRUE='#'
5885 MAINTAINER_MODE_FALSE=
5888 MAINT=$MAINTAINER_MODE_TRUE
5894 # configure.host sets the following important variables
5895 # libgcj_cflags - host specific C compiler flags
5896 # libgcj_cxxflags - host specific C++ compiler flags
5897 # libgcj_javaflags - host specific Java compiler flags
5898 # libgcj_sublib_ltflags - host specific Libtool flags
5899 # libgcj_sublib_core_extra_deps - host specific extra
5900 # dependencies for core sublib
5901 # (these last two only used when building sublibs)
5902 # and a number of others; see the list at the start of the file.
5907 libgcj_sublib_ltflags=
5908 libgcj_sublib_core_extra_deps=
5910 . ${srcdir}/configure.host
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5918 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5919 acl_cv_prog_gnu_ld=yes
5921 acl_cv_prog_gnu_ld=no
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5925 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5926 with_gnu_ld=$acl_cv_prog_gnu_ld
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5929 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5930 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5934 acl_cv_prog_gnu_ld_symbolic=no
5936 if test x"$with_gnu_ld" = x"yes"; then
5937 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5938 acl_cv_prog_gnu_ld_symbolic=yes
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5943 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5944 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5945 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5950 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5951 if test -z "$libgcj_ld_symbolic"; then
5952 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5955 LIBGCJ_CFLAGS="${libgcj_cflags}"
5956 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5957 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5958 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5959 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5960 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5961 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5970 # Only use libltdl for non-newlib builds.
5971 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5975 libname_spec='lib$name'
5983 shlibpath_overrides_runpath=unknown
5985 dynamic_linker="$host_os ld.so"
5986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5987 if test "$GCC" = yes; then
5988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5990 # if the path contains ";" then we assume it to be the separator
5991 # otherwise default to the standard path separator (i.e. ":") - it is
5992 # assumed that no part of a normal pathname contains ";" but that should
5993 # okay in the real world where ";" in dirpaths is itself problematic.
5994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6001 need_lib_prefix=unknown
6002 hardcode_into_libs=no
6004 # when you set need_version to no, make sure it does not cause -set_version
6005 # flags to be left without arguments
6006 need_version=unknown
6011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6012 shlibpath_var=LIBPATH
6014 # AIX 3 has no versioning support, so we append a major version to the name.
6015 soname_spec='${libname}${release}${shared_ext}$major'
6022 hardcode_into_libs=yes
6023 if test "$host_cpu" = ia64; then
6024 # AIX 5 supports IA64
6025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6026 shlibpath_var=LD_LIBRARY_PATH
6028 # With GCC up to 2.95.x, collect2 would create an import file
6029 # for dependence libraries. The import file would start with
6030 # the line `#! .'. This would cause the generated library to
6031 # depend on `.', always an invalid library. This was fixed in
6032 # development snapshots of GCC prior to 3.0.
6034 aix4 | aix4.[01] | aix4.[01].*)
6035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6045 # soname into executable. Probably we can add versioning support to
6046 # collect2, so additional links can be useful in future.
6047 if test "$aix_use_runtimelinking" = yes; then
6048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6049 # instead of lib<name>.a to let people know that these are not
6050 # typical AIX shared libraries.
6051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6053 # We preserve .a as extension for shared libraries through AIX4.2
6054 # and later when we are not doing run time linking.
6055 library_names_spec='${libname}${release}.a $libname.a'
6056 soname_spec='${libname}${release}${shared_ext}$major'
6058 shlibpath_var=LIBPATH
6063 library_names_spec='$libname.ixlibrary $libname.a'
6064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6065 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'
6069 library_names_spec='${libname}${shared_ext}'
6070 dynamic_linker="$host_os ld.so"
6071 shlibpath_var=LIBRARY_PATH
6077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6078 soname_spec='${libname}${release}${shared_ext}$major'
6079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6080 shlibpath_var=LD_LIBRARY_PATH
6081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6083 # the default ld.so.conf also contains /usr/contrib/lib and
6084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6085 # libtool to hard-code these into programs
6088 cygwin* | mingw* | pw32*)
6089 version_type=windows
6094 case $GCC,$host_os in
6095 yes,cygwin* | yes,mingw* | yes,pw32*)
6096 library_names_spec='$libname.dll.a'
6097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6098 postinstall_cmds='base_file=`basename \${file}`~
6099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6100 dldir=$destdir/`dirname \$dlpath`~
6101 test -d \$dldir || mkdir -p \$dldir~
6102 $install_prog $dir/$dlname \$dldir/$dlname'
6103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6104 dlpath=$dir/\$dldll~
6106 shlibpath_overrides_runpath=yes
6110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6112 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6115 # MinGW DLLs use traditional 'lib' prefix
6116 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6119 # It is most probably a Windows format PATH printed by
6120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6121 # path with ; separators, and with drive letters. We can handle the
6122 # drive letters (cygwin fileutils understands them), so leave them,
6123 # especially as we might pass files found there to a mingw objdump,
6124 # which wouldn't understand a cygwinified path. Ahh.
6125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6131 # pw32 DLLs use 'pw' prefix rather than 'lib'
6132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6138 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6141 dynamic_linker='Win32 ld.exe'
6142 # FIXME: first we should search . and the directory the executable is in
6146 darwin* | rhapsody*)
6147 dynamic_linker="$host_os dyld"
6151 # FIXME: Relying on posixy $() will cause problems for
6152 # cross-compilation, but unfortunately the echo tests do not
6153 # yet detect zsh echo's removal of \ escapes.
6154 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6155 soname_spec='${libname}${release}${major}$shared_ext'
6156 shlibpath_overrides_runpath=yes
6157 shlibpath_var=DYLD_LIBRARY_PATH
6158 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6159 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6160 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6161 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6171 soname_spec='${libname}${release}${shared_ext}$major'
6172 shlibpath_var=LD_LIBRARY_PATH
6180 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6181 version_type=freebsd-$objformat
6182 case $version_type in
6184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6193 shlibpath_var=LD_LIBRARY_PATH
6196 shlibpath_overrides_runpath=yes
6198 freebsd3.01* | freebsdelf3.01*)
6199 shlibpath_overrides_runpath=yes
6200 hardcode_into_libs=yes
6203 shlibpath_overrides_runpath=no
6204 hardcode_into_libs=yes
6213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6214 soname_spec='${libname}${release}${shared_ext}$major'
6215 shlibpath_var=LD_LIBRARY_PATH
6216 hardcode_into_libs=yes
6219 hpux9* | hpux10* | hpux11*)
6220 # Give a soname corresponding to the major version so that dld.sl refuses to
6221 # link against other versions.
6228 hardcode_into_libs=yes
6229 dynamic_linker="$host_os dld.so"
6230 shlibpath_var=LD_LIBRARY_PATH
6231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6233 soname_spec='${libname}${release}${shared_ext}$major'
6234 if test "X$HPUX_IA64_MODE" = X32; then
6235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6243 hardcode_into_libs=yes
6244 dynamic_linker="$host_os dld.sl"
6245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6248 soname_spec='${libname}${release}${shared_ext}$major'
6249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6254 dynamic_linker="$host_os dld.sl"
6255 shlibpath_var=SHLIB_PATH
6256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6258 soname_spec='${libname}${release}${shared_ext}$major'
6261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6262 postinstall_cmds='chmod 555 $lib'
6265 irix5* | irix6* | nonstopux*)
6267 nonstopux*) version_type=nonstopux ;;
6269 if test "$lt_cv_prog_gnu_ld" = yes; then
6277 soname_spec='${libname}${release}${shared_ext}$major'
6278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6280 irix5* | nonstopux*)
6284 case $LD in # libtool.m4 will add one of these switches to LD
6285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6286 libsuff= shlibsuff= libmagic=32-bit;;
6287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6288 libsuff=32 shlibsuff=N32 libmagic=N32;;
6289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6291 *) libsuff= shlibsuff= libmagic=never-match;;
6295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6296 shlibpath_overrides_runpath=no
6297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6299 hardcode_into_libs=yes
6302 # No shared lib support for Linux oldld, aout, or coff.
6303 linux*oldld* | linux*aout* | linux*coff*)
6307 # This must be Linux ELF.
6312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6313 soname_spec='${libname}${release}${shared_ext}$major'
6314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6315 shlibpath_var=LD_LIBRARY_PATH
6316 shlibpath_overrides_runpath=no
6317 # This implies no fast_install, which is unacceptable.
6318 # Some rework will be needed to allow for fast_install
6319 # before this can be enabled.
6320 hardcode_into_libs=yes
6322 # We used to test for /lib/ld.so.1 and disable shared libraries on
6323 # powerpc, because MkLinux only supported shared libraries with the
6324 # GNU dynamic linker. Since this was broken with cross compilers,
6325 # most powerpc-linux boxes support dynamic linking these days and
6326 # people can always --disable-shared, the test was removed, and we
6327 # assume the GNU/Linux dynamic linker is in use.
6328 dynamic_linker='GNU/Linux ld.so'
6335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6338 dynamic_linker='NetBSD (a.out) ld.so'
6340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6341 soname_spec='${libname}${release}${shared_ext}$major'
6342 dynamic_linker='NetBSD ld.elf_so'
6344 shlibpath_var=LD_LIBRARY_PATH
6345 shlibpath_overrides_runpath=yes
6346 hardcode_into_libs=yes
6351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6352 shlibpath_var=LD_LIBRARY_PATH
6353 shlibpath_overrides_runpath=yes
6360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6361 soname_spec='${libname}${release}${shared_ext}$major'
6362 shlibpath_var=LD_LIBRARY_PATH
6363 shlibpath_overrides_runpath=yes
6370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6372 shlibpath_var=LD_LIBRARY_PATH
6373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6375 openbsd2.[89] | openbsd2.[89].*)
6376 shlibpath_overrides_runpath=no
6379 shlibpath_overrides_runpath=yes
6383 shlibpath_overrides_runpath=yes
6388 libname_spec='$name'
6391 library_names_spec='$libname${shared_ext} $libname.a'
6392 dynamic_linker='OS/2 ld.exe'
6393 shlibpath_var=LIBPATH
6396 osf3* | osf4* | osf5*)
6400 soname_spec='${libname}${release}${shared_ext}$major'
6401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6409 soname_spec='${libname}${release}${shared_ext}$major'
6410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6411 shlibpath_var=LD_LIBRARY_PATH
6418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6419 soname_spec='${libname}${release}${shared_ext}$major'
6420 shlibpath_var=LD_LIBRARY_PATH
6421 shlibpath_overrides_runpath=yes
6422 hardcode_into_libs=yes
6423 # ldd complains unless libraries are executable
6424 postinstall_cmds='chmod +x $lib'
6429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 shlibpath_overrides_runpath=yes
6433 if test "$with_gnu_ld" = yes; then
6439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6442 soname_spec='${libname}${release}${shared_ext}$major'
6443 shlibpath_var=LD_LIBRARY_PATH
6444 case $host_vendor in
6446 shlibpath_overrides_runpath=no
6448 export_dynamic_flag_spec='${wl}-Blargedynsym'
6449 runpath_var=LD_RUN_PATH
6457 shlibpath_overrides_runpath=no
6458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6464 if test -d /usr/nec ;then
6466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6467 soname_spec='$libname${shared_ext}.$major'
6468 shlibpath_var=LD_LIBRARY_PATH
6474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6475 soname_spec='${libname}${release}${shared_ext}$major'
6476 shlibpath_var=LD_LIBRARY_PATH
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6484 $as_echo "$dynamic_linker" >&6; }
6485 test "$dynamic_linker" = no && can_build_shared=no
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6489 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6490 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6493 libltdl_cv_shlibpath_var="$shlibpath_var"
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6496 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6497 if test -n "$libltdl_cv_shlibpath_var"; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6507 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6510 # Possibly build libgcj as many sub-libraries.
6511 # Check whether --enable-libgcj-sublibs was given.
6512 if test "${enable_libgcj_sublibs+set}" = set; then :
6513 enableval=$enable_libgcj_sublibs;
6517 if test -z "$enable_libgcj_sublibs"; then
6518 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6520 if test "$enable_libgcj_sublibs" = yes; then
6522 BUILD_SUBLIBS_FALSE='#'
6524 BUILD_SUBLIBS_TRUE='#'
6525 BUILD_SUBLIBS_FALSE=
6528 if test "$enable_libgcj_sublibs" = yes ; then
6529 # In theory we could make do with only one override and simply
6530 # tag "_bc" onto the end of it when we use it to generate the
6531 # spec, but that's an ugly thing to do when there are multiple
6532 # words in the string and you're relying on the ordering to
6533 # append the correct one.
6534 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6535 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6539 # See if the user has requested runtime debugging.
6540 LIBGCJDEBUG="disable"
6542 # Check whether --enable-libgcj-debug was given.
6543 if test "${enable_libgcj_debug+set}" = set; then :
6544 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6546 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6548 LIBGCJDEBUG="enable"
6554 # Check whether --with-escher was given.
6555 if test "${with_escher+set}" = set; then :
6556 withval=$with_escher;
6559 case "$with_escher" in
6567 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6574 # Determine which AWT peer libraries to build
6575 # Check whether --enable-java-awt was given.
6576 if test "${enable_java_awt+set}" = set; then :
6577 enableval=$enable_java_awt;
6581 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6586 # The default toolkit to use is the first one specified.
6590 for peer in $peerlibs ; do
6593 if test "$no_x" = yes; then
6594 echo "*** xlib peers requested but no X library available" 1>&2
6598 if test -z "$TOOLKIT"; then
6599 TOOLKIT=gnu.awt.xlib.XToolkit
6604 if test "$no_x" = yes; then
6605 echo "*** gtk peers requested but no X library available" 1>&2
6609 if test -z "$TOOLKIT"; then
6610 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6615 if test "$no_x" = yes; then
6616 # Perhaps we should admit the possibility of embedded Qt.
6617 echo "*** Qt peers requested but no X library available" 1>&2
6621 if test -z "$TOOLKIT"; then
6622 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6628 if test -z "$TOOLKIT"; then
6629 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6640 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6645 if test "$use_xlib_awt" = yes; then
6653 if test "$use_x_awt" = yes; then
6663 cat >>confdefs.h <<_ACEOF
6664 #define AWT_TOOLKIT "$TOOLKIT"
6668 expanded_prefix=$prefix
6669 if test "X$prefix" = XNONE; then
6670 expanded_prefix=${ac_default_prefix}
6674 cat >>confdefs.h <<_ACEOF
6675 #define LIBGCJ_PREFIX "$expanded_prefix"
6679 # Create standard.omit based on decisions we just made.
6680 cp $srcdir/standard.omit.in standard.omit
6681 if test "$use_xlib_awt" != yes; then
6682 echo gnu/awt/xlib >> standard.omit
6683 echo gnu/gcj/xlib >> standard.omit
6685 if test "$use_x_awt" != yes; then
6686 echo gnu/java/awt/peer/x >> standard.omit
6689 # Tools that need to be compiled against classpath's tools classes
6690 : > vm-tools-packages
6691 for package in gnu/gcj/tools/gc_analyze ; do
6692 echo $package >> standard.omit
6693 echo $package >> vm-tools-packages
6696 if test -z "${with_multisubdir}"; then
6699 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6704 # Which gcj and host gcj (for ecjx) do we use?
6706 host_exeext=${ac_exeext}
6707 GCJ_FOR_ECJX='$(GCJ)'
6708 GCC_FOR_ECJX='$(CXX)'
6709 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6710 if test -n "${with_cross_host}"; then
6711 # We are being configured with a cross compiler. We can't
6712 # use ac_exeext, because that is for the target platform.
6715 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6716 GCC_FOR_ECJX="${with_cross_host}-gcc"
6717 case "${with_cross_host}" in
6719 cross_host_exeext=.exe
6722 host_exeext=${cross_host_exeext}
6723 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6724 if test x"$build_noncanonical" = x"$with_cross_host"; then
6725 # Ordinary cross (host!=target and host=build)
6728 # Canadian cross (host!=target and host!=build)
6735 # We are being configured with a native or crossed-native compiler
6736 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6737 if test x"$build" = x"$host"; then
6738 # True native build (host=target and host=build)
6741 # Crossed-native build (host=target and host!=build)
6748 libgcjdir=`${PWDCMD-pwd}`
6751 # Just in case there is a comma in the build dir, quote it for the
6752 # sed command below.
6754 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6755 *) qlibgcjdir=$libgcjdir;;
6757 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6760 GCJ=$GCJ" -B$libgcjdir/"
6763 case "${which_gcj}" in
6765 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6768 if test "x${with_newlib}" = "xyes"; then
6769 # FIXME (comment): Why is this needed?
6772 GCJH='$(target_noncanonical)-gcjh'
6786 # Create it, so that compile/link tests don't fail
6787 test -f libgcj.spec || touch libgcj.spec
6791 # Set up to configure Classpath.
6792 # FIXME: no supported way to pass args in autoconf.
6793 # Disable tool wrappers to avoid ltdl.h configure check.
6794 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6795 ac_configure_args="$ac_configure_args --disable-load-library"
6796 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6797 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6798 dir1=`cd $srcdir && pwd`
6800 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6801 ac_configure_args="$ac_configure_args --disable-core-jni"
6802 ac_configure_args="$ac_configure_args --disable-examples"
6803 ac_configure_args="$ac_configure_args --with-glibj=build"
6804 if test "$browser_plugin_enabled" != yes; then
6805 ac_configure_args="$ac_configure_args --disable-plugin"
6807 ac_configure_args="$ac_configure_args --enable-plugin"
6809 if test "$gconf_enabled" != yes; then
6810 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6811 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6813 if test "$use_gtk_awt" != yes; then
6814 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6816 if test "$use_qt_awt" != yes; then
6817 ac_configure_args="$ac_configure_args --disable-qt-peer"
6819 # We need this as qt is disabled by default in classpath.
6820 ac_configure_args="$ac_configure_args --enable-qt-peer"
6822 if test "$use_x_awt" != yes; then
6823 ac_configure_args="$ac_configure_args --without-escher"
6825 # We need this as escher is disabled by default in classpath.
6826 if test "$use_escher" != true; then
6827 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6829 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6832 if test "x$BUILD_GJDOC" = xno; then
6833 ac_configure_args="$ac_configure_args --disable-gjdoc"
6835 # -Werror causes unavoidable problems in code using alsa.
6836 ac_configure_args="$ac_configure_args --disable-regen-headers"
6837 ac_configure_args="$ac_configure_args --disable-Werror"
6839 # Only use libltdl for non-newlib builds.
6840 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6841 case $enable_ltdl_convenience in
6842 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6843 "") enable_ltdl_convenience=yes
6844 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6846 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6847 LTDLINCL='-I${top_srcdir}/''libltdl'
6848 # For backwards non-gettext consistent compatibility...
6857 $as_echo "#define USE_LTDL 1" >>confdefs.h
6859 # Sigh. Libtool's macro doesn't do the right thing.
6860 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6861 # FIXME: this is a hack.
6862 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6863 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6871 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6876 macro_version='2.2.7a'
6877 macro_revision='1.3134'
6891 ltmain="$ac_aux_dir/ltmain.sh"
6893 # Backslashify metacharacters that are still active within
6894 # double-quoted strings.
6895 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6897 # Same as above, but do not quote variable references.
6898 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6900 # Sed substitution to delay expansion of an escaped shell variable in a
6901 # double_quote_subst'ed string.
6902 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6904 # Sed substitution to delay expansion of an escaped single quote.
6905 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6907 # Sed substitution to avoid accidental globbing in evaled expressions
6908 no_glob_subst='s/\*/\\\*/g'
6910 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6911 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6915 $as_echo_n "checking how to print strings... " >&6; }
6916 # Test print first, because it will be a builtin if present.
6917 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6918 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6920 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6923 # Use this function as a fallback that always works.
6924 func_fallback_echo ()
6926 eval 'cat <<_LTECHO_EOF
6930 ECHO='func_fallback_echo'
6933 # func_echo_all arg...
6934 # Invoke $ECHO with all args, space-separated.
6941 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6942 $as_echo "printf" >&6; } ;;
6943 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6944 $as_echo "print -r" >&6; } ;;
6945 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6946 $as_echo "cat" >&6; } ;;
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6963 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6964 if test "${ac_cv_path_SED+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
6967 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6968 for ac_i in 1 2 3 4 5 6 7; do
6969 ac_script="$ac_script$as_nl$ac_script"
6971 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6972 { ac_script=; unset ac_script;}
6973 if test -z "$SED"; then
6974 ac_path_SED_found=false
6975 # Loop through the user's path and test for each of PROGNAME-LIST
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_prog in sed gsed; do
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6984 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6985 # Check for GNU ac_path_SED and select it if it is found.
6986 # Check for GNU $ac_path_SED
6987 case `"$ac_path_SED" --version 2>&1` in
6989 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6992 $as_echo_n 0123456789 >"conftest.in"
6995 cat "conftest.in" "conftest.in" >"conftest.tmp"
6996 mv "conftest.tmp" "conftest.in"
6997 cp "conftest.in" "conftest.nl"
6998 $as_echo '' >> "conftest.nl"
6999 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7001 as_fn_arith $ac_count + 1 && ac_count=$as_val
7002 if test $ac_count -gt ${ac_path_SED_max-0}; then
7003 # Best one so far, save it but keep looking for a better one
7004 ac_cv_path_SED="$ac_path_SED"
7005 ac_path_SED_max=$ac_count
7007 # 10*(2^10) chars as input seems more than enough
7008 test $ac_count -gt 10 && break
7010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7013 $ac_path_SED_found && break 3
7018 if test -z "$ac_cv_path_SED"; then
7019 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7027 $as_echo "$ac_cv_path_SED" >&6; }
7028 SED="$ac_cv_path_SED"
7031 test -z "$SED" && SED=sed
7032 Xsed="$SED -e 1s/^X//"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7046 if test "${ac_cv_path_GREP+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7049 if test -z "$GREP"; then
7050 ac_path_GREP_found=false
7051 # Loop through the user's path and test for each of PROGNAME-LIST
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7056 test -z "$as_dir" && as_dir=.
7057 for ac_prog in grep ggrep; do
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7061 # Check for GNU ac_path_GREP and select it if it is found.
7062 # Check for GNU $ac_path_GREP
7063 case `"$ac_path_GREP" --version 2>&1` in
7065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7068 $as_echo_n 0123456789 >"conftest.in"
7071 cat "conftest.in" "conftest.in" >"conftest.tmp"
7072 mv "conftest.tmp" "conftest.in"
7073 cp "conftest.in" "conftest.nl"
7074 $as_echo 'GREP' >> "conftest.nl"
7075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7077 as_fn_arith $ac_count + 1 && ac_count=$as_val
7078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7079 # Best one so far, save it but keep looking for a better one
7080 ac_cv_path_GREP="$ac_path_GREP"
7081 ac_path_GREP_max=$ac_count
7083 # 10*(2^10) chars as input seems more than enough
7084 test $ac_count -gt 10 && break
7086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7089 $ac_path_GREP_found && break 3
7094 if test -z "$ac_cv_path_GREP"; then
7095 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7098 ac_cv_path_GREP=$GREP
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7103 $as_echo "$ac_cv_path_GREP" >&6; }
7104 GREP="$ac_cv_path_GREP"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7108 $as_echo_n "checking for egrep... " >&6; }
7109 if test "${ac_cv_path_EGREP+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7113 then ac_cv_path_EGREP="$GREP -E"
7115 if test -z "$EGREP"; then
7116 ac_path_EGREP_found=false
7117 # Loop through the user's path and test for each of PROGNAME-LIST
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7122 test -z "$as_dir" && as_dir=.
7123 for ac_prog in egrep; do
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7127 # Check for GNU ac_path_EGREP and select it if it is found.
7128 # Check for GNU $ac_path_EGREP
7129 case `"$ac_path_EGREP" --version 2>&1` in
7131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7134 $as_echo_n 0123456789 >"conftest.in"
7137 cat "conftest.in" "conftest.in" >"conftest.tmp"
7138 mv "conftest.tmp" "conftest.in"
7139 cp "conftest.in" "conftest.nl"
7140 $as_echo 'EGREP' >> "conftest.nl"
7141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7143 as_fn_arith $ac_count + 1 && ac_count=$as_val
7144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7145 # Best one so far, save it but keep looking for a better one
7146 ac_cv_path_EGREP="$ac_path_EGREP"
7147 ac_path_EGREP_max=$ac_count
7149 # 10*(2^10) chars as input seems more than enough
7150 test $ac_count -gt 10 && break
7152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7155 $ac_path_EGREP_found && break 3
7160 if test -z "$ac_cv_path_EGREP"; then
7161 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7164 ac_cv_path_EGREP=$EGREP
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7170 $as_echo "$ac_cv_path_EGREP" >&6; }
7171 EGREP="$ac_cv_path_EGREP"
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7175 $as_echo_n "checking for fgrep... " >&6; }
7176 if test "${ac_cv_path_FGREP+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7179 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7180 then ac_cv_path_FGREP="$GREP -F"
7182 if test -z "$FGREP"; then
7183 ac_path_FGREP_found=false
7184 # Loop through the user's path and test for each of PROGNAME-LIST
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7189 test -z "$as_dir" && as_dir=.
7190 for ac_prog in fgrep; do
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7193 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7194 # Check for GNU ac_path_FGREP and select it if it is found.
7195 # Check for GNU $ac_path_FGREP
7196 case `"$ac_path_FGREP" --version 2>&1` in
7198 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7201 $as_echo_n 0123456789 >"conftest.in"
7204 cat "conftest.in" "conftest.in" >"conftest.tmp"
7205 mv "conftest.tmp" "conftest.in"
7206 cp "conftest.in" "conftest.nl"
7207 $as_echo 'FGREP' >> "conftest.nl"
7208 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7210 as_fn_arith $ac_count + 1 && ac_count=$as_val
7211 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7212 # Best one so far, save it but keep looking for a better one
7213 ac_cv_path_FGREP="$ac_path_FGREP"
7214 ac_path_FGREP_max=$ac_count
7216 # 10*(2^10) chars as input seems more than enough
7217 test $ac_count -gt 10 && break
7219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7222 $ac_path_FGREP_found && break 3
7227 if test -z "$ac_cv_path_FGREP"; then
7228 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7231 ac_cv_path_FGREP=$FGREP
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7237 $as_echo "$ac_cv_path_FGREP" >&6; }
7238 FGREP="$ac_cv_path_FGREP"
7241 test -z "$GREP" && GREP=grep
7261 # Check whether --with-gnu-ld was given.
7262 if test "${with_gnu_ld+set}" = set; then :
7263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7269 if test "$GCC" = yes; then
7270 # Check if gcc -print-prog-name=ld gives a path.
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7272 $as_echo_n "checking for ld used by $CC... " >&6; }
7275 # gcc leaves a trailing carriage return which upsets mingw
7276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7281 # Accept absolute paths.
7283 re_direlt='/[^/][^/]*/\.\./'
7284 # Canonicalize the pathname of ld
7285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7289 test -z "$LD" && LD="$ac_prog"
7292 # If it fails, then pretend we aren't using GCC.
7296 # If it is relative, then search for the first ld in PATH.
7300 elif test "$with_gnu_ld" = yes; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7302 $as_echo_n "checking for GNU ld... " >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7305 $as_echo_n "checking for non-GNU ld... " >&6; }
7307 if test "${lt_cv_path_LD+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -z "$LD"; then
7311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7312 for ac_dir in $PATH; do
7314 test -z "$ac_dir" && ac_dir=.
7315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7316 lt_cv_path_LD="$ac_dir/$ac_prog"
7317 # Check to see if the program is GNU ld. I'd rather use --version,
7318 # but apparently some variants of GNU ld only accept -v.
7319 # Break only if it was the GNU/non-GNU ld that we prefer.
7320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7321 *GNU* | *'with BFD'*)
7322 test "$with_gnu_ld" != no && break
7325 test "$with_gnu_ld" != yes && break
7332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7337 if test -n "$LD"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7339 $as_echo "$LD" >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7344 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7347 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7351 case `$LD -v 2>&1 </dev/null` in
7352 *GNU* | *'with BFD'*)
7353 lt_cv_prog_gnu_ld=yes
7356 lt_cv_prog_gnu_ld=no
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7362 with_gnu_ld=$lt_cv_prog_gnu_ld
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7373 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7374 if test "${lt_cv_path_NM+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7377 if test -n "$NM"; then
7378 # Let the user override the test.
7381 lt_nm_to_check="${ac_tool_prefix}nm"
7382 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7383 lt_nm_to_check="$lt_nm_to_check nm"
7385 for lt_tmp_nm in $lt_nm_to_check; do
7386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7387 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7389 test -z "$ac_dir" && ac_dir=.
7390 tmp_nm="$ac_dir/$lt_tmp_nm"
7391 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7392 # Check to see if the nm accepts a BSD-compat flag.
7393 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7394 # nm: unknown option "B" ignored
7395 # Tru64's nm complains that /dev/null is an invalid object file
7396 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7397 */dev/null* | *'Invalid file or object type'*)
7398 lt_cv_path_NM="$tmp_nm -B"
7402 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7404 lt_cv_path_NM="$tmp_nm -p"
7408 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7409 continue # so that we can try to find one that supports BSD flags
7418 : ${lt_cv_path_NM=no}
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7422 $as_echo "$lt_cv_path_NM" >&6; }
7423 if test "$lt_cv_path_NM" != "no"; then
7426 # Didn't find any BSD compatible name lister, look for dumpbin.
7427 if test -n "$DUMPBIN"; then :
7428 # Let the user override the test.
7430 if test -n "$ac_tool_prefix"; then
7431 for ac_prog in dumpbin "link -dump"
7433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$DUMPBIN"; then
7441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 DUMPBIN=$ac_cv_prog_DUMPBIN
7461 if test -n "$DUMPBIN"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7463 $as_echo "$DUMPBIN" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 test -n "$DUMPBIN" && break
7473 if test -z "$DUMPBIN"; then
7474 ac_ct_DUMPBIN=$DUMPBIN
7475 for ac_prog in dumpbin "link -dump"
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7484 if test -n "$ac_ct_DUMPBIN"; then
7485 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7505 if test -n "$ac_ct_DUMPBIN"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7507 $as_echo "$ac_ct_DUMPBIN" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7514 test -n "$ac_ct_DUMPBIN" && break
7517 if test "x$ac_ct_DUMPBIN" = x; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7526 DUMPBIN=$ac_ct_DUMPBIN
7530 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7532 DUMPBIN="$DUMPBIN -symbols"
7540 if test "$DUMPBIN" != ":"; then
7544 test -z "$NM" && NM=nm
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7552 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7553 if test "${lt_cv_nm_interface+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7556 lt_cv_nm_interface="BSD nm"
7557 echo "int some_variable = 0;" > conftest.$ac_ext
7558 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7559 (eval "$ac_compile" 2>conftest.err)
7560 cat conftest.err >&5
7561 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7562 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7563 cat conftest.err >&5
7564 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7565 cat conftest.out >&5
7566 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7567 lt_cv_nm_interface="MS dumpbin"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7572 $as_echo "$lt_cv_nm_interface" >&6; }
7574 # find the maximum length of command line arguments
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7576 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7577 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7585 # On DJGPP, this test can blow up pretty badly due to problems in libc
7586 # (any single argument exceeding 2000 bytes causes a buffer overrun
7587 # during glob expansion). Even if it were fixed, the result of this
7588 # check would be larger than it should be.
7589 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7593 # Under GNU Hurd, this test is not required because there is
7594 # no limit to the length of command line arguments.
7595 # Libtool will interpret -1 as no limit whatsoever
7596 lt_cv_sys_max_cmd_len=-1;
7599 cygwin* | mingw* | cegcc*)
7600 # On Win9x/ME, this test blows up -- it succeeds, but takes
7601 # about 5 minutes as the teststring grows exponentially.
7602 # Worse, since 9x/ME are not pre-emptively multitasking,
7603 # you end up with a "frozen" computer, even though with patience
7604 # the test eventually succeeds (with a max line length of 256k).
7605 # Instead, let's just punt: use the minimum linelength reported by
7606 # all of the supported platforms: 8192 (on NT/2K/XP).
7607 lt_cv_sys_max_cmd_len=8192;
7611 # On MiNT this can take a long time and run out of memory.
7612 lt_cv_sys_max_cmd_len=8192;
7616 # On AmigaOS with pdksh, this test takes hours, literally.
7617 # So we just punt and use a minimum line length of 8192.
7618 lt_cv_sys_max_cmd_len=8192;
7621 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7622 # This has been around since 386BSD, at least. Likely further.
7623 if test -x /sbin/sysctl; then
7624 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7625 elif test -x /usr/sbin/sysctl; then
7626 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7628 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7630 # And add a safety zone
7631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7636 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7637 lt_cv_sys_max_cmd_len=196608
7641 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7642 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7643 # nice to cause kernel panics so lets avoid the loop below.
7644 # First set a reasonable default.
7645 lt_cv_sys_max_cmd_len=16384
7647 if test -x /sbin/sysconfig; then
7648 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7649 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7654 lt_cv_sys_max_cmd_len=102400
7656 sysv5* | sco5v6* | sysv4.2uw2*)
7657 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7658 if test -n "$kargmax"; then
7659 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7661 lt_cv_sys_max_cmd_len=32768
7665 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7666 if test -n "$lt_cv_sys_max_cmd_len"; then
7667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7670 # Make teststring a little bigger before we do anything with it.
7671 # a 1K string should be a reasonable start.
7672 for i in 1 2 3 4 5 6 7 8 ; do
7673 teststring=$teststring$teststring
7675 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7676 # If test is not a shell built-in, we'll probably end up computing a
7677 # maximum length that is only half of the actual maximum length, but
7679 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7680 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7681 test $i != 17 # 1/2 MB should be enough
7684 teststring=$teststring$teststring
7686 # Only check the string length outside the loop.
7687 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7689 # Add a significant safety factor because C++ compilers can tack on
7690 # massive amounts of additional arguments before passing them to the
7691 # linker. It appears as though 1/2 is a usable value.
7692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7699 if test -n $lt_cv_sys_max_cmd_len ; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7701 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7704 $as_echo "none" >&6; }
7706 max_cmd_len=$lt_cv_sys_max_cmd_len
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7718 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7719 # Try some XSI features
7722 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7724 && eval 'test $(( 1 + 1 )) -eq 2 \
7725 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7728 $as_echo "$xsi_shell" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7732 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7734 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7736 && lt_shell_append=yes
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7738 $as_echo "$lt_shell_append" >&6; }
7741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7751 # test EBCDIC or ASCII
7752 case `echo X|tr X '\101'` in
7753 A) # ASCII based system
7754 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7755 lt_SP2NL='tr \040 \012'
7756 lt_NL2SP='tr \015\012 \040\040'
7758 *) # EBCDIC based system
7759 lt_SP2NL='tr \100 \n'
7760 lt_NL2SP='tr \r\n \100\100'
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7773 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7774 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7777 lt_cv_ld_reload_flag='-r'
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7780 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7781 reload_flag=$lt_cv_ld_reload_flag
7782 case $reload_flag in
7784 *) reload_flag=" $reload_flag" ;;
7786 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7789 if test "$GCC" = yes; then
7790 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7792 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7805 if test -n "$ac_tool_prefix"; then
7806 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7807 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7813 if test -n "$OBJDUMP"; then
7814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 OBJDUMP=$ac_cv_prog_OBJDUMP
7834 if test -n "$OBJDUMP"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7836 $as_echo "$OBJDUMP" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7844 if test -z "$ac_cv_prog_OBJDUMP"; then
7845 ac_ct_OBJDUMP=$OBJDUMP
7846 # Extract the first word of "objdump", so it can be a program name with args.
7847 set dummy objdump; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7853 if test -n "$ac_ct_OBJDUMP"; then
7854 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7874 if test -n "$ac_ct_OBJDUMP"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7876 $as_echo "$ac_ct_OBJDUMP" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7882 if test "x$ac_ct_OBJDUMP" = x; then
7885 case $cross_compiling:$ac_tool_warned in
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889 ac_tool_warned=yes ;;
7891 OBJDUMP=$ac_ct_OBJDUMP
7894 OBJDUMP="$ac_cv_prog_OBJDUMP"
7897 test -z "$OBJDUMP" && OBJDUMP=objdump
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7908 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7909 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7912 lt_cv_file_magic_cmd='$MAGIC_CMD'
7913 lt_cv_file_magic_test_file=
7914 lt_cv_deplibs_check_method='unknown'
7915 # Need to set the preceding variable on all platforms that support
7916 # interlibrary dependencies.
7917 # 'none' -- dependencies not supported.
7918 # `unknown' -- same as none, but documents that we really don't know.
7919 # 'pass_all' -- all dependencies passed with no checks.
7920 # 'test_compile' -- check by making test program.
7921 # 'file_magic [[regex]]' -- check by looking for files in library path
7922 # which responds to the $file_magic_cmd with a given extended regex.
7923 # If you have `file' or equivalent on your system and you're not sure
7924 # whether `pass_all' will *always* work, you probably want this one.
7928 lt_cv_deplibs_check_method=pass_all
7932 lt_cv_deplibs_check_method=pass_all
7936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7937 lt_cv_file_magic_cmd='/usr/bin/file -L'
7938 lt_cv_file_magic_test_file=/shlib/libc.so
7942 # func_win32_libid is a shell function defined in ltmain.sh
7943 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7944 lt_cv_file_magic_cmd='func_win32_libid'
7948 # Base MSYS/MinGW do not provide the 'file' command needed by
7949 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7950 # unless we find 'file', for example because we are cross-compiling.
7951 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7952 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7954 lt_cv_file_magic_cmd='func_win32_libid'
7956 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7957 lt_cv_file_magic_cmd='$OBJDUMP -f'
7962 # use the weaker test based on 'objdump'. See mingw*.
7963 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7964 lt_cv_file_magic_cmd='$OBJDUMP -f'
7967 darwin* | rhapsody*)
7968 lt_cv_deplibs_check_method=pass_all
7971 freebsd* | dragonfly*)
7972 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7975 # Not sure whether the presence of OpenBSD here was a mistake.
7976 # Let's accept both of them until this is cleared up.
7977 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7978 lt_cv_file_magic_cmd=/usr/bin/file
7979 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7983 lt_cv_deplibs_check_method=pass_all
7988 lt_cv_deplibs_check_method=pass_all
7992 lt_cv_deplibs_check_method=pass_all
7995 hpux10.20* | hpux11*)
7996 lt_cv_file_magic_cmd=/usr/bin/file
7999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8004 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8008 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8014 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8018 irix5* | irix6* | nonstopux*)
8020 *-32|*"-32 ") libmagic=32-bit;;
8021 *-n32|*"-n32 ") libmagic=N32;;
8022 *-64|*"-64 ") libmagic=64-bit;;
8023 *) libmagic=never-match;;
8025 lt_cv_deplibs_check_method=pass_all
8028 # This must be Linux ELF.
8029 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8030 lt_cv_deplibs_check_method=pass_all
8034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8043 lt_cv_file_magic_cmd=/usr/bin/file
8044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8048 lt_cv_deplibs_check_method=pass_all
8052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8059 osf3* | osf4* | osf5*)
8060 lt_cv_deplibs_check_method=pass_all
8064 lt_cv_deplibs_check_method=pass_all
8068 lt_cv_deplibs_check_method=pass_all
8071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8072 lt_cv_deplibs_check_method=pass_all
8076 case $host_vendor in
8078 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]'
8079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8082 lt_cv_deplibs_check_method=pass_all
8085 lt_cv_file_magic_cmd='/bin/file'
8086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8089 lt_cv_file_magic_cmd='/bin/file'
8090 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8091 lt_cv_file_magic_test_file=/lib/libc.so
8094 lt_cv_deplibs_check_method=pass_all
8097 lt_cv_deplibs_check_method=pass_all
8103 lt_cv_deplibs_check_method=pass_all
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8109 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8110 file_magic_cmd=$lt_cv_file_magic_cmd
8111 deplibs_check_method=$lt_cv_deplibs_check_method
8112 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8125 if test -n "$ac_tool_prefix"; then
8126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8127 set dummy ${ac_tool_prefix}ar; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_AR+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8133 if test -n "$AR"; then
8134 ac_cv_prog_AR="$AR" # Let the user override the test.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_prog_AR="${ac_tool_prefix}ar"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 if test -n "$AR"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8156 $as_echo "$AR" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8164 if test -z "$ac_cv_prog_AR"; then
8166 # Extract the first word of "ar", so it can be a program name with args.
8167 set dummy ar; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8173 if test -n "$ac_ct_AR"; then
8174 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_ac_ct_AR="ar"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8194 if test -n "$ac_ct_AR"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8196 $as_echo "$ac_ct_AR" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8202 if test "x$ac_ct_AR" = x; then
8205 case $cross_compiling:$ac_tool_warned in
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8209 ac_tool_warned=yes ;;
8217 test -z "$AR" && AR=ar
8218 test -z "$AR_FLAGS" && AR_FLAGS=cru
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}strip; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_prog_STRIP+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8238 if test -n "$STRIP"; then
8239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 STRIP=$ac_cv_prog_STRIP
8259 if test -n "$STRIP"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8261 $as_echo "$STRIP" >&6; }
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8269 if test -z "$ac_cv_prog_STRIP"; then
8271 # Extract the first word of "strip", so it can be a program name with args.
8272 set dummy strip; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$ac_ct_STRIP"; then
8279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_ac_ct_STRIP="strip"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8299 if test -n "$ac_ct_STRIP"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8301 $as_echo "$ac_ct_STRIP" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8307 if test "x$ac_ct_STRIP" = x; then
8310 case $cross_compiling:$ac_tool_warned in
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8319 STRIP="$ac_cv_prog_STRIP"
8322 test -z "$STRIP" && STRIP=:
8329 if test -n "$ac_tool_prefix"; then
8330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8337 if test -n "$RANLIB"; then
8338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 RANLIB=$ac_cv_prog_RANLIB
8358 if test -n "$RANLIB"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8360 $as_echo "$RANLIB" >&6; }
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8368 if test -z "$ac_cv_prog_RANLIB"; then
8369 ac_ct_RANLIB=$RANLIB
8370 # Extract the first word of "ranlib", so it can be a program name with args.
8371 set dummy ranlib; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8377 if test -n "$ac_ct_RANLIB"; then
8378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_prog_ac_ct_RANLIB="ranlib"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8398 if test -n "$ac_ct_RANLIB"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8400 $as_echo "$ac_ct_RANLIB" >&6; }
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8406 if test "x$ac_ct_RANLIB" = x; then
8409 case $cross_compiling:$ac_tool_warned in
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413 ac_tool_warned=yes ;;
8415 RANLIB=$ac_ct_RANLIB
8418 RANLIB="$ac_cv_prog_RANLIB"
8421 test -z "$RANLIB" && RANLIB=:
8428 # Determine commands to create old-style static archives.
8429 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8430 old_postinstall_cmds='chmod 644 $oldlib'
8431 old_postuninstall_cmds=
8433 if test -n "$RANLIB"; then
8436 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8439 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8447 lock_old_archive_extraction=yes ;;
8449 lock_old_archive_extraction=no ;;
8490 # If no C compiler was specified, use CC.
8493 # If no C compiler flags were specified, use CFLAGS.
8494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8496 # Allow CC to be a program name with arguments.
8500 # Check for command to grab the raw symbol name followed by C symbol from nm.
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8502 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8503 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8507 # These are sane defaults that work on at least a few old systems.
8508 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8510 # Character class describing NM global symbol codes.
8511 symcode='[BCDEGRST]'
8513 # Regexp to match symbols that can be accessed directly from C.
8514 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8516 # Define system-specific variables.
8521 cygwin* | mingw* | pw32* | cegcc*)
8522 symcode='[ABCDGISTW]'
8525 if test "$host_cpu" = ia64; then
8526 symcode='[ABCDEGRST]'
8530 symcode='[BCDEGRST]'
8533 symcode='[BCDEGQRST]'
8544 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8552 # If we're using GNU nm, then use its standard symbol codes.
8553 case `$NM -V 2>&1` in
8554 *GNU* | *'with BFD'*)
8555 symcode='[ABCDGIRSTW]' ;;
8558 # Transform an extracted symbol line into a proper C declaration.
8559 # Some systems (esp. on ia64) link data and code symbols differently,
8560 # so use this general approach.
8561 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8563 # Transform an extracted symbol line into symbol name and symbol address
8564 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8567 # Handle CRLF in mingw tool chain
8571 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8575 # Try without a prefix underscore, then with it.
8576 for ac_symprfx in "" "_"; do
8578 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8579 symxfrm="\\1 $ac_symprfx\\2 \\2"
8581 # Write the raw and C identifiers.
8582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8583 # Fake it for dumpbin and say T for any non-static function
8584 # and D for any global variable.
8585 # Also find C++ and __fastcall symbols from MSVC++,
8586 # which start with @ or ?.
8587 lt_cv_sys_global_symbol_pipe="$AWK '"\
8588 " {last_section=section; section=\$ 3};"\
8589 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8590 " \$ 0!~/External *\|/{next};"\
8591 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8592 " {if(hide[section]) next};"\
8593 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8594 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8595 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8596 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8597 " ' prfx=^$ac_symprfx"
8599 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8602 # Check to see that the pipe works correctly.
8606 cat > conftest.$ac_ext <<_LT_EOF
8611 void nm_test_func(void);
8612 void nm_test_func(void){}
8616 int main(){nm_test_var='a';nm_test_func();return(0);}
8619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8620 (eval $ac_compile) 2>&5
8622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8623 test $ac_status = 0; }; then
8624 # Now try to grab the symbols.
8626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8627 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8630 test $ac_status = 0; } && test -s "$nlist"; then
8631 # Try sorting and uniquifying the output.
8632 if sort "$nlist" | uniq > "$nlist"T; then
8633 mv -f "$nlist"T "$nlist"
8638 # Make sure that we snagged all the symbols we need.
8639 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8640 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8641 cat <<_LT_EOF > conftest.$ac_ext
8647 # Now generate the symbol file.
8648 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8650 cat <<_LT_EOF >> conftest.$ac_ext
8652 /* The mapping between symbol names and symbols. */
8657 lt__PROGRAM__LTX_preloaded_symbols[] =
8659 { "@PROGRAM@", (void *) 0 },
8661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8662 cat <<\_LT_EOF >> conftest.$ac_ext
8666 /* This works around a problem in FreeBSD linker */
8667 #ifdef FREEBSD_WORKAROUND
8668 static const void *lt_preloaded_setup() {
8669 return lt__PROGRAM__LTX_preloaded_symbols;
8677 # Now try linking the two files.
8678 mv conftest.$ac_objext conftstm.$ac_objext
8679 lt_save_LIBS="$LIBS"
8680 lt_save_CFLAGS="$CFLAGS"
8681 LIBS="conftstm.$ac_objext"
8682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684 (eval $ac_link) 2>&5
8686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8690 LIBS="$lt_save_LIBS"
8691 CFLAGS="$lt_save_CFLAGS"
8693 echo "cannot find nm_test_func in $nlist" >&5
8696 echo "cannot find nm_test_var in $nlist" >&5
8699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8702 echo "$progname: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 rm -rf conftest* conftst*
8707 # Do not use the global_symbol_pipe unless it works.
8708 if test "$pipe_works" = yes; then
8711 lt_cv_sys_global_symbol_pipe=
8717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8718 lt_cv_sys_global_symbol_to_cdecl=
8720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8722 $as_echo "failed" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8725 $as_echo "ok" >&6; }
8750 # Check whether --enable-libtool-lock was given.
8751 if test "${enable_libtool_lock+set}" = set; then :
8752 enableval=$enable_libtool_lock;
8755 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8757 # Some flags need to be propagated to the compiler or linker for good
8761 # Find out which ABI we are using.
8762 echo 'int i;' > conftest.$ac_ext
8763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8764 (eval $ac_compile) 2>&5
8766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8767 test $ac_status = 0; }; then
8768 case `/usr/bin/file conftest.$ac_objext` in
8780 # Find out which ABI we are using.
8781 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8783 (eval $ac_compile) 2>&5
8785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8786 test $ac_status = 0; }; then
8787 if test "$lt_cv_prog_gnu_ld" = yes; then
8788 case `/usr/bin/file conftest.$ac_objext` in
8790 LD="${LD-ld} -melf32bsmip"
8793 LD="${LD-ld} -melf32bmipn32"
8796 LD="${LD-ld} -melf64bmip"
8800 case `/usr/bin/file conftest.$ac_objext` in
8816 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8817 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8818 # Find out which ABI we are using.
8819 echo 'int i;' > conftest.$ac_ext
8820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8821 (eval $ac_compile) 2>&5
8823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8824 test $ac_status = 0; }; then
8825 case `/usr/bin/file conftest.o` in
8828 x86_64-*kfreebsd*-gnu)
8829 LD="${LD-ld} -m elf_i386_fbsd"
8832 LD="${LD-ld} -m elf_i386"
8834 ppc64-*linux*|powerpc64-*linux*)
8835 LD="${LD-ld} -m elf32ppclinux"
8838 LD="${LD-ld} -m elf_s390"
8841 LD="${LD-ld} -m elf32_sparc"
8847 x86_64-*kfreebsd*-gnu)
8848 LD="${LD-ld} -m elf_x86_64_fbsd"
8851 LD="${LD-ld} -m elf_x86_64"
8853 ppc*-*linux*|powerpc*-*linux*)
8854 LD="${LD-ld} -m elf64ppc"
8856 s390*-*linux*|s390*-*tpf*)
8857 LD="${LD-ld} -m elf64_s390"
8860 LD="${LD-ld} -m elf64_sparc"
8870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8871 SAVE_CFLAGS="$CFLAGS"
8872 CFLAGS="$CFLAGS -belf"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8874 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8875 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8879 ac_cpp='$CPP $CPPFLAGS'
8880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8884 if test x$gcc_no_link = xyes; then
8885 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8898 if ac_fn_c_try_link "$LINENO"; then :
8899 lt_cv_cc_needs_belf=yes
8901 lt_cv_cc_needs_belf=no
8903 rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8906 ac_cpp='$CPP $CPPFLAGS'
8907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8914 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8915 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8916 CFLAGS="$SAVE_CFLAGS"
8920 # Find out which ABI we are using.
8921 echo 'int i;' > conftest.$ac_ext
8922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8923 (eval $ac_compile) 2>&5
8925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8926 test $ac_status = 0; }; then
8927 case `/usr/bin/file conftest.o` in
8929 case $lt_cv_prog_gnu_ld in
8930 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8932 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8944 need_locks="$enable_libtool_lock"
8948 rhapsody* | darwin*)
8949 if test -n "$ac_tool_prefix"; then
8950 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 $as_echo_n "checking for $ac_word... " >&6; }
8954 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8957 if test -n "$DSYMUTIL"; then
8958 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8978 if test -n "$DSYMUTIL"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8980 $as_echo "$DSYMUTIL" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8988 if test -z "$ac_cv_prog_DSYMUTIL"; then
8989 ac_ct_DSYMUTIL=$DSYMUTIL
8990 # Extract the first word of "dsymutil", so it can be a program name with args.
8991 set dummy dsymutil; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8997 if test -n "$ac_ct_DSYMUTIL"; then
8998 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9018 if test -n "$ac_ct_DSYMUTIL"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9026 if test "x$ac_ct_DSYMUTIL" = x; then
9029 case $cross_compiling:$ac_tool_warned in
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9035 DSYMUTIL=$ac_ct_DSYMUTIL
9038 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9041 if test -n "$ac_tool_prefix"; then
9042 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9049 if test -n "$NMEDIT"; then
9050 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 NMEDIT=$ac_cv_prog_NMEDIT
9070 if test -n "$NMEDIT"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9072 $as_echo "$NMEDIT" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9080 if test -z "$ac_cv_prog_NMEDIT"; then
9081 ac_ct_NMEDIT=$NMEDIT
9082 # Extract the first word of "nmedit", so it can be a program name with args.
9083 set dummy nmedit; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$ac_ct_NMEDIT"; then
9090 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9110 if test -n "$ac_ct_NMEDIT"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9112 $as_echo "$ac_ct_NMEDIT" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9118 if test "x$ac_ct_NMEDIT" = x; then
9121 case $cross_compiling:$ac_tool_warned in
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9127 NMEDIT=$ac_ct_NMEDIT
9130 NMEDIT="$ac_cv_prog_NMEDIT"
9133 if test -n "$ac_tool_prefix"; then
9134 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_LIPO+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$LIPO"; then
9142 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 LIPO=$ac_cv_prog_LIPO
9162 if test -n "$LIPO"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9164 $as_echo "$LIPO" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9172 if test -z "$ac_cv_prog_LIPO"; then
9174 # Extract the first word of "lipo", so it can be a program name with args.
9175 set dummy lipo; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$ac_ct_LIPO"; then
9182 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_ac_ct_LIPO="lipo"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9202 if test -n "$ac_ct_LIPO"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9204 $as_echo "$ac_ct_LIPO" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9210 if test "x$ac_ct_LIPO" = x; then
9213 case $cross_compiling:$ac_tool_warned in
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9217 ac_tool_warned=yes ;;
9222 LIPO="$ac_cv_prog_LIPO"
9225 if test -n "$ac_tool_prefix"; then
9226 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9227 set dummy ${ac_tool_prefix}otool; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$OTOOL"; then
9234 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9243 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 OTOOL=$ac_cv_prog_OTOOL
9254 if test -n "$OTOOL"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9256 $as_echo "$OTOOL" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9264 if test -z "$ac_cv_prog_OTOOL"; then
9266 # Extract the first word of "otool", so it can be a program name with args.
9267 set dummy otool; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$ac_ct_OTOOL"; then
9274 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283 ac_cv_prog_ac_ct_OTOOL="otool"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9294 if test -n "$ac_ct_OTOOL"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9296 $as_echo "$ac_ct_OTOOL" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9302 if test "x$ac_ct_OTOOL" = x; then
9305 case $cross_compiling:$ac_tool_warned in
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309 ac_tool_warned=yes ;;
9314 OTOOL="$ac_cv_prog_OTOOL"
9317 if test -n "$ac_tool_prefix"; then
9318 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9325 if test -n "$OTOOL64"; then
9326 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9335 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 OTOOL64=$ac_cv_prog_OTOOL64
9346 if test -n "$OTOOL64"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9348 $as_echo "$OTOOL64" >&6; }
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9356 if test -z "$ac_cv_prog_OTOOL64"; then
9357 ac_ct_OTOOL64=$OTOOL64
9358 # Extract the first word of "otool64", so it can be a program name with args.
9359 set dummy otool64; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9365 if test -n "$ac_ct_OTOOL64"; then
9366 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375 ac_cv_prog_ac_ct_OTOOL64="otool64"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9386 if test -n "$ac_ct_OTOOL64"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9388 $as_echo "$ac_ct_OTOOL64" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9394 if test "x$ac_ct_OTOOL64" = x; then
9397 case $cross_compiling:$ac_tool_warned in
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9401 ac_tool_warned=yes ;;
9403 OTOOL64=$ac_ct_OTOOL64
9406 OTOOL64="$ac_cv_prog_OTOOL64"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9436 $as_echo_n "checking for -single_module linker flag... " >&6; }
9437 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9440 lt_cv_apple_cc_single_mod=no
9441 if test -z "${LT_MULTI_MODULE}"; then
9442 # By default we will add the -single_module flag. You can override
9443 # by either setting the environment variable LT_MULTI_MODULE
9444 # non-empty at configure time, or by adding -multi_module to the
9446 rm -rf libconftest.dylib*
9447 echo "int foo(void){return 1;}" > conftest.c
9448 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9449 -dynamiclib -Wl,-single_module conftest.c" >&5
9450 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9451 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9453 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9454 lt_cv_apple_cc_single_mod=yes
9456 cat conftest.err >&5
9458 rm -rf libconftest.dylib*
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9466 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9469 lt_cv_ld_exported_symbols_list=no
9470 save_LDFLAGS=$LDFLAGS
9471 echo "_main" > conftest.sym
9472 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9473 if test x$gcc_no_link = xyes; then
9474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9487 if ac_fn_c_try_link "$LINENO"; then :
9488 lt_cv_ld_exported_symbols_list=yes
9490 lt_cv_ld_exported_symbols_list=no
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 LDFLAGS="$save_LDFLAGS"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9498 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9500 $as_echo_n "checking for -force_load linker flag... " >&6; }
9501 if test "${lt_cv_ld_force_load+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9504 lt_cv_ld_force_load=no
9505 cat > conftest.c << _LT_EOF
9506 int forced_loaded() { return 2;}
9508 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9509 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9510 echo "$AR cru libconftest.a conftest.o" >&5
9511 $AR cru libconftest.a conftest.o 2>&5
9512 cat > conftest.c << _LT_EOF
9513 int main() { return 0;}
9515 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9516 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9518 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9519 lt_cv_ld_force_load=yes
9521 cat conftest.err >&5
9523 rm -f conftest.err libconftest.a conftest conftest.c
9524 rm -rf conftest.dSYM
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9528 $as_echo "$lt_cv_ld_force_load" >&6; }
9530 rhapsody* | darwin1.[012])
9531 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9533 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9534 darwin*) # darwin 5.x on
9535 # if running on 10.5 or later, the deployment target defaults
9536 # to the OS version, if on x86, and 10.4, the deployment
9537 # target defaults to 10.4. Don't you love it?
9538 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9539 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9542 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9544 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9548 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9549 _lt_dar_single_mod='$single_module'
9551 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9552 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9554 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9556 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9557 _lt_dsymutil='~$DSYMUTIL $lib || :'
9565 ac_cpp='$CPP $CPPFLAGS'
9566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9571 # On Suns, sometimes $CPP names a directory.
9572 if test -n "$CPP" && test -d "$CPP"; then
9575 if test -z "$CPP"; then
9576 if test "${ac_cv_prog_CPP+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9579 # Double quotes because CPP needs to be expanded
9580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9583 for ac_c_preproc_warn_flag in '' yes
9585 # Use a header file that comes with gcc, so configuring glibc
9586 # with a fresh cross-compiler works.
9587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9588 # <limits.h> exists even on freestanding compilers.
9589 # On the NeXT, cc -E runs the code through the compiler's parser,
9590 # not just through cpp. "Syntax error" is here to catch this case.
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9594 # include <limits.h>
9596 # include <assert.h>
9600 if ac_fn_c_try_cpp "$LINENO"; then :
9603 # Broken: fails on valid input.
9606 rm -f conftest.err conftest.$ac_ext
9608 # OK, works on sane cases. Now check whether nonexistent headers
9609 # can be detected and how.
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 #include <ac_nonexistent.h>
9614 if ac_fn_c_try_cpp "$LINENO"; then :
9615 # Broken: success on invalid input.
9618 # Passes both tests.
9622 rm -f conftest.err conftest.$ac_ext
9625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9626 rm -f conftest.err conftest.$ac_ext
9627 if $ac_preproc_ok; then :
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9640 $as_echo "$CPP" >&6; }
9642 for ac_c_preproc_warn_flag in '' yes
9644 # Use a header file that comes with gcc, so configuring glibc
9645 # with a fresh cross-compiler works.
9646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9647 # <limits.h> exists even on freestanding compilers.
9648 # On the NeXT, cc -E runs the code through the compiler's parser,
9649 # not just through cpp. "Syntax error" is here to catch this case.
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9653 # include <limits.h>
9655 # include <assert.h>
9659 if ac_fn_c_try_cpp "$LINENO"; then :
9662 # Broken: fails on valid input.
9665 rm -f conftest.err conftest.$ac_ext
9667 # OK, works on sane cases. Now check whether nonexistent headers
9668 # can be detected and how.
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #include <ac_nonexistent.h>
9673 if ac_fn_c_try_cpp "$LINENO"; then :
9674 # Broken: success on invalid input.
9677 # Passes both tests.
9681 rm -f conftest.err conftest.$ac_ext
9684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9685 rm -f conftest.err conftest.$ac_ext
9686 if $ac_preproc_ok; then :
9689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9691 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9692 See \`config.log' for more details." "$LINENO" 5; }
9696 ac_cpp='$CPP $CPPFLAGS'
9697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9703 $as_echo_n "checking for ANSI C header files... " >&6; }
9704 if test "${ac_cv_header_stdc+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 ac_cv_header_stdc=yes
9725 ac_cv_header_stdc=no
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 if test $ac_cv_header_stdc = yes; then
9730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9737 $EGREP "memchr" >/dev/null 2>&1; then :
9740 ac_cv_header_stdc=no
9746 if test $ac_cv_header_stdc = yes; then
9747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9754 $EGREP "free" >/dev/null 2>&1; then :
9757 ac_cv_header_stdc=no
9763 if test $ac_cv_header_stdc = yes; then
9764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9765 if test "$cross_compiling" = yes; then :
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9772 #if ((' ' & 0x0FF) == 0x020)
9773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9776 # define ISLOWER(c) \
9777 (('a' <= (c) && (c) <= 'i') \
9778 || ('j' <= (c) && (c) <= 'r') \
9779 || ('s' <= (c) && (c) <= 'z'))
9780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9788 for (i = 0; i < 256; i++)
9789 if (XOR (islower (i), ISLOWER (i))
9790 || toupper (i) != TOUPPER (i))
9795 if ac_fn_c_try_run "$LINENO"; then :
9798 ac_cv_header_stdc=no
9800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9801 conftest.$ac_objext conftest.beam conftest.$ac_ext
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9807 $as_echo "$ac_cv_header_stdc" >&6; }
9808 if test $ac_cv_header_stdc = yes; then
9810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9814 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9815 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9816 inttypes.h stdint.h unistd.h
9818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9819 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9821 eval as_val=\$$as_ac_Header
9822 if test "x$as_val" = x""yes; then :
9823 cat >>confdefs.h <<_ACEOF
9824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832 for ac_header in dlfcn.h
9834 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9836 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9837 cat >>confdefs.h <<_ACEOF
9838 #define HAVE_DLFCN_H 1
9858 # Check whether --enable-shared was given.
9859 if test "${enable_shared+set}" = set; then :
9860 enableval=$enable_shared; p=${PACKAGE-default}
9862 yes) enable_shared=yes ;;
9863 no) enable_shared=no ;;
9866 # Look at the argument we got. We use all the common list separators.
9867 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9868 for pkg in $enableval; do
9870 if test "X$pkg" = "X$p"; then
9889 # Check whether --enable-static was given.
9890 if test "${enable_static+set}" = set; then :
9891 enableval=$enable_static; p=${PACKAGE-default}
9893 yes) enable_static=yes ;;
9894 no) enable_static=no ;;
9897 # Look at the argument we got. We use all the common list separators.
9898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9899 for pkg in $enableval; do
9901 if test "X$pkg" = "X$p"; then
9921 # Check whether --with-pic was given.
9922 if test "${with_pic+set}" = set; then :
9923 withval=$with_pic; pic_mode="$withval"
9929 test -z "$pic_mode" && pic_mode=default
9937 # Check whether --enable-fast-install was given.
9938 if test "${enable_fast_install+set}" = set; then :
9939 enableval=$enable_fast_install; p=${PACKAGE-default}
9941 yes) enable_fast_install=yes ;;
9942 no) enable_fast_install=no ;;
9944 enable_fast_install=no
9945 # Look at the argument we got. We use all the common list separators.
9946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9947 for pkg in $enableval; do
9949 if test "X$pkg" = "X$p"; then
9950 enable_fast_install=yes
9957 enable_fast_install=yes
9970 # This can be used to rebuild libtool when needed
9971 LIBTOOL_DEPS="$ltmain"
9973 # Always use our own libtool.
9974 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10001 test -z "$LN_S" && LN_S="ln -s"
10016 if test -n "${ZSH_VERSION+set}" ; then
10017 setopt NO_GLOB_SUBST
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10021 $as_echo_n "checking for objdir... " >&6; }
10022 if test "${lt_cv_objdir+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10025 rm -f .libs 2>/dev/null
10026 mkdir .libs 2>/dev/null
10027 if test -d .libs; then
10030 # MS-DOS does not allow filenames that begin with a dot.
10033 rmdir .libs 2>/dev/null
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10036 $as_echo "$lt_cv_objdir" >&6; }
10037 objdir=$lt_cv_objdir
10043 cat >>confdefs.h <<_ACEOF
10044 #define LT_OBJDIR "$lt_cv_objdir/"
10052 # AIX sometimes has problems with the GCC collect2 program. For some
10053 # reason, if we set the COLLECT_NAMES environment variable, the problems
10054 # vanish in a puff of smoke.
10055 if test "X${COLLECT_NAMES+set}" != Xset; then
10057 export COLLECT_NAMES
10062 # Global variables:
10064 can_build_shared=yes
10066 # All known linkers require a `.a' archive for static linking (except MSVC,
10067 # which needs '.lib').
10070 with_gnu_ld="$lt_cv_prog_gnu_ld"
10073 old_CFLAGS="$CFLAGS"
10075 # Set sane defaults for various variables
10076 test -z "$CC" && CC=cc
10077 test -z "$LTCC" && LTCC=$CC
10078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10079 test -z "$LD" && LD=ld
10080 test -z "$ac_objext" && ac_objext=o
10082 for cc_temp in $compiler""; do
10084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10090 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10093 # Only perform the check for file, if the check method requires it
10094 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10095 case $deplibs_check_method in
10097 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10099 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10100 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
10105 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10108 lt_save_MAGIC_CMD="$MAGIC_CMD"
10109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10110 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10111 for ac_dir in $ac_dummy; do
10113 test -z "$ac_dir" && ac_dir=.
10114 if test -f $ac_dir/${ac_tool_prefix}file; then
10115 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10116 if test -n "$file_magic_test_file"; then
10117 case $deplibs_check_method in
10119 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10121 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10122 $EGREP "$file_magic_regex" > /dev/null; then
10127 *** Warning: the command libtool uses to detect shared libraries,
10128 *** $file_magic_cmd, produces output that libtool cannot recognize.
10129 *** The result is that libtool may fail to recognize shared libraries
10130 *** as such. This will affect the creation of libtool libraries that
10131 *** depend on shared libraries, but programs linked with such libtool
10132 *** libraries will work regardless of this problem. Nevertheless, you
10133 *** may want to report the problem to your system manager and/or to
10134 *** bug-libtool@gnu.org
10144 MAGIC_CMD="$lt_save_MAGIC_CMD"
10149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10150 if test -n "$MAGIC_CMD"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10152 $as_echo "$MAGIC_CMD" >&6; }
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10162 if test -z "$lt_cv_path_MAGIC_CMD"; then
10163 if test -n "$ac_tool_prefix"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10165 $as_echo_n "checking for file... " >&6; }
10166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10174 lt_save_MAGIC_CMD="$MAGIC_CMD"
10175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10177 for ac_dir in $ac_dummy; do
10179 test -z "$ac_dir" && ac_dir=.
10180 if test -f $ac_dir/file; then
10181 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10182 if test -n "$file_magic_test_file"; then
10183 case $deplibs_check_method in
10185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10188 $EGREP "$file_magic_regex" > /dev/null; then
10193 *** Warning: the command libtool uses to detect shared libraries,
10194 *** $file_magic_cmd, produces output that libtool cannot recognize.
10195 *** The result is that libtool may fail to recognize shared libraries
10196 *** as such. This will affect the creation of libtool libraries that
10197 *** depend on shared libraries, but programs linked with such libtool
10198 *** libraries will work regardless of this problem. Nevertheless, you
10199 *** may want to report the problem to your system manager and/or to
10200 *** bug-libtool@gnu.org
10210 MAGIC_CMD="$lt_save_MAGIC_CMD"
10215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10216 if test -n "$MAGIC_CMD"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10218 $as_echo "$MAGIC_CMD" >&6; }
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10234 # Use C for the default configuration in the libtool script
10238 ac_cpp='$CPP $CPPFLAGS'
10239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244 # Source file extension for C test sources.
10247 # Object file extension for compiled C test sources.
10251 # Code to be used in simple compile tests
10252 lt_simple_compile_test_code="int some_variable = 0;"
10254 # Code to be used in simple link tests
10255 lt_simple_link_test_code='int main(){return(0);}'
10263 # If no C compiler was specified, use CC.
10266 # If no C compiler flags were specified, use CFLAGS.
10267 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10269 # Allow CC to be a program name with arguments.
10272 # Save the default compiler, since it gets overwritten when the other
10273 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10274 compiler_DEFAULT=$CC
10276 # save warnings/boilerplate of simple test code
10277 ac_outfile=conftest.$ac_objext
10278 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10279 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10280 _lt_compiler_boilerplate=`cat conftest.err`
10283 ac_outfile=conftest.$ac_objext
10284 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10285 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10286 _lt_linker_boilerplate=`cat conftest.err`
10291 ## There is no encapsulation within the following macros, do not change
10292 ## the running order or otherwise move them around unless you know exactly
10293 ## what you are doing...
10294 if test -n "$compiler"; then
10296 lt_prog_compiler_no_builtin_flag=
10298 if test "$GCC" = yes; then
10299 case $cc_basename in
10301 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10303 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10307 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10311 lt_cv_prog_compiler_rtti_exceptions=no
10312 ac_outfile=conftest.$ac_objext
10313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10314 lt_compiler_flag="-fno-rtti -fno-exceptions"
10315 # Insert the option either (1) after the last *FLAGS variable, or
10316 # (2) before a word containing "conftest.", or (3) at the end.
10317 # Note that $ac_compile itself does not contain backslashes and begins
10318 # with a dollar sign (not a hyphen), so the echo should work correctly.
10319 # The option is referenced via a variable to avoid confusing sed.
10320 lt_compile=`echo "$ac_compile" | $SED \
10321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10323 -e 's:$: $lt_compiler_flag:'`
10324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10325 (eval "$lt_compile" 2>conftest.err)
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 if (exit $ac_status) && test -s "$ac_outfile"; then
10330 # The compiler can only warn and ignore the option if not recognized
10331 # So say no if there are warnings other than the usual output.
10332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10335 lt_cv_prog_compiler_rtti_exceptions=yes
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10342 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10345 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10357 lt_prog_compiler_wl=
10358 lt_prog_compiler_pic=
10359 lt_prog_compiler_static=
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10364 if test "$GCC" = yes; then
10365 lt_prog_compiler_wl='-Wl,'
10366 lt_prog_compiler_static='-static'
10370 # All AIX code is PIC.
10371 if test "$host_cpu" = ia64; then
10372 # AIX 5 now supports IA64 processor
10373 lt_prog_compiler_static='-Bstatic'
10380 # see comment about AmigaOS4 .so support
10381 lt_prog_compiler_pic='-fPIC'
10384 # FIXME: we need at least 68020 code to build shared libraries, but
10385 # adding the `-m68020' flag to GCC prevents building anything better,
10387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10393 # PIC is the default for these OSes.
10396 mingw* | cygwin* | pw32* | os2* | cegcc*)
10397 # This hack is so that the source file can tell whether it is being
10398 # built for inclusion in a dll (and should export symbols for example).
10399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10400 # (--disable-auto-import) libraries
10401 lt_prog_compiler_pic='-DDLL_EXPORT'
10404 darwin* | rhapsody*)
10405 # PIC is the default on this platform
10406 # Common symbols not allowed in MH_DYLIB files
10407 lt_prog_compiler_pic='-fno-common'
10411 # PIC is the default for Haiku.
10412 # The "-static" flag exists, but is broken.
10413 lt_prog_compiler_static=
10417 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10418 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10419 # sets the default TLS model and affects inlining.
10425 lt_prog_compiler_pic='-fPIC'
10431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10432 # Instead, we relocate shared libraries at runtime.
10436 # Just because we use GCC doesn't mean we suddenly get shared libraries
10437 # on systems that don't support them.
10438 lt_prog_compiler_can_build_shared=no
10443 # QNX uses GNU C++, but need to define -shared option too, otherwise
10444 # it will coredump.
10445 lt_prog_compiler_pic='-fPIC -shared'
10449 if test -d /usr/nec; then
10450 lt_prog_compiler_pic=-Kconform_pic
10455 lt_prog_compiler_pic='-fPIC'
10459 case $cc_basename in
10460 nvcc*) # Cuda Compiler Driver 2.2
10461 lt_prog_compiler_wl='-Xlinker '
10462 lt_prog_compiler_pic='-Xcompiler -fPIC'
10466 # PORTME Check for flag to pass linker flags through the system compiler.
10469 lt_prog_compiler_wl='-Wl,'
10470 if test "$host_cpu" = ia64; then
10471 # AIX 5 now supports IA64 processor
10472 lt_prog_compiler_static='-Bstatic'
10474 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10478 mingw* | cygwin* | pw32* | os2* | cegcc*)
10479 # This hack is so that the source file can tell whether it is being
10480 # built for inclusion in a dll (and should export symbols for example).
10481 lt_prog_compiler_pic='-DDLL_EXPORT'
10484 hpux9* | hpux10* | hpux11*)
10485 lt_prog_compiler_wl='-Wl,'
10486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10487 # not for PA HP-UX.
10493 lt_prog_compiler_pic='+Z'
10496 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10497 lt_prog_compiler_static='${wl}-a ${wl}archive'
10500 irix5* | irix6* | nonstopux*)
10501 lt_prog_compiler_wl='-Wl,'
10502 # PIC (with -KPIC) is the default.
10503 lt_prog_compiler_static='-non_shared'
10506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10507 case $cc_basename in
10508 # old Intel for x86_64 which still supported -KPIC.
10510 lt_prog_compiler_wl='-Wl,'
10511 lt_prog_compiler_pic='-KPIC'
10512 lt_prog_compiler_static='-static'
10514 # icc used to be incompatible with GCC.
10515 # ICC 10 doesn't accept -KPIC any more.
10517 lt_prog_compiler_wl='-Wl,'
10518 lt_prog_compiler_pic='-fPIC'
10519 lt_prog_compiler_static='-static'
10521 # Lahey Fortran 8.1.
10523 lt_prog_compiler_wl='-Wl,'
10524 lt_prog_compiler_pic='--shared'
10525 lt_prog_compiler_static='--static'
10527 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10528 # Portland Group compilers (*not* the Pentium gcc compiler,
10529 # which looks to be a dead project)
10530 lt_prog_compiler_wl='-Wl,'
10531 lt_prog_compiler_pic='-fpic'
10532 lt_prog_compiler_static='-Bstatic'
10535 lt_prog_compiler_wl='-Wl,'
10536 # All Alpha code is PIC.
10537 lt_prog_compiler_static='-non_shared'
10539 xl* | bgxl* | bgf* | mpixl*)
10540 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10541 lt_prog_compiler_wl='-Wl,'
10542 lt_prog_compiler_pic='-qpic'
10543 lt_prog_compiler_static='-qstaticlink'
10546 case `$CC -V 2>&1 | sed 5q` in
10547 *Sun\ F* | *Sun*Fortran*)
10548 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10549 lt_prog_compiler_pic='-KPIC'
10550 lt_prog_compiler_static='-Bstatic'
10551 lt_prog_compiler_wl=''
10555 lt_prog_compiler_pic='-KPIC'
10556 lt_prog_compiler_static='-Bstatic'
10557 lt_prog_compiler_wl='-Wl,'
10565 lt_prog_compiler_pic='-KPIC'
10566 lt_prog_compiler_static='-Bstatic'
10570 # QNX uses GNU C++, but need to define -shared option too, otherwise
10571 # it will coredump.
10572 lt_prog_compiler_pic='-fPIC -shared'
10575 osf3* | osf4* | osf5*)
10576 lt_prog_compiler_wl='-Wl,'
10577 # All OSF/1 code is PIC.
10578 lt_prog_compiler_static='-non_shared'
10582 lt_prog_compiler_static='-non_shared'
10586 lt_prog_compiler_pic='-KPIC'
10587 lt_prog_compiler_static='-Bstatic'
10588 case $cc_basename in
10589 f77* | f90* | f95*)
10590 lt_prog_compiler_wl='-Qoption ld ';;
10592 lt_prog_compiler_wl='-Wl,';;
10597 lt_prog_compiler_wl='-Qoption ld '
10598 lt_prog_compiler_pic='-PIC'
10599 lt_prog_compiler_static='-Bstatic'
10602 sysv4 | sysv4.2uw2* | sysv4.3*)
10603 lt_prog_compiler_wl='-Wl,'
10604 lt_prog_compiler_pic='-KPIC'
10605 lt_prog_compiler_static='-Bstatic'
10609 if test -d /usr/nec ;then
10610 lt_prog_compiler_pic='-Kconform_pic'
10611 lt_prog_compiler_static='-Bstatic'
10615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10616 lt_prog_compiler_wl='-Wl,'
10617 lt_prog_compiler_pic='-KPIC'
10618 lt_prog_compiler_static='-Bstatic'
10622 lt_prog_compiler_wl='-Wl,'
10623 lt_prog_compiler_can_build_shared=no
10627 lt_prog_compiler_pic='-pic'
10628 lt_prog_compiler_static='-Bstatic'
10632 lt_prog_compiler_can_build_shared=no
10638 # For platforms which do not support PIC, -DPIC is meaningless:
10640 lt_prog_compiler_pic=
10643 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10647 $as_echo "$lt_prog_compiler_pic" >&6; }
10655 # Check to make sure the PIC flag actually works.
10657 if test -n "$lt_prog_compiler_pic"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10660 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10663 lt_cv_prog_compiler_pic_works=no
10664 ac_outfile=conftest.$ac_objext
10665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10667 # Insert the option either (1) after the last *FLAGS variable, or
10668 # (2) before a word containing "conftest.", or (3) at the end.
10669 # Note that $ac_compile itself does not contain backslashes and begins
10670 # with a dollar sign (not a hyphen), so the echo should work correctly.
10671 # The option is referenced via a variable to avoid confusing sed.
10672 lt_compile=`echo "$ac_compile" | $SED \
10673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10675 -e 's:$: $lt_compiler_flag:'`
10676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10677 (eval "$lt_compile" 2>conftest.err)
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 if (exit $ac_status) && test -s "$ac_outfile"; then
10682 # The compiler can only warn and ignore the option if not recognized
10683 # So say no if there are warnings other than the usual output.
10684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10687 lt_cv_prog_compiler_pic_works=yes
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10694 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10696 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10697 case $lt_prog_compiler_pic in
10699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10702 lt_prog_compiler_pic=
10703 lt_prog_compiler_can_build_shared=no
10714 # Check to make sure the static flag actually works.
10716 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10718 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10719 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10722 lt_cv_prog_compiler_static_works=no
10723 save_LDFLAGS="$LDFLAGS"
10724 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10727 # The linker can only warn and ignore the option if not recognized
10728 # So say no if there are warnings
10729 if test -s conftest.err; then
10730 # Append any errors to the config.log.
10731 cat conftest.err 1>&5
10732 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10734 if diff conftest.exp conftest.er2 >/dev/null; then
10735 lt_cv_prog_compiler_static_works=yes
10738 lt_cv_prog_compiler_static_works=yes
10742 LDFLAGS="$save_LDFLAGS"
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10746 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10748 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10751 lt_prog_compiler_static=
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10761 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10762 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10765 lt_cv_prog_compiler_c_o=no
10766 $RM -r conftest 2>/dev/null
10770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10772 lt_compiler_flag="-o out/conftest2.$ac_objext"
10773 # Insert the option either (1) after the last *FLAGS variable, or
10774 # (2) before a word containing "conftest.", or (3) at the end.
10775 # Note that $ac_compile itself does not contain backslashes and begins
10776 # with a dollar sign (not a hyphen), so the echo should work correctly.
10777 lt_compile=`echo "$ac_compile" | $SED \
10778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10780 -e 's:$: $lt_compiler_flag:'`
10781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10782 (eval "$lt_compile" 2>out/conftest.err)
10784 cat out/conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10788 # The compiler can only warn and ignore the option if not recognized
10789 # So say no if there are warnings
10790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10793 lt_cv_prog_compiler_c_o=yes
10798 # SGI C++ compiler will create directory out/ii_files/ for
10799 # template instantiation
10800 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10801 $RM out/* && rmdir out
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10808 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10816 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10817 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10820 lt_cv_prog_compiler_c_o=no
10821 $RM -r conftest 2>/dev/null
10825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10827 lt_compiler_flag="-o out/conftest2.$ac_objext"
10828 # Insert the option either (1) after the last *FLAGS variable, or
10829 # (2) before a word containing "conftest.", or (3) at the end.
10830 # Note that $ac_compile itself does not contain backslashes and begins
10831 # with a dollar sign (not a hyphen), so the echo should work correctly.
10832 lt_compile=`echo "$ac_compile" | $SED \
10833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10835 -e 's:$: $lt_compiler_flag:'`
10836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10837 (eval "$lt_compile" 2>out/conftest.err)
10839 cat out/conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10843 # The compiler can only warn and ignore the option if not recognized
10844 # So say no if there are warnings
10845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10848 lt_cv_prog_compiler_c_o=yes
10853 # SGI C++ compiler will create directory out/ii_files/ for
10854 # template instantiation
10855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10856 $RM out/* && rmdir out
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10863 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10868 hard_links="nottested"
10869 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10870 # do not overwrite the value of need_locks provided by the user
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10872 $as_echo_n "checking if we can lock with hard links... " >&6; }
10875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10877 ln conftest.a conftest.b 2>&5 || hard_links=no
10878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10880 $as_echo "$hard_links" >&6; }
10881 if test "$hard_links" = no; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10883 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10896 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10899 allow_undefined_flag=
10900 always_export_symbols=no
10902 archive_expsym_cmds=
10903 compiler_needs_object=no
10904 enable_shared_with_static_runtimes=no
10905 export_dynamic_flag_spec=
10906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10907 hardcode_automatic=no
10909 hardcode_direct_absolute=no
10910 hardcode_libdir_flag_spec=
10911 hardcode_libdir_flag_spec_ld=
10912 hardcode_libdir_separator=
10913 hardcode_minus_L=no
10914 hardcode_shlibpath_var=unsupported
10916 link_all_deplibs=unknown
10918 module_expsym_cmds=
10919 old_archive_from_new_cmds=
10920 old_archive_from_expsyms_cmds=
10921 thread_safe_flag_spec=
10922 whole_archive_flag_spec=
10923 # include_expsyms should be a list of space-separated symbols to be *always*
10924 # included in the symbol list
10926 # exclude_expsyms can be an extended regexp of symbols to exclude
10927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10929 # as well as any symbol that contains `d'.
10930 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10932 # platforms (ab)use it in PIC code, but their linkers get confused if
10933 # the symbol is explicitly referenced. Since portable code cannot
10934 # rely on this symbol name, it's probably fine to never include it in
10935 # preloaded symbol tables.
10936 # Exclude shared library initialization/finalization symbols.
10937 extract_expsyms_cmds=
10940 cygwin* | mingw* | pw32* | cegcc*)
10941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10942 # When not using gcc, we currently assume that we are using
10943 # Microsoft Visual C++.
10944 if test "$GCC" != yes; then
10949 # we just hope/assume this is gcc and not c89 (= MSVC++)
10959 # On some targets, GNU ld is compatible enough with the native linker
10960 # that we're better off using the native interface for both.
10961 lt_use_gnu_ld_interface=no
10962 if test "$with_gnu_ld" = yes; then
10965 # The AIX port of GNU ld has always aspired to compatibility
10966 # with the native linker. However, as the warning in the GNU ld
10967 # block says, versions before 2.19.5* couldn't really create working
10968 # shared libraries, regardless of the interface used.
10969 case `$LD -v 2>&1` in
10970 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10971 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10972 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10974 lt_use_gnu_ld_interface=yes
10979 lt_use_gnu_ld_interface=yes
10984 if test "$lt_use_gnu_ld_interface" = yes; then
10985 # If archive_cmds runs LD, not CC, wlarc should be empty
10988 # Set some defaults for GNU ld with shared library support. These
10989 # are reset later if shared libraries are not supported. Putting them
10990 # here allows them to be overridden if necessary.
10991 runpath_var=LD_RUN_PATH
10992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10993 export_dynamic_flag_spec='${wl}--export-dynamic'
10994 # ancient GNU ld didn't support --whole-archive et. al.
10995 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10996 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10998 whole_archive_flag_spec=
11000 supports_anon_versioning=no
11001 case `$LD -v 2>&1` in
11002 *GNU\ gold*) supports_anon_versioning=yes ;;
11003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11006 *\ 2.11.*) ;; # other 2.11 versions
11007 *) supports_anon_versioning=yes ;;
11010 # See if GNU ld supports shared libraries.
11013 # On AIX/PPC, the GNU linker is very broken
11014 if test "$host_cpu" != ia64; then
11018 *** Warning: the GNU linker, at least up to release 2.19, is reported
11019 *** to be unable to reliably create shared libraries on AIX.
11020 *** Therefore, libtool is disabling shared libraries support. If you
11021 *** really care for shared libraries, you may want to install binutils
11022 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11023 *** You will then need to restart the configuration process.
11032 # see comment about AmigaOS4 .so support
11033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 archive_expsym_cmds=''
11037 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)'
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 hardcode_minus_L=yes
11045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11046 allow_undefined_flag=unsupported
11047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11048 # support --undefined. This deserves some investigation. FIXME
11049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055 cygwin* | mingw* | pw32* | cegcc*)
11056 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11057 # as there is no search path for DLLs.
11058 hardcode_libdir_flag_spec='-L$libdir'
11059 export_dynamic_flag_spec='${wl}--export-all-symbols'
11060 allow_undefined_flag=unsupported
11061 always_export_symbols=no
11062 enable_shared_with_static_runtimes=yes
11063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11065 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11067 # If the export-symbols file already is a .def file (1st line
11068 # is EXPORTS), use it as is; otherwise, prepend...
11069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11070 cp $export_symbols $output_objdir/$soname.def;
11072 echo EXPORTS > $output_objdir/$soname.def;
11073 cat $export_symbols >> $output_objdir/$soname.def;
11075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083 link_all_deplibs=yes
11088 hardcode_shlibpath_var=no
11089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11090 export_dynamic_flag_spec='${wl}-E'
11091 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11092 # Instead, shared libraries are loaded at an image base (0x10000000 by
11093 # default) and relocated if they conflict, which is a slow very memory
11094 # consuming and fragmenting process. To avoid this, we pick a random,
11095 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11096 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11097 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11098 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'
11101 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11103 if test "$host_os" = linux-dietlibc; then
11104 case $cc_basename in
11105 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11108 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11109 && test "$tmp_diet" = no
11112 tmp_sharedflag='-shared'
11113 case $cc_basename,$host_cpu in
11114 pgcc*) # Portland Group C compiler
11115 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11116 tmp_addflag=' $pic_flag'
11118 pgf77* | pgf90* | pgf95* | pgfortran*)
11119 # Portland Group f77 and f90 compilers
11120 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11121 tmp_addflag=' $pic_flag -Mnomain' ;;
11122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11123 tmp_addflag=' -i_dynamic' ;;
11124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11125 tmp_addflag=' -i_dynamic -nofor_main' ;;
11126 ifc* | ifort*) # Intel Fortran compiler
11127 tmp_addflag=' -nofor_main' ;;
11128 lf95*) # Lahey Fortran 8.1
11129 whole_archive_flag_spec=
11130 tmp_sharedflag='--shared' ;;
11131 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11132 tmp_sharedflag='-qmkshrobj'
11134 nvcc*) # Cuda Compiler Driver 2.2
11135 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11136 compiler_needs_object=yes
11139 case `$CC -V 2>&1 | sed 5q` in
11140 *Sun\ C*) # Sun C 5.9
11141 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11142 compiler_needs_object=yes
11143 tmp_sharedflag='-G' ;;
11144 *Sun\ F*) # Sun Fortran 8.3
11145 tmp_sharedflag='-G' ;;
11147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11149 if test "x$supports_anon_versioning" = xyes; then
11150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11152 echo "local: *; };" >> $output_objdir/$libname.ver~
11153 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11156 case $cc_basename in
11157 xlf* | bgf* | bgxlf* | mpixlf*)
11158 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11159 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11160 hardcode_libdir_flag_spec=
11161 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11162 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11163 if test "x$supports_anon_versioning" = xyes; then
11164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11166 echo "local: *; };" >> $output_objdir/$libname.ver~
11167 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11192 *** create shared libraries on Solaris systems. Therefore, libtool
11193 *** is disabling shared libraries support. We urge you to upgrade GNU
11194 *** binutils to release 2.9.1 or newer. Another option is to modify
11195 *** your PATH or compiler configuration so that the native linker is
11196 *** used, and then restart.
11199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11208 case `$LD -v 2>&1` in
11209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11214 *** reliably create shared libraries on SCO systems. Therefore, libtool
11215 *** is disabling shared libraries support. We urge you to upgrade GNU
11216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11217 *** your PATH or compiler configuration so that the native linker is
11218 *** used, and then restart.
11223 # For security reasons, it is highly recommended that you always
11224 # use absolute paths for naming shared libraries, and exclude the
11225 # DT_RUNPATH tag from executables and libraries. But doing so
11226 # requires that you compile everything twice, which is a pain.
11227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11241 hardcode_direct=yes
11242 hardcode_shlibpath_var=no
11246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11255 if test "$ld_shlibs" = no; then
11257 hardcode_libdir_flag_spec=
11258 export_dynamic_flag_spec=
11259 whole_archive_flag_spec=
11262 # PORTME fill in a description of your system's linker (not GNU ld)
11265 allow_undefined_flag=unsupported
11266 always_export_symbols=yes
11267 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'
11268 # Note: this linker hardcodes the directories in LIBPATH if there
11269 # are no directories specified by -L.
11270 hardcode_minus_L=yes
11271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11272 # Neither direct hardcoding nor static linking is supported with a
11274 hardcode_direct=unsupported
11279 if test "$host_cpu" = ia64; then
11280 # On IA64, the linker does run time linking by default, so we don't
11281 # have to do anything special.
11282 aix_use_runtimelinking=no
11283 exp_sym_flag='-Bexport'
11286 # If we're using GNU nm, then we don't want the "-C" option.
11287 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11288 # Also, AIX nm treats weak defined symbols like other global
11289 # defined symbols, whereas GNU nm marks them as "W".
11290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11291 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11293 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'
11295 aix_use_runtimelinking=no
11297 # Test if we are trying to use run time linking or normal
11298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11299 # need to do runtime linking.
11300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11301 for ld_flag in $LDFLAGS; do
11302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11303 aix_use_runtimelinking=yes
11310 exp_sym_flag='-bexport'
11311 no_entry_flag='-bnoentry'
11314 # When large executables or shared objects are built, AIX ld can
11315 # have problems creating the table of contents. If linking a library
11316 # or program results in "error TOC overflow" add -mminimal-toc to
11317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11321 hardcode_direct=yes
11322 hardcode_direct_absolute=yes
11323 hardcode_libdir_separator=':'
11324 link_all_deplibs=yes
11325 file_list_spec='${wl}-f,'
11327 if test "$GCC" = yes; then
11328 case $host_os in aix4.[012]|aix4.[012].*)
11329 # We only want to do this on AIX 4.2 and lower, the check
11330 # below for broken collect2 doesn't work under 4.3+
11331 collect2name=`${CC} -print-prog-name=collect2`
11332 if test -f "$collect2name" &&
11333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11335 # We have reworked collect2
11338 # We have old collect2
11339 hardcode_direct=unsupported
11340 # It fails to find uninstalled libraries when the uninstalled
11341 # path is not listed in the libpath. Setting hardcode_minus_L
11342 # to unsupported forces relinking
11343 hardcode_minus_L=yes
11344 hardcode_libdir_flag_spec='-L$libdir'
11345 hardcode_libdir_separator=
11349 shared_flag='-shared'
11350 if test "$aix_use_runtimelinking" = yes; then
11351 shared_flag="$shared_flag "'${wl}-G'
11355 if test "$host_cpu" = ia64; then
11356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11357 # chokes on -Wl,-G. The following line is correct:
11360 if test "$aix_use_runtimelinking" = yes; then
11361 shared_flag='${wl}-G'
11363 shared_flag='${wl}-bM:SRE'
11368 export_dynamic_flag_spec='${wl}-bexpall'
11369 # It seems that -bexpall does not export symbols beginning with
11370 # underscore (_), so it is better to generate a list of symbols to export.
11371 always_export_symbols=yes
11372 if test "$aix_use_runtimelinking" = yes; then
11373 # Warning - without using the other runtime loading flags (-brtl),
11374 # -berok will link without error, but may produce a broken library.
11375 allow_undefined_flag='-berok'
11376 # Determine the default libpath from the value encoded in an
11377 # empty executable.
11378 if test x$gcc_no_link = xyes; then
11379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11392 if ac_fn_c_try_link "$LINENO"; then :
11394 lt_aix_libpath_sed='
11395 /Import File Strings/,/^$/ {
11401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 # Check for a 64-bit object if we didn't find anything.
11403 if test -z "$aix_libpath"; then
11404 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11411 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11412 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11414 if test "$host_cpu" = ia64; then
11415 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11416 allow_undefined_flag="-z nodefs"
11417 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"
11419 # Determine the default libpath from the value encoded in an
11420 # empty executable.
11421 if test x$gcc_no_link = xyes; then
11422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11435 if ac_fn_c_try_link "$LINENO"; then :
11437 lt_aix_libpath_sed='
11438 /Import File Strings/,/^$/ {
11444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11445 # Check for a 64-bit object if we didn't find anything.
11446 if test -z "$aix_libpath"; then
11447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11455 # Warning - without using the other run time loading flags,
11456 # -berok will link without error, but may produce a broken library.
11457 no_undefined_flag=' ${wl}-bernotok'
11458 allow_undefined_flag=' ${wl}-berok'
11459 if test "$with_gnu_ld" = yes; then
11460 # We only use this code for GNU lds that support --whole-archive.
11461 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11463 # Exported symbols can be pulled into shared objects from archives
11464 whole_archive_flag_spec='$convenience'
11466 archive_cmds_need_lc=yes
11467 # This is similar to how AIX traditionally builds its shared libraries.
11468 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'
11476 # see comment about AmigaOS4 .so support
11477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11478 archive_expsym_cmds=''
11481 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)'
11482 hardcode_libdir_flag_spec='-L$libdir'
11483 hardcode_minus_L=yes
11489 export_dynamic_flag_spec=-rdynamic
11492 cygwin* | mingw* | pw32* | cegcc*)
11493 # When not using gcc, we currently assume that we are using
11494 # Microsoft Visual C++.
11495 # hardcode_libdir_flag_spec is actually meaningless, as there is
11496 # no search path for DLLs.
11497 hardcode_libdir_flag_spec=' '
11498 allow_undefined_flag=unsupported
11499 # Tell ltmain to make .lib files, not .a files.
11501 # Tell ltmain to make .dll files, not .so files.
11503 # FIXME: Setting linknames here is a bad hack.
11504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11505 # The linker will automatically build a .lib file if we build a DLL.
11506 old_archive_from_new_cmds='true'
11507 # FIXME: Should let the user specify the lib program.
11508 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11509 fix_srcfile_path='`cygpath -w "$srcfile"`'
11510 enable_shared_with_static_runtimes=yes
11513 darwin* | rhapsody*)
11516 archive_cmds_need_lc=no
11518 hardcode_automatic=yes
11519 hardcode_shlibpath_var=unsupported
11520 if test "$lt_cv_ld_force_load" = "yes"; then
11521 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11523 whole_archive_flag_spec=''
11525 link_all_deplibs=yes
11526 allow_undefined_flag="$_lt_dar_allow_undefined"
11527 case $cc_basename in
11528 ifort*) _lt_dar_can_shared=yes ;;
11529 *) _lt_dar_can_shared=$GCC ;;
11531 if test "$_lt_dar_can_shared" = "yes"; then
11532 output_verbose_link_cmd=func_echo_all
11533 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11534 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11535 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11536 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11546 hardcode_libdir_flag_spec='-L$libdir'
11547 hardcode_shlibpath_var=no
11554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11555 # support. Future versions do this automatically, but an explicit c++rt0.o
11556 # does not break anything, and helps significantly (at the cost of a little
11559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11560 hardcode_libdir_flag_spec='-R$libdir'
11561 hardcode_direct=yes
11562 hardcode_shlibpath_var=no
11565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11568 hardcode_direct=yes
11569 hardcode_minus_L=yes
11570 hardcode_shlibpath_var=no
11573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11574 freebsd* | dragonfly*)
11575 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11576 hardcode_libdir_flag_spec='-R$libdir'
11577 hardcode_direct=yes
11578 hardcode_shlibpath_var=no
11582 if test "$GCC" = yes; then
11583 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'
11585 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'
11587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11588 hardcode_libdir_separator=:
11589 hardcode_direct=yes
11591 # hardcode_minus_L: Not really in the search PATH,
11592 # but as the default location of the library.
11593 hardcode_minus_L=yes
11594 export_dynamic_flag_spec='${wl}-E'
11598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11603 if test "$with_gnu_ld" = no; then
11604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11605 hardcode_libdir_flag_spec_ld='+b $libdir'
11606 hardcode_libdir_separator=:
11607 hardcode_direct=yes
11608 hardcode_direct_absolute=yes
11609 export_dynamic_flag_spec='${wl}-E'
11610 # hardcode_minus_L: Not really in the search PATH,
11611 # but as the default location of the library.
11612 hardcode_minus_L=yes
11617 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11639 # Older versions of the 11.00 compiler do not understand -b yet
11640 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11642 $as_echo_n "checking if $CC understands -b... " >&6; }
11643 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
11646 lt_cv_prog_compiler__b=no
11647 save_LDFLAGS="$LDFLAGS"
11648 LDFLAGS="$LDFLAGS -b"
11649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11651 # The linker can only warn and ignore the option if not recognized
11652 # So say no if there are warnings
11653 if test -s conftest.err; then
11654 # Append any errors to the config.log.
11655 cat conftest.err 1>&5
11656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11658 if diff conftest.exp conftest.er2 >/dev/null; then
11659 lt_cv_prog_compiler__b=yes
11662 lt_cv_prog_compiler__b=yes
11666 LDFLAGS="$save_LDFLAGS"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11670 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11672 if test x"$lt_cv_prog_compiler__b" = xyes; then
11673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11681 if test "$with_gnu_ld" = no; then
11682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11683 hardcode_libdir_separator=:
11688 hardcode_shlibpath_var=no
11691 hardcode_direct=yes
11692 hardcode_direct_absolute=yes
11693 export_dynamic_flag_spec='${wl}-E'
11695 # hardcode_minus_L: Not really in the search PATH,
11696 # but as the default location of the library.
11697 hardcode_minus_L=yes
11703 irix5* | irix6* | nonstopux*)
11704 if test "$GCC" = yes; then
11705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11706 # Try to use the -exported_symbol ld option, if it does not
11707 # work, assume that -exports_file does not work either and
11708 # implicitly export all symbols.
11709 save_LDFLAGS="$LDFLAGS"
11710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11711 if test x$gcc_no_link = xyes; then
11712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11724 LDFLAGS="$save_LDFLAGS"
11726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11729 archive_cmds_need_lc='no'
11730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11731 hardcode_libdir_separator=:
11733 link_all_deplibs=yes
11737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11740 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11742 hardcode_libdir_flag_spec='-R$libdir'
11743 hardcode_direct=yes
11744 hardcode_shlibpath_var=no
11748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11749 hardcode_direct=yes
11750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11751 hardcode_libdir_separator=:
11752 hardcode_shlibpath_var=no
11759 if test -f /usr/libexec/ld.so; then
11760 hardcode_direct=yes
11761 hardcode_shlibpath_var=no
11762 hardcode_direct_absolute=yes
11763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11765 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11767 export_dynamic_flag_spec='${wl}-E'
11770 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11772 hardcode_libdir_flag_spec='-R$libdir'
11775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11786 hardcode_libdir_flag_spec='-L$libdir'
11787 hardcode_minus_L=yes
11788 allow_undefined_flag=unsupported
11789 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'
11790 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11794 if test "$GCC" = yes; then
11795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11796 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11798 allow_undefined_flag=' -expect_unresolved \*'
11799 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11801 archive_cmds_need_lc='no'
11802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11803 hardcode_libdir_separator=:
11806 osf4* | osf5*) # as osf3* with the addition of -msym flag
11807 if test "$GCC" = yes; then
11808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11809 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11812 allow_undefined_flag=' -expect_unresolved \*'
11813 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11814 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~
11815 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11817 # Both c and cxx compiler support -rpath directly
11818 hardcode_libdir_flag_spec='-rpath $libdir'
11820 archive_cmds_need_lc='no'
11821 hardcode_libdir_separator=:
11825 no_undefined_flag=' -z defs'
11826 if test "$GCC" = yes; then
11828 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11830 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11832 case `$CC -V 2>&1` in
11835 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11837 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11841 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11843 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11847 hardcode_libdir_flag_spec='-R$libdir'
11848 hardcode_shlibpath_var=no
11850 solaris2.[0-5] | solaris2.[0-5].*) ;;
11852 # The compiler driver will combine and reorder linker options,
11853 # but understands `-z linker_flag'. GCC discards it without `$wl',
11854 # but is careful enough not to reorder.
11855 # Supported since Solaris 2.6 (maybe 2.5.1?)
11856 if test "$GCC" = yes; then
11857 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11859 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11863 link_all_deplibs=yes
11867 if test "x$host_vendor" = xsequent; then
11868 # Use $CC to link under sequent, because it throws in some extra .o
11869 # files that make .init and .fini sections work.
11870 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11874 hardcode_libdir_flag_spec='-L$libdir'
11875 hardcode_direct=yes
11876 hardcode_minus_L=yes
11877 hardcode_shlibpath_var=no
11881 case $host_vendor in
11883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11884 hardcode_direct=yes # is this really true???
11887 ## LD is ld it makes a PLAMLIB
11888 ## CC just makes a GrossModule.
11889 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11890 reload_cmds='$CC -r -o $output$reload_objs'
11894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11898 runpath_var='LD_RUN_PATH'
11899 hardcode_shlibpath_var=no
11903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904 hardcode_shlibpath_var=no
11905 export_dynamic_flag_spec='-Bexport'
11909 if test -d /usr/nec; then
11910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11911 hardcode_shlibpath_var=no
11912 runpath_var=LD_RUN_PATH
11913 hardcode_runpath_var=yes
11918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11919 no_undefined_flag='${wl}-z,text'
11920 archive_cmds_need_lc=no
11921 hardcode_shlibpath_var=no
11922 runpath_var='LD_RUN_PATH'
11924 if test "$GCC" = yes; then
11925 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 sysv5* | sco3.2v5* | sco5v6*)
11934 # Note: We can NOT use -z defs as we might desire, because we do not
11935 # link with -lc, and that would cause any symbols used from libc to
11936 # always be unresolved, which means just about no library would
11937 # ever link correctly. If we're not using GNU ld we use -z text
11938 # though, which does catch some bad symbols but isn't as heavy-handed
11940 no_undefined_flag='${wl}-z,text'
11941 allow_undefined_flag='${wl}-z,nodefs'
11942 archive_cmds_need_lc=no
11943 hardcode_shlibpath_var=no
11944 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11945 hardcode_libdir_separator=':'
11946 link_all_deplibs=yes
11947 export_dynamic_flag_spec='${wl}-Bexport'
11948 runpath_var='LD_RUN_PATH'
11950 if test "$GCC" = yes; then
11951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11961 hardcode_libdir_flag_spec='-L$libdir'
11962 hardcode_shlibpath_var=no
11970 if test x$host_vendor = xsni; then
11972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11973 export_dynamic_flag_spec='${wl}-Blargedynsym'
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11980 $as_echo "$ld_shlibs" >&6; }
11981 test "$ld_shlibs" = no && can_build_shared=no
11983 with_gnu_ld=$with_gnu_ld
12000 # Do we need to explicitly link libc?
12002 case "x$archive_cmds_need_lc" in
12004 # Assume -lc should be added
12005 archive_cmds_need_lc=yes
12007 if test "$enable_shared" = yes && test "$GCC" = yes; then
12008 case $archive_cmds in
12010 # FIXME: we may have to deal with multi-command sequences.
12013 # Test whether the compiler implicitly links with -lc since on some
12014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12015 # to ld, don't add -lc before -lgcc.
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12017 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12018 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12025 (eval $ac_compile) 2>&5
12027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028 test $ac_status = 0; } 2>conftest.err; then
12031 libobjs=conftest.$ac_objext
12033 wl=$lt_prog_compiler_wl
12034 pic_flag=$lt_prog_compiler_pic
12040 lt_save_allow_undefined_flag=$allow_undefined_flag
12041 allow_undefined_flag=
12042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12043 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12046 test $ac_status = 0; }
12048 lt_cv_archive_cmds_need_lc=no
12050 lt_cv_archive_cmds_need_lc=yes
12052 allow_undefined_flag=$lt_save_allow_undefined_flag
12054 cat conftest.err 1>&5
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12060 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12061 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12225 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12227 if test "$GCC" = yes; then
12229 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12230 *) lt_awk_arg="/^libraries:/" ;;
12233 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12234 *) lt_sed_strip_eq="s,=/,/,g" ;;
12236 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12237 case $lt_search_path_spec in
12239 # if the path contains ";" then we assume it to be the separator
12240 # otherwise default to the standard path separator (i.e. ":") - it is
12241 # assumed that no part of a normal pathname contains ";" but that should
12242 # okay in the real world where ";" in dirpaths is itself problematic.
12243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12249 # Ok, now we have the path, separated by spaces, we can step through it
12250 # and add multilib dir if necessary.
12251 lt_tmp_lt_search_path_spec=
12252 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12253 for lt_sys_path in $lt_search_path_spec; do
12254 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12257 test -d "$lt_sys_path" && \
12258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12261 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12262 BEGIN {RS=" "; FS="/|\n";} {
12265 for (lt_i = NF; lt_i > 0; lt_i--) {
12266 if ($lt_i != "" && $lt_i != ".") {
12267 if ($lt_i == "..") {
12270 if (lt_count == 0) {
12271 lt_foo="/" $lt_i lt_foo;
12278 if (lt_foo != "") { lt_freq[lt_foo]++; }
12279 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12281 # AWK program above erroneously prepends '/' to C:/dos/paths
12284 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12285 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12287 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12291 library_names_spec=
12292 libname_spec='lib$name'
12296 postuninstall_cmds=
12300 shlibpath_overrides_runpath=unknown
12302 dynamic_linker="$host_os ld.so"
12303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12304 need_lib_prefix=unknown
12305 hardcode_into_libs=no
12307 # when you set need_version to no, make sure it does not cause -set_version
12308 # flags to be left without arguments
12309 need_version=unknown
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12315 shlibpath_var=LIBPATH
12317 # AIX 3 has no versioning support, so we append a major version to the name.
12318 soname_spec='${libname}${release}${shared_ext}$major'
12325 hardcode_into_libs=yes
12326 if test "$host_cpu" = ia64; then
12327 # AIX 5 supports IA64
12328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12329 shlibpath_var=LD_LIBRARY_PATH
12331 # With GCC up to 2.95.x, collect2 would create an import file
12332 # for dependence libraries. The import file would start with
12333 # the line `#! .'. This would cause the generated library to
12334 # depend on `.', always an invalid library. This was fixed in
12335 # development snapshots of GCC prior to 3.0.
12337 aix4 | aix4.[01] | aix4.[01].*)
12338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12343 can_build_shared=no
12347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12348 # soname into executable. Probably we can add versioning support to
12349 # collect2, so additional links can be useful in future.
12350 if test "$aix_use_runtimelinking" = yes; then
12351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12352 # instead of lib<name>.a to let people know that these are not
12353 # typical AIX shared libraries.
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 # We preserve .a as extension for shared libraries through AIX4.2
12357 # and later when we are not doing run time linking.
12358 library_names_spec='${libname}${release}.a $libname.a'
12359 soname_spec='${libname}${release}${shared_ext}$major'
12361 shlibpath_var=LIBPATH
12368 # Since July 2007 AmigaOS4 officially supports .so libraries.
12369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373 library_names_spec='$libname.ixlibrary $libname.a'
12374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12375 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12381 library_names_spec='${libname}${shared_ext}'
12382 dynamic_linker="$host_os ld.so"
12383 shlibpath_var=LIBRARY_PATH
12389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12390 soname_spec='${libname}${release}${shared_ext}$major'
12391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12395 # the default ld.so.conf also contains /usr/contrib/lib and
12396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12397 # libtool to hard-code these into programs
12400 cygwin* | mingw* | pw32* | cegcc*)
12401 version_type=windows
12406 case $GCC,$host_os in
12407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12408 library_names_spec='$libname.dll.a'
12409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410 postinstall_cmds='base_file=`basename \${file}`~
12411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12412 dldir=$destdir/`dirname \$dlpath`~
12413 test -d \$dldir || mkdir -p \$dldir~
12414 $install_prog $dir/$dlname \$dldir/$dlname~
12415 chmod a+x \$dldir/$dlname~
12416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420 dlpath=$dir/\$dldll~
12422 shlibpath_overrides_runpath=yes
12426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12432 # MinGW DLLs use traditional 'lib' prefix
12433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12436 # pw32 DLLs use 'pw' prefix rather than 'lib'
12437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12446 dynamic_linker='Win32 ld.exe'
12447 # FIXME: first we should search . and the directory the executable is in
12451 darwin* | rhapsody*)
12452 dynamic_linker="$host_os dyld"
12453 version_type=darwin
12456 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12457 soname_spec='${libname}${release}${major}$shared_ext'
12458 shlibpath_overrides_runpath=yes
12459 shlibpath_var=DYLD_LIBRARY_PATH
12460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12471 soname_spec='${libname}${release}${shared_ext}$major'
12472 shlibpath_var=LD_LIBRARY_PATH
12479 freebsd* | dragonfly*)
12480 # DragonFly does not have aout. When/if they implement a new
12481 # versioning mechanism, adjust this.
12482 if test -x /usr/bin/objformat; then
12483 objformat=`/usr/bin/objformat`
12486 freebsd[123]*) objformat=aout ;;
12487 *) objformat=elf ;;
12490 version_type=freebsd-$objformat
12491 case $version_type in
12493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12502 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=yes
12507 freebsd3.[01]* | freebsdelf3.[01]*)
12508 shlibpath_overrides_runpath=yes
12509 hardcode_into_libs=yes
12511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12513 shlibpath_overrides_runpath=no
12514 hardcode_into_libs=yes
12516 *) # from 4.6 on, and DragonFly
12517 shlibpath_overrides_runpath=yes
12518 hardcode_into_libs=yes
12527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12528 soname_spec='${libname}${release}${shared_ext}$major'
12529 shlibpath_var=LD_LIBRARY_PATH
12530 hardcode_into_libs=yes
12537 dynamic_linker="$host_os runtime_loader"
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12539 soname_spec='${libname}${release}${shared_ext}$major'
12540 shlibpath_var=LIBRARY_PATH
12541 shlibpath_overrides_runpath=yes
12542 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12543 hardcode_into_libs=yes
12546 hpux9* | hpux10* | hpux11*)
12547 # Give a soname corresponding to the major version so that dld.sl refuses to
12548 # link against other versions.
12555 hardcode_into_libs=yes
12556 dynamic_linker="$host_os dld.so"
12557 shlibpath_var=LD_LIBRARY_PATH
12558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 if test "X$HPUX_IA64_MODE" = X32; then
12562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12570 hardcode_into_libs=yes
12571 dynamic_linker="$host_os dld.sl"
12572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12575 soname_spec='${libname}${release}${shared_ext}$major'
12576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12581 dynamic_linker="$host_os dld.sl"
12582 shlibpath_var=SHLIB_PATH
12583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12585 soname_spec='${libname}${release}${shared_ext}$major'
12588 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12589 postinstall_cmds='chmod 555 $lib'
12590 # or fails outright, so override atomically:
12591 install_override_mode=555
12598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12599 soname_spec='${libname}${release}${shared_ext}$major'
12600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 shlibpath_overrides_runpath=no
12603 hardcode_into_libs=yes
12606 irix5* | irix6* | nonstopux*)
12608 nonstopux*) version_type=nonstopux ;;
12610 if test "$lt_cv_prog_gnu_ld" = yes; then
12618 soname_spec='${libname}${release}${shared_ext}$major'
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12621 irix5* | nonstopux*)
12622 libsuff= shlibsuff=
12625 case $LD in # libtool.m4 will add one of these switches to LD
12626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12627 libsuff= shlibsuff= libmagic=32-bit;;
12628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12629 libsuff=32 shlibsuff=N32 libmagic=N32;;
12630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12632 *) libsuff= shlibsuff= libmagic=never-match;;
12636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12637 shlibpath_overrides_runpath=no
12638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12640 hardcode_into_libs=yes
12643 # No shared lib support for Linux oldld, aout, or coff.
12644 linux*oldld* | linux*aout* | linux*coff*)
12648 # This must be Linux ELF.
12649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 shlibpath_overrides_runpath=no
12659 # Some binutils ld are patched to set DT_RUNPATH
12660 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12663 lt_cv_shlibpath_overrides_runpath=no
12664 save_LDFLAGS=$LDFLAGS
12665 save_libdir=$libdir
12666 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12667 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12668 if test x$gcc_no_link = xyes; then
12669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12682 if ac_fn_c_try_link "$LINENO"; then :
12683 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12684 lt_cv_shlibpath_overrides_runpath=yes
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LDFLAGS=$save_LDFLAGS
12690 libdir=$save_libdir
12694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12696 # This implies no fast_install, which is unacceptable.
12697 # Some rework will be needed to allow for fast_install
12698 # before this can be enabled.
12699 hardcode_into_libs=yes
12701 # Append ld.so.conf contents to the search path
12702 if test -f /etc/ld.so.conf; then
12703 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12707 # We used to test for /lib/ld.so.1 and disable shared libraries on
12708 # powerpc, because MkLinux only supported shared libraries with the
12709 # GNU dynamic linker. Since this was broken with cross compilers,
12710 # most powerpc-linux boxes support dynamic linking these days and
12711 # people can always --disable-shared, the test was removed, and we
12712 # assume the GNU/Linux dynamic linker is in use.
12713 dynamic_linker='GNU/Linux ld.so'
12720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12723 dynamic_linker='NetBSD (a.out) ld.so'
12725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12726 soname_spec='${libname}${release}${shared_ext}$major'
12727 dynamic_linker='NetBSD ld.elf_so'
12729 shlibpath_var=LD_LIBRARY_PATH
12730 shlibpath_overrides_runpath=yes
12731 hardcode_into_libs=yes
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 shlibpath_overrides_runpath=yes
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12746 soname_spec='${libname}${release}${shared_ext}$major'
12747 shlibpath_var=LD_LIBRARY_PATH
12748 shlibpath_overrides_runpath=no
12749 hardcode_into_libs=yes
12750 dynamic_linker='ldqnx.so'
12755 sys_lib_dlsearch_path_spec="/usr/lib"
12757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12759 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12760 *) need_version=no ;;
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12767 openbsd2.[89] | openbsd2.[89].*)
12768 shlibpath_overrides_runpath=no
12771 shlibpath_overrides_runpath=yes
12775 shlibpath_overrides_runpath=yes
12780 libname_spec='$name'
12783 library_names_spec='$libname${shared_ext} $libname.a'
12784 dynamic_linker='OS/2 ld.exe'
12785 shlibpath_var=LIBPATH
12788 osf3* | osf4* | osf5*)
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794 shlibpath_var=LD_LIBRARY_PATH
12795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 shlibpath_overrides_runpath=yes
12811 hardcode_into_libs=yes
12812 # ldd complains unless libraries are executable
12813 postinstall_cmds='chmod +x $lib'
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=yes
12822 if test "$with_gnu_ld" = yes; then
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 case $host_vendor in
12835 shlibpath_overrides_runpath=no
12837 runpath_var=LD_RUN_PATH
12845 shlibpath_overrides_runpath=no
12846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12852 if test -d /usr/nec ;then
12854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12855 soname_spec='$libname${shared_ext}.$major'
12856 shlibpath_var=LD_LIBRARY_PATH
12860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12861 version_type=freebsd-elf
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12865 soname_spec='${libname}${release}${shared_ext}$major'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 shlibpath_overrides_runpath=yes
12868 hardcode_into_libs=yes
12869 if test "$with_gnu_ld" = yes; then
12870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12879 sys_lib_dlsearch_path_spec='/usr/lib'
12883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888 shlibpath_var=LD_LIBRARY_PATH
12889 shlibpath_overrides_runpath=no
12890 hardcode_into_libs=yes
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 soname_spec='${libname}${release}${shared_ext}$major'
12897 shlibpath_var=LD_LIBRARY_PATH
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12905 $as_echo "$dynamic_linker" >&6; }
12906 test "$dynamic_linker" = no && can_build_shared=no
12908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12909 if test "$GCC" = yes; then
12910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12914 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12916 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13012 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13014 if test -n "$hardcode_libdir_flag_spec" ||
13015 test -n "$runpath_var" ||
13016 test "X$hardcode_automatic" = "Xyes" ; then
13018 # We can hardcode non-existent directories.
13019 if test "$hardcode_direct" != no &&
13020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13021 # have to relink, otherwise we might link with an installed library
13022 # when we should be linking with a yet-to-be-installed one
13023 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13024 test "$hardcode_minus_L" != no; then
13025 # Linking always hardcodes the temporary library directory.
13026 hardcode_action=relink
13028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13029 hardcode_action=immediate
13032 # We cannot hardcode anything, or else we can only hardcode existing
13034 hardcode_action=unsupported
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13037 $as_echo "$hardcode_action" >&6; }
13039 if test "$hardcode_action" = relink ||
13040 test "$inherit_rpath" = yes; then
13041 # Fast installation is not supported
13042 enable_fast_install=no
13043 elif test "$shlibpath_overrides_runpath" = yes ||
13044 test "$enable_shared" = no; then
13045 # Fast installation is not necessary
13046 enable_fast_install=needless
13054 if test "x$enable_dlopen" != xyes; then
13055 enable_dlopen=unknown
13056 enable_dlopen_self=unknown
13057 enable_dlopen_self_static=unknown
13064 lt_cv_dlopen="load_add_on"
13066 lt_cv_dlopen_self=yes
13069 mingw* | pw32* | cegcc*)
13070 lt_cv_dlopen="LoadLibrary"
13075 lt_cv_dlopen="dlopen"
13080 # if libdl is installed we need to link against it
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13082 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13083 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13086 ac_check_lib_save_LIBS=$LIBS
13088 if test x$gcc_no_link = xyes; then
13089 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13094 /* Override any GCC internal prototype to avoid an error.
13095 Use char because int might match the return type of a GCC
13096 builtin and then its argument prototype would still apply. */
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 ac_cv_lib_dl_dlopen=yes
13112 ac_cv_lib_dl_dlopen=no
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116 LIBS=$ac_check_lib_save_LIBS
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13120 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13124 lt_cv_dlopen="dyld"
13126 lt_cv_dlopen_self=yes
13133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13134 if test "x$ac_cv_func_shl_load" = x""yes; then :
13135 lt_cv_dlopen="shl_load"
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13138 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13139 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
13142 ac_check_lib_save_LIBS=$LIBS
13144 if test x$gcc_no_link = xyes; then
13145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13150 /* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13160 return shl_load ();
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 ac_cv_lib_dld_shl_load=yes
13168 ac_cv_lib_dld_shl_load=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13175 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13176 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13177 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13179 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13180 if test "x$ac_cv_func_dlopen" = x""yes; then :
13181 lt_cv_dlopen="dlopen"
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13186 $as_echo_n "(cached) " >&6
13188 ac_check_lib_save_LIBS=$LIBS
13190 if test x$gcc_no_link = xyes; then
13191 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 ac_cv_lib_dl_dlopen=yes
13214 ac_cv_lib_dl_dlopen=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13222 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13226 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13227 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13230 ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-lsvld $LIBS"
13232 if test x$gcc_no_link = xyes; then
13233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13238 /* Override any GCC internal prototype to avoid an error.
13239 Use char because int might match the return type of a GCC
13240 builtin and then its argument prototype would still apply. */
13253 if ac_fn_c_try_link "$LINENO"; then :
13254 ac_cv_lib_svld_dlopen=yes
13256 ac_cv_lib_svld_dlopen=no
13258 rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13264 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13268 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13269 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 ac_check_lib_save_LIBS=$LIBS
13274 if test x$gcc_no_link = xyes; then
13275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13290 return dld_link ();
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_lib_dld_dld_link=yes
13298 ac_cv_lib_dld_dld_link=no
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13305 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13306 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13307 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13328 if test "x$lt_cv_dlopen" != xno; then
13334 case $lt_cv_dlopen in
13336 save_CPPFLAGS="$CPPFLAGS"
13337 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13339 save_LDFLAGS="$LDFLAGS"
13340 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13343 LIBS="$lt_cv_dlopen_libs $LIBS"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13346 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13347 if test "${lt_cv_dlopen_self+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13350 if test "$cross_compiling" = yes; then :
13351 lt_cv_dlopen_self=cross
13353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13354 lt_status=$lt_dlunknown
13355 cat > conftest.$ac_ext <<_LT_EOF
13356 #line 13356 "configure"
13357 #include "confdefs.h"
13366 # define LT_DLGLOBAL RTLD_GLOBAL
13369 # define LT_DLGLOBAL DL_GLOBAL
13371 # define LT_DLGLOBAL 0
13375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13376 find out it does not work in some platform. */
13377 #ifndef LT_DLLAZY_OR_NOW
13379 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13382 # define LT_DLLAZY_OR_NOW DL_LAZY
13385 # define LT_DLLAZY_OR_NOW RTLD_NOW
13388 # define LT_DLLAZY_OR_NOW DL_NOW
13390 # define LT_DLLAZY_OR_NOW 0
13397 /* When -fvisbility=hidden is used, assume the code has been annotated
13398 correspondingly for the symbols needed. */
13399 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13400 void fnord () __attribute__((visibility("default")));
13403 void fnord () { int i=42; }
13406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13407 int status = $lt_dlunknown;
13411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13414 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13415 else puts (dlerror ());
13417 /* dlclose (self); */
13425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13426 (eval $ac_link) 2>&5
13428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13429 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13430 (./conftest; exit; ) >&5 2>/dev/null
13432 case x$lt_status in
13433 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13434 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13435 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13438 # compilation failed
13439 lt_cv_dlopen_self=no
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13447 $as_echo "$lt_cv_dlopen_self" >&6; }
13449 if test "x$lt_cv_dlopen_self" = xyes; then
13450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13452 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13453 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13456 if test "$cross_compiling" = yes; then :
13457 lt_cv_dlopen_self_static=cross
13459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13460 lt_status=$lt_dlunknown
13461 cat > conftest.$ac_ext <<_LT_EOF
13462 #line 13462 "configure"
13463 #include "confdefs.h"
13472 # define LT_DLGLOBAL RTLD_GLOBAL
13475 # define LT_DLGLOBAL DL_GLOBAL
13477 # define LT_DLGLOBAL 0
13481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13482 find out it does not work in some platform. */
13483 #ifndef LT_DLLAZY_OR_NOW
13485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13488 # define LT_DLLAZY_OR_NOW DL_LAZY
13491 # define LT_DLLAZY_OR_NOW RTLD_NOW
13494 # define LT_DLLAZY_OR_NOW DL_NOW
13496 # define LT_DLLAZY_OR_NOW 0
13503 /* When -fvisbility=hidden is used, assume the code has been annotated
13504 correspondingly for the symbols needed. */
13505 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13506 void fnord () __attribute__((visibility("default")));
13509 void fnord () { int i=42; }
13512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13513 int status = $lt_dlunknown;
13517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13520 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13521 else puts (dlerror ());
13523 /* dlclose (self); */
13531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13532 (eval $ac_link) 2>&5
13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13536 (./conftest; exit; ) >&5 2>/dev/null
13538 case x$lt_status in
13539 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13540 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13541 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13544 # compilation failed
13545 lt_cv_dlopen_self_static=no
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13553 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13556 CPPFLAGS="$save_CPPFLAGS"
13557 LDFLAGS="$save_LDFLAGS"
13562 case $lt_cv_dlopen_self in
13563 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13564 *) enable_dlopen_self=unknown ;;
13567 case $lt_cv_dlopen_self_static in
13568 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13569 *) enable_dlopen_self_static=unknown ;;
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13592 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13593 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13594 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13595 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13597 $as_echo "yes" >&6; }
13599 # FIXME - insert some real tests, host_os isn't really good enough
13602 if test -n "$STRIP" ; then
13603 striplib="$STRIP -x"
13604 old_striplib="$STRIP -S"
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13630 # Report which library types will actually be built
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13632 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13634 $as_echo "$can_build_shared" >&6; }
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13637 $as_echo_n "checking whether to build shared libraries... " >&6; }
13638 test "$can_build_shared" = "no" && enable_shared=no
13640 # On AIX, shared libraries and static libraries use the same namespace, and
13641 # are all built from PIC.
13644 test "$enable_shared" = yes && enable_static=no
13645 if test -n "$RANLIB"; then
13646 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13647 postinstall_cmds='$RANLIB $lib'
13652 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13653 test "$enable_shared" = yes && enable_static=no
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13658 $as_echo "$enable_shared" >&6; }
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13661 $as_echo_n "checking whether to build static libraries... " >&6; }
13662 # Make sure either enable_shared or enable_static is yes.
13663 test "$enable_shared" = yes || enable_static=yes
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13665 $as_echo "$enable_static" >&6; }
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13679 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13680 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13681 (test "X$CXX" != "Xg++"))) ; then
13683 ac_cpp='$CXXCPP $CPPFLAGS'
13684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13688 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13689 if test -z "$CXXCPP"; then
13690 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13693 # Double quotes because CXXCPP needs to be expanded
13694 for CXXCPP in "$CXX -E" "/lib/cpp"
13696 ac_preproc_ok=false
13697 for ac_cxx_preproc_warn_flag in '' yes
13699 # Use a header file that comes with gcc, so configuring glibc
13700 # with a fresh cross-compiler works.
13701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13702 # <limits.h> exists even on freestanding compilers.
13703 # On the NeXT, cc -E runs the code through the compiler's parser,
13704 # not just through cpp. "Syntax error" is here to catch this case.
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13708 # include <limits.h>
13710 # include <assert.h>
13714 if ac_fn_cxx_try_cpp "$LINENO"; then :
13717 # Broken: fails on valid input.
13720 rm -f conftest.err conftest.$ac_ext
13722 # OK, works on sane cases. Now check whether nonexistent headers
13723 # can be detected and how.
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 #include <ac_nonexistent.h>
13728 if ac_fn_cxx_try_cpp "$LINENO"; then :
13729 # Broken: success on invalid input.
13732 # Passes both tests.
13736 rm -f conftest.err conftest.$ac_ext
13739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13740 rm -f conftest.err conftest.$ac_ext
13741 if $ac_preproc_ok; then :
13746 ac_cv_prog_CXXCPP=$CXXCPP
13749 CXXCPP=$ac_cv_prog_CXXCPP
13751 ac_cv_prog_CXXCPP=$CXXCPP
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13754 $as_echo "$CXXCPP" >&6; }
13755 ac_preproc_ok=false
13756 for ac_cxx_preproc_warn_flag in '' yes
13758 # Use a header file that comes with gcc, so configuring glibc
13759 # with a fresh cross-compiler works.
13760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13761 # <limits.h> exists even on freestanding compilers.
13762 # On the NeXT, cc -E runs the code through the compiler's parser,
13763 # not just through cpp. "Syntax error" is here to catch this case.
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13767 # include <limits.h>
13769 # include <assert.h>
13773 if ac_fn_cxx_try_cpp "$LINENO"; then :
13776 # Broken: fails on valid input.
13779 rm -f conftest.err conftest.$ac_ext
13781 # OK, works on sane cases. Now check whether nonexistent headers
13782 # can be detected and how.
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 #include <ac_nonexistent.h>
13787 if ac_fn_cxx_try_cpp "$LINENO"; then :
13788 # Broken: success on invalid input.
13791 # Passes both tests.
13795 rm -f conftest.err conftest.$ac_ext
13798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13799 rm -f conftest.err conftest.$ac_ext
13800 if $ac_preproc_ok; then :
13803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13805 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13806 See \`config.log' for more details." "$LINENO" 5; }
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13816 _lt_caught_CXX_error=yes
13820 ac_cpp='$CXXCPP $CPPFLAGS'
13821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13825 archive_cmds_need_lc_CXX=no
13826 allow_undefined_flag_CXX=
13827 always_export_symbols_CXX=no
13828 archive_expsym_cmds_CXX=
13829 compiler_needs_object_CXX=no
13830 export_dynamic_flag_spec_CXX=
13831 hardcode_direct_CXX=no
13832 hardcode_direct_absolute_CXX=no
13833 hardcode_libdir_flag_spec_CXX=
13834 hardcode_libdir_flag_spec_ld_CXX=
13835 hardcode_libdir_separator_CXX=
13836 hardcode_minus_L_CXX=no
13837 hardcode_shlibpath_var_CXX=unsupported
13838 hardcode_automatic_CXX=no
13839 inherit_rpath_CXX=no
13841 module_expsym_cmds_CXX=
13842 link_all_deplibs_CXX=unknown
13843 old_archive_cmds_CXX=$old_archive_cmds
13844 reload_flag_CXX=$reload_flag
13845 reload_cmds_CXX=$reload_cmds
13846 no_undefined_flag_CXX=
13847 whole_archive_flag_spec_CXX=
13848 enable_shared_with_static_runtimes_CXX=no
13850 # Source file extension for C++ test sources.
13853 # Object file extension for compiled C++ test sources.
13857 # No sense in running all these tests if we already determined that
13858 # the CXX compiler isn't working. Some variables (like enable_shared)
13859 # are currently assumed to apply to all compilers on this platform,
13860 # and will be corrupted by setting them based on a non-working compiler.
13861 if test "$_lt_caught_CXX_error" != yes; then
13862 # Code to be used in simple compile tests
13863 lt_simple_compile_test_code="int some_variable = 0;"
13865 # Code to be used in simple link tests
13866 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13875 # If no C compiler was specified, use CC.
13878 # If no C compiler flags were specified, use CFLAGS.
13879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13881 # Allow CC to be a program name with arguments.
13885 # save warnings/boilerplate of simple test code
13886 ac_outfile=conftest.$ac_objext
13887 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13888 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13889 _lt_compiler_boilerplate=`cat conftest.err`
13892 ac_outfile=conftest.$ac_objext
13893 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13894 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13895 _lt_linker_boilerplate=`cat conftest.err`
13899 # Allow CC to be a program name with arguments.
13904 lt_save_with_gnu_ld=$with_gnu_ld
13905 lt_save_path_LD=$lt_cv_path_LD
13906 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13907 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13909 $as_unset lt_cv_prog_gnu_ld
13911 if test -n "${lt_cv_path_LDCXX+set}"; then
13912 lt_cv_path_LD=$lt_cv_path_LDCXX
13914 $as_unset lt_cv_path_LD
13916 test -z "${LDCXX+set}" || LD=$LDCXX
13920 for cc_temp in $compiler""; do
13922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13928 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13931 if test -n "$compiler"; then
13932 # We don't want -fno-exception when compiling C++ code, so set the
13933 # no_builtin_flag separately
13934 if test "$GXX" = yes; then
13935 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13937 lt_prog_compiler_no_builtin_flag_CXX=
13940 if test "$GXX" = yes; then
13941 # Set up default GNU C++ configuration
13945 # Check whether --with-gnu-ld was given.
13946 if test "${with_gnu_ld+set}" = set; then :
13947 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13953 if test "$GCC" = yes; then
13954 # Check if gcc -print-prog-name=ld gives a path.
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13956 $as_echo_n "checking for ld used by $CC... " >&6; }
13959 # gcc leaves a trailing carriage return which upsets mingw
13960 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13962 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13965 # Accept absolute paths.
13967 re_direlt='/[^/][^/]*/\.\./'
13968 # Canonicalize the pathname of ld
13969 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13970 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13971 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13973 test -z "$LD" && LD="$ac_prog"
13976 # If it fails, then pretend we aren't using GCC.
13980 # If it is relative, then search for the first ld in PATH.
13981 with_gnu_ld=unknown
13984 elif test "$with_gnu_ld" = yes; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13986 $as_echo_n "checking for GNU ld... " >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13989 $as_echo_n "checking for non-GNU ld... " >&6; }
13991 if test "${lt_cv_path_LD+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13994 if test -z "$LD"; then
13995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996 for ac_dir in $PATH; do
13998 test -z "$ac_dir" && ac_dir=.
13999 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14000 lt_cv_path_LD="$ac_dir/$ac_prog"
14001 # Check to see if the program is GNU ld. I'd rather use --version,
14002 # but apparently some variants of GNU ld only accept -v.
14003 # Break only if it was the GNU/non-GNU ld that we prefer.
14004 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14005 *GNU* | *'with BFD'*)
14006 test "$with_gnu_ld" != no && break
14009 test "$with_gnu_ld" != yes && break
14016 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14020 LD="$lt_cv_path_LD"
14021 if test -n "$LD"; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14023 $as_echo "$LD" >&6; }
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14028 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14030 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14031 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14032 $as_echo_n "(cached) " >&6
14034 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14035 case `$LD -v 2>&1 </dev/null` in
14036 *GNU* | *'with BFD'*)
14037 lt_cv_prog_gnu_ld=yes
14040 lt_cv_prog_gnu_ld=no
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14045 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14046 with_gnu_ld=$lt_cv_prog_gnu_ld
14054 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14055 # archiving commands below assume that GNU ld is being used.
14056 if test "$with_gnu_ld" = yes; then
14057 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14058 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'
14060 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14063 # If archive_cmds runs LD, not CC, wlarc should be empty
14064 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14065 # investigate it a little bit more. (MM)
14068 # ancient GNU ld didn't support --whole-archive et. al.
14069 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14070 $GREP 'no-whole-archive' > /dev/null; then
14071 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14073 whole_archive_flag_spec_CXX=
14079 # A generic and very simple default shared library creation
14080 # command for GNU C++ for the case where it uses the native
14081 # linker, instead of GNU ld. If possible, this setting should
14082 # overridden to take advantage of the native linker features on
14083 # the platform it is being used on.
14084 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14087 # Commands to make compiler produce verbose output that lists
14088 # what "hidden" libraries, object files and flags are used when
14089 # linking a shared library.
14090 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14098 # PORTME: fill in a description of your system's C++ link characteristics
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14100 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14104 # FIXME: insert proper C++ library support
14108 if test "$host_cpu" = ia64; then
14109 # On IA64, the linker does run time linking by default, so we don't
14110 # have to do anything special.
14111 aix_use_runtimelinking=no
14112 exp_sym_flag='-Bexport'
14115 aix_use_runtimelinking=no
14117 # Test if we are trying to use run time linking or normal
14118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14119 # need to do runtime linking.
14120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14121 for ld_flag in $LDFLAGS; do
14124 aix_use_runtimelinking=yes
14132 exp_sym_flag='-bexport'
14133 no_entry_flag='-bnoentry'
14136 # When large executables or shared objects are built, AIX ld can
14137 # have problems creating the table of contents. If linking a library
14138 # or program results in "error TOC overflow" add -mminimal-toc to
14139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14142 archive_cmds_CXX=''
14143 hardcode_direct_CXX=yes
14144 hardcode_direct_absolute_CXX=yes
14145 hardcode_libdir_separator_CXX=':'
14146 link_all_deplibs_CXX=yes
14147 file_list_spec_CXX='${wl}-f,'
14149 if test "$GXX" = yes; then
14150 case $host_os in aix4.[012]|aix4.[012].*)
14151 # We only want to do this on AIX 4.2 and lower, the check
14152 # below for broken collect2 doesn't work under 4.3+
14153 collect2name=`${CC} -print-prog-name=collect2`
14154 if test -f "$collect2name" &&
14155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14157 # We have reworked collect2
14160 # We have old collect2
14161 hardcode_direct_CXX=unsupported
14162 # It fails to find uninstalled libraries when the uninstalled
14163 # path is not listed in the libpath. Setting hardcode_minus_L
14164 # to unsupported forces relinking
14165 hardcode_minus_L_CXX=yes
14166 hardcode_libdir_flag_spec_CXX='-L$libdir'
14167 hardcode_libdir_separator_CXX=
14170 shared_flag='-shared'
14171 if test "$aix_use_runtimelinking" = yes; then
14172 shared_flag="$shared_flag "'${wl}-G'
14176 if test "$host_cpu" = ia64; then
14177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14178 # chokes on -Wl,-G. The following line is correct:
14181 if test "$aix_use_runtimelinking" = yes; then
14182 shared_flag='${wl}-G'
14184 shared_flag='${wl}-bM:SRE'
14189 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14190 # It seems that -bexpall does not export symbols beginning with
14191 # underscore (_), so it is better to generate a list of symbols to
14193 always_export_symbols_CXX=yes
14194 if test "$aix_use_runtimelinking" = yes; then
14195 # Warning - without using the other runtime loading flags (-brtl),
14196 # -berok will link without error, but may produce a broken library.
14197 allow_undefined_flag_CXX='-berok'
14198 # Determine the default libpath from the value encoded in an empty
14200 if test x$gcc_no_link = xyes; then
14201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14214 if ac_fn_cxx_try_link "$LINENO"; then :
14216 lt_aix_libpath_sed='
14217 /Import File Strings/,/^$/ {
14223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14224 # Check for a 64-bit object if we didn't find anything.
14225 if test -z "$aix_libpath"; then
14226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14233 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14235 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14237 if test "$host_cpu" = ia64; then
14238 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14239 allow_undefined_flag_CXX="-z nodefs"
14240 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"
14242 # Determine the default libpath from the value encoded in an
14243 # empty executable.
14244 if test x$gcc_no_link = xyes; then
14245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14258 if ac_fn_cxx_try_link "$LINENO"; then :
14260 lt_aix_libpath_sed='
14261 /Import File Strings/,/^$/ {
14267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14268 # Check for a 64-bit object if we didn't find anything.
14269 if test -z "$aix_libpath"; then
14270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14273 rm -f core conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14277 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14278 # Warning - without using the other run time loading flags,
14279 # -berok will link without error, but may produce a broken library.
14280 no_undefined_flag_CXX=' ${wl}-bernotok'
14281 allow_undefined_flag_CXX=' ${wl}-berok'
14282 if test "$with_gnu_ld" = yes; then
14283 # We only use this code for GNU lds that support --whole-archive.
14284 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14286 # Exported symbols can be pulled into shared objects from archives
14287 whole_archive_flag_spec_CXX='$convenience'
14289 archive_cmds_need_lc_CXX=yes
14290 # This is similar to how AIX traditionally builds its shared
14292 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'
14298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14299 allow_undefined_flag_CXX=unsupported
14300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14301 # support --undefined. This deserves some investigation. FIXME
14302 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309 case $cc_basename in
14311 # FIXME: insert proper C++ library support
14317 cygwin* | mingw* | pw32* | cegcc*)
14318 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14319 # as there is no search path for DLLs.
14320 hardcode_libdir_flag_spec_CXX='-L$libdir'
14321 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14322 allow_undefined_flag_CXX=unsupported
14323 always_export_symbols_CXX=no
14324 enable_shared_with_static_runtimes_CXX=yes
14326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14327 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'
14328 # If the export-symbols file already is a .def file (1st line
14329 # is EXPORTS), use it as is; otherwise, prepend...
14330 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14331 cp $export_symbols $output_objdir/$soname.def;
14333 echo EXPORTS > $output_objdir/$soname.def;
14334 cat $export_symbols >> $output_objdir/$soname.def;
14336 $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'
14341 darwin* | rhapsody*)
14344 archive_cmds_need_lc_CXX=no
14345 hardcode_direct_CXX=no
14346 hardcode_automatic_CXX=yes
14347 hardcode_shlibpath_var_CXX=unsupported
14348 if test "$lt_cv_ld_force_load" = "yes"; then
14349 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14351 whole_archive_flag_spec_CXX=''
14353 link_all_deplibs_CXX=yes
14354 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14355 case $cc_basename in
14356 ifort*) _lt_dar_can_shared=yes ;;
14357 *) _lt_dar_can_shared=$GCC ;;
14359 if test "$_lt_dar_can_shared" = "yes"; then
14360 output_verbose_link_cmd=func_echo_all
14361 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14362 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14363 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14364 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14365 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14366 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14367 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14377 case $cc_basename in
14379 # FIXME: insert proper C++ library support
14383 # Green Hills C++ Compiler
14384 # FIXME: insert proper C++ library support
14388 # FIXME: insert proper C++ library support
14395 # C++ shared libraries reported to be fairly broken before
14401 archive_cmds_need_lc_CXX=no
14404 freebsd* | dragonfly*)
14405 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14414 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14415 link_all_deplibs_CXX=yes
14419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14420 hardcode_libdir_separator_CXX=:
14421 export_dynamic_flag_spec_CXX='${wl}-E'
14422 hardcode_direct_CXX=yes
14423 hardcode_minus_L_CXX=yes # Not in the search PATH,
14424 # but as the default
14425 # location of the library.
14427 case $cc_basename in
14429 # FIXME: insert proper C++ library support
14433 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'
14434 # Commands to make compiler produce verbose output that lists
14435 # what "hidden" libraries, object files and flags are used when
14436 # linking a shared library.
14438 # There doesn't appear to be a way to prevent this compiler from
14439 # explicitly linking system object files so we need to strip them
14440 # from the output so that they don't get included in the library
14442 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; func_echo_all "$list"'
14445 if test "$GXX" = yes; then
14446 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'
14448 # FIXME: insert proper C++ library support
14456 if test $with_gnu_ld = no; then
14457 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14458 hardcode_libdir_separator_CXX=:
14464 export_dynamic_flag_spec_CXX='${wl}-E'
14470 hardcode_direct_CXX=no
14471 hardcode_shlibpath_var_CXX=no
14474 hardcode_direct_CXX=yes
14475 hardcode_direct_absolute_CXX=yes
14476 hardcode_minus_L_CXX=yes # Not in the search PATH,
14477 # but as the default
14478 # location of the library.
14482 case $cc_basename in
14484 # FIXME: insert proper C++ library support
14490 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14496 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14499 # Commands to make compiler produce verbose output that lists
14500 # what "hidden" libraries, object files and flags are used when
14501 # linking a shared library.
14503 # There doesn't appear to be a way to prevent this compiler from
14504 # explicitly linking system object files so we need to strip them
14505 # from the output so that they don't get included in the library
14507 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; func_echo_all "$list"'
14510 if test "$GXX" = yes; then
14511 if test $with_gnu_ld = no; then
14514 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14520 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'
14525 # FIXME: insert proper C++ library support
14533 hardcode_direct_CXX=no
14534 hardcode_shlibpath_var_CXX=no
14535 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14536 export_dynamic_flag_spec_CXX='${wl}-E'
14537 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14538 # Instead, shared libraries are loaded at an image base (0x10000000 by
14539 # default) and relocated if they conflict, which is a slow very memory
14540 # consuming and fragmenting process. To avoid this, we pick a random,
14541 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14542 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14543 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'
14544 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'
14547 case $cc_basename in
14550 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14552 # Archives containing C++ object files must be created using
14553 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14554 # necessary to make sure instantiated templates are included
14556 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14559 if test "$GXX" = yes; then
14560 if test "$with_gnu_ld" = no; then
14561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14563 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14566 link_all_deplibs_CXX=yes
14569 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14570 hardcode_libdir_separator_CXX=:
14571 inherit_rpath_CXX=yes
14574 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14575 case $cc_basename in
14577 # Kuck and Associates, Inc. (KAI) C++ Compiler
14579 # KCC will only create a shared library if the output file
14580 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14581 # to its proper name (with version) after linking.
14582 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'
14583 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'
14584 # Commands to make compiler produce verbose output that lists
14585 # what "hidden" libraries, object files and flags are used when
14586 # linking a shared library.
14588 # There doesn't appear to be a way to prevent this compiler from
14589 # explicitly linking system object files so we need to strip them
14590 # from the output so that they don't get included in the library
14592 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; func_echo_all "$list"'
14594 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14597 # Archives containing C++ object files must be created using
14598 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14599 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14604 # version 8.0 and above of icpc choke on multiply defined symbols
14605 # if we add $predep_objects and $postdep_objects, however 7.1 and
14606 # earlier do not add the objects themselves.
14607 case `$CC -V 2>&1` in
14609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610 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'
14612 *) # Version 8.0 or newer
14615 ia64*) tmp_idyn=' -i_dynamic';;
14617 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618 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'
14621 archive_cmds_need_lc_CXX=no
14622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14624 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14627 # Portland Group C++ compiler
14629 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14630 prelink_cmds_CXX='tpldir=Template.dir~
14632 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14633 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14634 old_archive_cmds_CXX='tpldir=Template.dir~
14636 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14637 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14639 archive_cmds_CXX='tpldir=Template.dir~
14641 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14642 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14643 archive_expsym_cmds_CXX='tpldir=Template.dir~
14645 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14646 $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'
14648 *) # Version 6 and above use weak symbols
14649 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14650 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'
14654 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14656 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14660 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14661 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'
14663 runpath_var=LD_RUN_PATH
14664 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14665 hardcode_libdir_separator_CXX=:
14667 # Commands to make compiler produce verbose output that lists
14668 # what "hidden" libraries, object files and flags are used when
14669 # linking a shared library.
14671 # There doesn't appear to be a way to prevent this compiler from
14672 # explicitly linking system object files so we need to strip them
14673 # from the output so that they don't get included in the library
14675 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14677 xl* | mpixl* | bgxl*)
14678 # IBM XL 8.0 on PPC, with GNU ld
14679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14681 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14682 if test "x$supports_anon_versioning" = xyes; then
14683 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14685 echo "local: *; };" >> $output_objdir/$libname.ver~
14686 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14690 case `$CC -V 2>&1 | sed 5q` in
14693 no_undefined_flag_CXX=' -zdefs'
14694 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14695 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'
14696 hardcode_libdir_flag_spec_CXX='-R$libdir'
14697 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14698 compiler_needs_object_CXX=yes
14700 # Not sure whether something based on
14701 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14703 output_verbose_link_cmd='func_echo_all'
14705 # Archives containing C++ object files must be created using
14706 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14707 # necessary to make sure instantiated templates are included
14709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14717 # FIXME: insert proper C++ library support
14722 # FIXME: insert proper C++ library support
14727 case $cc_basename in
14729 # FIXME: insert proper C++ library support
14733 # FIXME: insert proper C++ library support
14740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14741 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14743 hardcode_libdir_flag_spec_CXX='-R$libdir'
14744 hardcode_direct_CXX=yes
14745 hardcode_shlibpath_var_CXX=no
14747 # Workaround some broken pre-1.5 toolchains
14748 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14756 # C++ shared libraries are fairly broken
14761 if test -f /usr/libexec/ld.so; then
14762 hardcode_direct_CXX=yes
14763 hardcode_shlibpath_var_CXX=no
14764 hardcode_direct_absolute_CXX=yes
14765 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14768 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14769 export_dynamic_flag_spec_CXX='${wl}-E'
14770 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14772 output_verbose_link_cmd=func_echo_all
14778 osf3* | osf4* | osf5*)
14779 case $cc_basename in
14781 # Kuck and Associates, Inc. (KAI) C++ Compiler
14783 # KCC will only create a shared library if the output file
14784 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14785 # to its proper name (with version) after linking.
14786 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'
14788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14789 hardcode_libdir_separator_CXX=:
14791 # Archives containing C++ object files must be created using
14792 # the KAI C++ compiler.
14794 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14795 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14799 # Rational C++ 2.4.1
14800 # FIXME: insert proper C++ library support
14806 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14807 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14808 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14811 allow_undefined_flag_CXX=' -expect_unresolved \*'
14812 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14813 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14814 echo "-hidden">> $lib.exp~
14815 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14821 hardcode_libdir_separator_CXX=:
14823 # Commands to make compiler produce verbose output that lists
14824 # what "hidden" libraries, object files and flags are used when
14825 # linking a shared library.
14827 # There doesn't appear to be a way to prevent this compiler from
14828 # explicitly linking system object files so we need to strip them
14829 # from the output so that they don't get included in the library
14831 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14834 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14835 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14838 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14841 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14845 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14846 hardcode_libdir_separator_CXX=:
14848 # Commands to make compiler produce verbose output that lists
14849 # what "hidden" libraries, object files and flags are used when
14850 # linking a shared library.
14851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14854 # FIXME: insert proper C++ library support
14862 # FIXME: insert proper C++ library support
14867 case $cc_basename in
14870 # FIXME: insert proper C++ library support
14875 # FIXME: insert proper C++ library support
14879 # FIXME: insert proper C++ library support
14886 case $cc_basename in
14888 # Sun C++ 4.2, 5.x and Centerline C++
14889 archive_cmds_need_lc_CXX=yes
14890 no_undefined_flag_CXX=' -zdefs'
14891 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14892 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14893 $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'
14895 hardcode_libdir_flag_spec_CXX='-R$libdir'
14896 hardcode_shlibpath_var_CXX=no
14898 solaris2.[0-5] | solaris2.[0-5].*) ;;
14900 # The compiler driver will combine and reorder linker options,
14901 # but understands `-z linker_flag'.
14902 # Supported since Solaris 2.6 (maybe 2.5.1?)
14903 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14906 link_all_deplibs_CXX=yes
14908 output_verbose_link_cmd='func_echo_all'
14910 # Archives containing C++ object files must be created using
14911 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14912 # necessary to make sure instantiated templates are included
14914 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14917 # Green Hills C++ Compiler
14918 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14920 # The C++ compiler must be used to create the archive.
14921 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14924 # GNU C++ compiler with Solaris linker
14925 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14926 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14927 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14928 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14929 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14930 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14932 # Commands to make compiler produce verbose output that lists
14933 # what "hidden" libraries, object files and flags are used when
14934 # linking a shared library.
14935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14937 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14939 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14940 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14941 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14943 # Commands to make compiler produce verbose output that lists
14944 # what "hidden" libraries, object files and flags are used when
14945 # linking a shared library.
14946 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14949 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14951 solaris2.[0-5] | solaris2.[0-5].*) ;;
14953 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14962 no_undefined_flag_CXX='${wl}-z,text'
14963 archive_cmds_need_lc_CXX=no
14964 hardcode_shlibpath_var_CXX=no
14965 runpath_var='LD_RUN_PATH'
14967 case $cc_basename in
14969 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14973 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14974 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 sysv5* | sco3.2v5* | sco5v6*)
14980 # Note: We can NOT use -z defs as we might desire, because we do not
14981 # link with -lc, and that would cause any symbols used from libc to
14982 # always be unresolved, which means just about no library would
14983 # ever link correctly. If we're not using GNU ld we use -z text
14984 # though, which does catch some bad symbols but isn't as heavy-handed
14986 no_undefined_flag_CXX='${wl}-z,text'
14987 allow_undefined_flag_CXX='${wl}-z,nodefs'
14988 archive_cmds_need_lc_CXX=no
14989 hardcode_shlibpath_var_CXX=no
14990 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14991 hardcode_libdir_separator_CXX=':'
14992 link_all_deplibs_CXX=yes
14993 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14994 runpath_var='LD_RUN_PATH'
14996 case $cc_basename in
14998 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15001 '"$old_archive_cmds_CXX"
15002 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15003 '"$reload_cmds_CXX"
15006 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 case $cc_basename in
15015 # NonStop-UX NCC 3.20
15016 # FIXME: insert proper C++ library support
15020 # FIXME: insert proper C++ library support
15027 # FIXME: insert proper C++ library support
15032 # FIXME: insert proper C++ library support
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15038 $as_echo "$ld_shlibs_CXX" >&6; }
15039 test "$ld_shlibs_CXX" = no && can_build_shared=no
15045 ## There is no encapsulation within the following macros, do not change
15046 ## the running order or otherwise move them around unless you know exactly
15047 ## what you are doing...
15048 # Dependencies to place before and after the object being linked:
15049 predep_objects_CXX=
15050 postdep_objects_CXX=
15053 compiler_lib_search_path_CXX=
15055 cat > conftest.$ac_ext <<_LT_EOF
15059 Foo (void) { a = 0; }
15065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15066 (eval $ac_compile) 2>&5
15068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069 test $ac_status = 0; }; then
15070 # Parse the compiler output and extract the necessary
15071 # objects, libraries and library flags.
15073 # Sentinel used to keep track of whether or not we are before
15074 # the conftest object file.
15075 pre_test_object_deps_done=no
15077 for p in `eval "$output_verbose_link_cmd"`; do
15081 # Some compilers place space between "-{L,R}" and the path.
15082 # Remove the space.
15083 if test $p = "-L" ||
15084 test $p = "-R"; then
15091 if test "$pre_test_object_deps_done" = no; then
15094 # Internal compiler library paths should come after those
15095 # provided the user. The postdeps already come after the
15096 # user supplied libs so there is no need to process them.
15097 if test -z "$compiler_lib_search_path_CXX"; then
15098 compiler_lib_search_path_CXX="${prev}${p}"
15100 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15103 # The "-l" case would never come before the object being
15104 # linked, so don't bother handling this case.
15107 if test -z "$postdeps_CXX"; then
15108 postdeps_CXX="${prev}${p}"
15110 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15116 # This assumes that the test object file only shows up
15117 # once in the compiler output.
15118 if test "$p" = "conftest.$objext"; then
15119 pre_test_object_deps_done=yes
15123 if test "$pre_test_object_deps_done" = no; then
15124 if test -z "$predep_objects_CXX"; then
15125 predep_objects_CXX="$p"
15127 predep_objects_CXX="$predep_objects_CXX $p"
15130 if test -z "$postdep_objects_CXX"; then
15131 postdep_objects_CXX="$p"
15133 postdep_objects_CXX="$postdep_objects_CXX $p"
15138 *) ;; # Ignore the rest.
15146 echo "libtool.m4: error: problem compiling CXX test program"
15149 $RM -f confest.$objext
15151 # PORTME: override above test on systems where it is broken
15154 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15155 # hack all around it, let's just trust "g++" to DTRT.
15156 predep_objects_CXX=
15157 postdep_objects_CXX=
15162 case `$CC -V 2>&1 | sed 5q` in
15166 # The more standards-conforming stlport4 library is
15167 # incompatible with the Cstd library. Avoid specifying
15168 # it if it's in CXXFLAGS. Ignore libCrun as
15169 # -library=stlport4 depends on it.
15170 case " $CXX $CXXFLAGS " in
15171 *" -library=stlport4 "*)
15172 solaris_use_stlport4=yes
15176 if test "$solaris_use_stlport4" != yes; then
15177 postdeps_CXX='-library=Cstd -library=Crun'
15184 case $cc_basename in
15186 # The more standards-conforming stlport4 library is
15187 # incompatible with the Cstd library. Avoid specifying
15188 # it if it's in CXXFLAGS. Ignore libCrun as
15189 # -library=stlport4 depends on it.
15190 case " $CXX $CXXFLAGS " in
15191 *" -library=stlport4 "*)
15192 solaris_use_stlport4=yes
15196 # Adding this requires a known-good setup of shared libraries for
15197 # Sun compiler versions before 5.6, else PIC objects from an old
15198 # archive will be linked into the output, leading to subtle bugs.
15199 if test "$solaris_use_stlport4" != yes; then
15200 postdeps_CXX='-library=Cstd -library=Crun'
15208 case " $postdeps_CXX " in
15209 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15211 compiler_lib_search_dirs_CXX=
15212 if test -n "${compiler_lib_search_path_CXX}"; then
15213 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15246 lt_prog_compiler_wl_CXX=
15247 lt_prog_compiler_pic_CXX=
15248 lt_prog_compiler_static_CXX=
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15251 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15253 # C++ specific cases for pic, static, wl, etc.
15254 if test "$GXX" = yes; then
15255 lt_prog_compiler_wl_CXX='-Wl,'
15256 lt_prog_compiler_static_CXX='-static'
15260 # All AIX code is PIC.
15261 if test "$host_cpu" = ia64; then
15262 # AIX 5 now supports IA64 processor
15263 lt_prog_compiler_static_CXX='-Bstatic'
15270 # see comment about AmigaOS4 .so support
15271 lt_prog_compiler_pic_CXX='-fPIC'
15274 # FIXME: we need at least 68020 code to build shared libraries, but
15275 # adding the `-m68020' flag to GCC prevents building anything better,
15277 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15283 # PIC is the default for these OSes.
15285 mingw* | cygwin* | os2* | pw32* | cegcc*)
15286 # This hack is so that the source file can tell whether it is being
15287 # built for inclusion in a dll (and should export symbols for example).
15288 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15289 # (--disable-auto-import) libraries
15290 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15292 darwin* | rhapsody*)
15293 # PIC is the default on this platform
15294 # Common symbols not allowed in MH_DYLIB files
15295 lt_prog_compiler_pic_CXX='-fno-common'
15298 # DJGPP does not support shared libraries at all
15299 lt_prog_compiler_pic_CXX=
15302 # PIC is the default for Haiku.
15303 # The "-static" flag exists, but is broken.
15304 lt_prog_compiler_static_CXX=
15307 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15308 # Instead, we relocate shared libraries at runtime.
15311 if test -d /usr/nec; then
15312 lt_prog_compiler_pic_CXX=-Kconform_pic
15316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15318 # sets the default TLS model and affects inlining.
15323 lt_prog_compiler_pic_CXX='-fPIC'
15328 # QNX uses GNU C++, but need to define -shared option too, otherwise
15329 # it will coredump.
15330 lt_prog_compiler_pic_CXX='-fPIC -shared'
15333 lt_prog_compiler_pic_CXX='-fPIC'
15339 # All AIX code is PIC.
15340 if test "$host_cpu" = ia64; then
15341 # AIX 5 now supports IA64 processor
15342 lt_prog_compiler_static_CXX='-Bstatic'
15344 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15348 case $cc_basename in
15350 # Green Hills C++ Compiler
15351 # _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"
15356 case $cc_basename in
15358 lt_prog_compiler_pic_CXX='-KPIC'
15361 # Green Hills C++ Compiler
15362 lt_prog_compiler_pic_CXX='-pic'
15368 freebsd* | dragonfly*)
15369 # FreeBSD uses GNU C++
15371 hpux9* | hpux10* | hpux11*)
15372 case $cc_basename in
15374 lt_prog_compiler_wl_CXX='-Wl,'
15375 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15376 if test "$host_cpu" != ia64; then
15377 lt_prog_compiler_pic_CXX='+Z'
15381 lt_prog_compiler_wl_CXX='-Wl,'
15382 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15388 lt_prog_compiler_pic_CXX='+Z'
15397 # This is c89, which is MS Visual C++ (no shared libs)
15398 # Anyone wants to do a port?
15400 irix5* | irix6* | nonstopux*)
15401 case $cc_basename in
15403 lt_prog_compiler_wl_CXX='-Wl,'
15404 lt_prog_compiler_static_CXX='-non_shared'
15405 # CC pic flag -KPIC is the default.
15411 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15412 case $cc_basename in
15415 lt_prog_compiler_wl_CXX='--backend -Wl,'
15416 lt_prog_compiler_pic_CXX='-fPIC'
15419 # old Intel C++ for x86_64 which still supported -KPIC.
15420 lt_prog_compiler_wl_CXX='-Wl,'
15421 lt_prog_compiler_pic_CXX='-KPIC'
15422 lt_prog_compiler_static_CXX='-static'
15425 # Intel C++, used to be incompatible with GCC.
15426 # ICC 10 doesn't accept -KPIC any more.
15427 lt_prog_compiler_wl_CXX='-Wl,'
15428 lt_prog_compiler_pic_CXX='-fPIC'
15429 lt_prog_compiler_static_CXX='-static'
15432 # Portland Group C++ compiler
15433 lt_prog_compiler_wl_CXX='-Wl,'
15434 lt_prog_compiler_pic_CXX='-fpic'
15435 lt_prog_compiler_static_CXX='-Bstatic'
15439 # Make sure the PIC flag is empty. It appears that all Alpha
15440 # Linux and Compaq Tru64 Unix objects are PIC.
15441 lt_prog_compiler_pic_CXX=
15442 lt_prog_compiler_static_CXX='-non_shared'
15444 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15445 # IBM XL 8.0, 9.0 on PPC and BlueGene
15446 lt_prog_compiler_wl_CXX='-Wl,'
15447 lt_prog_compiler_pic_CXX='-qpic'
15448 lt_prog_compiler_static_CXX='-qstaticlink'
15451 case `$CC -V 2>&1 | sed 5q` in
15454 lt_prog_compiler_pic_CXX='-KPIC'
15455 lt_prog_compiler_static_CXX='-Bstatic'
15456 lt_prog_compiler_wl_CXX='-Qoption ld '
15467 case $cc_basename in
15469 lt_prog_compiler_pic_CXX='-W c,exportall'
15478 # QNX uses GNU C++, but need to define -shared option too, otherwise
15479 # it will coredump.
15480 lt_prog_compiler_pic_CXX='-fPIC -shared'
15482 osf3* | osf4* | osf5*)
15483 case $cc_basename in
15485 lt_prog_compiler_wl_CXX='--backend -Wl,'
15488 # Rational C++ 2.4.1
15489 lt_prog_compiler_pic_CXX='-pic'
15492 # Digital/Compaq C++
15493 lt_prog_compiler_wl_CXX='-Wl,'
15494 # Make sure the PIC flag is empty. It appears that all Alpha
15495 # Linux and Compaq Tru64 Unix objects are PIC.
15496 lt_prog_compiler_pic_CXX=
15497 lt_prog_compiler_static_CXX='-non_shared'
15506 case $cc_basename in
15508 # Sun C++ 4.2, 5.x and Centerline C++
15509 lt_prog_compiler_pic_CXX='-KPIC'
15510 lt_prog_compiler_static_CXX='-Bstatic'
15511 lt_prog_compiler_wl_CXX='-Qoption ld '
15514 # Green Hills C++ Compiler
15515 lt_prog_compiler_pic_CXX='-PIC'
15522 case $cc_basename in
15525 lt_prog_compiler_pic_CXX='-pic'
15526 lt_prog_compiler_static_CXX='-Bstatic'
15530 lt_prog_compiler_pic_CXX='-pic'
15536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15537 case $cc_basename in
15539 lt_prog_compiler_wl_CXX='-Wl,'
15540 lt_prog_compiler_pic_CXX='-KPIC'
15541 lt_prog_compiler_static_CXX='-Bstatic'
15546 case $cc_basename in
15548 # NonStop-UX NCC 3.20
15549 lt_prog_compiler_pic_CXX='-KPIC'
15558 lt_prog_compiler_can_build_shared_CXX=no
15564 # For platforms which do not support PIC, -DPIC is meaningless:
15566 lt_prog_compiler_pic_CXX=
15569 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15573 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15578 # Check to make sure the PIC flag actually works.
15580 if test -n "$lt_prog_compiler_pic_CXX"; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15583 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15586 lt_cv_prog_compiler_pic_works_CXX=no
15587 ac_outfile=conftest.$ac_objext
15588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15589 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15590 # Insert the option either (1) after the last *FLAGS variable, or
15591 # (2) before a word containing "conftest.", or (3) at the end.
15592 # Note that $ac_compile itself does not contain backslashes and begins
15593 # with a dollar sign (not a hyphen), so the echo should work correctly.
15594 # The option is referenced via a variable to avoid confusing sed.
15595 lt_compile=`echo "$ac_compile" | $SED \
15596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598 -e 's:$: $lt_compiler_flag:'`
15599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15600 (eval "$lt_compile" 2>conftest.err)
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 if (exit $ac_status) && test -s "$ac_outfile"; then
15605 # The compiler can only warn and ignore the option if not recognized
15606 # So say no if there are warnings other than the usual output.
15607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15610 lt_cv_prog_compiler_pic_works_CXX=yes
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15617 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15619 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15620 case $lt_prog_compiler_pic_CXX in
15622 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15625 lt_prog_compiler_pic_CXX=
15626 lt_prog_compiler_can_build_shared_CXX=no
15634 # Check to make sure the static flag actually works.
15636 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15639 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15642 lt_cv_prog_compiler_static_works_CXX=no
15643 save_LDFLAGS="$LDFLAGS"
15644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15647 # The linker can only warn and ignore the option if not recognized
15648 # So say no if there are warnings
15649 if test -s conftest.err; then
15650 # Append any errors to the config.log.
15651 cat conftest.err 1>&5
15652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15654 if diff conftest.exp conftest.er2 >/dev/null; then
15655 lt_cv_prog_compiler_static_works_CXX=yes
15658 lt_cv_prog_compiler_static_works_CXX=yes
15662 LDFLAGS="$save_LDFLAGS"
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15666 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15668 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15671 lt_prog_compiler_static_CXX=
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15680 $as_echo_n "(cached) " >&6
15682 lt_cv_prog_compiler_c_o_CXX=no
15683 $RM -r conftest 2>/dev/null
15687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15689 lt_compiler_flag="-o out/conftest2.$ac_objext"
15690 # Insert the option either (1) after the last *FLAGS variable, or
15691 # (2) before a word containing "conftest.", or (3) at the end.
15692 # Note that $ac_compile itself does not contain backslashes and begins
15693 # with a dollar sign (not a hyphen), so the echo should work correctly.
15694 lt_compile=`echo "$ac_compile" | $SED \
15695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15697 -e 's:$: $lt_compiler_flag:'`
15698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15699 (eval "$lt_compile" 2>out/conftest.err)
15701 cat out/conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15705 # The compiler can only warn and ignore the option if not recognized
15706 # So say no if there are warnings
15707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15710 lt_cv_prog_compiler_c_o_CXX=yes
15715 # SGI C++ compiler will create directory out/ii_files/ for
15716 # template instantiation
15717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15718 $RM out/* && rmdir out
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15730 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15731 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15732 $as_echo_n "(cached) " >&6
15734 lt_cv_prog_compiler_c_o_CXX=no
15735 $RM -r conftest 2>/dev/null
15739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15741 lt_compiler_flag="-o out/conftest2.$ac_objext"
15742 # Insert the option either (1) after the last *FLAGS variable, or
15743 # (2) before a word containing "conftest.", or (3) at the end.
15744 # Note that $ac_compile itself does not contain backslashes and begins
15745 # with a dollar sign (not a hyphen), so the echo should work correctly.
15746 lt_compile=`echo "$ac_compile" | $SED \
15747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15749 -e 's:$: $lt_compiler_flag:'`
15750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15751 (eval "$lt_compile" 2>out/conftest.err)
15753 cat out/conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15757 # The compiler can only warn and ignore the option if not recognized
15758 # So say no if there are warnings
15759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15762 lt_cv_prog_compiler_c_o_CXX=yes
15767 # SGI C++ compiler will create directory out/ii_files/ for
15768 # template instantiation
15769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15770 $RM out/* && rmdir out
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15777 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15782 hard_links="nottested"
15783 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15784 # do not overwrite the value of need_locks provided by the user
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15786 $as_echo_n "checking if we can lock with hard links... " >&6; }
15789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15791 ln conftest.a conftest.b 2>&5 || hard_links=no
15792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15794 $as_echo "$hard_links" >&6; }
15795 if test "$hard_links" = no; then
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15797 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15812 # If we're using GNU nm, then we don't want the "-C" option.
15813 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15814 # Also, AIX nm treats weak defined symbols like other global defined
15815 # symbols, whereas GNU nm marks them as "W".
15816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15817 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15819 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'
15823 export_symbols_cmds_CXX="$ltdll_cmds"
15825 cygwin* | mingw* | cegcc*)
15826 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'
15829 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15832 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15835 $as_echo "$ld_shlibs_CXX" >&6; }
15836 test "$ld_shlibs_CXX" = no && can_build_shared=no
15838 with_gnu_ld_CXX=$with_gnu_ld
15846 # Do we need to explicitly link libc?
15848 case "x$archive_cmds_need_lc_CXX" in
15850 # Assume -lc should be added
15851 archive_cmds_need_lc_CXX=yes
15853 if test "$enable_shared" = yes && test "$GCC" = yes; then
15854 case $archive_cmds_CXX in
15856 # FIXME: we may have to deal with multi-command sequences.
15859 # Test whether the compiler implicitly links with -lc since on some
15860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15861 # to ld, don't add -lc before -lgcc.
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15863 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15864 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15865 $as_echo_n "(cached) " >&6
15868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15871 (eval $ac_compile) 2>&5
15873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874 test $ac_status = 0; } 2>conftest.err; then
15877 libobjs=conftest.$ac_objext
15879 wl=$lt_prog_compiler_wl_CXX
15880 pic_flag=$lt_prog_compiler_pic_CXX
15886 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15887 allow_undefined_flag_CXX=
15888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15889 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }
15894 lt_cv_archive_cmds_need_lc_CXX=no
15896 lt_cv_archive_cmds_need_lc_CXX=yes
15898 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15900 cat conftest.err 1>&5
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15906 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15907 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15978 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15980 library_names_spec=
15981 libname_spec='lib$name'
15985 postuninstall_cmds=
15989 shlibpath_overrides_runpath=unknown
15991 dynamic_linker="$host_os ld.so"
15992 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15993 need_lib_prefix=unknown
15994 hardcode_into_libs=no
15996 # when you set need_version to no, make sure it does not cause -set_version
15997 # flags to be left without arguments
15998 need_version=unknown
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16004 shlibpath_var=LIBPATH
16006 # AIX 3 has no versioning support, so we append a major version to the name.
16007 soname_spec='${libname}${release}${shared_ext}$major'
16014 hardcode_into_libs=yes
16015 if test "$host_cpu" = ia64; then
16016 # AIX 5 supports IA64
16017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16018 shlibpath_var=LD_LIBRARY_PATH
16020 # With GCC up to 2.95.x, collect2 would create an import file
16021 # for dependence libraries. The import file would start with
16022 # the line `#! .'. This would cause the generated library to
16023 # depend on `.', always an invalid library. This was fixed in
16024 # development snapshots of GCC prior to 3.0.
16026 aix4 | aix4.[01] | aix4.[01].*)
16027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16029 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16032 can_build_shared=no
16036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16037 # soname into executable. Probably we can add versioning support to
16038 # collect2, so additional links can be useful in future.
16039 if test "$aix_use_runtimelinking" = yes; then
16040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16041 # instead of lib<name>.a to let people know that these are not
16042 # typical AIX shared libraries.
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 # We preserve .a as extension for shared libraries through AIX4.2
16046 # and later when we are not doing run time linking.
16047 library_names_spec='${libname}${release}.a $libname.a'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16050 shlibpath_var=LIBPATH
16057 # Since July 2007 AmigaOS4 officially supports .so libraries.
16058 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 library_names_spec='$libname.ixlibrary $libname.a'
16063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16064 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16070 library_names_spec='${libname}${shared_ext}'
16071 dynamic_linker="$host_os ld.so"
16072 shlibpath_var=LIBRARY_PATH
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16084 # the default ld.so.conf also contains /usr/contrib/lib and
16085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16086 # libtool to hard-code these into programs
16089 cygwin* | mingw* | pw32* | cegcc*)
16090 version_type=windows
16095 case $GCC,$host_os in
16096 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16097 library_names_spec='$libname.dll.a'
16098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16099 postinstall_cmds='base_file=`basename \${file}`~
16100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16101 dldir=$destdir/`dirname \$dlpath`~
16102 test -d \$dldir || mkdir -p \$dldir~
16103 $install_prog $dir/$dlname \$dldir/$dlname~
16104 chmod a+x \$dldir/$dlname~
16105 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16106 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16109 dlpath=$dir/\$dldll~
16111 shlibpath_overrides_runpath=yes
16115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16120 # MinGW DLLs use traditional 'lib' prefix
16121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 # pw32 DLLs use 'pw' prefix rather than 'lib'
16125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16134 dynamic_linker='Win32 ld.exe'
16135 # FIXME: first we should search . and the directory the executable is in
16139 darwin* | rhapsody*)
16140 dynamic_linker="$host_os dyld"
16141 version_type=darwin
16144 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16145 soname_spec='${libname}${release}${major}$shared_ext'
16146 shlibpath_overrides_runpath=yes
16147 shlibpath_var=DYLD_LIBRARY_PATH
16148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 shlibpath_var=LD_LIBRARY_PATH
16166 freebsd* | dragonfly*)
16167 # DragonFly does not have aout. When/if they implement a new
16168 # versioning mechanism, adjust this.
16169 if test -x /usr/bin/objformat; then
16170 objformat=`/usr/bin/objformat`
16173 freebsd[123]*) objformat=aout ;;
16174 *) objformat=elf ;;
16177 version_type=freebsd-$objformat
16178 case $version_type in
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16189 shlibpath_var=LD_LIBRARY_PATH
16192 shlibpath_overrides_runpath=yes
16194 freebsd3.[01]* | freebsdelf3.[01]*)
16195 shlibpath_overrides_runpath=yes
16196 hardcode_into_libs=yes
16198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16200 shlibpath_overrides_runpath=no
16201 hardcode_into_libs=yes
16203 *) # from 4.6 on, and DragonFly
16204 shlibpath_overrides_runpath=yes
16205 hardcode_into_libs=yes
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 shlibpath_var=LD_LIBRARY_PATH
16217 hardcode_into_libs=yes
16224 dynamic_linker="$host_os runtime_loader"
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 shlibpath_var=LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16229 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16230 hardcode_into_libs=yes
16233 hpux9* | hpux10* | hpux11*)
16234 # Give a soname corresponding to the major version so that dld.sl refuses to
16235 # link against other versions.
16242 hardcode_into_libs=yes
16243 dynamic_linker="$host_os dld.so"
16244 shlibpath_var=LD_LIBRARY_PATH
16245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 if test "X$HPUX_IA64_MODE" = X32; then
16249 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16251 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16257 hardcode_into_libs=yes
16258 dynamic_linker="$host_os dld.sl"
16259 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16268 dynamic_linker="$host_os dld.sl"
16269 shlibpath_var=SHLIB_PATH
16270 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272 soname_spec='${libname}${release}${shared_ext}$major'
16275 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16276 postinstall_cmds='chmod 555 $lib'
16277 # or fails outright, so override atomically:
16278 install_override_mode=555
16285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16288 shlibpath_var=LD_LIBRARY_PATH
16289 shlibpath_overrides_runpath=no
16290 hardcode_into_libs=yes
16293 irix5* | irix6* | nonstopux*)
16295 nonstopux*) version_type=nonstopux ;;
16297 if test "$lt_cv_prog_gnu_ld" = yes; then
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16308 irix5* | nonstopux*)
16309 libsuff= shlibsuff=
16312 case $LD in # libtool.m4 will add one of these switches to LD
16313 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16314 libsuff= shlibsuff= libmagic=32-bit;;
16315 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16316 libsuff=32 shlibsuff=N32 libmagic=N32;;
16317 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16318 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16319 *) libsuff= shlibsuff= libmagic=never-match;;
16323 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16324 shlibpath_overrides_runpath=no
16325 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16326 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16327 hardcode_into_libs=yes
16330 # No shared lib support for Linux oldld, aout, or coff.
16331 linux*oldld* | linux*aout* | linux*coff*)
16335 # This must be Linux ELF.
16336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341 soname_spec='${libname}${release}${shared_ext}$major'
16342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 shlibpath_overrides_runpath=no
16346 # Some binutils ld are patched to set DT_RUNPATH
16347 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16348 $as_echo_n "(cached) " >&6
16350 lt_cv_shlibpath_overrides_runpath=no
16351 save_LDFLAGS=$LDFLAGS
16352 save_libdir=$libdir
16353 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16354 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16355 if test x$gcc_no_link = xyes; then
16356 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16369 if ac_fn_cxx_try_link "$LINENO"; then :
16370 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16371 lt_cv_shlibpath_overrides_runpath=yes
16374 rm -f core conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376 LDFLAGS=$save_LDFLAGS
16377 libdir=$save_libdir
16381 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16383 # This implies no fast_install, which is unacceptable.
16384 # Some rework will be needed to allow for fast_install
16385 # before this can be enabled.
16386 hardcode_into_libs=yes
16388 # Append ld.so.conf contents to the search path
16389 if test -f /etc/ld.so.conf; then
16390 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16391 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16394 # We used to test for /lib/ld.so.1 and disable shared libraries on
16395 # powerpc, because MkLinux only supported shared libraries with the
16396 # GNU dynamic linker. Since this was broken with cross compilers,
16397 # most powerpc-linux boxes support dynamic linking these days and
16398 # people can always --disable-shared, the test was removed, and we
16399 # assume the GNU/Linux dynamic linker is in use.
16400 dynamic_linker='GNU/Linux ld.so'
16407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16410 dynamic_linker='NetBSD (a.out) ld.so'
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 dynamic_linker='NetBSD ld.elf_so'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=yes
16418 hardcode_into_libs=yes
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16424 shlibpath_var=LD_LIBRARY_PATH
16425 shlibpath_overrides_runpath=yes
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 shlibpath_overrides_runpath=no
16436 hardcode_into_libs=yes
16437 dynamic_linker='ldqnx.so'
16442 sys_lib_dlsearch_path_spec="/usr/lib"
16444 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16446 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16447 *) need_version=no ;;
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16454 openbsd2.[89] | openbsd2.[89].*)
16455 shlibpath_overrides_runpath=no
16458 shlibpath_overrides_runpath=yes
16462 shlibpath_overrides_runpath=yes
16467 libname_spec='$name'
16470 library_names_spec='$libname${shared_ext} $libname.a'
16471 dynamic_linker='OS/2 ld.exe'
16472 shlibpath_var=LIBPATH
16475 osf3* | osf4* | osf5*)
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16483 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=yes
16498 hardcode_into_libs=yes
16499 # ldd complains unless libraries are executable
16500 postinstall_cmds='chmod +x $lib'
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 shlibpath_overrides_runpath=yes
16509 if test "$with_gnu_ld" = yes; then
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 case $host_vendor in
16522 shlibpath_overrides_runpath=no
16524 runpath_var=LD_RUN_PATH
16532 shlibpath_overrides_runpath=no
16533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16539 if test -d /usr/nec ;then
16541 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16542 soname_spec='$libname${shared_ext}.$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16548 version_type=freebsd-elf
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes
16555 hardcode_into_libs=yes
16556 if test "$with_gnu_ld" = yes; then
16557 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16566 sys_lib_dlsearch_path_spec='/usr/lib'
16570 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=no
16577 hardcode_into_libs=yes
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 shlibpath_var=LD_LIBRARY_PATH
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16592 $as_echo "$dynamic_linker" >&6; }
16593 test "$dynamic_linker" = no && can_build_shared=no
16595 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16596 if test "$GCC" = yes; then
16597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16600 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16601 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16603 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16604 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16646 hardcode_action_CXX=
16647 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16648 test -n "$runpath_var_CXX" ||
16649 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16651 # We can hardcode non-existent directories.
16652 if test "$hardcode_direct_CXX" != no &&
16653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16654 # have to relink, otherwise we might link with an installed library
16655 # when we should be linking with a yet-to-be-installed one
16656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16657 test "$hardcode_minus_L_CXX" != no; then
16658 # Linking always hardcodes the temporary library directory.
16659 hardcode_action_CXX=relink
16661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16662 hardcode_action_CXX=immediate
16665 # We cannot hardcode anything, or else we can only hardcode existing
16667 hardcode_action_CXX=unsupported
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16670 $as_echo "$hardcode_action_CXX" >&6; }
16672 if test "$hardcode_action_CXX" = relink ||
16673 test "$inherit_rpath_CXX" = yes; then
16674 # Fast installation is not supported
16675 enable_fast_install=no
16676 elif test "$shlibpath_overrides_runpath" = yes ||
16677 test "$enable_shared" = no; then
16678 # Fast installation is not necessary
16679 enable_fast_install=needless
16688 fi # test -n "$compiler"
16694 with_gnu_ld=$lt_save_with_gnu_ld
16695 lt_cv_path_LDCXX=$lt_cv_path_LD
16696 lt_cv_path_LD=$lt_save_path_LD
16697 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16698 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16699 fi # test "$_lt_caught_CXX_error" != yes
16702 ac_cpp='$CPP $CPPFLAGS'
16703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16719 ac_config_commands="$ac_config_commands libtool"
16724 # Only expand once:
16728 if test -n "$ac_tool_prefix"; then
16731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if test "${ac_cv_prog_GCJ+set}" = set; then :
16736 $as_echo_n "(cached) " >&6
16738 if test -n "$GCJ"; then
16739 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $PATH
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16748 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16758 GCJ=$ac_cv_prog_GCJ
16759 if test -n "$GCJ"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16761 $as_echo "$GCJ" >&6; }
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16768 test -n "$GCJ" && break
16771 if test -z "$GCJ"; then
16775 # Extract the first word of "$ac_prog", so it can be a program name with args.
16776 set dummy $ac_prog; ac_word=$2
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16778 $as_echo_n "checking for $ac_word... " >&6; }
16779 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16780 $as_echo_n "(cached) " >&6
16782 if test -n "$ac_ct_GCJ"; then
16783 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786 for as_dir in $PATH
16789 test -z "$as_dir" && as_dir=.
16790 for ac_exec_ext in '' $ac_executable_extensions; do
16791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16792 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16802 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16803 if test -n "$ac_ct_GCJ"; then
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16805 $as_echo "$ac_ct_GCJ" >&6; }
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808 $as_echo "no" >&6; }
16812 test -n "$ac_ct_GCJ" && break
16815 if test "x$ac_ct_GCJ" = x; then
16818 case $cross_compiling:$ac_tool_warned in
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16822 ac_tool_warned=yes ;;
16828 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16829 if test "x${GCJFLAGS-unset}" = xunset; then
16834 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16837 $as_echo_n "checking dependency style of $depcc... " >&6; }
16838 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16839 $as_echo_n "(cached) " >&6
16841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16842 # We make a subdir and do the tests there. Otherwise we can end up
16843 # making bogus files that we don't know about and never remove. For
16844 # instance it was reported that on HP-UX the gcc test will end up
16845 # making a dummy file named `D' -- because `-MD' means `put the output
16848 # Copy depcomp to subdir because otherwise we won't find it if we're
16849 # using a relative directory.
16850 cp "$am_depcomp" conftest.dir
16852 # We will build objects and dependencies in a subdirectory because
16853 # it helps to detect inapplicable dependency modes. For instance
16854 # both Tru64's cc and ICC support -MD to output dependencies as a
16855 # side effect of compilation, but ICC will put the dependencies in
16856 # the current directory while Tru64 will put them in the object
16860 am_cv_GCJ_dependencies_compiler_type=none
16861 if test "$am_compiler_list" = ""; then
16862 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16864 am__universal=false
16867 for depmode in $am_compiler_list; do
16868 # Setup a source with many dependencies, because some compilers
16869 # like to wrap large dependency lists on column 80 (with \), and
16870 # we should not choose a depcomp mode which is confused by this.
16872 # We need to recreate these files for each test, as the compiler may
16873 # overwrite some of them when testing with obscure command lines.
16874 # This happens at least with the AIX C compiler.
16876 for i in 1 2 3 4 5 6; do
16877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16878 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16879 # Solaris 8's {/usr,}/bin/sh.
16880 touch sub/conftst$i.h
16882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16885 # mode. It turns out that the SunPro C++ compiler does not properly
16886 # handle `-M -o', and we need to detect this. Also, some Intel
16887 # versions had trouble with output in subdirs
16888 am__obj=sub/conftest.${OBJEXT-o}
16889 am__minus_obj="-o $am__obj"
16892 # This depmode causes a compiler race in universal mode.
16893 test "$am__universal" = false || continue
16896 # after this tag, mechanisms are not by side-effect, so they'll
16897 # only be used when explicitly requested
16898 if test "x$enable_dependency_tracking" = xyes; then
16904 msvisualcpp | msvcmsys)
16905 # This compiler won't grok `-c -o', but also, the minuso test has
16906 # not run yet. These depmodes are late enough in the game, and
16907 # so weak that their functioning should not be impacted.
16908 am__obj=conftest.${OBJEXT-o}
16913 if depmode=$depmode \
16914 source=sub/conftest.c object=$am__obj \
16915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16916 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16917 >/dev/null 2>conftest.err &&
16918 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16920 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16922 # icc doesn't choke on unknown options, it will just issue warnings
16923 # or remarks (even with -Werror). So we grep stderr for any message
16924 # that says an option was ignored or not supported.
16925 # When given -MP, icc 7.0 and 7.1 complain thusly:
16926 # icc: Command line warning: ignoring option '-M'; no argument required
16927 # The diagnosis changed in icc 8.0:
16928 # icc: Command line remark: option '-MP' not supported
16929 if (grep 'ignoring option' conftest.err ||
16930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16931 am_cv_GCJ_dependencies_compiler_type=$depmode
16938 rm -rf conftest.dir
16940 am_cv_GCJ_dependencies_compiler_type=none
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16945 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16946 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16949 test "x$enable_dependency_tracking" != xno \
16950 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16951 am__fastdepGCJ_TRUE=
16952 am__fastdepGCJ_FALSE='#'
16954 am__fastdepGCJ_TRUE='#'
16955 am__fastdepGCJ_FALSE=
16960 if test -n "$ac_tool_prefix"; then
16963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16966 $as_echo_n "checking for $ac_word... " >&6; }
16967 if test "${ac_cv_prog_GCJ+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
16970 if test -n "$GCJ"; then
16971 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16974 for as_dir in $PATH
16977 test -z "$as_dir" && as_dir=.
16978 for ac_exec_ext in '' $ac_executable_extensions; do
16979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16980 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16990 GCJ=$ac_cv_prog_GCJ
16991 if test -n "$GCJ"; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16993 $as_echo "$GCJ" >&6; }
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996 $as_echo "no" >&6; }
17000 test -n "$GCJ" && break
17003 if test -z "$GCJ"; then
17007 # Extract the first word of "$ac_prog", so it can be a program name with args.
17008 set dummy $ac_prog; ac_word=$2
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17010 $as_echo_n "checking for $ac_word... " >&6; }
17011 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17012 $as_echo_n "(cached) " >&6
17014 if test -n "$ac_ct_GCJ"; then
17015 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17018 for as_dir in $PATH
17021 test -z "$as_dir" && as_dir=.
17022 for ac_exec_ext in '' $ac_executable_extensions; do
17023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17024 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17034 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17035 if test -n "$ac_ct_GCJ"; then
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17037 $as_echo "$ac_ct_GCJ" >&6; }
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 $as_echo "no" >&6; }
17044 test -n "$ac_ct_GCJ" && break
17047 if test "x$ac_ct_GCJ" = x; then
17050 case $cross_compiling:$ac_tool_warned in
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17054 ac_tool_warned=yes ;;
17060 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17061 if test "x${GCJFLAGS-unset}" = xunset; then
17066 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17069 $as_echo_n "checking dependency style of $depcc... " >&6; }
17070 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17071 $as_echo_n "(cached) " >&6
17073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17074 # We make a subdir and do the tests there. Otherwise we can end up
17075 # making bogus files that we don't know about and never remove. For
17076 # instance it was reported that on HP-UX the gcc test will end up
17077 # making a dummy file named `D' -- because `-MD' means `put the output
17080 # Copy depcomp to subdir because otherwise we won't find it if we're
17081 # using a relative directory.
17082 cp "$am_depcomp" conftest.dir
17084 # We will build objects and dependencies in a subdirectory because
17085 # it helps to detect inapplicable dependency modes. For instance
17086 # both Tru64's cc and ICC support -MD to output dependencies as a
17087 # side effect of compilation, but ICC will put the dependencies in
17088 # the current directory while Tru64 will put them in the object
17092 am_cv_GCJ_dependencies_compiler_type=none
17093 if test "$am_compiler_list" = ""; then
17094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17096 am__universal=false
17099 for depmode in $am_compiler_list; do
17100 # Setup a source with many dependencies, because some compilers
17101 # like to wrap large dependency lists on column 80 (with \), and
17102 # we should not choose a depcomp mode which is confused by this.
17104 # We need to recreate these files for each test, as the compiler may
17105 # overwrite some of them when testing with obscure command lines.
17106 # This happens at least with the AIX C compiler.
17108 for i in 1 2 3 4 5 6; do
17109 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17110 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17111 # Solaris 8's {/usr,}/bin/sh.
17112 touch sub/conftst$i.h
17114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17116 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17117 # mode. It turns out that the SunPro C++ compiler does not properly
17118 # handle `-M -o', and we need to detect this. Also, some Intel
17119 # versions had trouble with output in subdirs
17120 am__obj=sub/conftest.${OBJEXT-o}
17121 am__minus_obj="-o $am__obj"
17124 # This depmode causes a compiler race in universal mode.
17125 test "$am__universal" = false || continue
17128 # after this tag, mechanisms are not by side-effect, so they'll
17129 # only be used when explicitly requested
17130 if test "x$enable_dependency_tracking" = xyes; then
17136 msvisualcpp | msvcmsys)
17137 # This compiler won't grok `-c -o', but also, the minuso test has
17138 # not run yet. These depmodes are late enough in the game, and
17139 # so weak that their functioning should not be impacted.
17140 am__obj=conftest.${OBJEXT-o}
17145 if depmode=$depmode \
17146 source=sub/conftest.c object=$am__obj \
17147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17149 >/dev/null 2>conftest.err &&
17150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17154 # icc doesn't choke on unknown options, it will just issue warnings
17155 # or remarks (even with -Werror). So we grep stderr for any message
17156 # that says an option was ignored or not supported.
17157 # When given -MP, icc 7.0 and 7.1 complain thusly:
17158 # icc: Command line warning: ignoring option '-M'; no argument required
17159 # The diagnosis changed in icc 8.0:
17160 # icc: Command line remark: option '-MP' not supported
17161 if (grep 'ignoring option' conftest.err ||
17162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17163 am_cv_GCJ_dependencies_compiler_type=$depmode
17170 rm -rf conftest.dir
17172 am_cv_GCJ_dependencies_compiler_type=none
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17177 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17178 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17181 test "x$enable_dependency_tracking" != xno \
17182 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17183 am__fastdepGCJ_TRUE=
17184 am__fastdepGCJ_FALSE='#'
17186 am__fastdepGCJ_TRUE='#'
17187 am__fastdepGCJ_FALSE=
17194 # Source file extension for Java test sources.
17197 # Object file extension for compiled Java test sources.
17201 # Code to be used in simple compile tests
17202 lt_simple_compile_test_code="int some_variable = 0;"
17204 # Code to be used in simple link tests
17205 lt_simple_link_test_code='int main(){return(0);}'
17207 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17214 # If no C compiler was specified, use CC.
17217 # If no C compiler flags were specified, use CFLAGS.
17218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17220 # Allow CC to be a program name with arguments.
17224 # save warnings/boilerplate of simple test code
17225 ac_outfile=conftest.$ac_objext
17226 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17228 _lt_compiler_boilerplate=`cat conftest.err`
17231 ac_outfile=conftest.$ac_objext
17232 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17234 _lt_linker_boilerplate=`cat conftest.err`
17238 # Allow CC to be a program name with arguments.
17242 for cc_temp in $compiler""; do
17244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17250 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17253 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17254 archive_cmds_need_lc_GCJ=no
17256 old_archive_cmds_GCJ=$old_archive_cmds
17259 ## There is no encapsulation within the following macros, do not change
17260 ## the running order or otherwise move them around unless you know exactly
17261 ## what you are doing...
17262 if test -n "$compiler"; then
17264 lt_prog_compiler_no_builtin_flag_GCJ=
17266 if test "$GCC" = yes; then
17267 case $cc_basename in
17269 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17271 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17275 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17277 $as_echo_n "(cached) " >&6
17279 lt_cv_prog_compiler_rtti_exceptions=no
17280 ac_outfile=conftest.$ac_objext
17281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17282 lt_compiler_flag="-fno-rtti -fno-exceptions"
17283 # Insert the option either (1) after the last *FLAGS variable, or
17284 # (2) before a word containing "conftest.", or (3) at the end.
17285 # Note that $ac_compile itself does not contain backslashes and begins
17286 # with a dollar sign (not a hyphen), so the echo should work correctly.
17287 # The option is referenced via a variable to avoid confusing sed.
17288 lt_compile=`echo "$ac_compile" | $SED \
17289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17291 -e 's:$: $lt_compiler_flag:'`
17292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17293 (eval "$lt_compile" 2>conftest.err)
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 if (exit $ac_status) && test -s "$ac_outfile"; then
17298 # The compiler can only warn and ignore the option if not recognized
17299 # So say no if there are warnings other than the usual output.
17300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17303 lt_cv_prog_compiler_rtti_exceptions=yes
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17310 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17312 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17313 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17322 lt_prog_compiler_wl_GCJ=
17323 lt_prog_compiler_pic_GCJ=
17324 lt_prog_compiler_static_GCJ=
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17327 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17329 if test "$GCC" = yes; then
17330 lt_prog_compiler_wl_GCJ='-Wl,'
17331 lt_prog_compiler_static_GCJ='-static'
17335 # All AIX code is PIC.
17336 if test "$host_cpu" = ia64; then
17337 # AIX 5 now supports IA64 processor
17338 lt_prog_compiler_static_GCJ='-Bstatic'
17345 # see comment about AmigaOS4 .so support
17346 lt_prog_compiler_pic_GCJ='-fPIC'
17349 # FIXME: we need at least 68020 code to build shared libraries, but
17350 # adding the `-m68020' flag to GCC prevents building anything better,
17352 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17357 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17358 # PIC is the default for these OSes.
17361 mingw* | cygwin* | pw32* | os2* | cegcc*)
17362 # This hack is so that the source file can tell whether it is being
17363 # built for inclusion in a dll (and should export symbols for example).
17364 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17365 # (--disable-auto-import) libraries
17369 darwin* | rhapsody*)
17370 # PIC is the default on this platform
17371 # Common symbols not allowed in MH_DYLIB files
17372 lt_prog_compiler_pic_GCJ='-fno-common'
17376 # PIC is the default for Haiku.
17377 # The "-static" flag exists, but is broken.
17378 lt_prog_compiler_static_GCJ=
17382 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17383 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17384 # sets the default TLS model and affects inlining.
17390 lt_prog_compiler_pic_GCJ='-fPIC'
17396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17397 # Instead, we relocate shared libraries at runtime.
17401 # Just because we use GCC doesn't mean we suddenly get shared libraries
17402 # on systems that don't support them.
17403 lt_prog_compiler_can_build_shared_GCJ=no
17408 # QNX uses GNU C++, but need to define -shared option too, otherwise
17409 # it will coredump.
17410 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17414 if test -d /usr/nec; then
17415 lt_prog_compiler_pic_GCJ=-Kconform_pic
17420 lt_prog_compiler_pic_GCJ='-fPIC'
17424 case $cc_basename in
17425 nvcc*) # Cuda Compiler Driver 2.2
17426 lt_prog_compiler_wl_GCJ='-Xlinker '
17427 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17431 # PORTME Check for flag to pass linker flags through the system compiler.
17434 lt_prog_compiler_wl_GCJ='-Wl,'
17435 if test "$host_cpu" = ia64; then
17436 # AIX 5 now supports IA64 processor
17437 lt_prog_compiler_static_GCJ='-Bstatic'
17439 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17443 mingw* | cygwin* | pw32* | os2* | cegcc*)
17444 # This hack is so that the source file can tell whether it is being
17445 # built for inclusion in a dll (and should export symbols for example).
17449 hpux9* | hpux10* | hpux11*)
17450 lt_prog_compiler_wl_GCJ='-Wl,'
17451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17452 # not for PA HP-UX.
17458 lt_prog_compiler_pic_GCJ='+Z'
17461 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17462 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17465 irix5* | irix6* | nonstopux*)
17466 lt_prog_compiler_wl_GCJ='-Wl,'
17467 # PIC (with -KPIC) is the default.
17468 lt_prog_compiler_static_GCJ='-non_shared'
17471 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17472 case $cc_basename in
17473 # old Intel for x86_64 which still supported -KPIC.
17475 lt_prog_compiler_wl_GCJ='-Wl,'
17476 lt_prog_compiler_pic_GCJ='-KPIC'
17477 lt_prog_compiler_static_GCJ='-static'
17479 # icc used to be incompatible with GCC.
17480 # ICC 10 doesn't accept -KPIC any more.
17482 lt_prog_compiler_wl_GCJ='-Wl,'
17483 lt_prog_compiler_pic_GCJ='-fPIC'
17484 lt_prog_compiler_static_GCJ='-static'
17486 # Lahey Fortran 8.1.
17488 lt_prog_compiler_wl_GCJ='-Wl,'
17489 lt_prog_compiler_pic_GCJ='--shared'
17490 lt_prog_compiler_static_GCJ='--static'
17492 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17493 # Portland Group compilers (*not* the Pentium gcc compiler,
17494 # which looks to be a dead project)
17495 lt_prog_compiler_wl_GCJ='-Wl,'
17496 lt_prog_compiler_pic_GCJ='-fpic'
17497 lt_prog_compiler_static_GCJ='-Bstatic'
17500 lt_prog_compiler_wl_GCJ='-Wl,'
17501 # All Alpha code is PIC.
17502 lt_prog_compiler_static_GCJ='-non_shared'
17504 xl* | bgxl* | bgf* | mpixl*)
17505 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17506 lt_prog_compiler_wl_GCJ='-Wl,'
17507 lt_prog_compiler_pic_GCJ='-qpic'
17508 lt_prog_compiler_static_GCJ='-qstaticlink'
17511 case `$CC -V 2>&1 | sed 5q` in
17512 *Sun\ F* | *Sun*Fortran*)
17513 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17514 lt_prog_compiler_pic_GCJ='-KPIC'
17515 lt_prog_compiler_static_GCJ='-Bstatic'
17516 lt_prog_compiler_wl_GCJ=''
17520 lt_prog_compiler_pic_GCJ='-KPIC'
17521 lt_prog_compiler_static_GCJ='-Bstatic'
17522 lt_prog_compiler_wl_GCJ='-Wl,'
17530 lt_prog_compiler_pic_GCJ='-KPIC'
17531 lt_prog_compiler_static_GCJ='-Bstatic'
17535 # QNX uses GNU C++, but need to define -shared option too, otherwise
17536 # it will coredump.
17537 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17540 osf3* | osf4* | osf5*)
17541 lt_prog_compiler_wl_GCJ='-Wl,'
17542 # All OSF/1 code is PIC.
17543 lt_prog_compiler_static_GCJ='-non_shared'
17547 lt_prog_compiler_static_GCJ='-non_shared'
17551 lt_prog_compiler_pic_GCJ='-KPIC'
17552 lt_prog_compiler_static_GCJ='-Bstatic'
17553 case $cc_basename in
17554 f77* | f90* | f95*)
17555 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17557 lt_prog_compiler_wl_GCJ='-Wl,';;
17562 lt_prog_compiler_wl_GCJ='-Qoption ld '
17563 lt_prog_compiler_pic_GCJ='-PIC'
17564 lt_prog_compiler_static_GCJ='-Bstatic'
17567 sysv4 | sysv4.2uw2* | sysv4.3*)
17568 lt_prog_compiler_wl_GCJ='-Wl,'
17569 lt_prog_compiler_pic_GCJ='-KPIC'
17570 lt_prog_compiler_static_GCJ='-Bstatic'
17574 if test -d /usr/nec ;then
17575 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17576 lt_prog_compiler_static_GCJ='-Bstatic'
17580 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17581 lt_prog_compiler_wl_GCJ='-Wl,'
17582 lt_prog_compiler_pic_GCJ='-KPIC'
17583 lt_prog_compiler_static_GCJ='-Bstatic'
17587 lt_prog_compiler_wl_GCJ='-Wl,'
17588 lt_prog_compiler_can_build_shared_GCJ=no
17592 lt_prog_compiler_pic_GCJ='-pic'
17593 lt_prog_compiler_static_GCJ='-Bstatic'
17597 lt_prog_compiler_can_build_shared_GCJ=no
17603 # For platforms which do not support PIC, -DPIC is meaningless:
17605 lt_prog_compiler_pic_GCJ=
17608 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17612 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17617 # Check to make sure the PIC flag actually works.
17619 if test -n "$lt_prog_compiler_pic_GCJ"; then
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17622 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17623 $as_echo_n "(cached) " >&6
17625 lt_cv_prog_compiler_pic_works_GCJ=no
17626 ac_outfile=conftest.$ac_objext
17627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17628 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17629 # Insert the option either (1) after the last *FLAGS variable, or
17630 # (2) before a word containing "conftest.", or (3) at the end.
17631 # Note that $ac_compile itself does not contain backslashes and begins
17632 # with a dollar sign (not a hyphen), so the echo should work correctly.
17633 # The option is referenced via a variable to avoid confusing sed.
17634 lt_compile=`echo "$ac_compile" | $SED \
17635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17637 -e 's:$: $lt_compiler_flag:'`
17638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17639 (eval "$lt_compile" 2>conftest.err)
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 if (exit $ac_status) && test -s "$ac_outfile"; then
17644 # The compiler can only warn and ignore the option if not recognized
17645 # So say no if there are warnings other than the usual output.
17646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17649 lt_cv_prog_compiler_pic_works_GCJ=yes
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17656 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17658 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17659 case $lt_prog_compiler_pic_GCJ in
17661 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17664 lt_prog_compiler_pic_GCJ=
17665 lt_prog_compiler_can_build_shared_GCJ=no
17673 # Check to make sure the static flag actually works.
17675 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17677 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17678 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17681 lt_cv_prog_compiler_static_works_GCJ=no
17682 save_LDFLAGS="$LDFLAGS"
17683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17684 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17686 # The linker can only warn and ignore the option if not recognized
17687 # So say no if there are warnings
17688 if test -s conftest.err; then
17689 # Append any errors to the config.log.
17690 cat conftest.err 1>&5
17691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17693 if diff conftest.exp conftest.er2 >/dev/null; then
17694 lt_cv_prog_compiler_static_works_GCJ=yes
17697 lt_cv_prog_compiler_static_works_GCJ=yes
17701 LDFLAGS="$save_LDFLAGS"
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17705 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17707 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17710 lt_prog_compiler_static_GCJ=
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17717 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17718 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17719 $as_echo_n "(cached) " >&6
17721 lt_cv_prog_compiler_c_o_GCJ=no
17722 $RM -r conftest 2>/dev/null
17726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17728 lt_compiler_flag="-o out/conftest2.$ac_objext"
17729 # Insert the option either (1) after the last *FLAGS variable, or
17730 # (2) before a word containing "conftest.", or (3) at the end.
17731 # Note that $ac_compile itself does not contain backslashes and begins
17732 # with a dollar sign (not a hyphen), so the echo should work correctly.
17733 lt_compile=`echo "$ac_compile" | $SED \
17734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17736 -e 's:$: $lt_compiler_flag:'`
17737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17738 (eval "$lt_compile" 2>out/conftest.err)
17740 cat out/conftest.err >&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17744 # The compiler can only warn and ignore the option if not recognized
17745 # So say no if there are warnings
17746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17749 lt_cv_prog_compiler_c_o_GCJ=yes
17754 # SGI C++ compiler will create directory out/ii_files/ for
17755 # template instantiation
17756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17757 $RM out/* && rmdir out
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17764 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17769 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17770 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17771 $as_echo_n "(cached) " >&6
17773 lt_cv_prog_compiler_c_o_GCJ=no
17774 $RM -r conftest 2>/dev/null
17778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17780 lt_compiler_flag="-o out/conftest2.$ac_objext"
17781 # Insert the option either (1) after the last *FLAGS variable, or
17782 # (2) before a word containing "conftest.", or (3) at the end.
17783 # Note that $ac_compile itself does not contain backslashes and begins
17784 # with a dollar sign (not a hyphen), so the echo should work correctly.
17785 lt_compile=`echo "$ac_compile" | $SED \
17786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17788 -e 's:$: $lt_compiler_flag:'`
17789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17790 (eval "$lt_compile" 2>out/conftest.err)
17792 cat out/conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17796 # The compiler can only warn and ignore the option if not recognized
17797 # So say no if there are warnings
17798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17799 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17800 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17801 lt_cv_prog_compiler_c_o_GCJ=yes
17806 # SGI C++ compiler will create directory out/ii_files/ for
17807 # template instantiation
17808 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17809 $RM out/* && rmdir out
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17816 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17821 hard_links="nottested"
17822 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17823 # do not overwrite the value of need_locks provided by the user
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17825 $as_echo_n "checking if we can lock with hard links... " >&6; }
17828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17830 ln conftest.a conftest.b 2>&5 || hard_links=no
17831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17833 $as_echo "$hard_links" >&6; }
17834 if test "$hard_links" = no; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17836 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17846 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17849 allow_undefined_flag_GCJ=
17850 always_export_symbols_GCJ=no
17852 archive_expsym_cmds_GCJ=
17853 compiler_needs_object_GCJ=no
17854 enable_shared_with_static_runtimes_GCJ=no
17855 export_dynamic_flag_spec_GCJ=
17856 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17857 hardcode_automatic_GCJ=no
17858 hardcode_direct_GCJ=no
17859 hardcode_direct_absolute_GCJ=no
17860 hardcode_libdir_flag_spec_GCJ=
17861 hardcode_libdir_flag_spec_ld_GCJ=
17862 hardcode_libdir_separator_GCJ=
17863 hardcode_minus_L_GCJ=no
17864 hardcode_shlibpath_var_GCJ=unsupported
17865 inherit_rpath_GCJ=no
17866 link_all_deplibs_GCJ=unknown
17868 module_expsym_cmds_GCJ=
17869 old_archive_from_new_cmds_GCJ=
17870 old_archive_from_expsyms_cmds_GCJ=
17871 thread_safe_flag_spec_GCJ=
17872 whole_archive_flag_spec_GCJ=
17873 # include_expsyms should be a list of space-separated symbols to be *always*
17874 # included in the symbol list
17875 include_expsyms_GCJ=
17876 # exclude_expsyms can be an extended regexp of symbols to exclude
17877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17879 # as well as any symbol that contains `d'.
17880 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17882 # platforms (ab)use it in PIC code, but their linkers get confused if
17883 # the symbol is explicitly referenced. Since portable code cannot
17884 # rely on this symbol name, it's probably fine to never include it in
17885 # preloaded symbol tables.
17886 # Exclude shared library initialization/finalization symbols.
17887 extract_expsyms_cmds=
17890 cygwin* | mingw* | pw32* | cegcc*)
17891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17892 # When not using gcc, we currently assume that we are using
17893 # Microsoft Visual C++.
17894 if test "$GCC" != yes; then
17899 # we just hope/assume this is gcc and not c89 (= MSVC++)
17909 # On some targets, GNU ld is compatible enough with the native linker
17910 # that we're better off using the native interface for both.
17911 lt_use_gnu_ld_interface=no
17912 if test "$with_gnu_ld" = yes; then
17915 # The AIX port of GNU ld has always aspired to compatibility
17916 # with the native linker. However, as the warning in the GNU ld
17917 # block says, versions before 2.19.5* couldn't really create working
17918 # shared libraries, regardless of the interface used.
17919 case `$LD -v 2>&1` in
17920 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17921 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17922 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17924 lt_use_gnu_ld_interface=yes
17929 lt_use_gnu_ld_interface=yes
17934 if test "$lt_use_gnu_ld_interface" = yes; then
17935 # If archive_cmds runs LD, not CC, wlarc should be empty
17938 # Set some defaults for GNU ld with shared library support. These
17939 # are reset later if shared libraries are not supported. Putting them
17940 # here allows them to be overridden if necessary.
17941 runpath_var=LD_RUN_PATH
17942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17944 # ancient GNU ld didn't support --whole-archive et. al.
17945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17946 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17948 whole_archive_flag_spec_GCJ=
17950 supports_anon_versioning=no
17951 case `$LD -v 2>&1` in
17952 *GNU\ gold*) supports_anon_versioning=yes ;;
17953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17956 *\ 2.11.*) ;; # other 2.11 versions
17957 *) supports_anon_versioning=yes ;;
17960 # See if GNU ld supports shared libraries.
17963 # On AIX/PPC, the GNU linker is very broken
17964 if test "$host_cpu" != ia64; then
17968 *** Warning: the GNU linker, at least up to release 2.19, is reported
17969 *** to be unable to reliably create shared libraries on AIX.
17970 *** Therefore, libtool is disabling shared libraries support. If you
17971 *** really care for shared libraries, you may want to install binutils
17972 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17973 *** You will then need to restart the configuration process.
17982 # see comment about AmigaOS4 .so support
17983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17984 archive_expsym_cmds_GCJ=''
17987 archive_cmds_GCJ='$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)'
17988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17989 hardcode_minus_L_GCJ=yes
17995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17996 allow_undefined_flag_GCJ=unsupported
17997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17998 # support --undefined. This deserves some investigation. FIXME
17999 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18005 cygwin* | mingw* | pw32* | cegcc*)
18006 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18007 # as there is no search path for DLLs.
18008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18009 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18010 allow_undefined_flag_GCJ=unsupported
18011 always_export_symbols_GCJ=no
18012 enable_shared_with_static_runtimes_GCJ=yes
18013 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18015 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18016 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18017 # If the export-symbols file already is a .def file (1st line
18018 # is EXPORTS), use it as is; otherwise, prepend...
18019 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18020 cp $export_symbols $output_objdir/$soname.def;
18022 echo EXPORTS > $output_objdir/$soname.def;
18023 cat $export_symbols >> $output_objdir/$soname.def;
18025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18032 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18033 link_all_deplibs_GCJ=yes
18037 hardcode_direct_GCJ=no
18038 hardcode_shlibpath_var_GCJ=no
18039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18040 export_dynamic_flag_spec_GCJ='${wl}-E'
18041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18042 # Instead, shared libraries are loaded at an image base (0x10000000 by
18043 # default) and relocated if they conflict, which is a slow very memory
18044 # consuming and fragmenting process. To avoid this, we pick a random,
18045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18047 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18048 archive_expsym_cmds_GCJ='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'
18051 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18053 if test "$host_os" = linux-dietlibc; then
18054 case $cc_basename in
18055 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18058 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18059 && test "$tmp_diet" = no
18062 tmp_sharedflag='-shared'
18063 case $cc_basename,$host_cpu in
18064 pgcc*) # Portland Group C compiler
18065 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18066 tmp_addflag=' $pic_flag'
18068 pgf77* | pgf90* | pgf95* | pgfortran*)
18069 # Portland Group f77 and f90 compilers
18070 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18071 tmp_addflag=' $pic_flag -Mnomain' ;;
18072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18073 tmp_addflag=' -i_dynamic' ;;
18074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18075 tmp_addflag=' -i_dynamic -nofor_main' ;;
18076 ifc* | ifort*) # Intel Fortran compiler
18077 tmp_addflag=' -nofor_main' ;;
18078 lf95*) # Lahey Fortran 8.1
18079 whole_archive_flag_spec_GCJ=
18080 tmp_sharedflag='--shared' ;;
18081 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18082 tmp_sharedflag='-qmkshrobj'
18084 nvcc*) # Cuda Compiler Driver 2.2
18085 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18086 compiler_needs_object_GCJ=yes
18089 case `$CC -V 2>&1 | sed 5q` in
18090 *Sun\ C*) # Sun C 5.9
18091 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18092 compiler_needs_object_GCJ=yes
18093 tmp_sharedflag='-G' ;;
18094 *Sun\ F*) # Sun Fortran 8.3
18095 tmp_sharedflag='-G' ;;
18097 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18099 if test "x$supports_anon_versioning" = xyes; then
18100 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18102 echo "local: *; };" >> $output_objdir/$libname.ver~
18103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18106 case $cc_basename in
18107 xlf* | bgf* | bgxlf* | mpixlf*)
18108 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18109 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18110 hardcode_libdir_flag_spec_GCJ=
18111 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18112 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18113 if test "x$supports_anon_versioning" = xyes; then
18114 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18116 echo "local: *; };" >> $output_objdir/$libname.ver~
18117 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18128 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18131 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18132 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18137 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18142 *** create shared libraries on Solaris systems. Therefore, libtool
18143 *** is disabling shared libraries support. We urge you to upgrade GNU
18144 *** binutils to release 2.9.1 or newer. Another option is to modify
18145 *** your PATH or compiler configuration so that the native linker is
18146 *** used, and then restart.
18149 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18158 case `$LD -v 2>&1` in
18159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18163 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18164 *** reliably create shared libraries on SCO systems. Therefore, libtool
18165 *** is disabling shared libraries support. We urge you to upgrade GNU
18166 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18167 *** your PATH or compiler configuration so that the native linker is
18168 *** used, and then restart.
18173 # For security reasons, it is highly recommended that you always
18174 # use absolute paths for naming shared libraries, and exclude the
18175 # DT_RUNPATH tag from executables and libraries. But doing so
18176 # requires that you compile everything twice, which is a pain.
18177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18189 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18191 hardcode_direct_GCJ=yes
18192 hardcode_shlibpath_var_GCJ=no
18196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18197 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18198 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18205 if test "$ld_shlibs_GCJ" = no; then
18207 hardcode_libdir_flag_spec_GCJ=
18208 export_dynamic_flag_spec_GCJ=
18209 whole_archive_flag_spec_GCJ=
18212 # PORTME fill in a description of your system's linker (not GNU ld)
18215 allow_undefined_flag_GCJ=unsupported
18216 always_export_symbols_GCJ=yes
18217 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18218 # Note: this linker hardcodes the directories in LIBPATH if there
18219 # are no directories specified by -L.
18220 hardcode_minus_L_GCJ=yes
18221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18222 # Neither direct hardcoding nor static linking is supported with a
18224 hardcode_direct_GCJ=unsupported
18229 if test "$host_cpu" = ia64; then
18230 # On IA64, the linker does run time linking by default, so we don't
18231 # have to do anything special.
18232 aix_use_runtimelinking=no
18233 exp_sym_flag='-Bexport'
18236 # If we're using GNU nm, then we don't want the "-C" option.
18237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18238 # Also, AIX nm treats weak defined symbols like other global
18239 # defined symbols, whereas GNU nm marks them as "W".
18240 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18241 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18243 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18245 aix_use_runtimelinking=no
18247 # Test if we are trying to use run time linking or normal
18248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18249 # need to do runtime linking.
18250 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18251 for ld_flag in $LDFLAGS; do
18252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18253 aix_use_runtimelinking=yes
18260 exp_sym_flag='-bexport'
18261 no_entry_flag='-bnoentry'
18264 # When large executables or shared objects are built, AIX ld can
18265 # have problems creating the table of contents. If linking a library
18266 # or program results in "error TOC overflow" add -mminimal-toc to
18267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18270 archive_cmds_GCJ=''
18271 hardcode_direct_GCJ=yes
18272 hardcode_direct_absolute_GCJ=yes
18273 hardcode_libdir_separator_GCJ=':'
18274 link_all_deplibs_GCJ=yes
18275 file_list_spec_GCJ='${wl}-f,'
18277 if test "$GCC" = yes; then
18278 case $host_os in aix4.[012]|aix4.[012].*)
18279 # We only want to do this on AIX 4.2 and lower, the check
18280 # below for broken collect2 doesn't work under 4.3+
18281 collect2name=`${CC} -print-prog-name=collect2`
18282 if test -f "$collect2name" &&
18283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18285 # We have reworked collect2
18288 # We have old collect2
18289 hardcode_direct_GCJ=unsupported
18290 # It fails to find uninstalled libraries when the uninstalled
18291 # path is not listed in the libpath. Setting hardcode_minus_L
18292 # to unsupported forces relinking
18293 hardcode_minus_L_GCJ=yes
18294 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18295 hardcode_libdir_separator_GCJ=
18299 shared_flag='-shared'
18300 if test "$aix_use_runtimelinking" = yes; then
18301 shared_flag="$shared_flag "'${wl}-G'
18305 if test "$host_cpu" = ia64; then
18306 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18307 # chokes on -Wl,-G. The following line is correct:
18310 if test "$aix_use_runtimelinking" = yes; then
18311 shared_flag='${wl}-G'
18313 shared_flag='${wl}-bM:SRE'
18318 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18319 # It seems that -bexpall does not export symbols beginning with
18320 # underscore (_), so it is better to generate a list of symbols to export.
18321 always_export_symbols_GCJ=yes
18322 if test "$aix_use_runtimelinking" = yes; then
18323 # Warning - without using the other runtime loading flags (-brtl),
18324 # -berok will link without error, but may produce a broken library.
18325 allow_undefined_flag_GCJ='-berok'
18326 # Determine the default libpath from the value encoded in an
18327 # empty executable.
18328 if test x$gcc_no_link = xyes; then
18329 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18342 if ac_fn_c_try_link "$LINENO"; then :
18344 lt_aix_libpath_sed='
18345 /Import File Strings/,/^$/ {
18351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18352 # Check for a 64-bit object if we didn't find anything.
18353 if test -z "$aix_libpath"; then
18354 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18357 rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18362 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18364 if test "$host_cpu" = ia64; then
18365 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18366 allow_undefined_flag_GCJ="-z nodefs"
18367 archive_expsym_cmds_GCJ="\$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"
18369 # Determine the default libpath from the value encoded in an
18370 # empty executable.
18371 if test x$gcc_no_link = xyes; then
18372 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18385 if ac_fn_c_try_link "$LINENO"; then :
18387 lt_aix_libpath_sed='
18388 /Import File Strings/,/^$/ {
18394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18395 # Check for a 64-bit object if we didn't find anything.
18396 if test -z "$aix_libpath"; then
18397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18400 rm -f core conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18404 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18405 # Warning - without using the other run time loading flags,
18406 # -berok will link without error, but may produce a broken library.
18407 no_undefined_flag_GCJ=' ${wl}-bernotok'
18408 allow_undefined_flag_GCJ=' ${wl}-berok'
18409 if test "$with_gnu_ld" = yes; then
18410 # We only use this code for GNU lds that support --whole-archive.
18411 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18413 # Exported symbols can be pulled into shared objects from archives
18414 whole_archive_flag_spec_GCJ='$convenience'
18416 archive_cmds_need_lc_GCJ=yes
18417 # This is similar to how AIX traditionally builds its shared libraries.
18418 archive_expsym_cmds_GCJ="\$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'
18426 # see comment about AmigaOS4 .so support
18427 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18428 archive_expsym_cmds_GCJ=''
18431 archive_cmds_GCJ='$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)'
18432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18433 hardcode_minus_L_GCJ=yes
18439 export_dynamic_flag_spec_GCJ=-rdynamic
18442 cygwin* | mingw* | pw32* | cegcc*)
18443 # When not using gcc, we currently assume that we are using
18444 # Microsoft Visual C++.
18445 # hardcode_libdir_flag_spec is actually meaningless, as there is
18446 # no search path for DLLs.
18447 hardcode_libdir_flag_spec_GCJ=' '
18448 allow_undefined_flag_GCJ=unsupported
18449 # Tell ltmain to make .lib files, not .a files.
18451 # Tell ltmain to make .dll files, not .so files.
18453 # FIXME: Setting linknames here is a bad hack.
18454 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18455 # The linker will automatically build a .lib file if we build a DLL.
18456 old_archive_from_new_cmds_GCJ='true'
18457 # FIXME: Should let the user specify the lib program.
18458 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18459 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18460 enable_shared_with_static_runtimes_GCJ=yes
18463 darwin* | rhapsody*)
18466 archive_cmds_need_lc_GCJ=no
18467 hardcode_direct_GCJ=no
18468 hardcode_automatic_GCJ=yes
18469 hardcode_shlibpath_var_GCJ=unsupported
18470 if test "$lt_cv_ld_force_load" = "yes"; then
18471 whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18473 whole_archive_flag_spec_GCJ=''
18475 link_all_deplibs_GCJ=yes
18476 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18477 case $cc_basename in
18478 ifort*) _lt_dar_can_shared=yes ;;
18479 *) _lt_dar_can_shared=$GCC ;;
18481 if test "$_lt_dar_can_shared" = "yes"; then
18482 output_verbose_link_cmd=func_echo_all
18483 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18484 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18485 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18486 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18497 hardcode_shlibpath_var_GCJ=no
18504 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18505 # support. Future versions do this automatically, but an explicit c++rt0.o
18506 # does not break anything, and helps significantly (at the cost of a little
18509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18511 hardcode_direct_GCJ=yes
18512 hardcode_shlibpath_var_GCJ=no
18515 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18517 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18518 hardcode_direct_GCJ=yes
18519 hardcode_minus_L_GCJ=yes
18520 hardcode_shlibpath_var_GCJ=no
18523 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18524 freebsd* | dragonfly*)
18525 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18526 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18527 hardcode_direct_GCJ=yes
18528 hardcode_shlibpath_var_GCJ=no
18532 if test "$GCC" = yes; then
18533 archive_cmds_GCJ='$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'
18535 archive_cmds_GCJ='$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'
18537 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18538 hardcode_libdir_separator_GCJ=:
18539 hardcode_direct_GCJ=yes
18541 # hardcode_minus_L: Not really in the search PATH,
18542 # but as the default location of the library.
18543 hardcode_minus_L_GCJ=yes
18544 export_dynamic_flag_spec_GCJ='${wl}-E'
18548 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18549 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18551 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18553 if test "$with_gnu_ld" = no; then
18554 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18555 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18556 hardcode_libdir_separator_GCJ=:
18557 hardcode_direct_GCJ=yes
18558 hardcode_direct_absolute_GCJ=yes
18559 export_dynamic_flag_spec_GCJ='${wl}-E'
18560 # hardcode_minus_L: Not really in the search PATH,
18561 # but as the default location of the library.
18562 hardcode_minus_L_GCJ=yes
18567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18570 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18573 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18576 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18582 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18588 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18592 if test "$with_gnu_ld" = no; then
18593 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18594 hardcode_libdir_separator_GCJ=:
18598 hardcode_direct_GCJ=no
18599 hardcode_shlibpath_var_GCJ=no
18602 hardcode_direct_GCJ=yes
18603 hardcode_direct_absolute_GCJ=yes
18604 export_dynamic_flag_spec_GCJ='${wl}-E'
18606 # hardcode_minus_L: Not really in the search PATH,
18607 # but as the default location of the library.
18608 hardcode_minus_L_GCJ=yes
18614 irix5* | irix6* | nonstopux*)
18615 if test "$GCC" = yes; then
18616 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18617 # Try to use the -exported_symbol ld option, if it does not
18618 # work, assume that -exports_file does not work either and
18619 # implicitly export all symbols.
18620 save_LDFLAGS="$LDFLAGS"
18621 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18622 if test x$gcc_no_link = xyes; then
18623 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h. */
18629 if ac_fn_c_try_link "$LINENO"; then :
18630 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18633 rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 LDFLAGS="$save_LDFLAGS"
18637 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18638 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18640 archive_cmds_need_lc_GCJ='no'
18641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18642 hardcode_libdir_separator_GCJ=:
18643 inherit_rpath_GCJ=yes
18644 link_all_deplibs_GCJ=yes
18648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18649 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18651 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18653 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18654 hardcode_direct_GCJ=yes
18655 hardcode_shlibpath_var_GCJ=no
18659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18660 hardcode_direct_GCJ=yes
18661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18662 hardcode_libdir_separator_GCJ=:
18663 hardcode_shlibpath_var_GCJ=no
18670 if test -f /usr/libexec/ld.so; then
18671 hardcode_direct_GCJ=yes
18672 hardcode_shlibpath_var_GCJ=no
18673 hardcode_direct_absolute_GCJ=yes
18674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18675 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18676 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18678 export_dynamic_flag_spec_GCJ='${wl}-E'
18681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18686 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18698 hardcode_minus_L_GCJ=yes
18699 allow_undefined_flag_GCJ=unsupported
18700 archive_cmds_GCJ='$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'
18701 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18705 if test "$GCC" = yes; then
18706 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18707 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18709 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18710 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18712 archive_cmds_need_lc_GCJ='no'
18713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18714 hardcode_libdir_separator_GCJ=:
18717 osf4* | osf5*) # as osf3* with the addition of -msym flag
18718 if test "$GCC" = yes; then
18719 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18720 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18723 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18724 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18725 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
18726 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18728 # Both c and cxx compiler support -rpath directly
18729 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18731 archive_cmds_need_lc_GCJ='no'
18732 hardcode_libdir_separator_GCJ=:
18736 no_undefined_flag_GCJ=' -z defs'
18737 if test "$GCC" = yes; then
18739 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18740 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18741 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18743 case `$CC -V 2>&1` in
18746 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18747 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18748 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18752 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18753 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18754 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18758 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18759 hardcode_shlibpath_var_GCJ=no
18761 solaris2.[0-5] | solaris2.[0-5].*) ;;
18763 # The compiler driver will combine and reorder linker options,
18764 # but understands `-z linker_flag'. GCC discards it without `$wl',
18765 # but is careful enough not to reorder.
18766 # Supported since Solaris 2.6 (maybe 2.5.1?)
18767 if test "$GCC" = yes; then
18768 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18770 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18774 link_all_deplibs_GCJ=yes
18778 if test "x$host_vendor" = xsequent; then
18779 # Use $CC to link under sequent, because it throws in some extra .o
18780 # files that make .init and .fini sections work.
18781 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18783 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18786 hardcode_direct_GCJ=yes
18787 hardcode_minus_L_GCJ=yes
18788 hardcode_shlibpath_var_GCJ=no
18792 case $host_vendor in
18794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18795 hardcode_direct_GCJ=yes # is this really true???
18798 ## LD is ld it makes a PLAMLIB
18799 ## CC just makes a GrossModule.
18800 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18801 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18802 hardcode_direct_GCJ=no
18805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18806 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18809 runpath_var='LD_RUN_PATH'
18810 hardcode_shlibpath_var_GCJ=no
18814 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18815 hardcode_shlibpath_var_GCJ=no
18816 export_dynamic_flag_spec_GCJ='-Bexport'
18820 if test -d /usr/nec; then
18821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18822 hardcode_shlibpath_var_GCJ=no
18823 runpath_var=LD_RUN_PATH
18824 hardcode_runpath_var=yes
18829 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18830 no_undefined_flag_GCJ='${wl}-z,text'
18831 archive_cmds_need_lc_GCJ=no
18832 hardcode_shlibpath_var_GCJ=no
18833 runpath_var='LD_RUN_PATH'
18835 if test "$GCC" = yes; then
18836 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18837 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18839 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18840 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18844 sysv5* | sco3.2v5* | sco5v6*)
18845 # Note: We can NOT use -z defs as we might desire, because we do not
18846 # link with -lc, and that would cause any symbols used from libc to
18847 # always be unresolved, which means just about no library would
18848 # ever link correctly. If we're not using GNU ld we use -z text
18849 # though, which does catch some bad symbols but isn't as heavy-handed
18851 no_undefined_flag_GCJ='${wl}-z,text'
18852 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18853 archive_cmds_need_lc_GCJ=no
18854 hardcode_shlibpath_var_GCJ=no
18855 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18856 hardcode_libdir_separator_GCJ=':'
18857 link_all_deplibs_GCJ=yes
18858 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18859 runpath_var='LD_RUN_PATH'
18861 if test "$GCC" = yes; then
18862 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18863 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18865 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18872 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18873 hardcode_shlibpath_var_GCJ=no
18881 if test x$host_vendor = xsni; then
18883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18884 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18891 $as_echo "$ld_shlibs_GCJ" >&6; }
18892 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18894 with_gnu_ld_GCJ=$with_gnu_ld
18902 # Do we need to explicitly link libc?
18904 case "x$archive_cmds_need_lc_GCJ" in
18906 # Assume -lc should be added
18907 archive_cmds_need_lc_GCJ=yes
18909 if test "$enable_shared" = yes && test "$GCC" = yes; then
18910 case $archive_cmds_GCJ in
18912 # FIXME: we may have to deal with multi-command sequences.
18915 # Test whether the compiler implicitly links with -lc since on some
18916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18917 # to ld, don't add -lc before -lgcc.
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18919 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18920 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18921 $as_echo_n "(cached) " >&6
18924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18927 (eval $ac_compile) 2>&5
18929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18930 test $ac_status = 0; } 2>conftest.err; then
18933 libobjs=conftest.$ac_objext
18935 wl=$lt_prog_compiler_wl_GCJ
18936 pic_flag=$lt_prog_compiler_pic_GCJ
18942 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18943 allow_undefined_flag_GCJ=
18944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18945 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; }
18950 lt_cv_archive_cmds_need_lc_GCJ=no
18952 lt_cv_archive_cmds_need_lc_GCJ=yes
18954 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18956 cat conftest.err 1>&5
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18962 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18963 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19034 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19035 hardcode_action_GCJ=
19036 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19037 test -n "$runpath_var_GCJ" ||
19038 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19040 # We can hardcode non-existent directories.
19041 if test "$hardcode_direct_GCJ" != no &&
19042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19043 # have to relink, otherwise we might link with an installed library
19044 # when we should be linking with a yet-to-be-installed one
19045 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19046 test "$hardcode_minus_L_GCJ" != no; then
19047 # Linking always hardcodes the temporary library directory.
19048 hardcode_action_GCJ=relink
19050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19051 hardcode_action_GCJ=immediate
19054 # We cannot hardcode anything, or else we can only hardcode existing
19056 hardcode_action_GCJ=unsupported
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19059 $as_echo "$hardcode_action_GCJ" >&6; }
19061 if test "$hardcode_action_GCJ" = relink ||
19062 test "$inherit_rpath_GCJ" = yes; then
19063 # Fast installation is not supported
19064 enable_fast_install=no
19065 elif test "$shlibpath_overrides_runpath" = yes ||
19066 test "$enable_shared" = no; then
19067 # Fast installation is not necessary
19068 enable_fast_install=needless
19079 compiler_GCJ=${GCJ-gcj}
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19087 if test "x$CC" != xcc; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19089 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19092 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19094 set dummy $CC; ac_cc=`$as_echo "$2" |
19095 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19096 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19097 $as_echo_n "(cached) " >&6
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19110 # Make sure it works both with $CC and with simple cc.
19111 # We do the test twice because some compilers refuse to overwrite an
19112 # existing .o file with -o, though they will create one.
19113 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19115 if { { case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19120 $as_echo "$ac_try_echo"; } >&5
19121 (eval "$ac_try") 2>&5
19123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19124 test $ac_status = 0; } &&
19125 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19130 $as_echo "$ac_try_echo"; } >&5
19131 (eval "$ac_try") 2>&5
19133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134 test $ac_status = 0; };
19136 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19137 if test "x$CC" != xcc; then
19138 # Test first that cc exists at all.
19139 if { ac_try='cc -c conftest.$ac_ext >&5'
19140 { { case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19145 $as_echo "$ac_try_echo"; } >&5
19146 (eval "$ac_try") 2>&5
19148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19149 test $ac_status = 0; }; }; then
19150 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19152 if { { case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19157 $as_echo "$ac_try_echo"; } >&5
19158 (eval "$ac_try") 2>&5
19160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19161 test $ac_status = 0; } &&
19162 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19167 $as_echo "$ac_try_echo"; } >&5
19168 (eval "$ac_try") 2>&5
19170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19171 test $ac_status = 0; };
19176 # cc exists but doesn't like -o.
19177 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19182 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19184 rm -f core conftest*
19187 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189 $as_echo "yes" >&6; }
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192 $as_echo "no" >&6; }
19194 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19198 # FIXME: we rely on the cache variable name because
19199 # there is no other way.
19201 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19202 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19203 if test "$am_t" != yes; then
19204 # Losing compiler, so override with the script.
19205 # FIXME: It is wrong to rewrite CC.
19206 # But if we don't then we get into trouble of one sort or another.
19207 # A longer-term fix would be to have automake use am__CC in this case,
19208 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19209 CC="$am_aux_dir/compile $CC"
19216 subdirs="$subdirs classpath libltdl"
19219 # The -no-testsuite modules omit the test subdir.
19220 if test -d $srcdir/testsuite; then
19222 TESTSUBDIR_FALSE='#'
19224 TESTSUBDIR_TRUE='#'
19229 # Should the runtime set system properties by examining the
19230 # environment variable GCJ_PROPERTIES?
19231 # Check whether --enable-getenv-properties was given.
19232 if test "${enable_getenv_properties+set}" = set; then :
19233 enableval=$enable_getenv_properties;
19237 # Whether GCJ_PROPERTIES is used depends on the target.
19238 if test -z "$enable_getenv_properties"; then
19239 enable_getenv_properties=${enable_getenv_properties_default-yes}
19241 if test "$enable_getenv_properties" = no; then
19243 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19247 # Whether we should use arguments to main()
19248 if test -z "$enable_main_args"; then
19249 enable_main_args=${enable_main_args_default-yes}
19251 if test "$enable_main_args" = no; then
19253 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19258 # Should we use hashtable-based synchronization?
19259 # Currently works only for Linux X86/ia64
19260 # Typically faster and more space-efficient
19261 # Check whether --enable-hash-synchronization was given.
19262 if test "${enable_hash_synchronization+set}" = set; then :
19263 enableval=$enable_hash_synchronization;
19267 if test -z "$enable_hash_synchronization"; then
19268 enable_hash_synchronization=$enable_hash_synchronization_default
19276 # Check whether --with-ecj-jar was given.
19277 if test "${with_ecj_jar+set}" = set; then :
19278 withval=$with_ecj_jar; ECJ_JAR=$withval
19280 if test -f $multi_basedir/ecj.jar; then
19281 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19282 ECJ_JAR='$(jardir)/ecj.jar'
19283 install_ecj_jar=yes
19289 if test "$ECJ_JAR" != ""; then
19291 BUILD_ECJ1_FALSE='#'
19293 BUILD_ECJ1_TRUE='#'
19297 if test $install_ecj_jar = yes; then
19298 INSTALL_ECJ_JAR_TRUE=
19299 INSTALL_ECJ_JAR_FALSE='#'
19301 INSTALL_ECJ_JAR_TRUE='#'
19302 INSTALL_ECJ_JAR_FALSE=
19307 # Check whether --with-java-home was given.
19308 if test "${with_java_home+set}" = set; then :
19309 withval=$with_java_home; JAVA_HOME="${withval}"
19314 if test ! -z "$JAVA_HOME"; then
19315 JAVA_HOME_SET_TRUE=
19316 JAVA_HOME_SET_FALSE='#'
19318 JAVA_HOME_SET_TRUE='#'
19319 JAVA_HOME_SET_FALSE=
19324 suppress_libgcj_bc=no
19325 # Check whether --enable-libgcj-bc was given.
19326 if test "${enable_libgcj_bc+set}" = set; then :
19327 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19328 suppress_libgcj_bc=yes
19332 if test "$suppress_libgcj_bc" = "yes"; then
19333 SUPPRESS_LIBGCJ_BC_TRUE=
19334 SUPPRESS_LIBGCJ_BC_FALSE='#'
19336 SUPPRESS_LIBGCJ_BC_TRUE='#'
19337 SUPPRESS_LIBGCJ_BC_FALSE=
19341 build_libgcj_reduced_reflection=no
19342 # Check whether --enable-reduced-reflection was given.
19343 if test "${enable_reduced_reflection+set}" = set; then :
19344 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19345 build_libgcj_reduced_reflection=yes
19349 if test "$build_libgcj_reduced_reflection" = "yes"; then
19350 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19351 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19353 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19354 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19358 # What is the native OS API for MinGW?
19360 # Check whether --with-win32-nlsapi was given.
19361 if test "${with_win32_nlsapi+set}" = set; then :
19362 withval=$with_win32_nlsapi; case "${withval}" in
19363 ansi) with_win32_nlsapi=ansi ;;
19364 unicows) with_win32_nlsapi=unicows ;;
19365 unicode) with_win32_nlsapi=unicode ;;
19366 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19369 with_win32_nlsapi=ansi
19373 case "${with_win32_nlsapi}" in
19376 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19381 # configure.host sets slow_pthread_self if the synchronization code should
19382 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19383 if test "${slow_pthread_self}" = "yes"; then
19385 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19389 # Check for gc debugging. This option is handled both here and in the GC.
19390 # Check whether --enable-gc-debug was given.
19391 if test "${enable_gc_debug+set}" = set; then :
19392 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19394 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19400 # See if the user has the interpreter included.
19401 # Check whether --enable-interpreter was given.
19402 if test "${enable_interpreter+set}" = set; then :
19403 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19404 # This can also be set in configure.host.
19405 libgcj_interpreter=yes
19406 elif test "$enable_interpreter" = no; then
19407 libgcj_interpreter=no
19412 if test "$libgcj_interpreter" = yes; then
19414 $as_echo "#define INTERPRETER 1" >>confdefs.h
19417 INTERPRETER="$libgcj_interpreter"
19419 if test "$libgcj_interpreter" = yes; then
19421 INTERPRETER_FALSE='#'
19423 INTERPRETER_TRUE='#'
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19429 $as_echo_n "checking for exception model to use... " >&6; }
19431 ac_cpp='$CXXCPP $CPPFLAGS'
19432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436 # Check whether --enable-sjlj-exceptions was given.
19437 if test "${enable_sjlj_exceptions+set}" = set; then :
19438 enableval=$enable_sjlj_exceptions; :
19440 cat > conftest.$ac_ext << EOF
19441 #line 19441 "configure"
19442 struct S { ~S(); };
19450 old_CXXFLAGS="$CXXFLAGS"
19452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19453 (eval $ac_compile) 2>&5
19455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19456 test $ac_status = 0; }; then
19457 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19458 enable_sjlj_exceptions=yes
19459 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19460 enable_sjlj_exceptions=no
19461 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19463 enable_sjlj_exceptions=no
19466 CXXFLAGS="$old_CXXFLAGS"
19470 if test x$enable_sjlj_exceptions = xyes; then
19472 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19474 ac_exception_model_name=sjlj
19475 elif test x$enable_sjlj_exceptions = xno; then
19476 ac_exception_model_name="call frame"
19478 as_fn_error "unable to detect exception model" "$LINENO" 5
19481 ac_cpp='$CPP $CPPFLAGS'
19482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19487 $as_echo "$ac_exception_model_name" >&6; }
19489 # If we are non using SJLJ exceptions, and this host does not have support
19490 # for unwinding from a signal handler, enable checked dereferences and divides.
19491 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19492 CHECKREFSPEC=-fcheck-references
19493 DIVIDESPEC=-fuse-divide-subroutine
19497 # See if the user wants to disable java.net. This is the mildly
19498 # ugly way that we admit that target-side configuration sucks.
19499 # Check whether --enable-java-net was given.
19500 if test "${enable_java_net+set}" = set; then :
19501 enableval=$enable_java_net;
19505 # Whether java.net is built by default can depend on the target.
19506 if test -z "$enable_java_net"; then
19507 enable_java_net=${enable_java_net_default-yes}
19509 if test "$enable_java_net" = no; then
19511 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19515 # See if the user wants to configure without libffi. Some
19516 # architectures don't support it, and default values are set in
19519 # Check whether --with-libffi was given.
19520 if test "${with_libffi+set}" = set; then :
19521 withval=$with_libffi; :
19523 with_libffi=${with_libffi_default-yes}
19529 if test "$with_libffi" != no; then
19531 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19533 LIBFFI=../libffi/libffi_convenience.la
19534 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19539 # See if the user wants to disable JVMPI support.
19540 # Check whether --enable-jvmpi was given.
19541 if test "${enable_jvmpi+set}" = set; then :
19542 enableval=$enable_jvmpi;
19546 if test "$enable_jvmpi" != no; then
19548 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19552 # If the target is an eCos system, use the appropriate eCos
19554 # FIXME: this should not be a local option but a global target
19555 # system; at present there is no eCos target.
19556 TARGET_ECOS=${PROCESS-"no"}
19558 # Check whether --with-ecos was given.
19559 if test "${with_ecos+set}" = set; then :
19560 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19565 case "$TARGET_ECOS" in
19566 no) case "$host" in
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19573 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19574 LD_PROG=`$CC --print-prog-name=ld`
19575 LD_VERSION=`$LD_PROG --version`
19576 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19577 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19578 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19581 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19585 if test "x$LD_OK" != x; then
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19587 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19590 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19592 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19594 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19609 $as_echo "#define ECOS 1" >>confdefs.h
19615 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19620 #include <stdint.h>
19623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19624 $EGREP "uint32_t" >/dev/null 2>&1; then :
19626 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632 /* end confdefs.h. */
19633 #include <inttypes.h>
19636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19637 $EGREP "uint32_t" >/dev/null 2>&1; then :
19639 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19646 #include <sys/types.h>
19649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19650 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19652 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 #include <sys/config.h>
19662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19663 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19665 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19671 if test "$PLATFORM" = Win32; then
19672 USING_WIN32_PLATFORM_TRUE=
19673 USING_WIN32_PLATFORM_FALSE='#'
19675 USING_WIN32_PLATFORM_TRUE='#'
19676 USING_WIN32_PLATFORM_FALSE=
19679 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19680 USING_POSIX_PLATFORM_TRUE=
19681 USING_POSIX_PLATFORM_FALSE='#'
19683 USING_POSIX_PLATFORM_TRUE='#'
19684 USING_POSIX_PLATFORM_FALSE=
19689 *-darwin*) DARWIN_CRT=true ;;
19690 *) DARWIN_CRT=false ;;
19692 if $DARWIN_CRT; then
19693 USING_DARWIN_CRT_TRUE=
19694 USING_DARWIN_CRT_FALSE='#'
19696 USING_DARWIN_CRT_TRUE='#'
19697 USING_DARWIN_CRT_FALSE=
19701 # This may not be defined in a non-ANS conformant embedded system.
19702 # FIXME: Should these case a runtime exception in that case?
19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709 $EGREP "localtime" >/dev/null 2>&1; then :
19711 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19717 # Create the subdirectory for natFile.cc, or the attempt
19718 # to create the link will fail.
19719 test -d java || mkdir java
19720 test -d java/io || mkdir java/io
19721 test -d gnu || mkdir gnu
19722 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19725 # Likewise for natConcreteProcess.cc.
19726 test -d java/lang || mkdir java/lang
19727 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19730 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19731 test -d java/net || mkdir java/net
19732 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19734 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19737 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19738 test -d gnu/java || mkdir gnu/java
19739 test -d gnu/java/net || mkdir gnu/java/net
19740 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19742 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19745 # Likewise for natVMPipe.cc and natVMSelector.cc.
19746 test -d gnu/java/nio || mkdir gnu/java/nio
19747 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19749 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19752 # Likewise for natFileChannelImpl.cc
19753 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19754 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19757 # Likewise for natVMSecureRandom.cc
19758 test -d gnu/java/security || mkdir gnu/java/security
19759 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19760 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19761 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19766 SYSTEMSPEC="-lgdi32 -lws2_32"
19767 if test "${with_win32_nlsapi}" = "unicows"; then
19768 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19772 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19781 # Check whether --with-system-zlib was given.
19782 if test "${with_system_zlib+set}" = set; then :
19783 withval=$with_system_zlib;
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19792 $as_echo_n "checking for X... " >&6; }
19795 # Check whether --with-x was given.
19796 if test "${with_x+set}" = set; then :
19800 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19801 if test "x$with_x" = xno; then
19802 # The user explicitly disabled X.
19805 case $x_includes,$x_libraries in #(
19806 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19807 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19810 # One or both of the vars are not set, and there is no cached value.
19811 ac_x_includes=no ac_x_libraries=no
19812 rm -f -r conftest.dir
19813 if mkdir conftest.dir; then
19815 cat >Imakefile <<'_ACEOF'
19817 @echo incroot='${INCROOT}'
19819 @echo usrlibdir='${USRLIBDIR}'
19821 @echo libdir='${LIBDIR}'
19823 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19825 for ac_var in incroot usrlibdir libdir; do
19826 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19828 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19829 for ac_extension in a so sl dylib la dll; do
19830 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19831 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19832 ac_im_usrlibdir=$ac_im_libdir; break
19835 # Screen out bogus values from the imake configuration. They are
19836 # bogus both because they are the default anyway, and because
19837 # using them would break gcc on systems where it needs fixed includes.
19838 case $ac_im_incroot in
19839 /usr/include) ac_x_includes= ;;
19840 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19842 case $ac_im_usrlibdir in
19843 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19844 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19848 rm -f -r conftest.dir
19851 # Standard set of common directories for X headers.
19852 # Check X11 before X11Rn because it is often a symlink to the current release.
19866 /usr/local/X11/include
19867 /usr/local/X11R7/include
19868 /usr/local/X11R6/include
19869 /usr/local/X11R5/include
19870 /usr/local/X11R4/include
19872 /usr/local/include/X11
19873 /usr/local/include/X11R7
19874 /usr/local/include/X11R6
19875 /usr/local/include/X11R5
19876 /usr/local/include/X11R4
19880 /usr/XFree86/include/X11
19884 /usr/unsupported/include
19885 /usr/athena/include
19886 /usr/local/x11r5/include
19887 /usr/lpp/Xamples/include
19889 /usr/openwin/include
19890 /usr/openwin/share/include'
19892 if test "$ac_x_includes" = no; then
19893 # Guess where to find include files, by looking for Xlib.h.
19894 # First, try using that file with no special directory specified.
19895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19896 /* end confdefs.h. */
19897 #include <X11/Xlib.h>
19899 if ac_fn_c_try_cpp "$LINENO"; then :
19900 # We can compile using X headers with no special include directory.
19903 for ac_dir in $ac_x_header_dirs; do
19904 if test -r "$ac_dir/X11/Xlib.h"; then
19905 ac_x_includes=$ac_dir
19910 rm -f conftest.err conftest.$ac_ext
19911 fi # $ac_x_includes = no
19913 if test "$ac_x_libraries" = no; then
19914 # Check for the libraries.
19915 # See if we find them without any special options.
19916 # Don't add to $LIBS permanently.
19919 if test x$gcc_no_link = xyes; then
19920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19923 /* end confdefs.h. */
19924 #include <X11/Xlib.h>
19933 if ac_fn_c_try_link "$LINENO"; then :
19935 # We can link X programs with no special library path.
19939 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19941 # Don't even attempt the hair of trying to link an X program!
19942 for ac_extension in a so sl dylib la dll; do
19943 if test -r "$ac_dir/libX11.$ac_extension"; then
19944 ac_x_libraries=$ac_dir
19950 rm -f core conftest.err conftest.$ac_objext \
19951 conftest$ac_exeext conftest.$ac_ext
19952 fi # $ac_x_libraries = no
19954 case $ac_x_includes,$ac_x_libraries in #(
19955 no,* | *,no | *\'*)
19956 # Didn't find X, or a directory has "'" in its name.
19957 ac_cv_have_x="have_x=no";; #(
19959 # Record where we found X for the cache.
19960 ac_cv_have_x="have_x=yes\
19961 ac_x_includes='$ac_x_includes'\
19962 ac_x_libraries='$ac_x_libraries'"
19968 eval "$ac_cv_have_x"
19971 if test "$have_x" != yes; then
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19973 $as_echo "$have_x" >&6; }
19976 # If each of the values was on the command line, it overrides each guess.
19977 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19978 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19979 # Update the cache value to reflect the command line values.
19980 ac_cv_have_x="have_x=yes\
19981 ac_x_includes='$x_includes'\
19982 ac_x_libraries='$x_libraries'"
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19984 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19987 if test "$no_x" = yes; then
19988 # Not all programs may use this symbol, but it does not hurt to define it.
19990 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19992 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19994 if test -n "$x_includes"; then
19995 X_CFLAGS="$X_CFLAGS -I$x_includes"
19998 # It would also be nice to do this for all -L options, not just this one.
19999 if test -n "$x_libraries"; then
20000 X_LIBS="$X_LIBS -L$x_libraries"
20001 # For Solaris; some versions of Sun CC require a space after -R and
20002 # others require no space. Words are not sufficient . . . .
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20004 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20005 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20006 ac_xsave_c_werror_flag=$ac_c_werror_flag
20007 ac_c_werror_flag=yes
20008 if test x$gcc_no_link = xyes; then
20009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h. */
20022 if ac_fn_c_try_link "$LINENO"; then :
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20024 $as_echo "no" >&6; }
20025 X_LIBS="$X_LIBS -R$x_libraries"
20027 LIBS="$ac_xsave_LIBS -R $x_libraries"
20028 if test x$gcc_no_link = xyes; then
20029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20042 if ac_fn_c_try_link "$LINENO"; then :
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20045 X_LIBS="$X_LIBS -R $x_libraries"
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20048 $as_echo "neither works" >&6; }
20050 rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext conftest.$ac_ext
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20055 ac_c_werror_flag=$ac_xsave_c_werror_flag
20056 LIBS=$ac_xsave_LIBS
20059 # Check for system-dependent libraries X programs must link with.
20060 # Do this before checking for the system-independent R6 libraries
20061 # (-lICE), since we may need -lsocket or whatever for X linking.
20063 if test "$ISC" = yes; then
20064 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20066 # Martyn Johnson says this is needed for Ultrix, if the X
20067 # libraries were built with DECnet support. And Karl Berry says
20068 # the Alpha needs dnet_stub (dnet does not exist).
20069 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20070 if test x$gcc_no_link = xyes; then
20071 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h. */
20076 /* Override any GCC internal prototype to avoid an error.
20077 Use char because int might match the return type of a GCC
20078 builtin and then its argument prototype would still apply. */
20082 char XOpenDisplay ();
20086 return XOpenDisplay ();
20091 if ac_fn_c_try_link "$LINENO"; then :
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20095 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20096 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20099 ac_check_lib_save_LIBS=$LIBS
20100 LIBS="-ldnet $LIBS"
20101 if test x$gcc_no_link = xyes; then
20102 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20105 /* end confdefs.h. */
20107 /* Override any GCC internal prototype to avoid an error.
20108 Use char because int might match the return type of a GCC
20109 builtin and then its argument prototype would still apply. */
20117 return dnet_ntoa ();
20122 if ac_fn_c_try_link "$LINENO"; then :
20123 ac_cv_lib_dnet_dnet_ntoa=yes
20125 ac_cv_lib_dnet_dnet_ntoa=no
20127 rm -f core conftest.err conftest.$ac_objext \
20128 conftest$ac_exeext conftest.$ac_ext
20129 LIBS=$ac_check_lib_save_LIBS
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20132 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20133 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20134 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20137 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20139 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20140 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20143 ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-ldnet_stub $LIBS"
20145 if test x$gcc_no_link = xyes; then
20146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20161 return dnet_ntoa ();
20166 if ac_fn_c_try_link "$LINENO"; then :
20167 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20169 ac_cv_lib_dnet_stub_dnet_ntoa=no
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20176 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20177 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20183 rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS="$ac_xsave_LIBS"
20187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20188 # to get the SysV transport functions.
20189 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20191 # The nsl library prevents programs from opening the X display
20192 # on Irix 5.2, according to T.E. Dickey.
20193 # The functions gethostbyname, getservbyname, and inet_addr are
20194 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20195 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20196 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20200 if test $ac_cv_func_gethostbyname = no; then
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20202 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20203 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20204 $as_echo_n "(cached) " >&6
20206 ac_check_lib_save_LIBS=$LIBS
20208 if test x$gcc_no_link = xyes; then
20209 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h. */
20214 /* Override any GCC internal prototype to avoid an error.
20215 Use char because int might match the return type of a GCC
20216 builtin and then its argument prototype would still apply. */
20220 char gethostbyname ();
20224 return gethostbyname ();
20229 if ac_fn_c_try_link "$LINENO"; then :
20230 ac_cv_lib_nsl_gethostbyname=yes
20232 ac_cv_lib_nsl_gethostbyname=no
20234 rm -f core conftest.err conftest.$ac_objext \
20235 conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20239 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20240 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20241 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20244 if test $ac_cv_lib_nsl_gethostbyname = no; then
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20246 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20247 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20248 $as_echo_n "(cached) " >&6
20250 ac_check_lib_save_LIBS=$LIBS
20252 if test x$gcc_no_link = xyes; then
20253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h. */
20258 /* Override any GCC internal prototype to avoid an error.
20259 Use char because int might match the return type of a GCC
20260 builtin and then its argument prototype would still apply. */
20264 char gethostbyname ();
20268 return gethostbyname ();
20273 if ac_fn_c_try_link "$LINENO"; then :
20274 ac_cv_lib_bsd_gethostbyname=yes
20276 ac_cv_lib_bsd_gethostbyname=no
20278 rm -f core conftest.err conftest.$ac_objext \
20279 conftest$ac_exeext conftest.$ac_ext
20280 LIBS=$ac_check_lib_save_LIBS
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20283 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20284 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20291 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20292 # socket/setsockopt and other routines are undefined under SCO ODT
20293 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20294 # on later versions), says Simon Leinen: it contains gethostby*
20295 # variants that don't use the name server (or something). -lsocket
20296 # must be given before -lnsl if both are needed. We assume that
20297 # if connect needs -lnsl, so does gethostbyname.
20298 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20299 if test "x$ac_cv_func_connect" = x""yes; then :
20303 if test $ac_cv_func_connect = no; then
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20305 $as_echo_n "checking for connect in -lsocket... " >&6; }
20306 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20307 $as_echo_n "(cached) " >&6
20309 ac_check_lib_save_LIBS=$LIBS
20310 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20311 if test x$gcc_no_link = xyes; then
20312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20315 /* end confdefs.h. */
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20332 if ac_fn_c_try_link "$LINENO"; then :
20333 ac_cv_lib_socket_connect=yes
20335 ac_cv_lib_socket_connect=no
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20342 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20343 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20344 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20349 # Guillermo Gomez says -lposix is necessary on A/UX.
20350 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20351 if test "x$ac_cv_func_remove" = x""yes; then :
20355 if test $ac_cv_func_remove = no; then
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20357 $as_echo_n "checking for remove in -lposix... " >&6; }
20358 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20359 $as_echo_n "(cached) " >&6
20361 ac_check_lib_save_LIBS=$LIBS
20362 LIBS="-lposix $LIBS"
20363 if test x$gcc_no_link = xyes; then
20364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20369 /* Override any GCC internal prototype to avoid an error.
20370 Use char because int might match the return type of a GCC
20371 builtin and then its argument prototype would still apply. */
20384 if ac_fn_c_try_link "$LINENO"; then :
20385 ac_cv_lib_posix_remove=yes
20387 ac_cv_lib_posix_remove=no
20389 rm -f core conftest.err conftest.$ac_objext \
20390 conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20394 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20395 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20401 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20402 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20403 if test "x$ac_cv_func_shmat" = x""yes; then :
20407 if test $ac_cv_func_shmat = no; then
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20409 $as_echo_n "checking for shmat in -lipc... " >&6; }
20410 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20411 $as_echo_n "(cached) " >&6
20413 ac_check_lib_save_LIBS=$LIBS
20415 if test x$gcc_no_link = xyes; then
20416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20419 /* end confdefs.h. */
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20436 if ac_fn_c_try_link "$LINENO"; then :
20437 ac_cv_lib_ipc_shmat=yes
20439 ac_cv_lib_ipc_shmat=no
20441 rm -f core conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_check_lib_save_LIBS
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20446 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20447 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20454 # Check for libraries that X11R6 Xt/Xaw programs need.
20455 ac_save_LDFLAGS=$LDFLAGS
20456 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20457 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20458 # check for ICE first), but we must link in the order -lSM -lICE or
20459 # we get undefined symbols. So assume we have SM if we have ICE.
20460 # These have to be linked with before -lX11, unlike the other
20461 # libraries we check for below, so use a different variable.
20462 # John Interrante, Karl Berry
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20464 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20465 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20466 $as_echo_n "(cached) " >&6
20468 ac_check_lib_save_LIBS=$LIBS
20469 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20470 if test x$gcc_no_link = xyes; then
20471 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20476 /* Override any GCC internal prototype to avoid an error.
20477 Use char because int might match the return type of a GCC
20478 builtin and then its argument prototype would still apply. */
20482 char IceConnectionNumber ();
20486 return IceConnectionNumber ();
20491 if ac_fn_c_try_link "$LINENO"; then :
20492 ac_cv_lib_ICE_IceConnectionNumber=yes
20494 ac_cv_lib_ICE_IceConnectionNumber=no
20496 rm -f core conftest.err conftest.$ac_objext \
20497 conftest$ac_exeext conftest.$ac_ext
20498 LIBS=$ac_check_lib_save_LIBS
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20501 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20502 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20503 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20506 LDFLAGS=$ac_save_LDFLAGS
20511 # FIXME: this should be _libs on some hosts.
20514 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20517 # extra LD Flags which are required for targets
20520 # For now we have to disable it on darwin[8-9] because it slows down
20521 # the linking phase. A possible bug in ld?
20522 # on Darwin -single_module speeds up loading of the dynamic libraries.
20523 extra_ldflags_libjava=-Wl,-single_module
20526 # Some of the ARM unwinder code is actually in libstdc++. We
20527 # could in principle replicate it in libgcj, but it's better to
20528 # have a dependency on libstdc++.
20529 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20530 LIBSTDCXXSPEC=-lstdc++
20531 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20534 extra_ldflags_libjava=-liconv
20538 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20540 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20541 if test "${libgcj_cv_exidx+set}" = set; then :
20542 $as_echo_n "(cached) " >&6
20544 saved_ldflags="$LDFLAGS"
20545 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20546 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20547 # warns about unknown options, which breaks the testsuite. So enable
20548 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20549 # it off again. As a workaround, save and restore werror flag like
20551 ac_xsave_c_werror_flag=$ac_c_werror_flag
20553 ac_c_werror_flag=yes
20554 if test x$gcc_no_link = xyes; then
20555 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20559 int main(void){ return 0;}
20561 if ac_fn_c_try_link "$LINENO"; then :
20562 eval "libgcj_cv_exidx=yes"
20564 eval "libgcj_cv_exidx=no"
20566 rm -f core conftest.err conftest.$ac_objext \
20567 conftest$ac_exeext conftest.$ac_ext
20568 ac_c_werror_flag=$ac_xsave_c_werror_flag
20569 LDFLAGS="${saved_ldflags}"
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20573 $as_echo "$libgcj_cv_exidx" >&6; }
20574 if test "${libgcj_cv_exidx}" = "yes"; then
20575 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20576 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20585 # Allow the GC to be disabled. Can be useful when debugging.
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20587 $as_echo_n "checking for garbage collector to use... " >&6; }
20588 # Check whether --enable-java-gc was given.
20589 if test "${enable_java_gc+set}" = set; then :
20590 enableval=$enable_java_gc; GC=$enableval
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20604 $as_echo "boehm" >&6; }
20605 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20606 JC1GCSPEC='-fuse-boehm-gc'
20607 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20608 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20611 # The POSIX thread support needs to know this.
20613 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20618 $as_echo "none" >&6; }
20622 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20631 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20633 if test "$GC" = boehm; then
20634 USING_BOEHMGC_TRUE=
20635 USING_BOEHMGC_FALSE='#'
20637 USING_BOEHMGC_TRUE='#'
20638 USING_BOEHMGC_FALSE=
20641 if test "$GC" = no; then
20643 USING_NOGC_FALSE='#'
20645 USING_NOGC_TRUE='#'
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20652 $as_echo_n "checking for thread model used by GCC... " >&6; }
20653 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20655 $as_echo "$THREADS" >&6; }
20658 no | none | single)
20661 aix | posix | posix95 | pthreads)
20666 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20673 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20674 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20677 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20688 THREADSTARTFILESPEC=
20693 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20695 *-*-freebsd[1234]*)
20696 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20697 # merely adds pthread_* functions) but it does have a -pthread switch
20698 # which is required at link-time to select -lc_r *instead* of -lc.
20699 THREADLDFLAGS=-pthread
20700 # Don't set THREADSPEC here as might be expected since -pthread is
20701 # not processed when found within a spec file, it must come from
20702 # the command line. For now, the user must provide the -pthread
20703 # switch to link code compiled with gcj. In future, consider adding
20704 # support for weak references to pthread_* functions ala gthr.h API.
20705 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20708 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20709 # systems which support threads and -lpthread.
20710 THREADLDFLAGS=-pthread
20711 THREADSPEC=-lpthread
20713 alpha*-dec-osf* | hppa*-hp-hpux*)
20714 THREADCXXFLAGS=-pthread
20715 # boehm-gc needs some functions from librt, so link that too.
20716 THREADLIBS='-lpthread -lrt'
20717 THREADSPEC='-lpthread -lrt'
20720 # Always use alternate thread library on Solaris 8. Need libthread
20722 # Need -Wl,-R to get it through libtool ...
20723 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20724 # ... while ld only accepts -R.
20725 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20728 # As on Solaris 8, need libthread for TLS support.
20729 THREADLIBS='-lpthread -lthread'
20730 THREADSPEC='-lpthread -lthread'
20733 # Don't set THREADLIBS or THREADSPEC as Darwin already
20734 # provides pthread via libSystem.
20737 THREADLIBS=-lpthread
20738 THREADSPEC=-lpthread
20741 THREADH=posix-threads.h
20742 # MIT pthreads doesn't seem to have the mutexattr functions.
20743 # But for now we don't check for it. We just assume you aren't
20744 # using MIT pthreads.
20746 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20749 # If we're using the Boehm GC, then we happen to know that it
20750 # defines _REENTRANT, so we don't bother. Eww.
20751 if test "$GC" != boehm; then
20753 $as_echo "#define _REENTRANT 1" >>confdefs.h
20757 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20762 THREADH=win32-threads.h
20763 THREADCXXFLAGS=-mthreads
20764 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20765 # But we do not want the executables created to be dependent on
20766 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20767 # exception handling contexts. The following kludge achieves this effect
20768 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20769 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20770 # A workaround is to explicitly use -mthreads while linking Java programs.
20771 # See PR libgcj/28263.
20773 # FIXME: In Java we are able to detect thread death at the end of
20774 # Thread.run() so we should be able to clean up the exception handling
20775 # contexts ourselves.
20776 THREADSTARTFILESPEC='crtmt%O%s'
20780 THREADH=no-threads.h
20783 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20792 if test "$THREADS" = posix; then
20793 USING_POSIX_THREADS_TRUE=
20794 USING_POSIX_THREADS_FALSE='#'
20796 USING_POSIX_THREADS_TRUE='#'
20797 USING_POSIX_THREADS_FALSE=
20800 if test "$THREADS" = win32; then
20801 USING_WIN32_THREADS_TRUE=
20802 USING_WIN32_THREADS_FALSE='#'
20804 USING_WIN32_THREADS_TRUE='#'
20805 USING_WIN32_THREADS_FALSE=
20808 if test "$THREADS" = none; then
20809 USING_NO_THREADS_TRUE=
20810 USING_NO_THREADS_FALSE='#'
20812 USING_NO_THREADS_TRUE='#'
20813 USING_NO_THREADS_FALSE=
20816 if test "$enable_shared" != yes; then
20819 if test "$use_libgcj_bc" = yes; then
20820 USE_LIBGCJ_BC_TRUE=
20821 USE_LIBGCJ_BC_FALSE='#'
20823 USE_LIBGCJ_BC_TRUE='#'
20824 USE_LIBGCJ_BC_FALSE=
20828 if test -d sysdep; then true; else mkdir sysdep; fi
20829 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20831 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20833 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20836 LIBGCJ_SPEC_LGCJ=-lgcj
20837 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20838 if test x"$libgcj_spec_lgcj_override" != x ; then
20839 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20841 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20842 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20844 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20845 if test "$use_libgcj_bc" = yes; then
20846 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20847 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20853 # Hash synchronization is only useful with posix threads right now.
20854 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20855 HASH_SYNC_SPEC=-fhash-synchronization
20857 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20862 if test "$GCC" = yes; then
20864 USING_GCC_FALSE='#'
20871 # We're in the tree with gcc, and need to include some of its headers.
20872 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20874 if test "x${with_newlib}" = "xyes"; then
20875 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20876 # may not work correctly, because the compiler may not be able to
20877 # link executables.
20879 # We assume newlib. This lets us hard-code the functions we know
20882 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20885 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20888 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20891 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20894 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20897 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20899 # This is only for POSIX threads.
20901 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20904 # Assume we do not have getuid and friends.
20906 $as_echo "#define NO_GETUID 1" >>confdefs.h
20910 for ac_func in strerror_r select fstat open fsync sleep opendir \
20911 localtime_r getpwuid_r getcwd \
20912 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20913 nl_langinfo setlocale \
20914 inet_pton uname inet_ntoa \
20915 getrlimit sigaction ftruncate mmap \
20918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20920 eval as_val=\$$as_ac_var
20921 if test "x$as_val" = x""yes; then :
20922 cat >>confdefs.h <<_ACEOF
20923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20929 for ac_func in inet_aton inet_addr
20931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20933 eval as_val=\$$as_ac_var
20934 if test "x$as_val" = x""yes; then :
20935 cat >>confdefs.h <<_ACEOF
20936 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20942 for ac_header in unistd.h dlfcn.h sys/resource.h
20944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20946 eval as_val=\$$as_ac_Header
20947 if test "x$as_val" = x""yes; then :
20948 cat >>confdefs.h <<_ACEOF
20949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20956 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20958 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20959 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20960 $as_echo_n "(cached) " >&6
20962 ac_check_lib_save_LIBS=$LIBS
20964 if test x$gcc_no_link = xyes; then
20965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968 /* end confdefs.h. */
20970 /* Override any GCC internal prototype to avoid an error.
20971 Use char because int might match the return type of a GCC
20972 builtin and then its argument prototype would still apply. */
20985 if ac_fn_c_try_link "$LINENO"; then :
20986 ac_cv_lib_dl_dladdr=yes
20988 ac_cv_lib_dl_dladdr=no
20990 rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
20992 LIBS=$ac_check_lib_save_LIBS
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20995 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20996 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20999 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21004 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21005 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21006 $as_echo_n "(cached) " >&6
21008 ac_check_lib_save_LIBS=$LIBS
21010 if test x$gcc_no_link = xyes; then
21011 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014 /* end confdefs.h. */
21016 /* Override any GCC internal prototype to avoid an error.
21017 Use char because int might match the return type of a GCC
21018 builtin and then its argument prototype would still apply. */
21031 if ac_fn_c_try_link "$LINENO"; then :
21032 ac_cv_lib_dld_dladdr=yes
21034 ac_cv_lib_dld_dladdr=no
21036 rm -f core conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 LIBS=$ac_check_lib_save_LIBS
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21041 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21042 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21045 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21052 if test x"$cross_compiling" = x"no"; then
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21054 $as_echo_n "checking for /proc/self/exe... " >&6; }
21055 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21056 $as_echo_n "(cached) " >&6
21058 test "$cross_compiling" = yes &&
21059 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21060 if test -r "/proc/self/exe"; then
21061 ac_cv_file__proc_self_exe=yes
21063 ac_cv_file__proc_self_exe=no
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21067 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21068 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21070 cat >>confdefs.h <<_ACEOF
21071 #define HAVE__PROC_SELF_EXE 1
21075 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21080 $as_echo_n "checking for /proc/self/maps... " >&6; }
21081 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21084 test "$cross_compiling" = yes &&
21085 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21086 if test -r "/proc/self/maps"; then
21087 ac_cv_file__proc_self_maps=yes
21089 ac_cv_file__proc_self_maps=no
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21093 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21094 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21096 cat >>confdefs.h <<_ACEOF
21097 #define HAVE__PROC_SELF_MAPS 1
21101 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21109 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21112 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21119 if test "X$prefix" = "XNONE"; then
21120 acl_final_prefix="$ac_default_prefix"
21122 acl_final_prefix="$prefix"
21124 if test "X$exec_prefix" = "XNONE"; then
21125 acl_final_exec_prefix='${prefix}'
21127 acl_final_exec_prefix="$exec_prefix"
21129 acl_save_prefix="$prefix"
21130 prefix="$acl_final_prefix"
21131 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21132 prefix="$acl_save_prefix"
21135 # Check whether --with-gnu-ld was given.
21136 if test "${with_gnu_ld+set}" = set; then :
21137 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21142 # Prepare PATH_SEPARATOR.
21143 # The user is always right.
21144 if test "${PATH_SEPARATOR+set}" != set; then
21145 echo "#! /bin/sh" >conf$$.sh
21146 echo "exit 0" >>conf$$.sh
21148 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21156 if test "$GCC" = yes; then
21157 # Check if gcc -print-prog-name=ld gives a path.
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21159 $as_echo_n "checking for ld used by GCC... " >&6; }
21162 # gcc leaves a trailing carriage return which upsets mingw
21163 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21165 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21168 # Accept absolute paths.
21169 [\\/]* | [A-Za-z]:[\\/]*)
21170 re_direlt='/[^/][^/]*/\.\./'
21171 # Canonicalize the path of ld
21172 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21173 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21174 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21176 test -z "$LD" && LD="$ac_prog"
21179 # If it fails, then pretend we aren't using GCC.
21183 # If it is relative, then search for the first ld in PATH.
21184 with_gnu_ld=unknown
21187 elif test "$with_gnu_ld" = yes; then
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21189 $as_echo_n "checking for GNU ld... " >&6; }
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21192 $as_echo_n "checking for non-GNU ld... " >&6; }
21194 if test "${acl_cv_path_LD+set}" = set; then :
21195 $as_echo_n "(cached) " >&6
21197 if test -z "$LD"; then
21198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21199 for ac_dir in $PATH; do
21200 test -z "$ac_dir" && ac_dir=.
21201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21202 acl_cv_path_LD="$ac_dir/$ac_prog"
21203 # Check to see if the program is GNU ld. I'd rather use --version,
21204 # but apparently some GNU ld's only accept -v.
21205 # Break only if it was the GNU/non-GNU ld that we prefer.
21206 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21207 test "$with_gnu_ld" != no && break
21209 test "$with_gnu_ld" != yes && break
21215 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21219 LD="$acl_cv_path_LD"
21220 if test -n "$LD"; then
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21222 $as_echo "$LD" >&6; }
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21225 $as_echo "no" >&6; }
21227 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21229 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21230 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21231 $as_echo_n "(cached) " >&6
21233 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21234 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21235 acl_cv_prog_gnu_ld=yes
21237 acl_cv_prog_gnu_ld=no
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21241 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21242 with_gnu_ld=$acl_cv_prog_gnu_ld
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21247 $as_echo_n "checking for shared library run path origin... " >&6; }
21248 if test "${acl_cv_rpath+set}" = set; then :
21249 $as_echo_n "(cached) " >&6
21252 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21253 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21255 rm -f ./conftest.sh
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21260 $as_echo "$acl_cv_rpath" >&6; }
21262 libext="$acl_cv_libext"
21263 shlibext="$acl_cv_shlibext"
21264 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21265 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21266 hardcode_direct="$acl_cv_hardcode_direct"
21267 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21268 # Check whether --enable-rpath was given.
21269 if test "${enable_rpath+set}" = set; then :
21270 enableval=$enable_rpath; :
21284 acl_save_prefix="$prefix"
21285 prefix="$acl_final_prefix"
21286 acl_save_exec_prefix="$exec_prefix"
21287 exec_prefix="$acl_final_exec_prefix"
21289 eval additional_includedir=\"$includedir\"
21290 eval additional_libdir=\"$libdir\"
21292 exec_prefix="$acl_save_exec_prefix"
21293 prefix="$acl_save_prefix"
21296 # Check whether --with-libiconv-prefix was given.
21297 if test "${with_libiconv_prefix+set}" = set; then :
21298 withval=$with_libiconv_prefix;
21299 if test "X$withval" = "Xno"; then
21302 if test "X$withval" = "X"; then
21304 acl_save_prefix="$prefix"
21305 prefix="$acl_final_prefix"
21306 acl_save_exec_prefix="$exec_prefix"
21307 exec_prefix="$acl_final_exec_prefix"
21309 eval additional_includedir=\"$includedir\"
21310 eval additional_libdir=\"$libdir\"
21312 exec_prefix="$acl_save_exec_prefix"
21313 prefix="$acl_save_prefix"
21316 additional_includedir="$withval/include"
21317 additional_libdir="$withval/lib"
21328 names_already_handled=
21329 names_next_round='iconv '
21330 while test -n "$names_next_round"; do
21331 names_this_round="$names_next_round"
21333 for name in $names_this_round; do
21335 for n in $names_already_handled; do
21336 if test "$n" = "$name"; then
21337 already_handled=yes
21341 if test -z "$already_handled"; then
21342 names_already_handled="$names_already_handled $name"
21343 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21344 eval value=\"\$HAVE_LIB$uppername\"
21345 if test -n "$value"; then
21346 if test "$value" = yes; then
21347 eval value=\"\$LIB$uppername\"
21348 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21349 eval value=\"\$LTLIB$uppername\"
21350 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21359 if test $use_additional = yes; then
21360 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21361 found_dir="$additional_libdir"
21362 found_so="$additional_libdir/lib$name.$shlibext"
21363 if test -f "$additional_libdir/lib$name.la"; then
21364 found_la="$additional_libdir/lib$name.la"
21367 if test -f "$additional_libdir/lib$name.$libext"; then
21368 found_dir="$additional_libdir"
21369 found_a="$additional_libdir/lib$name.$libext"
21370 if test -f "$additional_libdir/lib$name.la"; then
21371 found_la="$additional_libdir/lib$name.la"
21376 if test "X$found_dir" = "X"; then
21377 for x in $LDFLAGS $LTLIBICONV; do
21379 acl_save_prefix="$prefix"
21380 prefix="$acl_final_prefix"
21381 acl_save_exec_prefix="$exec_prefix"
21382 exec_prefix="$acl_final_exec_prefix"
21384 exec_prefix="$acl_save_exec_prefix"
21385 prefix="$acl_save_prefix"
21389 dir=`echo "X$x" | sed -e 's/^X-L//'`
21390 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21392 found_so="$dir/lib$name.$shlibext"
21393 if test -f "$dir/lib$name.la"; then
21394 found_la="$dir/lib$name.la"
21397 if test -f "$dir/lib$name.$libext"; then
21399 found_a="$dir/lib$name.$libext"
21400 if test -f "$dir/lib$name.la"; then
21401 found_la="$dir/lib$name.la"
21407 if test "X$found_dir" != "X"; then
21412 if test "X$found_dir" != "X"; then
21413 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21414 if test "X$found_so" != "X"; then
21415 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21419 for x in $ltrpathdirs; do
21420 if test "X$x" = "X$found_dir"; then
21425 if test -z "$haveit"; then
21426 ltrpathdirs="$ltrpathdirs $found_dir"
21428 if test "$hardcode_direct" = yes; then
21429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21431 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21432 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21434 for x in $rpathdirs; do
21435 if test "X$x" = "X$found_dir"; then
21440 if test -z "$haveit"; then
21441 rpathdirs="$rpathdirs $found_dir"
21445 for x in $LDFLAGS $LIBICONV; do
21447 acl_save_prefix="$prefix"
21448 prefix="$acl_final_prefix"
21449 acl_save_exec_prefix="$exec_prefix"
21450 exec_prefix="$acl_final_exec_prefix"
21452 exec_prefix="$acl_save_exec_prefix"
21453 prefix="$acl_save_prefix"
21455 if test "X$x" = "X-L$found_dir"; then
21460 if test -z "$haveit"; then
21461 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21463 if test "$hardcode_minus_L" != no; then
21464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21466 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21472 if test "X$found_a" != "X"; then
21473 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21475 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21478 additional_includedir=
21479 case "$found_dir" in
21481 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21482 additional_includedir="$basedir/include"
21485 if test "X$additional_includedir" != "X"; then
21486 if test "X$additional_includedir" != "X/usr/include"; then
21488 if test "X$additional_includedir" = "X/usr/local/include"; then
21489 if test -n "$GCC"; then
21491 linux*) haveit=yes;;
21495 if test -z "$haveit"; then
21496 for x in $CPPFLAGS $INCICONV; do
21498 acl_save_prefix="$prefix"
21499 prefix="$acl_final_prefix"
21500 acl_save_exec_prefix="$exec_prefix"
21501 exec_prefix="$acl_final_exec_prefix"
21503 exec_prefix="$acl_save_exec_prefix"
21504 prefix="$acl_save_prefix"
21506 if test "X$x" = "X-I$additional_includedir"; then
21511 if test -z "$haveit"; then
21512 if test -d "$additional_includedir"; then
21513 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21519 if test -n "$found_la"; then
21520 save_libdir="$libdir"
21521 case "$found_la" in
21522 */* | *\\*) . "$found_la" ;;
21523 *) . "./$found_la" ;;
21525 libdir="$save_libdir"
21526 for dep in $dependency_libs; do
21529 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21530 if test "X$additional_libdir" != "X/usr/lib"; then
21532 if test "X$additional_libdir" = "X/usr/local/lib"; then
21533 if test -n "$GCC"; then
21535 linux*) haveit=yes;;
21539 if test -z "$haveit"; then
21541 for x in $LDFLAGS $LIBICONV; do
21543 acl_save_prefix="$prefix"
21544 prefix="$acl_final_prefix"
21545 acl_save_exec_prefix="$exec_prefix"
21546 exec_prefix="$acl_final_exec_prefix"
21548 exec_prefix="$acl_save_exec_prefix"
21549 prefix="$acl_save_prefix"
21551 if test "X$x" = "X-L$additional_libdir"; then
21556 if test -z "$haveit"; then
21557 if test -d "$additional_libdir"; then
21558 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21562 for x in $LDFLAGS $LTLIBICONV; do
21564 acl_save_prefix="$prefix"
21565 prefix="$acl_final_prefix"
21566 acl_save_exec_prefix="$exec_prefix"
21567 exec_prefix="$acl_final_exec_prefix"
21569 exec_prefix="$acl_save_exec_prefix"
21570 prefix="$acl_save_prefix"
21572 if test "X$x" = "X-L$additional_libdir"; then
21577 if test -z "$haveit"; then
21578 if test -d "$additional_libdir"; then
21579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21586 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21587 if test "$enable_rpath" != no; then
21589 for x in $rpathdirs; do
21590 if test "X$x" = "X$dir"; then
21595 if test -z "$haveit"; then
21596 rpathdirs="$rpathdirs $dir"
21599 for x in $ltrpathdirs; do
21600 if test "X$x" = "X$dir"; then
21605 if test -z "$haveit"; then
21606 ltrpathdirs="$ltrpathdirs $dir"
21611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21617 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21618 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21624 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21631 if test "X$rpathdirs" != "X"; then
21632 if test -n "$hardcode_libdir_separator"; then
21634 for found_dir in $rpathdirs; do
21635 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21637 acl_save_libdir="$libdir"
21639 eval flag=\"$hardcode_libdir_flag_spec\"
21640 libdir="$acl_save_libdir"
21641 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21643 for found_dir in $rpathdirs; do
21644 acl_save_libdir="$libdir"
21645 libdir="$found_dir"
21646 eval flag=\"$hardcode_libdir_flag_spec\"
21647 libdir="$acl_save_libdir"
21648 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21652 if test "X$ltrpathdirs" != "X"; then
21653 for found_dir in $ltrpathdirs; do
21654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21664 am_save_CPPFLAGS="$CPPFLAGS"
21666 for element in $INCICONV; do
21668 for x in $CPPFLAGS; do
21670 acl_save_prefix="$prefix"
21671 prefix="$acl_final_prefix"
21672 acl_save_exec_prefix="$exec_prefix"
21673 exec_prefix="$acl_final_exec_prefix"
21675 exec_prefix="$acl_save_exec_prefix"
21676 prefix="$acl_save_prefix"
21678 if test "X$x" = "X$element"; then
21683 if test -z "$haveit"; then
21684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21690 $as_echo_n "checking for iconv... " >&6; }
21691 if test "${am_cv_func_iconv+set}" = set; then :
21692 $as_echo_n "(cached) " >&6
21695 am_cv_func_iconv="no, consider installing GNU libiconv"
21697 if test x$gcc_no_link = xyes; then
21698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21701 /* end confdefs.h. */
21702 #include <stdlib.h>
21707 iconv_t cd = iconv_open("","");
21708 iconv(cd,NULL,NULL,NULL,NULL);
21714 if ac_fn_c_try_link "$LINENO"; then :
21715 am_cv_func_iconv=yes
21717 rm -f core conftest.err conftest.$ac_objext \
21718 conftest$ac_exeext conftest.$ac_ext
21719 if test "$am_cv_func_iconv" != yes; then
21720 am_save_LIBS="$LIBS"
21721 LIBS="$LIBS $LIBICONV"
21722 if test x$gcc_no_link = xyes; then
21723 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h. */
21727 #include <stdlib.h>
21732 iconv_t cd = iconv_open("","");
21733 iconv(cd,NULL,NULL,NULL,NULL);
21739 if ac_fn_c_try_link "$LINENO"; then :
21740 am_cv_lib_iconv=yes
21741 am_cv_func_iconv=yes
21743 rm -f core conftest.err conftest.$ac_objext \
21744 conftest$ac_exeext conftest.$ac_ext
21745 LIBS="$am_save_LIBS"
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21750 $as_echo "$am_cv_func_iconv" >&6; }
21751 if test "$am_cv_func_iconv" = yes; then
21753 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21756 if test "$am_cv_lib_iconv" = yes; then
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21758 $as_echo_n "checking how to link with libiconv... " >&6; }
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21760 $as_echo "$LIBICONV" >&6; }
21762 CPPFLAGS="$am_save_CPPFLAGS"
21769 if test "$am_cv_func_iconv" = yes; then
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21771 $as_echo_n "checking for iconv declaration... " >&6; }
21772 if test "${am_cv_proto_iconv+set}" = set; then :
21773 $as_echo_n "(cached) " >&6
21776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21777 /* end confdefs.h. */
21779 #include <stdlib.h>
21785 #if defined(__STDC__) || defined(__cplusplus)
21786 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21799 if ac_fn_c_try_compile "$LINENO"; then :
21800 am_cv_proto_iconv_arg1=""
21802 am_cv_proto_iconv_arg1="const"
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 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);"
21808 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21810 }$am_cv_proto_iconv" >&5
21812 }$am_cv_proto_iconv" >&6; }
21814 cat >>confdefs.h <<_ACEOF
21815 #define ICONV_CONST $am_cv_proto_iconv_arg1
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21822 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21823 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21824 $as_echo_n "(cached) " >&6
21826 if test x$gcc_no_link = xyes; then
21827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21831 #include <locale.h>
21840 if ac_fn_c_try_link "$LINENO"; then :
21841 am_cv_val_LC_MESSAGES=yes
21843 am_cv_val_LC_MESSAGES=no
21845 rm -f core conftest.err conftest.$ac_objext \
21846 conftest$ac_exeext conftest.$ac_ext
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21849 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21850 if test $am_cv_val_LC_MESSAGES = yes; then
21852 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21857 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21858 if test "${ac_cv_struct_tm+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21863 #include <sys/types.h>
21870 int *p = &tm.tm_sec;
21876 if ac_fn_c_try_compile "$LINENO"; then :
21877 ac_cv_struct_tm=time.h
21879 ac_cv_struct_tm=sys/time.h
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21884 $as_echo "$ac_cv_struct_tm" >&6; }
21885 if test $ac_cv_struct_tm = sys/time.h; then
21887 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21891 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21892 #include <$ac_cv_struct_tm>
21895 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_STRUCT_TM_TM_ZONE 1
21904 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21906 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21909 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21911 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21917 cat >>confdefs.h <<_ACEOF
21918 #define HAVE_DECL_TZNAME $ac_have_decl
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21922 $as_echo_n "checking for tzname... " >&6; }
21923 if test "${ac_cv_var_tzname+set}" = set; then :
21924 $as_echo_n "(cached) " >&6
21926 if test x$gcc_no_link = xyes; then
21927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21930 /* end confdefs.h. */
21932 #if !HAVE_DECL_TZNAME
21933 extern char *tzname[];
21939 return tzname[0][0];
21944 if ac_fn_c_try_link "$LINENO"; then :
21945 ac_cv_var_tzname=yes
21947 ac_cv_var_tzname=no
21949 rm -f core conftest.err conftest.$ac_objext \
21950 conftest$ac_exeext conftest.$ac_ext
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21953 $as_echo "$ac_cv_var_tzname" >&6; }
21954 if test $ac_cv_var_tzname = yes; then
21956 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21962 for ac_func in gethostbyname_r
21964 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21965 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21966 cat >>confdefs.h <<_ACEOF
21967 #define HAVE_GETHOSTBYNAME_R 1
21971 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21973 # There are two different kinds of gethostbyname_r.
21974 # We look for the one that returns `int'.
21975 # Hopefully this check is robust enough.
21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21982 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21985 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21991 case " $GCINCS " in
21992 *" -D_REENTRANT "*) ;;
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21995 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21996 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21997 $as_echo_n "(cached) " >&6
22000 ac_cpp='$CXXCPP $CPPFLAGS'
22001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h. */
22011 gethostbyname_r("", 0, 0);
22016 if ac_fn_cxx_try_compile "$LINENO"; then :
22017 libjava_cv_gethostbyname_r_needs_reentrant=no
22019 CPPFLAGS_SAVE="$CPPFLAGS"
22020 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22027 gethostbyname_r("", 0, 0);
22032 if ac_fn_cxx_try_compile "$LINENO"; then :
22033 libjava_cv_gethostbyname_r_needs_reentrant=yes
22035 libjava_cv_gethostbyname_r_needs_reentrant=fail
22037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038 CPPFLAGS="$CPPFLAGS_SAVE"
22041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22043 ac_cpp='$CPP $CPPFLAGS'
22044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22051 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22052 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22054 $as_echo "#define _REENTRANT 1" >>confdefs.h
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22061 $as_echo_n "checking for struct hostent_data... " >&6; }
22062 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h. */
22068 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22069 # define _REENTRANT 1
22075 struct hostent_data data;
22080 if ac_fn_c_try_compile "$LINENO"; then :
22081 libjava_cv_struct_hostent_data=yes
22083 libjava_cv_struct_hostent_data=no
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22088 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22089 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22091 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22099 # FIXME: libjava source code expects to find a prototype for
22100 # gethostbyaddr_r in netdb.h. The outer check ensures that
22101 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22102 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22103 # linkage check is enough, yet C++ code requires proper prototypes.)
22104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h. */
22109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22110 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22112 for ac_func in gethostbyaddr_r
22114 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22115 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_GETHOSTBYADDR_R 1
22121 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22123 # There are two different kinds of gethostbyaddr_r.
22124 # We look for the one that returns `int'.
22125 # Hopefully this check is robust enough.
22126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22127 /* end confdefs.h. */
22131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22132 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22135 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22147 for ac_func in gethostname
22149 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22150 if test "x$ac_cv_func_gethostname" = x""yes; then :
22151 cat >>confdefs.h <<_ACEOF
22152 #define HAVE_GETHOSTNAME 1
22156 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h. */
22160 #include <unistd.h>
22163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22164 $EGREP "gethostname" >/dev/null 2>&1; then :
22167 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22176 for ac_func in usleep
22178 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22179 if test "x$ac_cv_func_usleep" = x""yes; then :
22180 cat >>confdefs.h <<_ACEOF
22181 #define HAVE_USLEEP 1
22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22186 #include <unistd.h>
22189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22190 $EGREP "usleep" >/dev/null 2>&1; then :
22193 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22202 # Look for these functions in the thread library, but only bother
22203 # if using POSIX threads.
22204 if test "$THREADS" = posix; then
22206 LIBS="$LIBS $THREADLIBS"
22208 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22209 # Solaris 7 the name librt is preferred.
22210 for ac_func in sched_yield
22212 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22213 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22214 cat >>confdefs.h <<_ACEOF
22215 #define HAVE_SCHED_YIELD 1
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22221 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22222 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22223 $as_echo_n "(cached) " >&6
22225 ac_check_lib_save_LIBS=$LIBS
22227 if test x$gcc_no_link = xyes; then
22228 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22231 /* end confdefs.h. */
22233 /* Override any GCC internal prototype to avoid an error.
22234 Use char because int might match the return type of a GCC
22235 builtin and then its argument prototype would still apply. */
22239 char sched_yield ();
22243 return sched_yield ();
22248 if ac_fn_c_try_link "$LINENO"; then :
22249 ac_cv_lib_rt_sched_yield=yes
22251 ac_cv_lib_rt_sched_yield=no
22253 rm -f core conftest.err conftest.$ac_objext \
22254 conftest$ac_exeext conftest.$ac_ext
22255 LIBS=$ac_check_lib_save_LIBS
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22258 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22259 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22261 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22263 THREADLIBS="$THREADLIBS -lrt"
22264 THREADSPEC="$THREADSPEC -lrt"
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22268 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22269 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22270 $as_echo_n "(cached) " >&6
22272 ac_check_lib_save_LIBS=$LIBS
22273 LIBS="-lposix4 $LIBS"
22274 if test x$gcc_no_link = xyes; then
22275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h. */
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22286 char sched_yield ();
22290 return sched_yield ();
22295 if ac_fn_c_try_link "$LINENO"; then :
22296 ac_cv_lib_posix4_sched_yield=yes
22298 ac_cv_lib_posix4_sched_yield=no
22300 rm -f core conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22302 LIBS=$ac_check_lib_save_LIBS
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22305 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22306 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22308 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22310 THREADLIBS="$THREADLIBS -lposix4"
22311 THREADSPEC="$THREADSPEC -lposix4"
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22321 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22322 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22325 ac_check_lib_save_LIBS=$LIBS
22327 if test x$gcc_no_link = xyes; then
22328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h. */
22333 /* Override any GCC internal prototype to avoid an error.
22334 Use char because int might match the return type of a GCC
22335 builtin and then its argument prototype would still apply. */
22339 char clock_gettime ();
22343 return clock_gettime ();
22348 if ac_fn_c_try_link "$LINENO"; then :
22349 ac_cv_lib_rt_clock_gettime=yes
22351 ac_cv_lib_rt_clock_gettime=no
22353 rm -f core conftest.err conftest.$ac_objext \
22354 conftest$ac_exeext conftest.$ac_ext
22355 LIBS=$ac_check_lib_save_LIBS
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22358 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22359 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22362 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22364 case "$THREADSPEC" in
22367 THREADSPEC="$THREADSPEC -lrt"
22368 THREADLIBS="$THREADLIBS -lrt"
22376 # We can save a little space at runtime if the mutex has m_count
22377 # or __m_count. This is a nice hack for Linux.
22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22380 #include <pthread.h>
22385 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22391 if ac_fn_c_try_compile "$LINENO"; then :
22393 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22399 #include <pthread.h>
22404 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22410 if ac_fn_c_try_compile "$LINENO"; then :
22412 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 # We require a way to get the time.
22422 for ac_func in gettimeofday time ftime
22424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22426 eval as_val=\$$as_ac_var
22427 if test "x$as_val" = x""yes; then :
22428 cat >>confdefs.h <<_ACEOF
22429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22435 if test "$time_found" = no; then
22436 as_fn_error "no function found to get the time" "$LINENO" 5
22439 for ac_func in memmove
22441 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22442 if test "x$ac_cv_func_memmove" = x""yes; then :
22443 cat >>confdefs.h <<_ACEOF
22444 #define HAVE_MEMMOVE 1
22451 # We require memcpy.
22453 for ac_func in memcpy
22455 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22456 if test "x$ac_cv_func_memcpy" = x""yes; then :
22457 cat >>confdefs.h <<_ACEOF
22458 #define HAVE_MEMCPY 1
22464 if test "$memcpy_found" = no; then
22465 as_fn_error "memcpy is required" "$LINENO" 5
22467 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22469 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22471 $as_echo_n "(cached) " >&6
22473 ac_check_lib_save_LIBS=$LIBS
22475 if test x$gcc_no_link = xyes; then
22476 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479 /* end confdefs.h. */
22481 /* Override any GCC internal prototype to avoid an error.
22482 Use char because int might match the return type of a GCC
22483 builtin and then its argument prototype would still apply. */
22496 if ac_fn_c_try_link "$LINENO"; then :
22497 ac_cv_lib_dl_dlopen=yes
22499 ac_cv_lib_dl_dlopen=no
22501 rm -f core conftest.err conftest.$ac_objext \
22502 conftest$ac_exeext conftest.$ac_ext
22503 LIBS=$ac_check_lib_save_LIBS
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22507 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22510 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22515 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22516 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22519 ac_check_lib_save_LIBS=$LIBS
22521 if test x$gcc_no_link = xyes; then
22522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h. */
22527 /* Override any GCC internal prototype to avoid an error.
22528 Use char because int might match the return type of a GCC
22529 builtin and then its argument prototype would still apply. */
22542 if ac_fn_c_try_link "$LINENO"; then :
22543 ac_cv_lib_dld_dlopen=yes
22545 ac_cv_lib_dld_dlopen=no
22547 rm -f core conftest.err conftest.$ac_objext \
22548 conftest$ac_exeext conftest.$ac_ext
22549 LIBS=$ac_check_lib_save_LIBS
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22552 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22553 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22556 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22563 # Some library-finding code we stole from Tcl.
22564 #--------------------------------------------------------------------
22565 # Check for the existence of the -lsocket and -lnsl libraries.
22566 # The order here is important, so that they end up in the right
22567 # order in the command line generated by make. Here are some
22568 # special considerations:
22569 # 1. Use "connect" and "accept" to check for -lsocket, and
22570 # "gethostbyname" to check for -lnsl.
22571 # 2. Use each function name only once: can't redo a check because
22572 # autoconf caches the results of the last check and won't redo it.
22573 # 3. Use -lnsl and -lsocket only if they supply procedures that
22574 # aren't already present in the normal libraries. This is because
22575 # IRIX 5.2 has libraries, but they aren't needed and they're
22576 # bogus: they goof up name resolution if used.
22577 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22578 # To get around this problem, check for both libraries together
22579 # if -lsocket doesn't work by itself.
22580 #--------------------------------------------------------------------
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22583 $as_echo_n "checking for socket libraries... " >&6; }
22584 if test "${gcj_cv_lib_sockets+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22587 gcj_cv_lib_sockets=
22589 unset ac_cv_func_connect
22590 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22591 if test "x$ac_cv_func_connect" = x""yes; then :
22597 if test "$gcj_checkSocket" = 1; then
22598 unset ac_cv_func_connect
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22600 $as_echo_n "checking for main in -lsocket... " >&6; }
22601 if test "${ac_cv_lib_socket_main+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22604 ac_check_lib_save_LIBS=$LIBS
22605 LIBS="-lsocket $LIBS"
22606 if test x$gcc_no_link = xyes; then
22607 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22610 /* end confdefs.h. */
22621 if ac_fn_c_try_link "$LINENO"; then :
22622 ac_cv_lib_socket_main=yes
22624 ac_cv_lib_socket_main=no
22626 rm -f core conftest.err conftest.$ac_objext \
22627 conftest$ac_exeext conftest.$ac_ext
22628 LIBS=$ac_check_lib_save_LIBS
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22631 $as_echo "$ac_cv_lib_socket_main" >&6; }
22632 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22633 gcj_cv_lib_sockets="-lsocket"
22639 if test "$gcj_checkBoth" = 1; then
22641 LIBS="$LIBS -lsocket -lnsl"
22642 unset ac_cv_func_accept
22643 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22644 if test "x$ac_cv_func_accept" = x""yes; then :
22646 gcj_cv_lib_sockets="-lsocket -lnsl"
22649 unset ac_cv_func_accept
22652 unset ac_cv_func_gethostbyname
22654 LIBS="$LIBS $gcj_cv_lib_sockets"
22655 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22656 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22660 $as_echo_n "checking for main in -lnsl... " >&6; }
22661 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22664 ac_check_lib_save_LIBS=$LIBS
22666 if test x$gcc_no_link = xyes; then
22667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670 /* end confdefs.h. */
22681 if ac_fn_c_try_link "$LINENO"; then :
22682 ac_cv_lib_nsl_main=yes
22684 ac_cv_lib_nsl_main=no
22686 rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext conftest.$ac_ext
22688 LIBS=$ac_check_lib_save_LIBS
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22691 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22692 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22693 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22698 unset ac_cv_func_gethostbyname
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22703 $as_echo "$gcj_cv_lib_sockets" >&6; }
22704 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22706 if test "$with_system_zlib" = yes; then
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22708 $as_echo_n "checking for deflate in -lz... " >&6; }
22709 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22710 $as_echo_n "(cached) " >&6
22712 ac_check_lib_save_LIBS=$LIBS
22714 if test x$gcc_no_link = xyes; then
22715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22720 /* Override any GCC internal prototype to avoid an error.
22721 Use char because int might match the return type of a GCC
22722 builtin and then its argument prototype would still apply. */
22735 if ac_fn_c_try_link "$LINENO"; then :
22736 ac_cv_lib_z_deflate=yes
22738 ac_cv_lib_z_deflate=no
22740 rm -f core conftest.err conftest.$ac_objext \
22741 conftest$ac_exeext conftest.$ac_ext
22742 LIBS=$ac_check_lib_save_LIBS
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22745 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22746 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22754 # Test for Gtk stuff, if asked for.
22755 if test "$use_gtk_awt" = yes; then
22759 if test -z "$PKG_CONFIG"; then
22760 # Extract the first word of "pkg-config", so it can be a program name with args.
22761 set dummy pkg-config; ac_word=$2
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22763 $as_echo_n "checking for $ac_word... " >&6; }
22764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22765 $as_echo_n "(cached) " >&6
22767 case $PKG_CONFIG in
22769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22773 for as_dir in $PATH
22776 test -z "$as_dir" && as_dir=.
22777 for ac_exec_ext in '' $ac_executable_extensions; do
22778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22792 if test -n "$PKG_CONFIG"; then
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22794 $as_echo "$PKG_CONFIG" >&6; }
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22797 $as_echo "no" >&6; }
22803 if test "$PKG_CONFIG" = "no" ; then
22804 echo "*** The pkg-config script could not be found. Make sure it is"
22805 echo "*** in your path, or set the PKG_CONFIG environment variable"
22806 echo "*** to the full path to pkg-config."
22807 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22809 PKG_CONFIG_MIN_VERSION=0.9.0
22810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22812 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22814 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22816 $as_echo "yes" >&6; }
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22820 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22821 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22823 $as_echo "$GTK_CFLAGS" >&6; }
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22826 $as_echo_n "checking GTK_LIBS... " >&6; }
22827 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22829 $as_echo "$GTK_LIBS" >&6; }
22833 ## If we have a custom action on failure, don't print errors, but
22834 ## do set a variable so people can do so.
22835 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22836 echo $GTK_PKG_ERRORS
22842 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22843 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22847 if test $succeeded = yes; then
22850 as_fn_error "Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22859 if test -z "$PKG_CONFIG"; then
22860 # Extract the first word of "pkg-config", so it can be a program name with args.
22861 set dummy pkg-config; ac_word=$2
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22863 $as_echo_n "checking for $ac_word... " >&6; }
22864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22865 $as_echo_n "(cached) " >&6
22867 case $PKG_CONFIG in
22869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22873 for as_dir in $PATH
22876 test -z "$as_dir" && as_dir=.
22877 for ac_exec_ext in '' $ac_executable_extensions; do
22878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22892 if test -n "$PKG_CONFIG"; then
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22894 $as_echo "$PKG_CONFIG" >&6; }
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22897 $as_echo "no" >&6; }
22903 if test "$PKG_CONFIG" = "no" ; then
22904 echo "*** The pkg-config script could not be found. Make sure it is"
22905 echo "*** in your path, or set the PKG_CONFIG environment variable"
22906 echo "*** to the full path to pkg-config."
22907 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22909 PKG_CONFIG_MIN_VERSION=0.9.0
22910 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22912 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22914 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22916 $as_echo "yes" >&6; }
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22920 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22921 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22923 $as_echo "$GLIB_CFLAGS" >&6; }
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22926 $as_echo_n "checking GLIB_LIBS... " >&6; }
22927 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22929 $as_echo "$GLIB_LIBS" >&6; }
22933 ## If we have a custom action on failure, don't print errors, but
22934 ## do set a variable so people can do so.
22935 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22936 echo $GLIB_PKG_ERRORS
22942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22947 if test $succeeded = yes; then
22950 as_fn_error "Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22959 if test -z "$PKG_CONFIG"; then
22960 # Extract the first word of "pkg-config", so it can be a program name with args.
22961 set dummy pkg-config; ac_word=$2
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22963 $as_echo_n "checking for $ac_word... " >&6; }
22964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22967 case $PKG_CONFIG in
22969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22973 for as_dir in $PATH
22976 test -z "$as_dir" && as_dir=.
22977 for ac_exec_ext in '' $ac_executable_extensions; do
22978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22992 if test -n "$PKG_CONFIG"; then
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22994 $as_echo "$PKG_CONFIG" >&6; }
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22997 $as_echo "no" >&6; }
23003 if test "$PKG_CONFIG" = "no" ; then
23004 echo "*** The pkg-config script could not be found. Make sure it is"
23005 echo "*** in your path, or set the PKG_CONFIG environment variable"
23006 echo "*** to the full path to pkg-config."
23007 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23009 PKG_CONFIG_MIN_VERSION=0.9.0
23010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23012 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23014 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23016 $as_echo "yes" >&6; }
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23020 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23021 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23023 $as_echo "$LIBART_CFLAGS" >&6; }
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23026 $as_echo_n "checking LIBART_LIBS... " >&6; }
23027 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23029 $as_echo "$LIBART_LIBS" >&6; }
23033 ## If we have a custom action on failure, don't print errors, but
23034 ## do set a variable so people can do so.
23035 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23036 echo $LIBART_PKG_ERRORS
23042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23047 if test $succeeded = yes; then
23050 as_fn_error "Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
23056 # We require the XTest Extension to support java.awt.Robot.
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23058 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23059 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23060 $as_echo_n "(cached) " >&6
23062 ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-lXtst ${X_LIBS} $LIBS"
23064 if test x$gcc_no_link = xyes; then
23065 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068 /* end confdefs.h. */
23070 /* Override any GCC internal prototype to avoid an error.
23071 Use char because int might match the return type of a GCC
23072 builtin and then its argument prototype would still apply. */
23076 char XTestQueryExtension ();
23080 return XTestQueryExtension ();
23085 if ac_fn_c_try_link "$LINENO"; then :
23086 ac_cv_lib_Xtst_XTestQueryExtension=yes
23088 ac_cv_lib_Xtst_XTestQueryExtension=no
23090 rm -f core conftest.err conftest.$ac_objext \
23091 conftest$ac_exeext conftest.$ac_ext
23092 LIBS=$ac_check_lib_save_LIBS
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23095 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23096 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23099 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23104 # On Solaris, and maybe other architectures, the Boehm collector
23106 if test "$GC" = boehm; then
23109 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23110 # libgcj.spec is used, so override here
23111 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23117 $as_echo_n "checking for main in -ldl... " >&6; }
23118 if test "${ac_cv_lib_dl_main+set}" = set; then :
23119 $as_echo_n "(cached) " >&6
23121 ac_check_lib_save_LIBS=$LIBS
23123 if test x$gcc_no_link = xyes; then
23124 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23127 /* end confdefs.h. */
23138 if ac_fn_c_try_link "$LINENO"; then :
23139 ac_cv_lib_dl_main=yes
23141 ac_cv_lib_dl_main=no
23143 rm -f core conftest.err conftest.$ac_objext \
23144 conftest$ac_exeext conftest.$ac_ext
23145 LIBS=$ac_check_lib_save_LIBS
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23148 $as_echo "$ac_cv_lib_dl_main" >&6; }
23149 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23150 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23158 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23160 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23161 *) CLASSPATH_SEPARATOR=':' ;;
23165 # We must search the source tree for java.lang, since we still don't
23166 # have libgcj.jar nor java/lang/*.class
23167 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23168 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23170 # Since some classes depend on this one, we need its source available
23171 # before we can do any GCJ compilation test :-(
23172 if test ! -f gnu/classpath/Configuration.java; then
23173 test -d gnu || mkdir gnu
23174 test -d gnu/classpath || mkdir gnu/classpath
23175 # Note that it is not crucial that all the values here be correct.
23176 sed -e "s,@prefix@,$expanded_prefix," \
23177 -e "s,@VERSION@,$VERSION," \
23178 -e "s,@LIBDEBUG@,false," \
23179 -e "s,@INIT_LOAD_LIBRARY@,false," \
23180 -e "s,@@,$LIBGCJDEBUG," \
23181 -e "s,@default_toolkit@,$TOOLKIT," \
23182 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23183 -e "s,@GTK_CAIRO_ENABLED@,false," \
23184 -e "s,@ECJ_JAR@,," \
23185 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23186 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23187 > gnu/classpath/Configuration.java
23188 # We do not want to redirect the output of the grep below to /dev/null,
23189 # but we add /dev/null to the input list so that grep will print the
23190 # filename of Configuration.java in case it finds any matches.
23191 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23192 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23197 if test -n "$ac_tool_prefix"; then
23200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23203 $as_echo_n "checking for $ac_word... " >&6; }
23204 if test "${ac_cv_prog_GCJ+set}" = set; then :
23205 $as_echo_n "(cached) " >&6
23207 if test -n "$GCJ"; then
23208 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23211 for as_dir in $PATH
23214 test -z "$as_dir" && as_dir=.
23215 for ac_exec_ext in '' $ac_executable_extensions; do
23216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23217 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23227 GCJ=$ac_cv_prog_GCJ
23228 if test -n "$GCJ"; then
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23230 $as_echo "$GCJ" >&6; }
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23233 $as_echo "no" >&6; }
23237 test -n "$GCJ" && break
23240 if test -z "$GCJ"; then
23244 # Extract the first word of "$ac_prog", so it can be a program name with args.
23245 set dummy $ac_prog; ac_word=$2
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23247 $as_echo_n "checking for $ac_word... " >&6; }
23248 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23249 $as_echo_n "(cached) " >&6
23251 if test -n "$ac_ct_GCJ"; then
23252 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23255 for as_dir in $PATH
23258 test -z "$as_dir" && as_dir=.
23259 for ac_exec_ext in '' $ac_executable_extensions; do
23260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23261 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23271 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23272 if test -n "$ac_ct_GCJ"; then
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23274 $as_echo "$ac_ct_GCJ" >&6; }
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23277 $as_echo "no" >&6; }
23281 test -n "$ac_ct_GCJ" && break
23284 if test "x$ac_ct_GCJ" = x; then
23287 case $cross_compiling:$ac_tool_warned in
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23291 ac_tool_warned=yes ;;
23297 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23298 if test "x${GCJFLAGS-unset}" = xunset; then
23303 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23306 $as_echo_n "checking dependency style of $depcc... " >&6; }
23307 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23308 $as_echo_n "(cached) " >&6
23310 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23311 # We make a subdir and do the tests there. Otherwise we can end up
23312 # making bogus files that we don't know about and never remove. For
23313 # instance it was reported that on HP-UX the gcc test will end up
23314 # making a dummy file named `D' -- because `-MD' means `put the output
23317 # Copy depcomp to subdir because otherwise we won't find it if we're
23318 # using a relative directory.
23319 cp "$am_depcomp" conftest.dir
23321 # We will build objects and dependencies in a subdirectory because
23322 # it helps to detect inapplicable dependency modes. For instance
23323 # both Tru64's cc and ICC support -MD to output dependencies as a
23324 # side effect of compilation, but ICC will put the dependencies in
23325 # the current directory while Tru64 will put them in the object
23329 am_cv_GCJ_dependencies_compiler_type=none
23330 if test "$am_compiler_list" = ""; then
23331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23333 am__universal=false
23336 for depmode in $am_compiler_list; do
23337 # Setup a source with many dependencies, because some compilers
23338 # like to wrap large dependency lists on column 80 (with \), and
23339 # we should not choose a depcomp mode which is confused by this.
23341 # We need to recreate these files for each test, as the compiler may
23342 # overwrite some of them when testing with obscure command lines.
23343 # This happens at least with the AIX C compiler.
23345 for i in 1 2 3 4 5 6; do
23346 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23348 # Solaris 8's {/usr,}/bin/sh.
23349 touch sub/conftst$i.h
23351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23354 # mode. It turns out that the SunPro C++ compiler does not properly
23355 # handle `-M -o', and we need to detect this. Also, some Intel
23356 # versions had trouble with output in subdirs
23357 am__obj=sub/conftest.${OBJEXT-o}
23358 am__minus_obj="-o $am__obj"
23361 # This depmode causes a compiler race in universal mode.
23362 test "$am__universal" = false || continue
23365 # after this tag, mechanisms are not by side-effect, so they'll
23366 # only be used when explicitly requested
23367 if test "x$enable_dependency_tracking" = xyes; then
23373 msvisualcpp | msvcmsys)
23374 # This compiler won't grok `-c -o', but also, the minuso test has
23375 # not run yet. These depmodes are late enough in the game, and
23376 # so weak that their functioning should not be impacted.
23377 am__obj=conftest.${OBJEXT-o}
23382 if depmode=$depmode \
23383 source=sub/conftest.c object=$am__obj \
23384 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23385 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23386 >/dev/null 2>conftest.err &&
23387 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23389 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23391 # icc doesn't choke on unknown options, it will just issue warnings
23392 # or remarks (even with -Werror). So we grep stderr for any message
23393 # that says an option was ignored or not supported.
23394 # When given -MP, icc 7.0 and 7.1 complain thusly:
23395 # icc: Command line warning: ignoring option '-M'; no argument required
23396 # The diagnosis changed in icc 8.0:
23397 # icc: Command line remark: option '-MP' not supported
23398 if (grep 'ignoring option' conftest.err ||
23399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23400 am_cv_GCJ_dependencies_compiler_type=$depmode
23407 rm -rf conftest.dir
23409 am_cv_GCJ_dependencies_compiler_type=none
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23414 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23415 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23418 test "x$enable_dependency_tracking" != xno \
23419 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23420 am__fastdepGCJ_TRUE=
23421 am__fastdepGCJ_FALSE='#'
23423 am__fastdepGCJ_TRUE='#'
23424 am__fastdepGCJ_FALSE=
23431 rm -f gnu/classpath/Configuration.java
23433 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23435 # The cast to long int works around a bug in the HP C Compiler
23436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23438 # This bug is HP SR number 8606223364.
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23440 $as_echo_n "checking size of void *... " >&6; }
23441 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23442 $as_echo_n "(cached) " >&6
23444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23447 if test "$ac_cv_type_void_p" = yes; then
23448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23450 { as_fn_set_status 77
23451 as_fn_error "cannot compute sizeof (void *)
23452 See \`config.log' for more details." "$LINENO" 5; }; }
23454 ac_cv_sizeof_void_p=0
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23460 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23464 cat >>confdefs.h <<_ACEOF
23465 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23471 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23472 if test "${ac_cv_c_bigendian+set}" = set; then :
23473 $as_echo_n "(cached) " >&6
23475 ac_cv_c_bigendian=unknown
23476 # See if we're dealing with a universal compiler.
23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h. */
23479 #ifndef __APPLE_CC__
23480 not a universal capable compiler
23485 if ac_fn_c_try_compile "$LINENO"; then :
23487 # Check for potential -arch flags. It is not universal unless
23488 # there are at least two -arch flags with different values.
23491 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23492 if test -n "$ac_prev"; then
23494 i?86 | x86_64 | ppc | ppc64)
23495 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23498 ac_cv_c_bigendian=universal
23504 elif test "x$ac_word" = "x-arch"; then
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510 if test $ac_cv_c_bigendian = unknown; then
23511 # See if sys/param.h defines the BYTE_ORDER macro.
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23514 #include <sys/types.h>
23515 #include <sys/param.h>
23520 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23521 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23523 bogus endian macros
23530 if ac_fn_c_try_compile "$LINENO"; then :
23531 # It does; now see whether it defined to BIG_ENDIAN or not.
23532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23534 #include <sys/types.h>
23535 #include <sys/param.h>
23540 #if BYTE_ORDER != BIG_ENDIAN
23548 if ac_fn_c_try_compile "$LINENO"; then :
23549 ac_cv_c_bigendian=yes
23551 ac_cv_c_bigendian=no
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 if test $ac_cv_c_bigendian = unknown; then
23558 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561 #include <limits.h>
23566 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23567 bogus endian macros
23574 if ac_fn_c_try_compile "$LINENO"; then :
23575 # It does; now see whether it defined to _BIG_ENDIAN or not.
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577 /* end confdefs.h. */
23578 #include <limits.h>
23583 #ifndef _BIG_ENDIAN
23591 if ac_fn_c_try_compile "$LINENO"; then :
23592 ac_cv_c_bigendian=yes
23594 ac_cv_c_bigendian=no
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 if test $ac_cv_c_bigendian = unknown; then
23601 # Compile a test program.
23602 if test "$cross_compiling" = yes; then :
23603 # Try to guess by grepping values from an object file.
23604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h. */
23606 short int ascii_mm[] =
23607 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23608 short int ascii_ii[] =
23609 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23610 int use_ascii (int i) {
23611 return ascii_mm[i] + ascii_ii[i];
23613 short int ebcdic_ii[] =
23614 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23615 short int ebcdic_mm[] =
23616 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23617 int use_ebcdic (int i) {
23618 return ebcdic_mm[i] + ebcdic_ii[i];
23625 return use_ascii (foo) == use_ebcdic (foo);
23630 if ac_fn_c_try_compile "$LINENO"; then :
23631 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23632 ac_cv_c_bigendian=yes
23634 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23635 if test "$ac_cv_c_bigendian" = unknown; then
23636 ac_cv_c_bigendian=no
23638 # finding both strings is unlikely to happen, but who knows?
23639 ac_cv_c_bigendian=unknown
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23647 $ac_includes_default
23652 /* Are we little or big endian? From Harbison&Steele. */
23656 char c[sizeof (long int)];
23659 return u.c[sizeof (long int) - 1] == 1;
23665 if ac_fn_c_try_run "$LINENO"; then :
23666 ac_cv_c_bigendian=no
23668 ac_cv_c_bigendian=yes
23670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23671 conftest.$ac_objext conftest.beam conftest.$ac_ext
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23677 $as_echo "$ac_cv_c_bigendian" >&6; }
23678 case $ac_cv_c_bigendian in #(
23680 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23686 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23690 as_fn_error "unknown endianness
23691 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23699 if test -z "$ZLIBSPEC"; then
23700 # Use zlib from the GCC tree.
23701 ZINCS='-I$(top_srcdir)/../zlib'
23702 ZLIBS=../zlib/libzgcj_convenience.la
23705 SYS_ZLIBS="$ZLIBSPEC"
23717 if test "$NATIVE" = yes; then
23725 if test "$enable_shared" = yes; then
23726 ENABLE_SHARED_TRUE=
23727 ENABLE_SHARED_FALSE='#'
23729 ENABLE_SHARED_TRUE='#'
23730 ENABLE_SHARED_FALSE=
23733 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23734 NEEDS_DATA_START_TRUE=
23735 NEEDS_DATA_START_FALSE='#'
23737 NEEDS_DATA_START_TRUE='#'
23738 NEEDS_DATA_START_FALSE=
23741 if test -z "${with_multisubdir}"; then
23742 INSTALL_BINARIES_TRUE=
23743 INSTALL_BINARIES_FALSE='#'
23745 INSTALL_BINARIES_TRUE='#'
23746 INSTALL_BINARIES_FALSE=
23751 # Process the option "--enable-version-specific-runtime-libs"
23752 # Calculate toolexeclibdir
23753 case ${version_specific_libs} in
23755 # Need the gcc compiler version to know where to install libraries
23756 # and header files if --enable-version-specific-runtime-libs option
23758 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23759 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23760 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23761 toolexeclibdir=$toolexecmainlibdir
23764 if test -n "$with_cross_host" &&
23765 test x"$with_cross_host" != x"no"; then
23766 # Install a library built with a cross compiler in tooldir, not libdir.
23767 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23768 toolexecmainlibdir='$(toolexecdir)/lib'
23770 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23771 toolexecmainlibdir='$(libdir)'
23773 multi_os_directory=`$CC -print-multi-os-directory`
23774 case $multi_os_directory in
23775 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23776 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23784 # Determine gcj and libgcj version number.
23785 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23786 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23787 GCJVERSION=$gcjversion
23790 cat >>confdefs.h <<_ACEOF
23791 #define GCJVERSION "$GCJVERSION"
23795 # Determine where the standard .db file and GNU Classpath JNI
23796 # libraries are found.
23797 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23798 multi_os_directory=`$CC -print-multi-os-directory`
23799 case $multi_os_directory in
23801 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23804 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23811 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23814 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23818 case "${with_gxx_include_dir}" in
23820 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23823 case "${enable_version_specific_runtime_libs}" in
23824 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23826 libstdcxx_incdir='c++/$(gcc_version)'
23827 gxx_include_dir='include/$(libstdcxx_incdir)'
23828 if test -n "$with_cross_host" &&
23829 test x"$with_cross_host" != x"no"; then
23830 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23832 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23835 *) gxx_include_dir=${with_gxx_include_dir} ;;
23841 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23842 # On that system, sys/ioctl.h will not include sys/filio.h unless
23843 # BSD_COMP is defined; just including sys/filio.h is simpler.
23844 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23845 # for now. If you change this, you also must update natFile.cc.
23846 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23847 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23848 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23849 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23850 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23853 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23854 eval as_val=\$$as_ac_Header
23855 if test "x$as_val" = x""yes; then :
23856 cat >>confdefs.h <<_ACEOF
23857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23865 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23866 for ac_header in net/if.h
23868 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23869 #ifdef HAVE_SYS_SOCKET_H
23870 #include <sys/socket.h>
23874 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23875 cat >>confdefs.h <<_ACEOF
23876 #define HAVE_NET_IF_H 1
23884 for ac_header in inttypes.h
23886 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23887 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23888 cat >>confdefs.h <<_ACEOF
23889 #define HAVE_INTTYPES_H 1
23893 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23896 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23904 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23905 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23909 cat >>confdefs.h <<_ACEOF
23910 #define ssize_t int
23915 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23916 #ifdef HAVE_MAGIC_H
23920 if test "x$ac_cv_type_magic_t" = x""yes; then :
23923 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23929 $as_echo_n "checking for in_addr_t... " >&6; }
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 #include <sys/types.h>
23934 #include <stdlib.h>
23935 #include <stddef.h>
23937 #if HAVE_NETINET_IN_H
23938 #include <netinet/in.h>
23948 if ac_fn_c_try_compile "$LINENO"; then :
23950 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23953 $as_echo "yes" >&6; }
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23961 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23963 /* end confdefs.h. */
23964 #include <netinet/in.h>
23968 struct ip_mreq mreq;
23973 if ac_fn_c_try_compile "$LINENO"; then :
23975 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23978 $as_echo "yes" >&6; }
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23981 $as_echo "no" >&6; }
23983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23986 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23989 #include <netinet/in.h>
23993 struct ipv6_mreq mreq6;
23998 if ac_fn_c_try_compile "$LINENO"; then :
24000 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24003 $as_echo "yes" >&6; }
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24006 $as_echo "no" >&6; }
24008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24011 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013 /* end confdefs.h. */
24014 #include <netinet/in.h>
24018 struct sockaddr_in6 addr6;
24023 if ac_fn_c_try_compile "$LINENO"; then :
24025 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24028 $as_echo "yes" >&6; }
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24031 $as_echo "no" >&6; }
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24036 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* end confdefs.h. */
24039 #define _POSIX_PII_SOCKET
24040 #include <sys/types.h>
24041 #include <sys/socket.h>
24050 if ac_fn_c_try_compile "$LINENO"; then :
24052 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24055 $as_echo "yes" >&6; }
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24058 $as_echo "no" >&6; }
24060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24063 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24065 /* end confdefs.h. */
24070 struct tm tim; tim.tm_gmtoff = 0;
24075 if ac_fn_c_try_compile "$LINENO"; then :
24077 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24080 $as_echo "yes" >&6; }
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24083 $as_echo "no" >&6; }
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24085 $as_echo_n "checking for global timezone variable... " >&6; }
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24092 void i(){long z2 = 2*timezone;}
24097 if ac_fn_c_try_compile "$LINENO"; then :
24099 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24102 $as_echo "yes" >&6; }
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24105 $as_echo "no" >&6; }
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24107 $as_echo_n "checking for global _timezone variable... " >&6; }
24108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24109 /* end confdefs.h. */
24114 long z2 = _timezone;
24119 if ac_fn_c_try_compile "$LINENO"; then :
24121 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24124 $as_echo "yes" >&6; }
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24127 $as_echo "no" >&6; }
24129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24135 for ac_prog in perl
24137 # Extract the first word of "$ac_prog", so it can be a program name with args.
24138 set dummy $ac_prog; ac_word=$2
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24140 $as_echo_n "checking for $ac_word... " >&6; }
24141 if test "${ac_cv_prog_PERL+set}" = set; then :
24142 $as_echo_n "(cached) " >&6
24144 if test -n "$PERL"; then
24145 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24148 for as_dir in $PATH
24151 test -z "$as_dir" && as_dir=.
24152 for ac_exec_ext in '' $ac_executable_extensions; do
24153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24154 ac_cv_prog_PERL="$ac_prog"
24155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24164 PERL=$ac_cv_prog_PERL
24165 if test -n "$PERL"; then
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24167 $as_echo "$PERL" >&6; }
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170 $as_echo "no" >&6; }
24174 test -n "$PERL" && break
24176 test -n "$PERL" || PERL="false"
24180 SIGNAL_HANDLER_AUX=
24184 SIGNAL_HANDLER=include/i386-signal.h
24187 SIGNAL_HANDLER=include/solaris-signal.h
24190 # SYSDEP_SOURCES=sysdep/ia64.c
24191 # test -d sysdep || mkdir sysdep
24194 SIGNAL_HANDLER=include/pa-signal.h
24197 SIGNAL_HANDLER=include/hppa-signal.h
24200 SIGNAL_HANDLER=include/dwarf2-signal.h
24203 SIGNAL_HANDLER=include/powerpc-signal.h
24206 SIGNAL_HANDLER=include/dwarf2-signal.h
24209 SIGNAL_HANDLER=include/s390-signal.h
24212 SIGNAL_HANDLER=include/x86_64-signal.h
24213 SIGNAL_HANDLER_AUX=include/i386-signal.h
24216 SIGNAL_HANDLER=include/dwarf2-signal.h
24219 SIGNAL_HANDLER=include/sh-signal.h
24222 SIGNAL_HANDLER=include/win32-signal.h
24225 SIGNAL_HANDLER=include/mips-signal.h
24228 SIGNAL_HANDLER=include/dwarf2-signal.h
24230 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24231 SIGNAL_HANDLER=include/darwin-signal.h
24234 SIGNAL_HANDLER=include/aix-signal.h
24237 SIGNAL_HANDLER=include/default-signal.h
24241 # If we're using sjlj exceptions, forget what we just learned.
24242 if test "$enable_sjlj_exceptions" = yes; then
24243 SIGNAL_HANDLER=include/default-signal.h
24244 SIGNAL_HANDLER_AUX=
24249 if test -z "$SIGNAL_HANDLER_AUX"; then
24250 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24253 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24256 if test "${multilib}" = "yes"; then
24257 multilib_arg="--enable-multilib"
24262 # See if we support thread-local storage.
24265 # Check whether --enable-tls was given.
24266 if test "${enable_tls+set}" = set; then :
24267 enableval=$enable_tls;
24268 case "$enableval" in
24270 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24279 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24280 if test "${gcc_cv_have_tls+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24284 if test "$cross_compiling" = yes; then :
24285 if test x$gcc_no_link = xyes; then
24286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24289 /* end confdefs.h. */
24290 __thread int a; int b; int main() { return a = b; }
24292 if ac_fn_c_try_link "$LINENO"; then :
24293 chktls_save_LDFLAGS="$LDFLAGS"
24296 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24299 chktls_save_CFLAGS="$CFLAGS"
24300 CFLAGS="-fPIC $CFLAGS"
24301 if test x$gcc_no_link = xyes; then
24302 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24306 int f() { return 0; }
24308 if ac_fn_c_try_link "$LINENO"; then :
24309 if test x$gcc_no_link = xyes; then
24310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24313 /* end confdefs.h. */
24314 __thread int a; int b; int f() { return a = b; }
24316 if ac_fn_c_try_link "$LINENO"; then :
24317 gcc_cv_have_tls=yes
24321 rm -f core conftest.err conftest.$ac_objext \
24322 conftest$ac_exeext conftest.$ac_ext
24324 gcc_cv_have_tls=yes
24326 rm -f core conftest.err conftest.$ac_objext \
24327 conftest$ac_exeext conftest.$ac_ext
24328 CFLAGS="$chktls_save_CFLAGS"
24329 LDFLAGS="$chktls_save_LDFLAGS"
24333 rm -f core conftest.err conftest.$ac_objext \
24334 conftest$ac_exeext conftest.$ac_ext
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h. */
24340 __thread int a; int b; int main() { return a = b; }
24342 if ac_fn_c_try_run "$LINENO"; then :
24343 chktls_save_LDFLAGS="$LDFLAGS"
24344 LDFLAGS="-static $LDFLAGS"
24345 if test x$gcc_no_link = xyes; then
24346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h. */
24350 int main() { return 0; }
24352 if ac_fn_c_try_link "$LINENO"; then :
24353 if test "$cross_compiling" = yes; then :
24354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24356 as_fn_error "cannot run test program while cross compiling
24357 See \`config.log' for more details." "$LINENO" 5; }
24359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h. */
24361 __thread int a; int b; int main() { return a = b; }
24363 if ac_fn_c_try_run "$LINENO"; then :
24364 gcc_cv_have_tls=yes
24368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24369 conftest.$ac_objext conftest.beam conftest.$ac_ext
24373 gcc_cv_have_tls=yes
24375 rm -f core conftest.err conftest.$ac_objext \
24376 conftest$ac_exeext conftest.$ac_ext
24377 LDFLAGS="$chktls_save_LDFLAGS"
24378 if test $gcc_cv_have_tls = yes; then
24379 chktls_save_CFLAGS="$CFLAGS"
24380 thread_CFLAGS=failed
24381 for flag in '' '-pthread' '-lpthread'; do
24382 CFLAGS="$flag $chktls_save_CFLAGS"
24383 if test x$gcc_no_link = xyes; then
24384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24387 /* end confdefs.h. */
24388 #include <pthread.h>
24389 void *g(void *d) { return NULL; }
24393 pthread_t t; pthread_create(&t,NULL,g,NULL);
24398 if ac_fn_c_try_link "$LINENO"; then :
24399 thread_CFLAGS="$flag"
24401 rm -f core conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24403 if test "X$thread_CFLAGS" != Xfailed; then
24407 CFLAGS="$chktls_save_CFLAGS"
24408 if test "X$thread_CFLAGS" != Xfailed; then
24409 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24410 if test "$cross_compiling" = yes; then :
24411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24413 as_fn_error "cannot run test program while cross compiling
24414 See \`config.log' for more details." "$LINENO" 5; }
24416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24417 /* end confdefs.h. */
24418 #include <pthread.h>
24420 static int *volatile a_in_other_thread;
24422 thread_func (void *arg)
24424 a_in_other_thread = &a;
24431 void *thread_retval;
24432 int *volatile a_in_main_thread;
24433 a_in_main_thread = &a;
24434 if (pthread_create (&thread, (pthread_attr_t *)0,
24435 thread_func, (void *)0))
24437 if (pthread_join (thread, &thread_retval))
24439 return (a_in_other_thread == a_in_main_thread);
24444 if ac_fn_c_try_run "$LINENO"; then :
24445 gcc_cv_have_tls=yes
24449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24450 conftest.$ac_objext conftest.beam conftest.$ac_ext
24453 CFLAGS="$chktls_save_CFLAGS"
24459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24460 conftest.$ac_objext conftest.beam conftest.$ac_ext
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24465 $as_echo "$gcc_cv_have_tls" >&6; }
24466 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24468 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24472 # For _Unwind_GetIPInfo.
24475 # Check whether --with-system-libunwind was given.
24476 if test "${with_system_libunwind+set}" = set; then :
24477 withval=$with_system_libunwind;
24480 # If system-libunwind was not specifically set, pick a default setting.
24481 if test x$with_system_libunwind = x; then
24483 ia64-*-hpux*) with_system_libunwind=yes ;;
24484 *) with_system_libunwind=no ;;
24487 # Based on system-libunwind and target, do we have ipinfo?
24488 if test x$with_system_libunwind = xyes; then
24490 ia64-*-*) have_unwind_getipinfo=no ;;
24491 *) have_unwind_getipinfo=yes ;;
24494 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24497 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24498 *) have_unwind_getipinfo=yes ;;
24503 if test x$have_unwind_getipinfo = xyes; then
24505 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24510 # See if linker supports anonymous version scripts.
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24512 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24513 if test "${libjava_cv_anon_version_script+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24516 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24517 libjava_cv_anon_version_script=no
24518 CFLAGS="$CFLAGS -fPIC";
24519 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24520 echo '{ global: globalsymb*; local: *; };' > conftest.map
24521 if test x$gcc_no_link = xyes; then
24522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h. */
24526 void globalsymbol (void) {} void localsymbol (void) {}
24535 if ac_fn_c_try_link "$LINENO"; then :
24536 libjava_cv_anon_version_script=gnu
24538 rm -f core conftest.err conftest.$ac_objext \
24539 conftest$ac_exeext conftest.$ac_ext
24540 if test x$libjava_cv_anon_version_script = xno; then
24541 case "$target_os" in
24543 LDFLAGS="$save_LDFLAGS"
24544 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24545 # Sun ld doesn't understand wildcards here.
24546 echo '{ global: globalsymbol; local: *; };' > conftest.map
24547 if test x$gcc_no_link = xyes; then
24548 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h. */
24552 void globalsymbol (void) {} void localsymbol (void) {}
24561 if ac_fn_c_try_link "$LINENO"; then :
24562 libjava_cv_anon_version_script=sun
24564 rm -f core conftest.err conftest.$ac_objext \
24565 conftest$ac_exeext conftest.$ac_ext
24569 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24573 $as_echo "$libjava_cv_anon_version_script" >&6; }
24574 if test "$libjava_cv_anon_version_script" != no; then
24575 ANONVERSCRIPT_TRUE=
24576 ANONVERSCRIPT_FALSE='#'
24578 ANONVERSCRIPT_TRUE='#'
24579 ANONVERSCRIPT_FALSE=
24582 if test "$libjava_cv_anon_version_script" = gnu; then
24583 ANONVERSCRIPT_GNU_TRUE=
24584 ANONVERSCRIPT_GNU_FALSE='#'
24586 ANONVERSCRIPT_GNU_TRUE='#'
24587 ANONVERSCRIPT_GNU_FALSE=
24590 if test "$libjava_cv_anon_version_script" = sun; then
24591 ANONVERSCRIPT_SUN_TRUE=
24592 ANONVERSCRIPT_SUN_FALSE='#'
24594 ANONVERSCRIPT_SUN_TRUE='#'
24595 ANONVERSCRIPT_SUN_FALSE=
24599 # Check if linker supports static linking on a per library basis
24600 LD_START_STATIC_SPEC=
24601 LD_FINISH_STATIC_SPEC=
24602 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24603 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24604 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24605 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24611 here=`${PWDCMD-pwd}`
24614 # We get this from the environment.
24618 # Check whether --with-python-dir was given.
24619 if test "${with_python_dir+set}" = set; then :
24620 withval=$with_python_dir; with_python_dir=$withval
24626 if test "x${with_python_dir}" = "x"
24628 # Needed for installing Python modules during make install.
24629 python_mod_dir="\${prefix}/share/python"
24630 # Needed for substituting into aot-compile*
24631 python_mod_dir_expanded="${expanded_prefix}/share/python"
24633 python_mod_dir="\${prefix}${with_python_dir}"
24634 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24637 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24641 # needed for aot-compile-rpm
24645 # Check whether --enable-aot-compile-rpm was given.
24646 if test "${enable_aot_compile_rpm+set}" = set; then :
24647 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24648 yes) AOT_RPM_ENABLED=yes ;;
24649 no) AOT_RPM_ENABLED=no ;;
24650 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24657 if test "x${AOT_RPM_ENABLED}" = xyes; then
24658 INSTALL_AOT_RPM_TRUE=
24659 INSTALL_AOT_RPM_FALSE='#'
24661 INSTALL_AOT_RPM_TRUE='#'
24662 INSTALL_AOT_RPM_FALSE=
24666 # Check whether --enable-java-home was given.
24667 if test "${enable_java_home+set}" = set; then :
24668 enableval=$enable_java_home; case "${enableval}" in
24669 yes) JAVA_HOME_ENABLED=yes ;;
24670 no) JAVA_HOME_ENABLED=no ;;
24671 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24674 JAVA_HOME_ENABLED=no
24678 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24679 CREATE_JAVA_HOME_TRUE=
24680 CREATE_JAVA_HOME_FALSE='#'
24682 CREATE_JAVA_HOME_TRUE='#'
24683 CREATE_JAVA_HOME_FALSE=
24687 # Only do these checks if java-home above is enabled.
24688 if test "x${JAVA_HOME_ENABLED}" = xyes
24692 # Check whether --with-gcc-suffix was given.
24693 if test "${with_gcc_suffix+set}" = set; then :
24694 withval=$with_gcc_suffix; gcc_suffix=$withval
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24700 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24704 # Check whether --with-arch-directory was given.
24705 if test "${with_arch_directory+set}" = set; then :
24706 withval=$with_arch_directory; host_cpu=$withval
24713 # Check whether --with-os-directory was given.
24714 if test "${with_os_directory+set}" = set; then :
24715 withval=$with_os_directory; host_os=$withval
24722 # Check whether --with-origin-name was given.
24723 if test "${with_origin_name+set}" = set; then :
24724 withval=$with_origin_name; origin_name=$withval
24726 origin_name=gcj${gcc_suffix}
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24730 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24733 # Check whether --with-arch-suffix was given.
24734 if test "${with_arch_suffix+set}" = set; then :
24735 withval=$with_arch_suffix; arch_suffix=$withval
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24741 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24744 # Check whether --with-jvm-root-dir was given.
24745 if test "${with_jvm_root_dir+set}" = set; then :
24746 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24748 jvm_root_dir="\${prefix}/lib/jvm"
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24752 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24755 # Check whether --with-jvm-jar-dir was given.
24756 if test "${with_jvm_jar_dir+set}" = set; then :
24757 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24759 jvm_jar_dir=\${prefix}/lib/jvm-exports
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24763 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24770 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24773 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24774 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24776 JVM_ROOT_DIR=${jvm_root_dir}
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24779 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24781 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24784 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24786 JVM_JAR_DIR=${jvm_jar_dir}
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24789 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24800 SDK_BIN_DIR=${jvm_root_dir}/bin
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24803 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24805 SDK_LIB_DIR=${jvm_root_dir}/lib
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24808 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24810 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24813 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24815 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24818 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24820 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24823 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24825 # Find gcj prefix using gcj found in PATH.
24826 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24828 # Where do the gcj binaries live?
24829 # For jhbuild based builds, they all live in a sibling of bin called
24830 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24831 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24834 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24837 $as_echo "host is ${host}" >&6; }
24838 if test "x${host_cpu}" = "x"
24841 *-mingw* | *-cygwin*)
24843 i486-* | i586-* | i686-*)
24848 host_cpu=${host_cpu};;
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24852 $as_echo "arch directory: ${host_cpu}" >&6; }
24856 if test "x${host_os}" = "x"
24859 *-mingw* | *-cygwin*)
24864 host_os=${host_os};;
24867 echo os directory: ${host_os}
24871 # make an expanded $libdir, for substituting into
24872 # scripts (and other non-Makefile things).
24874 if test "x${exec_prefix}" = "xNONE"
24876 lib_exec_prefix=$expanded_prefix
24878 lib_exec_prefix=$exec_prefix
24880 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24884 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db"
24887 if test ${multilib} = yes; then
24888 multilib_arg="--enable-multilib"
24893 ac_config_files="$ac_config_files scripts/jar"
24895 cat >confcache <<\_ACEOF
24896 # This file is a shell script that caches the results of configure
24897 # tests run on this system so they can be shared between configure
24898 # scripts and configure runs, see configure's option --config-cache.
24899 # It is not useful on other systems. If it contains results you don't
24900 # want to keep, you may remove or edit it.
24902 # config.status only pays attention to the cache file if you give it
24903 # the --recheck option to rerun configure.
24905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24907 # following values.
24911 # The following way of writing the cache mishandles newlines in values,
24912 # but we know of no workaround that is simple, portable, and efficient.
24913 # So, we kill variables containing newlines.
24914 # Ultrix sh set writes to stderr and can't be redirected directly,
24915 # and sets the high bit in the cache file unless we assign to the vars.
24917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24918 eval ac_val=\$$ac_var
24922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24926 _ | IFS | as_nl) ;; #(
24927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24928 *) { eval $ac_var=; unset $ac_var;} ;;
24934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24935 *${as_nl}ac_space=\ *)
24936 # `set' does not quote correctly, so add quotes: double-quote
24937 # substitution turns \\\\ into \\, and sed turns \\ into \.
24940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24943 # `set' quotes correctly as required by POSIX, so do not add quotes.
24944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24958 if test -w "$cache_file"; then
24959 test "x$cache_file" != "x/dev/null" &&
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24961 $as_echo "$as_me: updating cache $cache_file" >&6;}
24962 cat confcache >$cache_file
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24971 # Let make expand exec_prefix.
24972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24974 DEFS=-DHAVE_CONFIG_H
24978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24979 # 1. Remove the extension, and $U if already installed.
24980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24983 # will be set to the directory where LIBOBJS objects are built.
24984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24987 LIBOBJS=$ac_libobjs
24989 LTLIBOBJS=$ac_ltlibobjs
24992 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24993 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24996 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24997 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25000 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25001 as_fn_error "conditional \"AMDEP\" was never defined.
25002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25005 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25009 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25012 if test -n "$EXEEXT"; then
25014 am__EXEEXT_FALSE='#'
25016 am__EXEEXT_TRUE='#'
25020 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25021 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25024 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25025 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25028 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25029 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25032 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25033 as_fn_error "conditional \"X_AWT\" was never defined.
25034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25036 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25037 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25040 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25041 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25044 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25045 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25048 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25049 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25052 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25053 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25056 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25057 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25060 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25061 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25064 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25065 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25068 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25069 as_fn_error "conditional \"INTERPRETER\" was never defined.
25070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25072 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25073 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25076 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25077 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25080 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25081 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25084 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25085 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25088 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25089 as_fn_error "conditional \"USING_NOGC\" was never defined.
25090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25092 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25093 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25096 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25097 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25100 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25101 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25104 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25105 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25108 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25109 as_fn_error "conditional \"USING_GCC\" was never defined.
25110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25112 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25113 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25118 as_fn_error "conditional \"NATIVE\" was never defined.
25119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25122 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25126 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25130 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25133 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25134 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25137 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25138 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25141 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25142 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25145 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25146 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25149 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25150 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25154 : ${CONFIG_STATUS=./config.status}
25156 ac_clean_files_save=$ac_clean_files
25157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25159 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25161 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25163 # Generated by $as_me.
25164 # Run this file to recreate the current configuration.
25165 # Compiler output produced by configure, useful for debugging
25166 # configure, is in config.log if it exists.
25169 ac_cs_recheck=false
25172 SHELL=\${CONFIG_SHELL-$SHELL}
25175 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25176 ## -------------------- ##
25177 ## M4sh Initialization. ##
25178 ## -------------------- ##
25180 # Be more Bourne compatible
25181 DUALCASE=1; export DUALCASE # for MKS sh
25182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25185 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25186 # is contrary to our usage. Disable this feature.
25187 alias -g '${1+"$@"}'='"$@"'
25188 setopt NO_GLOB_SUBST
25190 case `(set -o) 2>/dev/null` in #(
25202 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25203 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25206 # Prefer a ksh shell builtin over an external printf program on Solaris,
25207 # but without wasting forks for bash or zsh.
25208 if test -z "$BASH_VERSION$ZSH_VERSION" \
25209 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25210 as_echo='print -r --'
25211 as_echo_n='print -rn --'
25212 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25213 as_echo='printf %s\n'
25214 as_echo_n='printf %s'
25216 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25217 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25218 as_echo_n='/usr/ucb/echo -n'
25220 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25221 as_echo_n_body='eval
25225 expr "X$arg" : "X\\(.*\\)$as_nl";
25226 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25228 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25230 export as_echo_n_body
25231 as_echo_n='sh -c $as_echo_n_body as_echo'
25233 export as_echo_body
25234 as_echo='sh -c $as_echo_body as_echo'
25237 # The user is always right.
25238 if test "${PATH_SEPARATOR+set}" != set; then
25240 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25241 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25248 # We need space, tab and new line, in precisely that order. Quoting is
25249 # there to prevent editors from complaining about space-tab.
25250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25251 # splitting by setting IFS to empty value.)
25254 # Find who we are. Look in the path if we contain no directory separator.
25256 *[\\/]* ) as_myself=$0 ;;
25257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25258 for as_dir in $PATH
25261 test -z "$as_dir" && as_dir=.
25262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25268 # We did not find ourselves, most probably we were run as `sh COMMAND'
25269 # in which case we are not to be found in the path.
25270 if test "x$as_myself" = x; then
25273 if test ! -f "$as_myself"; then
25274 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25278 # Unset variables that we do not need and which cause bugs (e.g. in
25279 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25280 # suppresses any "Segmentation fault" message there. '((' could
25281 # trigger a bug in pdksh 5.2.14.
25282 for as_var in BASH_ENV ENV MAIL MAILPATH
25283 do eval test x\${$as_var+set} = xset \
25284 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25300 # as_fn_error ERROR [LINENO LOG_FD]
25301 # ---------------------------------
25302 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25303 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25304 # script with status $?, using 1 if that was 0.
25307 as_status=$?; test $as_status -eq 0 && as_status=1
25309 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25310 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25312 $as_echo "$as_me: error: $1" >&2
25313 as_fn_exit $as_status
25317 # as_fn_set_status STATUS
25318 # -----------------------
25319 # Set $? to STATUS, without forking.
25320 as_fn_set_status ()
25323 } # as_fn_set_status
25325 # as_fn_exit STATUS
25326 # -----------------
25327 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25331 as_fn_set_status $1
25337 # Portably unset VAR.
25340 { eval $1=; unset $1;}
25342 as_unset=as_fn_unset
25343 # as_fn_append VAR VALUE
25344 # ----------------------
25345 # Append the text in VALUE to the end of the definition contained in VAR. Take
25346 # advantage of any shell optimizations that allow amortized linear growth over
25347 # repeated appends, instead of the typical quadratic growth present in naive
25349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25350 eval 'as_fn_append ()
25361 # as_fn_arith ARG...
25362 # ------------------
25363 # Perform arithmetic evaluation on the ARGs, and store the result in the
25364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25365 # must be portable across $(()) and expr.
25366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25367 eval 'as_fn_arith ()
25374 as_val=`expr "$@" || test $? -eq 1`
25379 if expr a : '\(a\)' >/dev/null 2>&1 &&
25380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25387 as_basename=basename
25392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25398 as_me=`$as_basename -- "$0" ||
25399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25400 X"$0" : 'X\(//\)$' \| \
25401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25403 sed '/^.*\/\([^/][^/]*\)\/*$/{
25417 # Avoid depending upon Character Ranges.
25418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25421 as_cr_digits='0123456789'
25422 as_cr_alnum=$as_cr_Letters$as_cr_digits
25424 ECHO_C= ECHO_N= ECHO_T=
25425 case `echo -n x` in #(((((
25427 case `echo 'xy\c'` in
25428 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25430 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25437 rm -f conf$$ conf$$.exe conf$$.file
25438 if test -d conf$$.dir; then
25439 rm -f conf$$.dir/conf$$.file
25442 mkdir conf$$.dir 2>/dev/null
25444 if (echo >conf$$.file) 2>/dev/null; then
25445 if ln -s conf$$.file conf$$ 2>/dev/null; then
25447 # ... but there are two gotchas:
25448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25450 # In both cases, we have to default to `cp -p'.
25451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25453 elif ln conf$$.file conf$$ 2>/dev/null; then
25461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25462 rmdir conf$$.dir 2>/dev/null
25467 # Create "$as_dir" as a directory, including parents if necessary.
25472 -*) as_dir=./$as_dir;;
25474 test -d "$as_dir" || eval $as_mkdir_p || {
25478 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25479 *) as_qdir=$as_dir;;
25481 as_dirs="'$as_qdir' $as_dirs"
25482 as_dir=`$as_dirname -- "$as_dir" ||
25483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25484 X"$as_dir" : 'X\(//\)[^/]' \| \
25485 X"$as_dir" : 'X\(//\)$' \| \
25486 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25487 $as_echo X"$as_dir" |
25488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25492 /^X\(\/\/\)[^/].*/{
25505 test -d "$as_dir" && break
25507 test -z "$as_dirs" || eval "mkdir $as_dirs"
25508 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25512 if mkdir -p . 2>/dev/null; then
25513 as_mkdir_p='mkdir -p "$as_dir"'
25515 test -d ./-p && rmdir ./-p
25519 if test -x / >/dev/null 2>&1; then
25520 as_test_x='test -x'
25522 if ls -dL / >/dev/null 2>&1; then
25529 if test -d "$1"; then
25535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25536 ???[sx]*):;;*)false;;esac;fi
25540 as_executable_p=$as_test_x
25542 # Sed expression to map a string onto a valid CPP name.
25543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25545 # Sed expression to map a string onto a valid variable name.
25546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25550 ## ----------------------------------- ##
25551 ## Main body of $CONFIG_STATUS script. ##
25552 ## ----------------------------------- ##
25554 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25557 # Save the log message, to keep $0 and so on meaningful, and to
25558 # report actual input values of CONFIG_FILES etc. instead of their
25559 # values after options handling.
25561 This file was extended by libjava $as_me version-unused, which was
25562 generated by GNU Autoconf 2.64. Invocation command line was
25564 CONFIG_FILES = $CONFIG_FILES
25565 CONFIG_HEADERS = $CONFIG_HEADERS
25566 CONFIG_LINKS = $CONFIG_LINKS
25567 CONFIG_COMMANDS = $CONFIG_COMMANDS
25570 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25575 case $ac_config_files in *"
25576 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25579 case $ac_config_headers in *"
25580 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25585 # Files that config.status was made for.
25586 config_files="$ac_config_files"
25587 config_headers="$ac_config_headers"
25588 config_links="$ac_config_links"
25589 config_commands="$ac_config_commands"
25593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25595 \`$as_me' instantiates files and other configuration actions
25596 from templates according to the current configuration. Unless the files
25597 and actions are specified as TAGs, all are instantiated by default.
25599 Usage: $0 [OPTION]... [TAG]...
25601 -h, --help print this help, then exit
25602 -V, --version print version number and configuration settings, then exit
25603 -q, --quiet, --silent
25604 do not print progress messages
25605 -d, --debug don't remove temporary files
25606 --recheck update $as_me by reconfiguring in the same conditions
25607 --file=FILE[:TEMPLATE]
25608 instantiate the configuration file FILE
25609 --header=FILE[:TEMPLATE]
25610 instantiate the configuration header FILE
25612 Configuration files:
25615 Configuration headers:
25618 Configuration links:
25621 Configuration commands:
25624 Report bugs to the package provider."
25627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25629 libjava config.status version-unused
25630 configured by $0, generated by GNU Autoconf 2.64,
25631 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25633 Copyright (C) 2009 Free Software Foundation, Inc.
25634 This config.status script is free software; the Free Software Foundation
25635 gives unlimited permission to copy, distribute and modify it."
25642 test -n "\$AWK" || AWK=awk
25645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25646 # The default lists apply if the user does not specify any file.
25652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25664 # Handling of the options.
25665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25668 $as_echo "$ac_cs_version"; exit ;;
25669 --debug | --debu | --deb | --de | --d | -d )
25671 --file | --fil | --fi | --f )
25674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25676 as_fn_append CONFIG_FILES " '$ac_optarg'"
25677 ac_need_defaults=false;;
25678 --header | --heade | --head | --hea )
25681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25683 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25684 ac_need_defaults=false;;
25686 # Conflict between --help and --header
25687 as_fn_error "ambiguous option: \`$1'
25688 Try \`$0 --help' for more information.";;
25689 --help | --hel | -h )
25690 $as_echo "$ac_cs_usage"; exit ;;
25691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25695 # This is an error.
25696 -*) as_fn_error "unrecognized option: \`$1'
25697 Try \`$0 --help' for more information." ;;
25699 *) as_fn_append ac_config_targets " $1"
25700 ac_need_defaults=false ;;
25706 ac_configure_extra_args=
25708 if $ac_cs_silent; then
25710 ac_configure_extra_args="$ac_configure_extra_args --silent"
25714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25715 if \$ac_cs_recheck; then
25716 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25719 CONFIG_SHELL='$SHELL'
25720 export CONFIG_SHELL
25725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25730 ## Running $as_me. ##
25736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25744 with_multisubdir="$with_multisubdir"
25745 with_multisrctop="$with_multisrctop"
25746 with_target_subdir="$with_target_subdir"
25747 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25748 multi_basedir="$multi_basedir"
25749 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25752 GFORTRAN="$GFORTRAN"
25754 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25757 # The HP-UX ksh and POSIX shell print the target directory to stdout
25758 # if CDPATH is set.
25759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25761 sed_quote_subst='$sed_quote_subst'
25762 double_quote_subst='$double_quote_subst'
25763 delay_variable_subst='$delay_variable_subst'
25764 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25765 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25767 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25768 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25769 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25770 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25771 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25792 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25793 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25794 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25795 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25796 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25797 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25798 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25799 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25800 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25801 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25802 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25803 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25804 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25805 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25806 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25807 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25808 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25809 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25810 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25812 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25813 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25814 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25815 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25816 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25817 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25818 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25819 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25820 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25821 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25822 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25823 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25824 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25825 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25826 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25827 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25828 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25829 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25830 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25831 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25832 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25833 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25834 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25835 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25836 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25837 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25838 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25839 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25840 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25841 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25842 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25843 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25844 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25845 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25846 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25847 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25848 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25849 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25850 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25851 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25852 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25853 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25854 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25855 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25856 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25857 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25858 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25859 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25860 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25861 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25862 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25863 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25864 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25865 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25866 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25867 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25868 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25869 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25870 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25871 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25872 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25873 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25874 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25875 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25876 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25877 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25878 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25879 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25880 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25881 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25882 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25883 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25884 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25885 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25886 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25887 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25888 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25889 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25890 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25891 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25892 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25893 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25894 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25895 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25896 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25897 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25898 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25899 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25900 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25901 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25902 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25903 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25904 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25905 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25906 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25907 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25908 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25909 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25910 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25911 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25912 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25913 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25914 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25915 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25916 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25917 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25918 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25919 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25920 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25921 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25922 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25923 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25924 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25925 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25926 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25927 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25928 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25929 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25930 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25931 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25932 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25933 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25934 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25935 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25936 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25937 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25938 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25939 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25940 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25941 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25942 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25943 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25944 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25945 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25946 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25947 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25948 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25949 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25950 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25951 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25952 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25953 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25954 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25955 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25956 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25957 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25958 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25959 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25960 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25961 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25962 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25963 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25964 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25965 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25966 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25967 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25968 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25969 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25970 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25971 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25972 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25973 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25974 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25975 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25976 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25977 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25978 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25979 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25980 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25981 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25982 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25983 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25984 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25985 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25986 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25987 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25990 LTCFLAGS='$LTCFLAGS'
25991 compiler='$compiler_DEFAULT'
25993 # A function that is used when there is no print builtin or printf.
25994 func_fallback_echo ()
25996 eval 'cat <<_LTECHO_EOF
26001 # Quote evaled strings.
26015 deplibs_check_method \
26024 lt_cv_sys_global_symbol_pipe \
26025 lt_cv_sys_global_symbol_to_cdecl \
26026 lt_cv_sys_global_symbol_to_c_name_address \
26027 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26028 lt_prog_compiler_no_builtin_flag \
26029 lt_prog_compiler_wl \
26030 lt_prog_compiler_pic \
26031 lt_prog_compiler_static \
26032 lt_cv_prog_compiler_c_o \
26040 export_dynamic_flag_spec \
26041 whole_archive_flag_spec \
26042 compiler_needs_object \
26044 allow_undefined_flag \
26045 no_undefined_flag \
26046 hardcode_libdir_flag_spec \
26047 hardcode_libdir_flag_spec_ld \
26048 hardcode_libdir_separator \
26053 variables_saved_for_relink \
26055 library_names_spec \
26057 install_override_mode \
26061 compiler_lib_search_dirs \
26066 compiler_lib_search_path \
26073 lt_prog_compiler_no_builtin_flag_CXX \
26074 lt_prog_compiler_no_builtin_flag_GCJ \
26075 lt_prog_compiler_wl_CXX \
26076 lt_prog_compiler_wl_GCJ \
26077 lt_prog_compiler_pic_CXX \
26078 lt_prog_compiler_pic_GCJ \
26079 lt_prog_compiler_static_CXX \
26080 lt_prog_compiler_static_GCJ \
26081 lt_cv_prog_compiler_c_o_CXX \
26082 lt_cv_prog_compiler_c_o_GCJ \
26083 export_dynamic_flag_spec_CXX \
26084 export_dynamic_flag_spec_GCJ \
26085 whole_archive_flag_spec_CXX \
26086 whole_archive_flag_spec_GCJ \
26087 compiler_needs_object_CXX \
26088 compiler_needs_object_GCJ \
26091 allow_undefined_flag_CXX \
26092 allow_undefined_flag_GCJ \
26093 no_undefined_flag_CXX \
26094 no_undefined_flag_GCJ \
26095 hardcode_libdir_flag_spec_CXX \
26096 hardcode_libdir_flag_spec_GCJ \
26097 hardcode_libdir_flag_spec_ld_CXX \
26098 hardcode_libdir_flag_spec_ld_GCJ \
26099 hardcode_libdir_separator_CXX \
26100 hardcode_libdir_separator_GCJ \
26101 fix_srcfile_path_CXX \
26102 fix_srcfile_path_GCJ \
26103 exclude_expsyms_CXX \
26104 exclude_expsyms_GCJ \
26105 include_expsyms_CXX \
26106 include_expsyms_GCJ \
26107 file_list_spec_CXX \
26108 file_list_spec_GCJ \
26109 compiler_lib_search_dirs_CXX \
26110 compiler_lib_search_dirs_GCJ \
26111 predep_objects_CXX \
26112 predep_objects_GCJ \
26113 postdep_objects_CXX \
26114 postdep_objects_GCJ \
26119 compiler_lib_search_path_CXX \
26120 compiler_lib_search_path_GCJ; do
26121 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26122 *[\\\\\\\`\\"\\\$]*)
26123 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26126 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26131 # Double-quote double-evaled strings.
26132 for var in reload_cmds \
26133 old_postinstall_cmds \
26134 old_postuninstall_cmds \
26136 extract_expsyms_cmds \
26137 old_archive_from_new_cmds \
26138 old_archive_from_expsyms_cmds \
26140 archive_expsym_cmds \
26142 module_expsym_cmds \
26143 export_symbols_cmds \
26146 postuninstall_cmds \
26148 sys_lib_search_path_spec \
26149 sys_lib_dlsearch_path_spec \
26152 old_archive_cmds_CXX \
26153 old_archive_cmds_GCJ \
26154 old_archive_from_new_cmds_CXX \
26155 old_archive_from_new_cmds_GCJ \
26156 old_archive_from_expsyms_cmds_CXX \
26157 old_archive_from_expsyms_cmds_GCJ \
26160 archive_expsym_cmds_CXX \
26161 archive_expsym_cmds_GCJ \
26164 module_expsym_cmds_CXX \
26165 module_expsym_cmds_GCJ \
26166 export_symbols_cmds_CXX \
26167 export_symbols_cmds_GCJ \
26169 prelink_cmds_GCJ; do
26170 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26171 *[\\\\\\\`\\"\\\$]*)
26172 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26175 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26180 ac_aux_dir='$ac_aux_dir'
26181 xsi_shell='$xsi_shell'
26182 lt_shell_append='$lt_shell_append'
26184 # See if we are running on zsh, and set the options which allow our
26185 # commands through without removal of \ escapes INIT.
26186 if test -n "\${ZSH_VERSION+set}" ; then
26187 setopt NO_GLOB_SUBST
26193 TIMESTAMP='$TIMESTAMP'
26206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26208 # Handling of arguments.
26209 for ac_config_target in $ac_config_targets
26211 case $ac_config_target in
26212 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26213 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26214 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26215 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26216 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26217 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26218 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26219 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26220 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26221 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26222 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26223 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26224 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26225 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26226 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26227 "gnu/java/security/jce/prng/natVMSecureRandom.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
26228 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26229 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26230 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26231 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26232 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26233 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26234 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26235 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26236 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26237 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26238 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26239 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26240 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26241 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26242 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26243 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26244 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26245 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26246 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26247 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26249 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26254 # If the user did not use the arguments to specify the items to instantiate,
26255 # then the envvar interface is used. Set only those that are not.
26256 # We use the long form for the default assignment because of an extremely
26257 # bizarre bug on SunOS 4.1.3.
26258 if $ac_need_defaults; then
26259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26261 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26265 # Have a temporary directory for convenience. Make it in the build tree
26266 # simply because there is no reason against having it here, and in addition,
26267 # creating and moving files from /tmp can sometimes cause problems.
26268 # Hook for its removal unless debugging.
26269 # Note that there is a small window in which the directory will not be cleaned:
26270 # after its creation but before its name has been assigned to `$tmp'.
26274 trap 'exit_status=$?
26275 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26277 trap 'as_fn_exit 1' 1 2 13 15
26279 # Create a (secure) tmp directory for tmp files.
26282 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26283 test -n "$tmp" && test -d "$tmp"
26286 tmp=./conf$$-$RANDOM
26287 (umask 077 && mkdir "$tmp")
26288 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26290 # Set up the scripts for CONFIG_FILES section.
26291 # No need to generate them if there are no CONFIG_FILES.
26292 # This happens for instance with `./config.status config.h'.
26293 if test -n "$CONFIG_FILES"; then
26296 ac_cr=`echo X | tr X '\015'`
26297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26298 # But we know of no other shell where ac_cr would be empty at this
26299 # point, so we can use a bashism as a fallback.
26300 if test "x$ac_cr" = x; then
26301 eval ac_cr=\$\'\\r\'
26303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26307 ac_cs_awk_cr=$ac_cr
26310 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26315 echo "cat >conf$$subs.awk <<_ACEOF" &&
26316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26318 } >conf$$subs.sh ||
26319 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26322 for ac_last_try in false false false false false :; do
26323 . ./conf$$subs.sh ||
26324 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26327 if test $ac_delim_n = $ac_delim_num; then
26329 elif $ac_last_try; then
26330 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26335 rm -f conf$$subs.sh
26337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26338 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26342 s/^/S["/; s/!.*/"]=/
26352 s/\(.\{148\}\).*/\1/
26354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26366 s/\(.\{148\}\).*/\1/
26368 s/["\\]/\\&/g; s/^/"/; s/$/"/
26372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26377 ' <conf$$subs.awk | sed '
26382 ' >>$CONFIG_STATUS || ac_write_fail=1
26383 rm -f conf$$subs.awk
26384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26386 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26387 for (key in S) S_is_set[key] = 1
26393 nfields = split(line, field, "@")
26395 len = length(field[1])
26396 for (i = 2; i < nfields; i++) {
26398 keylen = length(key)
26399 if (S_is_set[key]) {
26401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26402 len += length(value) + length(field[++i])
26413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26418 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26419 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26424 # trailing colons and then remove the whole line if VPATH becomes empty
26425 # (actually we leave an empty line to preserve line numbers).
26426 if test "x$srcdir" = x.; then
26427 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26428 s/:*\$(srcdir):*/:/
26429 s/:*\${srcdir}:*/:/
26431 s/^\([^=]*=[ ]*\):*/\1/
26437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26438 fi # test -n "$CONFIG_FILES"
26440 # Set up the scripts for CONFIG_HEADERS section.
26441 # No need to generate them if there are no CONFIG_HEADERS.
26442 # This happens for instance with `./config.status Makefile'.
26443 if test -n "$CONFIG_HEADERS"; then
26444 cat >"$tmp/defines.awk" <<\_ACAWK ||
26448 # Transform confdefs.h into an awk script `defines.awk', embedded as
26449 # here-document in config.status, that substitutes the proper values into
26450 # config.h.in to produce config.h.
26452 # Create a delimiter string that does not exist in confdefs.h, to ease
26453 # handling of long lines.
26455 for ac_last_try in false false :; do
26456 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26457 if test -z "$ac_t"; then
26459 elif $ac_last_try; then
26460 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26462 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26466 # For the awk script, D is an array of macro values keyed by name,
26467 # likewise P contains macro parameters if any. Preserve backslash
26468 # newline sequences.
26470 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26472 s/.\{148\}/&'"$ac_delim"'/g
26475 s/^[ ]*#[ ]*define[ ][ ]*/ /
26482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26484 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26489 D["\1"]=" \3\\\\\\n"\\/p
26491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26496 s/.\{148\}/&'"$ac_delim"'/g
26501 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26504 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26506 ' <confdefs.h | sed '
26507 s/'"$ac_delim"'/"\\\
26508 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26511 for (key in D) D_is_set[key] = 1
26514 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26516 split(line, arg, " ")
26517 if (arg[1] == "#") {
26521 defundef = substr(arg[1], 2)
26524 split(mac1, mac2, "(") #)
26526 prefix = substr(line, 1, index(line, defundef) - 1)
26527 if (D_is_set[macro]) {
26528 # Preserve the white space surrounding the "#".
26529 print prefix "define", macro P[macro] D[macro]
26532 # Replace #undef with comments. This is necessary, for example,
26533 # in the case of _POSIX_SOURCE, which is predefined and required
26534 # on some systems where configure will not decide to define it.
26535 if (defundef == "undef") {
26536 print "/*", prefix defundef, macro, "*/"
26544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26545 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26546 fi # test -n "$CONFIG_HEADERS"
26549 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26554 :[FHLC]) ac_mode=$ac_tag; continue;;
26556 case $ac_mode$ac_tag in
26558 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26559 :[FH]-) ac_tag=-:-;;
26560 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26577 -) ac_f="$tmp/stdin";;
26578 *) # Look for the file first in the build tree, then in the source tree
26579 # (if the path is not absolute). The absolute path cannot be DOS-style,
26580 # because $ac_f cannot contain `:'.
26584 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26586 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26588 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26589 as_fn_append ac_file_inputs " '$ac_f'"
26592 # Let's still pretend it is `configure' which instantiates (i.e., don't
26593 # use $as_me), people would be surprised to read:
26594 # /* config.h. Generated by config.status. */
26595 configure_input='Generated from '`
26596 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26598 if test x"$ac_file" != x-; then
26599 configure_input="$ac_file. $configure_input"
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26601 $as_echo "$as_me: creating $ac_file" >&6;}
26603 # Neutralize special characters interpreted by sed in replacement strings.
26604 case $configure_input in #(
26605 *\&* | *\|* | *\\* )
26606 ac_sed_conf_input=`$as_echo "$configure_input" |
26607 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26608 *) ac_sed_conf_input=$configure_input;;
26612 *:-:* | *:-) cat >"$tmp/stdin" \
26613 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26618 ac_dir=`$as_dirname -- "$ac_file" ||
26619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26620 X"$ac_file" : 'X\(//\)[^/]' \| \
26621 X"$ac_file" : 'X\(//\)$' \| \
26622 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26623 $as_echo X"$ac_file" |
26624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26628 /^X\(\/\/\)[^/].*/{
26641 as_dir="$ac_dir"; as_fn_mkdir_p
26645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26648 # A ".." for each directory in $ac_dir_suffix.
26649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26650 case $ac_top_builddir_sub in
26651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26655 ac_abs_top_builddir=$ac_pwd
26656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26657 # for backward compatibility:
26658 ac_top_builddir=$ac_top_build_prefix
26661 .) # We are building in place.
26663 ac_top_srcdir=$ac_top_builddir_sub
26664 ac_abs_top_srcdir=$ac_pwd ;;
26665 [\\/]* | ?:[\\/]* ) # Absolute name.
26666 ac_srcdir=$srcdir$ac_dir_suffix;
26667 ac_top_srcdir=$srcdir
26668 ac_abs_top_srcdir=$srcdir ;;
26669 *) # Relative name.
26670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26671 ac_top_srcdir=$ac_top_build_prefix$srcdir
26672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26684 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26685 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26687 ac_MKDIR_P=$MKDIR_P
26689 [\\/$]* | ?:[\\/]* ) ;;
26690 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26695 # If the template does not know about datarootdir, expand it.
26696 # FIXME: This hack should be removed a few years after 2.60.
26697 ac_datarootdir_hack=; ac_datarootdir_seen=
26708 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26709 *datarootdir*) ac_datarootdir_seen=yes;;
26710 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26712 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26715 ac_datarootdir_hack='
26716 s&@datadir@&$datadir&g
26717 s&@docdir@&$docdir&g
26718 s&@infodir@&$infodir&g
26719 s&@localedir@&$localedir&g
26720 s&@mandir@&$mandir&g
26721 s&\\\${datarootdir}&$datarootdir&g' ;;
26725 # Neutralize VPATH when `$srcdir' = `.'.
26726 # Shell code in configure.ac might set extrasub.
26727 # FIXME: do we really want to maintain this feature?
26728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26729 ac_sed_extra="$ac_vpsub
26732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26735 s|@configure_input@|$ac_sed_conf_input|;t t
26736 s&@top_builddir@&$ac_top_builddir_sub&;t t
26737 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26738 s&@srcdir@&$ac_srcdir&;t t
26739 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26740 s&@top_srcdir@&$ac_top_srcdir&;t t
26741 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26742 s&@builddir@&$ac_builddir&;t t
26743 s&@abs_builddir@&$ac_abs_builddir&;t t
26744 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26745 s&@INSTALL@&$ac_INSTALL&;t t
26746 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26747 $ac_datarootdir_hack
26749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26750 || as_fn_error "could not create $ac_file" "$LINENO" 5
26752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26753 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26756 which seems to be undefined. Please make sure it is defined." >&5
26757 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26758 which seems to be undefined. Please make sure it is defined." >&2;}
26762 -) cat "$tmp/out" && rm -f "$tmp/out";;
26763 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26765 || as_fn_error "could not create $ac_file" "$LINENO" 5
26771 if test x"$ac_file" != x-; then
26773 $as_echo "/* $configure_input */" \
26774 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26775 } >"$tmp/config.h" \
26776 || as_fn_error "could not create $ac_file" "$LINENO" 5
26777 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26779 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26782 mv "$tmp/config.h" "$ac_file" \
26783 || as_fn_error "could not create $ac_file" "$LINENO" 5
26786 $as_echo "/* $configure_input */" \
26787 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26788 || as_fn_error "could not create -" "$LINENO" 5
26790 # Compute "$ac_file"'s index in $config_headers.
26793 for _am_header in $config_headers :; do
26794 case $_am_header in
26795 $_am_arg | $_am_arg:* )
26798 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26801 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26802 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26803 X"$_am_arg" : 'X\(//\)[^/]' \| \
26804 X"$_am_arg" : 'X\(//\)$' \| \
26805 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26806 $as_echo X"$_am_arg" |
26807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26811 /^X\(\/\/\)[^/].*/{
26823 s/.*/./; q'`/stamp-h$_am_stamp_count
26830 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26833 # Prefer the file from the source tree if names are identical.
26834 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26835 ac_source=$srcdir/$ac_source
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26839 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26841 if test ! -r "$ac_source"; then
26842 as_fn_error "$ac_source: file not found" "$LINENO" 5
26846 # Try a relative symlink, then a hard link, then a copy.
26848 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26849 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26851 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26852 ln "$ac_source" "$ac_file" 2>/dev/null ||
26853 cp -p "$ac_source" "$ac_file" ||
26854 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26857 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26858 $as_echo "$as_me: executing $ac_file commands" >&6;}
26863 case $ac_file$ac_mode in
26865 # Only add multilib support code if we just rebuilt the top-level
26867 case " $CONFIG_FILES " in
26869 ac_file=Makefile . ${multi_basedir}/config-ml.in
26872 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26873 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26874 # are listed without --file. Let's play safe and only enable the eval
26875 # if we detect the quoting.
26876 case $CONFIG_FILES in
26877 *\'*) eval set x "$CONFIG_FILES" ;;
26878 *) set x $CONFIG_FILES ;;
26883 # Strip MF so we end up with the name of the file.
26884 mf=`echo "$mf" | sed -e 's/:.*$//'`
26885 # Check whether this is an Automake generated Makefile or not.
26886 # We used to match only the files named `Makefile.in', but
26887 # some people rename them; so instead we look at the file content.
26888 # Grep'ing the first line is not enough: some people post-process
26889 # each Makefile.in and add a new line on top of each file to say so.
26890 # Grep'ing the whole file is not good either: AIX grep has a line
26891 # limit of 2048, but all sed's we know have understand at least 4000.
26892 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26893 dirpart=`$as_dirname -- "$mf" ||
26894 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26895 X"$mf" : 'X\(//\)[^/]' \| \
26896 X"$mf" : 'X\(//\)$' \| \
26897 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26903 /^X\(\/\/\)[^/].*/{
26919 # Extract the definition of DEPDIR, am__include, and am__quote
26920 # from the Makefile without running `make'.
26921 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26922 test -z "$DEPDIR" && continue
26923 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26924 test -z "am__include" && continue
26925 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26926 # When using ansi2knr, U may be empty or an underscore; expand it
26927 U=`sed -n 's/^U = //p' < "$mf"`
26928 # Find all dependency output files, they are included files with
26929 # $(DEPDIR) in their names. We invoke sed twice because it is the
26930 # simplest approach to changing $(DEPDIR) to its actual value in the
26932 for file in `sed -n "
26933 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26934 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26935 # Make sure the directory exists.
26936 test -f "$dirpart/$file" && continue
26937 fdir=`$as_dirname -- "$file" ||
26938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26939 X"$file" : 'X\(//\)[^/]' \| \
26940 X"$file" : 'X\(//\)$' \| \
26941 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26942 $as_echo X"$file" |
26943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26947 /^X\(\/\/\)[^/].*/{
26960 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26961 # echo "creating $dirpart/$file"
26962 echo '# dummy' > "$dirpart/$file"
26969 # See if we are running on zsh, and set the options which allow our
26970 # commands through without removal of \ escapes.
26971 if test -n "${ZSH_VERSION+set}" ; then
26972 setopt NO_GLOB_SUBST
26975 cfgfile="${ofile}T"
26976 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26979 cat <<_LT_EOF >> "$cfgfile"
26982 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26983 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26984 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26985 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26987 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26988 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26989 # Written by Gordon Matzigkeit, 1996
26991 # This file is part of GNU Libtool.
26993 # GNU Libtool is free software; you can redistribute it and/or
26994 # modify it under the terms of the GNU General Public License as
26995 # published by the Free Software Foundation; either version 2 of
26996 # the License, or (at your option) any later version.
26998 # As a special exception to the GNU General Public License,
26999 # if you distribute this file as part of a program or library that
27000 # is built using GNU Libtool, you may include this file under the
27001 # same distribution terms that you use for the rest of that program.
27003 # GNU Libtool is distributed in the hope that it will be useful,
27004 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27005 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27006 # GNU General Public License for more details.
27008 # You should have received a copy of the GNU General Public License
27009 # along with GNU Libtool; see the file COPYING. If not, a copy
27010 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27011 # obtained by writing to the Free Software Foundation, Inc.,
27012 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27015 # The names of the tagged configurations supported by this script.
27016 available_tags="CXX GCJ "
27018 # ### BEGIN LIBTOOL CONFIG
27020 # Which release of libtool.m4 was used?
27021 macro_version=$macro_version
27022 macro_revision=$macro_revision
27024 # Whether or not to build shared libraries.
27025 build_libtool_libs=$enable_shared
27027 # Whether or not to build static libraries.
27028 build_old_libs=$enable_static
27030 # What type of objects to build.
27033 # Whether or not to optimize for fast installation.
27034 fast_install=$enable_fast_install
27036 # Shell to use when invoking shell scripts.
27039 # An echo program that protects backslashes.
27043 host_alias=$host_alias
27047 # The build system.
27048 build_alias=$build_alias
27052 # A sed program that does not truncate output.
27055 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27056 Xsed="\$SED -e 1s/^X//"
27058 # A grep program that handles long lines.
27064 # A literal string matcher.
27067 # A BSD- or MS-compatible name lister.
27070 # Whether we need soft or hard links.
27073 # What is the maximum length of a command?
27074 max_cmd_len=$max_cmd_len
27076 # Object file suffix (normally "o").
27079 # Executable file suffix (normally "").
27082 # whether the shell understands "unset".
27085 # turn spaces into newlines.
27088 # turn newlines into spaces.
27091 # An object symbol dumper.
27092 OBJDUMP=$lt_OBJDUMP
27094 # Method to check whether dependent libraries are shared objects.
27095 deplibs_check_method=$lt_deplibs_check_method
27097 # Command to use when deplibs_check_method == "file_magic".
27098 file_magic_cmd=$lt_file_magic_cmd
27102 AR_FLAGS=$lt_AR_FLAGS
27104 # A symbol stripping program.
27107 # Commands used to install an old-style archive.
27109 old_postinstall_cmds=$lt_old_postinstall_cmds
27110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27112 # Whether to use a lock for old archive extraction.
27113 lock_old_archive_extraction=$lock_old_archive_extraction
27118 # LTCC compiler flags.
27119 LTCFLAGS=$lt_CFLAGS
27121 # Take the output of nm and produce a listing of raw symbols and C names.
27122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27124 # Transform the output of nm in a proper C declaration.
27125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27127 # Transform the output of nm in a C name address pair.
27128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27130 # Transform the output of nm in a C name address pair when lib prefix is needed.
27131 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27133 # The name of the directory that contains temporary libtool files.
27136 # Used to examine libraries when file_magic_cmd begins with "file".
27137 MAGIC_CMD=$MAGIC_CMD
27139 # Must we lock files when doing compilation?
27140 need_locks=$lt_need_locks
27142 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27143 DSYMUTIL=$lt_DSYMUTIL
27145 # Tool to change global to local symbols on Mac OS X.
27148 # Tool to manipulate fat objects and archives on Mac OS X.
27151 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27154 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27155 OTOOL64=$lt_OTOOL64
27157 # Old archive suffix (normally "a").
27160 # Shared library suffix (normally ".so").
27161 shrext_cmds=$lt_shrext_cmds
27163 # The commands to extract the exported symbol list from a shared archive.
27164 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27166 # Variables whose values should be saved in libtool wrapper scripts and
27167 # restored at link time.
27168 variables_saved_for_relink=$lt_variables_saved_for_relink
27170 # Do we need the "lib" prefix for modules?
27171 need_lib_prefix=$need_lib_prefix
27173 # Do we need a version for libraries?
27174 need_version=$need_version
27176 # Library versioning type.
27177 version_type=$version_type
27179 # Shared library runtime path variable.
27180 runpath_var=$runpath_var
27182 # Shared library path variable.
27183 shlibpath_var=$shlibpath_var
27185 # Is shlibpath searched before the hard-coded library search path?
27186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27188 # Format of library name prefix.
27189 libname_spec=$lt_libname_spec
27191 # List of archive names. First name is the real one, the rest are links.
27192 # The last name is the one that the linker finds with -lNAME
27193 library_names_spec=$lt_library_names_spec
27195 # The coded name of the library, if different from the real name.
27196 soname_spec=$lt_soname_spec
27198 # Permission mode override for installation of shared libraries.
27199 install_override_mode=$lt_install_override_mode
27201 # Command to use after installation of a shared archive.
27202 postinstall_cmds=$lt_postinstall_cmds
27204 # Command to use after uninstallation of a shared archive.
27205 postuninstall_cmds=$lt_postuninstall_cmds
27207 # Commands used to finish a libtool library installation in a directory.
27208 finish_cmds=$lt_finish_cmds
27210 # As "finish_cmds", except a single script fragment to be evaled but
27212 finish_eval=$lt_finish_eval
27214 # Whether we should hardcode library paths into libraries.
27215 hardcode_into_libs=$hardcode_into_libs
27217 # Compile-time system search path for libraries.
27218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27220 # Run-time system search path for libraries.
27221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27223 # Whether dlopen is supported.
27224 dlopen_support=$enable_dlopen
27226 # Whether dlopen of programs is supported.
27227 dlopen_self=$enable_dlopen_self
27229 # Whether dlopen of statically linked programs is supported.
27230 dlopen_self_static=$enable_dlopen_self_static
27232 # Commands to strip libraries.
27233 old_striplib=$lt_old_striplib
27234 striplib=$lt_striplib
27237 # The linker used to build libraries.
27240 # How to create reloadable object files.
27241 reload_flag=$lt_reload_flag
27242 reload_cmds=$lt_reload_cmds
27244 # Commands used to build an old-style archive.
27245 old_archive_cmds=$lt_old_archive_cmds
27247 # A language specific compiler.
27250 # Is the compiler the GNU compiler?
27253 # Compiler flag to turn off builtin functions.
27254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27256 # How to pass a linker flag through the compiler.
27257 wl=$lt_lt_prog_compiler_wl
27259 # Additional compiler flags for building library objects.
27260 pic_flag=$lt_lt_prog_compiler_pic
27262 # Compiler flag to prevent dynamic linking.
27263 link_static_flag=$lt_lt_prog_compiler_static
27265 # Does compiler simultaneously support -c and -o options?
27266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27268 # Whether or not to add -lc for building shared libraries.
27269 build_libtool_need_lc=$archive_cmds_need_lc
27271 # Whether or not to disallow shared libs when runtime libs are static.
27272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27274 # Compiler flag to allow reflexive dlopens.
27275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27277 # Compiler flag to generate shared objects directly from archives.
27278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27280 # Whether the compiler copes with passing no objects directly.
27281 compiler_needs_object=$lt_compiler_needs_object
27283 # Create an old-style archive from a shared archive.
27284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27286 # Create a temporary old-style archive to link instead of a shared archive.
27287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27289 # Commands used to build a shared archive.
27290 archive_cmds=$lt_archive_cmds
27291 archive_expsym_cmds=$lt_archive_expsym_cmds
27293 # Commands used to build a loadable module if different from building
27294 # a shared archive.
27295 module_cmds=$lt_module_cmds
27296 module_expsym_cmds=$lt_module_expsym_cmds
27298 # Whether we are building with GNU ld or not.
27299 with_gnu_ld=$lt_with_gnu_ld
27301 # Flag that allows shared libraries with undefined symbols to be built.
27302 allow_undefined_flag=$lt_allow_undefined_flag
27304 # Flag that enforces no undefined symbols.
27305 no_undefined_flag=$lt_no_undefined_flag
27307 # Flag to hardcode \$libdir into a binary during linking.
27308 # This must work even if \$libdir does not exist
27309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27311 # If ld is used when linking, flag to hardcode \$libdir into a binary
27312 # during linking. This must work even if \$libdir does not exist.
27313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27315 # Whether we need a single "-rpath" flag with a separated argument.
27316 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27318 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27319 # DIR into the resulting binary.
27320 hardcode_direct=$hardcode_direct
27322 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27323 # DIR into the resulting binary and the resulting library dependency is
27324 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27325 # library is relocated.
27326 hardcode_direct_absolute=$hardcode_direct_absolute
27328 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27329 # into the resulting binary.
27330 hardcode_minus_L=$hardcode_minus_L
27332 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27333 # into the resulting binary.
27334 hardcode_shlibpath_var=$hardcode_shlibpath_var
27336 # Set to "yes" if building a shared library automatically hardcodes DIR
27337 # into the library and all subsequent libraries and executables linked
27339 hardcode_automatic=$hardcode_automatic
27341 # Set to yes if linker adds runtime paths of dependent libraries
27342 # to runtime path list.
27343 inherit_rpath=$inherit_rpath
27345 # Whether libtool must link a program against all its dependency libraries.
27346 link_all_deplibs=$link_all_deplibs
27348 # Fix the shell variable \$srcfile for the compiler.
27349 fix_srcfile_path=$lt_fix_srcfile_path
27351 # Set to "yes" if exported symbols are required.
27352 always_export_symbols=$always_export_symbols
27354 # The commands to list exported symbols.
27355 export_symbols_cmds=$lt_export_symbols_cmds
27357 # Symbols that should not be listed in the preloaded symbols.
27358 exclude_expsyms=$lt_exclude_expsyms
27360 # Symbols that must always be exported.
27361 include_expsyms=$lt_include_expsyms
27363 # Commands necessary for linking programs (against libraries) with templates.
27364 prelink_cmds=$lt_prelink_cmds
27366 # Specify filename containing input files.
27367 file_list_spec=$lt_file_list_spec
27369 # How to hardcode a shared library path into an executable.
27370 hardcode_action=$hardcode_action
27372 # The directories searched by this compiler when creating a shared library.
27373 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27375 # Dependencies to place before and after the objects being linked to
27376 # create a shared library.
27377 predep_objects=$lt_predep_objects
27378 postdep_objects=$lt_postdep_objects
27379 predeps=$lt_predeps
27380 postdeps=$lt_postdeps
27382 # The library search path used internally by the compiler when linking
27383 # a shared library.
27384 compiler_lib_search_path=$lt_compiler_lib_search_path
27386 # ### END LIBTOOL CONFIG
27392 cat <<\_LT_EOF >> "$cfgfile"
27393 # AIX sometimes has problems with the GCC collect2 program. For some
27394 # reason, if we set the COLLECT_NAMES environment variable, the problems
27395 # vanish in a puff of smoke.
27396 if test "X${COLLECT_NAMES+set}" != Xset; then
27398 export COLLECT_NAMES
27405 ltmain="$ac_aux_dir/ltmain.sh"
27408 # We use sed instead of cat because bash on DJGPP gets confused if
27409 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27410 # text mode, it properly converts lines to CR/LF. This bash problem
27411 # is reportedly fixed, but why not run on old versions too?
27412 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27413 || (rm -f "$cfgfile"; exit 1)
27417 cat << \_LT_EOF >> "$cfgfile"
27419 # func_dirname file append nondir_replacement
27420 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27421 # otherwise set result to NONDIR_REPLACEMENT.
27425 */*) func_dirname_result="${1%/*}${2}" ;;
27426 * ) func_dirname_result="${3}" ;;
27430 # func_basename file
27433 func_basename_result="${1##*/}"
27436 # func_dirname_and_basename file append nondir_replacement
27437 # perform func_basename and func_dirname in a single function
27439 # dirname: Compute the dirname of FILE. If nonempty,
27440 # add APPEND to the result, otherwise set result
27441 # to NONDIR_REPLACEMENT.
27442 # value returned in "$func_dirname_result"
27443 # basename: Compute filename of FILE.
27444 # value retuned in "$func_basename_result"
27445 # Implementation must be kept synchronized with func_dirname
27446 # and func_basename. For efficiency, we do not delegate to
27447 # those functions but instead duplicate the functionality here.
27448 func_dirname_and_basename ()
27451 */*) func_dirname_result="${1%/*}${2}" ;;
27452 * ) func_dirname_result="${3}" ;;
27454 func_basename_result="${1##*/}"
27457 # func_stripname prefix suffix name
27458 # strip PREFIX and SUFFIX off of NAME.
27459 # PREFIX and SUFFIX must not contain globbing or regex special
27460 # characters, hashes, percent signs, but SUFFIX may contain a leading
27461 # dot (in which case that matches only a dot).
27464 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27465 # positional parameters, so assign one to ordinary parameter first.
27466 func_stripname_result=${3}
27467 func_stripname_result=${func_stripname_result#"${1}"}
27468 func_stripname_result=${func_stripname_result%"${2}"}
27474 func_opt_split_opt=${1%%=*}
27475 func_opt_split_arg=${1#*=}
27482 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27483 *) func_lo2o_result=${1} ;;
27487 # func_xform libobj-or-source
27490 func_xform_result=${1%.*}.lo
27493 # func_arith arithmetic-term...
27496 func_arith_result=$(( $* ))
27500 # STRING may not start with a hyphen.
27503 func_len_result=${#1}
27508 *) # Bourne compatible functions.
27509 cat << \_LT_EOF >> "$cfgfile"
27511 # func_dirname file append nondir_replacement
27512 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27513 # otherwise set result to NONDIR_REPLACEMENT.
27516 # Extract subdirectory from the argument.
27517 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27518 if test "X$func_dirname_result" = "X${1}"; then
27519 func_dirname_result="${3}"
27521 func_dirname_result="$func_dirname_result${2}"
27525 # func_basename file
27528 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27532 # func_stripname prefix suffix name
27533 # strip PREFIX and SUFFIX off of NAME.
27534 # PREFIX and SUFFIX must not contain globbing or regex special
27535 # characters, hashes, percent signs, but SUFFIX may contain a leading
27536 # dot (in which case that matches only a dot).
27537 # func_strip_suffix prefix name
27541 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27542 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27547 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27548 my_sed_long_arg='1s/^-[^=]*=//'
27553 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27554 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27560 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27563 # func_xform libobj-or-source
27566 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27569 # func_arith arithmetic-term...
27572 func_arith_result=`expr "$@"`
27576 # STRING may not start with a hyphen.
27579 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27585 case $lt_shell_append in
27587 cat << \_LT_EOF >> "$cfgfile"
27589 # func_append var value
27590 # Append VALUE to the end of shell variable VAR.
27598 cat << \_LT_EOF >> "$cfgfile"
27600 # func_append var value
27601 # Append VALUE to the end of shell variable VAR.
27612 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27613 || (rm -f "$cfgfile"; exit 1)
27615 mv -f "$cfgfile" "$ofile" ||
27616 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27620 cat <<_LT_EOF >> "$ofile"
27622 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27624 # The linker used to build libraries.
27627 # How to create reloadable object files.
27628 reload_flag=$lt_reload_flag_CXX
27629 reload_cmds=$lt_reload_cmds_CXX
27631 # Commands used to build an old-style archive.
27632 old_archive_cmds=$lt_old_archive_cmds_CXX
27634 # A language specific compiler.
27635 CC=$lt_compiler_CXX
27637 # Is the compiler the GNU compiler?
27640 # Compiler flag to turn off builtin functions.
27641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27643 # How to pass a linker flag through the compiler.
27644 wl=$lt_lt_prog_compiler_wl_CXX
27646 # Additional compiler flags for building library objects.
27647 pic_flag=$lt_lt_prog_compiler_pic_CXX
27649 # Compiler flag to prevent dynamic linking.
27650 link_static_flag=$lt_lt_prog_compiler_static_CXX
27652 # Does compiler simultaneously support -c and -o options?
27653 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27655 # Whether or not to add -lc for building shared libraries.
27656 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27658 # Whether or not to disallow shared libs when runtime libs are static.
27659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27661 # Compiler flag to allow reflexive dlopens.
27662 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27664 # Compiler flag to generate shared objects directly from archives.
27665 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27667 # Whether the compiler copes with passing no objects directly.
27668 compiler_needs_object=$lt_compiler_needs_object_CXX
27670 # Create an old-style archive from a shared archive.
27671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27673 # Create a temporary old-style archive to link instead of a shared archive.
27674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27676 # Commands used to build a shared archive.
27677 archive_cmds=$lt_archive_cmds_CXX
27678 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27680 # Commands used to build a loadable module if different from building
27681 # a shared archive.
27682 module_cmds=$lt_module_cmds_CXX
27683 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27685 # Whether we are building with GNU ld or not.
27686 with_gnu_ld=$lt_with_gnu_ld_CXX
27688 # Flag that allows shared libraries with undefined symbols to be built.
27689 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27691 # Flag that enforces no undefined symbols.
27692 no_undefined_flag=$lt_no_undefined_flag_CXX
27694 # Flag to hardcode \$libdir into a binary during linking.
27695 # This must work even if \$libdir does not exist
27696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27698 # If ld is used when linking, flag to hardcode \$libdir into a binary
27699 # during linking. This must work even if \$libdir does not exist.
27700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27702 # Whether we need a single "-rpath" flag with a separated argument.
27703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27706 # DIR into the resulting binary.
27707 hardcode_direct=$hardcode_direct_CXX
27709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27710 # DIR into the resulting binary and the resulting library dependency is
27711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27712 # library is relocated.
27713 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27716 # into the resulting binary.
27717 hardcode_minus_L=$hardcode_minus_L_CXX
27719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27720 # into the resulting binary.
27721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27723 # Set to "yes" if building a shared library automatically hardcodes DIR
27724 # into the library and all subsequent libraries and executables linked
27726 hardcode_automatic=$hardcode_automatic_CXX
27728 # Set to yes if linker adds runtime paths of dependent libraries
27729 # to runtime path list.
27730 inherit_rpath=$inherit_rpath_CXX
27732 # Whether libtool must link a program against all its dependency libraries.
27733 link_all_deplibs=$link_all_deplibs_CXX
27735 # Fix the shell variable \$srcfile for the compiler.
27736 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27738 # Set to "yes" if exported symbols are required.
27739 always_export_symbols=$always_export_symbols_CXX
27741 # The commands to list exported symbols.
27742 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27744 # Symbols that should not be listed in the preloaded symbols.
27745 exclude_expsyms=$lt_exclude_expsyms_CXX
27747 # Symbols that must always be exported.
27748 include_expsyms=$lt_include_expsyms_CXX
27750 # Commands necessary for linking programs (against libraries) with templates.
27751 prelink_cmds=$lt_prelink_cmds_CXX
27753 # Specify filename containing input files.
27754 file_list_spec=$lt_file_list_spec_CXX
27756 # How to hardcode a shared library path into an executable.
27757 hardcode_action=$hardcode_action_CXX
27759 # The directories searched by this compiler when creating a shared library.
27760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27762 # Dependencies to place before and after the objects being linked to
27763 # create a shared library.
27764 predep_objects=$lt_predep_objects_CXX
27765 postdep_objects=$lt_postdep_objects_CXX
27766 predeps=$lt_predeps_CXX
27767 postdeps=$lt_postdeps_CXX
27769 # The library search path used internally by the compiler when linking
27770 # a shared library.
27771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27773 # ### END LIBTOOL TAG CONFIG: CXX
27777 cat <<_LT_EOF >> "$ofile"
27779 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27781 # The linker used to build libraries.
27784 # How to create reloadable object files.
27785 reload_flag=$lt_reload_flag_GCJ
27786 reload_cmds=$lt_reload_cmds_GCJ
27788 # Commands used to build an old-style archive.
27789 old_archive_cmds=$lt_old_archive_cmds_GCJ
27791 # A language specific compiler.
27792 CC=$lt_compiler_GCJ
27794 # Is the compiler the GNU compiler?
27797 # Compiler flag to turn off builtin functions.
27798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27800 # How to pass a linker flag through the compiler.
27801 wl=$lt_lt_prog_compiler_wl_GCJ
27803 # Additional compiler flags for building library objects.
27804 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27806 # Compiler flag to prevent dynamic linking.
27807 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27809 # Does compiler simultaneously support -c and -o options?
27810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27812 # Whether or not to add -lc for building shared libraries.
27813 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27815 # Whether or not to disallow shared libs when runtime libs are static.
27816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27818 # Compiler flag to allow reflexive dlopens.
27819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27821 # Compiler flag to generate shared objects directly from archives.
27822 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27824 # Whether the compiler copes with passing no objects directly.
27825 compiler_needs_object=$lt_compiler_needs_object_GCJ
27827 # Create an old-style archive from a shared archive.
27828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27830 # Create a temporary old-style archive to link instead of a shared archive.
27831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27833 # Commands used to build a shared archive.
27834 archive_cmds=$lt_archive_cmds_GCJ
27835 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27837 # Commands used to build a loadable module if different from building
27838 # a shared archive.
27839 module_cmds=$lt_module_cmds_GCJ
27840 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27842 # Whether we are building with GNU ld or not.
27843 with_gnu_ld=$lt_with_gnu_ld_GCJ
27845 # Flag that allows shared libraries with undefined symbols to be built.
27846 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27848 # Flag that enforces no undefined symbols.
27849 no_undefined_flag=$lt_no_undefined_flag_GCJ
27851 # Flag to hardcode \$libdir into a binary during linking.
27852 # This must work even if \$libdir does not exist
27853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27855 # If ld is used when linking, flag to hardcode \$libdir into a binary
27856 # during linking. This must work even if \$libdir does not exist.
27857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27859 # Whether we need a single "-rpath" flag with a separated argument.
27860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27863 # DIR into the resulting binary.
27864 hardcode_direct=$hardcode_direct_GCJ
27866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27867 # DIR into the resulting binary and the resulting library dependency is
27868 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27869 # library is relocated.
27870 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27872 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27873 # into the resulting binary.
27874 hardcode_minus_L=$hardcode_minus_L_GCJ
27876 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27877 # into the resulting binary.
27878 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27880 # Set to "yes" if building a shared library automatically hardcodes DIR
27881 # into the library and all subsequent libraries and executables linked
27883 hardcode_automatic=$hardcode_automatic_GCJ
27885 # Set to yes if linker adds runtime paths of dependent libraries
27886 # to runtime path list.
27887 inherit_rpath=$inherit_rpath_GCJ
27889 # Whether libtool must link a program against all its dependency libraries.
27890 link_all_deplibs=$link_all_deplibs_GCJ
27892 # Fix the shell variable \$srcfile for the compiler.
27893 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27895 # Set to "yes" if exported symbols are required.
27896 always_export_symbols=$always_export_symbols_GCJ
27898 # The commands to list exported symbols.
27899 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27901 # Symbols that should not be listed in the preloaded symbols.
27902 exclude_expsyms=$lt_exclude_expsyms_GCJ
27904 # Symbols that must always be exported.
27905 include_expsyms=$lt_include_expsyms_GCJ
27907 # Commands necessary for linking programs (against libraries) with templates.
27908 prelink_cmds=$lt_prelink_cmds_GCJ
27910 # Specify filename containing input files.
27911 file_list_spec=$lt_file_list_spec_GCJ
27913 # How to hardcode a shared library path into an executable.
27914 hardcode_action=$hardcode_action_GCJ
27916 # The directories searched by this compiler when creating a shared library.
27917 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27919 # Dependencies to place before and after the objects being linked to
27920 # create a shared library.
27921 predep_objects=$lt_predep_objects_GCJ
27922 postdep_objects=$lt_postdep_objects_GCJ
27923 predeps=$lt_predeps_GCJ
27924 postdeps=$lt_postdeps_GCJ
27926 # The library search path used internally by the compiler when linking
27927 # a shared library.
27928 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27930 # ### END LIBTOOL TAG CONFIG: GCJ
27934 "scripts/jar":F) chmod +x scripts/jar ;;
27942 ac_clean_files=$ac_clean_files_save
27944 test $ac_write_fail = 0 ||
27945 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27948 # configure is writing to config.log, and then calls config.status.
27949 # config.status does its own redirection, appending to config.log.
27950 # Unfortunately, on DOS this fails, as config.log is still kept open
27951 # by configure, so config.status won't be able to write to it; its
27952 # output is simply discarded. So we exec the FD to /dev/null,
27953 # effectively closing config.log, so it can be properly (re)opened and
27954 # appended to by config.status. When coming back to configure, we
27955 # need to make the FD available again.
27956 if test "$no_create" != yes; then
27958 ac_config_status_args=
27959 test "$silent" = yes &&
27960 ac_config_status_args="$ac_config_status_args --quiet"
27962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27965 # would make configure fail if this is the last instruction.
27966 $ac_cs_success || as_fn_exit $?
27970 # CONFIG_SUBDIRS section.
27972 if test "$no_recursion" != yes; then
27974 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27975 # so they do not pile up.
27976 ac_sub_configure_args=
27978 eval "set x $ac_configure_args"
27982 if test -n "$ac_prev"; then
27987 -cache-file | --cache-file | --cache-fil | --cache-fi \
27988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27989 ac_prev=cache_file ;;
27990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27994 --config-cache | -C)
27996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28004 --disable-option-checking)
28008 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28010 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28014 # Always prepend --prefix to ensure using the same prefix
28015 # in subdir configurations.
28016 ac_arg="--prefix=$prefix"
28018 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28020 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28023 if test "$silent" = yes; then
28024 ac_sub_configure_args="--silent $ac_sub_configure_args"
28027 # Always prepend --disable-option-checking to silence warnings, since
28028 # different subdirs can have different --enable and --with options.
28029 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28032 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28034 # Do not complain, so a configure script can configure whichever
28035 # parts of a large source tree are present.
28036 test -d "$srcdir/$ac_dir" || continue
28038 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28039 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28040 $as_echo "$ac_msg" >&6
28041 as_dir="$ac_dir"; as_fn_mkdir_p
28045 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28047 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28048 # A ".." for each directory in $ac_dir_suffix.
28049 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28050 case $ac_top_builddir_sub in
28051 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28052 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28055 ac_abs_top_builddir=$ac_pwd
28056 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28057 # for backward compatibility:
28058 ac_top_builddir=$ac_top_build_prefix
28061 .) # We are building in place.
28063 ac_top_srcdir=$ac_top_builddir_sub
28064 ac_abs_top_srcdir=$ac_pwd ;;
28065 [\\/]* | ?:[\\/]* ) # Absolute name.
28066 ac_srcdir=$srcdir$ac_dir_suffix;
28067 ac_top_srcdir=$srcdir
28068 ac_abs_top_srcdir=$srcdir ;;
28069 *) # Relative name.
28070 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28071 ac_top_srcdir=$ac_top_build_prefix$srcdir
28072 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28074 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28079 # Check for guested configure; otherwise get Cygnus style configure.
28080 if test -f "$ac_srcdir/configure.gnu"; then
28081 ac_sub_configure=$ac_srcdir/configure.gnu
28082 elif test -f "$ac_srcdir/configure"; then
28083 ac_sub_configure=$ac_srcdir/configure
28084 elif test -f "$ac_srcdir/configure.in"; then
28085 # This should be Cygnus configure.
28086 ac_sub_configure=$ac_aux_dir/configure
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28089 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28093 # The recursion is here.
28094 if test -n "$ac_sub_configure"; then
28095 # Make the cache file name correct relative to the subdirectory.
28096 case $cache_file in
28097 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28098 *) # Relative name.
28099 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28103 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28104 # The eval makes quoting arguments work.
28105 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28106 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28107 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28113 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28115 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}