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
648 INSTALL_BINARIES_FALSE
649 INSTALL_BINARIES_TRUE
650 NEEDS_DATA_START_FALSE
651 NEEDS_DATA_START_TRUE
682 USING_NO_THREADS_FALSE
683 USING_NO_THREADS_TRUE
684 USING_WIN32_THREADS_FALSE
685 USING_WIN32_THREADS_TRUE
686 USING_POSIX_THREADS_FALSE
687 USING_POSIX_THREADS_TRUE
708 extra_ldflags_libjava
717 USING_DARWIN_CRT_FALSE
718 USING_DARWIN_CRT_TRUE
719 USING_POSIX_PLATFORM_FALSE
720 USING_POSIX_PLATFORM_TRUE
721 USING_WIN32_PLATFORM_FALSE
722 USING_WIN32_PLATFORM_TRUE
729 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
730 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
731 SUPPRESS_LIBGCJ_BC_FALSE
732 SUPPRESS_LIBGCJ_BC_TRUE
736 INSTALL_ECJ_JAR_FALSE
781 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
783 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
784 LIBGCJ_SUBLIB_LTFLAGS
789 MAINTAINER_MODE_FALSE
819 INSTALL_STRIP_PROGRAM
844 JAVA_MAINTAINER_MODE_FALSE
845 JAVA_MAINTAINER_MODE_TRUE
896 program_transform_name
909 enable_option_checking
915 enable_version_specific_runtime_libs
916 enable_browser_plugin
920 enable_java_maintainer_mode
921 enable_dependency_tracking
922 enable_maintainer_mode
923 enable_libgcj_sublibs
933 enable_getenv_properties
934 enable_hash_synchronization
938 enable_reduced_reflection
942 enable_sjlj_exceptions
953 with_system_libunwind
955 enable_aot_compile_rpm
965 ac_precious_vars='build_alias
979 ac_subdirs_all='classpath libltdl'
981 # Initialize some variables set by options.
983 ac_init_version=false
984 ac_unrecognized_opts=
986 # The variables have the same names as the options, with
987 # dashes changed to underlines.
995 program_transform_name=s,x,x,
1003 # Installation directory options.
1004 # These are left unexpanded so users can "make install exec_prefix=/foo"
1005 # and all the variables that are supposed to be based on exec_prefix
1006 # by default will actually change.
1007 # Use braces instead of parens because sh, perl, etc. also accept them.
1008 # (The list follows the same order as the GNU Coding Standards.)
1009 bindir='${exec_prefix}/bin'
1010 sbindir='${exec_prefix}/sbin'
1011 libexecdir='${exec_prefix}/libexec'
1012 datarootdir='${prefix}/share'
1013 datadir='${datarootdir}'
1014 sysconfdir='${prefix}/etc'
1015 sharedstatedir='${prefix}/com'
1016 localstatedir='${prefix}/var'
1017 includedir='${prefix}/include'
1018 oldincludedir='/usr/include'
1019 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020 infodir='${datarootdir}/info'
1025 libdir='${exec_prefix}/lib'
1026 localedir='${datarootdir}/locale'
1027 mandir='${datarootdir}/man'
1033 # If the previous option needs an argument, assign it.
1034 if test -n "$ac_prev"; then
1035 eval $ac_prev=\$ac_option
1041 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045 # Accept the important Cygnus configure options, so we can diagnose typos.
1047 case $ac_dashdash$ac_option in
1051 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1054 bindir=$ac_optarg ;;
1056 -build | --build | --buil | --bui | --bu)
1057 ac_prev=build_alias ;;
1058 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1059 build_alias=$ac_optarg ;;
1061 -cache-file | --cache-file | --cache-fil | --cache-fi \
1062 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1063 ac_prev=cache_file ;;
1064 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1065 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1066 cache_file=$ac_optarg ;;
1068 --config-cache | -C)
1069 cache_file=config.cache ;;
1071 -datadir | --datadir | --datadi | --datad)
1073 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1074 datadir=$ac_optarg ;;
1076 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1077 | --dataroo | --dataro | --datar)
1078 ac_prev=datarootdir ;;
1079 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1080 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1081 datarootdir=$ac_optarg ;;
1083 -disable-* | --disable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1097 eval enable_$ac_useropt=no ;;
1099 -docdir | --docdir | --docdi | --doc | --do)
1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102 docdir=$ac_optarg ;;
1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107 dvidir=$ac_optarg ;;
1109 -enable-* | --enable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid feature name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 htmldir=$ac_optarg ;;
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1168 -libdir | --libdir | --libdi | --libd)
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1259 -psdir | --psdir | --psdi | --psd | --ps)
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 sbindir=$ac_optarg ;;
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 sharedstatedir=$ac_optarg ;;
1285 -site | --site | --sit)
1287 -site=* | --site=* | --sit=*)
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1327 eval with_$ac_useropt=\$ac_optarg ;;
1329 -without-* | --without-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1343 eval with_$ac_useropt=no ;;
1346 # Obsolete; use --with-x.
1349 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350 | --x-incl | --x-inc | --x-in | --x-i)
1351 ac_prev=x_includes ;;
1352 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354 x_includes=$ac_optarg ;;
1356 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358 ac_prev=x_libraries ;;
1359 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361 x_libraries=$ac_optarg ;;
1363 -*) as_fn_error "unrecognized option: \`$ac_option'
1364 Try \`$0 --help' for more information."
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 case $ac_envvar in #(
1371 '' | [0-9]* | *[!_$as_cr_alnum]* )
1372 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1374 eval $ac_envvar=\$ac_optarg
1375 export $ac_envvar ;;
1378 # FIXME: should be removed in autoconf 3.0.
1379 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1380 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1382 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388 if test -n "$ac_prev"; then
1389 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390 as_fn_error "missing argument to $ac_option"
1393 if test -n "$ac_unrecognized_opts"; then
1394 case $enable_option_checking in
1396 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1397 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401 # Check all directory arguments for consistency.
1402 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 datadir sysconfdir sharedstatedir localstatedir includedir \
1404 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405 libdir localedir mandir
1407 eval ac_val=\$$ac_var
1408 # Remove trailing slashes.
1411 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412 eval $ac_var=\$ac_val;;
1414 # Be sure to have absolute directory names.
1416 [\\/$]* | ?:[\\/]* ) continue;;
1417 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1422 # There might be people who depend on the old broken behavior: `$host'
1423 # used to hold the argument of --host etc.
1424 # FIXME: To remove some day.
1427 target=$target_alias
1429 # FIXME: To remove some day.
1430 if test "x$host_alias" != x; then
1431 if test "x$build_alias" = x; then
1432 cross_compiling=maybe
1433 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1434 If a cross compiler is detected then cross compile mode will be used." >&2
1435 elif test "x$build_alias" != "x$host_alias"; then
1441 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443 test "$silent" = yes && exec 6>/dev/null
1446 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447 ac_ls_di=`ls -di .` &&
1448 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449 as_fn_error "working directory cannot be determined"
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 as_fn_error "pwd does not report name of working directory"
1454 # Find the source files, if location was not specified.
1455 if test -z "$srcdir"; then
1456 ac_srcdir_defaulted=yes
1457 # Try the directory containing this script, then the parent directory.
1458 ac_confdir=`$as_dirname -- "$as_myself" ||
1459 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460 X"$as_myself" : 'X\(//\)[^/]' \| \
1461 X"$as_myself" : 'X\(//\)$' \| \
1462 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463 $as_echo X"$as_myself" |
1464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1486 ac_srcdir_defaulted=no
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1490 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1492 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506 for ac_var in $ac_precious_vars; do
1507 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_${ac_var}_value=\$${ac_var}
1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 # Report the --help message.
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1520 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1527 Defaults for the options are specified in brackets.
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1551 For better control, use the options below.
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1578 --program-prefix=PREFIX prepend PREFIX to installed program names
1579 --program-suffix=SUFFIX append SUFFIX to installed program names
1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1583 --x-includes=DIR X include files are in DIR
1584 --x-libraries=DIR X library files are in DIR
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1589 --target=TARGET configure for building compilers for TARGET [HOST]
1593 if test -n "$ac_init_help"; then
1594 case $ac_init_help in
1595 short | recursive ) echo "Configuration of libjava version-unused:";;
1600 --disable-option-checking ignore unrecognized --enable/--with options
1601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1603 --enable-multilib build many library versions (default)
1604 --enable-version-specific-runtime-libs
1605 specify that runtime libraries should be installed
1606 in a compiler-specific directory
1607 --enable-browser-plugin build gcjwebplugin web browser plugin
1608 --enable-gconf-peer compile GConf native peers for util.preferences
1609 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1611 --enable-java-maintainer-mode
1612 allow rebuilding of .class and .h files
1613 --disable-dependency-tracking speeds up one-time build
1614 --enable-dependency-tracking do not reject slow dependency extractors
1615 --enable-maintainer-mode enable make rules and dependencies not useful
1616 (and sometimes confusing) to the casual installer
1617 --enable-libgcj-sublibs build libgcj as many sub-libraries
1618 --enable-libgcj-debug enable runtime debugging code
1619 --enable-java-awt list of AWT peer implementations to be built
1620 --enable-shared[=PKGS] build shared libraries [default=yes]
1621 --enable-static[=PKGS] build static libraries [default=yes]
1622 --enable-fast-install[=PKGS]
1623 optimize for fast installation [default=yes]
1624 --disable-libtool-lock avoid locking (might break parallel builds)
1625 --disable-getenv-properties
1626 don't set system properties from GCJ_PROPERTIES
1627 --enable-hash-synchronization
1628 use global hash table for monitor locks
1629 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1631 --enable-reduced-reflection
1632 enable or disable(default) -freduced-reflection when
1633 building portions of libgcj
1634 --enable-gc-debug include full support for pointer backtracing etc.
1635 --enable-interpreter enable interpreter
1636 --enable-sjlj-exceptions
1637 force use of builtin_setjmp for exceptions
1638 --disable-java-net disable java.net
1639 --disable-jvmpi disable JVMPI support
1640 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1641 --disable-rpath do not hardcode runtime library paths
1642 --enable-tls Use thread-local storage [default=yes]
1643 --enable-aot-compile-rpm
1644 enable installation of aot-compile-rpm [default=no]
1645 --enable-java-home create a standard JDK-style directory layout in the
1646 install tree [default=no]
1649 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1650 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1651 --with-build-libsubdir=DIR Directory where to find libraries for build system
1652 --with-target-subdir=SUBDIR
1653 configure in a subdirectory
1654 --with-cross-host=HOST configure with a cross compiler from HOST
1655 --with-newlib configure with newlib
1656 --with-antlr-jar=file Use ANTLR from the specified jar file
1657 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1658 --with-pic try to use only PIC/non-PIC objects [default=use
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-ecj-jar=FILE use preinstalled ecj jar
1662 --with-java-home=DIRECTORY
1663 value of java.home system property
1664 --with-win32-nlsapi=ansi or unicows or unicode
1665 native MinGW libgcj Win32 OS API (default is ansi)
1666 --without-libffi don't use libffi
1667 --with-ecos enable runtime eCos target support
1668 --with-system-zlib use installed libz
1669 --with-x use the X Window System
1670 --with-gnu-ld assume the C compiler uses GNU ld default=no
1671 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1672 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1673 --with-system-libunwind use installed libunwind
1674 --with-python-dir the location to install Python modules. This path
1675 should NOT include the prefix.
1676 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1677 --with-arch-directory the arch directory under jre/lib (defaults to
1679 --with-os-directory the os directory under include (defaults to
1681 --with-origin-name the JPackage origin name of this package (default is
1683 --with-arch-suffix the arch directory suffix (default is the empty
1685 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1686 --with-jvm-jar-dir where to install jars (default is
1687 ${prefix}/lib/jvm-exports)
1689 Some influential environment variables:
1690 CC C compiler command
1691 CFLAGS C compiler flags
1692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1693 nonstandard directory <lib dir>
1694 LIBS libraries to pass to the linker, e.g. -l<library>
1695 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1696 you have headers in a nonstandard directory <include dir>
1697 CXX C++ compiler command
1698 CXXFLAGS C++ compiler flags
1700 CXXCPP C++ preprocessor
1701 XMKMF Path to xmkmf, Makefile generator for X Window System
1703 Use these variables to override the choices made by `configure' or to help
1704 it to find libraries and programs with nonstandard names/locations.
1706 Report bugs to the package provider.
1711 if test "$ac_init_help" = "recursive"; then
1712 # If there are subdirs, report their specific --help.
1713 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714 test -d "$ac_dir" ||
1715 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1723 # A ".." for each directory in $ac_dir_suffix.
1724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1725 case $ac_top_builddir_sub in
1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1736 .) # We are building in place.
1738 ac_top_srcdir=$ac_top_builddir_sub
1739 ac_abs_top_srcdir=$ac_pwd ;;
1740 [\\/]* | ?:[\\/]* ) # Absolute name.
1741 ac_srcdir=$srcdir$ac_dir_suffix;
1742 ac_top_srcdir=$srcdir
1743 ac_abs_top_srcdir=$srcdir ;;
1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746 ac_top_srcdir=$ac_top_build_prefix$srcdir
1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751 cd "$ac_dir" || { ac_status=$?; continue; }
1752 # Check for guested configure.
1753 if test -f "$ac_srcdir/configure.gnu"; then
1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756 elif test -f "$ac_srcdir/configure"; then
1758 $SHELL "$ac_srcdir/configure" --help=recursive
1760 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762 cd "$ac_pwd" || { ac_status=$?; break; }
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1769 libjava configure version-unused
1770 generated by GNU Autoconf 2.64
1772 Copyright (C) 2009 Free Software Foundation, Inc.
1773 This configure script is free software; the Free Software Foundation
1774 gives unlimited permission to copy, distribute and modify it.
1779 ## ------------------------ ##
1780 ## Autoconf initialization. ##
1781 ## ------------------------ ##
1783 # ac_fn_c_try_compile LINENO
1784 # --------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext
1790 if { { ac_try="$ac_compile"
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_compile") 2>conftest.err
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest.$ac_objext; then :
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 } # ac_fn_c_try_compile
1821 # ac_fn_cxx_try_compile LINENO
1822 # ----------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 } # ac_fn_cxx_try_compile
1859 # ac_fn_c_try_link LINENO
1860 # -----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 $as_test_x conftest$ac_exeext
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897 # interfere with the next link command; also delete a directory that is
1898 # left behind by Apple's compiler. We do this before executing the actions.
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 } # ac_fn_c_try_link
1905 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists and can be compiled using the include files in
1908 # INCLUDES, setting the cache variable VAR accordingly.
1909 ac_fn_c_check_header_compile ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1922 if ac_fn_c_try_compile "$LINENO"; then :
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 } # ac_fn_c_check_header_compile
1936 # ac_fn_c_try_cpp LINENO
1937 # ----------------------
1938 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_cpp conftest.$ac_ext"
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } >/dev/null && {
1958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 ac_retval=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 # ac_fn_c_check_func LINENO FUNC VAR
2016 # ----------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_c_check_func ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 if test x$gcc_no_link = xyes; then
2027 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2033 #define $2 innocuous_$2
2035 /* System header to define __stub macros and hopefully few prototypes,
2036 which can conflict with char $2 (); below.
2037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2038 <limits.h> exists even on freestanding compilers. */
2041 # include <limits.h>
2043 # include <assert.h>
2048 /* Override any GCC internal prototype to avoid an error.
2049 Use char because int might match the return type of a GCC
2050 builtin and then its argument prototype would still apply. */
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined __stub_$2 || defined __stub___$2
2070 if ac_fn_c_try_link "$LINENO"; then :
2075 rm -f core conftest.err conftest.$ac_objext \
2076 conftest$ac_exeext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 } # ac_fn_c_check_func
2085 # ac_fn_cxx_try_cpp LINENO
2086 # ------------------------
2087 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088 ac_fn_cxx_try_cpp ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } >/dev/null && {
2107 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2108 test ! -s conftest.err
2112 $as_echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120 } # ac_fn_cxx_try_cpp
2122 # ac_fn_cxx_try_link LINENO
2123 # -------------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded.
2125 ac_fn_cxx_try_link ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext conftest$ac_exeext
2129 if { { ac_try="$ac_link"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>conftest.err
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_cxx_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest$ac_exeext && {
2148 test "$cross_compiling" = yes ||
2149 $as_test_x conftest$ac_exeext
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2158 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2159 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2160 # interfere with the next link command; also delete a directory that is
2161 # left behind by Apple's compiler. We do this before executing the actions.
2162 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_cxx_try_link
2168 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2169 # -------------------------------------------------------
2170 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2171 # the include files in INCLUDES and setting the cache variable VAR
2173 ac_fn_c_check_header_mongrel ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180 $as_echo_n "(cached) " >&6
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2186 # Is the header compilable?
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2188 $as_echo_n "checking $2 usability... " >&6; }
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_header_compiler=yes
2197 ac_header_compiler=no
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2201 $as_echo "$ac_header_compiler" >&6; }
2203 # Is the header present?
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2205 $as_echo_n "checking $2 presence... " >&6; }
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 if ac_fn_c_try_cpp "$LINENO"; then :
2211 ac_header_preproc=yes
2213 ac_header_preproc=no
2215 rm -f conftest.err conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2217 $as_echo "$ac_header_preproc" >&6; }
2219 # So? What about this header?
2220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2223 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2229 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2231 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2233 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2235 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2245 eval "$3=\$ac_header_compiler"
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2253 } # ac_fn_c_check_header_mongrel
2255 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2256 # ----------------------------------------------------
2257 # Tries to find if the field MEMBER exists in type AGGR, after including
2258 # INCLUDES, setting cache variable VAR accordingly.
2259 ac_fn_c_check_member ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2263 $as_echo_n "checking for $2.$3... " >&6; }
2264 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2265 $as_echo_n "(cached) " >&6
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2280 if ac_fn_c_try_compile "$LINENO"; then :
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2290 if (sizeof ac_aggr.$3)
2296 if ac_fn_c_try_compile "$LINENO"; then :
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310 } # ac_fn_c_check_member
2312 # ac_fn_c_check_decl LINENO SYMBOL VAR
2313 # ------------------------------------
2314 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2315 ac_fn_c_check_decl ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2319 $as_echo_n "checking whether $2 is declared... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321 $as_echo_n "(cached) " >&6
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2337 if ac_fn_c_try_compile "$LINENO"; then :
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 } # ac_fn_c_check_decl
2351 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2352 # --------------------------------------------
2353 # Tries to find the compile-time value of EXPR in a program that includes
2354 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2356 ac_fn_c_compute_int ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 if test "$cross_compiling" = yes; then
2360 # Depending upon the size, compute the lo and hi bounds.
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2367 static int test_array [1 - 2 * !(($2) >= 0)];
2374 if ac_fn_c_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2383 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_hi=$ac_mid; break
2393 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2394 if test $ac_lo -le $ac_mid; then
2398 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2409 static int test_array [1 - 2 * !(($2) < 0)];
2416 if ac_fn_c_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2425 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_lo=$ac_mid; break
2435 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2436 if test $ac_mid -le $ac_hi; then
2440 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 # Binary search between lo and hi bounds.
2451 while test "x$ac_lo" != "x$ac_hi"; do
2452 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2459 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466 if ac_fn_c_try_compile "$LINENO"; then :
2469 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2481 static long int longval () { return $2; }
2482 static unsigned long int ulongval () { return $2; }
2489 FILE *f = fopen ("conftest.val", "w");
2494 long int i = longval ();
2497 fprintf (f, "%ld", i);
2501 unsigned long int i = ulongval ();
2504 fprintf (f, "%lu", i);
2506 /* Do not output a trailing newline, as this causes \r\n confusion
2507 on some platforms. */
2508 return ferror (f) || fclose (f) != 0;
2514 if ac_fn_c_try_run "$LINENO"; then :
2515 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2520 conftest.$ac_objext conftest.beam conftest.$ac_ext
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2527 } # ac_fn_c_compute_int
2529 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2530 # -------------------------------------------
2531 # Tests whether TYPE exists after having included INCLUDES, setting cache
2532 # variable VAR accordingly.
2533 ac_fn_c_check_type ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2554 if ac_fn_c_try_compile "$LINENO"; then :
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2567 if ac_fn_c_try_compile "$LINENO"; then :
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 } # ac_fn_c_check_type
2582 cat >config.log <<_ACEOF
2583 This file contains any messages produced by compilers while
2584 running configure, to aid debugging if configure makes a mistake.
2586 It was created by libjava $as_me version-unused, which was
2587 generated by GNU Autoconf 2.64. Invocation command line was
2599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2606 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2608 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2609 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2611 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2612 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2613 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2614 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 $as_echo "PATH: $as_dir"
2639 # Keep a trace of the command line.
2640 # Strip out --no-create and --no-recursion so they do not pile up.
2641 # Strip out --silent because we don't want to record it for future runs.
2642 # Also quote any args containing shell meta-characters.
2643 # Make two passes to allow for proper duplicate-argument suppression.
2647 ac_must_keep_next=false
2653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2655 | -silent | --silent | --silen | --sile | --sil)
2658 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2663 as_fn_append ac_configure_args1 " '$ac_arg'"
2664 if test $ac_must_keep_next = true; then
2665 ac_must_keep_next=false # Got value, back to normal.
2668 *=* | --config-cache | -C | -disable-* | --disable-* \
2669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2671 | -with-* | --with-* | -without-* | --without-* | --x)
2672 case "$ac_configure_args0 " in
2673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2676 -* ) ac_must_keep_next=true ;;
2679 as_fn_append ac_configure_args " '$ac_arg'"
2684 { ac_configure_args0=; unset ac_configure_args0;}
2685 { ac_configure_args1=; unset ac_configure_args1;}
2687 # When interrupted or exit'd, cleanup temporary files, and complete
2688 # config.log. We remove comments because anyway the quotes in there
2689 # would cause problems or look ugly.
2690 # WARNING: Use '\'' to represent an apostrophe within the trap.
2691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2692 trap 'exit_status=$?
2693 # Save into config.log some information that might help in debugging.
2698 ## ---------------- ##
2699 ## Cache variables. ##
2700 ## ---------------- ##
2703 # The following way of writing the cache mishandles newlines in values,
2705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2706 eval ac_val=\$$ac_var
2710 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2711 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2714 _ | IFS | as_nl) ;; #(
2715 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2716 *) { eval $ac_var=; unset $ac_var;} ;;
2721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2722 *${as_nl}ac_space=\ *)
2724 "s/'\''/'\''\\\\'\'''\''/g;
2725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2736 ## ----------------- ##
2737 ## Output variables. ##
2738 ## ----------------- ##
2741 for ac_var in $ac_subst_vars
2743 eval ac_val=\$$ac_var
2745 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2747 $as_echo "$ac_var='\''$ac_val'\''"
2751 if test -n "$ac_subst_files"; then
2753 ## ------------------- ##
2754 ## File substitutions. ##
2755 ## ------------------- ##
2758 for ac_var in $ac_subst_files
2760 eval ac_val=\$$ac_var
2762 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2764 $as_echo "$ac_var='\''$ac_val'\''"
2769 if test -s confdefs.h; then
2779 test "$ac_signal" != 0 &&
2780 $as_echo "$as_me: caught signal $ac_signal"
2781 $as_echo "$as_me: exit $exit_status"
2783 rm -f core *.core core.conftest.* &&
2784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2787 for ac_signal in 1 2 13 15; do
2788 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2793 rm -f -r conftest* confdefs.h
2795 $as_echo "/* confdefs.h */" > confdefs.h
2797 # Predefined preprocessor variables.
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE_NAME "$PACKAGE_NAME"
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_STRING "$PACKAGE_STRING"
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_URL "$PACKAGE_URL"
2824 # Let the site file select an alternate cache file if it wants to.
2825 # Prefer an explicitly selected file to automatically selected ones.
2828 if test -n "$CONFIG_SITE"; then
2829 ac_site_file1=$CONFIG_SITE
2830 elif test "x$prefix" != xNONE; then
2831 ac_site_file1=$prefix/share/config.site
2832 ac_site_file2=$prefix/etc/config.site
2834 ac_site_file1=$ac_default_prefix/share/config.site
2835 ac_site_file2=$ac_default_prefix/etc/config.site
2837 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2839 test "x$ac_site_file" = xNONE && continue
2840 if test -r "$ac_site_file"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2842 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2843 sed 's/^/| /' "$ac_site_file" >&5
2848 if test -r "$cache_file"; then
2849 # Some versions of bash will fail to source /dev/null (special
2850 # files actually), so we avoid doing that.
2851 if test -f "$cache_file"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2853 $as_echo "$as_me: loading cache $cache_file" >&6;}
2855 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2856 *) . "./$cache_file";;
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2861 $as_echo "$as_me: creating cache $cache_file" >&6;}
2865 # Check that the precious variables saved in the cache have kept the same
2867 ac_cache_corrupted=false
2868 for ac_var in $ac_precious_vars; do
2869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2870 eval ac_new_set=\$ac_env_${ac_var}_set
2871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2872 eval ac_new_val=\$ac_env_${ac_var}_value
2873 case $ac_old_set,$ac_new_set in
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2876 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2877 ac_cache_corrupted=: ;;
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2880 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2881 ac_cache_corrupted=: ;;
2884 if test "x$ac_old_val" != "x$ac_new_val"; then
2885 # differences in whitespace do not lead to failure.
2886 ac_old_val_w=`echo x $ac_old_val`
2887 ac_new_val_w=`echo x $ac_new_val`
2888 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2890 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2891 ac_cache_corrupted=:
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2894 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2895 eval $ac_var=\$ac_old_val
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2898 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2900 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2903 # Pass precious variables to config.status.
2904 if test "$ac_new_set" = set; then
2906 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2907 *) ac_arg=$ac_var=$ac_new_val ;;
2909 case " $ac_configure_args " in
2910 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2911 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2915 if $ac_cache_corrupted; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2919 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2920 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2922 ## -------------------- ##
2923 ## Main body of script. ##
2924 ## -------------------- ##
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2941 for ac_t in install-sh install.sh shtool; do
2942 if test -f "$ac_dir/$ac_t"; then
2944 ac_install_sh="$ac_aux_dir/$ac_t -c"
2949 if test -z "$ac_aux_dir"; then
2950 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2953 # These three variables are undocumented and unsupported,
2954 # and are intended to be withdrawn in a future Autoconf release.
2955 # They can cause serious problems if a builder's source tree is in a directory
2956 # whose full name contains unusual characters.
2957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2962 # Make sure we can run config.sub.
2963 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2964 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2967 $as_echo_n "checking build system type... " >&6; }
2968 if test "${ac_cv_build+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2971 ac_build_alias=$build_alias
2972 test "x$ac_build_alias" = x &&
2973 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2974 test "x$ac_build_alias" = x &&
2975 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2976 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2977 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2981 $as_echo "$ac_cv_build" >&6; }
2982 case $ac_cv_build in
2984 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2987 ac_save_IFS=$IFS; IFS='-'
2993 # Remember, the first character of IFS is used to create $*,
2994 # except with old shells:
2997 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3000 case ${build_alias} in
3001 "") build_noncanonical=${build} ;;
3002 *) build_noncanonical=${build_alias} ;;
3005 case ${host_alias} in
3006 "") host_noncanonical=${build_noncanonical} ;;
3007 *) host_noncanonical=${host_alias} ;;
3010 case ${target_alias} in
3011 "") target_noncanonical=${host_noncanonical} ;;
3012 *) target_noncanonical=${target_alias} ;;
3016 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3017 # have matching libraries, they should use host libraries: Makefile.tpl
3018 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3019 # However, they still use the build modules, because the corresponding
3020 # host modules (e.g. bison) are only built for the host when bootstrap
3022 # - build_subdir is where we find build modules, and never changes.
3023 # - build_libsubdir is where we find build libraries, and can be overridden.
3025 # Prefix 'build-' so this never conflicts with target_subdir.
3026 build_subdir="build-${build_noncanonical}"
3028 # Check whether --with-build-libsubdir was given.
3029 if test "${with_build_libsubdir+set}" = set; then :
3030 withval=$with_build_libsubdir; build_libsubdir="$withval"
3032 build_libsubdir="$build_subdir"
3035 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3036 if ( test $srcdir = . && test -d gcc ) \
3037 || test -d $srcdir/../host-${host_noncanonical}; then
3038 host_subdir="host-${host_noncanonical}"
3043 target_subdir=${target_noncanonical}
3046 # We use these options to decide which functions to include.
3048 # Check whether --with-target-subdir was given.
3049 if test "${with_target_subdir+set}" = set; then :
3050 withval=$with_target_subdir;
3054 # We may get other options which we don't document:
3055 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3057 # Find the rest of the source tree framework.
3058 # Default to --enable-multilib
3059 # Check whether --enable-multilib was given.
3060 if test "${enable_multilib+set}" = set; then :
3061 enableval=$enable_multilib; case "$enableval" in
3062 yes) multilib=yes ;;
3064 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3071 # We may get other options which we leave undocumented:
3072 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3073 # See config-ml.in if you want the gory details.
3075 if test "$srcdir" = "."; then
3076 if test "$with_target_subdir" != "."; then
3077 multi_basedir="$srcdir/$with_multisrctop../.."
3079 multi_basedir="$srcdir/$with_multisrctop.."
3082 multi_basedir="$srcdir/.."
3086 # Even if the default multilib is not a cross compilation,
3087 # it may be that some of the other multilibs are.
3088 if test $cross_compiling = no && test $multilib = yes \
3089 && test "x${with_multisubdir}" != x ; then
3090 cross_compiling=maybe
3093 ac_config_commands="$ac_config_commands default-1"
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3097 $as_echo_n "checking host system type... " >&6; }
3098 if test "${ac_cv_host+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test "x$host_alias" = x; then
3102 ac_cv_host=$ac_cv_build
3104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3105 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3110 $as_echo "$ac_cv_host" >&6; }
3113 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3116 ac_save_IFS=$IFS; IFS='-'
3122 # Remember, the first character of IFS is used to create $*,
3123 # except with old shells:
3126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3130 $as_echo_n "checking target system type... " >&6; }
3131 if test "${ac_cv_target+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3134 if test "x$target_alias" = x; then
3135 ac_cv_target=$ac_cv_host
3137 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3138 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3143 $as_echo "$ac_cv_target" >&6; }
3144 case $ac_cv_target in
3146 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3148 target=$ac_cv_target
3149 ac_save_IFS=$IFS; IFS='-'
3155 # Remember, the first character of IFS is used to create $*,
3156 # except with old shells:
3159 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3162 # The aliases save the names the user supplied, while $host etc.
3163 # will get canonicalized.
3164 test -n "$target_alias" &&
3165 test "$program_prefix$program_suffix$program_transform_name" = \
3167 program_prefix=${target_alias}-
3169 case ${build_alias} in
3170 "") build_noncanonical=${build} ;;
3171 *) build_noncanonical=${build_alias} ;;
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3182 # This works around the fact that libtool configuration may change LD
3183 # for this particular configuration, but some shells, instead of
3184 # keeping the changes in LD private, export them just because LD is
3186 ORIGINAL_LD_FOR_MULTILIBS=$LD
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3189 $as_echo_n "checking whether ln -s works... " >&6; }
3191 if test "$LN_S" = "ln -s"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3193 $as_echo "yes" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3196 $as_echo "no, using $LN_S" >&6; }
3200 # This works around an automake problem.
3201 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3205 # Check whether --with-cross-host was given.
3206 if test "${with_cross_host+set}" = set; then :
3207 withval=$with_cross_host;
3212 # Check whether --with-newlib was given.
3213 if test "${with_newlib+set}" = set; then :
3214 withval=$with_newlib;
3218 # Check whether --enable-version-specific-runtime-libs was given.
3219 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3220 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3221 yes) version_specific_libs=yes ;;
3222 no) version_specific_libs=no ;;
3223 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3226 version_specific_libs=no
3231 # Check whether --enable-browser-plugin was given.
3232 if test "${enable_browser_plugin+set}" = set; then :
3233 enableval=$enable_browser_plugin; case "$enableval" in
3234 yes) browser_plugin_enabled=yes ;;
3235 no) browser_plugin_enabled=no ;;
3236 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3239 browser_plugin_enabled=no
3244 # Check whether --enable-gconf-peer was given.
3245 if test "${enable_gconf_peer+set}" = set; then :
3246 enableval=$enable_gconf_peer; case "$enableval" in
3247 yes) gconf_enabled=yes ;;
3248 no) gconf_enabled=no ;;
3249 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3258 # Check whether --with-antlr-jar was given.
3259 if test "${with_antlr_jar+set}" = set; then :
3260 withval=$with_antlr_jar;
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3271 $as_echo_n "checking for antlr.jar... " >&6; }
3272 if test "x$ANTLR_JAR" = x; then
3273 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3274 /usr/share/antlr/lib /usr/share/java /usr/lib;
3276 if test -f "$antlr_lib_home/antlr.jar"; then
3277 # FIXME: version check for antlr needed without using a VM
3278 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3282 if test "x$ANTLR_JAR" = x; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3284 $as_echo "not found" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3287 $as_echo "$ANTLR_JAR" >&6; }
3290 if test -f "${ANTLR_JAR}"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3292 $as_echo "$ANTLR_JAR" >&6; }
3294 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3299 # Check whether --enable-gjdoc was given.
3300 if test "${enable_gjdoc+set}" = set; then :
3301 enableval=$enable_gjdoc; case "${enableval}" in
3302 yes) BUILD_GJDOC=yes ;;
3303 no) BUILD_GJDOC=no ;;
3304 *) BUILD_GJDOC=yes ;;
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3312 $as_echo_n "checking whether to build gjdoc... " >&6; }
3313 if test "x$BUILD_GJDOC" = xmaybe; then
3314 if test -f "${ANTLR_JAR}"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3321 $as_echo "no, antlr.jar not found" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3325 $as_echo "$BUILD_GJDOC" >&6; }
3327 if test "x${BUILD_GJDOC}" = xyes; then
3329 CREATE_GJDOC_FALSE='#'
3331 CREATE_GJDOC_TRUE='#'
3336 # Check whether --enable-java-maintainer-mode was given.
3337 if test "${enable_java_maintainer_mode+set}" = set; then :
3338 enableval=$enable_java_maintainer_mode;
3341 if test "$enable_java_maintainer_mode" = yes; then
3342 JAVA_MAINTAINER_MODE_TRUE=
3343 JAVA_MAINTAINER_MODE_FALSE='#'
3345 JAVA_MAINTAINER_MODE_TRUE='#'
3346 JAVA_MAINTAINER_MODE_FALSE=
3350 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3353 # For libstdc++-v3, -fno-builtin must be present here so that a
3354 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3355 # used in later tests. This may not be necessary in libjava; I don't know.
3356 save_CXXFLAGS="$CXXFLAGS"
3357 CXXFLAGS="$CXXFLAGS -fno-builtin"
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3402 if test -z "$ac_cv_prog_CC"; then
3404 # Extract the first word of "gcc", so it can be a program name with args.
3405 set dummy gcc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CC="gcc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3434 $as_echo "$ac_ct_CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 if test "x$ac_ct_CC" = x; then
3443 case $cross_compiling:$ac_tool_warned in
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447 ac_tool_warned=yes ;;
3455 if test -z "$CC"; then
3456 if test -n "$ac_tool_prefix"; then
3457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3458 set dummy ${ac_tool_prefix}cc; ac_word=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if test "${ac_cv_prog_CC+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474 ac_cv_prog_CC="${ac_tool_prefix}cc"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 if test -n "$CC"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 $as_echo "$CC" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3496 if test -z "$CC"; then
3497 # Extract the first word of "cc", so it can be a program name with args.
3498 set dummy cc; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3516 ac_prog_rejected=yes
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 if test $ac_prog_rejected = yes; then
3528 # We found a bogon in the path, so make sure we never use it.
3529 set dummy $ac_cv_prog_CC
3531 if test $# != 0; then
3532 # We chose a different compiler from the bogus one.
3533 # However, it has the same basename, so the bogon will be chosen
3534 # first if we set CC to just the basename; use the full file name.
3536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3552 if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 for ac_prog in cl.exe
3556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if test "${ac_cv_prog_CC+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$CC"; then
3564 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 if test -n "$CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3593 test -n "$CC" && break
3596 if test -z "$CC"; then
3598 for ac_prog in cl.exe
3600 # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3607 if test -n "$ac_ct_CC"; then
3608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 ac_cv_prog_ac_ct_CC="$ac_prog"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3628 if test -n "$ac_ct_CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3630 $as_echo "$ac_ct_CC" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3637 test -n "$ac_ct_CC" && break
3640 if test "x$ac_ct_CC" = x; then
3643 case $cross_compiling:$ac_tool_warned in
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647 ac_tool_warned=yes ;;
3656 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 as_fn_error "no acceptable C compiler found in \$PATH
3659 See \`config.log' for more details." "$LINENO" 5; }
3661 # Provide some information about the compiler.
3662 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3665 for ac_option in --version -v -V -qversion; do
3666 { { ac_try="$ac_compiler $ac_option >&5"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3675 if test -s conftest.err; then
3677 ... rest of stderr output deleted ...
3678 10q' conftest.err >conftest.er1
3679 cat conftest.er1 >&5
3680 rm -f conftest.er1 conftest.err
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3699 (eval $ac_link) 2>&5
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; then :
3707 if test x$gcc_no_link = xyes; then
3708 # Setting cross_compile will disable run tests; it will
3709 # also disable AC_CHECK_FILE but that's generally
3710 # correct if we can't link.
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 ac_clean_files_save=$ac_clean_files
3726 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3727 # Try to create an executable without -o first, disregard a.out.
3728 # It will help us diagnose broken compilers, and finding out an intuition
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3731 $as_echo_n "checking for C compiler default output file name... " >&6; }
3732 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734 # The possible output files:
3735 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3738 for ac_file in $ac_files
3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3747 if { { ac_try="$ac_link_default"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_link_default") 2>&5
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }; then :
3758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3760 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3761 # so that the user can short-circuit this test for compilers unknown to
3763 for ac_file in $ac_files ''
3765 test -f "$ac_file" || continue
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3770 # We found the default executable, but exeext='' is most
3774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 # We set ac_cv_exeext here because the later test for it is not
3779 # safe: cross compilers may not add the suffix if given an `-o'
3780 # argument, so we may need to know it at that point already.
3781 # Even if this section looks crufty: it has the advantage of
3788 test "$ac_cv_exeext" = no && ac_cv_exeext=
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3794 $as_echo "$ac_file" >&6; }
3795 if test -z "$ac_file"; then :
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 { as_fn_set_status 77
3802 as_fn_error "C compiler cannot create executables
3803 See \`config.log' for more details." "$LINENO" 5; }; }
3805 ac_exeext=$ac_cv_exeext
3807 # Check that the compiler produces executables we can run. If not, either
3808 # the compiler is broken, or we cross compile.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3810 $as_echo_n "checking whether the C compiler works... " >&6; }
3811 # If not cross compiling, check that we can run a simple program.
3812 if test "$cross_compiling" != yes; then
3813 if { ac_try='./$ac_file'
3814 { { case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_try") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; }; then
3826 if test "$cross_compiling" = maybe; then
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 as_fn_error "cannot run C compiled programs.
3832 If you meant to cross compile, use \`--host'.
3833 See \`config.log' for more details." "$LINENO" 5; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3838 $as_echo "yes" >&6; }
3840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3841 ac_clean_files=$ac_clean_files_save
3842 # Check that the compiler produces executables we can run. If not, either
3843 # the compiler is broken, or we cross compile.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3845 $as_echo_n "checking whether we are cross compiling... " >&6; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3847 $as_echo "$cross_compiling" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3850 $as_echo_n "checking for suffix of executables... " >&6; }
3851 if { { ac_try="$ac_link"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_link") 2>&5
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }; then :
3862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3864 # work properly (i.e., refer to `conftest.exe'), while it won't with
3866 for ac_file in conftest.exe conftest conftest.*; do
3867 test -f "$ac_file" || continue
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error "cannot compute suffix of executables: cannot compile and link
3879 See \`config.log' for more details." "$LINENO" 5; }
3881 rm -f conftest$ac_cv_exeext
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3883 $as_echo "$ac_cv_exeext" >&6; }
3885 rm -f conftest.$ac_ext
3886 EXEEXT=$ac_cv_exeext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3890 $as_echo_n "checking for suffix of object files... " >&6; }
3891 if test "${ac_cv_objext+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 rm -f conftest.o conftest.obj
3906 if { { ac_try="$ac_compile"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_compile") 2>&5
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 for ac_file in conftest.o conftest.obj conftest.*; do
3918 test -f "$ac_file" || continue;
3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error "cannot compute suffix of object files: cannot compile
3932 See \`config.log' for more details." "$LINENO" 5; }
3934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3937 $as_echo "$ac_cv_objext" >&6; }
3938 OBJEXT=$ac_cv_objext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3942 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3969 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3975 ac_test_CFLAGS=${CFLAGS+set}
3976 ac_save_CFLAGS=$CFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3978 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3979 if test "${ac_cv_prog_cc_g+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_save_c_werror_flag=$ac_c_werror_flag
3983 ac_c_werror_flag=yes
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_c_werror_flag=$ac_save_c_werror_flag
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_c_try_compile "$LINENO"; then :
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4039 $as_echo "$ac_cv_prog_cc_g" >&6; }
4040 if test "$ac_test_CFLAGS" = set; then
4041 CFLAGS=$ac_save_CFLAGS
4042 elif test $ac_cv_prog_cc_g = yes; then
4043 if test "$GCC" = yes; then
4049 if test "$GCC" = yes; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4060 ac_cv_prog_cc_c89=no
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 #include <sys/stat.h>
4068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4069 struct buf { int x; };
4070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071 static char *e (p, i)
4077 static char *f (char * (*g) (char **, int), char **p, ...)
4082 s = g (p, va_arg (v,int));
4087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4088 function prototypes and stuff, but not '\xHH' hex character constants.
4089 These don't provoke an error unfortunately, instead are silently treated
4090 as 'x'. The following induces an error, until -std is added to get
4091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4092 array size at least. It's necessary to write '\x00'==0 to get something
4093 that's true only with -std. */
4094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4097 inside strings and character constants. */
4099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101 int test (int i, double x);
4102 struct s1 {int (*f) (int a);};
4103 struct s2 {int (*f) (double a);};
4104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118 CC="$ac_save_CC $ac_arg"
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_c89=$ac_arg
4122 rm -f core conftest.err conftest.$ac_objext
4123 test "x$ac_cv_prog_cc_c89" != "xno" && break
4125 rm -f conftest.$ac_ext
4130 case "x$ac_cv_prog_cc_c89" in
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 $as_echo "none needed" >&6; } ;;
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4136 $as_echo "unsupported" >&6; } ;;
4138 CC="$CC $ac_cv_prog_cc_c89"
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4140 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142 if test "x$ac_cv_prog_cc_c89" != xno; then :
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 ac_cpp='$CXXCPP $CPPFLAGS'
4154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4157 if test -z "$CXX"; then
4158 if test -n "$CCC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CXX+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$CXX"; then
4172 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 if test -n "$CXX"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4194 $as_echo "$CXX" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 test -n "$CXX" && break
4204 if test -z "$CXX"; then
4206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -n "$ac_ct_CXX"; then
4216 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_ac_ct_CXX="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4236 if test -n "$ac_ct_CXX"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4238 $as_echo "$ac_ct_CXX" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4245 test -n "$ac_ct_CXX" && break
4248 if test "x$ac_ct_CXX" = x; then
4251 case $cross_compiling:$ac_tool_warned in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4263 # Provide some information about the compiler.
4264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4267 for ac_option in --version -v -V -qversion; do
4268 { { ac_try="$ac_compiler $ac_option >&5"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4277 if test -s conftest.err; then
4279 ... rest of stderr output deleted ...
4280 10q' conftest.err >conftest.er1
4281 cat conftest.er1 >&5
4282 rm -f conftest.er1 conftest.err
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4289 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4290 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4317 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4318 if test $ac_compiler_gnu = yes; then
4323 ac_test_CXXFLAGS=${CXXFLAGS+set}
4324 ac_save_CXXFLAGS=$CXXFLAGS
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4326 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4327 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4331 ac_cxx_werror_flag=yes
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 if ac_fn_cxx_try_compile "$LINENO"; then :
4346 ac_cv_prog_cxx_g=yes
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 if ac_fn_cxx_try_compile "$LINENO"; then :
4363 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4377 ac_cv_prog_cxx_g=yes
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4387 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4388 if test "$ac_test_CXXFLAGS" = set; then
4389 CXXFLAGS=$ac_save_CXXFLAGS
4390 elif test $ac_cv_prog_cxx_g = yes; then
4391 if test "$GXX" = yes; then
4397 if test "$GXX" = yes; then
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 CXXFLAGS="$save_CXXFLAGS"
4411 am__api_version='1.11'
4413 # Find a good install program. We prefer a C program (faster),
4414 # so one script is as good as another. But avoid the broken or
4415 # incompatible versions:
4416 # SysV /etc/install, /usr/sbin/install
4417 # SunOS /usr/etc/install
4418 # IRIX /sbin/install
4420 # AmigaOS /C/install, which installs bootblocks on floppy discs
4421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4424 # OS/2's system install, which has a completely different semantic
4425 # ./install, which can be erroneously created by make from ./install.sh.
4426 # Reject install programs that cannot install multiple files.
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4429 if test -z "$INSTALL"; then
4430 if test "${ac_cv_path_install+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 # Account for people who put trailing slashes in PATH elements.
4439 case $as_dir/ in #((
4440 ./ | .// | /[cC]/* | \
4441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4445 # OSF1 and SCO ODT 3.0 have their own names for install.
4446 # Don't use installbsd from OSF since it installs stuff as root
4448 for ac_prog in ginstall scoinst install; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4451 if test $ac_prog = install &&
4452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4453 # AIX install. It has an incompatible calling convention.
4455 elif test $ac_prog = install &&
4456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4457 # program-specific install script used by HP pwplus--don't use.
4460 rm -rf conftest.one conftest.two conftest.dir
4461 echo one > conftest.one
4462 echo two > conftest.two
4464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4465 test -s conftest.one && test -s conftest.two &&
4466 test -s conftest.dir/conftest.one &&
4467 test -s conftest.dir/conftest.two
4469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4482 rm -rf conftest.one conftest.two conftest.dir
4485 if test "${ac_cv_path_install+set}" = set; then
4486 INSTALL=$ac_cv_path_install
4488 # As a last resort, use the slow shell script. Don't cache a
4489 # value for INSTALL within a source directory, because that will
4490 # break other packages using the cache if that directory is
4491 # removed, or if the value is a relative name.
4492 INSTALL=$ac_install_sh
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4496 $as_echo "$INSTALL" >&6; }
4498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4499 # It thinks the first close brace ends the variable substitution.
4500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4507 $as_echo_n "checking whether build environment is sane... " >&6; }
4510 echo timestamp > conftest.file
4511 # Reject unsafe characters in $srcdir or the absolute working directory
4512 # name. Accept space and tab only in the latter.
4516 *[\\\"\#\$\&\'\`$am_lf]*)
4517 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4520 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4521 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4524 # Do `set' in a subshell so we don't clobber the current shell's
4525 # arguments. Must try -L first in case configure is actually a
4526 # symlink; some systems play weird games with the mod time of symlinks
4527 # (eg FreeBSD returns the mod time of the symlink's containing
4530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4531 if test "$*" = "X"; then
4533 set X `ls -t "$srcdir/configure" conftest.file`
4536 if test "$*" != "X $srcdir/configure conftest.file" \
4537 && test "$*" != "X conftest.file $srcdir/configure"; then
4539 # If neither matched, then we have a broken ls. This can happen
4540 # if, for instance, CONFIG_SHELL is bash and it inherits a
4541 # broken ls alias from the environment. This has actually
4542 # happened. Such a system could not be considered "sane".
4543 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4544 alias in your environment" "$LINENO" 5
4547 test "$2" = conftest.file
4553 as_fn_error "newly created file is older than distributed files!
4554 Check your system clock" "$LINENO" 5
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558 test "$program_prefix" != NONE &&
4559 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4560 # Use a double $ so make ignores it.
4561 test "$program_suffix" != NONE &&
4562 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4563 # Double any \ or $.
4564 # By default was `s,x,x', remove it if useless.
4565 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4566 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4568 # expand $ac_aux_dir to an absolute path
4569 am_aux_dir=`cd $ac_aux_dir && pwd`
4571 if test x"${MISSING+set}" != xset; then
4574 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4576 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4579 # Use eval to expand $SHELL
4580 if eval "$MISSING --run true"; then
4581 am_missing_run="$MISSING --run "
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4585 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4588 if test x"${install_sh}" != xset; then
4591 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4593 install_sh="\${SHELL} $am_aux_dir/install-sh"
4597 # Installed binaries are usually stripped using `strip' when the user
4598 # run `make install-strip'. However `strip' might not be the right
4599 # tool to use in cross-compilation environments, therefore Automake
4600 # will honor the `STRIP' environment variable to overrule this program.
4601 if test "$cross_compiling" != no; then
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}strip; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_STRIP+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4610 if test -n "$STRIP"; then
4611 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 STRIP=$ac_cv_prog_STRIP
4631 if test -n "$STRIP"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4633 $as_echo "$STRIP" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4641 if test -z "$ac_cv_prog_STRIP"; then
4643 # Extract the first word of "strip", so it can be a program name with args.
4644 set dummy strip; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$ac_ct_STRIP"; then
4651 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_STRIP="strip"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4671 if test -n "$ac_ct_STRIP"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4673 $as_echo "$ac_ct_STRIP" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4679 if test "x$ac_ct_STRIP" = x; then
4682 case $cross_compiling:$ac_tool_warned in
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4691 STRIP="$ac_cv_prog_STRIP"
4695 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4698 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4699 if test -z "$MKDIR_P"; then
4700 if test "${ac_cv_path_mkdir+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in mkdir gmkdir; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4711 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4712 'mkdir (GNU coreutils) '* | \
4713 'mkdir (coreutils) '* | \
4714 'mkdir (fileutils) '4.1*)
4715 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4725 if test "${ac_cv_path_mkdir+set}" = set; then
4726 MKDIR_P="$ac_cv_path_mkdir -p"
4728 # As a last resort, use the slow shell script. Don't cache a
4729 # value for MKDIR_P within a source directory, because that will
4730 # break other packages using the cache if that directory is
4731 # removed, or if the value is a relative name.
4732 test -d ./--version && rmdir ./--version
4733 MKDIR_P="$ac_install_sh -d"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4737 $as_echo "$MKDIR_P" >&6; }
4741 [\\/$]* | ?:[\\/]*) ;;
4742 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4745 for ac_prog in gawk mawk nawk awk
4747 # Extract the first word of "$ac_prog", so it can be a program name with args.
4748 set dummy $ac_prog; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if test "${ac_cv_prog_AWK+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -n "$AWK"; then
4755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_AWK="$ac_prog"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 if test -n "$AWK"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4777 $as_echo "$AWK" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4784 test -n "$AWK" && break
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4788 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4790 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4791 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4792 $as_echo_n "(cached) " >&6
4794 cat >conftest.make <<\_ACEOF
4797 @echo '@@@%%%=$(MAKE)=@@@%%%'
4799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4800 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4802 eval ac_cv_prog_make_${ac_make}_set=yes;;
4804 eval ac_cv_prog_make_${ac_make}_set=no;;
4808 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4810 $as_echo "yes" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 SET_MAKE="MAKE=${MAKE-make}"
4818 rm -rf .tst 2>/dev/null
4819 mkdir .tst 2>/dev/null
4820 if test -d .tst; then
4825 rmdir .tst 2>/dev/null
4827 DEPDIR="${am__leading_dot}deps"
4829 ac_config_commands="$ac_config_commands depfiles"
4832 am_make=${MAKE-make}
4833 cat > confinc << 'END'
4835 @echo this is the am__doit target
4838 # If we don't find an include directive, just comment out the code.
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4840 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4844 # First try GNU make style include.
4845 echo "include confinc" > confmf
4846 # Ignore all kinds of additional output from `make'.
4847 case `$am_make -s -f confmf 2> /dev/null` in #(
4848 *the\ am__doit\ target*)
4854 # Now try BSD make style include.
4855 if test "$am__include" = "#"; then
4856 echo '.include "confinc"' > confmf
4857 case `$am_make -s -f confmf 2> /dev/null` in #(
4858 *the\ am__doit\ target*)
4859 am__include=.include
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4868 $as_echo "$_am_result" >&6; }
4869 rm -f confinc confmf
4871 # Check whether --enable-dependency-tracking was given.
4872 if test "${enable_dependency_tracking+set}" = set; then :
4873 enableval=$enable_dependency_tracking;
4876 if test "x$enable_dependency_tracking" != xno; then
4877 am_depcomp="$ac_aux_dir/depcomp"
4880 if test "x$enable_dependency_tracking" != xno; then
4889 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4891 # is not polluted with repeated "-I."
4892 am__isrc=' -I$(srcdir)'
4893 # test to see if srcdir already configured
4894 if test -f $srcdir/config.status; then
4895 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4899 # test whether we have cygpath
4900 if test -z "$CYGPATH_W"; then
4901 if (cygpath --version) >/dev/null 2>/dev/null; then
4902 CYGPATH_W='cygpath -w'
4909 # Define the identity of the package.
4911 VERSION='version-unused'
4914 cat >>confdefs.h <<_ACEOF
4915 #define PACKAGE "$PACKAGE"
4919 cat >>confdefs.h <<_ACEOF
4920 #define VERSION "$VERSION"
4923 # Some tools Automake needs.
4925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4939 # We need awk for the "check" target. The system "awk" is bad on
4941 # Always define AMTAR for backward compatibility.
4943 AMTAR=${AMTAR-"${am_missing_run}tar"}
4945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4950 depcc="$CC" am_compiler_list=
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4953 $as_echo_n "checking dependency style of $depcc... " >&6; }
4954 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4958 # We make a subdir and do the tests there. Otherwise we can end up
4959 # making bogus files that we don't know about and never remove. For
4960 # instance it was reported that on HP-UX the gcc test will end up
4961 # making a dummy file named `D' -- because `-MD' means `put the output
4964 # Copy depcomp to subdir because otherwise we won't find it if we're
4965 # using a relative directory.
4966 cp "$am_depcomp" conftest.dir
4968 # We will build objects and dependencies in a subdirectory because
4969 # it helps to detect inapplicable dependency modes. For instance
4970 # both Tru64's cc and ICC support -MD to output dependencies as a
4971 # side effect of compilation, but ICC will put the dependencies in
4972 # the current directory while Tru64 will put them in the object
4976 am_cv_CC_dependencies_compiler_type=none
4977 if test "$am_compiler_list" = ""; then
4978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4981 case " $depcc " in #(
4982 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4985 for depmode in $am_compiler_list; do
4986 # Setup a source with many dependencies, because some compilers
4987 # like to wrap large dependency lists on column 80 (with \), and
4988 # we should not choose a depcomp mode which is confused by this.
4990 # We need to recreate these files for each test, as the compiler may
4991 # overwrite some of them when testing with obscure command lines.
4992 # This happens at least with the AIX C compiler.
4994 for i in 1 2 3 4 5 6; do
4995 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4996 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4997 # Solaris 8's {/usr,}/bin/sh.
4998 touch sub/conftst$i.h
5000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5002 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5003 # mode. It turns out that the SunPro C++ compiler does not properly
5004 # handle `-M -o', and we need to detect this. Also, some Intel
5005 # versions had trouble with output in subdirs
5006 am__obj=sub/conftest.${OBJEXT-o}
5007 am__minus_obj="-o $am__obj"
5010 # This depmode causes a compiler race in universal mode.
5011 test "$am__universal" = false || continue
5014 # after this tag, mechanisms are not by side-effect, so they'll
5015 # only be used when explicitly requested
5016 if test "x$enable_dependency_tracking" = xyes; then
5022 msvisualcpp | msvcmsys)
5023 # This compiler won't grok `-c -o', but also, the minuso test has
5024 # not run yet. These depmodes are late enough in the game, and
5025 # so weak that their functioning should not be impacted.
5026 am__obj=conftest.${OBJEXT-o}
5031 if depmode=$depmode \
5032 source=sub/conftest.c object=$am__obj \
5033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5034 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5035 >/dev/null 2>conftest.err &&
5036 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5038 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5040 # icc doesn't choke on unknown options, it will just issue warnings
5041 # or remarks (even with -Werror). So we grep stderr for any message
5042 # that says an option was ignored or not supported.
5043 # When given -MP, icc 7.0 and 7.1 complain thusly:
5044 # icc: Command line warning: ignoring option '-M'; no argument required
5045 # The diagnosis changed in icc 8.0:
5046 # icc: Command line remark: option '-MP' not supported
5047 if (grep 'ignoring option' conftest.err ||
5048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5049 am_cv_CC_dependencies_compiler_type=$depmode
5058 am_cv_CC_dependencies_compiler_type=none
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5063 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5064 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5067 test "x$enable_dependency_tracking" != xno \
5068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5070 am__fastdepCC_FALSE='#'
5072 am__fastdepCC_TRUE='#'
5073 am__fastdepCC_FALSE=
5077 depcc="$CXX" am_compiler_list=
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5080 $as_echo_n "checking dependency style of $depcc... " >&6; }
5081 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5085 # We make a subdir and do the tests there. Otherwise we can end up
5086 # making bogus files that we don't know about and never remove. For
5087 # instance it was reported that on HP-UX the gcc test will end up
5088 # making a dummy file named `D' -- because `-MD' means `put the output
5091 # Copy depcomp to subdir because otherwise we won't find it if we're
5092 # using a relative directory.
5093 cp "$am_depcomp" conftest.dir
5095 # We will build objects and dependencies in a subdirectory because
5096 # it helps to detect inapplicable dependency modes. For instance
5097 # both Tru64's cc and ICC support -MD to output dependencies as a
5098 # side effect of compilation, but ICC will put the dependencies in
5099 # the current directory while Tru64 will put them in the object
5103 am_cv_CXX_dependencies_compiler_type=none
5104 if test "$am_compiler_list" = ""; then
5105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5108 case " $depcc " in #(
5109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5112 for depmode in $am_compiler_list; do
5113 # Setup a source with many dependencies, because some compilers
5114 # like to wrap large dependency lists on column 80 (with \), and
5115 # we should not choose a depcomp mode which is confused by this.
5117 # We need to recreate these files for each test, as the compiler may
5118 # overwrite some of them when testing with obscure command lines.
5119 # This happens at least with the AIX C compiler.
5121 for i in 1 2 3 4 5 6; do
5122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5124 # Solaris 8's {/usr,}/bin/sh.
5125 touch sub/conftst$i.h
5127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5130 # mode. It turns out that the SunPro C++ compiler does not properly
5131 # handle `-M -o', and we need to detect this. Also, some Intel
5132 # versions had trouble with output in subdirs
5133 am__obj=sub/conftest.${OBJEXT-o}
5134 am__minus_obj="-o $am__obj"
5137 # This depmode causes a compiler race in universal mode.
5138 test "$am__universal" = false || continue
5141 # after this tag, mechanisms are not by side-effect, so they'll
5142 # only be used when explicitly requested
5143 if test "x$enable_dependency_tracking" = xyes; then
5149 msvisualcpp | msvcmsys)
5150 # This compiler won't grok `-c -o', but also, the minuso test has
5151 # not run yet. These depmodes are late enough in the game, and
5152 # so weak that their functioning should not be impacted.
5153 am__obj=conftest.${OBJEXT-o}
5158 if depmode=$depmode \
5159 source=sub/conftest.c object=$am__obj \
5160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5162 >/dev/null 2>conftest.err &&
5163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5167 # icc doesn't choke on unknown options, it will just issue warnings
5168 # or remarks (even with -Werror). So we grep stderr for any message
5169 # that says an option was ignored or not supported.
5170 # When given -MP, icc 7.0 and 7.1 complain thusly:
5171 # icc: Command line warning: ignoring option '-M'; no argument required
5172 # The diagnosis changed in icc 8.0:
5173 # icc: Command line remark: option '-MP' not supported
5174 if (grep 'ignoring option' conftest.err ||
5175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5176 am_cv_CXX_dependencies_compiler_type=$depmode
5185 am_cv_CXX_dependencies_compiler_type=none
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5190 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5191 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5194 test "x$enable_dependency_tracking" != xno \
5195 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5196 am__fastdepCXX_TRUE=
5197 am__fastdepCXX_FALSE='#'
5199 am__fastdepCXX_TRUE='#'
5200 am__fastdepCXX_FALSE=
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}as; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if test "${ac_cv_prog_AS+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$AS"; then
5215 ac_cv_prog_AS="$AS" # Let the user override the test.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_prog_AS="${ac_tool_prefix}as"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 if test -n "$AS"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5237 $as_echo "$AS" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5245 if test -z "$ac_cv_prog_AS"; then
5247 # Extract the first word of "as", so it can be a program name with args.
5248 set dummy as; ac_word=$2
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250 $as_echo_n "checking for $ac_word... " >&6; }
5251 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5254 if test -n "$ac_ct_AS"; then
5255 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_AS="as"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5275 if test -n "$ac_ct_AS"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5277 $as_echo "$ac_ct_AS" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5283 if test "x$ac_ct_AS" = x; then
5286 case $cross_compiling:$ac_tool_warned in
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5298 if test -n "$ac_tool_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5300 set dummy ${ac_tool_prefix}ld; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_prog_LD+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5306 if test -n "$LD"; then
5307 ac_cv_prog_LD="$LD" # Let the user override the test.
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_LD="${ac_tool_prefix}ld"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 if test -n "$LD"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5329 $as_echo "$LD" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5337 if test -z "$ac_cv_prog_LD"; then
5339 # Extract the first word of "ld", so it can be a program name with args.
5340 set dummy ld; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5346 if test -n "$ac_ct_LD"; then
5347 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_prog_ac_ct_LD="ld"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5367 if test -n "$ac_ct_LD"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5369 $as_echo "$ac_ct_LD" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5375 if test "x$ac_ct_LD" = x; then
5378 case $cross_compiling:$ac_tool_warned in
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5390 if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5392 set dummy ${ac_tool_prefix}ar; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if test "${ac_cv_prog_AR+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$AR"; then
5399 ac_cv_prog_AR="$AR" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_AR="${ac_tool_prefix}ar"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 if test -n "$AR"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5421 $as_echo "$AR" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5429 if test -z "$ac_cv_prog_AR"; then
5431 # Extract the first word of "ar", so it can be a program name with args.
5432 set dummy ar; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5438 if test -n "$ac_ct_AR"; then
5439 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_AR="ar"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5459 if test -n "$ac_ct_AR"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5461 $as_echo "$ac_ct_AR" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5467 if test "x$ac_ct_AR" = x; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5482 if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5484 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5490 if test -n "$RANLIB"; then
5491 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 RANLIB=$ac_cv_prog_RANLIB
5511 if test -n "$RANLIB"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5513 $as_echo "$RANLIB" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5521 if test -z "$ac_cv_prog_RANLIB"; then
5522 ac_ct_RANLIB=$RANLIB
5523 # Extract the first word of "ranlib", so it can be a program name with args.
5524 set dummy ranlib; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5530 if test -n "$ac_ct_RANLIB"; then
5531 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_prog_ac_ct_RANLIB="ranlib"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5551 if test -n "$ac_ct_RANLIB"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5553 $as_echo "$ac_ct_RANLIB" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5559 if test "x$ac_ct_RANLIB" = x; then
5562 case $cross_compiling:$ac_tool_warned in
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566 ac_tool_warned=yes ;;
5568 RANLIB=$ac_ct_RANLIB
5571 RANLIB="$ac_cv_prog_RANLIB"
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5582 if test -n "$DLLTOOL"; then
5583 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 DLLTOOL=$ac_cv_prog_DLLTOOL
5603 if test -n "$DLLTOOL"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5605 $as_echo "$DLLTOOL" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5613 if test -z "$ac_cv_prog_DLLTOOL"; then
5614 ac_ct_DLLTOOL=$DLLTOOL
5615 # Extract the first word of "dlltool", so it can be a program name with args.
5616 set dummy dlltool; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5622 if test -n "$ac_ct_DLLTOOL"; then
5623 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5643 if test -n "$ac_ct_DLLTOOL"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5645 $as_echo "$ac_ct_DLLTOOL" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5651 if test "x$ac_ct_DLLTOOL" = x; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5660 DLLTOOL=$ac_ct_DLLTOOL
5663 DLLTOOL="$ac_cv_prog_DLLTOOL"
5666 for ac_prog in gawk mawk nawk awk
5668 # Extract the first word of "$ac_prog", so it can be a program name with args.
5669 set dummy $ac_prog; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 $as_echo_n "checking for $ac_word... " >&6; }
5672 if test "${ac_cv_prog_AWK+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5675 if test -n "$AWK"; then
5676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685 ac_cv_prog_AWK="$ac_prog"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 if test -n "$AWK"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5698 $as_echo "$AWK" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5705 test -n "$AWK" && break
5708 for ac_prog in jar fastjar gjar
5710 # Extract the first word of "$ac_prog", so it can be a program name with args.
5711 set dummy $ac_prog; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_prog_JAR+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5717 if test -n "$JAR"; then
5718 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_prog_JAR="$ac_prog"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 if test -n "$JAR"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5740 $as_echo "$JAR" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5747 test -n "$JAR" && break
5749 test -n "$JAR" || JAR="no"
5751 # Extract the first word of "zip", so it can be a program name with args.
5752 set dummy zip; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if test "${ac_cv_path_ZIP+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5760 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5783 if test -n "$ZIP"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5785 $as_echo "$ZIP" >&6; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 # Extract the first word of "unzip", so it can be a program name with args.
5793 set dummy unzip; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if test "${ac_cv_path_UNZIP+set}" = set; then :
5797 $as_echo_n "(cached) " >&6
5801 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5823 UNZIP=$ac_cv_path_UNZIP
5824 if test -n "$UNZIP"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5826 $as_echo "$UNZIP" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5834 # We need a jar that supports -@. This is a GNU extension.
5835 if test "$JAR" != no; then
5836 rm -f config-test.jar
5837 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5838 if test -f config-test.jar; then
5839 rm -f config-test.jar
5845 # Prefer the jar we found, but fall back to our jar script.
5846 if test "$JAR" = no; then
5847 if test "$ZIP" = no; then
5848 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5850 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5851 JAR=`pwd`/scripts/jar
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5859 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5860 # Check whether --enable-maintainer-mode was given.
5861 if test "${enable_maintainer_mode+set}" = set; then :
5862 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5864 USE_MAINTAINER_MODE=no
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5868 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5869 if test $USE_MAINTAINER_MODE = yes; then
5870 MAINTAINER_MODE_TRUE=
5871 MAINTAINER_MODE_FALSE='#'
5873 MAINTAINER_MODE_TRUE='#'
5874 MAINTAINER_MODE_FALSE=
5877 MAINT=$MAINTAINER_MODE_TRUE
5883 # configure.host sets the following important variables
5884 # libgcj_cflags - host specific C compiler flags
5885 # libgcj_cxxflags - host specific C++ compiler flags
5886 # libgcj_javaflags - host specific Java compiler flags
5887 # libgcj_sublib_ltflags - host specific Libtool flags
5888 # libgcj_sublib_core_extra_deps - host specific extra
5889 # dependencies for core sublib
5890 # (these last two only used when building sublibs)
5891 # and a number of others; see the list at the start of the file.
5896 libgcj_sublib_ltflags=
5897 libgcj_sublib_core_extra_deps=
5899 . ${srcdir}/configure.host
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5902 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5903 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5906 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5907 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5908 acl_cv_prog_gnu_ld=yes
5910 acl_cv_prog_gnu_ld=no
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5914 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5915 with_gnu_ld=$acl_cv_prog_gnu_ld
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5918 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5919 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5923 acl_cv_prog_gnu_ld_symbolic=no
5925 if test x"$with_gnu_ld" = x"yes"; then
5926 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5927 acl_cv_prog_gnu_ld_symbolic=yes
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5932 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5933 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5934 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5939 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5940 if test -z "$libgcj_ld_symbolic"; then
5941 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5944 LIBGCJ_CFLAGS="${libgcj_cflags}"
5945 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5946 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5947 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5948 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5949 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5950 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5959 # Only use libltdl for non-newlib builds.
5960 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5964 libname_spec='lib$name'
5972 shlibpath_overrides_runpath=unknown
5974 dynamic_linker="$host_os ld.so"
5975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5976 if test "$GCC" = yes; then
5977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5978 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5979 # if the path contains ";" then we assume it to be the separator
5980 # otherwise default to the standard path separator (i.e. ":") - it is
5981 # assumed that no part of a normal pathname contains ";" but that should
5982 # okay in the real world where ";" in dirpaths is itself problematic.
5983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5990 need_lib_prefix=unknown
5991 hardcode_into_libs=no
5993 # when you set need_version to no, make sure it does not cause -set_version
5994 # flags to be left without arguments
5995 need_version=unknown
6000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6001 shlibpath_var=LIBPATH
6003 # AIX 3 has no versioning support, so we append a major version to the name.
6004 soname_spec='${libname}${release}${shared_ext}$major'
6011 hardcode_into_libs=yes
6012 if test "$host_cpu" = ia64; then
6013 # AIX 5 supports IA64
6014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6015 shlibpath_var=LD_LIBRARY_PATH
6017 # With GCC up to 2.95.x, collect2 would create an import file
6018 # for dependence libraries. The import file would start with
6019 # the line `#! .'. This would cause the generated library to
6020 # depend on `.', always an invalid library. This was fixed in
6021 # development snapshots of GCC prior to 3.0.
6023 aix4 | aix4.[01] | aix4.[01].*)
6024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6026 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6034 # soname into executable. Probably we can add versioning support to
6035 # collect2, so additional links can be useful in future.
6036 if test "$aix_use_runtimelinking" = yes; then
6037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6038 # instead of lib<name>.a to let people know that these are not
6039 # typical AIX shared libraries.
6040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6042 # We preserve .a as extension for shared libraries through AIX4.2
6043 # and later when we are not doing run time linking.
6044 library_names_spec='${libname}${release}.a $libname.a'
6045 soname_spec='${libname}${release}${shared_ext}$major'
6047 shlibpath_var=LIBPATH
6052 library_names_spec='$libname.ixlibrary $libname.a'
6053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6054 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'
6058 library_names_spec='${libname}${shared_ext}'
6059 dynamic_linker="$host_os ld.so"
6060 shlibpath_var=LIBRARY_PATH
6066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6067 soname_spec='${libname}${release}${shared_ext}$major'
6068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6069 shlibpath_var=LD_LIBRARY_PATH
6070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6072 # the default ld.so.conf also contains /usr/contrib/lib and
6073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6074 # libtool to hard-code these into programs
6077 cygwin* | mingw* | pw32*)
6078 version_type=windows
6083 case $GCC,$host_os in
6084 yes,cygwin* | yes,mingw* | yes,pw32*)
6085 library_names_spec='$libname.dll.a'
6086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6087 postinstall_cmds='base_file=`basename \${file}`~
6088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6089 dldir=$destdir/`dirname \$dlpath`~
6090 test -d \$dldir || mkdir -p \$dldir~
6091 $install_prog $dir/$dlname \$dldir/$dlname'
6092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6093 dlpath=$dir/\$dldll~
6095 shlibpath_overrides_runpath=yes
6099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6100 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6101 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6104 # MinGW DLLs use traditional 'lib' prefix
6105 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6107 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6108 # It is most probably a Windows format PATH printed by
6109 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6110 # path with ; separators, and with drive letters. We can handle the
6111 # drive letters (cygwin fileutils understands them), so leave them,
6112 # especially as we might pass files found there to a mingw objdump,
6113 # which wouldn't understand a cygwinified path. Ahh.
6114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6120 # pw32 DLLs use 'pw' prefix rather than 'lib'
6121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6127 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6130 dynamic_linker='Win32 ld.exe'
6131 # FIXME: first we should search . and the directory the executable is in
6135 darwin* | rhapsody*)
6136 dynamic_linker="$host_os dyld"
6140 # FIXME: Relying on posixy $() will cause problems for
6141 # cross-compilation, but unfortunately the echo tests do not
6142 # yet detect zsh echo's removal of \ escapes.
6143 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6144 soname_spec='${libname}${release}${major}$shared_ext'
6145 shlibpath_overrides_runpath=yes
6146 shlibpath_var=DYLD_LIBRARY_PATH
6147 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6148 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6149 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6150 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"`
6152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6160 soname_spec='${libname}${release}${shared_ext}$major'
6161 shlibpath_var=LD_LIBRARY_PATH
6169 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6170 version_type=freebsd-$objformat
6171 case $version_type in
6173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6182 shlibpath_var=LD_LIBRARY_PATH
6185 shlibpath_overrides_runpath=yes
6187 freebsd3.01* | freebsdelf3.01*)
6188 shlibpath_overrides_runpath=yes
6189 hardcode_into_libs=yes
6192 shlibpath_overrides_runpath=no
6193 hardcode_into_libs=yes
6202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6203 soname_spec='${libname}${release}${shared_ext}$major'
6204 shlibpath_var=LD_LIBRARY_PATH
6205 hardcode_into_libs=yes
6208 hpux9* | hpux10* | hpux11*)
6209 # Give a soname corresponding to the major version so that dld.sl refuses to
6210 # link against other versions.
6217 hardcode_into_libs=yes
6218 dynamic_linker="$host_os dld.so"
6219 shlibpath_var=LD_LIBRARY_PATH
6220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6222 soname_spec='${libname}${release}${shared_ext}$major'
6223 if test "X$HPUX_IA64_MODE" = X32; then
6224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6232 hardcode_into_libs=yes
6233 dynamic_linker="$host_os dld.sl"
6234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6237 soname_spec='${libname}${release}${shared_ext}$major'
6238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6243 dynamic_linker="$host_os dld.sl"
6244 shlibpath_var=SHLIB_PATH
6245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6247 soname_spec='${libname}${release}${shared_ext}$major'
6250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6251 postinstall_cmds='chmod 555 $lib'
6254 irix5* | irix6* | nonstopux*)
6256 nonstopux*) version_type=nonstopux ;;
6258 if test "$lt_cv_prog_gnu_ld" = yes; then
6266 soname_spec='${libname}${release}${shared_ext}$major'
6267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6269 irix5* | nonstopux*)
6273 case $LD in # libtool.m4 will add one of these switches to LD
6274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6275 libsuff= shlibsuff= libmagic=32-bit;;
6276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6277 libsuff=32 shlibsuff=N32 libmagic=N32;;
6278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6280 *) libsuff= shlibsuff= libmagic=never-match;;
6284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6285 shlibpath_overrides_runpath=no
6286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6288 hardcode_into_libs=yes
6291 # No shared lib support for Linux oldld, aout, or coff.
6292 linux*oldld* | linux*aout* | linux*coff*)
6296 # This must be Linux ELF.
6301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6302 soname_spec='${libname}${release}${shared_ext}$major'
6303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6304 shlibpath_var=LD_LIBRARY_PATH
6305 shlibpath_overrides_runpath=no
6306 # This implies no fast_install, which is unacceptable.
6307 # Some rework will be needed to allow for fast_install
6308 # before this can be enabled.
6309 hardcode_into_libs=yes
6311 # We used to test for /lib/ld.so.1 and disable shared libraries on
6312 # powerpc, because MkLinux only supported shared libraries with the
6313 # GNU dynamic linker. Since this was broken with cross compilers,
6314 # most powerpc-linux boxes support dynamic linking these days and
6315 # people can always --disable-shared, the test was removed, and we
6316 # assume the GNU/Linux dynamic linker is in use.
6317 dynamic_linker='GNU/Linux ld.so'
6324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6327 dynamic_linker='NetBSD (a.out) ld.so'
6329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6330 soname_spec='${libname}${release}${shared_ext}$major'
6331 dynamic_linker='NetBSD ld.elf_so'
6333 shlibpath_var=LD_LIBRARY_PATH
6334 shlibpath_overrides_runpath=yes
6335 hardcode_into_libs=yes
6340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6341 shlibpath_var=LD_LIBRARY_PATH
6342 shlibpath_overrides_runpath=yes
6349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6350 soname_spec='${libname}${release}${shared_ext}$major'
6351 shlibpath_var=LD_LIBRARY_PATH
6352 shlibpath_overrides_runpath=yes
6359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6361 shlibpath_var=LD_LIBRARY_PATH
6362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6364 openbsd2.[89] | openbsd2.[89].*)
6365 shlibpath_overrides_runpath=no
6368 shlibpath_overrides_runpath=yes
6372 shlibpath_overrides_runpath=yes
6377 libname_spec='$name'
6380 library_names_spec='$libname${shared_ext} $libname.a'
6381 dynamic_linker='OS/2 ld.exe'
6382 shlibpath_var=LIBPATH
6385 osf3* | osf4* | osf5*)
6389 soname_spec='${libname}${release}${shared_ext}$major'
6390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6393 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6398 soname_spec='${libname}${release}${shared_ext}$major'
6399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6400 shlibpath_var=LD_LIBRARY_PATH
6407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6408 soname_spec='${libname}${release}${shared_ext}$major'
6409 shlibpath_var=LD_LIBRARY_PATH
6410 shlibpath_overrides_runpath=yes
6411 hardcode_into_libs=yes
6412 # ldd complains unless libraries are executable
6413 postinstall_cmds='chmod +x $lib'
6418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6420 shlibpath_var=LD_LIBRARY_PATH
6421 shlibpath_overrides_runpath=yes
6422 if test "$with_gnu_ld" = yes; then
6428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6431 soname_spec='${libname}${release}${shared_ext}$major'
6432 shlibpath_var=LD_LIBRARY_PATH
6433 case $host_vendor in
6435 shlibpath_overrides_runpath=no
6437 export_dynamic_flag_spec='${wl}-Blargedynsym'
6438 runpath_var=LD_RUN_PATH
6446 shlibpath_overrides_runpath=no
6447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6453 if test -d /usr/nec ;then
6455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6456 soname_spec='$libname${shared_ext}.$major'
6457 shlibpath_var=LD_LIBRARY_PATH
6463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6464 soname_spec='${libname}${release}${shared_ext}$major'
6465 shlibpath_var=LD_LIBRARY_PATH
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6473 $as_echo "$dynamic_linker" >&6; }
6474 test "$dynamic_linker" = no && can_build_shared=no
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6478 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6479 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6480 $as_echo_n "(cached) " >&6
6482 libltdl_cv_shlibpath_var="$shlibpath_var"
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6485 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6486 if test -n "$libltdl_cv_shlibpath_var"; then
6488 cat >>confdefs.h <<_ACEOF
6489 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6496 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6499 # Possibly build libgcj as many sub-libraries.
6500 # Check whether --enable-libgcj-sublibs was given.
6501 if test "${enable_libgcj_sublibs+set}" = set; then :
6502 enableval=$enable_libgcj_sublibs;
6506 if test -z "$enable_libgcj_sublibs"; then
6507 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6509 if test "$enable_libgcj_sublibs" = yes; then
6511 BUILD_SUBLIBS_FALSE='#'
6513 BUILD_SUBLIBS_TRUE='#'
6514 BUILD_SUBLIBS_FALSE=
6517 if test "$enable_libgcj_sublibs" = yes ; then
6518 # In theory we could make do with only one override and simply
6519 # tag "_bc" onto the end of it when we use it to generate the
6520 # spec, but that's an ugly thing to do when there are multiple
6521 # words in the string and you're relying on the ordering to
6522 # append the correct one.
6523 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6524 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6528 # See if the user has requested runtime debugging.
6529 LIBGCJDEBUG="disable"
6531 # Check whether --enable-libgcj-debug was given.
6532 if test "${enable_libgcj_debug+set}" = set; then :
6533 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6535 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6537 LIBGCJDEBUG="enable"
6543 # Check whether --with-escher was given.
6544 if test "${with_escher+set}" = set; then :
6545 withval=$with_escher;
6548 case "$with_escher" in
6556 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6563 # Determine which AWT peer libraries to build
6564 # Check whether --enable-java-awt was given.
6565 if test "${enable_java_awt+set}" = set; then :
6566 enableval=$enable_java_awt;
6570 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6575 # The default toolkit to use is the first one specified.
6579 for peer in $peerlibs ; do
6582 if test "$no_x" = yes; then
6583 echo "*** xlib peers requested but no X library available" 1>&2
6587 if test -z "$TOOLKIT"; then
6588 TOOLKIT=gnu.awt.xlib.XToolkit
6593 if test "$no_x" = yes; then
6594 echo "*** gtk peers requested but no X library available" 1>&2
6598 if test -z "$TOOLKIT"; then
6599 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6604 if test "$no_x" = yes; then
6605 # Perhaps we should admit the possibility of embedded Qt.
6606 echo "*** Qt peers requested but no X library available" 1>&2
6610 if test -z "$TOOLKIT"; then
6611 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6617 if test -z "$TOOLKIT"; then
6618 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6629 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6634 if test "$use_xlib_awt" = yes; then
6642 if test "$use_x_awt" = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define AWT_TOOLKIT "$TOOLKIT"
6657 expanded_prefix=$prefix
6658 if test "X$prefix" = XNONE; then
6659 expanded_prefix=${ac_default_prefix}
6663 cat >>confdefs.h <<_ACEOF
6664 #define LIBGCJ_PREFIX "$expanded_prefix"
6668 # Create standard.omit based on decisions we just made.
6669 cp $srcdir/standard.omit.in standard.omit
6670 if test "$use_xlib_awt" != yes; then
6671 echo gnu/awt/xlib >> standard.omit
6672 echo gnu/gcj/xlib >> standard.omit
6674 if test "$use_x_awt" != yes; then
6675 echo gnu/java/awt/peer/x >> standard.omit
6678 # Tools that need to be compiled against classpath's tools classes
6679 : > vm-tools-packages
6680 for package in gnu/gcj/tools/gc_analyze ; do
6681 echo $package >> standard.omit
6682 echo $package >> vm-tools-packages
6685 if test -z "${with_multisubdir}"; then
6688 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6693 # Which gcj and host gcj (for ecjx) do we use?
6695 host_exeext=${ac_exeext}
6697 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6698 if test -n "${with_cross_host}"; then
6699 # We are being configured with a cross compiler. We can't
6700 # use ac_exeext, because that is for the target platform.
6703 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6704 case "${with_cross_host}" in
6706 cross_host_exeext=.exe
6709 host_exeext=${cross_host_exeext}
6710 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6711 if test x"$build_noncanonical" = x"$with_cross_host"; then
6712 # Ordinary cross (host!=target and host=build)
6715 # Canadian cross (host!=target and host!=build)
6722 # We are being configured with a native or crossed-native compiler
6723 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6724 if test x"$build" = x"$host"; then
6725 # True native build (host=target and host=build)
6728 # Crossed-native build (host=target and host!=build)
6735 libgcjdir=`${PWDCMD-pwd}`
6738 # Just in case there is a comma in the build dir, quote it for the
6739 # sed command below.
6741 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6742 *) qlibgcjdir=$libgcjdir;;
6744 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6747 GCJ=$GCJ" -B$libgcjdir/"
6750 case "${which_gcj}" in
6752 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6755 if test "x${with_newlib}" = "xyes"; then
6756 # FIXME (comment): Why is this needed?
6759 GCJH='$(target_noncanonical)-gcjh'
6772 # Create it, so that compile/link tests don't fail
6773 test -f libgcj.spec || touch libgcj.spec
6777 # Set up to configure Classpath.
6778 # FIXME: no supported way to pass args in autoconf.
6779 # Disable tool wrappers to avoid ltdl.h configure check.
6780 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6781 ac_configure_args="$ac_configure_args --disable-load-library"
6782 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6783 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6784 dir1=`cd $srcdir && pwd`
6786 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6787 ac_configure_args="$ac_configure_args --disable-core-jni"
6788 ac_configure_args="$ac_configure_args --disable-examples"
6789 ac_configure_args="$ac_configure_args --with-glibj=build"
6790 if test "$browser_plugin_enabled" != yes; then
6791 ac_configure_args="$ac_configure_args --disable-plugin"
6793 ac_configure_args="$ac_configure_args --enable-plugin"
6795 if test "$gconf_enabled" != yes; then
6796 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6797 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6799 if test "$use_gtk_awt" != yes; then
6800 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6802 if test "$use_qt_awt" != yes; then
6803 ac_configure_args="$ac_configure_args --disable-qt-peer"
6805 # We need this as qt is disabled by default in classpath.
6806 ac_configure_args="$ac_configure_args --enable-qt-peer"
6808 if test "$use_x_awt" != yes; then
6809 ac_configure_args="$ac_configure_args --without-escher"
6811 # We need this as escher is disabled by default in classpath.
6812 if test "$use_escher" != true; then
6813 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6815 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6818 if test "x$BUILD_GJDOC" = xno; then
6819 ac_configure_args="$ac_configure_args --disable-gjdoc"
6821 # -Werror causes unavoidable problems in code using alsa.
6822 ac_configure_args="$ac_configure_args --disable-regen-headers"
6823 ac_configure_args="$ac_configure_args --disable-Werror"
6825 # Only use libltdl for non-newlib builds.
6826 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6827 case $enable_ltdl_convenience in
6828 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6829 "") enable_ltdl_convenience=yes
6830 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6832 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6833 LTDLINCL='-I${top_srcdir}/''libltdl'
6834 # For backwards non-gettext consistent compatibility...
6843 $as_echo "#define USE_LTDL 1" >>confdefs.h
6845 # Sigh. Libtool's macro doesn't do the right thing.
6846 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6847 # FIXME: this is a hack.
6848 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6849 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6857 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6862 macro_version='2.2.7a'
6863 macro_revision='1.3134'
6877 ltmain="$ac_aux_dir/ltmain.sh"
6879 # Backslashify metacharacters that are still active within
6880 # double-quoted strings.
6881 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6883 # Same as above, but do not quote variable references.
6884 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6886 # Sed substitution to delay expansion of an escaped shell variable in a
6887 # double_quote_subst'ed string.
6888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6890 # Sed substitution to delay expansion of an escaped single quote.
6891 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6893 # Sed substitution to avoid accidental globbing in evaled expressions
6894 no_glob_subst='s/\*/\\\*/g'
6896 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6898 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6901 $as_echo_n "checking how to print strings... " >&6; }
6902 # Test print first, because it will be a builtin if present.
6903 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6904 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6906 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6909 # Use this function as a fallback that always works.
6910 func_fallback_echo ()
6912 eval 'cat <<_LTECHO_EOF
6916 ECHO='func_fallback_echo'
6919 # func_echo_all arg...
6920 # Invoke $ECHO with all args, space-separated.
6927 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6928 $as_echo "printf" >&6; } ;;
6929 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6930 $as_echo "print -r" >&6; } ;;
6931 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6932 $as_echo "cat" >&6; } ;;
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6949 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6950 if test "${ac_cv_path_SED+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
6953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6954 for ac_i in 1 2 3 4 5 6 7; do
6955 ac_script="$ac_script$as_nl$ac_script"
6957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6958 { ac_script=; unset ac_script;}
6959 if test -z "$SED"; then
6960 ac_path_SED_found=false
6961 # Loop through the user's path and test for each of PROGNAME-LIST
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_prog in sed gsed; do
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6970 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6971 # Check for GNU ac_path_SED and select it if it is found.
6972 # Check for GNU $ac_path_SED
6973 case `"$ac_path_SED" --version 2>&1` in
6975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6978 $as_echo_n 0123456789 >"conftest.in"
6981 cat "conftest.in" "conftest.in" >"conftest.tmp"
6982 mv "conftest.tmp" "conftest.in"
6983 cp "conftest.in" "conftest.nl"
6984 $as_echo '' >> "conftest.nl"
6985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6987 as_fn_arith $ac_count + 1 && ac_count=$as_val
6988 if test $ac_count -gt ${ac_path_SED_max-0}; then
6989 # Best one so far, save it but keep looking for a better one
6990 ac_cv_path_SED="$ac_path_SED"
6991 ac_path_SED_max=$ac_count
6993 # 10*(2^10) chars as input seems more than enough
6994 test $ac_count -gt 10 && break
6996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6999 $ac_path_SED_found && break 3
7004 if test -z "$ac_cv_path_SED"; then
7005 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7013 $as_echo "$ac_cv_path_SED" >&6; }
7014 SED="$ac_cv_path_SED"
7017 test -z "$SED" && SED=sed
7018 Xsed="$SED -e 1s/^X//"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7031 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7032 if test "${ac_cv_path_GREP+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -z "$GREP"; then
7036 ac_path_GREP_found=false
7037 # Loop through the user's path and test for each of PROGNAME-LIST
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7042 test -z "$as_dir" && as_dir=.
7043 for ac_prog in grep ggrep; do
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7046 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7047 # Check for GNU ac_path_GREP and select it if it is found.
7048 # Check for GNU $ac_path_GREP
7049 case `"$ac_path_GREP" --version 2>&1` in
7051 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7054 $as_echo_n 0123456789 >"conftest.in"
7057 cat "conftest.in" "conftest.in" >"conftest.tmp"
7058 mv "conftest.tmp" "conftest.in"
7059 cp "conftest.in" "conftest.nl"
7060 $as_echo 'GREP' >> "conftest.nl"
7061 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7063 as_fn_arith $ac_count + 1 && ac_count=$as_val
7064 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7065 # Best one so far, save it but keep looking for a better one
7066 ac_cv_path_GREP="$ac_path_GREP"
7067 ac_path_GREP_max=$ac_count
7069 # 10*(2^10) chars as input seems more than enough
7070 test $ac_count -gt 10 && break
7072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7075 $ac_path_GREP_found && break 3
7080 if test -z "$ac_cv_path_GREP"; then
7081 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7084 ac_cv_path_GREP=$GREP
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7089 $as_echo "$ac_cv_path_GREP" >&6; }
7090 GREP="$ac_cv_path_GREP"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7094 $as_echo_n "checking for egrep... " >&6; }
7095 if test "${ac_cv_path_EGREP+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7099 then ac_cv_path_EGREP="$GREP -E"
7101 if test -z "$EGREP"; then
7102 ac_path_EGREP_found=false
7103 # Loop through the user's path and test for each of PROGNAME-LIST
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7108 test -z "$as_dir" && as_dir=.
7109 for ac_prog in egrep; do
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7113 # Check for GNU ac_path_EGREP and select it if it is found.
7114 # Check for GNU $ac_path_EGREP
7115 case `"$ac_path_EGREP" --version 2>&1` in
7117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7120 $as_echo_n 0123456789 >"conftest.in"
7123 cat "conftest.in" "conftest.in" >"conftest.tmp"
7124 mv "conftest.tmp" "conftest.in"
7125 cp "conftest.in" "conftest.nl"
7126 $as_echo 'EGREP' >> "conftest.nl"
7127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7129 as_fn_arith $ac_count + 1 && ac_count=$as_val
7130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7131 # Best one so far, save it but keep looking for a better one
7132 ac_cv_path_EGREP="$ac_path_EGREP"
7133 ac_path_EGREP_max=$ac_count
7135 # 10*(2^10) chars as input seems more than enough
7136 test $ac_count -gt 10 && break
7138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7141 $ac_path_EGREP_found && break 3
7146 if test -z "$ac_cv_path_EGREP"; then
7147 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7150 ac_cv_path_EGREP=$EGREP
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7156 $as_echo "$ac_cv_path_EGREP" >&6; }
7157 EGREP="$ac_cv_path_EGREP"
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7161 $as_echo_n "checking for fgrep... " >&6; }
7162 if test "${ac_cv_path_FGREP+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7165 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7166 then ac_cv_path_FGREP="$GREP -F"
7168 if test -z "$FGREP"; then
7169 ac_path_FGREP_found=false
7170 # Loop through the user's path and test for each of PROGNAME-LIST
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7175 test -z "$as_dir" && as_dir=.
7176 for ac_prog in fgrep; do
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7179 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7180 # Check for GNU ac_path_FGREP and select it if it is found.
7181 # Check for GNU $ac_path_FGREP
7182 case `"$ac_path_FGREP" --version 2>&1` in
7184 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7187 $as_echo_n 0123456789 >"conftest.in"
7190 cat "conftest.in" "conftest.in" >"conftest.tmp"
7191 mv "conftest.tmp" "conftest.in"
7192 cp "conftest.in" "conftest.nl"
7193 $as_echo 'FGREP' >> "conftest.nl"
7194 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7196 as_fn_arith $ac_count + 1 && ac_count=$as_val
7197 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7198 # Best one so far, save it but keep looking for a better one
7199 ac_cv_path_FGREP="$ac_path_FGREP"
7200 ac_path_FGREP_max=$ac_count
7202 # 10*(2^10) chars as input seems more than enough
7203 test $ac_count -gt 10 && break
7205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7208 $ac_path_FGREP_found && break 3
7213 if test -z "$ac_cv_path_FGREP"; then
7214 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7217 ac_cv_path_FGREP=$FGREP
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7223 $as_echo "$ac_cv_path_FGREP" >&6; }
7224 FGREP="$ac_cv_path_FGREP"
7227 test -z "$GREP" && GREP=grep
7247 # Check whether --with-gnu-ld was given.
7248 if test "${with_gnu_ld+set}" = set; then :
7249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7255 if test "$GCC" = yes; then
7256 # Check if gcc -print-prog-name=ld gives a path.
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7258 $as_echo_n "checking for ld used by $CC... " >&6; }
7261 # gcc leaves a trailing carriage return which upsets mingw
7262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7267 # Accept absolute paths.
7269 re_direlt='/[^/][^/]*/\.\./'
7270 # Canonicalize the pathname of ld
7271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7275 test -z "$LD" && LD="$ac_prog"
7278 # If it fails, then pretend we aren't using GCC.
7282 # If it is relative, then search for the first ld in PATH.
7286 elif test "$with_gnu_ld" = yes; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7288 $as_echo_n "checking for GNU ld... " >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7291 $as_echo_n "checking for non-GNU ld... " >&6; }
7293 if test "${lt_cv_path_LD+set}" = set; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -z "$LD"; then
7297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7298 for ac_dir in $PATH; do
7300 test -z "$ac_dir" && ac_dir=.
7301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7302 lt_cv_path_LD="$ac_dir/$ac_prog"
7303 # Check to see if the program is GNU ld. I'd rather use --version,
7304 # but apparently some variants of GNU ld only accept -v.
7305 # Break only if it was the GNU/non-GNU ld that we prefer.
7306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7307 *GNU* | *'with BFD'*)
7308 test "$with_gnu_ld" != no && break
7311 test "$with_gnu_ld" != yes && break
7318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7323 if test -n "$LD"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7325 $as_echo "$LD" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7330 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7332 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7333 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7337 case `$LD -v 2>&1 </dev/null` in
7338 *GNU* | *'with BFD'*)
7339 lt_cv_prog_gnu_ld=yes
7342 lt_cv_prog_gnu_ld=no
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7347 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7348 with_gnu_ld=$lt_cv_prog_gnu_ld
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7359 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7360 if test "${lt_cv_path_NM+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$NM"; then
7364 # Let the user override the test.
7367 lt_nm_to_check="${ac_tool_prefix}nm"
7368 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7369 lt_nm_to_check="$lt_nm_to_check nm"
7371 for lt_tmp_nm in $lt_nm_to_check; do
7372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7375 test -z "$ac_dir" && ac_dir=.
7376 tmp_nm="$ac_dir/$lt_tmp_nm"
7377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7378 # Check to see if the nm accepts a BSD-compat flag.
7379 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7380 # nm: unknown option "B" ignored
7381 # Tru64's nm complains that /dev/null is an invalid object file
7382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7383 */dev/null* | *'Invalid file or object type'*)
7384 lt_cv_path_NM="$tmp_nm -B"
7388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7390 lt_cv_path_NM="$tmp_nm -p"
7394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7395 continue # so that we can try to find one that supports BSD flags
7404 : ${lt_cv_path_NM=no}
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7408 $as_echo "$lt_cv_path_NM" >&6; }
7409 if test "$lt_cv_path_NM" != "no"; then
7412 # Didn't find any BSD compatible name lister, look for dumpbin.
7413 if test -n "$DUMPBIN"; then :
7414 # Let the user override the test.
7416 if test -n "$ac_tool_prefix"; then
7417 for ac_prog in dumpbin "link -dump"
7419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$DUMPBIN"; then
7427 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 DUMPBIN=$ac_cv_prog_DUMPBIN
7447 if test -n "$DUMPBIN"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7449 $as_echo "$DUMPBIN" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7456 test -n "$DUMPBIN" && break
7459 if test -z "$DUMPBIN"; then
7460 ac_ct_DUMPBIN=$DUMPBIN
7461 for ac_prog in dumpbin "link -dump"
7463 # Extract the first word of "$ac_prog", so it can be a program name with args.
7464 set dummy $ac_prog; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7470 if test -n "$ac_ct_DUMPBIN"; then
7471 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7491 if test -n "$ac_ct_DUMPBIN"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7493 $as_echo "$ac_ct_DUMPBIN" >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 test -n "$ac_ct_DUMPBIN" && break
7503 if test "x$ac_ct_DUMPBIN" = x; then
7506 case $cross_compiling:$ac_tool_warned in
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7512 DUMPBIN=$ac_ct_DUMPBIN
7516 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7518 DUMPBIN="$DUMPBIN -symbols"
7526 if test "$DUMPBIN" != ":"; then
7530 test -z "$NM" && NM=nm
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7538 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7539 if test "${lt_cv_nm_interface+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 lt_cv_nm_interface="BSD nm"
7543 echo "int some_variable = 0;" > conftest.$ac_ext
7544 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7545 (eval "$ac_compile" 2>conftest.err)
7546 cat conftest.err >&5
7547 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7548 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7549 cat conftest.err >&5
7550 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7551 cat conftest.out >&5
7552 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7553 lt_cv_nm_interface="MS dumpbin"
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7558 $as_echo "$lt_cv_nm_interface" >&6; }
7560 # find the maximum length of command line arguments
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7562 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7563 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7571 # On DJGPP, this test can blow up pretty badly due to problems in libc
7572 # (any single argument exceeding 2000 bytes causes a buffer overrun
7573 # during glob expansion). Even if it were fixed, the result of this
7574 # check would be larger than it should be.
7575 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7579 # Under GNU Hurd, this test is not required because there is
7580 # no limit to the length of command line arguments.
7581 # Libtool will interpret -1 as no limit whatsoever
7582 lt_cv_sys_max_cmd_len=-1;
7585 cygwin* | mingw* | cegcc*)
7586 # On Win9x/ME, this test blows up -- it succeeds, but takes
7587 # about 5 minutes as the teststring grows exponentially.
7588 # Worse, since 9x/ME are not pre-emptively multitasking,
7589 # you end up with a "frozen" computer, even though with patience
7590 # the test eventually succeeds (with a max line length of 256k).
7591 # Instead, let's just punt: use the minimum linelength reported by
7592 # all of the supported platforms: 8192 (on NT/2K/XP).
7593 lt_cv_sys_max_cmd_len=8192;
7597 # On MiNT this can take a long time and run out of memory.
7598 lt_cv_sys_max_cmd_len=8192;
7602 # On AmigaOS with pdksh, this test takes hours, literally.
7603 # So we just punt and use a minimum line length of 8192.
7604 lt_cv_sys_max_cmd_len=8192;
7607 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7608 # This has been around since 386BSD, at least. Likely further.
7609 if test -x /sbin/sysctl; then
7610 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7611 elif test -x /usr/sbin/sysctl; then
7612 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7614 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7616 # And add a safety zone
7617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7622 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7623 lt_cv_sys_max_cmd_len=196608
7627 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7628 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7629 # nice to cause kernel panics so lets avoid the loop below.
7630 # First set a reasonable default.
7631 lt_cv_sys_max_cmd_len=16384
7633 if test -x /sbin/sysconfig; then
7634 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7635 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7640 lt_cv_sys_max_cmd_len=102400
7642 sysv5* | sco5v6* | sysv4.2uw2*)
7643 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7644 if test -n "$kargmax"; then
7645 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7647 lt_cv_sys_max_cmd_len=32768
7651 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7652 if test -n "$lt_cv_sys_max_cmd_len"; then
7653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7656 # Make teststring a little bigger before we do anything with it.
7657 # a 1K string should be a reasonable start.
7658 for i in 1 2 3 4 5 6 7 8 ; do
7659 teststring=$teststring$teststring
7661 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7662 # If test is not a shell built-in, we'll probably end up computing a
7663 # maximum length that is only half of the actual maximum length, but
7665 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7666 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7667 test $i != 17 # 1/2 MB should be enough
7670 teststring=$teststring$teststring
7672 # Only check the string length outside the loop.
7673 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7675 # Add a significant safety factor because C++ compilers can tack on
7676 # massive amounts of additional arguments before passing them to the
7677 # linker. It appears as though 1/2 is a usable value.
7678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7685 if test -n $lt_cv_sys_max_cmd_len ; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7687 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7690 $as_echo "none" >&6; }
7692 max_cmd_len=$lt_cv_sys_max_cmd_len
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7704 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7705 # Try some XSI features
7708 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7710 && eval 'test $(( 1 + 1 )) -eq 2 \
7711 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7714 $as_echo "$xsi_shell" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7718 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7720 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7722 && lt_shell_append=yes
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7724 $as_echo "$lt_shell_append" >&6; }
7727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7737 # test EBCDIC or ASCII
7738 case `echo X|tr X '\101'` in
7739 A) # ASCII based system
7740 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7741 lt_SP2NL='tr \040 \012'
7742 lt_NL2SP='tr \015\012 \040\040'
7744 *) # EBCDIC based system
7745 lt_SP2NL='tr \100 \n'
7746 lt_NL2SP='tr \r\n \100\100'
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7759 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7760 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7761 $as_echo_n "(cached) " >&6
7763 lt_cv_ld_reload_flag='-r'
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7766 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7767 reload_flag=$lt_cv_ld_reload_flag
7768 case $reload_flag in
7770 *) reload_flag=" $reload_flag" ;;
7772 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7775 if test "$GCC" = yes; then
7776 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$OBJDUMP"; then
7800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 OBJDUMP=$ac_cv_prog_OBJDUMP
7820 if test -n "$OBJDUMP"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7822 $as_echo "$OBJDUMP" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7830 if test -z "$ac_cv_prog_OBJDUMP"; then
7831 ac_ct_OBJDUMP=$OBJDUMP
7832 # Extract the first word of "objdump", so it can be a program name with args.
7833 set dummy objdump; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7839 if test -n "$ac_ct_OBJDUMP"; then
7840 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7860 if test -n "$ac_ct_OBJDUMP"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7862 $as_echo "$ac_ct_OBJDUMP" >&6; }
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7868 if test "x$ac_ct_OBJDUMP" = x; then
7871 case $cross_compiling:$ac_tool_warned in
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7877 OBJDUMP=$ac_ct_OBJDUMP
7880 OBJDUMP="$ac_cv_prog_OBJDUMP"
7883 test -z "$OBJDUMP" && OBJDUMP=objdump
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7894 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7895 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7898 lt_cv_file_magic_cmd='$MAGIC_CMD'
7899 lt_cv_file_magic_test_file=
7900 lt_cv_deplibs_check_method='unknown'
7901 # Need to set the preceding variable on all platforms that support
7902 # interlibrary dependencies.
7903 # 'none' -- dependencies not supported.
7904 # `unknown' -- same as none, but documents that we really don't know.
7905 # 'pass_all' -- all dependencies passed with no checks.
7906 # 'test_compile' -- check by making test program.
7907 # 'file_magic [[regex]]' -- check by looking for files in library path
7908 # which responds to the $file_magic_cmd with a given extended regex.
7909 # If you have `file' or equivalent on your system and you're not sure
7910 # whether `pass_all' will *always* work, you probably want this one.
7914 lt_cv_deplibs_check_method=pass_all
7918 lt_cv_deplibs_check_method=pass_all
7922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7923 lt_cv_file_magic_cmd='/usr/bin/file -L'
7924 lt_cv_file_magic_test_file=/shlib/libc.so
7928 # func_win32_libid is a shell function defined in ltmain.sh
7929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7930 lt_cv_file_magic_cmd='func_win32_libid'
7934 # Base MSYS/MinGW do not provide the 'file' command needed by
7935 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7936 # unless we find 'file', for example because we are cross-compiling.
7937 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7938 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7940 lt_cv_file_magic_cmd='func_win32_libid'
7942 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7943 lt_cv_file_magic_cmd='$OBJDUMP -f'
7948 # use the weaker test based on 'objdump'. See mingw*.
7949 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7950 lt_cv_file_magic_cmd='$OBJDUMP -f'
7953 darwin* | rhapsody*)
7954 lt_cv_deplibs_check_method=pass_all
7957 freebsd* | dragonfly*)
7958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7961 # Not sure whether the presence of OpenBSD here was a mistake.
7962 # Let's accept both of them until this is cleared up.
7963 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7964 lt_cv_file_magic_cmd=/usr/bin/file
7965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7969 lt_cv_deplibs_check_method=pass_all
7974 lt_cv_deplibs_check_method=pass_all
7978 lt_cv_deplibs_check_method=pass_all
7981 hpux10.20* | hpux11*)
7982 lt_cv_file_magic_cmd=/usr/bin/file
7985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7986 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7989 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]'
7990 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7994 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8000 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8004 irix5* | irix6* | nonstopux*)
8006 *-32|*"-32 ") libmagic=32-bit;;
8007 *-n32|*"-n32 ") libmagic=N32;;
8008 *-64|*"-64 ") libmagic=64-bit;;
8009 *) libmagic=never-match;;
8011 lt_cv_deplibs_check_method=pass_all
8014 # This must be Linux ELF.
8015 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8016 lt_cv_deplibs_check_method=pass_all
8020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8029 lt_cv_file_magic_cmd=/usr/bin/file
8030 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8034 lt_cv_deplibs_check_method=pass_all
8038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8045 osf3* | osf4* | osf5*)
8046 lt_cv_deplibs_check_method=pass_all
8050 lt_cv_deplibs_check_method=pass_all
8054 lt_cv_deplibs_check_method=pass_all
8057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8058 lt_cv_deplibs_check_method=pass_all
8062 case $host_vendor in
8064 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]'
8065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8068 lt_cv_deplibs_check_method=pass_all
8071 lt_cv_file_magic_cmd='/bin/file'
8072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8075 lt_cv_file_magic_cmd='/bin/file'
8076 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8077 lt_cv_file_magic_test_file=/lib/libc.so
8080 lt_cv_deplibs_check_method=pass_all
8083 lt_cv_deplibs_check_method=pass_all
8089 lt_cv_deplibs_check_method=pass_all
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8095 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8096 file_magic_cmd=$lt_cv_file_magic_cmd
8097 deplibs_check_method=$lt_cv_deplibs_check_method
8098 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8111 if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}ar; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_AR+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$AR"; then
8120 ac_cv_prog_AR="$AR" # Let the user override the test.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_AR="${ac_tool_prefix}ar"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 if test -n "$AR"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8142 $as_echo "$AR" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8150 if test -z "$ac_cv_prog_AR"; then
8152 # Extract the first word of "ar", so it can be a program name with args.
8153 set dummy ar; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8159 if test -n "$ac_ct_AR"; then
8160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_ac_ct_AR="ar"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8180 if test -n "$ac_ct_AR"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8182 $as_echo "$ac_ct_AR" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8188 if test "x$ac_ct_AR" = x; then
8191 case $cross_compiling:$ac_tool_warned in
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8195 ac_tool_warned=yes ;;
8203 test -z "$AR" && AR=ar
8204 test -z "$AR_FLAGS" && AR_FLAGS=cru
8216 if test -n "$ac_tool_prefix"; then
8217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8218 set dummy ${ac_tool_prefix}strip; ac_word=$2
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if test "${ac_cv_prog_STRIP+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8224 if test -n "$STRIP"; then
8225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 STRIP=$ac_cv_prog_STRIP
8245 if test -n "$STRIP"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8247 $as_echo "$STRIP" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 if test -z "$ac_cv_prog_STRIP"; then
8257 # Extract the first word of "strip", so it can be a program name with args.
8258 set dummy strip; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8264 if test -n "$ac_ct_STRIP"; then
8265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_prog_ac_ct_STRIP="strip"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8285 if test -n "$ac_ct_STRIP"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8287 $as_echo "$ac_ct_STRIP" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8293 if test "x$ac_ct_STRIP" = x; then
8296 case $cross_compiling:$ac_tool_warned in
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8300 ac_tool_warned=yes ;;
8305 STRIP="$ac_cv_prog_STRIP"
8308 test -z "$STRIP" && STRIP=:
8315 if test -n "$ac_tool_prefix"; then
8316 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8323 if test -n "$RANLIB"; then
8324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 RANLIB=$ac_cv_prog_RANLIB
8344 if test -n "$RANLIB"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8346 $as_echo "$RANLIB" >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8354 if test -z "$ac_cv_prog_RANLIB"; then
8355 ac_ct_RANLIB=$RANLIB
8356 # Extract the first word of "ranlib", so it can be a program name with args.
8357 set dummy ranlib; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8363 if test -n "$ac_ct_RANLIB"; then
8364 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_ac_ct_RANLIB="ranlib"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8384 if test -n "$ac_ct_RANLIB"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8386 $as_echo "$ac_ct_RANLIB" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8392 if test "x$ac_ct_RANLIB" = x; then
8395 case $cross_compiling:$ac_tool_warned in
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399 ac_tool_warned=yes ;;
8401 RANLIB=$ac_ct_RANLIB
8404 RANLIB="$ac_cv_prog_RANLIB"
8407 test -z "$RANLIB" && RANLIB=:
8414 # Determine commands to create old-style static archives.
8415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8416 old_postinstall_cmds='chmod 644 $oldlib'
8417 old_postuninstall_cmds=
8419 if test -n "$RANLIB"; then
8422 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8425 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8428 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8433 lock_old_archive_extraction=yes ;;
8435 lock_old_archive_extraction=no ;;
8476 # If no C compiler was specified, use CC.
8479 # If no C compiler flags were specified, use CFLAGS.
8480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8482 # Allow CC to be a program name with arguments.
8486 # Check for command to grab the raw symbol name followed by C symbol from nm.
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8488 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8489 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8493 # These are sane defaults that work on at least a few old systems.
8494 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8496 # Character class describing NM global symbol codes.
8497 symcode='[BCDEGRST]'
8499 # Regexp to match symbols that can be accessed directly from C.
8500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8502 # Define system-specific variables.
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 symcode='[ABCDGISTW]'
8511 if test "$host_cpu" = ia64; then
8512 symcode='[ABCDEGRST]'
8516 symcode='[BCDEGRST]'
8519 symcode='[BCDEGQRST]'
8530 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8538 # If we're using GNU nm, then use its standard symbol codes.
8539 case `$NM -V 2>&1` in
8540 *GNU* | *'with BFD'*)
8541 symcode='[ABCDGIRSTW]' ;;
8544 # Transform an extracted symbol line into a proper C declaration.
8545 # Some systems (esp. on ia64) link data and code symbols differently,
8546 # so use this general approach.
8547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8549 # Transform an extracted symbol line into symbol name and symbol address
8550 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8551 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'"
8553 # Handle CRLF in mingw tool chain
8557 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8561 # Try without a prefix underscore, then with it.
8562 for ac_symprfx in "" "_"; do
8564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8565 symxfrm="\\1 $ac_symprfx\\2 \\2"
8567 # Write the raw and C identifiers.
8568 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8569 # Fake it for dumpbin and say T for any non-static function
8570 # and D for any global variable.
8571 # Also find C++ and __fastcall symbols from MSVC++,
8572 # which start with @ or ?.
8573 lt_cv_sys_global_symbol_pipe="$AWK '"\
8574 " {last_section=section; section=\$ 3};"\
8575 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8576 " \$ 0!~/External *\|/{next};"\
8577 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8578 " {if(hide[section]) next};"\
8579 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8580 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8581 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8582 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8583 " ' prfx=^$ac_symprfx"
8585 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8588 # Check to see that the pipe works correctly.
8592 cat > conftest.$ac_ext <<_LT_EOF
8597 void nm_test_func(void);
8598 void nm_test_func(void){}
8602 int main(){nm_test_var='a';nm_test_func();return(0);}
8605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8606 (eval $ac_compile) 2>&5
8608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8609 test $ac_status = 0; }; then
8610 # Now try to grab the symbols.
8612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8613 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8616 test $ac_status = 0; } && test -s "$nlist"; then
8617 # Try sorting and uniquifying the output.
8618 if sort "$nlist" | uniq > "$nlist"T; then
8619 mv -f "$nlist"T "$nlist"
8624 # Make sure that we snagged all the symbols we need.
8625 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8626 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8627 cat <<_LT_EOF > conftest.$ac_ext
8633 # Now generate the symbol file.
8634 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8636 cat <<_LT_EOF >> conftest.$ac_ext
8638 /* The mapping between symbol names and symbols. */
8643 lt__PROGRAM__LTX_preloaded_symbols[] =
8645 { "@PROGRAM@", (void *) 0 },
8647 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8648 cat <<\_LT_EOF >> conftest.$ac_ext
8652 /* This works around a problem in FreeBSD linker */
8653 #ifdef FREEBSD_WORKAROUND
8654 static const void *lt_preloaded_setup() {
8655 return lt__PROGRAM__LTX_preloaded_symbols;
8663 # Now try linking the two files.
8664 mv conftest.$ac_objext conftstm.$ac_objext
8665 lt_save_LIBS="$LIBS"
8666 lt_save_CFLAGS="$CFLAGS"
8667 LIBS="conftstm.$ac_objext"
8668 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8670 (eval $ac_link) 2>&5
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8676 LIBS="$lt_save_LIBS"
8677 CFLAGS="$lt_save_CFLAGS"
8679 echo "cannot find nm_test_func in $nlist" >&5
8682 echo "cannot find nm_test_var in $nlist" >&5
8685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8688 echo "$progname: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8691 rm -rf conftest* conftst*
8693 # Do not use the global_symbol_pipe unless it works.
8694 if test "$pipe_works" = yes; then
8697 lt_cv_sys_global_symbol_pipe=
8703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8704 lt_cv_sys_global_symbol_to_cdecl=
8706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8708 $as_echo "failed" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8711 $as_echo "ok" >&6; }
8736 # Check whether --enable-libtool-lock was given.
8737 if test "${enable_libtool_lock+set}" = set; then :
8738 enableval=$enable_libtool_lock;
8741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8743 # Some flags need to be propagated to the compiler or linker for good
8747 # Find out which ABI we are using.
8748 echo 'int i;' > conftest.$ac_ext
8749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8750 (eval $ac_compile) 2>&5
8752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8753 test $ac_status = 0; }; then
8754 case `/usr/bin/file conftest.$ac_objext` in
8766 # Find out which ABI we are using.
8767 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8769 (eval $ac_compile) 2>&5
8771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8772 test $ac_status = 0; }; then
8773 if test "$lt_cv_prog_gnu_ld" = yes; then
8774 case `/usr/bin/file conftest.$ac_objext` in
8776 LD="${LD-ld} -melf32bsmip"
8779 LD="${LD-ld} -melf32bmipn32"
8782 LD="${LD-ld} -melf64bmip"
8786 case `/usr/bin/file conftest.$ac_objext` in
8802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8803 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8804 # Find out which ABI we are using.
8805 echo 'int i;' > conftest.$ac_ext
8806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8807 (eval $ac_compile) 2>&5
8809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8810 test $ac_status = 0; }; then
8811 case `/usr/bin/file conftest.o` in
8814 x86_64-*kfreebsd*-gnu)
8815 LD="${LD-ld} -m elf_i386_fbsd"
8818 LD="${LD-ld} -m elf_i386"
8820 ppc64-*linux*|powerpc64-*linux*)
8821 LD="${LD-ld} -m elf32ppclinux"
8824 LD="${LD-ld} -m elf_s390"
8827 LD="${LD-ld} -m elf32_sparc"
8833 x86_64-*kfreebsd*-gnu)
8834 LD="${LD-ld} -m elf_x86_64_fbsd"
8837 LD="${LD-ld} -m elf_x86_64"
8839 ppc*-*linux*|powerpc*-*linux*)
8840 LD="${LD-ld} -m elf64ppc"
8842 s390*-*linux*|s390*-*tpf*)
8843 LD="${LD-ld} -m elf64_s390"
8846 LD="${LD-ld} -m elf64_sparc"
8856 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8857 SAVE_CFLAGS="$CFLAGS"
8858 CFLAGS="$CFLAGS -belf"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8861 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8870 if test x$gcc_no_link = xyes; then
8871 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8884 if ac_fn_c_try_link "$LINENO"; then :
8885 lt_cv_cc_needs_belf=yes
8887 lt_cv_cc_needs_belf=no
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8892 ac_cpp='$CPP $CPPFLAGS'
8893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8899 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8900 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8901 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8902 CFLAGS="$SAVE_CFLAGS"
8906 # Find out which ABI we are using.
8907 echo 'int i;' > conftest.$ac_ext
8908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8909 (eval $ac_compile) 2>&5
8911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912 test $ac_status = 0; }; then
8913 case `/usr/bin/file conftest.o` in
8915 case $lt_cv_prog_gnu_ld in
8916 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8918 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8930 need_locks="$enable_libtool_lock"
8934 rhapsody* | darwin*)
8935 if test -n "$ac_tool_prefix"; then
8936 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8943 if test -n "$DSYMUTIL"; then
8944 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8964 if test -n "$DSYMUTIL"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8966 $as_echo "$DSYMUTIL" >&6; }
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8974 if test -z "$ac_cv_prog_DSYMUTIL"; then
8975 ac_ct_DSYMUTIL=$DSYMUTIL
8976 # Extract the first word of "dsymutil", so it can be a program name with args.
8977 set dummy dsymutil; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 if test -n "$ac_ct_DSYMUTIL"; then
8984 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9004 if test -n "$ac_ct_DSYMUTIL"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9006 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9012 if test "x$ac_ct_DSYMUTIL" = x; then
9015 case $cross_compiling:$ac_tool_warned in
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9019 ac_tool_warned=yes ;;
9021 DSYMUTIL=$ac_ct_DSYMUTIL
9024 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9027 if test -n "$ac_tool_prefix"; then
9028 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9029 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9035 if test -n "$NMEDIT"; then
9036 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 NMEDIT=$ac_cv_prog_NMEDIT
9056 if test -n "$NMEDIT"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9058 $as_echo "$NMEDIT" >&6; }
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9066 if test -z "$ac_cv_prog_NMEDIT"; then
9067 ac_ct_NMEDIT=$NMEDIT
9068 # Extract the first word of "nmedit", so it can be a program name with args.
9069 set dummy nmedit; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9075 if test -n "$ac_ct_NMEDIT"; then
9076 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9096 if test -n "$ac_ct_NMEDIT"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9098 $as_echo "$ac_ct_NMEDIT" >&6; }
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9104 if test "x$ac_ct_NMEDIT" = x; then
9107 case $cross_compiling:$ac_tool_warned in
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9111 ac_tool_warned=yes ;;
9113 NMEDIT=$ac_ct_NMEDIT
9116 NMEDIT="$ac_cv_prog_NMEDIT"
9119 if test -n "$ac_tool_prefix"; then
9120 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9121 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if test "${ac_cv_prog_LIPO+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9127 if test -n "$LIPO"; then
9128 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9137 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 LIPO=$ac_cv_prog_LIPO
9148 if test -n "$LIPO"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9150 $as_echo "$LIPO" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9158 if test -z "$ac_cv_prog_LIPO"; then
9160 # Extract the first word of "lipo", so it can be a program name with args.
9161 set dummy lipo; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9167 if test -n "$ac_ct_LIPO"; then
9168 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177 ac_cv_prog_ac_ct_LIPO="lipo"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9188 if test -n "$ac_ct_LIPO"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9190 $as_echo "$ac_ct_LIPO" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9196 if test "x$ac_ct_LIPO" = x; then
9199 case $cross_compiling:$ac_tool_warned in
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9203 ac_tool_warned=yes ;;
9208 LIPO="$ac_cv_prog_LIPO"
9211 if test -n "$ac_tool_prefix"; then
9212 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9213 set dummy ${ac_tool_prefix}otool; ac_word=$2
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215 $as_echo_n "checking for $ac_word... " >&6; }
9216 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
9219 if test -n "$OTOOL"; then
9220 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 OTOOL=$ac_cv_prog_OTOOL
9240 if test -n "$OTOOL"; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9242 $as_echo "$OTOOL" >&6; }
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 $as_echo "no" >&6; }
9250 if test -z "$ac_cv_prog_OTOOL"; then
9252 # Extract the first word of "otool", so it can be a program name with args.
9253 set dummy otool; ac_word=$2
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9255 $as_echo_n "checking for $ac_word... " >&6; }
9256 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9259 if test -n "$ac_ct_OTOOL"; then
9260 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_prog_ac_ct_OTOOL="otool"
9270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9280 if test -n "$ac_ct_OTOOL"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9282 $as_echo "$ac_ct_OTOOL" >&6; }
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9288 if test "x$ac_ct_OTOOL" = x; then
9291 case $cross_compiling:$ac_tool_warned in
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9295 ac_tool_warned=yes ;;
9300 OTOOL="$ac_cv_prog_OTOOL"
9303 if test -n "$ac_tool_prefix"; then
9304 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9305 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307 $as_echo_n "checking for $ac_word... " >&6; }
9308 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9311 if test -n "$OTOOL64"; then
9312 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318 test -z "$as_dir" && as_dir=.
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 OTOOL64=$ac_cv_prog_OTOOL64
9332 if test -n "$OTOOL64"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9334 $as_echo "$OTOOL64" >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9342 if test -z "$ac_cv_prog_OTOOL64"; then
9343 ac_ct_OTOOL64=$OTOOL64
9344 # Extract the first word of "otool64", so it can be a program name with args.
9345 set dummy otool64; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9351 if test -n "$ac_ct_OTOOL64"; then
9352 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361 ac_cv_prog_ac_ct_OTOOL64="otool64"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9372 if test -n "$ac_ct_OTOOL64"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9374 $as_echo "$ac_ct_OTOOL64" >&6; }
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9380 if test "x$ac_ct_OTOOL64" = x; then
9383 case $cross_compiling:$ac_tool_warned in
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9387 ac_tool_warned=yes ;;
9389 OTOOL64=$ac_ct_OTOOL64
9392 OTOOL64="$ac_cv_prog_OTOOL64"
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9422 $as_echo_n "checking for -single_module linker flag... " >&6; }
9423 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9426 lt_cv_apple_cc_single_mod=no
9427 if test -z "${LT_MULTI_MODULE}"; then
9428 # By default we will add the -single_module flag. You can override
9429 # by either setting the environment variable LT_MULTI_MODULE
9430 # non-empty at configure time, or by adding -multi_module to the
9432 rm -rf libconftest.dylib*
9433 echo "int foo(void){return 1;}" > conftest.c
9434 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9435 -dynamiclib -Wl,-single_module conftest.c" >&5
9436 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9437 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9439 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9440 lt_cv_apple_cc_single_mod=yes
9442 cat conftest.err >&5
9444 rm -rf libconftest.dylib*
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9449 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9451 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9452 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9453 $as_echo_n "(cached) " >&6
9455 lt_cv_ld_exported_symbols_list=no
9456 save_LDFLAGS=$LDFLAGS
9457 echo "_main" > conftest.sym
9458 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9459 if test x$gcc_no_link = xyes; then
9460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9473 if ac_fn_c_try_link "$LINENO"; then :
9474 lt_cv_ld_exported_symbols_list=yes
9476 lt_cv_ld_exported_symbols_list=no
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 LDFLAGS="$save_LDFLAGS"
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9484 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9486 $as_echo_n "checking for -force_load linker flag... " >&6; }
9487 if test "${lt_cv_ld_force_load+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9490 lt_cv_ld_force_load=no
9491 cat > conftest.c << _LT_EOF
9492 int forced_loaded() { return 2;}
9494 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9495 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9496 echo "$AR cru libconftest.a conftest.o" >&5
9497 $AR cru libconftest.a conftest.o 2>&5
9498 cat > conftest.c << _LT_EOF
9499 int main() { return 0;}
9501 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9502 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9504 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9505 lt_cv_ld_force_load=yes
9507 cat conftest.err >&5
9509 rm -f conftest.err libconftest.a conftest conftest.c
9510 rm -rf conftest.dSYM
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9514 $as_echo "$lt_cv_ld_force_load" >&6; }
9516 rhapsody* | darwin1.[012])
9517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9520 darwin*) # darwin 5.x on
9521 # if running on 10.5 or later, the deployment target defaults
9522 # to the OS version, if on x86, and 10.4, the deployment
9523 # target defaults to 10.4. Don't you love it?
9524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9525 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9535 _lt_dar_single_mod='$single_module'
9537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9540 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9542 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9543 _lt_dsymutil='~$DSYMUTIL $lib || :'
9551 ac_cpp='$CPP $CPPFLAGS'
9552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9557 # On Suns, sometimes $CPP names a directory.
9558 if test -n "$CPP" && test -d "$CPP"; then
9561 if test -z "$CPP"; then
9562 if test "${ac_cv_prog_CPP+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9565 # Double quotes because CPP needs to be expanded
9566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9569 for ac_c_preproc_warn_flag in '' yes
9571 # Use a header file that comes with gcc, so configuring glibc
9572 # with a fresh cross-compiler works.
9573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9574 # <limits.h> exists even on freestanding compilers.
9575 # On the NeXT, cc -E runs the code through the compiler's parser,
9576 # not just through cpp. "Syntax error" is here to catch this case.
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9580 # include <limits.h>
9582 # include <assert.h>
9586 if ac_fn_c_try_cpp "$LINENO"; then :
9589 # Broken: fails on valid input.
9592 rm -f conftest.err conftest.$ac_ext
9594 # OK, works on sane cases. Now check whether nonexistent headers
9595 # can be detected and how.
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #include <ac_nonexistent.h>
9600 if ac_fn_c_try_cpp "$LINENO"; then :
9601 # Broken: success on invalid input.
9604 # Passes both tests.
9608 rm -f conftest.err conftest.$ac_ext
9611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9612 rm -f conftest.err conftest.$ac_ext
9613 if $ac_preproc_ok; then :
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9626 $as_echo "$CPP" >&6; }
9628 for ac_c_preproc_warn_flag in '' yes
9630 # Use a header file that comes with gcc, so configuring glibc
9631 # with a fresh cross-compiler works.
9632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633 # <limits.h> exists even on freestanding compilers.
9634 # On the NeXT, cc -E runs the code through the compiler's parser,
9635 # not just through cpp. "Syntax error" is here to catch this case.
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 # include <limits.h>
9641 # include <assert.h>
9645 if ac_fn_c_try_cpp "$LINENO"; then :
9648 # Broken: fails on valid input.
9651 rm -f conftest.err conftest.$ac_ext
9653 # OK, works on sane cases. Now check whether nonexistent headers
9654 # can be detected and how.
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 #include <ac_nonexistent.h>
9659 if ac_fn_c_try_cpp "$LINENO"; then :
9660 # Broken: success on invalid input.
9663 # Passes both tests.
9667 rm -f conftest.err conftest.$ac_ext
9670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9671 rm -f conftest.err conftest.$ac_ext
9672 if $ac_preproc_ok; then :
9675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9677 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9678 See \`config.log' for more details." "$LINENO" 5; }
9682 ac_cpp='$CPP $CPPFLAGS'
9683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9689 $as_echo_n "checking for ANSI C header files... " >&6; }
9690 if test "${ac_cv_header_stdc+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9708 if ac_fn_c_try_compile "$LINENO"; then :
9709 ac_cv_header_stdc=yes
9711 ac_cv_header_stdc=no
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715 if test $ac_cv_header_stdc = yes; then
9716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9723 $EGREP "memchr" >/dev/null 2>&1; then :
9726 ac_cv_header_stdc=no
9732 if test $ac_cv_header_stdc = yes; then
9733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9740 $EGREP "free" >/dev/null 2>&1; then :
9743 ac_cv_header_stdc=no
9749 if test $ac_cv_header_stdc = yes; then
9750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9751 if test "$cross_compiling" = yes; then :
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9758 #if ((' ' & 0x0FF) == 0x020)
9759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9762 # define ISLOWER(c) \
9763 (('a' <= (c) && (c) <= 'i') \
9764 || ('j' <= (c) && (c) <= 'r') \
9765 || ('s' <= (c) && (c) <= 'z'))
9766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9774 for (i = 0; i < 256; i++)
9775 if (XOR (islower (i), ISLOWER (i))
9776 || toupper (i) != TOUPPER (i))
9781 if ac_fn_c_try_run "$LINENO"; then :
9784 ac_cv_header_stdc=no
9786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9787 conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9793 $as_echo "$ac_cv_header_stdc" >&6; }
9794 if test $ac_cv_header_stdc = yes; then
9796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9802 inttypes.h stdint.h unistd.h
9804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9807 eval as_val=\$$as_ac_Header
9808 if test "x$as_val" = x""yes; then :
9809 cat >>confdefs.h <<_ACEOF
9810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9818 for ac_header in dlfcn.h
9820 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9822 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9823 cat >>confdefs.h <<_ACEOF
9824 #define HAVE_DLFCN_H 1
9844 # Check whether --enable-shared was given.
9845 if test "${enable_shared+set}" = set; then :
9846 enableval=$enable_shared; p=${PACKAGE-default}
9848 yes) enable_shared=yes ;;
9849 no) enable_shared=no ;;
9852 # Look at the argument we got. We use all the common list separators.
9853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9854 for pkg in $enableval; do
9856 if test "X$pkg" = "X$p"; then
9875 # Check whether --enable-static was given.
9876 if test "${enable_static+set}" = set; then :
9877 enableval=$enable_static; p=${PACKAGE-default}
9879 yes) enable_static=yes ;;
9880 no) enable_static=no ;;
9883 # Look at the argument we got. We use all the common list separators.
9884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9885 for pkg in $enableval; do
9887 if test "X$pkg" = "X$p"; then
9907 # Check whether --with-pic was given.
9908 if test "${with_pic+set}" = set; then :
9909 withval=$with_pic; pic_mode="$withval"
9915 test -z "$pic_mode" && pic_mode=default
9923 # Check whether --enable-fast-install was given.
9924 if test "${enable_fast_install+set}" = set; then :
9925 enableval=$enable_fast_install; p=${PACKAGE-default}
9927 yes) enable_fast_install=yes ;;
9928 no) enable_fast_install=no ;;
9930 enable_fast_install=no
9931 # Look at the argument we got. We use all the common list separators.
9932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9933 for pkg in $enableval; do
9935 if test "X$pkg" = "X$p"; then
9936 enable_fast_install=yes
9943 enable_fast_install=yes
9956 # This can be used to rebuild libtool when needed
9957 LIBTOOL_DEPS="$ltmain"
9959 # Always use our own libtool.
9960 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9987 test -z "$LN_S" && LN_S="ln -s"
10002 if test -n "${ZSH_VERSION+set}" ; then
10003 setopt NO_GLOB_SUBST
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10007 $as_echo_n "checking for objdir... " >&6; }
10008 if test "${lt_cv_objdir+set}" = set; then :
10009 $as_echo_n "(cached) " >&6
10011 rm -f .libs 2>/dev/null
10012 mkdir .libs 2>/dev/null
10013 if test -d .libs; then
10016 # MS-DOS does not allow filenames that begin with a dot.
10019 rmdir .libs 2>/dev/null
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10022 $as_echo "$lt_cv_objdir" >&6; }
10023 objdir=$lt_cv_objdir
10029 cat >>confdefs.h <<_ACEOF
10030 #define LT_OBJDIR "$lt_cv_objdir/"
10038 # AIX sometimes has problems with the GCC collect2 program. For some
10039 # reason, if we set the COLLECT_NAMES environment variable, the problems
10040 # vanish in a puff of smoke.
10041 if test "X${COLLECT_NAMES+set}" != Xset; then
10043 export COLLECT_NAMES
10048 # Global variables:
10050 can_build_shared=yes
10052 # All known linkers require a `.a' archive for static linking (except MSVC,
10053 # which needs '.lib').
10056 with_gnu_ld="$lt_cv_prog_gnu_ld"
10059 old_CFLAGS="$CFLAGS"
10061 # Set sane defaults for various variables
10062 test -z "$CC" && CC=cc
10063 test -z "$LTCC" && LTCC=$CC
10064 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10065 test -z "$LD" && LD=ld
10066 test -z "$ac_objext" && ac_objext=o
10068 for cc_temp in $compiler""; do
10070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10076 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10079 # Only perform the check for file, if the check method requires it
10080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10081 case $deplibs_check_method in
10083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10085 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10086 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10094 lt_save_MAGIC_CMD="$MAGIC_CMD"
10095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10097 for ac_dir in $ac_dummy; do
10099 test -z "$ac_dir" && ac_dir=.
10100 if test -f $ac_dir/${ac_tool_prefix}file; then
10101 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10102 if test -n "$file_magic_test_file"; then
10103 case $deplibs_check_method in
10105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10108 $EGREP "$file_magic_regex" > /dev/null; then
10113 *** Warning: the command libtool uses to detect shared libraries,
10114 *** $file_magic_cmd, produces output that libtool cannot recognize.
10115 *** The result is that libtool may fail to recognize shared libraries
10116 *** as such. This will affect the creation of libtool libraries that
10117 *** depend on shared libraries, but programs linked with such libtool
10118 *** libraries will work regardless of this problem. Nevertheless, you
10119 *** may want to report the problem to your system manager and/or to
10120 *** bug-libtool@gnu.org
10130 MAGIC_CMD="$lt_save_MAGIC_CMD"
10135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10136 if test -n "$MAGIC_CMD"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10138 $as_echo "$MAGIC_CMD" >&6; }
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10148 if test -z "$lt_cv_path_MAGIC_CMD"; then
10149 if test -n "$ac_tool_prefix"; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10151 $as_echo_n "checking for file... " >&6; }
10152 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10153 $as_echo_n "(cached) " >&6
10157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10160 lt_save_MAGIC_CMD="$MAGIC_CMD"
10161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10163 for ac_dir in $ac_dummy; do
10165 test -z "$ac_dir" && ac_dir=.
10166 if test -f $ac_dir/file; then
10167 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10168 if test -n "$file_magic_test_file"; then
10169 case $deplibs_check_method in
10171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10174 $EGREP "$file_magic_regex" > /dev/null; then
10179 *** Warning: the command libtool uses to detect shared libraries,
10180 *** $file_magic_cmd, produces output that libtool cannot recognize.
10181 *** The result is that libtool may fail to recognize shared libraries
10182 *** as such. This will affect the creation of libtool libraries that
10183 *** depend on shared libraries, but programs linked with such libtool
10184 *** libraries will work regardless of this problem. Nevertheless, you
10185 *** may want to report the problem to your system manager and/or to
10186 *** bug-libtool@gnu.org
10196 MAGIC_CMD="$lt_save_MAGIC_CMD"
10201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10202 if test -n "$MAGIC_CMD"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10204 $as_echo "$MAGIC_CMD" >&6; }
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10220 # Use C for the default configuration in the libtool script
10224 ac_cpp='$CPP $CPPFLAGS'
10225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10230 # Source file extension for C test sources.
10233 # Object file extension for compiled C test sources.
10237 # Code to be used in simple compile tests
10238 lt_simple_compile_test_code="int some_variable = 0;"
10240 # Code to be used in simple link tests
10241 lt_simple_link_test_code='int main(){return(0);}'
10249 # If no C compiler was specified, use CC.
10252 # If no C compiler flags were specified, use CFLAGS.
10253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10255 # Allow CC to be a program name with arguments.
10258 # Save the default compiler, since it gets overwritten when the other
10259 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10260 compiler_DEFAULT=$CC
10262 # save warnings/boilerplate of simple test code
10263 ac_outfile=conftest.$ac_objext
10264 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10266 _lt_compiler_boilerplate=`cat conftest.err`
10269 ac_outfile=conftest.$ac_objext
10270 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10272 _lt_linker_boilerplate=`cat conftest.err`
10277 ## There is no encapsulation within the following macros, do not change
10278 ## the running order or otherwise move them around unless you know exactly
10279 ## what you are doing...
10280 if test -n "$compiler"; then
10282 lt_prog_compiler_no_builtin_flag=
10284 if test "$GCC" = yes; then
10285 case $cc_basename in
10287 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10289 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10293 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10294 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10297 lt_cv_prog_compiler_rtti_exceptions=no
10298 ac_outfile=conftest.$ac_objext
10299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10300 lt_compiler_flag="-fno-rtti -fno-exceptions"
10301 # Insert the option either (1) after the last *FLAGS variable, or
10302 # (2) before a word containing "conftest.", or (3) at the end.
10303 # Note that $ac_compile itself does not contain backslashes and begins
10304 # with a dollar sign (not a hyphen), so the echo should work correctly.
10305 # The option is referenced via a variable to avoid confusing sed.
10306 lt_compile=`echo "$ac_compile" | $SED \
10307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10309 -e 's:$: $lt_compiler_flag:'`
10310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10311 (eval "$lt_compile" 2>conftest.err)
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 if (exit $ac_status) && test -s "$ac_outfile"; then
10316 # The compiler can only warn and ignore the option if not recognized
10317 # So say no if there are warnings other than the usual output.
10318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10321 lt_cv_prog_compiler_rtti_exceptions=yes
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10328 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10331 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10343 lt_prog_compiler_wl=
10344 lt_prog_compiler_pic=
10345 lt_prog_compiler_static=
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10348 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10350 if test "$GCC" = yes; then
10351 lt_prog_compiler_wl='-Wl,'
10352 lt_prog_compiler_static='-static'
10356 # All AIX code is PIC.
10357 if test "$host_cpu" = ia64; then
10358 # AIX 5 now supports IA64 processor
10359 lt_prog_compiler_static='-Bstatic'
10366 # see comment about AmigaOS4 .so support
10367 lt_prog_compiler_pic='-fPIC'
10370 # FIXME: we need at least 68020 code to build shared libraries, but
10371 # adding the `-m68020' flag to GCC prevents building anything better,
10373 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10379 # PIC is the default for these OSes.
10382 mingw* | cygwin* | pw32* | os2* | cegcc*)
10383 # This hack is so that the source file can tell whether it is being
10384 # built for inclusion in a dll (and should export symbols for example).
10385 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10386 # (--disable-auto-import) libraries
10387 lt_prog_compiler_pic='-DDLL_EXPORT'
10390 darwin* | rhapsody*)
10391 # PIC is the default on this platform
10392 # Common symbols not allowed in MH_DYLIB files
10393 lt_prog_compiler_pic='-fno-common'
10397 # PIC is the default for Haiku.
10398 # The "-static" flag exists, but is broken.
10399 lt_prog_compiler_static=
10403 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10404 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10405 # sets the default TLS model and affects inlining.
10411 lt_prog_compiler_pic='-fPIC'
10417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10418 # Instead, we relocate shared libraries at runtime.
10422 # Just because we use GCC doesn't mean we suddenly get shared libraries
10423 # on systems that don't support them.
10424 lt_prog_compiler_can_build_shared=no
10429 # QNX uses GNU C++, but need to define -shared option too, otherwise
10430 # it will coredump.
10431 lt_prog_compiler_pic='-fPIC -shared'
10435 if test -d /usr/nec; then
10436 lt_prog_compiler_pic=-Kconform_pic
10441 lt_prog_compiler_pic='-fPIC'
10445 case $cc_basename in
10446 nvcc*) # Cuda Compiler Driver 2.2
10447 lt_prog_compiler_wl='-Xlinker '
10448 lt_prog_compiler_pic='-Xcompiler -fPIC'
10452 # PORTME Check for flag to pass linker flags through the system compiler.
10455 lt_prog_compiler_wl='-Wl,'
10456 if test "$host_cpu" = ia64; then
10457 # AIX 5 now supports IA64 processor
10458 lt_prog_compiler_static='-Bstatic'
10460 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10464 mingw* | cygwin* | pw32* | os2* | cegcc*)
10465 # This hack is so that the source file can tell whether it is being
10466 # built for inclusion in a dll (and should export symbols for example).
10467 lt_prog_compiler_pic='-DDLL_EXPORT'
10470 hpux9* | hpux10* | hpux11*)
10471 lt_prog_compiler_wl='-Wl,'
10472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10473 # not for PA HP-UX.
10479 lt_prog_compiler_pic='+Z'
10482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10483 lt_prog_compiler_static='${wl}-a ${wl}archive'
10486 irix5* | irix6* | nonstopux*)
10487 lt_prog_compiler_wl='-Wl,'
10488 # PIC (with -KPIC) is the default.
10489 lt_prog_compiler_static='-non_shared'
10492 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10493 case $cc_basename in
10494 # old Intel for x86_64 which still supported -KPIC.
10496 lt_prog_compiler_wl='-Wl,'
10497 lt_prog_compiler_pic='-KPIC'
10498 lt_prog_compiler_static='-static'
10500 # icc used to be incompatible with GCC.
10501 # ICC 10 doesn't accept -KPIC any more.
10503 lt_prog_compiler_wl='-Wl,'
10504 lt_prog_compiler_pic='-fPIC'
10505 lt_prog_compiler_static='-static'
10507 # Lahey Fortran 8.1.
10509 lt_prog_compiler_wl='-Wl,'
10510 lt_prog_compiler_pic='--shared'
10511 lt_prog_compiler_static='--static'
10513 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10514 # Portland Group compilers (*not* the Pentium gcc compiler,
10515 # which looks to be a dead project)
10516 lt_prog_compiler_wl='-Wl,'
10517 lt_prog_compiler_pic='-fpic'
10518 lt_prog_compiler_static='-Bstatic'
10521 lt_prog_compiler_wl='-Wl,'
10522 # All Alpha code is PIC.
10523 lt_prog_compiler_static='-non_shared'
10525 xl* | bgxl* | bgf* | mpixl*)
10526 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10527 lt_prog_compiler_wl='-Wl,'
10528 lt_prog_compiler_pic='-qpic'
10529 lt_prog_compiler_static='-qstaticlink'
10532 case `$CC -V 2>&1 | sed 5q` in
10533 *Sun\ F* | *Sun*Fortran*)
10534 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10535 lt_prog_compiler_pic='-KPIC'
10536 lt_prog_compiler_static='-Bstatic'
10537 lt_prog_compiler_wl=''
10541 lt_prog_compiler_pic='-KPIC'
10542 lt_prog_compiler_static='-Bstatic'
10543 lt_prog_compiler_wl='-Wl,'
10551 lt_prog_compiler_pic='-KPIC'
10552 lt_prog_compiler_static='-Bstatic'
10556 # QNX uses GNU C++, but need to define -shared option too, otherwise
10557 # it will coredump.
10558 lt_prog_compiler_pic='-fPIC -shared'
10561 osf3* | osf4* | osf5*)
10562 lt_prog_compiler_wl='-Wl,'
10563 # All OSF/1 code is PIC.
10564 lt_prog_compiler_static='-non_shared'
10568 lt_prog_compiler_static='-non_shared'
10572 lt_prog_compiler_pic='-KPIC'
10573 lt_prog_compiler_static='-Bstatic'
10574 case $cc_basename in
10575 f77* | f90* | f95*)
10576 lt_prog_compiler_wl='-Qoption ld ';;
10578 lt_prog_compiler_wl='-Wl,';;
10583 lt_prog_compiler_wl='-Qoption ld '
10584 lt_prog_compiler_pic='-PIC'
10585 lt_prog_compiler_static='-Bstatic'
10588 sysv4 | sysv4.2uw2* | sysv4.3*)
10589 lt_prog_compiler_wl='-Wl,'
10590 lt_prog_compiler_pic='-KPIC'
10591 lt_prog_compiler_static='-Bstatic'
10595 if test -d /usr/nec ;then
10596 lt_prog_compiler_pic='-Kconform_pic'
10597 lt_prog_compiler_static='-Bstatic'
10601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10602 lt_prog_compiler_wl='-Wl,'
10603 lt_prog_compiler_pic='-KPIC'
10604 lt_prog_compiler_static='-Bstatic'
10608 lt_prog_compiler_wl='-Wl,'
10609 lt_prog_compiler_can_build_shared=no
10613 lt_prog_compiler_pic='-pic'
10614 lt_prog_compiler_static='-Bstatic'
10618 lt_prog_compiler_can_build_shared=no
10624 # For platforms which do not support PIC, -DPIC is meaningless:
10626 lt_prog_compiler_pic=
10629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10633 $as_echo "$lt_prog_compiler_pic" >&6; }
10641 # Check to make sure the PIC flag actually works.
10643 if test -n "$lt_prog_compiler_pic"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10646 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10649 lt_cv_prog_compiler_pic_works=no
10650 ac_outfile=conftest.$ac_objext
10651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10652 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10653 # Insert the option either (1) after the last *FLAGS variable, or
10654 # (2) before a word containing "conftest.", or (3) at the end.
10655 # Note that $ac_compile itself does not contain backslashes and begins
10656 # with a dollar sign (not a hyphen), so the echo should work correctly.
10657 # The option is referenced via a variable to avoid confusing sed.
10658 lt_compile=`echo "$ac_compile" | $SED \
10659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10661 -e 's:$: $lt_compiler_flag:'`
10662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10663 (eval "$lt_compile" 2>conftest.err)
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 if (exit $ac_status) && test -s "$ac_outfile"; then
10668 # The compiler can only warn and ignore the option if not recognized
10669 # So say no if there are warnings other than the usual output.
10670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10673 lt_cv_prog_compiler_pic_works=yes
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10680 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10682 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10683 case $lt_prog_compiler_pic in
10685 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10688 lt_prog_compiler_pic=
10689 lt_prog_compiler_can_build_shared=no
10700 # Check to make sure the static flag actually works.
10702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10705 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10708 lt_cv_prog_compiler_static_works=no
10709 save_LDFLAGS="$LDFLAGS"
10710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10713 # The linker can only warn and ignore the option if not recognized
10714 # So say no if there are warnings
10715 if test -s conftest.err; then
10716 # Append any errors to the config.log.
10717 cat conftest.err 1>&5
10718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10720 if diff conftest.exp conftest.er2 >/dev/null; then
10721 lt_cv_prog_compiler_static_works=yes
10724 lt_cv_prog_compiler_static_works=yes
10728 LDFLAGS="$save_LDFLAGS"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10732 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10737 lt_prog_compiler_static=
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10748 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10751 lt_cv_prog_compiler_c_o=no
10752 $RM -r conftest 2>/dev/null
10756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10758 lt_compiler_flag="-o out/conftest2.$ac_objext"
10759 # Insert the option either (1) after the last *FLAGS variable, or
10760 # (2) before a word containing "conftest.", or (3) at the end.
10761 # Note that $ac_compile itself does not contain backslashes and begins
10762 # with a dollar sign (not a hyphen), so the echo should work correctly.
10763 lt_compile=`echo "$ac_compile" | $SED \
10764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10766 -e 's:$: $lt_compiler_flag:'`
10767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10768 (eval "$lt_compile" 2>out/conftest.err)
10770 cat out/conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10774 # The compiler can only warn and ignore the option if not recognized
10775 # So say no if there are warnings
10776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10779 lt_cv_prog_compiler_c_o=yes
10784 # SGI C++ compiler will create directory out/ii_files/ for
10785 # template instantiation
10786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10787 $RM out/* && rmdir out
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10806 lt_cv_prog_compiler_c_o=no
10807 $RM -r conftest 2>/dev/null
10811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10813 lt_compiler_flag="-o out/conftest2.$ac_objext"
10814 # Insert the option either (1) after the last *FLAGS variable, or
10815 # (2) before a word containing "conftest.", or (3) at the end.
10816 # Note that $ac_compile itself does not contain backslashes and begins
10817 # with a dollar sign (not a hyphen), so the echo should work correctly.
10818 lt_compile=`echo "$ac_compile" | $SED \
10819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10821 -e 's:$: $lt_compiler_flag:'`
10822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10823 (eval "$lt_compile" 2>out/conftest.err)
10825 cat out/conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10829 # The compiler can only warn and ignore the option if not recognized
10830 # So say no if there are warnings
10831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10834 lt_cv_prog_compiler_c_o=yes
10839 # SGI C++ compiler will create directory out/ii_files/ for
10840 # template instantiation
10841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10842 $RM out/* && rmdir out
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10854 hard_links="nottested"
10855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10856 # do not overwrite the value of need_locks provided by the user
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10858 $as_echo_n "checking if we can lock with hard links... " >&6; }
10861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10863 ln conftest.a conftest.b 2>&5 || hard_links=no
10864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10866 $as_echo "$hard_links" >&6; }
10867 if test "$hard_links" = no; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10885 allow_undefined_flag=
10886 always_export_symbols=no
10888 archive_expsym_cmds=
10889 compiler_needs_object=no
10890 enable_shared_with_static_runtimes=no
10891 export_dynamic_flag_spec=
10892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10893 hardcode_automatic=no
10895 hardcode_direct_absolute=no
10896 hardcode_libdir_flag_spec=
10897 hardcode_libdir_flag_spec_ld=
10898 hardcode_libdir_separator=
10899 hardcode_minus_L=no
10900 hardcode_shlibpath_var=unsupported
10902 link_all_deplibs=unknown
10904 module_expsym_cmds=
10905 old_archive_from_new_cmds=
10906 old_archive_from_expsyms_cmds=
10907 thread_safe_flag_spec=
10908 whole_archive_flag_spec=
10909 # include_expsyms should be a list of space-separated symbols to be *always*
10910 # included in the symbol list
10912 # exclude_expsyms can be an extended regexp of symbols to exclude
10913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10915 # as well as any symbol that contains `d'.
10916 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10918 # platforms (ab)use it in PIC code, but their linkers get confused if
10919 # the symbol is explicitly referenced. Since portable code cannot
10920 # rely on this symbol name, it's probably fine to never include it in
10921 # preloaded symbol tables.
10922 # Exclude shared library initialization/finalization symbols.
10923 extract_expsyms_cmds=
10926 cygwin* | mingw* | pw32* | cegcc*)
10927 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10928 # When not using gcc, we currently assume that we are using
10929 # Microsoft Visual C++.
10930 if test "$GCC" != yes; then
10935 # we just hope/assume this is gcc and not c89 (= MSVC++)
10945 # On some targets, GNU ld is compatible enough with the native linker
10946 # that we're better off using the native interface for both.
10947 lt_use_gnu_ld_interface=no
10948 if test "$with_gnu_ld" = yes; then
10951 # The AIX port of GNU ld has always aspired to compatibility
10952 # with the native linker. However, as the warning in the GNU ld
10953 # block says, versions before 2.19.5* couldn't really create working
10954 # shared libraries, regardless of the interface used.
10955 case `$LD -v 2>&1` in
10956 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10957 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10958 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10960 lt_use_gnu_ld_interface=yes
10965 lt_use_gnu_ld_interface=yes
10970 if test "$lt_use_gnu_ld_interface" = yes; then
10971 # If archive_cmds runs LD, not CC, wlarc should be empty
10974 # Set some defaults for GNU ld with shared library support. These
10975 # are reset later if shared libraries are not supported. Putting them
10976 # here allows them to be overridden if necessary.
10977 runpath_var=LD_RUN_PATH
10978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10979 export_dynamic_flag_spec='${wl}--export-dynamic'
10980 # ancient GNU ld didn't support --whole-archive et. al.
10981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10984 whole_archive_flag_spec=
10986 supports_anon_versioning=no
10987 case `$LD -v 2>&1` in
10988 *GNU\ gold*) supports_anon_versioning=yes ;;
10989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10992 *\ 2.11.*) ;; # other 2.11 versions
10993 *) supports_anon_versioning=yes ;;
10996 # See if GNU ld supports shared libraries.
10999 # On AIX/PPC, the GNU linker is very broken
11000 if test "$host_cpu" != ia64; then
11004 *** Warning: the GNU linker, at least up to release 2.19, is reported
11005 *** to be unable to reliably create shared libraries on AIX.
11006 *** Therefore, libtool is disabling shared libraries support. If you
11007 *** really care for shared libraries, you may want to install binutils
11008 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11009 *** You will then need to restart the configuration process.
11018 # see comment about AmigaOS4 .so support
11019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11020 archive_expsym_cmds=''
11023 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)'
11024 hardcode_libdir_flag_spec='-L$libdir'
11025 hardcode_minus_L=yes
11031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11032 allow_undefined_flag=unsupported
11033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11034 # support --undefined. This deserves some investigation. FIXME
11035 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11041 cygwin* | mingw* | pw32* | cegcc*)
11042 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11043 # as there is no search path for DLLs.
11044 hardcode_libdir_flag_spec='-L$libdir'
11045 export_dynamic_flag_spec='${wl}--export-all-symbols'
11046 allow_undefined_flag=unsupported
11047 always_export_symbols=no
11048 enable_shared_with_static_runtimes=yes
11049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11051 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11053 # If the export-symbols file already is a .def file (1st line
11054 # is EXPORTS), use it as is; otherwise, prepend...
11055 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11056 cp $export_symbols $output_objdir/$soname.def;
11058 echo EXPORTS > $output_objdir/$soname.def;
11059 cat $export_symbols >> $output_objdir/$soname.def;
11061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11069 link_all_deplibs=yes
11074 hardcode_shlibpath_var=no
11075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11076 export_dynamic_flag_spec='${wl}-E'
11077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11078 # Instead, shared libraries are loaded at an image base (0x10000000 by
11079 # default) and relocated if they conflict, which is a slow very memory
11080 # consuming and fragmenting process. To avoid this, we pick a random,
11081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11084 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'
11087 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11089 if test "$host_os" = linux-dietlibc; then
11090 case $cc_basename in
11091 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11094 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11095 && test "$tmp_diet" = no
11098 tmp_sharedflag='-shared'
11099 case $cc_basename,$host_cpu in
11100 pgcc*) # Portland Group C compiler
11101 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'
11102 tmp_addflag=' $pic_flag'
11104 pgf77* | pgf90* | pgf95* | pgfortran*)
11105 # Portland Group f77 and f90 compilers
11106 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'
11107 tmp_addflag=' $pic_flag -Mnomain' ;;
11108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11109 tmp_addflag=' -i_dynamic' ;;
11110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11111 tmp_addflag=' -i_dynamic -nofor_main' ;;
11112 ifc* | ifort*) # Intel Fortran compiler
11113 tmp_addflag=' -nofor_main' ;;
11114 lf95*) # Lahey Fortran 8.1
11115 whole_archive_flag_spec=
11116 tmp_sharedflag='--shared' ;;
11117 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11118 tmp_sharedflag='-qmkshrobj'
11120 nvcc*) # Cuda Compiler Driver 2.2
11121 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'
11122 compiler_needs_object=yes
11125 case `$CC -V 2>&1 | sed 5q` in
11126 *Sun\ C*) # Sun C 5.9
11127 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'
11128 compiler_needs_object=yes
11129 tmp_sharedflag='-G' ;;
11130 *Sun\ F*) # Sun Fortran 8.3
11131 tmp_sharedflag='-G' ;;
11133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135 if test "x$supports_anon_versioning" = xyes; then
11136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11138 echo "local: *; };" >> $output_objdir/$libname.ver~
11139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11142 case $cc_basename in
11143 xlf* | bgf* | bgxlf* | mpixlf*)
11144 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11145 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11146 hardcode_libdir_flag_spec=
11147 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11148 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11164 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11173 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11177 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11178 *** create shared libraries on Solaris systems. Therefore, libtool
11179 *** is disabling shared libraries support. We urge you to upgrade GNU
11180 *** binutils to release 2.9.1 or newer. Another option is to modify
11181 *** your PATH or compiler configuration so that the native linker is
11182 *** used, and then restart.
11185 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11194 case `$LD -v 2>&1` in
11195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11199 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11200 *** reliably create shared libraries on SCO systems. Therefore, libtool
11201 *** is disabling shared libraries support. We urge you to upgrade GNU
11202 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11203 *** your PATH or compiler configuration so that the native linker is
11204 *** used, and then restart.
11209 # For security reasons, it is highly recommended that you always
11210 # use absolute paths for naming shared libraries, and exclude the
11211 # DT_RUNPATH tag from executables and libraries. But doing so
11212 # requires that you compile everything twice, which is a pain.
11213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_direct=yes
11228 hardcode_shlibpath_var=no
11232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11241 if test "$ld_shlibs" = no; then
11243 hardcode_libdir_flag_spec=
11244 export_dynamic_flag_spec=
11245 whole_archive_flag_spec=
11248 # PORTME fill in a description of your system's linker (not GNU ld)
11251 allow_undefined_flag=unsupported
11252 always_export_symbols=yes
11253 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'
11254 # Note: this linker hardcodes the directories in LIBPATH if there
11255 # are no directories specified by -L.
11256 hardcode_minus_L=yes
11257 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11258 # Neither direct hardcoding nor static linking is supported with a
11260 hardcode_direct=unsupported
11265 if test "$host_cpu" = ia64; then
11266 # On IA64, the linker does run time linking by default, so we don't
11267 # have to do anything special.
11268 aix_use_runtimelinking=no
11269 exp_sym_flag='-Bexport'
11272 # If we're using GNU nm, then we don't want the "-C" option.
11273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11274 # Also, AIX nm treats weak defined symbols like other global
11275 # defined symbols, whereas GNU nm marks them as "W".
11276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11277 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'
11279 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'
11281 aix_use_runtimelinking=no
11283 # Test if we are trying to use run time linking or normal
11284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11285 # need to do runtime linking.
11286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11287 for ld_flag in $LDFLAGS; do
11288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11289 aix_use_runtimelinking=yes
11296 exp_sym_flag='-bexport'
11297 no_entry_flag='-bnoentry'
11300 # When large executables or shared objects are built, AIX ld can
11301 # have problems creating the table of contents. If linking a library
11302 # or program results in "error TOC overflow" add -mminimal-toc to
11303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11307 hardcode_direct=yes
11308 hardcode_direct_absolute=yes
11309 hardcode_libdir_separator=':'
11310 link_all_deplibs=yes
11311 file_list_spec='${wl}-f,'
11313 if test "$GCC" = yes; then
11314 case $host_os in aix4.[012]|aix4.[012].*)
11315 # We only want to do this on AIX 4.2 and lower, the check
11316 # below for broken collect2 doesn't work under 4.3+
11317 collect2name=`${CC} -print-prog-name=collect2`
11318 if test -f "$collect2name" &&
11319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11321 # We have reworked collect2
11324 # We have old collect2
11325 hardcode_direct=unsupported
11326 # It fails to find uninstalled libraries when the uninstalled
11327 # path is not listed in the libpath. Setting hardcode_minus_L
11328 # to unsupported forces relinking
11329 hardcode_minus_L=yes
11330 hardcode_libdir_flag_spec='-L$libdir'
11331 hardcode_libdir_separator=
11335 shared_flag='-shared'
11336 if test "$aix_use_runtimelinking" = yes; then
11337 shared_flag="$shared_flag "'${wl}-G'
11341 if test "$host_cpu" = ia64; then
11342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11343 # chokes on -Wl,-G. The following line is correct:
11346 if test "$aix_use_runtimelinking" = yes; then
11347 shared_flag='${wl}-G'
11349 shared_flag='${wl}-bM:SRE'
11354 export_dynamic_flag_spec='${wl}-bexpall'
11355 # It seems that -bexpall does not export symbols beginning with
11356 # underscore (_), so it is better to generate a list of symbols to export.
11357 always_export_symbols=yes
11358 if test "$aix_use_runtimelinking" = yes; then
11359 # Warning - without using the other runtime loading flags (-brtl),
11360 # -berok will link without error, but may produce a broken library.
11361 allow_undefined_flag='-berok'
11362 # Determine the default libpath from the value encoded in an
11363 # empty executable.
11364 if test x$gcc_no_link = xyes; then
11365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11378 if ac_fn_c_try_link "$LINENO"; then :
11380 lt_aix_libpath_sed='
11381 /Import File Strings/,/^$/ {
11387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11388 # Check for a 64-bit object if we didn't find anything.
11389 if test -z "$aix_libpath"; then
11390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11393 rm -f core conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11398 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"
11400 if test "$host_cpu" = ia64; then
11401 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11402 allow_undefined_flag="-z nodefs"
11403 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"
11405 # Determine the default libpath from the value encoded in an
11406 # empty executable.
11407 if test x$gcc_no_link = xyes; then
11408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11421 if ac_fn_c_try_link "$LINENO"; then :
11423 lt_aix_libpath_sed='
11424 /Import File Strings/,/^$/ {
11430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11431 # Check for a 64-bit object if we didn't find anything.
11432 if test -z "$aix_libpath"; then
11433 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11436 rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11440 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11441 # Warning - without using the other run time loading flags,
11442 # -berok will link without error, but may produce a broken library.
11443 no_undefined_flag=' ${wl}-bernotok'
11444 allow_undefined_flag=' ${wl}-berok'
11445 if test "$with_gnu_ld" = yes; then
11446 # We only use this code for GNU lds that support --whole-archive.
11447 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11449 # Exported symbols can be pulled into shared objects from archives
11450 whole_archive_flag_spec='$convenience'
11452 archive_cmds_need_lc=yes
11453 # This is similar to how AIX traditionally builds its shared libraries.
11454 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'
11462 # see comment about AmigaOS4 .so support
11463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11464 archive_expsym_cmds=''
11467 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)'
11468 hardcode_libdir_flag_spec='-L$libdir'
11469 hardcode_minus_L=yes
11475 export_dynamic_flag_spec=-rdynamic
11478 cygwin* | mingw* | pw32* | cegcc*)
11479 # When not using gcc, we currently assume that we are using
11480 # Microsoft Visual C++.
11481 # hardcode_libdir_flag_spec is actually meaningless, as there is
11482 # no search path for DLLs.
11483 hardcode_libdir_flag_spec=' '
11484 allow_undefined_flag=unsupported
11485 # Tell ltmain to make .lib files, not .a files.
11487 # Tell ltmain to make .dll files, not .so files.
11489 # FIXME: Setting linknames here is a bad hack.
11490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11491 # The linker will automatically build a .lib file if we build a DLL.
11492 old_archive_from_new_cmds='true'
11493 # FIXME: Should let the user specify the lib program.
11494 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11495 fix_srcfile_path='`cygpath -w "$srcfile"`'
11496 enable_shared_with_static_runtimes=yes
11499 darwin* | rhapsody*)
11502 archive_cmds_need_lc=no
11504 hardcode_automatic=yes
11505 hardcode_shlibpath_var=unsupported
11506 if test "$lt_cv_ld_force_load" = "yes"; then
11507 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\"`'
11509 whole_archive_flag_spec=''
11511 link_all_deplibs=yes
11512 allow_undefined_flag="$_lt_dar_allow_undefined"
11513 case $cc_basename in
11514 ifort*) _lt_dar_can_shared=yes ;;
11515 *) _lt_dar_can_shared=$GCC ;;
11517 if test "$_lt_dar_can_shared" = "yes"; then
11518 output_verbose_link_cmd=func_echo_all
11519 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11520 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11521 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}"
11522 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}"
11531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11532 hardcode_libdir_flag_spec='-L$libdir'
11533 hardcode_shlibpath_var=no
11540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11541 # support. Future versions do this automatically, but an explicit c++rt0.o
11542 # does not break anything, and helps significantly (at the cost of a little
11545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11546 hardcode_libdir_flag_spec='-R$libdir'
11547 hardcode_direct=yes
11548 hardcode_shlibpath_var=no
11551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11554 hardcode_direct=yes
11555 hardcode_minus_L=yes
11556 hardcode_shlibpath_var=no
11559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11560 freebsd* | dragonfly*)
11561 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11562 hardcode_libdir_flag_spec='-R$libdir'
11563 hardcode_direct=yes
11564 hardcode_shlibpath_var=no
11568 if test "$GCC" = yes; then
11569 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'
11571 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'
11573 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11574 hardcode_libdir_separator=:
11575 hardcode_direct=yes
11577 # hardcode_minus_L: Not really in the search PATH,
11578 # but as the default location of the library.
11579 hardcode_minus_L=yes
11580 export_dynamic_flag_spec='${wl}-E'
11584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11585 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11589 if test "$with_gnu_ld" = no; then
11590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11591 hardcode_libdir_flag_spec_ld='+b $libdir'
11592 hardcode_libdir_separator=:
11593 hardcode_direct=yes
11594 hardcode_direct_absolute=yes
11595 export_dynamic_flag_spec='${wl}-E'
11596 # hardcode_minus_L: Not really in the search PATH,
11597 # but as the default location of the library.
11598 hardcode_minus_L=yes
11603 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11606 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11609 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11618 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11621 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11625 # Older versions of the 11.00 compiler do not understand -b yet
11626 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11628 $as_echo_n "checking if $CC understands -b... " >&6; }
11629 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11632 lt_cv_prog_compiler__b=no
11633 save_LDFLAGS="$LDFLAGS"
11634 LDFLAGS="$LDFLAGS -b"
11635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11637 # The linker can only warn and ignore the option if not recognized
11638 # So say no if there are warnings
11639 if test -s conftest.err; then
11640 # Append any errors to the config.log.
11641 cat conftest.err 1>&5
11642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11644 if diff conftest.exp conftest.er2 >/dev/null; then
11645 lt_cv_prog_compiler__b=yes
11648 lt_cv_prog_compiler__b=yes
11652 LDFLAGS="$save_LDFLAGS"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11656 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11658 if test x"$lt_cv_prog_compiler__b" = xyes; then
11659 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11661 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11667 if test "$with_gnu_ld" = no; then
11668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11669 hardcode_libdir_separator=:
11674 hardcode_shlibpath_var=no
11677 hardcode_direct=yes
11678 hardcode_direct_absolute=yes
11679 export_dynamic_flag_spec='${wl}-E'
11681 # hardcode_minus_L: Not really in the search PATH,
11682 # but as the default location of the library.
11683 hardcode_minus_L=yes
11689 irix5* | irix6* | nonstopux*)
11690 if test "$GCC" = yes; then
11691 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'
11692 # Try to use the -exported_symbol ld option, if it does not
11693 # work, assume that -exports_file does not work either and
11694 # implicitly export all symbols.
11695 save_LDFLAGS="$LDFLAGS"
11696 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11697 if test x$gcc_no_link = xyes; then
11698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11704 if ac_fn_c_try_link "$LINENO"; then :
11705 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'
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 LDFLAGS="$save_LDFLAGS"
11712 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'
11713 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'
11715 archive_cmds_need_lc='no'
11716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11717 hardcode_libdir_separator=:
11719 link_all_deplibs=yes
11723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11726 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11728 hardcode_libdir_flag_spec='-R$libdir'
11729 hardcode_direct=yes
11730 hardcode_shlibpath_var=no
11734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11735 hardcode_direct=yes
11736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11737 hardcode_libdir_separator=:
11738 hardcode_shlibpath_var=no
11745 if test -f /usr/libexec/ld.so; then
11746 hardcode_direct=yes
11747 hardcode_shlibpath_var=no
11748 hardcode_direct_absolute=yes
11749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11753 export_dynamic_flag_spec='${wl}-E'
11756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11758 hardcode_libdir_flag_spec='-R$libdir'
11761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11772 hardcode_libdir_flag_spec='-L$libdir'
11773 hardcode_minus_L=yes
11774 allow_undefined_flag=unsupported
11775 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'
11776 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11780 if test "$GCC" = yes; then
11781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11782 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'
11784 allow_undefined_flag=' -expect_unresolved \*'
11785 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'
11787 archive_cmds_need_lc='no'
11788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11789 hardcode_libdir_separator=:
11792 osf4* | osf5*) # as osf3* with the addition of -msym flag
11793 if test "$GCC" = yes; then
11794 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11795 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'
11796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11798 allow_undefined_flag=' -expect_unresolved \*'
11799 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'
11800 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~
11801 $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'
11803 # Both c and cxx compiler support -rpath directly
11804 hardcode_libdir_flag_spec='-rpath $libdir'
11806 archive_cmds_need_lc='no'
11807 hardcode_libdir_separator=:
11811 no_undefined_flag=' -z defs'
11812 if test "$GCC" = yes; then
11814 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11816 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11818 case `$CC -V 2>&1` in
11821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11827 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11829 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11833 hardcode_libdir_flag_spec='-R$libdir'
11834 hardcode_shlibpath_var=no
11836 solaris2.[0-5] | solaris2.[0-5].*) ;;
11838 # The compiler driver will combine and reorder linker options,
11839 # but understands `-z linker_flag'. GCC discards it without `$wl',
11840 # but is careful enough not to reorder.
11841 # Supported since Solaris 2.6 (maybe 2.5.1?)
11842 if test "$GCC" = yes; then
11843 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11845 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11849 link_all_deplibs=yes
11853 if test "x$host_vendor" = xsequent; then
11854 # Use $CC to link under sequent, because it throws in some extra .o
11855 # files that make .init and .fini sections work.
11856 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11860 hardcode_libdir_flag_spec='-L$libdir'
11861 hardcode_direct=yes
11862 hardcode_minus_L=yes
11863 hardcode_shlibpath_var=no
11867 case $host_vendor in
11869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11870 hardcode_direct=yes # is this really true???
11873 ## LD is ld it makes a PLAMLIB
11874 ## CC just makes a GrossModule.
11875 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11876 reload_cmds='$CC -r -o $output$reload_objs'
11880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11881 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11884 runpath_var='LD_RUN_PATH'
11885 hardcode_shlibpath_var=no
11889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11890 hardcode_shlibpath_var=no
11891 export_dynamic_flag_spec='-Bexport'
11895 if test -d /usr/nec; then
11896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11897 hardcode_shlibpath_var=no
11898 runpath_var=LD_RUN_PATH
11899 hardcode_runpath_var=yes
11904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11905 no_undefined_flag='${wl}-z,text'
11906 archive_cmds_need_lc=no
11907 hardcode_shlibpath_var=no
11908 runpath_var='LD_RUN_PATH'
11910 if test "$GCC" = yes; then
11911 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11912 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11915 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11919 sysv5* | sco3.2v5* | sco5v6*)
11920 # Note: We can NOT use -z defs as we might desire, because we do not
11921 # link with -lc, and that would cause any symbols used from libc to
11922 # always be unresolved, which means just about no library would
11923 # ever link correctly. If we're not using GNU ld we use -z text
11924 # though, which does catch some bad symbols but isn't as heavy-handed
11926 no_undefined_flag='${wl}-z,text'
11927 allow_undefined_flag='${wl}-z,nodefs'
11928 archive_cmds_need_lc=no
11929 hardcode_shlibpath_var=no
11930 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11931 hardcode_libdir_separator=':'
11932 link_all_deplibs=yes
11933 export_dynamic_flag_spec='${wl}-Bexport'
11934 runpath_var='LD_RUN_PATH'
11936 if test "$GCC" = yes; then
11937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11947 hardcode_libdir_flag_spec='-L$libdir'
11948 hardcode_shlibpath_var=no
11956 if test x$host_vendor = xsni; then
11958 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11959 export_dynamic_flag_spec='${wl}-Blargedynsym'
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11966 $as_echo "$ld_shlibs" >&6; }
11967 test "$ld_shlibs" = no && can_build_shared=no
11969 with_gnu_ld=$with_gnu_ld
11986 # Do we need to explicitly link libc?
11988 case "x$archive_cmds_need_lc" in
11990 # Assume -lc should be added
11991 archive_cmds_need_lc=yes
11993 if test "$enable_shared" = yes && test "$GCC" = yes; then
11994 case $archive_cmds in
11996 # FIXME: we may have to deal with multi-command sequences.
11999 # Test whether the compiler implicitly links with -lc since on some
12000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12001 # to ld, don't add -lc before -lgcc.
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12003 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12004 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
12008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12011 (eval $ac_compile) 2>&5
12013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12014 test $ac_status = 0; } 2>conftest.err; then
12017 libobjs=conftest.$ac_objext
12019 wl=$lt_prog_compiler_wl
12020 pic_flag=$lt_prog_compiler_pic
12026 lt_save_allow_undefined_flag=$allow_undefined_flag
12027 allow_undefined_flag=
12028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12029 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032 test $ac_status = 0; }
12034 lt_cv_archive_cmds_need_lc=no
12036 lt_cv_archive_cmds_need_lc=yes
12038 allow_undefined_flag=$lt_save_allow_undefined_flag
12040 cat conftest.err 1>&5
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12046 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12047 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12213 if test "$GCC" = yes; then
12215 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12216 *) lt_awk_arg="/^libraries:/" ;;
12219 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12220 *) lt_sed_strip_eq="s,=/,/,g" ;;
12222 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12223 case $lt_search_path_spec in
12225 # if the path contains ";" then we assume it to be the separator
12226 # otherwise default to the standard path separator (i.e. ":") - it is
12227 # assumed that no part of a normal pathname contains ";" but that should
12228 # okay in the real world where ";" in dirpaths is itself problematic.
12229 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12235 # Ok, now we have the path, separated by spaces, we can step through it
12236 # and add multilib dir if necessary.
12237 lt_tmp_lt_search_path_spec=
12238 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12239 for lt_sys_path in $lt_search_path_spec; do
12240 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12243 test -d "$lt_sys_path" && \
12244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12247 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12248 BEGIN {RS=" "; FS="/|\n";} {
12251 for (lt_i = NF; lt_i > 0; lt_i--) {
12252 if ($lt_i != "" && $lt_i != ".") {
12253 if ($lt_i == "..") {
12256 if (lt_count == 0) {
12257 lt_foo="/" $lt_i lt_foo;
12264 if (lt_foo != "") { lt_freq[lt_foo]++; }
12265 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12267 # AWK program above erroneously prepends '/' to C:/dos/paths
12270 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12271 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12273 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12277 library_names_spec=
12278 libname_spec='lib$name'
12282 postuninstall_cmds=
12286 shlibpath_overrides_runpath=unknown
12288 dynamic_linker="$host_os ld.so"
12289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12290 need_lib_prefix=unknown
12291 hardcode_into_libs=no
12293 # when you set need_version to no, make sure it does not cause -set_version
12294 # flags to be left without arguments
12295 need_version=unknown
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12301 shlibpath_var=LIBPATH
12303 # AIX 3 has no versioning support, so we append a major version to the name.
12304 soname_spec='${libname}${release}${shared_ext}$major'
12311 hardcode_into_libs=yes
12312 if test "$host_cpu" = ia64; then
12313 # AIX 5 supports IA64
12314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12315 shlibpath_var=LD_LIBRARY_PATH
12317 # With GCC up to 2.95.x, collect2 would create an import file
12318 # for dependence libraries. The import file would start with
12319 # the line `#! .'. This would cause the generated library to
12320 # depend on `.', always an invalid library. This was fixed in
12321 # development snapshots of GCC prior to 3.0.
12323 aix4 | aix4.[01] | aix4.[01].*)
12324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12326 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12329 can_build_shared=no
12333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12334 # soname into executable. Probably we can add versioning support to
12335 # collect2, so additional links can be useful in future.
12336 if test "$aix_use_runtimelinking" = yes; then
12337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12338 # instead of lib<name>.a to let people know that these are not
12339 # typical AIX shared libraries.
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12342 # We preserve .a as extension for shared libraries through AIX4.2
12343 # and later when we are not doing run time linking.
12344 library_names_spec='${libname}${release}.a $libname.a'
12345 soname_spec='${libname}${release}${shared_ext}$major'
12347 shlibpath_var=LIBPATH
12354 # Since July 2007 AmigaOS4 officially supports .so libraries.
12355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359 library_names_spec='$libname.ixlibrary $libname.a'
12360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12361 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'
12367 library_names_spec='${libname}${shared_ext}'
12368 dynamic_linker="$host_os ld.so"
12369 shlibpath_var=LIBRARY_PATH
12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376 soname_spec='${libname}${release}${shared_ext}$major'
12377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12378 shlibpath_var=LD_LIBRARY_PATH
12379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12381 # the default ld.so.conf also contains /usr/contrib/lib and
12382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12383 # libtool to hard-code these into programs
12386 cygwin* | mingw* | pw32* | cegcc*)
12387 version_type=windows
12392 case $GCC,$host_os in
12393 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12394 library_names_spec='$libname.dll.a'
12395 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12396 postinstall_cmds='base_file=`basename \${file}`~
12397 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12398 dldir=$destdir/`dirname \$dlpath`~
12399 test -d \$dldir || mkdir -p \$dldir~
12400 $install_prog $dir/$dlname \$dldir/$dlname~
12401 chmod a+x \$dldir/$dlname~
12402 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12403 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12405 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12406 dlpath=$dir/\$dldll~
12408 shlibpath_overrides_runpath=yes
12412 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12413 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12415 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12418 # MinGW DLLs use traditional 'lib' prefix
12419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12422 # pw32 DLLs use 'pw' prefix rather than 'lib'
12423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12432 dynamic_linker='Win32 ld.exe'
12433 # FIXME: first we should search . and the directory the executable is in
12437 darwin* | rhapsody*)
12438 dynamic_linker="$host_os dyld"
12439 version_type=darwin
12442 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12443 soname_spec='${libname}${release}${major}$shared_ext'
12444 shlibpath_overrides_runpath=yes
12445 shlibpath_var=DYLD_LIBRARY_PATH
12446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12457 soname_spec='${libname}${release}${shared_ext}$major'
12458 shlibpath_var=LD_LIBRARY_PATH
12465 freebsd* | dragonfly*)
12466 # DragonFly does not have aout. When/if they implement a new
12467 # versioning mechanism, adjust this.
12468 if test -x /usr/bin/objformat; then
12469 objformat=`/usr/bin/objformat`
12472 freebsd[123]*) objformat=aout ;;
12473 *) objformat=elf ;;
12476 version_type=freebsd-$objformat
12477 case $version_type in
12479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12488 shlibpath_var=LD_LIBRARY_PATH
12491 shlibpath_overrides_runpath=yes
12493 freebsd3.[01]* | freebsdelf3.[01]*)
12494 shlibpath_overrides_runpath=yes
12495 hardcode_into_libs=yes
12497 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12498 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12499 shlibpath_overrides_runpath=no
12500 hardcode_into_libs=yes
12502 *) # from 4.6 on, and DragonFly
12503 shlibpath_overrides_runpath=yes
12504 hardcode_into_libs=yes
12513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12514 soname_spec='${libname}${release}${shared_ext}$major'
12515 shlibpath_var=LD_LIBRARY_PATH
12516 hardcode_into_libs=yes
12523 dynamic_linker="$host_os runtime_loader"
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12525 soname_spec='${libname}${release}${shared_ext}$major'
12526 shlibpath_var=LIBRARY_PATH
12527 shlibpath_overrides_runpath=yes
12528 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12529 hardcode_into_libs=yes
12532 hpux9* | hpux10* | hpux11*)
12533 # Give a soname corresponding to the major version so that dld.sl refuses to
12534 # link against other versions.
12541 hardcode_into_libs=yes
12542 dynamic_linker="$host_os dld.so"
12543 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 if test "X$HPUX_IA64_MODE" = X32; then
12548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12556 hardcode_into_libs=yes
12557 dynamic_linker="$host_os dld.sl"
12558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12561 soname_spec='${libname}${release}${shared_ext}$major'
12562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12567 dynamic_linker="$host_os dld.sl"
12568 shlibpath_var=SHLIB_PATH
12569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571 soname_spec='${libname}${release}${shared_ext}$major'
12574 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12575 postinstall_cmds='chmod 555 $lib'
12576 # or fails outright, so override atomically:
12577 install_override_mode=555
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'
12586 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12587 shlibpath_var=LD_LIBRARY_PATH
12588 shlibpath_overrides_runpath=no
12589 hardcode_into_libs=yes
12592 irix5* | irix6* | nonstopux*)
12594 nonstopux*) version_type=nonstopux ;;
12596 if test "$lt_cv_prog_gnu_ld" = yes; then
12604 soname_spec='${libname}${release}${shared_ext}$major'
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12607 irix5* | nonstopux*)
12608 libsuff= shlibsuff=
12611 case $LD in # libtool.m4 will add one of these switches to LD
12612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12613 libsuff= shlibsuff= libmagic=32-bit;;
12614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12615 libsuff=32 shlibsuff=N32 libmagic=N32;;
12616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12618 *) libsuff= shlibsuff= libmagic=never-match;;
12622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12623 shlibpath_overrides_runpath=no
12624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12626 hardcode_into_libs=yes
12629 # No shared lib support for Linux oldld, aout, or coff.
12630 linux*oldld* | linux*aout* | linux*coff*)
12634 # This must be Linux ELF.
12635 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12640 soname_spec='${libname}${release}${shared_ext}$major'
12641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12642 shlibpath_var=LD_LIBRARY_PATH
12643 shlibpath_overrides_runpath=no
12645 # Some binutils ld are patched to set DT_RUNPATH
12646 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12649 lt_cv_shlibpath_overrides_runpath=no
12650 save_LDFLAGS=$LDFLAGS
12651 save_libdir=$libdir
12652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12654 if test x$gcc_no_link = xyes; then
12655 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12670 lt_cv_shlibpath_overrides_runpath=yes
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 LDFLAGS=$save_LDFLAGS
12676 libdir=$save_libdir
12680 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12682 # This implies no fast_install, which is unacceptable.
12683 # Some rework will be needed to allow for fast_install
12684 # before this can be enabled.
12685 hardcode_into_libs=yes
12687 # Append ld.so.conf contents to the search path
12688 if test -f /etc/ld.so.conf; then
12689 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' ' '`
12690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12693 # We used to test for /lib/ld.so.1 and disable shared libraries on
12694 # powerpc, because MkLinux only supported shared libraries with the
12695 # GNU dynamic linker. Since this was broken with cross compilers,
12696 # most powerpc-linux boxes support dynamic linking these days and
12697 # people can always --disable-shared, the test was removed, and we
12698 # assume the GNU/Linux dynamic linker is in use.
12699 dynamic_linker='GNU/Linux ld.so'
12706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12709 dynamic_linker='NetBSD (a.out) ld.so'
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 dynamic_linker='NetBSD ld.elf_so'
12715 shlibpath_var=LD_LIBRARY_PATH
12716 shlibpath_overrides_runpath=yes
12717 hardcode_into_libs=yes
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12723 shlibpath_var=LD_LIBRARY_PATH
12724 shlibpath_overrides_runpath=yes
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 shlibpath_overrides_runpath=no
12735 hardcode_into_libs=yes
12736 dynamic_linker='ldqnx.so'
12741 sys_lib_dlsearch_path_spec="/usr/lib"
12743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12745 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12746 *) need_version=no ;;
12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12753 openbsd2.[89] | openbsd2.[89].*)
12754 shlibpath_overrides_runpath=no
12757 shlibpath_overrides_runpath=yes
12761 shlibpath_overrides_runpath=yes
12766 libname_spec='$name'
12769 library_names_spec='$libname${shared_ext} $libname.a'
12770 dynamic_linker='OS/2 ld.exe'
12771 shlibpath_var=LIBPATH
12774 osf3* | osf4* | osf5*)
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780 shlibpath_var=LD_LIBRARY_PATH
12781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=yes
12797 hardcode_into_libs=yes
12798 # ldd complains unless libraries are executable
12799 postinstall_cmds='chmod +x $lib'
12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12806 shlibpath_var=LD_LIBRARY_PATH
12807 shlibpath_overrides_runpath=yes
12808 if test "$with_gnu_ld" = yes; then
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 shlibpath_var=LD_LIBRARY_PATH
12819 case $host_vendor in
12821 shlibpath_overrides_runpath=no
12823 runpath_var=LD_RUN_PATH
12831 shlibpath_overrides_runpath=no
12832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12838 if test -d /usr/nec ;then
12840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12841 soname_spec='$libname${shared_ext}.$major'
12842 shlibpath_var=LD_LIBRARY_PATH
12846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12847 version_type=freebsd-elf
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12851 soname_spec='${libname}${release}${shared_ext}$major'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes
12854 hardcode_into_libs=yes
12855 if test "$with_gnu_ld" = yes; then
12856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12865 sys_lib_dlsearch_path_spec='/usr/lib'
12869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=no
12876 hardcode_into_libs=yes
12881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12891 $as_echo "$dynamic_linker" >&6; }
12892 test "$dynamic_linker" = no && can_build_shared=no
12894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12895 if test "$GCC" = yes; then
12896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12899 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12900 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12902 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12903 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12998 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13000 if test -n "$hardcode_libdir_flag_spec" ||
13001 test -n "$runpath_var" ||
13002 test "X$hardcode_automatic" = "Xyes" ; then
13004 # We can hardcode non-existent directories.
13005 if test "$hardcode_direct" != no &&
13006 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13007 # have to relink, otherwise we might link with an installed library
13008 # when we should be linking with a yet-to-be-installed one
13009 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13010 test "$hardcode_minus_L" != no; then
13011 # Linking always hardcodes the temporary library directory.
13012 hardcode_action=relink
13014 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13015 hardcode_action=immediate
13018 # We cannot hardcode anything, or else we can only hardcode existing
13020 hardcode_action=unsupported
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13023 $as_echo "$hardcode_action" >&6; }
13025 if test "$hardcode_action" = relink ||
13026 test "$inherit_rpath" = yes; then
13027 # Fast installation is not supported
13028 enable_fast_install=no
13029 elif test "$shlibpath_overrides_runpath" = yes ||
13030 test "$enable_shared" = no; then
13031 # Fast installation is not necessary
13032 enable_fast_install=needless
13040 if test "x$enable_dlopen" != xyes; then
13041 enable_dlopen=unknown
13042 enable_dlopen_self=unknown
13043 enable_dlopen_self_static=unknown
13050 lt_cv_dlopen="load_add_on"
13052 lt_cv_dlopen_self=yes
13055 mingw* | pw32* | cegcc*)
13056 lt_cv_dlopen="LoadLibrary"
13061 lt_cv_dlopen="dlopen"
13066 # if libdl is installed we need to link against it
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13068 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13072 ac_check_lib_save_LIBS=$LIBS
13074 if test x$gcc_no_link = xyes; then
13075 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_lib_dl_dlopen=yes
13098 ac_cv_lib_dl_dlopen=no
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13106 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13110 lt_cv_dlopen="dyld"
13112 lt_cv_dlopen_self=yes
13119 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13120 if test "x$ac_cv_func_shl_load" = x""yes; then :
13121 lt_cv_dlopen="shl_load"
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13124 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13128 ac_check_lib_save_LIBS=$LIBS
13130 if test x$gcc_no_link = xyes; then
13131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13146 return shl_load ();
13151 if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_dld_shl_load=yes
13154 ac_cv_lib_dld_shl_load=no
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13161 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13162 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13163 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13165 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13166 if test "x$ac_cv_func_dlopen" = x""yes; then :
13167 lt_cv_dlopen="dlopen"
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13170 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13171 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13172 $as_echo_n "(cached) " >&6
13174 ac_check_lib_save_LIBS=$LIBS
13176 if test x$gcc_no_link = xyes; then
13177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180 /* end confdefs.h. */
13182 /* Override any GCC internal prototype to avoid an error.
13183 Use char because int might match the return type of a GCC
13184 builtin and then its argument prototype would still apply. */
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 ac_cv_lib_dl_dlopen=yes
13200 ac_cv_lib_dl_dlopen=no
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13204 LIBS=$ac_check_lib_save_LIBS
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13207 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13208 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13212 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13216 ac_check_lib_save_LIBS=$LIBS
13217 LIBS="-lsvld $LIBS"
13218 if test x$gcc_no_link = xyes; then
13219 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 ac_cv_lib_svld_dlopen=yes
13242 ac_cv_lib_svld_dlopen=no
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13249 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13250 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13254 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13255 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13258 ac_check_lib_save_LIBS=$LIBS
13260 if test x$gcc_no_link = xyes; then
13261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13276 return dld_link ();
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_lib_dld_dld_link=yes
13284 ac_cv_lib_dld_dld_link=no
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LIBS=$ac_check_lib_save_LIBS
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13291 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13292 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13293 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13314 if test "x$lt_cv_dlopen" != xno; then
13320 case $lt_cv_dlopen in
13322 save_CPPFLAGS="$CPPFLAGS"
13323 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13325 save_LDFLAGS="$LDFLAGS"
13326 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13329 LIBS="$lt_cv_dlopen_libs $LIBS"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13332 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13333 if test "${lt_cv_dlopen_self+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13336 if test "$cross_compiling" = yes; then :
13337 lt_cv_dlopen_self=cross
13339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13340 lt_status=$lt_dlunknown
13341 cat > conftest.$ac_ext <<_LT_EOF
13342 #line 13342 "configure"
13343 #include "confdefs.h"
13352 # define LT_DLGLOBAL RTLD_GLOBAL
13355 # define LT_DLGLOBAL DL_GLOBAL
13357 # define LT_DLGLOBAL 0
13361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13362 find out it does not work in some platform. */
13363 #ifndef LT_DLLAZY_OR_NOW
13365 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13368 # define LT_DLLAZY_OR_NOW DL_LAZY
13371 # define LT_DLLAZY_OR_NOW RTLD_NOW
13374 # define LT_DLLAZY_OR_NOW DL_NOW
13376 # define LT_DLLAZY_OR_NOW 0
13383 /* When -fvisbility=hidden is used, assume the code has been annotated
13384 correspondingly for the symbols needed. */
13385 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13386 void fnord () __attribute__((visibility("default")));
13389 void fnord () { int i=42; }
13392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13393 int status = $lt_dlunknown;
13397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13400 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13401 else puts (dlerror ());
13403 /* dlclose (self); */
13411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13412 (eval $ac_link) 2>&5
13414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13415 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13416 (./conftest; exit; ) >&5 2>/dev/null
13418 case x$lt_status in
13419 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13420 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13421 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13424 # compilation failed
13425 lt_cv_dlopen_self=no
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13433 $as_echo "$lt_cv_dlopen_self" >&6; }
13435 if test "x$lt_cv_dlopen_self" = xyes; then
13436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13438 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13439 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13442 if test "$cross_compiling" = yes; then :
13443 lt_cv_dlopen_self_static=cross
13445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13446 lt_status=$lt_dlunknown
13447 cat > conftest.$ac_ext <<_LT_EOF
13448 #line 13448 "configure"
13449 #include "confdefs.h"
13458 # define LT_DLGLOBAL RTLD_GLOBAL
13461 # define LT_DLGLOBAL DL_GLOBAL
13463 # define LT_DLGLOBAL 0
13467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13468 find out it does not work in some platform. */
13469 #ifndef LT_DLLAZY_OR_NOW
13471 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13474 # define LT_DLLAZY_OR_NOW DL_LAZY
13477 # define LT_DLLAZY_OR_NOW RTLD_NOW
13480 # define LT_DLLAZY_OR_NOW DL_NOW
13482 # define LT_DLLAZY_OR_NOW 0
13489 /* When -fvisbility=hidden is used, assume the code has been annotated
13490 correspondingly for the symbols needed. */
13491 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13492 void fnord () __attribute__((visibility("default")));
13495 void fnord () { int i=42; }
13498 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13499 int status = $lt_dlunknown;
13503 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13506 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13507 else puts (dlerror ());
13509 /* dlclose (self); */
13517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13518 (eval $ac_link) 2>&5
13520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13521 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13522 (./conftest; exit; ) >&5 2>/dev/null
13524 case x$lt_status in
13525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13527 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13530 # compilation failed
13531 lt_cv_dlopen_self_static=no
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13539 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13542 CPPFLAGS="$save_CPPFLAGS"
13543 LDFLAGS="$save_LDFLAGS"
13548 case $lt_cv_dlopen_self in
13549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13550 *) enable_dlopen_self=unknown ;;
13553 case $lt_cv_dlopen_self_static in
13554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13555 *) enable_dlopen_self_static=unknown ;;
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13578 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13579 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13580 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13581 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13583 $as_echo "yes" >&6; }
13585 # FIXME - insert some real tests, host_os isn't really good enough
13588 if test -n "$STRIP" ; then
13589 striplib="$STRIP -x"
13590 old_striplib="$STRIP -S"
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13592 $as_echo "yes" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13616 # Report which library types will actually be built
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13618 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13620 $as_echo "$can_build_shared" >&6; }
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13623 $as_echo_n "checking whether to build shared libraries... " >&6; }
13624 test "$can_build_shared" = "no" && enable_shared=no
13626 # On AIX, shared libraries and static libraries use the same namespace, and
13627 # are all built from PIC.
13630 test "$enable_shared" = yes && enable_static=no
13631 if test -n "$RANLIB"; then
13632 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13633 postinstall_cmds='$RANLIB $lib'
13638 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13639 test "$enable_shared" = yes && enable_static=no
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13644 $as_echo "$enable_shared" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13647 $as_echo_n "checking whether to build static libraries... " >&6; }
13648 # Make sure either enable_shared or enable_static is yes.
13649 test "$enable_shared" = yes || enable_static=yes
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13651 $as_echo "$enable_static" >&6; }
13658 ac_cpp='$CPP $CPPFLAGS'
13659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13665 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13666 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13667 (test "X$CXX" != "Xg++"))) ; then
13669 ac_cpp='$CXXCPP $CPPFLAGS'
13670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13674 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13675 if test -z "$CXXCPP"; then
13676 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
13679 # Double quotes because CXXCPP needs to be expanded
13680 for CXXCPP in "$CXX -E" "/lib/cpp"
13682 ac_preproc_ok=false
13683 for ac_cxx_preproc_warn_flag in '' yes
13685 # Use a header file that comes with gcc, so configuring glibc
13686 # with a fresh cross-compiler works.
13687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13688 # <limits.h> exists even on freestanding compilers.
13689 # On the NeXT, cc -E runs the code through the compiler's parser,
13690 # not just through cpp. "Syntax error" is here to catch this case.
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13694 # include <limits.h>
13696 # include <assert.h>
13700 if ac_fn_cxx_try_cpp "$LINENO"; then :
13703 # Broken: fails on valid input.
13706 rm -f conftest.err conftest.$ac_ext
13708 # OK, works on sane cases. Now check whether nonexistent headers
13709 # can be detected and how.
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 #include <ac_nonexistent.h>
13714 if ac_fn_cxx_try_cpp "$LINENO"; then :
13715 # Broken: success on invalid input.
13718 # Passes both tests.
13722 rm -f conftest.err conftest.$ac_ext
13725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13726 rm -f conftest.err conftest.$ac_ext
13727 if $ac_preproc_ok; then :
13732 ac_cv_prog_CXXCPP=$CXXCPP
13735 CXXCPP=$ac_cv_prog_CXXCPP
13737 ac_cv_prog_CXXCPP=$CXXCPP
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13740 $as_echo "$CXXCPP" >&6; }
13741 ac_preproc_ok=false
13742 for ac_cxx_preproc_warn_flag in '' yes
13744 # Use a header file that comes with gcc, so configuring glibc
13745 # with a fresh cross-compiler works.
13746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13747 # <limits.h> exists even on freestanding compilers.
13748 # On the NeXT, cc -E runs the code through the compiler's parser,
13749 # not just through cpp. "Syntax error" is here to catch this case.
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13753 # include <limits.h>
13755 # include <assert.h>
13759 if ac_fn_cxx_try_cpp "$LINENO"; then :
13762 # Broken: fails on valid input.
13765 rm -f conftest.err conftest.$ac_ext
13767 # OK, works on sane cases. Now check whether nonexistent headers
13768 # can be detected and how.
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13771 #include <ac_nonexistent.h>
13773 if ac_fn_cxx_try_cpp "$LINENO"; then :
13774 # Broken: success on invalid input.
13777 # Passes both tests.
13781 rm -f conftest.err conftest.$ac_ext
13784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13785 rm -f conftest.err conftest.$ac_ext
13786 if $ac_preproc_ok; then :
13789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13791 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13792 See \`config.log' for more details." "$LINENO" 5; }
13796 ac_cpp='$CPP $CPPFLAGS'
13797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13802 _lt_caught_CXX_error=yes
13806 ac_cpp='$CXXCPP $CPPFLAGS'
13807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13811 archive_cmds_need_lc_CXX=no
13812 allow_undefined_flag_CXX=
13813 always_export_symbols_CXX=no
13814 archive_expsym_cmds_CXX=
13815 compiler_needs_object_CXX=no
13816 export_dynamic_flag_spec_CXX=
13817 hardcode_direct_CXX=no
13818 hardcode_direct_absolute_CXX=no
13819 hardcode_libdir_flag_spec_CXX=
13820 hardcode_libdir_flag_spec_ld_CXX=
13821 hardcode_libdir_separator_CXX=
13822 hardcode_minus_L_CXX=no
13823 hardcode_shlibpath_var_CXX=unsupported
13824 hardcode_automatic_CXX=no
13825 inherit_rpath_CXX=no
13827 module_expsym_cmds_CXX=
13828 link_all_deplibs_CXX=unknown
13829 old_archive_cmds_CXX=$old_archive_cmds
13830 reload_flag_CXX=$reload_flag
13831 reload_cmds_CXX=$reload_cmds
13832 no_undefined_flag_CXX=
13833 whole_archive_flag_spec_CXX=
13834 enable_shared_with_static_runtimes_CXX=no
13836 # Source file extension for C++ test sources.
13839 # Object file extension for compiled C++ test sources.
13843 # No sense in running all these tests if we already determined that
13844 # the CXX compiler isn't working. Some variables (like enable_shared)
13845 # are currently assumed to apply to all compilers on this platform,
13846 # and will be corrupted by setting them based on a non-working compiler.
13847 if test "$_lt_caught_CXX_error" != yes; then
13848 # Code to be used in simple compile tests
13849 lt_simple_compile_test_code="int some_variable = 0;"
13851 # Code to be used in simple link tests
13852 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13854 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13861 # If no C compiler was specified, use CC.
13864 # If no C compiler flags were specified, use CFLAGS.
13865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13867 # Allow CC to be a program name with arguments.
13871 # save warnings/boilerplate of simple test code
13872 ac_outfile=conftest.$ac_objext
13873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13875 _lt_compiler_boilerplate=`cat conftest.err`
13878 ac_outfile=conftest.$ac_objext
13879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13881 _lt_linker_boilerplate=`cat conftest.err`
13885 # Allow CC to be a program name with arguments.
13890 lt_save_with_gnu_ld=$with_gnu_ld
13891 lt_save_path_LD=$lt_cv_path_LD
13892 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13893 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13895 $as_unset lt_cv_prog_gnu_ld
13897 if test -n "${lt_cv_path_LDCXX+set}"; then
13898 lt_cv_path_LD=$lt_cv_path_LDCXX
13900 $as_unset lt_cv_path_LD
13902 test -z "${LDCXX+set}" || LD=$LDCXX
13906 for cc_temp in $compiler""; do
13908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13914 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13917 if test -n "$compiler"; then
13918 # We don't want -fno-exception when compiling C++ code, so set the
13919 # no_builtin_flag separately
13920 if test "$GXX" = yes; then
13921 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13923 lt_prog_compiler_no_builtin_flag_CXX=
13926 if test "$GXX" = yes; then
13927 # Set up default GNU C++ configuration
13931 # Check whether --with-gnu-ld was given.
13932 if test "${with_gnu_ld+set}" = set; then :
13933 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13939 if test "$GCC" = yes; then
13940 # Check if gcc -print-prog-name=ld gives a path.
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13942 $as_echo_n "checking for ld used by $CC... " >&6; }
13945 # gcc leaves a trailing carriage return which upsets mingw
13946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13951 # Accept absolute paths.
13953 re_direlt='/[^/][^/]*/\.\./'
13954 # Canonicalize the pathname of ld
13955 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13956 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13957 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13959 test -z "$LD" && LD="$ac_prog"
13962 # If it fails, then pretend we aren't using GCC.
13966 # If it is relative, then search for the first ld in PATH.
13967 with_gnu_ld=unknown
13970 elif test "$with_gnu_ld" = yes; then
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13972 $as_echo_n "checking for GNU ld... " >&6; }
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13975 $as_echo_n "checking for non-GNU ld... " >&6; }
13977 if test "${lt_cv_path_LD+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13980 if test -z "$LD"; then
13981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13982 for ac_dir in $PATH; do
13984 test -z "$ac_dir" && ac_dir=.
13985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13986 lt_cv_path_LD="$ac_dir/$ac_prog"
13987 # Check to see if the program is GNU ld. I'd rather use --version,
13988 # but apparently some variants of GNU ld only accept -v.
13989 # Break only if it was the GNU/non-GNU ld that we prefer.
13990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13991 *GNU* | *'with BFD'*)
13992 test "$with_gnu_ld" != no && break
13995 test "$with_gnu_ld" != yes && break
14002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14006 LD="$lt_cv_path_LD"
14007 if test -n "$LD"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14009 $as_echo "$LD" >&6; }
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14014 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14017 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14018 $as_echo_n "(cached) " >&6
14020 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14021 case `$LD -v 2>&1 </dev/null` in
14022 *GNU* | *'with BFD'*)
14023 lt_cv_prog_gnu_ld=yes
14026 lt_cv_prog_gnu_ld=no
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14031 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14032 with_gnu_ld=$lt_cv_prog_gnu_ld
14040 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14041 # archiving commands below assume that GNU ld is being used.
14042 if test "$with_gnu_ld" = yes; then
14043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14044 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'
14046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14049 # If archive_cmds runs LD, not CC, wlarc should be empty
14050 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14051 # investigate it a little bit more. (MM)
14054 # ancient GNU ld didn't support --whole-archive et. al.
14055 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14056 $GREP 'no-whole-archive' > /dev/null; then
14057 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14059 whole_archive_flag_spec_CXX=
14065 # A generic and very simple default shared library creation
14066 # command for GNU C++ for the case where it uses the native
14067 # linker, instead of GNU ld. If possible, this setting should
14068 # overridden to take advantage of the native linker features on
14069 # the platform it is being used on.
14070 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14073 # Commands to make compiler produce verbose output that lists
14074 # what "hidden" libraries, object files and flags are used when
14075 # linking a shared library.
14076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14084 # PORTME: fill in a description of your system's C++ link characteristics
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14086 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14090 # FIXME: insert proper C++ library support
14094 if test "$host_cpu" = ia64; then
14095 # On IA64, the linker does run time linking by default, so we don't
14096 # have to do anything special.
14097 aix_use_runtimelinking=no
14098 exp_sym_flag='-Bexport'
14101 aix_use_runtimelinking=no
14103 # Test if we are trying to use run time linking or normal
14104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14105 # need to do runtime linking.
14106 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14107 for ld_flag in $LDFLAGS; do
14110 aix_use_runtimelinking=yes
14118 exp_sym_flag='-bexport'
14119 no_entry_flag='-bnoentry'
14122 # When large executables or shared objects are built, AIX ld can
14123 # have problems creating the table of contents. If linking a library
14124 # or program results in "error TOC overflow" add -mminimal-toc to
14125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14128 archive_cmds_CXX=''
14129 hardcode_direct_CXX=yes
14130 hardcode_direct_absolute_CXX=yes
14131 hardcode_libdir_separator_CXX=':'
14132 link_all_deplibs_CXX=yes
14133 file_list_spec_CXX='${wl}-f,'
14135 if test "$GXX" = yes; then
14136 case $host_os in aix4.[012]|aix4.[012].*)
14137 # We only want to do this on AIX 4.2 and lower, the check
14138 # below for broken collect2 doesn't work under 4.3+
14139 collect2name=`${CC} -print-prog-name=collect2`
14140 if test -f "$collect2name" &&
14141 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14143 # We have reworked collect2
14146 # We have old collect2
14147 hardcode_direct_CXX=unsupported
14148 # It fails to find uninstalled libraries when the uninstalled
14149 # path is not listed in the libpath. Setting hardcode_minus_L
14150 # to unsupported forces relinking
14151 hardcode_minus_L_CXX=yes
14152 hardcode_libdir_flag_spec_CXX='-L$libdir'
14153 hardcode_libdir_separator_CXX=
14156 shared_flag='-shared'
14157 if test "$aix_use_runtimelinking" = yes; then
14158 shared_flag="$shared_flag "'${wl}-G'
14162 if test "$host_cpu" = ia64; then
14163 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14164 # chokes on -Wl,-G. The following line is correct:
14167 if test "$aix_use_runtimelinking" = yes; then
14168 shared_flag='${wl}-G'
14170 shared_flag='${wl}-bM:SRE'
14175 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14176 # It seems that -bexpall does not export symbols beginning with
14177 # underscore (_), so it is better to generate a list of symbols to
14179 always_export_symbols_CXX=yes
14180 if test "$aix_use_runtimelinking" = yes; then
14181 # Warning - without using the other runtime loading flags (-brtl),
14182 # -berok will link without error, but may produce a broken library.
14183 allow_undefined_flag_CXX='-berok'
14184 # Determine the default libpath from the value encoded in an empty
14186 if test x$gcc_no_link = xyes; then
14187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14200 if ac_fn_cxx_try_link "$LINENO"; then :
14202 lt_aix_libpath_sed='
14203 /Import File Strings/,/^$/ {
14209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14210 # Check for a 64-bit object if we didn't find anything.
14211 if test -z "$aix_libpath"; then
14212 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14215 rm -f core conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14219 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14221 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"
14223 if test "$host_cpu" = ia64; then
14224 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14225 allow_undefined_flag_CXX="-z nodefs"
14226 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"
14228 # Determine the default libpath from the value encoded in an
14229 # empty executable.
14230 if test x$gcc_no_link = xyes; then
14231 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14244 if ac_fn_cxx_try_link "$LINENO"; then :
14246 lt_aix_libpath_sed='
14247 /Import File Strings/,/^$/ {
14253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14254 # Check for a 64-bit object if we didn't find anything.
14255 if test -z "$aix_libpath"; then
14256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14259 rm -f core conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
14261 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14263 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14264 # Warning - without using the other run time loading flags,
14265 # -berok will link without error, but may produce a broken library.
14266 no_undefined_flag_CXX=' ${wl}-bernotok'
14267 allow_undefined_flag_CXX=' ${wl}-berok'
14268 if test "$with_gnu_ld" = yes; then
14269 # We only use this code for GNU lds that support --whole-archive.
14270 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14272 # Exported symbols can be pulled into shared objects from archives
14273 whole_archive_flag_spec_CXX='$convenience'
14275 archive_cmds_need_lc_CXX=yes
14276 # This is similar to how AIX traditionally builds its shared
14278 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'
14284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14285 allow_undefined_flag_CXX=unsupported
14286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14287 # support --undefined. This deserves some investigation. FIXME
14288 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14295 case $cc_basename in
14297 # FIXME: insert proper C++ library support
14303 cygwin* | mingw* | pw32* | cegcc*)
14304 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14305 # as there is no search path for DLLs.
14306 hardcode_libdir_flag_spec_CXX='-L$libdir'
14307 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14308 allow_undefined_flag_CXX=unsupported
14309 always_export_symbols_CXX=no
14310 enable_shared_with_static_runtimes_CXX=yes
14312 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14313 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'
14314 # If the export-symbols file already is a .def file (1st line
14315 # is EXPORTS), use it as is; otherwise, prepend...
14316 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14317 cp $export_symbols $output_objdir/$soname.def;
14319 echo EXPORTS > $output_objdir/$soname.def;
14320 cat $export_symbols >> $output_objdir/$soname.def;
14322 $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'
14327 darwin* | rhapsody*)
14330 archive_cmds_need_lc_CXX=no
14331 hardcode_direct_CXX=no
14332 hardcode_automatic_CXX=yes
14333 hardcode_shlibpath_var_CXX=unsupported
14334 if test "$lt_cv_ld_force_load" = "yes"; then
14335 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\"`'
14337 whole_archive_flag_spec_CXX=''
14339 link_all_deplibs_CXX=yes
14340 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14341 case $cc_basename in
14342 ifort*) _lt_dar_can_shared=yes ;;
14343 *) _lt_dar_can_shared=$GCC ;;
14345 if test "$_lt_dar_can_shared" = "yes"; then
14346 output_verbose_link_cmd=func_echo_all
14347 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}"
14348 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14349 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}"
14350 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}"
14351 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14352 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}"
14353 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}"
14363 case $cc_basename in
14365 # FIXME: insert proper C++ library support
14369 # Green Hills C++ Compiler
14370 # FIXME: insert proper C++ library support
14374 # FIXME: insert proper C++ library support
14381 # C++ shared libraries reported to be fairly broken before
14387 archive_cmds_need_lc_CXX=no
14390 freebsd* | dragonfly*)
14391 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14400 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14401 link_all_deplibs_CXX=yes
14405 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14406 hardcode_libdir_separator_CXX=:
14407 export_dynamic_flag_spec_CXX='${wl}-E'
14408 hardcode_direct_CXX=yes
14409 hardcode_minus_L_CXX=yes # Not in the search PATH,
14410 # but as the default
14411 # location of the library.
14413 case $cc_basename in
14415 # FIXME: insert proper C++ library support
14419 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'
14420 # Commands to make compiler produce verbose output that lists
14421 # what "hidden" libraries, object files and flags are used when
14422 # linking a shared library.
14424 # There doesn't appear to be a way to prevent this compiler from
14425 # explicitly linking system object files so we need to strip them
14426 # from the output so that they don't get included in the library
14428 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"'
14431 if test "$GXX" = yes; then
14432 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'
14434 # FIXME: insert proper C++ library support
14442 if test $with_gnu_ld = no; then
14443 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14444 hardcode_libdir_separator_CXX=:
14450 export_dynamic_flag_spec_CXX='${wl}-E'
14456 hardcode_direct_CXX=no
14457 hardcode_shlibpath_var_CXX=no
14460 hardcode_direct_CXX=yes
14461 hardcode_direct_absolute_CXX=yes
14462 hardcode_minus_L_CXX=yes # Not in the search PATH,
14463 # but as the default
14464 # location of the library.
14468 case $cc_basename in
14470 # FIXME: insert proper C++ library support
14476 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14479 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14485 # Commands to make compiler produce verbose output that lists
14486 # what "hidden" libraries, object files and flags are used when
14487 # linking a shared library.
14489 # There doesn't appear to be a way to prevent this compiler from
14490 # explicitly linking system object files so we need to strip them
14491 # from the output so that they don't get included in the library
14493 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"'
14496 if test "$GXX" = yes; then
14497 if test $with_gnu_ld = no; then
14500 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14503 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506 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'
14511 # FIXME: insert proper C++ library support
14519 hardcode_direct_CXX=no
14520 hardcode_shlibpath_var_CXX=no
14521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14522 export_dynamic_flag_spec_CXX='${wl}-E'
14523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14524 # Instead, shared libraries are loaded at an image base (0x10000000 by
14525 # default) and relocated if they conflict, which is a slow very memory
14526 # consuming and fragmenting process. To avoid this, we pick a random,
14527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14529 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'
14530 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'
14533 case $cc_basename in
14536 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'
14538 # Archives containing C++ object files must be created using
14539 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14540 # necessary to make sure instantiated templates are included
14542 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14545 if test "$GXX" = yes; then
14546 if test "$with_gnu_ld" = no; then
14547 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'
14549 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'
14552 link_all_deplibs_CXX=yes
14555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14556 hardcode_libdir_separator_CXX=:
14557 inherit_rpath_CXX=yes
14560 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14561 case $cc_basename in
14563 # Kuck and Associates, Inc. (KAI) C++ Compiler
14565 # KCC will only create a shared library if the output file
14566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14567 # to its proper name (with version) after linking.
14568 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'
14569 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'
14570 # Commands to make compiler produce verbose output that lists
14571 # what "hidden" libraries, object files and flags are used when
14572 # linking a shared library.
14574 # There doesn't appear to be a way to prevent this compiler from
14575 # explicitly linking system object files so we need to strip them
14576 # from the output so that they don't get included in the library
14578 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"'
14580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14583 # Archives containing C++ object files must be created using
14584 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14585 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14590 # version 8.0 and above of icpc choke on multiply defined symbols
14591 # if we add $predep_objects and $postdep_objects, however 7.1 and
14592 # earlier do not add the objects themselves.
14593 case `$CC -V 2>&1` in
14595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14596 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'
14598 *) # Version 8.0 or newer
14601 ia64*) tmp_idyn=' -i_dynamic';;
14603 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14604 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'
14607 archive_cmds_need_lc_CXX=no
14608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14609 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14610 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14613 # Portland Group C++ compiler
14615 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14616 prelink_cmds_CXX='tpldir=Template.dir~
14618 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14619 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14620 old_archive_cmds_CXX='tpldir=Template.dir~
14622 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14623 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14625 archive_cmds_CXX='tpldir=Template.dir~
14627 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14628 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14629 archive_expsym_cmds_CXX='tpldir=Template.dir~
14631 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14632 $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'
14634 *) # Version 6 and above use weak symbols
14635 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14636 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'
14640 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14642 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'
14646 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14647 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'
14649 runpath_var=LD_RUN_PATH
14650 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14651 hardcode_libdir_separator_CXX=:
14653 # Commands to make compiler produce verbose output that lists
14654 # what "hidden" libraries, object files and flags are used when
14655 # linking a shared library.
14657 # There doesn't appear to be a way to prevent this compiler from
14658 # explicitly linking system object files so we need to strip them
14659 # from the output so that they don't get included in the library
14661 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'
14663 xl* | mpixl* | bgxl*)
14664 # IBM XL 8.0 on PPC, with GNU ld
14665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14667 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14668 if test "x$supports_anon_versioning" = xyes; then
14669 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14670 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14671 echo "local: *; };" >> $output_objdir/$libname.ver~
14672 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14676 case `$CC -V 2>&1 | sed 5q` in
14679 no_undefined_flag_CXX=' -zdefs'
14680 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14681 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'
14682 hardcode_libdir_flag_spec_CXX='-R$libdir'
14683 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'
14684 compiler_needs_object_CXX=yes
14686 # Not sure whether something based on
14687 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14689 output_verbose_link_cmd='func_echo_all'
14691 # Archives containing C++ object files must be created using
14692 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14693 # necessary to make sure instantiated templates are included
14695 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14703 # FIXME: insert proper C++ library support
14708 # FIXME: insert proper C++ library support
14713 case $cc_basename in
14715 # FIXME: insert proper C++ library support
14719 # FIXME: insert proper C++ library support
14726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14727 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14729 hardcode_libdir_flag_spec_CXX='-R$libdir'
14730 hardcode_direct_CXX=yes
14731 hardcode_shlibpath_var_CXX=no
14733 # Workaround some broken pre-1.5 toolchains
14734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14742 # C++ shared libraries are fairly broken
14747 if test -f /usr/libexec/ld.so; then
14748 hardcode_direct_CXX=yes
14749 hardcode_shlibpath_var_CXX=no
14750 hardcode_direct_absolute_CXX=yes
14751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14754 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14755 export_dynamic_flag_spec_CXX='${wl}-E'
14756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14758 output_verbose_link_cmd=func_echo_all
14764 osf3* | osf4* | osf5*)
14765 case $cc_basename in
14767 # Kuck and Associates, Inc. (KAI) C++ Compiler
14769 # KCC will only create a shared library if the output file
14770 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14771 # to its proper name (with version) after linking.
14772 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'
14774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14775 hardcode_libdir_separator_CXX=:
14777 # Archives containing C++ object files must be created using
14778 # the KAI C++ compiler.
14780 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14781 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14785 # Rational C++ 2.4.1
14786 # FIXME: insert proper C++ library support
14792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14793 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'
14794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14797 allow_undefined_flag_CXX=' -expect_unresolved \*'
14798 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'
14799 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14800 echo "-hidden">> $lib.exp~
14801 $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~
14803 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14807 hardcode_libdir_separator_CXX=:
14809 # Commands to make compiler produce verbose output that lists
14810 # what "hidden" libraries, object files and flags are used when
14811 # linking a shared library.
14813 # There doesn't appear to be a way to prevent this compiler from
14814 # explicitly linking system object files so we need to strip them
14815 # from the output so that they don't get included in the library
14817 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"'
14820 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14821 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14824 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'
14827 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'
14831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14832 hardcode_libdir_separator_CXX=:
14834 # Commands to make compiler produce verbose output that lists
14835 # what "hidden" libraries, object files and flags are used when
14836 # linking a shared library.
14837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14840 # FIXME: insert proper C++ library support
14848 # FIXME: insert proper C++ library support
14853 case $cc_basename in
14856 # FIXME: insert proper C++ library support
14861 # FIXME: insert proper C++ library support
14865 # FIXME: insert proper C++ library support
14872 case $cc_basename in
14874 # Sun C++ 4.2, 5.x and Centerline C++
14875 archive_cmds_need_lc_CXX=yes
14876 no_undefined_flag_CXX=' -zdefs'
14877 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14878 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14879 $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'
14881 hardcode_libdir_flag_spec_CXX='-R$libdir'
14882 hardcode_shlibpath_var_CXX=no
14884 solaris2.[0-5] | solaris2.[0-5].*) ;;
14886 # The compiler driver will combine and reorder linker options,
14887 # but understands `-z linker_flag'.
14888 # Supported since Solaris 2.6 (maybe 2.5.1?)
14889 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14892 link_all_deplibs_CXX=yes
14894 output_verbose_link_cmd='func_echo_all'
14896 # Archives containing C++ object files must be created using
14897 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14898 # necessary to make sure instantiated templates are included
14900 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14903 # Green Hills C++ Compiler
14904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14906 # The C++ compiler must be used to create the archive.
14907 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14910 # GNU C++ compiler with Solaris linker
14911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14912 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14913 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14914 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14915 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14916 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14918 # Commands to make compiler produce verbose output that lists
14919 # what "hidden" libraries, object files and flags are used when
14920 # linking a shared library.
14921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14923 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14925 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14926 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14927 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14929 # Commands to make compiler produce verbose output that lists
14930 # what "hidden" libraries, object files and flags are used when
14931 # linking a shared library.
14932 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14935 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14937 solaris2.[0-5] | solaris2.[0-5].*) ;;
14939 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14948 no_undefined_flag_CXX='${wl}-z,text'
14949 archive_cmds_need_lc_CXX=no
14950 hardcode_shlibpath_var_CXX=no
14951 runpath_var='LD_RUN_PATH'
14953 case $cc_basename in
14955 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 sysv5* | sco3.2v5* | sco5v6*)
14966 # Note: We can NOT use -z defs as we might desire, because we do not
14967 # link with -lc, and that would cause any symbols used from libc to
14968 # always be unresolved, which means just about no library would
14969 # ever link correctly. If we're not using GNU ld we use -z text
14970 # though, which does catch some bad symbols but isn't as heavy-handed
14972 no_undefined_flag_CXX='${wl}-z,text'
14973 allow_undefined_flag_CXX='${wl}-z,nodefs'
14974 archive_cmds_need_lc_CXX=no
14975 hardcode_shlibpath_var_CXX=no
14976 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14977 hardcode_libdir_separator_CXX=':'
14978 link_all_deplibs_CXX=yes
14979 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14980 runpath_var='LD_RUN_PATH'
14982 case $cc_basename in
14984 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14987 '"$old_archive_cmds_CXX"
14988 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14989 '"$reload_cmds_CXX"
14992 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999 case $cc_basename in
15001 # NonStop-UX NCC 3.20
15002 # FIXME: insert proper C++ library support
15006 # FIXME: insert proper C++ library support
15013 # FIXME: insert proper C++ library support
15018 # FIXME: insert proper C++ library support
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15024 $as_echo "$ld_shlibs_CXX" >&6; }
15025 test "$ld_shlibs_CXX" = no && can_build_shared=no
15031 ## There is no encapsulation within the following macros, do not change
15032 ## the running order or otherwise move them around unless you know exactly
15033 ## what you are doing...
15034 # Dependencies to place before and after the object being linked:
15035 predep_objects_CXX=
15036 postdep_objects_CXX=
15039 compiler_lib_search_path_CXX=
15041 cat > conftest.$ac_ext <<_LT_EOF
15045 Foo (void) { a = 0; }
15051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15052 (eval $ac_compile) 2>&5
15054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15055 test $ac_status = 0; }; then
15056 # Parse the compiler output and extract the necessary
15057 # objects, libraries and library flags.
15059 # Sentinel used to keep track of whether or not we are before
15060 # the conftest object file.
15061 pre_test_object_deps_done=no
15063 for p in `eval "$output_verbose_link_cmd"`; do
15067 # Some compilers place space between "-{L,R}" and the path.
15068 # Remove the space.
15069 if test $p = "-L" ||
15070 test $p = "-R"; then
15077 if test "$pre_test_object_deps_done" = no; then
15080 # Internal compiler library paths should come after those
15081 # provided the user. The postdeps already come after the
15082 # user supplied libs so there is no need to process them.
15083 if test -z "$compiler_lib_search_path_CXX"; then
15084 compiler_lib_search_path_CXX="${prev}${p}"
15086 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15089 # The "-l" case would never come before the object being
15090 # linked, so don't bother handling this case.
15093 if test -z "$postdeps_CXX"; then
15094 postdeps_CXX="${prev}${p}"
15096 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15102 # This assumes that the test object file only shows up
15103 # once in the compiler output.
15104 if test "$p" = "conftest.$objext"; then
15105 pre_test_object_deps_done=yes
15109 if test "$pre_test_object_deps_done" = no; then
15110 if test -z "$predep_objects_CXX"; then
15111 predep_objects_CXX="$p"
15113 predep_objects_CXX="$predep_objects_CXX $p"
15116 if test -z "$postdep_objects_CXX"; then
15117 postdep_objects_CXX="$p"
15119 postdep_objects_CXX="$postdep_objects_CXX $p"
15124 *) ;; # Ignore the rest.
15132 echo "libtool.m4: error: problem compiling CXX test program"
15135 $RM -f confest.$objext
15137 # PORTME: override above test on systems where it is broken
15140 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15141 # hack all around it, let's just trust "g++" to DTRT.
15142 predep_objects_CXX=
15143 postdep_objects_CXX=
15148 case `$CC -V 2>&1 | sed 5q` in
15152 # The more standards-conforming stlport4 library is
15153 # incompatible with the Cstd library. Avoid specifying
15154 # it if it's in CXXFLAGS. Ignore libCrun as
15155 # -library=stlport4 depends on it.
15156 case " $CXX $CXXFLAGS " in
15157 *" -library=stlport4 "*)
15158 solaris_use_stlport4=yes
15162 if test "$solaris_use_stlport4" != yes; then
15163 postdeps_CXX='-library=Cstd -library=Crun'
15170 case $cc_basename in
15172 # The more standards-conforming stlport4 library is
15173 # incompatible with the Cstd library. Avoid specifying
15174 # it if it's in CXXFLAGS. Ignore libCrun as
15175 # -library=stlport4 depends on it.
15176 case " $CXX $CXXFLAGS " in
15177 *" -library=stlport4 "*)
15178 solaris_use_stlport4=yes
15182 # Adding this requires a known-good setup of shared libraries for
15183 # Sun compiler versions before 5.6, else PIC objects from an old
15184 # archive will be linked into the output, leading to subtle bugs.
15185 if test "$solaris_use_stlport4" != yes; then
15186 postdeps_CXX='-library=Cstd -library=Crun'
15194 case " $postdeps_CXX " in
15195 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15197 compiler_lib_search_dirs_CXX=
15198 if test -n "${compiler_lib_search_path_CXX}"; then
15199 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15232 lt_prog_compiler_wl_CXX=
15233 lt_prog_compiler_pic_CXX=
15234 lt_prog_compiler_static_CXX=
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15237 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15239 # C++ specific cases for pic, static, wl, etc.
15240 if test "$GXX" = yes; then
15241 lt_prog_compiler_wl_CXX='-Wl,'
15242 lt_prog_compiler_static_CXX='-static'
15246 # All AIX code is PIC.
15247 if test "$host_cpu" = ia64; then
15248 # AIX 5 now supports IA64 processor
15249 lt_prog_compiler_static_CXX='-Bstatic'
15256 # see comment about AmigaOS4 .so support
15257 lt_prog_compiler_pic_CXX='-fPIC'
15260 # FIXME: we need at least 68020 code to build shared libraries, but
15261 # adding the `-m68020' flag to GCC prevents building anything better,
15263 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15269 # PIC is the default for these OSes.
15271 mingw* | cygwin* | os2* | pw32* | cegcc*)
15272 # This hack is so that the source file can tell whether it is being
15273 # built for inclusion in a dll (and should export symbols for example).
15274 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15275 # (--disable-auto-import) libraries
15276 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15278 darwin* | rhapsody*)
15279 # PIC is the default on this platform
15280 # Common symbols not allowed in MH_DYLIB files
15281 lt_prog_compiler_pic_CXX='-fno-common'
15284 # DJGPP does not support shared libraries at all
15285 lt_prog_compiler_pic_CXX=
15288 # PIC is the default for Haiku.
15289 # The "-static" flag exists, but is broken.
15290 lt_prog_compiler_static_CXX=
15293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15294 # Instead, we relocate shared libraries at runtime.
15297 if test -d /usr/nec; then
15298 lt_prog_compiler_pic_CXX=-Kconform_pic
15302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15304 # sets the default TLS model and affects inlining.
15309 lt_prog_compiler_pic_CXX='-fPIC'
15314 # QNX uses GNU C++, but need to define -shared option too, otherwise
15315 # it will coredump.
15316 lt_prog_compiler_pic_CXX='-fPIC -shared'
15319 lt_prog_compiler_pic_CXX='-fPIC'
15325 # All AIX code is PIC.
15326 if test "$host_cpu" = ia64; then
15327 # AIX 5 now supports IA64 processor
15328 lt_prog_compiler_static_CXX='-Bstatic'
15330 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15334 case $cc_basename in
15336 # Green Hills C++ Compiler
15337 # _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"
15342 case $cc_basename in
15344 lt_prog_compiler_pic_CXX='-KPIC'
15347 # Green Hills C++ Compiler
15348 lt_prog_compiler_pic_CXX='-pic'
15354 freebsd* | dragonfly*)
15355 # FreeBSD uses GNU C++
15357 hpux9* | hpux10* | hpux11*)
15358 case $cc_basename in
15360 lt_prog_compiler_wl_CXX='-Wl,'
15361 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15362 if test "$host_cpu" != ia64; then
15363 lt_prog_compiler_pic_CXX='+Z'
15367 lt_prog_compiler_wl_CXX='-Wl,'
15368 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15374 lt_prog_compiler_pic_CXX='+Z'
15383 # This is c89, which is MS Visual C++ (no shared libs)
15384 # Anyone wants to do a port?
15386 irix5* | irix6* | nonstopux*)
15387 case $cc_basename in
15389 lt_prog_compiler_wl_CXX='-Wl,'
15390 lt_prog_compiler_static_CXX='-non_shared'
15391 # CC pic flag -KPIC is the default.
15397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15398 case $cc_basename in
15401 lt_prog_compiler_wl_CXX='--backend -Wl,'
15402 lt_prog_compiler_pic_CXX='-fPIC'
15405 # old Intel C++ for x86_64 which still supported -KPIC.
15406 lt_prog_compiler_wl_CXX='-Wl,'
15407 lt_prog_compiler_pic_CXX='-KPIC'
15408 lt_prog_compiler_static_CXX='-static'
15411 # Intel C++, used to be incompatible with GCC.
15412 # ICC 10 doesn't accept -KPIC any more.
15413 lt_prog_compiler_wl_CXX='-Wl,'
15414 lt_prog_compiler_pic_CXX='-fPIC'
15415 lt_prog_compiler_static_CXX='-static'
15418 # Portland Group C++ compiler
15419 lt_prog_compiler_wl_CXX='-Wl,'
15420 lt_prog_compiler_pic_CXX='-fpic'
15421 lt_prog_compiler_static_CXX='-Bstatic'
15425 # Make sure the PIC flag is empty. It appears that all Alpha
15426 # Linux and Compaq Tru64 Unix objects are PIC.
15427 lt_prog_compiler_pic_CXX=
15428 lt_prog_compiler_static_CXX='-non_shared'
15430 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15431 # IBM XL 8.0, 9.0 on PPC and BlueGene
15432 lt_prog_compiler_wl_CXX='-Wl,'
15433 lt_prog_compiler_pic_CXX='-qpic'
15434 lt_prog_compiler_static_CXX='-qstaticlink'
15437 case `$CC -V 2>&1 | sed 5q` in
15440 lt_prog_compiler_pic_CXX='-KPIC'
15441 lt_prog_compiler_static_CXX='-Bstatic'
15442 lt_prog_compiler_wl_CXX='-Qoption ld '
15453 case $cc_basename in
15455 lt_prog_compiler_pic_CXX='-W c,exportall'
15464 # QNX uses GNU C++, but need to define -shared option too, otherwise
15465 # it will coredump.
15466 lt_prog_compiler_pic_CXX='-fPIC -shared'
15468 osf3* | osf4* | osf5*)
15469 case $cc_basename in
15471 lt_prog_compiler_wl_CXX='--backend -Wl,'
15474 # Rational C++ 2.4.1
15475 lt_prog_compiler_pic_CXX='-pic'
15478 # Digital/Compaq C++
15479 lt_prog_compiler_wl_CXX='-Wl,'
15480 # Make sure the PIC flag is empty. It appears that all Alpha
15481 # Linux and Compaq Tru64 Unix objects are PIC.
15482 lt_prog_compiler_pic_CXX=
15483 lt_prog_compiler_static_CXX='-non_shared'
15492 case $cc_basename in
15494 # Sun C++ 4.2, 5.x and Centerline C++
15495 lt_prog_compiler_pic_CXX='-KPIC'
15496 lt_prog_compiler_static_CXX='-Bstatic'
15497 lt_prog_compiler_wl_CXX='-Qoption ld '
15500 # Green Hills C++ Compiler
15501 lt_prog_compiler_pic_CXX='-PIC'
15508 case $cc_basename in
15511 lt_prog_compiler_pic_CXX='-pic'
15512 lt_prog_compiler_static_CXX='-Bstatic'
15516 lt_prog_compiler_pic_CXX='-pic'
15522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15523 case $cc_basename in
15525 lt_prog_compiler_wl_CXX='-Wl,'
15526 lt_prog_compiler_pic_CXX='-KPIC'
15527 lt_prog_compiler_static_CXX='-Bstatic'
15532 case $cc_basename in
15534 # NonStop-UX NCC 3.20
15535 lt_prog_compiler_pic_CXX='-KPIC'
15544 lt_prog_compiler_can_build_shared_CXX=no
15550 # For platforms which do not support PIC, -DPIC is meaningless:
15552 lt_prog_compiler_pic_CXX=
15555 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15559 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15564 # Check to make sure the PIC flag actually works.
15566 if test -n "$lt_prog_compiler_pic_CXX"; then
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15569 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15570 $as_echo_n "(cached) " >&6
15572 lt_cv_prog_compiler_pic_works_CXX=no
15573 ac_outfile=conftest.$ac_objext
15574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15575 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15576 # Insert the option either (1) after the last *FLAGS variable, or
15577 # (2) before a word containing "conftest.", or (3) at the end.
15578 # Note that $ac_compile itself does not contain backslashes and begins
15579 # with a dollar sign (not a hyphen), so the echo should work correctly.
15580 # The option is referenced via a variable to avoid confusing sed.
15581 lt_compile=`echo "$ac_compile" | $SED \
15582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15584 -e 's:$: $lt_compiler_flag:'`
15585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15586 (eval "$lt_compile" 2>conftest.err)
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 if (exit $ac_status) && test -s "$ac_outfile"; then
15591 # The compiler can only warn and ignore the option if not recognized
15592 # So say no if there are warnings other than the usual output.
15593 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15596 lt_cv_prog_compiler_pic_works_CXX=yes
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15603 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15605 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15606 case $lt_prog_compiler_pic_CXX in
15608 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15611 lt_prog_compiler_pic_CXX=
15612 lt_prog_compiler_can_build_shared_CXX=no
15620 # Check to make sure the static flag actually works.
15622 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15625 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15626 $as_echo_n "(cached) " >&6
15628 lt_cv_prog_compiler_static_works_CXX=no
15629 save_LDFLAGS="$LDFLAGS"
15630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15633 # The linker can only warn and ignore the option if not recognized
15634 # So say no if there are warnings
15635 if test -s conftest.err; then
15636 # Append any errors to the config.log.
15637 cat conftest.err 1>&5
15638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15640 if diff conftest.exp conftest.er2 >/dev/null; then
15641 lt_cv_prog_compiler_static_works_CXX=yes
15644 lt_cv_prog_compiler_static_works_CXX=yes
15648 LDFLAGS="$save_LDFLAGS"
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15652 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15654 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15657 lt_prog_compiler_static_CXX=
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15665 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15668 lt_cv_prog_compiler_c_o_CXX=no
15669 $RM -r conftest 2>/dev/null
15673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15675 lt_compiler_flag="-o out/conftest2.$ac_objext"
15676 # Insert the option either (1) after the last *FLAGS variable, or
15677 # (2) before a word containing "conftest.", or (3) at the end.
15678 # Note that $ac_compile itself does not contain backslashes and begins
15679 # with a dollar sign (not a hyphen), so the echo should work correctly.
15680 lt_compile=`echo "$ac_compile" | $SED \
15681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15683 -e 's:$: $lt_compiler_flag:'`
15684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15685 (eval "$lt_compile" 2>out/conftest.err)
15687 cat out/conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15691 # The compiler can only warn and ignore the option if not recognized
15692 # So say no if there are warnings
15693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15696 lt_cv_prog_compiler_c_o_CXX=yes
15701 # SGI C++ compiler will create directory out/ii_files/ for
15702 # template instantiation
15703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15704 $RM out/* && rmdir out
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15717 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15718 $as_echo_n "(cached) " >&6
15720 lt_cv_prog_compiler_c_o_CXX=no
15721 $RM -r conftest 2>/dev/null
15725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15727 lt_compiler_flag="-o out/conftest2.$ac_objext"
15728 # Insert the option either (1) after the last *FLAGS variable, or
15729 # (2) before a word containing "conftest.", or (3) at the end.
15730 # Note that $ac_compile itself does not contain backslashes and begins
15731 # with a dollar sign (not a hyphen), so the echo should work correctly.
15732 lt_compile=`echo "$ac_compile" | $SED \
15733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15735 -e 's:$: $lt_compiler_flag:'`
15736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15737 (eval "$lt_compile" 2>out/conftest.err)
15739 cat out/conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15743 # The compiler can only warn and ignore the option if not recognized
15744 # So say no if there are warnings
15745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15748 lt_cv_prog_compiler_c_o_CXX=yes
15753 # SGI C++ compiler will create directory out/ii_files/ for
15754 # template instantiation
15755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15756 $RM out/* && rmdir out
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15763 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15768 hard_links="nottested"
15769 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15770 # do not overwrite the value of need_locks provided by the user
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15772 $as_echo_n "checking if we can lock with hard links... " >&6; }
15775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15777 ln conftest.a conftest.b 2>&5 || hard_links=no
15778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15780 $as_echo "$hard_links" >&6; }
15781 if test "$hard_links" = no; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15795 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15798 # If we're using GNU nm, then we don't want the "-C" option.
15799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15800 # Also, AIX nm treats weak defined symbols like other global defined
15801 # symbols, whereas GNU nm marks them as "W".
15802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15803 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'
15805 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'
15809 export_symbols_cmds_CXX="$ltdll_cmds"
15811 cygwin* | mingw* | cegcc*)
15812 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'
15815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15818 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15821 $as_echo "$ld_shlibs_CXX" >&6; }
15822 test "$ld_shlibs_CXX" = no && can_build_shared=no
15824 with_gnu_ld_CXX=$with_gnu_ld
15832 # Do we need to explicitly link libc?
15834 case "x$archive_cmds_need_lc_CXX" in
15836 # Assume -lc should be added
15837 archive_cmds_need_lc_CXX=yes
15839 if test "$enable_shared" = yes && test "$GCC" = yes; then
15840 case $archive_cmds_CXX in
15842 # FIXME: we may have to deal with multi-command sequences.
15845 # Test whether the compiler implicitly links with -lc since on some
15846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15847 # to ld, don't add -lc before -lgcc.
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15849 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15850 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15857 (eval $ac_compile) 2>&5
15859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15860 test $ac_status = 0; } 2>conftest.err; then
15863 libobjs=conftest.$ac_objext
15865 wl=$lt_prog_compiler_wl_CXX
15866 pic_flag=$lt_prog_compiler_pic_CXX
15872 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15873 allow_undefined_flag_CXX=
15874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15875 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15878 test $ac_status = 0; }
15880 lt_cv_archive_cmds_need_lc_CXX=no
15882 lt_cv_archive_cmds_need_lc_CXX=yes
15884 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15886 cat conftest.err 1>&5
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15892 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15893 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15964 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15966 library_names_spec=
15967 libname_spec='lib$name'
15971 postuninstall_cmds=
15975 shlibpath_overrides_runpath=unknown
15977 dynamic_linker="$host_os ld.so"
15978 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15979 need_lib_prefix=unknown
15980 hardcode_into_libs=no
15982 # when you set need_version to no, make sure it does not cause -set_version
15983 # flags to be left without arguments
15984 need_version=unknown
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15990 shlibpath_var=LIBPATH
15992 # AIX 3 has no versioning support, so we append a major version to the name.
15993 soname_spec='${libname}${release}${shared_ext}$major'
16000 hardcode_into_libs=yes
16001 if test "$host_cpu" = ia64; then
16002 # AIX 5 supports IA64
16003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16004 shlibpath_var=LD_LIBRARY_PATH
16006 # With GCC up to 2.95.x, collect2 would create an import file
16007 # for dependence libraries. The import file would start with
16008 # the line `#! .'. This would cause the generated library to
16009 # depend on `.', always an invalid library. This was fixed in
16010 # development snapshots of GCC prior to 3.0.
16012 aix4 | aix4.[01] | aix4.[01].*)
16013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16015 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16018 can_build_shared=no
16022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16023 # soname into executable. Probably we can add versioning support to
16024 # collect2, so additional links can be useful in future.
16025 if test "$aix_use_runtimelinking" = yes; then
16026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16027 # instead of lib<name>.a to let people know that these are not
16028 # typical AIX shared libraries.
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16031 # We preserve .a as extension for shared libraries through AIX4.2
16032 # and later when we are not doing run time linking.
16033 library_names_spec='${libname}${release}.a $libname.a'
16034 soname_spec='${libname}${release}${shared_ext}$major'
16036 shlibpath_var=LIBPATH
16043 # Since July 2007 AmigaOS4 officially supports .so libraries.
16044 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 library_names_spec='$libname.ixlibrary $libname.a'
16049 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16050 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'
16056 library_names_spec='${libname}${shared_ext}'
16057 dynamic_linker="$host_os ld.so"
16058 shlibpath_var=LIBRARY_PATH
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16070 # the default ld.so.conf also contains /usr/contrib/lib and
16071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16072 # libtool to hard-code these into programs
16075 cygwin* | mingw* | pw32* | cegcc*)
16076 version_type=windows
16081 case $GCC,$host_os in
16082 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16083 library_names_spec='$libname.dll.a'
16084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16085 postinstall_cmds='base_file=`basename \${file}`~
16086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16087 dldir=$destdir/`dirname \$dlpath`~
16088 test -d \$dldir || mkdir -p \$dldir~
16089 $install_prog $dir/$dlname \$dldir/$dlname~
16090 chmod a+x \$dldir/$dlname~
16091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16095 dlpath=$dir/\$dldll~
16097 shlibpath_overrides_runpath=yes
16101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16106 # MinGW DLLs use traditional 'lib' prefix
16107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16110 # pw32 DLLs use 'pw' prefix rather than 'lib'
16111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16120 dynamic_linker='Win32 ld.exe'
16121 # FIXME: first we should search . and the directory the executable is in
16125 darwin* | rhapsody*)
16126 dynamic_linker="$host_os dyld"
16127 version_type=darwin
16130 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16131 soname_spec='${libname}${release}${major}$shared_ext'
16132 shlibpath_overrides_runpath=yes
16133 shlibpath_var=DYLD_LIBRARY_PATH
16134 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16144 soname_spec='${libname}${release}${shared_ext}$major'
16145 shlibpath_var=LD_LIBRARY_PATH
16152 freebsd* | dragonfly*)
16153 # DragonFly does not have aout. When/if they implement a new
16154 # versioning mechanism, adjust this.
16155 if test -x /usr/bin/objformat; then
16156 objformat=`/usr/bin/objformat`
16159 freebsd[123]*) objformat=aout ;;
16160 *) objformat=elf ;;
16163 version_type=freebsd-$objformat
16164 case $version_type in
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16175 shlibpath_var=LD_LIBRARY_PATH
16178 shlibpath_overrides_runpath=yes
16180 freebsd3.[01]* | freebsdelf3.[01]*)
16181 shlibpath_overrides_runpath=yes
16182 hardcode_into_libs=yes
16184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16186 shlibpath_overrides_runpath=no
16187 hardcode_into_libs=yes
16189 *) # from 4.6 on, and DragonFly
16190 shlibpath_overrides_runpath=yes
16191 hardcode_into_libs=yes
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 hardcode_into_libs=yes
16210 dynamic_linker="$host_os runtime_loader"
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LIBRARY_PATH
16214 shlibpath_overrides_runpath=yes
16215 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16216 hardcode_into_libs=yes
16219 hpux9* | hpux10* | hpux11*)
16220 # Give a soname corresponding to the major version so that dld.sl refuses to
16221 # link against other versions.
16228 hardcode_into_libs=yes
16229 dynamic_linker="$host_os dld.so"
16230 shlibpath_var=LD_LIBRARY_PATH
16231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233 soname_spec='${libname}${release}${shared_ext}$major'
16234 if test "X$HPUX_IA64_MODE" = X32; then
16235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16243 hardcode_into_libs=yes
16244 dynamic_linker="$host_os dld.sl"
16245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16254 dynamic_linker="$host_os dld.sl"
16255 shlibpath_var=SHLIB_PATH
16256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16261 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16262 postinstall_cmds='chmod 555 $lib'
16263 # or fails outright, so override atomically:
16264 install_override_mode=555
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'
16273 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 shlibpath_overrides_runpath=no
16276 hardcode_into_libs=yes
16279 irix5* | irix6* | nonstopux*)
16281 nonstopux*) version_type=nonstopux ;;
16283 if test "$lt_cv_prog_gnu_ld" = yes; then
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16294 irix5* | nonstopux*)
16295 libsuff= shlibsuff=
16298 case $LD in # libtool.m4 will add one of these switches to LD
16299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16300 libsuff= shlibsuff= libmagic=32-bit;;
16301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16302 libsuff=32 shlibsuff=N32 libmagic=N32;;
16303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16305 *) libsuff= shlibsuff= libmagic=never-match;;
16309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16310 shlibpath_overrides_runpath=no
16311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16313 hardcode_into_libs=yes
16316 # No shared lib support for Linux oldld, aout, or coff.
16317 linux*oldld* | linux*aout* | linux*coff*)
16321 # This must be Linux ELF.
16322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327 soname_spec='${libname}${release}${shared_ext}$major'
16328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 shlibpath_overrides_runpath=no
16332 # Some binutils ld are patched to set DT_RUNPATH
16333 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16334 $as_echo_n "(cached) " >&6
16336 lt_cv_shlibpath_overrides_runpath=no
16337 save_LDFLAGS=$LDFLAGS
16338 save_libdir=$libdir
16339 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16340 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16341 if test x$gcc_no_link = xyes; then
16342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16355 if ac_fn_cxx_try_link "$LINENO"; then :
16356 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16357 lt_cv_shlibpath_overrides_runpath=yes
16360 rm -f core conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
16362 LDFLAGS=$save_LDFLAGS
16363 libdir=$save_libdir
16367 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16369 # This implies no fast_install, which is unacceptable.
16370 # Some rework will be needed to allow for fast_install
16371 # before this can be enabled.
16372 hardcode_into_libs=yes
16374 # Append ld.so.conf contents to the search path
16375 if test -f /etc/ld.so.conf; then
16376 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' ' '`
16377 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16380 # We used to test for /lib/ld.so.1 and disable shared libraries on
16381 # powerpc, because MkLinux only supported shared libraries with the
16382 # GNU dynamic linker. Since this was broken with cross compilers,
16383 # most powerpc-linux boxes support dynamic linking these days and
16384 # people can always --disable-shared, the test was removed, and we
16385 # assume the GNU/Linux dynamic linker is in use.
16386 dynamic_linker='GNU/Linux ld.so'
16393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16396 dynamic_linker='NetBSD (a.out) ld.so'
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 dynamic_linker='NetBSD ld.elf_so'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 shlibpath_overrides_runpath=yes
16404 hardcode_into_libs=yes
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 shlibpath_overrides_runpath=yes
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=no
16422 hardcode_into_libs=yes
16423 dynamic_linker='ldqnx.so'
16428 sys_lib_dlsearch_path_spec="/usr/lib"
16430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16432 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16433 *) need_version=no ;;
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16440 openbsd2.[89] | openbsd2.[89].*)
16441 shlibpath_overrides_runpath=no
16444 shlibpath_overrides_runpath=yes
16448 shlibpath_overrides_runpath=yes
16453 libname_spec='$name'
16456 library_names_spec='$libname${shared_ext} $libname.a'
16457 dynamic_linker='OS/2 ld.exe'
16458 shlibpath_var=LIBPATH
16461 osf3* | osf4* | osf5*)
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 shlibpath_overrides_runpath=yes
16484 hardcode_into_libs=yes
16485 # ldd complains unless libraries are executable
16486 postinstall_cmds='chmod +x $lib'
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath=yes
16495 if test "$with_gnu_ld" = yes; then
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504 soname_spec='${libname}${release}${shared_ext}$major'
16505 shlibpath_var=LD_LIBRARY_PATH
16506 case $host_vendor in
16508 shlibpath_overrides_runpath=no
16510 runpath_var=LD_RUN_PATH
16518 shlibpath_overrides_runpath=no
16519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16525 if test -d /usr/nec ;then
16527 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16528 soname_spec='$libname${shared_ext}.$major'
16529 shlibpath_var=LD_LIBRARY_PATH
16533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16534 version_type=freebsd-elf
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=yes
16541 hardcode_into_libs=yes
16542 if test "$with_gnu_ld" = yes; then
16543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16545 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16552 sys_lib_dlsearch_path_spec='/usr/lib'
16556 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16561 shlibpath_var=LD_LIBRARY_PATH
16562 shlibpath_overrides_runpath=no
16563 hardcode_into_libs=yes
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16578 $as_echo "$dynamic_linker" >&6; }
16579 test "$dynamic_linker" = no && can_build_shared=no
16581 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16582 if test "$GCC" = yes; then
16583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16586 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16587 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16589 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16590 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16631 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16632 hardcode_action_CXX=
16633 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16634 test -n "$runpath_var_CXX" ||
16635 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16637 # We can hardcode non-existent directories.
16638 if test "$hardcode_direct_CXX" != no &&
16639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16640 # have to relink, otherwise we might link with an installed library
16641 # when we should be linking with a yet-to-be-installed one
16642 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16643 test "$hardcode_minus_L_CXX" != no; then
16644 # Linking always hardcodes the temporary library directory.
16645 hardcode_action_CXX=relink
16647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16648 hardcode_action_CXX=immediate
16651 # We cannot hardcode anything, or else we can only hardcode existing
16653 hardcode_action_CXX=unsupported
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16656 $as_echo "$hardcode_action_CXX" >&6; }
16658 if test "$hardcode_action_CXX" = relink ||
16659 test "$inherit_rpath_CXX" = yes; then
16660 # Fast installation is not supported
16661 enable_fast_install=no
16662 elif test "$shlibpath_overrides_runpath" = yes ||
16663 test "$enable_shared" = no; then
16664 # Fast installation is not necessary
16665 enable_fast_install=needless
16674 fi # test -n "$compiler"
16680 with_gnu_ld=$lt_save_with_gnu_ld
16681 lt_cv_path_LDCXX=$lt_cv_path_LD
16682 lt_cv_path_LD=$lt_save_path_LD
16683 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16684 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16685 fi # test "$_lt_caught_CXX_error" != yes
16688 ac_cpp='$CPP $CPPFLAGS'
16689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16705 ac_config_commands="$ac_config_commands libtool"
16710 # Only expand once:
16714 if test -n "$ac_tool_prefix"; then
16717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16720 $as_echo_n "checking for $ac_word... " >&6; }
16721 if test "${ac_cv_prog_GCJ+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16724 if test -n "$GCJ"; then
16725 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16728 for as_dir in $PATH
16731 test -z "$as_dir" && as_dir=.
16732 for ac_exec_ext in '' $ac_executable_extensions; do
16733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16734 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16744 GCJ=$ac_cv_prog_GCJ
16745 if test -n "$GCJ"; then
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16747 $as_echo "$GCJ" >&6; }
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16750 $as_echo "no" >&6; }
16754 test -n "$GCJ" && break
16757 if test -z "$GCJ"; then
16761 # Extract the first word of "$ac_prog", so it can be a program name with args.
16762 set dummy $ac_prog; ac_word=$2
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16764 $as_echo_n "checking for $ac_word... " >&6; }
16765 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16766 $as_echo_n "(cached) " >&6
16768 if test -n "$ac_ct_GCJ"; then
16769 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16772 for as_dir in $PATH
16775 test -z "$as_dir" && as_dir=.
16776 for ac_exec_ext in '' $ac_executable_extensions; do
16777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16778 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16788 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16789 if test -n "$ac_ct_GCJ"; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16791 $as_echo "$ac_ct_GCJ" >&6; }
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794 $as_echo "no" >&6; }
16798 test -n "$ac_ct_GCJ" && break
16801 if test "x$ac_ct_GCJ" = x; then
16804 case $cross_compiling:$ac_tool_warned in
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16808 ac_tool_warned=yes ;;
16814 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16815 if test "x${GCJFLAGS-unset}" = xunset; then
16820 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16823 $as_echo_n "checking dependency style of $depcc... " >&6; }
16824 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16825 $as_echo_n "(cached) " >&6
16827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16828 # We make a subdir and do the tests there. Otherwise we can end up
16829 # making bogus files that we don't know about and never remove. For
16830 # instance it was reported that on HP-UX the gcc test will end up
16831 # making a dummy file named `D' -- because `-MD' means `put the output
16834 # Copy depcomp to subdir because otherwise we won't find it if we're
16835 # using a relative directory.
16836 cp "$am_depcomp" conftest.dir
16838 # We will build objects and dependencies in a subdirectory because
16839 # it helps to detect inapplicable dependency modes. For instance
16840 # both Tru64's cc and ICC support -MD to output dependencies as a
16841 # side effect of compilation, but ICC will put the dependencies in
16842 # the current directory while Tru64 will put them in the object
16846 am_cv_GCJ_dependencies_compiler_type=none
16847 if test "$am_compiler_list" = ""; then
16848 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16850 am__universal=false
16853 for depmode in $am_compiler_list; do
16854 # Setup a source with many dependencies, because some compilers
16855 # like to wrap large dependency lists on column 80 (with \), and
16856 # we should not choose a depcomp mode which is confused by this.
16858 # We need to recreate these files for each test, as the compiler may
16859 # overwrite some of them when testing with obscure command lines.
16860 # This happens at least with the AIX C compiler.
16862 for i in 1 2 3 4 5 6; do
16863 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16864 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16865 # Solaris 8's {/usr,}/bin/sh.
16866 touch sub/conftst$i.h
16868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16870 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16871 # mode. It turns out that the SunPro C++ compiler does not properly
16872 # handle `-M -o', and we need to detect this. Also, some Intel
16873 # versions had trouble with output in subdirs
16874 am__obj=sub/conftest.${OBJEXT-o}
16875 am__minus_obj="-o $am__obj"
16878 # This depmode causes a compiler race in universal mode.
16879 test "$am__universal" = false || continue
16882 # after this tag, mechanisms are not by side-effect, so they'll
16883 # only be used when explicitly requested
16884 if test "x$enable_dependency_tracking" = xyes; then
16890 msvisualcpp | msvcmsys)
16891 # This compiler won't grok `-c -o', but also, the minuso test has
16892 # not run yet. These depmodes are late enough in the game, and
16893 # so weak that their functioning should not be impacted.
16894 am__obj=conftest.${OBJEXT-o}
16899 if depmode=$depmode \
16900 source=sub/conftest.c object=$am__obj \
16901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16902 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16903 >/dev/null 2>conftest.err &&
16904 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16906 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16908 # icc doesn't choke on unknown options, it will just issue warnings
16909 # or remarks (even with -Werror). So we grep stderr for any message
16910 # that says an option was ignored or not supported.
16911 # When given -MP, icc 7.0 and 7.1 complain thusly:
16912 # icc: Command line warning: ignoring option '-M'; no argument required
16913 # The diagnosis changed in icc 8.0:
16914 # icc: Command line remark: option '-MP' not supported
16915 if (grep 'ignoring option' conftest.err ||
16916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16917 am_cv_GCJ_dependencies_compiler_type=$depmode
16924 rm -rf conftest.dir
16926 am_cv_GCJ_dependencies_compiler_type=none
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16931 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16932 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16935 test "x$enable_dependency_tracking" != xno \
16936 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16937 am__fastdepGCJ_TRUE=
16938 am__fastdepGCJ_FALSE='#'
16940 am__fastdepGCJ_TRUE='#'
16941 am__fastdepGCJ_FALSE=
16946 if test -n "$ac_tool_prefix"; then
16949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16952 $as_echo_n "checking for $ac_word... " >&6; }
16953 if test "${ac_cv_prog_GCJ+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16956 if test -n "$GCJ"; then
16957 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16960 for as_dir in $PATH
16963 test -z "$as_dir" && as_dir=.
16964 for ac_exec_ext in '' $ac_executable_extensions; do
16965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16966 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16976 GCJ=$ac_cv_prog_GCJ
16977 if test -n "$GCJ"; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16979 $as_echo "$GCJ" >&6; }
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 $as_echo "no" >&6; }
16986 test -n "$GCJ" && break
16989 if test -z "$GCJ"; then
16993 # Extract the first word of "$ac_prog", so it can be a program name with args.
16994 set dummy $ac_prog; ac_word=$2
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16996 $as_echo_n "checking for $ac_word... " >&6; }
16997 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16998 $as_echo_n "(cached) " >&6
17000 if test -n "$ac_ct_GCJ"; then
17001 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 for as_dir in $PATH
17007 test -z "$as_dir" && as_dir=.
17008 for ac_exec_ext in '' $ac_executable_extensions; do
17009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17010 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17020 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17021 if test -n "$ac_ct_GCJ"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17023 $as_echo "$ac_ct_GCJ" >&6; }
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17026 $as_echo "no" >&6; }
17030 test -n "$ac_ct_GCJ" && break
17033 if test "x$ac_ct_GCJ" = x; then
17036 case $cross_compiling:$ac_tool_warned in
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17040 ac_tool_warned=yes ;;
17046 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17047 if test "x${GCJFLAGS-unset}" = xunset; then
17052 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17055 $as_echo_n "checking dependency style of $depcc... " >&6; }
17056 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17057 $as_echo_n "(cached) " >&6
17059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17060 # We make a subdir and do the tests there. Otherwise we can end up
17061 # making bogus files that we don't know about and never remove. For
17062 # instance it was reported that on HP-UX the gcc test will end up
17063 # making a dummy file named `D' -- because `-MD' means `put the output
17066 # Copy depcomp to subdir because otherwise we won't find it if we're
17067 # using a relative directory.
17068 cp "$am_depcomp" conftest.dir
17070 # We will build objects and dependencies in a subdirectory because
17071 # it helps to detect inapplicable dependency modes. For instance
17072 # both Tru64's cc and ICC support -MD to output dependencies as a
17073 # side effect of compilation, but ICC will put the dependencies in
17074 # the current directory while Tru64 will put them in the object
17078 am_cv_GCJ_dependencies_compiler_type=none
17079 if test "$am_compiler_list" = ""; then
17080 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17082 am__universal=false
17085 for depmode in $am_compiler_list; do
17086 # Setup a source with many dependencies, because some compilers
17087 # like to wrap large dependency lists on column 80 (with \), and
17088 # we should not choose a depcomp mode which is confused by this.
17090 # We need to recreate these files for each test, as the compiler may
17091 # overwrite some of them when testing with obscure command lines.
17092 # This happens at least with the AIX C compiler.
17094 for i in 1 2 3 4 5 6; do
17095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17096 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17097 # Solaris 8's {/usr,}/bin/sh.
17098 touch sub/conftst$i.h
17100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17103 # mode. It turns out that the SunPro C++ compiler does not properly
17104 # handle `-M -o', and we need to detect this. Also, some Intel
17105 # versions had trouble with output in subdirs
17106 am__obj=sub/conftest.${OBJEXT-o}
17107 am__minus_obj="-o $am__obj"
17110 # This depmode causes a compiler race in universal mode.
17111 test "$am__universal" = false || continue
17114 # after this tag, mechanisms are not by side-effect, so they'll
17115 # only be used when explicitly requested
17116 if test "x$enable_dependency_tracking" = xyes; then
17122 msvisualcpp | msvcmsys)
17123 # This compiler won't grok `-c -o', but also, the minuso test has
17124 # not run yet. These depmodes are late enough in the game, and
17125 # so weak that their functioning should not be impacted.
17126 am__obj=conftest.${OBJEXT-o}
17131 if depmode=$depmode \
17132 source=sub/conftest.c object=$am__obj \
17133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17135 >/dev/null 2>conftest.err &&
17136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17140 # icc doesn't choke on unknown options, it will just issue warnings
17141 # or remarks (even with -Werror). So we grep stderr for any message
17142 # that says an option was ignored or not supported.
17143 # When given -MP, icc 7.0 and 7.1 complain thusly:
17144 # icc: Command line warning: ignoring option '-M'; no argument required
17145 # The diagnosis changed in icc 8.0:
17146 # icc: Command line remark: option '-MP' not supported
17147 if (grep 'ignoring option' conftest.err ||
17148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17149 am_cv_GCJ_dependencies_compiler_type=$depmode
17156 rm -rf conftest.dir
17158 am_cv_GCJ_dependencies_compiler_type=none
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17163 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17164 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17167 test "x$enable_dependency_tracking" != xno \
17168 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17169 am__fastdepGCJ_TRUE=
17170 am__fastdepGCJ_FALSE='#'
17172 am__fastdepGCJ_TRUE='#'
17173 am__fastdepGCJ_FALSE=
17180 # Source file extension for Java test sources.
17183 # Object file extension for compiled Java test sources.
17187 # Code to be used in simple compile tests
17188 lt_simple_compile_test_code="int some_variable = 0;"
17190 # Code to be used in simple link tests
17191 lt_simple_link_test_code='int main(){return(0);}'
17193 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17200 # If no C compiler was specified, use CC.
17203 # If no C compiler flags were specified, use CFLAGS.
17204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17206 # Allow CC to be a program name with arguments.
17210 # save warnings/boilerplate of simple test code
17211 ac_outfile=conftest.$ac_objext
17212 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17213 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17214 _lt_compiler_boilerplate=`cat conftest.err`
17217 ac_outfile=conftest.$ac_objext
17218 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17219 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17220 _lt_linker_boilerplate=`cat conftest.err`
17224 # Allow CC to be a program name with arguments.
17228 for cc_temp in $compiler""; do
17230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17236 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17239 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17240 archive_cmds_need_lc_GCJ=no
17242 old_archive_cmds_GCJ=$old_archive_cmds
17245 ## There is no encapsulation within the following macros, do not change
17246 ## the running order or otherwise move them around unless you know exactly
17247 ## what you are doing...
17248 if test -n "$compiler"; then
17250 lt_prog_compiler_no_builtin_flag_GCJ=
17252 if test "$GCC" = yes; then
17253 case $cc_basename in
17255 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17257 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17261 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17262 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17263 $as_echo_n "(cached) " >&6
17265 lt_cv_prog_compiler_rtti_exceptions=no
17266 ac_outfile=conftest.$ac_objext
17267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17268 lt_compiler_flag="-fno-rtti -fno-exceptions"
17269 # Insert the option either (1) after the last *FLAGS variable, or
17270 # (2) before a word containing "conftest.", or (3) at the end.
17271 # Note that $ac_compile itself does not contain backslashes and begins
17272 # with a dollar sign (not a hyphen), so the echo should work correctly.
17273 # The option is referenced via a variable to avoid confusing sed.
17274 lt_compile=`echo "$ac_compile" | $SED \
17275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17277 -e 's:$: $lt_compiler_flag:'`
17278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17279 (eval "$lt_compile" 2>conftest.err)
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 if (exit $ac_status) && test -s "$ac_outfile"; then
17284 # The compiler can only warn and ignore the option if not recognized
17285 # So say no if there are warnings other than the usual output.
17286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17288 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17289 lt_cv_prog_compiler_rtti_exceptions=yes
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17296 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17298 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17299 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17308 lt_prog_compiler_wl_GCJ=
17309 lt_prog_compiler_pic_GCJ=
17310 lt_prog_compiler_static_GCJ=
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17313 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17315 if test "$GCC" = yes; then
17316 lt_prog_compiler_wl_GCJ='-Wl,'
17317 lt_prog_compiler_static_GCJ='-static'
17321 # All AIX code is PIC.
17322 if test "$host_cpu" = ia64; then
17323 # AIX 5 now supports IA64 processor
17324 lt_prog_compiler_static_GCJ='-Bstatic'
17331 # see comment about AmigaOS4 .so support
17332 lt_prog_compiler_pic_GCJ='-fPIC'
17335 # FIXME: we need at least 68020 code to build shared libraries, but
17336 # adding the `-m68020' flag to GCC prevents building anything better,
17338 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17344 # PIC is the default for these OSes.
17347 mingw* | cygwin* | pw32* | os2* | cegcc*)
17348 # This hack is so that the source file can tell whether it is being
17349 # built for inclusion in a dll (and should export symbols for example).
17350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17351 # (--disable-auto-import) libraries
17355 darwin* | rhapsody*)
17356 # PIC is the default on this platform
17357 # Common symbols not allowed in MH_DYLIB files
17358 lt_prog_compiler_pic_GCJ='-fno-common'
17362 # PIC is the default for Haiku.
17363 # The "-static" flag exists, but is broken.
17364 lt_prog_compiler_static_GCJ=
17368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17370 # sets the default TLS model and affects inlining.
17376 lt_prog_compiler_pic_GCJ='-fPIC'
17382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17383 # Instead, we relocate shared libraries at runtime.
17387 # Just because we use GCC doesn't mean we suddenly get shared libraries
17388 # on systems that don't support them.
17389 lt_prog_compiler_can_build_shared_GCJ=no
17394 # QNX uses GNU C++, but need to define -shared option too, otherwise
17395 # it will coredump.
17396 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17400 if test -d /usr/nec; then
17401 lt_prog_compiler_pic_GCJ=-Kconform_pic
17406 lt_prog_compiler_pic_GCJ='-fPIC'
17410 case $cc_basename in
17411 nvcc*) # Cuda Compiler Driver 2.2
17412 lt_prog_compiler_wl_GCJ='-Xlinker '
17413 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17417 # PORTME Check for flag to pass linker flags through the system compiler.
17420 lt_prog_compiler_wl_GCJ='-Wl,'
17421 if test "$host_cpu" = ia64; then
17422 # AIX 5 now supports IA64 processor
17423 lt_prog_compiler_static_GCJ='-Bstatic'
17425 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17429 mingw* | cygwin* | pw32* | os2* | cegcc*)
17430 # This hack is so that the source file can tell whether it is being
17431 # built for inclusion in a dll (and should export symbols for example).
17435 hpux9* | hpux10* | hpux11*)
17436 lt_prog_compiler_wl_GCJ='-Wl,'
17437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17438 # not for PA HP-UX.
17444 lt_prog_compiler_pic_GCJ='+Z'
17447 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17448 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17451 irix5* | irix6* | nonstopux*)
17452 lt_prog_compiler_wl_GCJ='-Wl,'
17453 # PIC (with -KPIC) is the default.
17454 lt_prog_compiler_static_GCJ='-non_shared'
17457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17458 case $cc_basename in
17459 # old Intel for x86_64 which still supported -KPIC.
17461 lt_prog_compiler_wl_GCJ='-Wl,'
17462 lt_prog_compiler_pic_GCJ='-KPIC'
17463 lt_prog_compiler_static_GCJ='-static'
17465 # icc used to be incompatible with GCC.
17466 # ICC 10 doesn't accept -KPIC any more.
17468 lt_prog_compiler_wl_GCJ='-Wl,'
17469 lt_prog_compiler_pic_GCJ='-fPIC'
17470 lt_prog_compiler_static_GCJ='-static'
17472 # Lahey Fortran 8.1.
17474 lt_prog_compiler_wl_GCJ='-Wl,'
17475 lt_prog_compiler_pic_GCJ='--shared'
17476 lt_prog_compiler_static_GCJ='--static'
17478 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17479 # Portland Group compilers (*not* the Pentium gcc compiler,
17480 # which looks to be a dead project)
17481 lt_prog_compiler_wl_GCJ='-Wl,'
17482 lt_prog_compiler_pic_GCJ='-fpic'
17483 lt_prog_compiler_static_GCJ='-Bstatic'
17486 lt_prog_compiler_wl_GCJ='-Wl,'
17487 # All Alpha code is PIC.
17488 lt_prog_compiler_static_GCJ='-non_shared'
17490 xl* | bgxl* | bgf* | mpixl*)
17491 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17492 lt_prog_compiler_wl_GCJ='-Wl,'
17493 lt_prog_compiler_pic_GCJ='-qpic'
17494 lt_prog_compiler_static_GCJ='-qstaticlink'
17497 case `$CC -V 2>&1 | sed 5q` in
17498 *Sun\ F* | *Sun*Fortran*)
17499 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17500 lt_prog_compiler_pic_GCJ='-KPIC'
17501 lt_prog_compiler_static_GCJ='-Bstatic'
17502 lt_prog_compiler_wl_GCJ=''
17506 lt_prog_compiler_pic_GCJ='-KPIC'
17507 lt_prog_compiler_static_GCJ='-Bstatic'
17508 lt_prog_compiler_wl_GCJ='-Wl,'
17516 lt_prog_compiler_pic_GCJ='-KPIC'
17517 lt_prog_compiler_static_GCJ='-Bstatic'
17521 # QNX uses GNU C++, but need to define -shared option too, otherwise
17522 # it will coredump.
17523 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17526 osf3* | osf4* | osf5*)
17527 lt_prog_compiler_wl_GCJ='-Wl,'
17528 # All OSF/1 code is PIC.
17529 lt_prog_compiler_static_GCJ='-non_shared'
17533 lt_prog_compiler_static_GCJ='-non_shared'
17537 lt_prog_compiler_pic_GCJ='-KPIC'
17538 lt_prog_compiler_static_GCJ='-Bstatic'
17539 case $cc_basename in
17540 f77* | f90* | f95*)
17541 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17543 lt_prog_compiler_wl_GCJ='-Wl,';;
17548 lt_prog_compiler_wl_GCJ='-Qoption ld '
17549 lt_prog_compiler_pic_GCJ='-PIC'
17550 lt_prog_compiler_static_GCJ='-Bstatic'
17553 sysv4 | sysv4.2uw2* | sysv4.3*)
17554 lt_prog_compiler_wl_GCJ='-Wl,'
17555 lt_prog_compiler_pic_GCJ='-KPIC'
17556 lt_prog_compiler_static_GCJ='-Bstatic'
17560 if test -d /usr/nec ;then
17561 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17562 lt_prog_compiler_static_GCJ='-Bstatic'
17566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17567 lt_prog_compiler_wl_GCJ='-Wl,'
17568 lt_prog_compiler_pic_GCJ='-KPIC'
17569 lt_prog_compiler_static_GCJ='-Bstatic'
17573 lt_prog_compiler_wl_GCJ='-Wl,'
17574 lt_prog_compiler_can_build_shared_GCJ=no
17578 lt_prog_compiler_pic_GCJ='-pic'
17579 lt_prog_compiler_static_GCJ='-Bstatic'
17583 lt_prog_compiler_can_build_shared_GCJ=no
17589 # For platforms which do not support PIC, -DPIC is meaningless:
17591 lt_prog_compiler_pic_GCJ=
17594 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17598 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17603 # Check to make sure the PIC flag actually works.
17605 if test -n "$lt_prog_compiler_pic_GCJ"; then
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17607 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17608 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17609 $as_echo_n "(cached) " >&6
17611 lt_cv_prog_compiler_pic_works_GCJ=no
17612 ac_outfile=conftest.$ac_objext
17613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17614 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17615 # Insert the option either (1) after the last *FLAGS variable, or
17616 # (2) before a word containing "conftest.", or (3) at the end.
17617 # Note that $ac_compile itself does not contain backslashes and begins
17618 # with a dollar sign (not a hyphen), so the echo should work correctly.
17619 # The option is referenced via a variable to avoid confusing sed.
17620 lt_compile=`echo "$ac_compile" | $SED \
17621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17623 -e 's:$: $lt_compiler_flag:'`
17624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17625 (eval "$lt_compile" 2>conftest.err)
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 if (exit $ac_status) && test -s "$ac_outfile"; then
17630 # The compiler can only warn and ignore the option if not recognized
17631 # So say no if there are warnings other than the usual output.
17632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17635 lt_cv_prog_compiler_pic_works_GCJ=yes
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17642 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17644 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17645 case $lt_prog_compiler_pic_GCJ in
17647 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17650 lt_prog_compiler_pic_GCJ=
17651 lt_prog_compiler_can_build_shared_GCJ=no
17659 # Check to make sure the static flag actually works.
17661 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17663 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17664 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17665 $as_echo_n "(cached) " >&6
17667 lt_cv_prog_compiler_static_works_GCJ=no
17668 save_LDFLAGS="$LDFLAGS"
17669 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17670 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17672 # The linker can only warn and ignore the option if not recognized
17673 # So say no if there are warnings
17674 if test -s conftest.err; then
17675 # Append any errors to the config.log.
17676 cat conftest.err 1>&5
17677 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17679 if diff conftest.exp conftest.er2 >/dev/null; then
17680 lt_cv_prog_compiler_static_works_GCJ=yes
17683 lt_cv_prog_compiler_static_works_GCJ=yes
17687 LDFLAGS="$save_LDFLAGS"
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17691 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17693 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17696 lt_prog_compiler_static_GCJ=
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17704 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17705 $as_echo_n "(cached) " >&6
17707 lt_cv_prog_compiler_c_o_GCJ=no
17708 $RM -r conftest 2>/dev/null
17712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17714 lt_compiler_flag="-o out/conftest2.$ac_objext"
17715 # Insert the option either (1) after the last *FLAGS variable, or
17716 # (2) before a word containing "conftest.", or (3) at the end.
17717 # Note that $ac_compile itself does not contain backslashes and begins
17718 # with a dollar sign (not a hyphen), so the echo should work correctly.
17719 lt_compile=`echo "$ac_compile" | $SED \
17720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17722 -e 's:$: $lt_compiler_flag:'`
17723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17724 (eval "$lt_compile" 2>out/conftest.err)
17726 cat out/conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17730 # The compiler can only warn and ignore the option if not recognized
17731 # So say no if there are warnings
17732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17735 lt_cv_prog_compiler_c_o_GCJ=yes
17740 # SGI C++ compiler will create directory out/ii_files/ for
17741 # template instantiation
17742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17743 $RM out/* && rmdir out
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17750 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17756 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
17759 lt_cv_prog_compiler_c_o_GCJ=no
17760 $RM -r conftest 2>/dev/null
17764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17766 lt_compiler_flag="-o out/conftest2.$ac_objext"
17767 # Insert the option either (1) after the last *FLAGS variable, or
17768 # (2) before a word containing "conftest.", or (3) at the end.
17769 # Note that $ac_compile itself does not contain backslashes and begins
17770 # with a dollar sign (not a hyphen), so the echo should work correctly.
17771 lt_compile=`echo "$ac_compile" | $SED \
17772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17774 -e 's:$: $lt_compiler_flag:'`
17775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17776 (eval "$lt_compile" 2>out/conftest.err)
17778 cat out/conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17782 # The compiler can only warn and ignore the option if not recognized
17783 # So say no if there are warnings
17784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17787 lt_cv_prog_compiler_c_o_GCJ=yes
17792 # SGI C++ compiler will create directory out/ii_files/ for
17793 # template instantiation
17794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17795 $RM out/* && rmdir out
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17802 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17807 hard_links="nottested"
17808 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17809 # do not overwrite the value of need_locks provided by the user
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17811 $as_echo_n "checking if we can lock with hard links... " >&6; }
17814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17816 ln conftest.a conftest.b 2>&5 || hard_links=no
17817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17819 $as_echo "$hard_links" >&6; }
17820 if test "$hard_links" = no; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17822 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17835 allow_undefined_flag_GCJ=
17836 always_export_symbols_GCJ=no
17838 archive_expsym_cmds_GCJ=
17839 compiler_needs_object_GCJ=no
17840 enable_shared_with_static_runtimes_GCJ=no
17841 export_dynamic_flag_spec_GCJ=
17842 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17843 hardcode_automatic_GCJ=no
17844 hardcode_direct_GCJ=no
17845 hardcode_direct_absolute_GCJ=no
17846 hardcode_libdir_flag_spec_GCJ=
17847 hardcode_libdir_flag_spec_ld_GCJ=
17848 hardcode_libdir_separator_GCJ=
17849 hardcode_minus_L_GCJ=no
17850 hardcode_shlibpath_var_GCJ=unsupported
17851 inherit_rpath_GCJ=no
17852 link_all_deplibs_GCJ=unknown
17854 module_expsym_cmds_GCJ=
17855 old_archive_from_new_cmds_GCJ=
17856 old_archive_from_expsyms_cmds_GCJ=
17857 thread_safe_flag_spec_GCJ=
17858 whole_archive_flag_spec_GCJ=
17859 # include_expsyms should be a list of space-separated symbols to be *always*
17860 # included in the symbol list
17861 include_expsyms_GCJ=
17862 # exclude_expsyms can be an extended regexp of symbols to exclude
17863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17865 # as well as any symbol that contains `d'.
17866 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17868 # platforms (ab)use it in PIC code, but their linkers get confused if
17869 # the symbol is explicitly referenced. Since portable code cannot
17870 # rely on this symbol name, it's probably fine to never include it in
17871 # preloaded symbol tables.
17872 # Exclude shared library initialization/finalization symbols.
17873 extract_expsyms_cmds=
17876 cygwin* | mingw* | pw32* | cegcc*)
17877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17878 # When not using gcc, we currently assume that we are using
17879 # Microsoft Visual C++.
17880 if test "$GCC" != yes; then
17885 # we just hope/assume this is gcc and not c89 (= MSVC++)
17895 # On some targets, GNU ld is compatible enough with the native linker
17896 # that we're better off using the native interface for both.
17897 lt_use_gnu_ld_interface=no
17898 if test "$with_gnu_ld" = yes; then
17901 # The AIX port of GNU ld has always aspired to compatibility
17902 # with the native linker. However, as the warning in the GNU ld
17903 # block says, versions before 2.19.5* couldn't really create working
17904 # shared libraries, regardless of the interface used.
17905 case `$LD -v 2>&1` in
17906 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17907 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17908 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17910 lt_use_gnu_ld_interface=yes
17915 lt_use_gnu_ld_interface=yes
17920 if test "$lt_use_gnu_ld_interface" = yes; then
17921 # If archive_cmds runs LD, not CC, wlarc should be empty
17924 # Set some defaults for GNU ld with shared library support. These
17925 # are reset later if shared libraries are not supported. Putting them
17926 # here allows them to be overridden if necessary.
17927 runpath_var=LD_RUN_PATH
17928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17929 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17930 # ancient GNU ld didn't support --whole-archive et. al.
17931 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17932 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17934 whole_archive_flag_spec_GCJ=
17936 supports_anon_versioning=no
17937 case `$LD -v 2>&1` in
17938 *GNU\ gold*) supports_anon_versioning=yes ;;
17939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17942 *\ 2.11.*) ;; # other 2.11 versions
17943 *) supports_anon_versioning=yes ;;
17946 # See if GNU ld supports shared libraries.
17949 # On AIX/PPC, the GNU linker is very broken
17950 if test "$host_cpu" != ia64; then
17954 *** Warning: the GNU linker, at least up to release 2.19, is reported
17955 *** to be unable to reliably create shared libraries on AIX.
17956 *** Therefore, libtool is disabling shared libraries support. If you
17957 *** really care for shared libraries, you may want to install binutils
17958 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17959 *** You will then need to restart the configuration process.
17968 # see comment about AmigaOS4 .so support
17969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17970 archive_expsym_cmds_GCJ=''
17973 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)'
17974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17975 hardcode_minus_L_GCJ=yes
17981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17982 allow_undefined_flag_GCJ=unsupported
17983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17984 # support --undefined. This deserves some investigation. FIXME
17985 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17991 cygwin* | mingw* | pw32* | cegcc*)
17992 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17993 # as there is no search path for DLLs.
17994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17995 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17996 allow_undefined_flag_GCJ=unsupported
17997 always_export_symbols_GCJ=no
17998 enable_shared_with_static_runtimes_GCJ=yes
17999 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18001 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18002 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18003 # If the export-symbols file already is a .def file (1st line
18004 # is EXPORTS), use it as is; otherwise, prepend...
18005 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18006 cp $export_symbols $output_objdir/$soname.def;
18008 echo EXPORTS > $output_objdir/$soname.def;
18009 cat $export_symbols >> $output_objdir/$soname.def;
18011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18018 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18019 link_all_deplibs_GCJ=yes
18023 hardcode_direct_GCJ=no
18024 hardcode_shlibpath_var_GCJ=no
18025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18026 export_dynamic_flag_spec_GCJ='${wl}-E'
18027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18028 # Instead, shared libraries are loaded at an image base (0x10000000 by
18029 # default) and relocated if they conflict, which is a slow very memory
18030 # consuming and fragmenting process. To avoid this, we pick a random,
18031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18032 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18033 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'
18034 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'
18037 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18039 if test "$host_os" = linux-dietlibc; then
18040 case $cc_basename in
18041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18045 && test "$tmp_diet" = no
18048 tmp_sharedflag='-shared'
18049 case $cc_basename,$host_cpu in
18050 pgcc*) # Portland Group C compiler
18051 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'
18052 tmp_addflag=' $pic_flag'
18054 pgf77* | pgf90* | pgf95* | pgfortran*)
18055 # Portland Group f77 and f90 compilers
18056 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'
18057 tmp_addflag=' $pic_flag -Mnomain' ;;
18058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18059 tmp_addflag=' -i_dynamic' ;;
18060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18061 tmp_addflag=' -i_dynamic -nofor_main' ;;
18062 ifc* | ifort*) # Intel Fortran compiler
18063 tmp_addflag=' -nofor_main' ;;
18064 lf95*) # Lahey Fortran 8.1
18065 whole_archive_flag_spec_GCJ=
18066 tmp_sharedflag='--shared' ;;
18067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18068 tmp_sharedflag='-qmkshrobj'
18070 nvcc*) # Cuda Compiler Driver 2.2
18071 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'
18072 compiler_needs_object_GCJ=yes
18075 case `$CC -V 2>&1 | sed 5q` in
18076 *Sun\ C*) # Sun C 5.9
18077 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'
18078 compiler_needs_object_GCJ=yes
18079 tmp_sharedflag='-G' ;;
18080 *Sun\ F*) # Sun Fortran 8.3
18081 tmp_sharedflag='-G' ;;
18083 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18085 if test "x$supports_anon_versioning" = xyes; then
18086 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18088 echo "local: *; };" >> $output_objdir/$libname.ver~
18089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18092 case $cc_basename in
18093 xlf* | bgf* | bgxlf* | mpixlf*)
18094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18095 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18096 hardcode_libdir_flag_spec_GCJ=
18097 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18098 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18114 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18118 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18123 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18128 *** create shared libraries on Solaris systems. Therefore, libtool
18129 *** is disabling shared libraries support. We urge you to upgrade GNU
18130 *** binutils to release 2.9.1 or newer. Another option is to modify
18131 *** your PATH or compiler configuration so that the native linker is
18132 *** used, and then restart.
18135 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18144 case `$LD -v 2>&1` in
18145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18150 *** reliably create shared libraries on SCO systems. Therefore, libtool
18151 *** is disabling shared libraries support. We urge you to upgrade GNU
18152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18153 *** your PATH or compiler configuration so that the native linker is
18154 *** used, and then restart.
18159 # For security reasons, it is highly recommended that you always
18160 # use absolute paths for naming shared libraries, and exclude the
18161 # DT_RUNPATH tag from executables and libraries. But doing so
18162 # requires that you compile everything twice, which is a pain.
18163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18165 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18166 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18175 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18177 hardcode_direct_GCJ=yes
18178 hardcode_shlibpath_var_GCJ=no
18182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18183 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18184 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18191 if test "$ld_shlibs_GCJ" = no; then
18193 hardcode_libdir_flag_spec_GCJ=
18194 export_dynamic_flag_spec_GCJ=
18195 whole_archive_flag_spec_GCJ=
18198 # PORTME fill in a description of your system's linker (not GNU ld)
18201 allow_undefined_flag_GCJ=unsupported
18202 always_export_symbols_GCJ=yes
18203 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'
18204 # Note: this linker hardcodes the directories in LIBPATH if there
18205 # are no directories specified by -L.
18206 hardcode_minus_L_GCJ=yes
18207 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18208 # Neither direct hardcoding nor static linking is supported with a
18210 hardcode_direct_GCJ=unsupported
18215 if test "$host_cpu" = ia64; then
18216 # On IA64, the linker does run time linking by default, so we don't
18217 # have to do anything special.
18218 aix_use_runtimelinking=no
18219 exp_sym_flag='-Bexport'
18222 # If we're using GNU nm, then we don't want the "-C" option.
18223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18224 # Also, AIX nm treats weak defined symbols like other global
18225 # defined symbols, whereas GNU nm marks them as "W".
18226 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18227 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'
18229 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'
18231 aix_use_runtimelinking=no
18233 # Test if we are trying to use run time linking or normal
18234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18235 # need to do runtime linking.
18236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18237 for ld_flag in $LDFLAGS; do
18238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18239 aix_use_runtimelinking=yes
18246 exp_sym_flag='-bexport'
18247 no_entry_flag='-bnoentry'
18250 # When large executables or shared objects are built, AIX ld can
18251 # have problems creating the table of contents. If linking a library
18252 # or program results in "error TOC overflow" add -mminimal-toc to
18253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18256 archive_cmds_GCJ=''
18257 hardcode_direct_GCJ=yes
18258 hardcode_direct_absolute_GCJ=yes
18259 hardcode_libdir_separator_GCJ=':'
18260 link_all_deplibs_GCJ=yes
18261 file_list_spec_GCJ='${wl}-f,'
18263 if test "$GCC" = yes; then
18264 case $host_os in aix4.[012]|aix4.[012].*)
18265 # We only want to do this on AIX 4.2 and lower, the check
18266 # below for broken collect2 doesn't work under 4.3+
18267 collect2name=`${CC} -print-prog-name=collect2`
18268 if test -f "$collect2name" &&
18269 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18271 # We have reworked collect2
18274 # We have old collect2
18275 hardcode_direct_GCJ=unsupported
18276 # It fails to find uninstalled libraries when the uninstalled
18277 # path is not listed in the libpath. Setting hardcode_minus_L
18278 # to unsupported forces relinking
18279 hardcode_minus_L_GCJ=yes
18280 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18281 hardcode_libdir_separator_GCJ=
18285 shared_flag='-shared'
18286 if test "$aix_use_runtimelinking" = yes; then
18287 shared_flag="$shared_flag "'${wl}-G'
18291 if test "$host_cpu" = ia64; then
18292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18293 # chokes on -Wl,-G. The following line is correct:
18296 if test "$aix_use_runtimelinking" = yes; then
18297 shared_flag='${wl}-G'
18299 shared_flag='${wl}-bM:SRE'
18304 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18305 # It seems that -bexpall does not export symbols beginning with
18306 # underscore (_), so it is better to generate a list of symbols to export.
18307 always_export_symbols_GCJ=yes
18308 if test "$aix_use_runtimelinking" = yes; then
18309 # Warning - without using the other runtime loading flags (-brtl),
18310 # -berok will link without error, but may produce a broken library.
18311 allow_undefined_flag_GCJ='-berok'
18312 # Determine the default libpath from the value encoded in an
18313 # empty executable.
18314 if test x$gcc_no_link = xyes; then
18315 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18328 if ac_fn_c_try_link "$LINENO"; then :
18330 lt_aix_libpath_sed='
18331 /Import File Strings/,/^$/ {
18337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18338 # Check for a 64-bit object if we didn't find anything.
18339 if test -z "$aix_libpath"; then
18340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18343 rm -f core conftest.err conftest.$ac_objext \
18344 conftest$ac_exeext conftest.$ac_ext
18345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18347 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18348 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"
18350 if test "$host_cpu" = ia64; then
18351 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18352 allow_undefined_flag_GCJ="-z nodefs"
18353 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"
18355 # Determine the default libpath from the value encoded in an
18356 # empty executable.
18357 if test x$gcc_no_link = xyes; then
18358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18371 if ac_fn_c_try_link "$LINENO"; then :
18373 lt_aix_libpath_sed='
18374 /Import File Strings/,/^$/ {
18380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18381 # Check for a 64-bit object if we didn't find anything.
18382 if test -z "$aix_libpath"; then
18383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18386 rm -f core conftest.err conftest.$ac_objext \
18387 conftest$ac_exeext conftest.$ac_ext
18388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18390 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18391 # Warning - without using the other run time loading flags,
18392 # -berok will link without error, but may produce a broken library.
18393 no_undefined_flag_GCJ=' ${wl}-bernotok'
18394 allow_undefined_flag_GCJ=' ${wl}-berok'
18395 if test "$with_gnu_ld" = yes; then
18396 # We only use this code for GNU lds that support --whole-archive.
18397 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18399 # Exported symbols can be pulled into shared objects from archives
18400 whole_archive_flag_spec_GCJ='$convenience'
18402 archive_cmds_need_lc_GCJ=yes
18403 # This is similar to how AIX traditionally builds its shared libraries.
18404 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'
18412 # see comment about AmigaOS4 .so support
18413 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18414 archive_expsym_cmds_GCJ=''
18417 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)'
18418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18419 hardcode_minus_L_GCJ=yes
18425 export_dynamic_flag_spec_GCJ=-rdynamic
18428 cygwin* | mingw* | pw32* | cegcc*)
18429 # When not using gcc, we currently assume that we are using
18430 # Microsoft Visual C++.
18431 # hardcode_libdir_flag_spec is actually meaningless, as there is
18432 # no search path for DLLs.
18433 hardcode_libdir_flag_spec_GCJ=' '
18434 allow_undefined_flag_GCJ=unsupported
18435 # Tell ltmain to make .lib files, not .a files.
18437 # Tell ltmain to make .dll files, not .so files.
18439 # FIXME: Setting linknames here is a bad hack.
18440 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18441 # The linker will automatically build a .lib file if we build a DLL.
18442 old_archive_from_new_cmds_GCJ='true'
18443 # FIXME: Should let the user specify the lib program.
18444 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18445 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18446 enable_shared_with_static_runtimes_GCJ=yes
18449 darwin* | rhapsody*)
18452 archive_cmds_need_lc_GCJ=no
18453 hardcode_direct_GCJ=no
18454 hardcode_automatic_GCJ=yes
18455 hardcode_shlibpath_var_GCJ=unsupported
18456 if test "$lt_cv_ld_force_load" = "yes"; then
18457 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\"`'
18459 whole_archive_flag_spec_GCJ=''
18461 link_all_deplibs_GCJ=yes
18462 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18463 case $cc_basename in
18464 ifort*) _lt_dar_can_shared=yes ;;
18465 *) _lt_dar_can_shared=$GCC ;;
18467 if test "$_lt_dar_can_shared" = "yes"; then
18468 output_verbose_link_cmd=func_echo_all
18469 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}"
18470 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18471 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}"
18472 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}"
18481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18483 hardcode_shlibpath_var_GCJ=no
18490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18491 # support. Future versions do this automatically, but an explicit c++rt0.o
18492 # does not break anything, and helps significantly (at the cost of a little
18495 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18496 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18497 hardcode_direct_GCJ=yes
18498 hardcode_shlibpath_var_GCJ=no
18501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18503 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18504 hardcode_direct_GCJ=yes
18505 hardcode_minus_L_GCJ=yes
18506 hardcode_shlibpath_var_GCJ=no
18509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18510 freebsd* | dragonfly*)
18511 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18512 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18513 hardcode_direct_GCJ=yes
18514 hardcode_shlibpath_var_GCJ=no
18518 if test "$GCC" = yes; then
18519 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'
18521 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'
18523 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18524 hardcode_libdir_separator_GCJ=:
18525 hardcode_direct_GCJ=yes
18527 # hardcode_minus_L: Not really in the search PATH,
18528 # but as the default location of the library.
18529 hardcode_minus_L_GCJ=yes
18530 export_dynamic_flag_spec_GCJ='${wl}-E'
18534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18535 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18537 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18539 if test "$with_gnu_ld" = no; then
18540 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18541 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18542 hardcode_libdir_separator_GCJ=:
18543 hardcode_direct_GCJ=yes
18544 hardcode_direct_absolute_GCJ=yes
18545 export_dynamic_flag_spec_GCJ='${wl}-E'
18546 # hardcode_minus_L: Not really in the search PATH,
18547 # but as the default location of the library.
18548 hardcode_minus_L_GCJ=yes
18553 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18556 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18559 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18562 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18568 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18571 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18574 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18578 if test "$with_gnu_ld" = no; then
18579 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18580 hardcode_libdir_separator_GCJ=:
18584 hardcode_direct_GCJ=no
18585 hardcode_shlibpath_var_GCJ=no
18588 hardcode_direct_GCJ=yes
18589 hardcode_direct_absolute_GCJ=yes
18590 export_dynamic_flag_spec_GCJ='${wl}-E'
18592 # hardcode_minus_L: Not really in the search PATH,
18593 # but as the default location of the library.
18594 hardcode_minus_L_GCJ=yes
18600 irix5* | irix6* | nonstopux*)
18601 if test "$GCC" = yes; then
18602 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'
18603 # Try to use the -exported_symbol ld option, if it does not
18604 # work, assume that -exports_file does not work either and
18605 # implicitly export all symbols.
18606 save_LDFLAGS="$LDFLAGS"
18607 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18608 if test x$gcc_no_link = xyes; then
18609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18615 if ac_fn_c_try_link "$LINENO"; then :
18616 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'
18619 rm -f core conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LDFLAGS="$save_LDFLAGS"
18623 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'
18624 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'
18626 archive_cmds_need_lc_GCJ='no'
18627 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18628 hardcode_libdir_separator_GCJ=:
18629 inherit_rpath_GCJ=yes
18630 link_all_deplibs_GCJ=yes
18634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18635 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18637 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18640 hardcode_direct_GCJ=yes
18641 hardcode_shlibpath_var_GCJ=no
18645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18646 hardcode_direct_GCJ=yes
18647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18648 hardcode_libdir_separator_GCJ=:
18649 hardcode_shlibpath_var_GCJ=no
18656 if test -f /usr/libexec/ld.so; then
18657 hardcode_direct_GCJ=yes
18658 hardcode_shlibpath_var_GCJ=no
18659 hardcode_direct_absolute_GCJ=yes
18660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18661 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18662 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18664 export_dynamic_flag_spec_GCJ='${wl}-E'
18667 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18669 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18672 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18683 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18684 hardcode_minus_L_GCJ=yes
18685 allow_undefined_flag_GCJ=unsupported
18686 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'
18687 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18691 if test "$GCC" = yes; then
18692 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18693 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'
18695 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18696 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'
18698 archive_cmds_need_lc_GCJ='no'
18699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18700 hardcode_libdir_separator_GCJ=:
18703 osf4* | osf5*) # as osf3* with the addition of -msym flag
18704 if test "$GCC" = yes; then
18705 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18706 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'
18707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18709 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18710 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'
18711 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~
18712 $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'
18714 # Both c and cxx compiler support -rpath directly
18715 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18717 archive_cmds_need_lc_GCJ='no'
18718 hardcode_libdir_separator_GCJ=:
18722 no_undefined_flag_GCJ=' -z defs'
18723 if test "$GCC" = yes; then
18725 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18726 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18727 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18729 case `$CC -V 2>&1` in
18732 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18733 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18738 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18739 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18740 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18744 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18745 hardcode_shlibpath_var_GCJ=no
18747 solaris2.[0-5] | solaris2.[0-5].*) ;;
18749 # The compiler driver will combine and reorder linker options,
18750 # but understands `-z linker_flag'. GCC discards it without `$wl',
18751 # but is careful enough not to reorder.
18752 # Supported since Solaris 2.6 (maybe 2.5.1?)
18753 if test "$GCC" = yes; then
18754 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18756 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18760 link_all_deplibs_GCJ=yes
18764 if test "x$host_vendor" = xsequent; then
18765 # Use $CC to link under sequent, because it throws in some extra .o
18766 # files that make .init and .fini sections work.
18767 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18769 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18772 hardcode_direct_GCJ=yes
18773 hardcode_minus_L_GCJ=yes
18774 hardcode_shlibpath_var_GCJ=no
18778 case $host_vendor in
18780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18781 hardcode_direct_GCJ=yes # is this really true???
18784 ## LD is ld it makes a PLAMLIB
18785 ## CC just makes a GrossModule.
18786 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18787 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18788 hardcode_direct_GCJ=no
18791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18792 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18795 runpath_var='LD_RUN_PATH'
18796 hardcode_shlibpath_var_GCJ=no
18800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18801 hardcode_shlibpath_var_GCJ=no
18802 export_dynamic_flag_spec_GCJ='-Bexport'
18806 if test -d /usr/nec; then
18807 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18808 hardcode_shlibpath_var_GCJ=no
18809 runpath_var=LD_RUN_PATH
18810 hardcode_runpath_var=yes
18815 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18816 no_undefined_flag_GCJ='${wl}-z,text'
18817 archive_cmds_need_lc_GCJ=no
18818 hardcode_shlibpath_var_GCJ=no
18819 runpath_var='LD_RUN_PATH'
18821 if test "$GCC" = yes; then
18822 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18823 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18826 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18830 sysv5* | sco3.2v5* | sco5v6*)
18831 # Note: We can NOT use -z defs as we might desire, because we do not
18832 # link with -lc, and that would cause any symbols used from libc to
18833 # always be unresolved, which means just about no library would
18834 # ever link correctly. If we're not using GNU ld we use -z text
18835 # though, which does catch some bad symbols but isn't as heavy-handed
18837 no_undefined_flag_GCJ='${wl}-z,text'
18838 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18839 archive_cmds_need_lc_GCJ=no
18840 hardcode_shlibpath_var_GCJ=no
18841 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18842 hardcode_libdir_separator_GCJ=':'
18843 link_all_deplibs_GCJ=yes
18844 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18845 runpath_var='LD_RUN_PATH'
18847 if test "$GCC" = yes; then
18848 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18849 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18851 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18852 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18859 hardcode_shlibpath_var_GCJ=no
18867 if test x$host_vendor = xsni; then
18869 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18870 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18877 $as_echo "$ld_shlibs_GCJ" >&6; }
18878 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18880 with_gnu_ld_GCJ=$with_gnu_ld
18888 # Do we need to explicitly link libc?
18890 case "x$archive_cmds_need_lc_GCJ" in
18892 # Assume -lc should be added
18893 archive_cmds_need_lc_GCJ=yes
18895 if test "$enable_shared" = yes && test "$GCC" = yes; then
18896 case $archive_cmds_GCJ in
18898 # FIXME: we may have to deal with multi-command sequences.
18901 # Test whether the compiler implicitly links with -lc since on some
18902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18903 # to ld, don't add -lc before -lgcc.
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18905 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18906 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18907 $as_echo_n "(cached) " >&6
18910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18913 (eval $ac_compile) 2>&5
18915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18916 test $ac_status = 0; } 2>conftest.err; then
18919 libobjs=conftest.$ac_objext
18921 wl=$lt_prog_compiler_wl_GCJ
18922 pic_flag=$lt_prog_compiler_pic_GCJ
18928 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18929 allow_undefined_flag_GCJ=
18930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18931 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934 test $ac_status = 0; }
18936 lt_cv_archive_cmds_need_lc_GCJ=no
18938 lt_cv_archive_cmds_need_lc_GCJ=yes
18940 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18942 cat conftest.err 1>&5
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18948 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18949 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19020 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19021 hardcode_action_GCJ=
19022 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19023 test -n "$runpath_var_GCJ" ||
19024 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19026 # We can hardcode non-existent directories.
19027 if test "$hardcode_direct_GCJ" != no &&
19028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19029 # have to relink, otherwise we might link with an installed library
19030 # when we should be linking with a yet-to-be-installed one
19031 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19032 test "$hardcode_minus_L_GCJ" != no; then
19033 # Linking always hardcodes the temporary library directory.
19034 hardcode_action_GCJ=relink
19036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19037 hardcode_action_GCJ=immediate
19040 # We cannot hardcode anything, or else we can only hardcode existing
19042 hardcode_action_GCJ=unsupported
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19045 $as_echo "$hardcode_action_GCJ" >&6; }
19047 if test "$hardcode_action_GCJ" = relink ||
19048 test "$inherit_rpath_GCJ" = yes; then
19049 # Fast installation is not supported
19050 enable_fast_install=no
19051 elif test "$shlibpath_overrides_runpath" = yes ||
19052 test "$enable_shared" = no; then
19053 # Fast installation is not necessary
19054 enable_fast_install=needless
19065 compiler_GCJ=${GCJ-gcj}
19067 ac_cpp='$CPP $CPPFLAGS'
19068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19073 if test "x$CC" != xcc; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19075 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19078 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19080 set dummy $CC; ac_cc=`$as_echo "$2" |
19081 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19082 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19083 $as_echo_n "(cached) " >&6
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19096 # Make sure it works both with $CC and with simple cc.
19097 # We do the test twice because some compilers refuse to overwrite an
19098 # existing .o file with -o, though they will create one.
19099 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19101 if { { case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19106 $as_echo "$ac_try_echo"; } >&5
19107 (eval "$ac_try") 2>&5
19109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19110 test $ac_status = 0; } &&
19111 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19116 $as_echo "$ac_try_echo"; } >&5
19117 (eval "$ac_try") 2>&5
19119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120 test $ac_status = 0; };
19122 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19123 if test "x$CC" != xcc; then
19124 # Test first that cc exists at all.
19125 if { ac_try='cc -c conftest.$ac_ext >&5'
19126 { { case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19131 $as_echo "$ac_try_echo"; } >&5
19132 (eval "$ac_try") 2>&5
19134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19135 test $ac_status = 0; }; }; then
19136 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19138 if { { case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19143 $as_echo "$ac_try_echo"; } >&5
19144 (eval "$ac_try") 2>&5
19146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19147 test $ac_status = 0; } &&
19148 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19153 $as_echo "$ac_try_echo"; } >&5
19154 (eval "$ac_try") 2>&5
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; };
19162 # cc exists but doesn't like -o.
19163 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19168 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19170 rm -f core conftest*
19173 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19175 $as_echo "yes" >&6; }
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178 $as_echo "no" >&6; }
19180 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19184 # FIXME: we rely on the cache variable name because
19185 # there is no other way.
19187 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19188 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19189 if test "$am_t" != yes; then
19190 # Losing compiler, so override with the script.
19191 # FIXME: It is wrong to rewrite CC.
19192 # But if we don't then we get into trouble of one sort or another.
19193 # A longer-term fix would be to have automake use am__CC in this case,
19194 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19195 CC="$am_aux_dir/compile $CC"
19202 subdirs="$subdirs classpath libltdl"
19205 # The -no-testsuite modules omit the test subdir.
19206 if test -d $srcdir/testsuite; then
19208 TESTSUBDIR_FALSE='#'
19210 TESTSUBDIR_TRUE='#'
19215 # Should the runtime set system properties by examining the
19216 # environment variable GCJ_PROPERTIES?
19217 # Check whether --enable-getenv-properties was given.
19218 if test "${enable_getenv_properties+set}" = set; then :
19219 enableval=$enable_getenv_properties;
19223 # Whether GCJ_PROPERTIES is used depends on the target.
19224 if test -z "$enable_getenv_properties"; then
19225 enable_getenv_properties=${enable_getenv_properties_default-yes}
19227 if test "$enable_getenv_properties" = no; then
19229 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19233 # Whether we should use arguments to main()
19234 if test -z "$enable_main_args"; then
19235 enable_main_args=${enable_main_args_default-yes}
19237 if test "$enable_main_args" = no; then
19239 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19244 # Should we use hashtable-based synchronization?
19245 # Currently works only for Linux X86/ia64
19246 # Typically faster and more space-efficient
19247 # Check whether --enable-hash-synchronization was given.
19248 if test "${enable_hash_synchronization+set}" = set; then :
19249 enableval=$enable_hash_synchronization;
19253 if test -z "$enable_hash_synchronization"; then
19254 enable_hash_synchronization=$enable_hash_synchronization_default
19262 # Check whether --with-ecj-jar was given.
19263 if test "${with_ecj_jar+set}" = set; then :
19264 withval=$with_ecj_jar; ECJ_JAR=$withval
19266 if test -f $multi_basedir/ecj.jar; then
19267 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19268 ECJ_JAR='$(jardir)/ecj.jar'
19269 install_ecj_jar=yes
19275 if test "$ECJ_JAR" != ""; then
19277 BUILD_ECJ1_FALSE='#'
19279 BUILD_ECJ1_TRUE='#'
19283 if test $install_ecj_jar = yes; then
19284 INSTALL_ECJ_JAR_TRUE=
19285 INSTALL_ECJ_JAR_FALSE='#'
19287 INSTALL_ECJ_JAR_TRUE='#'
19288 INSTALL_ECJ_JAR_FALSE=
19293 # Check whether --with-java-home was given.
19294 if test "${with_java_home+set}" = set; then :
19295 withval=$with_java_home; JAVA_HOME="${withval}"
19300 if test ! -z "$JAVA_HOME"; then
19301 JAVA_HOME_SET_TRUE=
19302 JAVA_HOME_SET_FALSE='#'
19304 JAVA_HOME_SET_TRUE='#'
19305 JAVA_HOME_SET_FALSE=
19310 suppress_libgcj_bc=no
19311 # Check whether --enable-libgcj-bc was given.
19312 if test "${enable_libgcj_bc+set}" = set; then :
19313 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19314 suppress_libgcj_bc=yes
19318 if test "$suppress_libgcj_bc" = "yes"; then
19319 SUPPRESS_LIBGCJ_BC_TRUE=
19320 SUPPRESS_LIBGCJ_BC_FALSE='#'
19322 SUPPRESS_LIBGCJ_BC_TRUE='#'
19323 SUPPRESS_LIBGCJ_BC_FALSE=
19327 build_libgcj_reduced_reflection=no
19328 # Check whether --enable-reduced-reflection was given.
19329 if test "${enable_reduced_reflection+set}" = set; then :
19330 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19331 build_libgcj_reduced_reflection=yes
19335 if test "$build_libgcj_reduced_reflection" = "yes"; then
19336 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19337 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19339 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19340 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19344 # What is the native OS API for MinGW?
19346 # Check whether --with-win32-nlsapi was given.
19347 if test "${with_win32_nlsapi+set}" = set; then :
19348 withval=$with_win32_nlsapi; case "${withval}" in
19349 ansi) with_win32_nlsapi=ansi ;;
19350 unicows) with_win32_nlsapi=unicows ;;
19351 unicode) with_win32_nlsapi=unicode ;;
19352 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19355 with_win32_nlsapi=ansi
19359 case "${with_win32_nlsapi}" in
19362 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19367 # configure.host sets slow_pthread_self if the synchronization code should
19368 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19369 if test "${slow_pthread_self}" = "yes"; then
19371 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19375 # Check for gc debugging. This option is handled both here and in the GC.
19376 # Check whether --enable-gc-debug was given.
19377 if test "${enable_gc_debug+set}" = set; then :
19378 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19380 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19386 # See if the user has the interpreter included.
19387 # Check whether --enable-interpreter was given.
19388 if test "${enable_interpreter+set}" = set; then :
19389 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19390 # This can also be set in configure.host.
19391 libgcj_interpreter=yes
19392 elif test "$enable_interpreter" = no; then
19393 libgcj_interpreter=no
19398 if test "$libgcj_interpreter" = yes; then
19400 $as_echo "#define INTERPRETER 1" >>confdefs.h
19403 INTERPRETER="$libgcj_interpreter"
19405 if test "$libgcj_interpreter" = yes; then
19407 INTERPRETER_FALSE='#'
19409 INTERPRETER_TRUE='#'
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19415 $as_echo_n "checking for exception model to use... " >&6; }
19417 ac_cpp='$CXXCPP $CPPFLAGS'
19418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19422 # Check whether --enable-sjlj-exceptions was given.
19423 if test "${enable_sjlj_exceptions+set}" = set; then :
19424 enableval=$enable_sjlj_exceptions; :
19426 cat > conftest.$ac_ext << EOF
19427 #line 19427 "configure"
19428 struct S { ~S(); };
19436 old_CXXFLAGS="$CXXFLAGS"
19438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19439 (eval $ac_compile) 2>&5
19441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19442 test $ac_status = 0; }; then
19443 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19444 enable_sjlj_exceptions=yes
19445 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19446 enable_sjlj_exceptions=no
19447 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19449 enable_sjlj_exceptions=no
19452 CXXFLAGS="$old_CXXFLAGS"
19456 if test x$enable_sjlj_exceptions = xyes; then
19458 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19460 ac_exception_model_name=sjlj
19461 elif test x$enable_sjlj_exceptions = xno; then
19462 ac_exception_model_name="call frame"
19464 as_fn_error "unable to detect exception model" "$LINENO" 5
19467 ac_cpp='$CPP $CPPFLAGS'
19468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19473 $as_echo "$ac_exception_model_name" >&6; }
19475 # If we are non using SJLJ exceptions, and this host does not have support
19476 # for unwinding from a signal handler, enable checked dereferences and divides.
19477 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19478 CHECKREFSPEC=-fcheck-references
19479 DIVIDESPEC=-fuse-divide-subroutine
19483 # See if the user wants to disable java.net. This is the mildly
19484 # ugly way that we admit that target-side configuration sucks.
19485 # Check whether --enable-java-net was given.
19486 if test "${enable_java_net+set}" = set; then :
19487 enableval=$enable_java_net;
19491 # Whether java.net is built by default can depend on the target.
19492 if test -z "$enable_java_net"; then
19493 enable_java_net=${enable_java_net_default-yes}
19495 if test "$enable_java_net" = no; then
19497 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19501 # See if the user wants to configure without libffi. Some
19502 # architectures don't support it, and default values are set in
19505 # Check whether --with-libffi was given.
19506 if test "${with_libffi+set}" = set; then :
19507 withval=$with_libffi; :
19509 with_libffi=${with_libffi_default-yes}
19515 if test "$with_libffi" != no; then
19517 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19519 LIBFFI=../libffi/libffi_convenience.la
19520 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19525 # See if the user wants to disable JVMPI support.
19526 # Check whether --enable-jvmpi was given.
19527 if test "${enable_jvmpi+set}" = set; then :
19528 enableval=$enable_jvmpi;
19532 if test "$enable_jvmpi" != no; then
19534 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19538 # If the target is an eCos system, use the appropriate eCos
19540 # FIXME: this should not be a local option but a global target
19541 # system; at present there is no eCos target.
19542 TARGET_ECOS=${PROCESS-"no"}
19544 # Check whether --with-ecos was given.
19545 if test "${with_ecos+set}" = set; then :
19546 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19551 case "$TARGET_ECOS" in
19552 no) case "$host" in
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19559 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19560 LD_PROG=`$CC --print-prog-name=ld`
19561 LD_VERSION=`$LD_PROG --version`
19562 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19563 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19564 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19567 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19571 if test "x$LD_OK" != x; then
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19573 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19576 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19578 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19580 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19595 $as_echo "#define ECOS 1" >>confdefs.h
19601 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19606 #include <stdint.h>
19609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19610 $EGREP "uint32_t" >/dev/null 2>&1; then :
19612 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619 #include <inttypes.h>
19622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19623 $EGREP "uint32_t" >/dev/null 2>&1; then :
19625 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631 /* end confdefs.h. */
19632 #include <sys/types.h>
19635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19636 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19638 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 #include <sys/config.h>
19648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19649 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19651 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19657 if test "$PLATFORM" = Win32; then
19658 USING_WIN32_PLATFORM_TRUE=
19659 USING_WIN32_PLATFORM_FALSE='#'
19661 USING_WIN32_PLATFORM_TRUE='#'
19662 USING_WIN32_PLATFORM_FALSE=
19665 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19666 USING_POSIX_PLATFORM_TRUE=
19667 USING_POSIX_PLATFORM_FALSE='#'
19669 USING_POSIX_PLATFORM_TRUE='#'
19670 USING_POSIX_PLATFORM_FALSE=
19675 *-darwin*) DARWIN_CRT=true ;;
19676 *) DARWIN_CRT=false ;;
19678 if $DARWIN_CRT; then
19679 USING_DARWIN_CRT_TRUE=
19680 USING_DARWIN_CRT_FALSE='#'
19682 USING_DARWIN_CRT_TRUE='#'
19683 USING_DARWIN_CRT_FALSE=
19687 # This may not be defined in a non-ANS conformant embedded system.
19688 # FIXME: Should these case a runtime exception in that case?
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19695 $EGREP "localtime" >/dev/null 2>&1; then :
19697 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19703 # Create the subdirectory for natFile.cc, or the attempt
19704 # to create the link will fail.
19705 test -d java || mkdir java
19706 test -d java/io || mkdir java/io
19707 test -d gnu || mkdir gnu
19708 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19711 # Likewise for natConcreteProcess.cc.
19712 test -d java/lang || mkdir java/lang
19713 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19716 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19717 test -d java/net || mkdir java/net
19718 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19720 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19723 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19724 test -d gnu/java || mkdir gnu/java
19725 test -d gnu/java/net || mkdir gnu/java/net
19726 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19728 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19731 # Likewise for natVMPipe.cc and natVMSelector.cc.
19732 test -d gnu/java/nio || mkdir gnu/java/nio
19733 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19735 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19738 # Likewise for natFileChannelImpl.cc
19739 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19740 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19743 # Likewise for natVMSecureRandom.cc
19744 test -d gnu/java/security || mkdir gnu/java/security
19745 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19746 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19747 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19752 SYSTEMSPEC="-lgdi32 -lws2_32"
19753 if test "${with_win32_nlsapi}" = "unicows"; then
19754 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19758 SYSTEMSPEC="-allow_stack_execute"
19767 # Check whether --with-system-zlib was given.
19768 if test "${with_system_zlib+set}" = set; then :
19769 withval=$with_system_zlib;
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19778 $as_echo_n "checking for X... " >&6; }
19781 # Check whether --with-x was given.
19782 if test "${with_x+set}" = set; then :
19786 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19787 if test "x$with_x" = xno; then
19788 # The user explicitly disabled X.
19791 case $x_includes,$x_libraries in #(
19792 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19793 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19794 $as_echo_n "(cached) " >&6
19796 # One or both of the vars are not set, and there is no cached value.
19797 ac_x_includes=no ac_x_libraries=no
19798 rm -f -r conftest.dir
19799 if mkdir conftest.dir; then
19801 cat >Imakefile <<'_ACEOF'
19803 @echo incroot='${INCROOT}'
19805 @echo usrlibdir='${USRLIBDIR}'
19807 @echo libdir='${LIBDIR}'
19809 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19811 for ac_var in incroot usrlibdir libdir; do
19812 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19814 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19815 for ac_extension in a so sl dylib la dll; do
19816 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19817 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19818 ac_im_usrlibdir=$ac_im_libdir; break
19821 # Screen out bogus values from the imake configuration. They are
19822 # bogus both because they are the default anyway, and because
19823 # using them would break gcc on systems where it needs fixed includes.
19824 case $ac_im_incroot in
19825 /usr/include) ac_x_includes= ;;
19826 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19828 case $ac_im_usrlibdir in
19829 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19830 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19834 rm -f -r conftest.dir
19837 # Standard set of common directories for X headers.
19838 # Check X11 before X11Rn because it is often a symlink to the current release.
19852 /usr/local/X11/include
19853 /usr/local/X11R7/include
19854 /usr/local/X11R6/include
19855 /usr/local/X11R5/include
19856 /usr/local/X11R4/include
19858 /usr/local/include/X11
19859 /usr/local/include/X11R7
19860 /usr/local/include/X11R6
19861 /usr/local/include/X11R5
19862 /usr/local/include/X11R4
19866 /usr/XFree86/include/X11
19870 /usr/unsupported/include
19871 /usr/athena/include
19872 /usr/local/x11r5/include
19873 /usr/lpp/Xamples/include
19875 /usr/openwin/include
19876 /usr/openwin/share/include'
19878 if test "$ac_x_includes" = no; then
19879 # Guess where to find include files, by looking for Xlib.h.
19880 # First, try using that file with no special directory specified.
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883 #include <X11/Xlib.h>
19885 if ac_fn_c_try_cpp "$LINENO"; then :
19886 # We can compile using X headers with no special include directory.
19889 for ac_dir in $ac_x_header_dirs; do
19890 if test -r "$ac_dir/X11/Xlib.h"; then
19891 ac_x_includes=$ac_dir
19896 rm -f conftest.err conftest.$ac_ext
19897 fi # $ac_x_includes = no
19899 if test "$ac_x_libraries" = no; then
19900 # Check for the libraries.
19901 # See if we find them without any special options.
19902 # Don't add to $LIBS permanently.
19905 if test x$gcc_no_link = xyes; then
19906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19909 /* end confdefs.h. */
19910 #include <X11/Xlib.h>
19919 if ac_fn_c_try_link "$LINENO"; then :
19921 # We can link X programs with no special library path.
19925 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19927 # Don't even attempt the hair of trying to link an X program!
19928 for ac_extension in a so sl dylib la dll; do
19929 if test -r "$ac_dir/libX11.$ac_extension"; then
19930 ac_x_libraries=$ac_dir
19936 rm -f core conftest.err conftest.$ac_objext \
19937 conftest$ac_exeext conftest.$ac_ext
19938 fi # $ac_x_libraries = no
19940 case $ac_x_includes,$ac_x_libraries in #(
19941 no,* | *,no | *\'*)
19942 # Didn't find X, or a directory has "'" in its name.
19943 ac_cv_have_x="have_x=no";; #(
19945 # Record where we found X for the cache.
19946 ac_cv_have_x="have_x=yes\
19947 ac_x_includes='$ac_x_includes'\
19948 ac_x_libraries='$ac_x_libraries'"
19954 eval "$ac_cv_have_x"
19957 if test "$have_x" != yes; then
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19959 $as_echo "$have_x" >&6; }
19962 # If each of the values was on the command line, it overrides each guess.
19963 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19964 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19965 # Update the cache value to reflect the command line values.
19966 ac_cv_have_x="have_x=yes\
19967 ac_x_includes='$x_includes'\
19968 ac_x_libraries='$x_libraries'"
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19970 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19973 if test "$no_x" = yes; then
19974 # Not all programs may use this symbol, but it does not hurt to define it.
19976 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19978 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19980 if test -n "$x_includes"; then
19981 X_CFLAGS="$X_CFLAGS -I$x_includes"
19984 # It would also be nice to do this for all -L options, not just this one.
19985 if test -n "$x_libraries"; then
19986 X_LIBS="$X_LIBS -L$x_libraries"
19987 # For Solaris; some versions of Sun CC require a space after -R and
19988 # others require no space. Words are not sufficient . . . .
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19990 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19991 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19992 ac_xsave_c_werror_flag=$ac_c_werror_flag
19993 ac_c_werror_flag=yes
19994 if test x$gcc_no_link = xyes; then
19995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19998 /* end confdefs.h. */
20008 if ac_fn_c_try_link "$LINENO"; then :
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20010 $as_echo "no" >&6; }
20011 X_LIBS="$X_LIBS -R$x_libraries"
20013 LIBS="$ac_xsave_LIBS -R $x_libraries"
20014 if test x$gcc_no_link = xyes; then
20015 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20028 if ac_fn_c_try_link "$LINENO"; then :
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20030 $as_echo "yes" >&6; }
20031 X_LIBS="$X_LIBS -R $x_libraries"
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20034 $as_echo "neither works" >&6; }
20036 rm -f core conftest.err conftest.$ac_objext \
20037 conftest$ac_exeext conftest.$ac_ext
20039 rm -f core conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
20041 ac_c_werror_flag=$ac_xsave_c_werror_flag
20042 LIBS=$ac_xsave_LIBS
20045 # Check for system-dependent libraries X programs must link with.
20046 # Do this before checking for the system-independent R6 libraries
20047 # (-lICE), since we may need -lsocket or whatever for X linking.
20049 if test "$ISC" = yes; then
20050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20052 # Martyn Johnson says this is needed for Ultrix, if the X
20053 # libraries were built with DECnet support. And Karl Berry says
20054 # the Alpha needs dnet_stub (dnet does not exist).
20055 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20056 if test x$gcc_no_link = xyes; then
20057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20068 char XOpenDisplay ();
20072 return XOpenDisplay ();
20077 if ac_fn_c_try_link "$LINENO"; then :
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20081 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20082 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20083 $as_echo_n "(cached) " >&6
20085 ac_check_lib_save_LIBS=$LIBS
20086 LIBS="-ldnet $LIBS"
20087 if test x$gcc_no_link = xyes; then
20088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20091 /* end confdefs.h. */
20093 /* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20103 return dnet_ntoa ();
20108 if ac_fn_c_try_link "$LINENO"; then :
20109 ac_cv_lib_dnet_dnet_ntoa=yes
20111 ac_cv_lib_dnet_dnet_ntoa=no
20113 rm -f core conftest.err conftest.$ac_objext \
20114 conftest$ac_exeext conftest.$ac_ext
20115 LIBS=$ac_check_lib_save_LIBS
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20118 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20119 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20120 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20123 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20125 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20126 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20127 $as_echo_n "(cached) " >&6
20129 ac_check_lib_save_LIBS=$LIBS
20130 LIBS="-ldnet_stub $LIBS"
20131 if test x$gcc_no_link = xyes; then
20132 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h. */
20137 /* Override any GCC internal prototype to avoid an error.
20138 Use char because int might match the return type of a GCC
20139 builtin and then its argument prototype would still apply. */
20147 return dnet_ntoa ();
20152 if ac_fn_c_try_link "$LINENO"; then :
20153 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20155 ac_cv_lib_dnet_stub_dnet_ntoa=no
20157 rm -f core conftest.err conftest.$ac_objext \
20158 conftest$ac_exeext conftest.$ac_ext
20159 LIBS=$ac_check_lib_save_LIBS
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20162 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20163 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20164 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS="$ac_xsave_LIBS"
20173 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20174 # to get the SysV transport functions.
20175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20177 # The nsl library prevents programs from opening the X display
20178 # on Irix 5.2, according to T.E. Dickey.
20179 # The functions gethostbyname, getservbyname, and inet_addr are
20180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20181 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20182 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20186 if test $ac_cv_func_gethostbyname = no; then
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20188 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20189 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20190 $as_echo_n "(cached) " >&6
20192 ac_check_lib_save_LIBS=$LIBS
20194 if test x$gcc_no_link = xyes; then
20195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20198 /* end confdefs.h. */
20200 /* Override any GCC internal prototype to avoid an error.
20201 Use char because int might match the return type of a GCC
20202 builtin and then its argument prototype would still apply. */
20206 char gethostbyname ();
20210 return gethostbyname ();
20215 if ac_fn_c_try_link "$LINENO"; then :
20216 ac_cv_lib_nsl_gethostbyname=yes
20218 ac_cv_lib_nsl_gethostbyname=no
20220 rm -f core conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222 LIBS=$ac_check_lib_save_LIBS
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20225 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20226 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20230 if test $ac_cv_lib_nsl_gethostbyname = no; then
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20232 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20233 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20234 $as_echo_n "(cached) " >&6
20236 ac_check_lib_save_LIBS=$LIBS
20238 if test x$gcc_no_link = xyes; then
20239 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20250 char gethostbyname ();
20254 return gethostbyname ();
20259 if ac_fn_c_try_link "$LINENO"; then :
20260 ac_cv_lib_bsd_gethostbyname=yes
20262 ac_cv_lib_bsd_gethostbyname=no
20264 rm -f core conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20266 LIBS=$ac_check_lib_save_LIBS
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20269 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20270 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20277 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20278 # socket/setsockopt and other routines are undefined under SCO ODT
20279 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20280 # on later versions), says Simon Leinen: it contains gethostby*
20281 # variants that don't use the name server (or something). -lsocket
20282 # must be given before -lnsl if both are needed. We assume that
20283 # if connect needs -lnsl, so does gethostbyname.
20284 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20285 if test "x$ac_cv_func_connect" = x""yes; then :
20289 if test $ac_cv_func_connect = no; then
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20291 $as_echo_n "checking for connect in -lsocket... " >&6; }
20292 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20293 $as_echo_n "(cached) " >&6
20295 ac_check_lib_save_LIBS=$LIBS
20296 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20297 if test x$gcc_no_link = xyes; then
20298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20318 if ac_fn_c_try_link "$LINENO"; then :
20319 ac_cv_lib_socket_connect=yes
20321 ac_cv_lib_socket_connect=no
20323 rm -f core conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20328 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20329 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20330 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20335 # Guillermo Gomez says -lposix is necessary on A/UX.
20336 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20337 if test "x$ac_cv_func_remove" = x""yes; then :
20341 if test $ac_cv_func_remove = no; then
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20343 $as_echo_n "checking for remove in -lposix... " >&6; }
20344 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20347 ac_check_lib_save_LIBS=$LIBS
20348 LIBS="-lposix $LIBS"
20349 if test x$gcc_no_link = xyes; then
20350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20355 /* Override any GCC internal prototype to avoid an error.
20356 Use char because int might match the return type of a GCC
20357 builtin and then its argument prototype would still apply. */
20370 if ac_fn_c_try_link "$LINENO"; then :
20371 ac_cv_lib_posix_remove=yes
20373 ac_cv_lib_posix_remove=no
20375 rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20377 LIBS=$ac_check_lib_save_LIBS
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20380 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20381 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20387 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20388 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20389 if test "x$ac_cv_func_shmat" = x""yes; then :
20393 if test $ac_cv_func_shmat = no; then
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20395 $as_echo_n "checking for shmat in -lipc... " >&6; }
20396 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20397 $as_echo_n "(cached) " >&6
20399 ac_check_lib_save_LIBS=$LIBS
20401 if test x$gcc_no_link = xyes; then
20402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h. */
20407 /* Override any GCC internal prototype to avoid an error.
20408 Use char because int might match the return type of a GCC
20409 builtin and then its argument prototype would still apply. */
20422 if ac_fn_c_try_link "$LINENO"; then :
20423 ac_cv_lib_ipc_shmat=yes
20425 ac_cv_lib_ipc_shmat=no
20427 rm -f core conftest.err conftest.$ac_objext \
20428 conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20432 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20433 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20440 # Check for libraries that X11R6 Xt/Xaw programs need.
20441 ac_save_LDFLAGS=$LDFLAGS
20442 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20443 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20444 # check for ICE first), but we must link in the order -lSM -lICE or
20445 # we get undefined symbols. So assume we have SM if we have ICE.
20446 # These have to be linked with before -lX11, unlike the other
20447 # libraries we check for below, so use a different variable.
20448 # John Interrante, Karl Berry
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20450 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20451 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20452 $as_echo_n "(cached) " >&6
20454 ac_check_lib_save_LIBS=$LIBS
20455 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20456 if test x$gcc_no_link = xyes; then
20457 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20462 /* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20468 char IceConnectionNumber ();
20472 return IceConnectionNumber ();
20477 if ac_fn_c_try_link "$LINENO"; then :
20478 ac_cv_lib_ICE_IceConnectionNumber=yes
20480 ac_cv_lib_ICE_IceConnectionNumber=no
20482 rm -f core conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20487 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20488 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20489 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20492 LDFLAGS=$ac_save_LDFLAGS
20497 # FIXME: this should be _libs on some hosts.
20500 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20503 # extra LD Flags which are required for targets
20506 # For now we have to disable it on darwin[8-9] because it slows down
20507 # the linking phase. A possible bug in ld?
20508 # on Darwin -single_module speeds up loading of the dynamic libraries.
20509 extra_ldflags_libjava=-Wl,-single_module
20512 # Some of the ARM unwinder code is actually in libstdc++. We
20513 # could in principle replicate it in libgcj, but it's better to
20514 # have a dependency on libstdc++.
20515 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20516 LIBSTDCXXSPEC=-lstdc++
20517 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20520 extra_ldflags_libjava=-liconv
20524 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20526 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20527 if test "${libgcj_cv_exidx+set}" = set; then :
20528 $as_echo_n "(cached) " >&6
20530 saved_ldflags="$LDFLAGS"
20531 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20532 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20533 # warns about unknown options, which breaks the testsuite. So enable
20534 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20535 # it off again. As a workaround, save and restore werror flag like
20537 ac_xsave_c_werror_flag=$ac_c_werror_flag
20539 ac_c_werror_flag=yes
20540 if test x$gcc_no_link = xyes; then
20541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 int main(void){ return 0;}
20547 if ac_fn_c_try_link "$LINENO"; then :
20548 eval "libgcj_cv_exidx=yes"
20550 eval "libgcj_cv_exidx=no"
20552 rm -f core conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
20554 ac_c_werror_flag=$ac_xsave_c_werror_flag
20555 LDFLAGS="${saved_ldflags}"
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20559 $as_echo "$libgcj_cv_exidx" >&6; }
20560 if test "${libgcj_cv_exidx}" = "yes"; then
20561 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20562 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20571 # Allow the GC to be disabled. Can be useful when debugging.
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20573 $as_echo_n "checking for garbage collector to use... " >&6; }
20574 # Check whether --enable-java-gc was given.
20575 if test "${enable_java_gc+set}" = set; then :
20576 enableval=$enable_java_gc; GC=$enableval
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20590 $as_echo "boehm" >&6; }
20591 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20592 JC1GCSPEC='-fuse-boehm-gc'
20593 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20594 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20597 # The POSIX thread support needs to know this.
20599 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20604 $as_echo "none" >&6; }
20608 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20617 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20619 if test "$GC" = boehm; then
20620 USING_BOEHMGC_TRUE=
20621 USING_BOEHMGC_FALSE='#'
20623 USING_BOEHMGC_TRUE='#'
20624 USING_BOEHMGC_FALSE=
20627 if test "$GC" = no; then
20629 USING_NOGC_FALSE='#'
20631 USING_NOGC_TRUE='#'
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20638 $as_echo_n "checking for thread model used by GCC... " >&6; }
20639 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20641 $as_echo "$THREADS" >&6; }
20644 no | none | single)
20647 aix | posix | posix95 | pthreads)
20652 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20659 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20660 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20663 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20674 THREADSTARTFILESPEC=
20679 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20681 *-*-freebsd[1234]*)
20682 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20683 # merely adds pthread_* functions) but it does have a -pthread switch
20684 # which is required at link-time to select -lc_r *instead* of -lc.
20685 THREADLDFLAGS=-pthread
20686 # Don't set THREADSPEC here as might be expected since -pthread is
20687 # not processed when found within a spec file, it must come from
20688 # the command line. For now, the user must provide the -pthread
20689 # switch to link code compiled with gcj. In future, consider adding
20690 # support for weak references to pthread_* functions ala gthr.h API.
20691 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20694 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20695 # systems which support threads and -lpthread.
20696 THREADLDFLAGS=-pthread
20697 THREADSPEC=-lpthread
20699 alpha*-dec-osf* | hppa*-hp-hpux*)
20700 THREADCXXFLAGS=-pthread
20701 # boehm-gc needs some functions from librt, so link that too.
20702 THREADLIBS='-lpthread -lrt'
20703 THREADSPEC='-lpthread -lrt'
20706 THREADLIBS=-lpthread
20707 THREADSPEC=-lpthread
20710 THREADH=posix-threads.h
20711 # MIT pthreads doesn't seem to have the mutexattr functions.
20712 # But for now we don't check for it. We just assume you aren't
20713 # using MIT pthreads.
20715 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20718 # If we're using the Boehm GC, then we happen to know that it
20719 # defines _REENTRANT, so we don't bother. Eww.
20720 if test "$GC" != boehm; then
20722 $as_echo "#define _REENTRANT 1" >>confdefs.h
20726 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20731 THREADH=win32-threads.h
20732 THREADCXXFLAGS=-mthreads
20733 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20734 # But we do not want the executables created to be dependent on
20735 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20736 # exception handling contexts. The following kludge achieves this effect
20737 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20738 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20739 # A workaround is to explicitly use -mthreads while linking Java programs.
20740 # See PR libgcj/28263.
20742 # FIXME: In Java we are able to detect thread death at the end of
20743 # Thread.run() so we should be able to clean up the exception handling
20744 # contexts ourselves.
20745 THREADSTARTFILESPEC='crtmt%O%s'
20749 THREADH=no-threads.h
20752 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20761 if test "$THREADS" = posix; then
20762 USING_POSIX_THREADS_TRUE=
20763 USING_POSIX_THREADS_FALSE='#'
20765 USING_POSIX_THREADS_TRUE='#'
20766 USING_POSIX_THREADS_FALSE=
20769 if test "$THREADS" = win32; then
20770 USING_WIN32_THREADS_TRUE=
20771 USING_WIN32_THREADS_FALSE='#'
20773 USING_WIN32_THREADS_TRUE='#'
20774 USING_WIN32_THREADS_FALSE=
20777 if test "$THREADS" = none; then
20778 USING_NO_THREADS_TRUE=
20779 USING_NO_THREADS_FALSE='#'
20781 USING_NO_THREADS_TRUE='#'
20782 USING_NO_THREADS_FALSE=
20785 if test "$enable_shared" != yes; then
20788 if test "$use_libgcj_bc" = yes; then
20789 USE_LIBGCJ_BC_TRUE=
20790 USE_LIBGCJ_BC_FALSE='#'
20792 USE_LIBGCJ_BC_TRUE='#'
20793 USE_LIBGCJ_BC_FALSE=
20797 if test -d sysdep; then true; else mkdir sysdep; fi
20798 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20800 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20802 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20805 LIBGCJ_SPEC_LGCJ=-lgcj
20806 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20807 if test x"$libgcj_spec_lgcj_override" != x ; then
20808 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20810 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20811 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20813 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20814 if test "$use_libgcj_bc" = yes; then
20815 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20816 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20822 # Hash synchronization is only useful with posix threads right now.
20823 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20824 HASH_SYNC_SPEC=-fhash-synchronization
20826 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20831 if test "$GCC" = yes; then
20833 USING_GCC_FALSE='#'
20840 # We're in the tree with gcc, and need to include some of its headers.
20841 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20843 if test "x${with_newlib}" = "xyes"; then
20844 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20845 # may not work correctly, because the compiler may not be able to
20846 # link executables.
20848 # We assume newlib. This lets us hard-code the functions we know
20851 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20854 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20857 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20860 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20863 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20866 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20868 # This is only for POSIX threads.
20870 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20873 # Assume we do not have getuid and friends.
20875 $as_echo "#define NO_GETUID 1" >>confdefs.h
20879 for ac_func in strerror_r select fstat open fsync sleep opendir \
20880 localtime_r getpwuid_r getcwd \
20881 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20882 nl_langinfo setlocale \
20883 inet_pton uname inet_ntoa \
20884 getrlimit sigaction ftruncate mmap \
20887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20889 eval as_val=\$$as_ac_var
20890 if test "x$as_val" = x""yes; then :
20891 cat >>confdefs.h <<_ACEOF
20892 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20898 for ac_func in inet_aton inet_addr
20900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20902 eval as_val=\$$as_ac_var
20903 if test "x$as_val" = x""yes; then :
20904 cat >>confdefs.h <<_ACEOF
20905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20911 for ac_header in unistd.h dlfcn.h sys/resource.h
20913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20915 eval as_val=\$$as_ac_Header
20916 if test "x$as_val" = x""yes; then :
20917 cat >>confdefs.h <<_ACEOF
20918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20925 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20927 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20928 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20931 ac_check_lib_save_LIBS=$LIBS
20933 if test x$gcc_no_link = xyes; then
20934 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20939 /* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
20954 if ac_fn_c_try_link "$LINENO"; then :
20955 ac_cv_lib_dl_dladdr=yes
20957 ac_cv_lib_dl_dladdr=no
20959 rm -f core conftest.err conftest.$ac_objext \
20960 conftest$ac_exeext conftest.$ac_ext
20961 LIBS=$ac_check_lib_save_LIBS
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20964 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20965 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20968 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20973 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20974 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20977 ac_check_lib_save_LIBS=$LIBS
20979 if test x$gcc_no_link = xyes; then
20980 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h. */
20985 /* Override any GCC internal prototype to avoid an error.
20986 Use char because int might match the return type of a GCC
20987 builtin and then its argument prototype would still apply. */
21000 if ac_fn_c_try_link "$LINENO"; then :
21001 ac_cv_lib_dld_dladdr=yes
21003 ac_cv_lib_dld_dladdr=no
21005 rm -f core conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21007 LIBS=$ac_check_lib_save_LIBS
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21010 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21011 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21014 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21021 if test x"$cross_compiling" = x"no"; then
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21023 $as_echo_n "checking for /proc/self/exe... " >&6; }
21024 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21027 test "$cross_compiling" = yes &&
21028 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21029 if test -r "/proc/self/exe"; then
21030 ac_cv_file__proc_self_exe=yes
21032 ac_cv_file__proc_self_exe=no
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21036 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21037 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21039 cat >>confdefs.h <<_ACEOF
21040 #define HAVE__PROC_SELF_EXE 1
21044 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21049 $as_echo_n "checking for /proc/self/maps... " >&6; }
21050 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21051 $as_echo_n "(cached) " >&6
21053 test "$cross_compiling" = yes &&
21054 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21055 if test -r "/proc/self/maps"; then
21056 ac_cv_file__proc_self_maps=yes
21058 ac_cv_file__proc_self_maps=no
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21062 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21063 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21065 cat >>confdefs.h <<_ACEOF
21066 #define HAVE__PROC_SELF_MAPS 1
21070 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21078 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21081 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21088 if test "X$prefix" = "XNONE"; then
21089 acl_final_prefix="$ac_default_prefix"
21091 acl_final_prefix="$prefix"
21093 if test "X$exec_prefix" = "XNONE"; then
21094 acl_final_exec_prefix='${prefix}'
21096 acl_final_exec_prefix="$exec_prefix"
21098 acl_save_prefix="$prefix"
21099 prefix="$acl_final_prefix"
21100 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21101 prefix="$acl_save_prefix"
21104 # Check whether --with-gnu-ld was given.
21105 if test "${with_gnu_ld+set}" = set; then :
21106 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21111 # Prepare PATH_SEPARATOR.
21112 # The user is always right.
21113 if test "${PATH_SEPARATOR+set}" != set; then
21114 echo "#! /bin/sh" >conf$$.sh
21115 echo "exit 0" >>conf$$.sh
21117 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21125 if test "$GCC" = yes; then
21126 # Check if gcc -print-prog-name=ld gives a path.
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21128 $as_echo_n "checking for ld used by GCC... " >&6; }
21131 # gcc leaves a trailing carriage return which upsets mingw
21132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21137 # Accept absolute paths.
21138 [\\/]* | [A-Za-z]:[\\/]*)
21139 re_direlt='/[^/][^/]*/\.\./'
21140 # Canonicalize the path of ld
21141 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21142 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21143 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21145 test -z "$LD" && LD="$ac_prog"
21148 # If it fails, then pretend we aren't using GCC.
21152 # If it is relative, then search for the first ld in PATH.
21153 with_gnu_ld=unknown
21156 elif test "$with_gnu_ld" = yes; then
21157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21158 $as_echo_n "checking for GNU ld... " >&6; }
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21161 $as_echo_n "checking for non-GNU ld... " >&6; }
21163 if test "${acl_cv_path_LD+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21166 if test -z "$LD"; then
21167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21168 for ac_dir in $PATH; do
21169 test -z "$ac_dir" && ac_dir=.
21170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21171 acl_cv_path_LD="$ac_dir/$ac_prog"
21172 # Check to see if the program is GNU ld. I'd rather use --version,
21173 # but apparently some GNU ld's only accept -v.
21174 # Break only if it was the GNU/non-GNU ld that we prefer.
21175 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21176 test "$with_gnu_ld" != no && break
21178 test "$with_gnu_ld" != yes && break
21184 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21188 LD="$acl_cv_path_LD"
21189 if test -n "$LD"; then
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21191 $as_echo "$LD" >&6; }
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21194 $as_echo "no" >&6; }
21196 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21198 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21199 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21200 $as_echo_n "(cached) " >&6
21202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21203 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21204 acl_cv_prog_gnu_ld=yes
21206 acl_cv_prog_gnu_ld=no
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21210 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21211 with_gnu_ld=$acl_cv_prog_gnu_ld
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21216 $as_echo_n "checking for shared library run path origin... " >&6; }
21217 if test "${acl_cv_rpath+set}" = set; then :
21218 $as_echo_n "(cached) " >&6
21221 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21222 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21224 rm -f ./conftest.sh
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21229 $as_echo "$acl_cv_rpath" >&6; }
21231 libext="$acl_cv_libext"
21232 shlibext="$acl_cv_shlibext"
21233 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21234 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21235 hardcode_direct="$acl_cv_hardcode_direct"
21236 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21237 # Check whether --enable-rpath was given.
21238 if test "${enable_rpath+set}" = set; then :
21239 enableval=$enable_rpath; :
21253 acl_save_prefix="$prefix"
21254 prefix="$acl_final_prefix"
21255 acl_save_exec_prefix="$exec_prefix"
21256 exec_prefix="$acl_final_exec_prefix"
21258 eval additional_includedir=\"$includedir\"
21259 eval additional_libdir=\"$libdir\"
21261 exec_prefix="$acl_save_exec_prefix"
21262 prefix="$acl_save_prefix"
21265 # Check whether --with-libiconv-prefix was given.
21266 if test "${with_libiconv_prefix+set}" = set; then :
21267 withval=$with_libiconv_prefix;
21268 if test "X$withval" = "Xno"; then
21271 if test "X$withval" = "X"; then
21273 acl_save_prefix="$prefix"
21274 prefix="$acl_final_prefix"
21275 acl_save_exec_prefix="$exec_prefix"
21276 exec_prefix="$acl_final_exec_prefix"
21278 eval additional_includedir=\"$includedir\"
21279 eval additional_libdir=\"$libdir\"
21281 exec_prefix="$acl_save_exec_prefix"
21282 prefix="$acl_save_prefix"
21285 additional_includedir="$withval/include"
21286 additional_libdir="$withval/lib"
21297 names_already_handled=
21298 names_next_round='iconv '
21299 while test -n "$names_next_round"; do
21300 names_this_round="$names_next_round"
21302 for name in $names_this_round; do
21304 for n in $names_already_handled; do
21305 if test "$n" = "$name"; then
21306 already_handled=yes
21310 if test -z "$already_handled"; then
21311 names_already_handled="$names_already_handled $name"
21312 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21313 eval value=\"\$HAVE_LIB$uppername\"
21314 if test -n "$value"; then
21315 if test "$value" = yes; then
21316 eval value=\"\$LIB$uppername\"
21317 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21318 eval value=\"\$LTLIB$uppername\"
21319 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21328 if test $use_additional = yes; then
21329 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21330 found_dir="$additional_libdir"
21331 found_so="$additional_libdir/lib$name.$shlibext"
21332 if test -f "$additional_libdir/lib$name.la"; then
21333 found_la="$additional_libdir/lib$name.la"
21336 if test -f "$additional_libdir/lib$name.$libext"; then
21337 found_dir="$additional_libdir"
21338 found_a="$additional_libdir/lib$name.$libext"
21339 if test -f "$additional_libdir/lib$name.la"; then
21340 found_la="$additional_libdir/lib$name.la"
21345 if test "X$found_dir" = "X"; then
21346 for x in $LDFLAGS $LTLIBICONV; do
21348 acl_save_prefix="$prefix"
21349 prefix="$acl_final_prefix"
21350 acl_save_exec_prefix="$exec_prefix"
21351 exec_prefix="$acl_final_exec_prefix"
21353 exec_prefix="$acl_save_exec_prefix"
21354 prefix="$acl_save_prefix"
21358 dir=`echo "X$x" | sed -e 's/^X-L//'`
21359 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21361 found_so="$dir/lib$name.$shlibext"
21362 if test -f "$dir/lib$name.la"; then
21363 found_la="$dir/lib$name.la"
21366 if test -f "$dir/lib$name.$libext"; then
21368 found_a="$dir/lib$name.$libext"
21369 if test -f "$dir/lib$name.la"; then
21370 found_la="$dir/lib$name.la"
21376 if test "X$found_dir" != "X"; then
21381 if test "X$found_dir" != "X"; then
21382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21383 if test "X$found_so" != "X"; then
21384 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21388 for x in $ltrpathdirs; do
21389 if test "X$x" = "X$found_dir"; then
21394 if test -z "$haveit"; then
21395 ltrpathdirs="$ltrpathdirs $found_dir"
21397 if test "$hardcode_direct" = yes; then
21398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21400 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21401 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21403 for x in $rpathdirs; do
21404 if test "X$x" = "X$found_dir"; then
21409 if test -z "$haveit"; then
21410 rpathdirs="$rpathdirs $found_dir"
21414 for x in $LDFLAGS $LIBICONV; do
21416 acl_save_prefix="$prefix"
21417 prefix="$acl_final_prefix"
21418 acl_save_exec_prefix="$exec_prefix"
21419 exec_prefix="$acl_final_exec_prefix"
21421 exec_prefix="$acl_save_exec_prefix"
21422 prefix="$acl_save_prefix"
21424 if test "X$x" = "X-L$found_dir"; then
21429 if test -z "$haveit"; then
21430 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21432 if test "$hardcode_minus_L" != no; then
21433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21435 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21441 if test "X$found_a" != "X"; then
21442 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21444 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21447 additional_includedir=
21448 case "$found_dir" in
21450 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21451 additional_includedir="$basedir/include"
21454 if test "X$additional_includedir" != "X"; then
21455 if test "X$additional_includedir" != "X/usr/include"; then
21457 if test "X$additional_includedir" = "X/usr/local/include"; then
21458 if test -n "$GCC"; then
21460 linux*) haveit=yes;;
21464 if test -z "$haveit"; then
21465 for x in $CPPFLAGS $INCICONV; do
21467 acl_save_prefix="$prefix"
21468 prefix="$acl_final_prefix"
21469 acl_save_exec_prefix="$exec_prefix"
21470 exec_prefix="$acl_final_exec_prefix"
21472 exec_prefix="$acl_save_exec_prefix"
21473 prefix="$acl_save_prefix"
21475 if test "X$x" = "X-I$additional_includedir"; then
21480 if test -z "$haveit"; then
21481 if test -d "$additional_includedir"; then
21482 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21488 if test -n "$found_la"; then
21489 save_libdir="$libdir"
21490 case "$found_la" in
21491 */* | *\\*) . "$found_la" ;;
21492 *) . "./$found_la" ;;
21494 libdir="$save_libdir"
21495 for dep in $dependency_libs; do
21498 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21499 if test "X$additional_libdir" != "X/usr/lib"; then
21501 if test "X$additional_libdir" = "X/usr/local/lib"; then
21502 if test -n "$GCC"; then
21504 linux*) haveit=yes;;
21508 if test -z "$haveit"; then
21510 for x in $LDFLAGS $LIBICONV; do
21512 acl_save_prefix="$prefix"
21513 prefix="$acl_final_prefix"
21514 acl_save_exec_prefix="$exec_prefix"
21515 exec_prefix="$acl_final_exec_prefix"
21517 exec_prefix="$acl_save_exec_prefix"
21518 prefix="$acl_save_prefix"
21520 if test "X$x" = "X-L$additional_libdir"; then
21525 if test -z "$haveit"; then
21526 if test -d "$additional_libdir"; then
21527 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21531 for x in $LDFLAGS $LTLIBICONV; do
21533 acl_save_prefix="$prefix"
21534 prefix="$acl_final_prefix"
21535 acl_save_exec_prefix="$exec_prefix"
21536 exec_prefix="$acl_final_exec_prefix"
21538 exec_prefix="$acl_save_exec_prefix"
21539 prefix="$acl_save_prefix"
21541 if test "X$x" = "X-L$additional_libdir"; then
21546 if test -z "$haveit"; then
21547 if test -d "$additional_libdir"; then
21548 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21555 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21556 if test "$enable_rpath" != no; then
21558 for x in $rpathdirs; do
21559 if test "X$x" = "X$dir"; then
21564 if test -z "$haveit"; then
21565 rpathdirs="$rpathdirs $dir"
21568 for x in $ltrpathdirs; do
21569 if test "X$x" = "X$dir"; then
21574 if test -z "$haveit"; then
21575 ltrpathdirs="$ltrpathdirs $dir"
21580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21583 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21586 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21593 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21594 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21600 if test "X$rpathdirs" != "X"; then
21601 if test -n "$hardcode_libdir_separator"; then
21603 for found_dir in $rpathdirs; do
21604 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21606 acl_save_libdir="$libdir"
21608 eval flag=\"$hardcode_libdir_flag_spec\"
21609 libdir="$acl_save_libdir"
21610 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21612 for found_dir in $rpathdirs; do
21613 acl_save_libdir="$libdir"
21614 libdir="$found_dir"
21615 eval flag=\"$hardcode_libdir_flag_spec\"
21616 libdir="$acl_save_libdir"
21617 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21621 if test "X$ltrpathdirs" != "X"; then
21622 for found_dir in $ltrpathdirs; do
21623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21633 am_save_CPPFLAGS="$CPPFLAGS"
21635 for element in $INCICONV; do
21637 for x in $CPPFLAGS; do
21639 acl_save_prefix="$prefix"
21640 prefix="$acl_final_prefix"
21641 acl_save_exec_prefix="$exec_prefix"
21642 exec_prefix="$acl_final_exec_prefix"
21644 exec_prefix="$acl_save_exec_prefix"
21645 prefix="$acl_save_prefix"
21647 if test "X$x" = "X$element"; then
21652 if test -z "$haveit"; then
21653 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21659 $as_echo_n "checking for iconv... " >&6; }
21660 if test "${am_cv_func_iconv+set}" = set; then :
21661 $as_echo_n "(cached) " >&6
21664 am_cv_func_iconv="no, consider installing GNU libiconv"
21666 if test x$gcc_no_link = xyes; then
21667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21671 #include <stdlib.h>
21676 iconv_t cd = iconv_open("","");
21677 iconv(cd,NULL,NULL,NULL,NULL);
21683 if ac_fn_c_try_link "$LINENO"; then :
21684 am_cv_func_iconv=yes
21686 rm -f core conftest.err conftest.$ac_objext \
21687 conftest$ac_exeext conftest.$ac_ext
21688 if test "$am_cv_func_iconv" != yes; then
21689 am_save_LIBS="$LIBS"
21690 LIBS="$LIBS $LIBICONV"
21691 if test x$gcc_no_link = xyes; then
21692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h. */
21696 #include <stdlib.h>
21701 iconv_t cd = iconv_open("","");
21702 iconv(cd,NULL,NULL,NULL,NULL);
21708 if ac_fn_c_try_link "$LINENO"; then :
21709 am_cv_lib_iconv=yes
21710 am_cv_func_iconv=yes
21712 rm -f core conftest.err conftest.$ac_objext \
21713 conftest$ac_exeext conftest.$ac_ext
21714 LIBS="$am_save_LIBS"
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21719 $as_echo "$am_cv_func_iconv" >&6; }
21720 if test "$am_cv_func_iconv" = yes; then
21722 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21725 if test "$am_cv_lib_iconv" = yes; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21727 $as_echo_n "checking how to link with libiconv... " >&6; }
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21729 $as_echo "$LIBICONV" >&6; }
21731 CPPFLAGS="$am_save_CPPFLAGS"
21738 if test "$am_cv_func_iconv" = yes; then
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21740 $as_echo_n "checking for iconv declaration... " >&6; }
21741 if test "${am_cv_proto_iconv+set}" = set; then :
21742 $as_echo_n "(cached) " >&6
21745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21746 /* end confdefs.h. */
21748 #include <stdlib.h>
21754 #if defined(__STDC__) || defined(__cplusplus)
21755 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21768 if ac_fn_c_try_compile "$LINENO"; then :
21769 am_cv_proto_iconv_arg1=""
21771 am_cv_proto_iconv_arg1="const"
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 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);"
21777 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21779 }$am_cv_proto_iconv" >&5
21781 }$am_cv_proto_iconv" >&6; }
21783 cat >>confdefs.h <<_ACEOF
21784 #define ICONV_CONST $am_cv_proto_iconv_arg1
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21791 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21792 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21795 if test x$gcc_no_link = xyes; then
21796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21799 /* end confdefs.h. */
21800 #include <locale.h>
21809 if ac_fn_c_try_link "$LINENO"; then :
21810 am_cv_val_LC_MESSAGES=yes
21812 am_cv_val_LC_MESSAGES=no
21814 rm -f core conftest.err conftest.$ac_objext \
21815 conftest$ac_exeext conftest.$ac_ext
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21818 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21819 if test $am_cv_val_LC_MESSAGES = yes; then
21821 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21826 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21827 if test "${ac_cv_struct_tm+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21832 #include <sys/types.h>
21839 int *p = &tm.tm_sec;
21845 if ac_fn_c_try_compile "$LINENO"; then :
21846 ac_cv_struct_tm=time.h
21848 ac_cv_struct_tm=sys/time.h
21850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21853 $as_echo "$ac_cv_struct_tm" >&6; }
21854 if test $ac_cv_struct_tm = sys/time.h; then
21856 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21860 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21861 #include <$ac_cv_struct_tm>
21864 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21866 cat >>confdefs.h <<_ACEOF
21867 #define HAVE_STRUCT_TM_TM_ZONE 1
21873 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21875 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21878 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21880 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21886 cat >>confdefs.h <<_ACEOF
21887 #define HAVE_DECL_TZNAME $ac_have_decl
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21891 $as_echo_n "checking for tzname... " >&6; }
21892 if test "${ac_cv_var_tzname+set}" = set; then :
21893 $as_echo_n "(cached) " >&6
21895 if test x$gcc_no_link = xyes; then
21896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h. */
21901 #if !HAVE_DECL_TZNAME
21902 extern char *tzname[];
21908 return tzname[0][0];
21913 if ac_fn_c_try_link "$LINENO"; then :
21914 ac_cv_var_tzname=yes
21916 ac_cv_var_tzname=no
21918 rm -f core conftest.err conftest.$ac_objext \
21919 conftest$ac_exeext conftest.$ac_ext
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21922 $as_echo "$ac_cv_var_tzname" >&6; }
21923 if test $ac_cv_var_tzname = yes; then
21925 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21931 for ac_func in gethostbyname_r
21933 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21934 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21935 cat >>confdefs.h <<_ACEOF
21936 #define HAVE_GETHOSTBYNAME_R 1
21940 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21942 # There are two different kinds of gethostbyname_r.
21943 # We look for the one that returns `int'.
21944 # Hopefully this check is robust enough.
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h. */
21950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21951 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21954 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21960 case " $GCINCS " in
21961 *" -D_REENTRANT "*) ;;
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21964 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21965 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21966 $as_echo_n "(cached) " >&6
21969 ac_cpp='$CXXCPP $CPPFLAGS'
21970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h. */
21980 gethostbyname_r("", 0, 0);
21985 if ac_fn_cxx_try_compile "$LINENO"; then :
21986 libjava_cv_gethostbyname_r_needs_reentrant=no
21988 CPPFLAGS_SAVE="$CPPFLAGS"
21989 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h. */
21996 gethostbyname_r("", 0, 0);
22001 if ac_fn_cxx_try_compile "$LINENO"; then :
22002 libjava_cv_gethostbyname_r_needs_reentrant=yes
22004 libjava_cv_gethostbyname_r_needs_reentrant=fail
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 CPPFLAGS="$CPPFLAGS_SAVE"
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 ac_cpp='$CPP $CPPFLAGS'
22013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22020 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22021 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22023 $as_echo "#define _REENTRANT 1" >>confdefs.h
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22030 $as_echo_n "checking for struct hostent_data... " >&6; }
22031 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22035 /* end confdefs.h. */
22037 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22038 # define _REENTRANT 1
22044 struct hostent_data data;
22049 if ac_fn_c_try_compile "$LINENO"; then :
22050 libjava_cv_struct_hostent_data=yes
22052 libjava_cv_struct_hostent_data=no
22054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22057 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22058 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22060 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22068 # FIXME: libjava source code expects to find a prototype for
22069 # gethostbyaddr_r in netdb.h. The outer check ensures that
22070 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22071 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22072 # linkage check is enough, yet C++ code requires proper prototypes.)
22073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22074 /* end confdefs.h. */
22078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22079 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22081 for ac_func in gethostbyaddr_r
22083 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22084 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22085 cat >>confdefs.h <<_ACEOF
22086 #define HAVE_GETHOSTBYADDR_R 1
22090 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22092 # There are two different kinds of gethostbyaddr_r.
22093 # We look for the one that returns `int'.
22094 # Hopefully this check is robust enough.
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h. */
22100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22101 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22104 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22116 for ac_func in gethostname
22118 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22119 if test "x$ac_cv_func_gethostname" = x""yes; then :
22120 cat >>confdefs.h <<_ACEOF
22121 #define HAVE_GETHOSTNAME 1
22125 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22129 #include <unistd.h>
22132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22133 $EGREP "gethostname" >/dev/null 2>&1; then :
22136 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22145 for ac_func in usleep
22147 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22148 if test "x$ac_cv_func_usleep" = x""yes; then :
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_USLEEP 1
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22155 #include <unistd.h>
22158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22159 $EGREP "usleep" >/dev/null 2>&1; then :
22162 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22171 # Look for these functions in the thread library, but only bother
22172 # if using POSIX threads.
22173 if test "$THREADS" = posix; then
22175 LIBS="$LIBS $THREADLIBS"
22177 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22178 # Solaris 7 the name librt is preferred.
22179 for ac_func in sched_yield
22181 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22182 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22183 cat >>confdefs.h <<_ACEOF
22184 #define HAVE_SCHED_YIELD 1
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22190 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22191 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22192 $as_echo_n "(cached) " >&6
22194 ac_check_lib_save_LIBS=$LIBS
22196 if test x$gcc_no_link = xyes; then
22197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22200 /* end confdefs.h. */
22202 /* Override any GCC internal prototype to avoid an error.
22203 Use char because int might match the return type of a GCC
22204 builtin and then its argument prototype would still apply. */
22208 char sched_yield ();
22212 return sched_yield ();
22217 if ac_fn_c_try_link "$LINENO"; then :
22218 ac_cv_lib_rt_sched_yield=yes
22220 ac_cv_lib_rt_sched_yield=no
22222 rm -f core conftest.err conftest.$ac_objext \
22223 conftest$ac_exeext conftest.$ac_ext
22224 LIBS=$ac_check_lib_save_LIBS
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22227 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22228 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22230 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22232 THREADLIBS="$THREADLIBS -lrt"
22233 THREADSPEC="$THREADSPEC -lrt"
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22237 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22238 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22241 ac_check_lib_save_LIBS=$LIBS
22242 LIBS="-lposix4 $LIBS"
22243 if test x$gcc_no_link = xyes; then
22244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22247 /* end confdefs.h. */
22249 /* Override any GCC internal prototype to avoid an error.
22250 Use char because int might match the return type of a GCC
22251 builtin and then its argument prototype would still apply. */
22255 char sched_yield ();
22259 return sched_yield ();
22264 if ac_fn_c_try_link "$LINENO"; then :
22265 ac_cv_lib_posix4_sched_yield=yes
22267 ac_cv_lib_posix4_sched_yield=no
22269 rm -f core conftest.err conftest.$ac_objext \
22270 conftest$ac_exeext conftest.$ac_ext
22271 LIBS=$ac_check_lib_save_LIBS
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22274 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22275 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22277 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22279 THREADLIBS="$THREADLIBS -lposix4"
22280 THREADSPEC="$THREADSPEC -lposix4"
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22290 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22291 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22292 $as_echo_n "(cached) " >&6
22294 ac_check_lib_save_LIBS=$LIBS
22296 if test x$gcc_no_link = xyes; then
22297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22302 /* Override any GCC internal prototype to avoid an error.
22303 Use char because int might match the return type of a GCC
22304 builtin and then its argument prototype would still apply. */
22308 char clock_gettime ();
22312 return clock_gettime ();
22317 if ac_fn_c_try_link "$LINENO"; then :
22318 ac_cv_lib_rt_clock_gettime=yes
22320 ac_cv_lib_rt_clock_gettime=no
22322 rm -f core conftest.err conftest.$ac_objext \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22327 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22328 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22331 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22333 case "$THREADSPEC" in
22336 THREADSPEC="$THREADSPEC -lrt"
22337 THREADLIBS="$THREADLIBS -lrt"
22345 # We can save a little space at runtime if the mutex has m_count
22346 # or __m_count. This is a nice hack for Linux.
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22349 #include <pthread.h>
22354 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22360 if ac_fn_c_try_compile "$LINENO"; then :
22362 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22367 /* end confdefs.h. */
22368 #include <pthread.h>
22373 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22379 if ac_fn_c_try_compile "$LINENO"; then :
22381 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 # We require a way to get the time.
22391 for ac_func in gettimeofday time ftime
22393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22395 eval as_val=\$$as_ac_var
22396 if test "x$as_val" = x""yes; then :
22397 cat >>confdefs.h <<_ACEOF
22398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22404 if test "$time_found" = no; then
22405 as_fn_error "no function found to get the time" "$LINENO" 5
22408 for ac_func in memmove
22410 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22411 if test "x$ac_cv_func_memmove" = x""yes; then :
22412 cat >>confdefs.h <<_ACEOF
22413 #define HAVE_MEMMOVE 1
22420 # We require memcpy.
22422 for ac_func in memcpy
22424 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22425 if test "x$ac_cv_func_memcpy" = x""yes; then :
22426 cat >>confdefs.h <<_ACEOF
22427 #define HAVE_MEMCPY 1
22433 if test "$memcpy_found" = no; then
22434 as_fn_error "memcpy is required" "$LINENO" 5
22436 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22439 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22440 $as_echo_n "(cached) " >&6
22442 ac_check_lib_save_LIBS=$LIBS
22444 if test x$gcc_no_link = xyes; then
22445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22450 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply. */
22465 if ac_fn_c_try_link "$LINENO"; then :
22466 ac_cv_lib_dl_dlopen=yes
22468 ac_cv_lib_dl_dlopen=no
22470 rm -f core conftest.err conftest.$ac_objext \
22471 conftest$ac_exeext conftest.$ac_ext
22472 LIBS=$ac_check_lib_save_LIBS
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22475 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22476 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22479 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22484 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22485 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22486 $as_echo_n "(cached) " >&6
22488 ac_check_lib_save_LIBS=$LIBS
22490 if test x$gcc_no_link = xyes; then
22491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22494 /* end confdefs.h. */
22496 /* Override any GCC internal prototype to avoid an error.
22497 Use char because int might match the return type of a GCC
22498 builtin and then its argument prototype would still apply. */
22511 if ac_fn_c_try_link "$LINENO"; then :
22512 ac_cv_lib_dld_dlopen=yes
22514 ac_cv_lib_dld_dlopen=no
22516 rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext conftest.$ac_ext
22518 LIBS=$ac_check_lib_save_LIBS
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22521 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22522 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22525 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22532 # Some library-finding code we stole from Tcl.
22533 #--------------------------------------------------------------------
22534 # Check for the existence of the -lsocket and -lnsl libraries.
22535 # The order here is important, so that they end up in the right
22536 # order in the command line generated by make. Here are some
22537 # special considerations:
22538 # 1. Use "connect" and "accept" to check for -lsocket, and
22539 # "gethostbyname" to check for -lnsl.
22540 # 2. Use each function name only once: can't redo a check because
22541 # autoconf caches the results of the last check and won't redo it.
22542 # 3. Use -lnsl and -lsocket only if they supply procedures that
22543 # aren't already present in the normal libraries. This is because
22544 # IRIX 5.2 has libraries, but they aren't needed and they're
22545 # bogus: they goof up name resolution if used.
22546 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22547 # To get around this problem, check for both libraries together
22548 # if -lsocket doesn't work by itself.
22549 #--------------------------------------------------------------------
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22552 $as_echo_n "checking for socket libraries... " >&6; }
22553 if test "${gcj_cv_lib_sockets+set}" = set; then :
22554 $as_echo_n "(cached) " >&6
22556 gcj_cv_lib_sockets=
22558 unset ac_cv_func_connect
22559 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22560 if test "x$ac_cv_func_connect" = x""yes; then :
22566 if test "$gcj_checkSocket" = 1; then
22567 unset ac_cv_func_connect
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22569 $as_echo_n "checking for main in -lsocket... " >&6; }
22570 if test "${ac_cv_lib_socket_main+set}" = set; then :
22571 $as_echo_n "(cached) " >&6
22573 ac_check_lib_save_LIBS=$LIBS
22574 LIBS="-lsocket $LIBS"
22575 if test x$gcc_no_link = xyes; then
22576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579 /* end confdefs.h. */
22590 if ac_fn_c_try_link "$LINENO"; then :
22591 ac_cv_lib_socket_main=yes
22593 ac_cv_lib_socket_main=no
22595 rm -f core conftest.err conftest.$ac_objext \
22596 conftest$ac_exeext conftest.$ac_ext
22597 LIBS=$ac_check_lib_save_LIBS
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22600 $as_echo "$ac_cv_lib_socket_main" >&6; }
22601 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22602 gcj_cv_lib_sockets="-lsocket"
22608 if test "$gcj_checkBoth" = 1; then
22610 LIBS="$LIBS -lsocket -lnsl"
22611 unset ac_cv_func_accept
22612 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22613 if test "x$ac_cv_func_accept" = x""yes; then :
22615 gcj_cv_lib_sockets="-lsocket -lnsl"
22618 unset ac_cv_func_accept
22621 unset ac_cv_func_gethostbyname
22623 LIBS="$LIBS $gcj_cv_lib_sockets"
22624 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22625 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22629 $as_echo_n "checking for main in -lnsl... " >&6; }
22630 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22631 $as_echo_n "(cached) " >&6
22633 ac_check_lib_save_LIBS=$LIBS
22635 if test x$gcc_no_link = xyes; then
22636 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22639 /* end confdefs.h. */
22650 if ac_fn_c_try_link "$LINENO"; then :
22651 ac_cv_lib_nsl_main=yes
22653 ac_cv_lib_nsl_main=no
22655 rm -f core conftest.err conftest.$ac_objext \
22656 conftest$ac_exeext conftest.$ac_ext
22657 LIBS=$ac_check_lib_save_LIBS
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22660 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22661 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22662 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22667 unset ac_cv_func_gethostbyname
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22672 $as_echo "$gcj_cv_lib_sockets" >&6; }
22673 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22675 if test "$with_system_zlib" = yes; then
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22677 $as_echo_n "checking for deflate in -lz... " >&6; }
22678 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22681 ac_check_lib_save_LIBS=$LIBS
22683 if test x$gcc_no_link = xyes; then
22684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h. */
22689 /* Override any GCC internal prototype to avoid an error.
22690 Use char because int might match the return type of a GCC
22691 builtin and then its argument prototype would still apply. */
22704 if ac_fn_c_try_link "$LINENO"; then :
22705 ac_cv_lib_z_deflate=yes
22707 ac_cv_lib_z_deflate=no
22709 rm -f core conftest.err conftest.$ac_objext \
22710 conftest$ac_exeext conftest.$ac_ext
22711 LIBS=$ac_check_lib_save_LIBS
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22714 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22715 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22723 # Test for Gtk stuff, if asked for.
22724 if test "$use_gtk_awt" = yes; then
22728 if test -z "$PKG_CONFIG"; then
22729 # Extract the first word of "pkg-config", so it can be a program name with args.
22730 set dummy pkg-config; ac_word=$2
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22732 $as_echo_n "checking for $ac_word... " >&6; }
22733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22734 $as_echo_n "(cached) " >&6
22736 case $PKG_CONFIG in
22738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22742 for as_dir in $PATH
22745 test -z "$as_dir" && as_dir=.
22746 for ac_exec_ext in '' $ac_executable_extensions; do
22747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22761 if test -n "$PKG_CONFIG"; then
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22763 $as_echo "$PKG_CONFIG" >&6; }
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22766 $as_echo "no" >&6; }
22772 if test "$PKG_CONFIG" = "no" ; then
22773 echo "*** The pkg-config script could not be found. Make sure it is"
22774 echo "*** in your path, or set the PKG_CONFIG environment variable"
22775 echo "*** to the full path to pkg-config."
22776 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22778 PKG_CONFIG_MIN_VERSION=0.9.0
22779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22781 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22783 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22785 $as_echo "yes" >&6; }
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22789 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22790 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22792 $as_echo "$GTK_CFLAGS" >&6; }
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22795 $as_echo_n "checking GTK_LIBS... " >&6; }
22796 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22798 $as_echo "$GTK_LIBS" >&6; }
22802 ## If we have a custom action on failure, don't print errors, but
22803 ## do set a variable so people can do so.
22804 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22805 echo $GTK_PKG_ERRORS
22811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22816 if test $succeeded = yes; then
22819 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
22828 if test -z "$PKG_CONFIG"; then
22829 # Extract the first word of "pkg-config", so it can be a program name with args.
22830 set dummy pkg-config; ac_word=$2
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22832 $as_echo_n "checking for $ac_word... " >&6; }
22833 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22836 case $PKG_CONFIG in
22838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22842 for as_dir in $PATH
22845 test -z "$as_dir" && as_dir=.
22846 for ac_exec_ext in '' $ac_executable_extensions; do
22847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22848 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22856 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22861 if test -n "$PKG_CONFIG"; then
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22863 $as_echo "$PKG_CONFIG" >&6; }
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22866 $as_echo "no" >&6; }
22872 if test "$PKG_CONFIG" = "no" ; then
22873 echo "*** The pkg-config script could not be found. Make sure it is"
22874 echo "*** in your path, or set the PKG_CONFIG environment variable"
22875 echo "*** to the full path to pkg-config."
22876 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22878 PKG_CONFIG_MIN_VERSION=0.9.0
22879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22881 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22883 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22885 $as_echo "yes" >&6; }
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22889 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22890 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22892 $as_echo "$GLIB_CFLAGS" >&6; }
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22895 $as_echo_n "checking GLIB_LIBS... " >&6; }
22896 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22898 $as_echo "$GLIB_LIBS" >&6; }
22902 ## If we have a custom action on failure, don't print errors, but
22903 ## do set a variable so people can do so.
22904 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22905 echo $GLIB_PKG_ERRORS
22911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22916 if test $succeeded = yes; then
22919 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
22928 if test -z "$PKG_CONFIG"; then
22929 # Extract the first word of "pkg-config", so it can be a program name with args.
22930 set dummy pkg-config; ac_word=$2
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22932 $as_echo_n "checking for $ac_word... " >&6; }
22933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22934 $as_echo_n "(cached) " >&6
22936 case $PKG_CONFIG in
22938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22942 for as_dir in $PATH
22945 test -z "$as_dir" && as_dir=.
22946 for ac_exec_ext in '' $ac_executable_extensions; do
22947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22961 if test -n "$PKG_CONFIG"; then
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22963 $as_echo "$PKG_CONFIG" >&6; }
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966 $as_echo "no" >&6; }
22972 if test "$PKG_CONFIG" = "no" ; then
22973 echo "*** The pkg-config script could not be found. Make sure it is"
22974 echo "*** in your path, or set the PKG_CONFIG environment variable"
22975 echo "*** to the full path to pkg-config."
22976 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22978 PKG_CONFIG_MIN_VERSION=0.9.0
22979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22981 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22983 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22985 $as_echo "yes" >&6; }
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22989 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22990 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22992 $as_echo "$LIBART_CFLAGS" >&6; }
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22995 $as_echo_n "checking LIBART_LIBS... " >&6; }
22996 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22998 $as_echo "$LIBART_LIBS" >&6; }
23002 ## If we have a custom action on failure, don't print errors, but
23003 ## do set a variable so people can do so.
23004 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23005 echo $LIBART_PKG_ERRORS
23011 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23012 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23016 if test $succeeded = yes; then
23019 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
23025 # We require the XTest Extension to support java.awt.Robot.
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23027 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23028 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23029 $as_echo_n "(cached) " >&6
23031 ac_check_lib_save_LIBS=$LIBS
23032 LIBS="-lXtst ${X_LIBS} $LIBS"
23033 if test x$gcc_no_link = xyes; then
23034 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h. */
23039 /* Override any GCC internal prototype to avoid an error.
23040 Use char because int might match the return type of a GCC
23041 builtin and then its argument prototype would still apply. */
23045 char XTestQueryExtension ();
23049 return XTestQueryExtension ();
23054 if ac_fn_c_try_link "$LINENO"; then :
23055 ac_cv_lib_Xtst_XTestQueryExtension=yes
23057 ac_cv_lib_Xtst_XTestQueryExtension=no
23059 rm -f core conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23064 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23065 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23068 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23073 # On Solaris, and maybe other architectures, the Boehm collector
23075 if test "$GC" = boehm; then
23078 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23079 # libgcj.spec is used, so override here
23080 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23084 $as_echo_n "checking for main in -ldl... " >&6; }
23085 if test "${ac_cv_lib_dl_main+set}" = set; then :
23086 $as_echo_n "(cached) " >&6
23088 ac_check_lib_save_LIBS=$LIBS
23090 if test x$gcc_no_link = xyes; then
23091 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23105 if ac_fn_c_try_link "$LINENO"; then :
23106 ac_cv_lib_dl_main=yes
23108 ac_cv_lib_dl_main=no
23110 rm -f core conftest.err conftest.$ac_objext \
23111 conftest$ac_exeext conftest.$ac_ext
23112 LIBS=$ac_check_lib_save_LIBS
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23115 $as_echo "$ac_cv_lib_dl_main" >&6; }
23116 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23117 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23125 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23127 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23128 *) CLASSPATH_SEPARATOR=':' ;;
23132 # We must search the source tree for java.lang, since we still don't
23133 # have libgcj.jar nor java/lang/*.class
23134 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23135 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23137 # Since some classes depend on this one, we need its source available
23138 # before we can do any GCJ compilation test :-(
23139 if test ! -f gnu/classpath/Configuration.java; then
23140 test -d gnu || mkdir gnu
23141 test -d gnu/classpath || mkdir gnu/classpath
23142 # Note that it is not crucial that all the values here be correct.
23143 sed -e "s,@prefix@,$expanded_prefix," \
23144 -e "s,@VERSION@,$VERSION," \
23145 -e "s,@LIBDEBUG@,false," \
23146 -e "s,@INIT_LOAD_LIBRARY@,false," \
23147 -e "s,@@,$LIBGCJDEBUG," \
23148 -e "s,@default_toolkit@,$TOOLKIT," \
23149 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23150 -e "s,@GTK_CAIRO_ENABLED@,false," \
23151 -e "s,@ECJ_JAR@,," \
23152 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23153 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23154 > gnu/classpath/Configuration.java
23155 # We do not want to redirect the output of the grep below to /dev/null,
23156 # but we add /dev/null to the input list so that grep will print the
23157 # filename of Configuration.java in case it finds any matches.
23158 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23159 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23164 if test -n "$ac_tool_prefix"; then
23167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23170 $as_echo_n "checking for $ac_word... " >&6; }
23171 if test "${ac_cv_prog_GCJ+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
23174 if test -n "$GCJ"; then
23175 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23178 for as_dir in $PATH
23181 test -z "$as_dir" && as_dir=.
23182 for ac_exec_ext in '' $ac_executable_extensions; do
23183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23184 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23194 GCJ=$ac_cv_prog_GCJ
23195 if test -n "$GCJ"; then
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23197 $as_echo "$GCJ" >&6; }
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23200 $as_echo "no" >&6; }
23204 test -n "$GCJ" && break
23207 if test -z "$GCJ"; then
23211 # Extract the first word of "$ac_prog", so it can be a program name with args.
23212 set dummy $ac_prog; ac_word=$2
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23214 $as_echo_n "checking for $ac_word... " >&6; }
23215 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23216 $as_echo_n "(cached) " >&6
23218 if test -n "$ac_ct_GCJ"; then
23219 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23222 for as_dir in $PATH
23225 test -z "$as_dir" && as_dir=.
23226 for ac_exec_ext in '' $ac_executable_extensions; do
23227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23228 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23238 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23239 if test -n "$ac_ct_GCJ"; then
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23241 $as_echo "$ac_ct_GCJ" >&6; }
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23244 $as_echo "no" >&6; }
23248 test -n "$ac_ct_GCJ" && break
23251 if test "x$ac_ct_GCJ" = x; then
23254 case $cross_compiling:$ac_tool_warned in
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23258 ac_tool_warned=yes ;;
23264 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23265 if test "x${GCJFLAGS-unset}" = xunset; then
23270 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23273 $as_echo_n "checking dependency style of $depcc... " >&6; }
23274 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23277 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23278 # We make a subdir and do the tests there. Otherwise we can end up
23279 # making bogus files that we don't know about and never remove. For
23280 # instance it was reported that on HP-UX the gcc test will end up
23281 # making a dummy file named `D' -- because `-MD' means `put the output
23284 # Copy depcomp to subdir because otherwise we won't find it if we're
23285 # using a relative directory.
23286 cp "$am_depcomp" conftest.dir
23288 # We will build objects and dependencies in a subdirectory because
23289 # it helps to detect inapplicable dependency modes. For instance
23290 # both Tru64's cc and ICC support -MD to output dependencies as a
23291 # side effect of compilation, but ICC will put the dependencies in
23292 # the current directory while Tru64 will put them in the object
23296 am_cv_GCJ_dependencies_compiler_type=none
23297 if test "$am_compiler_list" = ""; then
23298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23300 am__universal=false
23303 for depmode in $am_compiler_list; do
23304 # Setup a source with many dependencies, because some compilers
23305 # like to wrap large dependency lists on column 80 (with \), and
23306 # we should not choose a depcomp mode which is confused by this.
23308 # We need to recreate these files for each test, as the compiler may
23309 # overwrite some of them when testing with obscure command lines.
23310 # This happens at least with the AIX C compiler.
23312 for i in 1 2 3 4 5 6; do
23313 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23314 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23315 # Solaris 8's {/usr,}/bin/sh.
23316 touch sub/conftst$i.h
23318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23320 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23321 # mode. It turns out that the SunPro C++ compiler does not properly
23322 # handle `-M -o', and we need to detect this. Also, some Intel
23323 # versions had trouble with output in subdirs
23324 am__obj=sub/conftest.${OBJEXT-o}
23325 am__minus_obj="-o $am__obj"
23328 # This depmode causes a compiler race in universal mode.
23329 test "$am__universal" = false || continue
23332 # after this tag, mechanisms are not by side-effect, so they'll
23333 # only be used when explicitly requested
23334 if test "x$enable_dependency_tracking" = xyes; then
23340 msvisualcpp | msvcmsys)
23341 # This compiler won't grok `-c -o', but also, the minuso test has
23342 # not run yet. These depmodes are late enough in the game, and
23343 # so weak that their functioning should not be impacted.
23344 am__obj=conftest.${OBJEXT-o}
23349 if depmode=$depmode \
23350 source=sub/conftest.c object=$am__obj \
23351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23352 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23353 >/dev/null 2>conftest.err &&
23354 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23355 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23356 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23357 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23358 # icc doesn't choke on unknown options, it will just issue warnings
23359 # or remarks (even with -Werror). So we grep stderr for any message
23360 # that says an option was ignored or not supported.
23361 # When given -MP, icc 7.0 and 7.1 complain thusly:
23362 # icc: Command line warning: ignoring option '-M'; no argument required
23363 # The diagnosis changed in icc 8.0:
23364 # icc: Command line remark: option '-MP' not supported
23365 if (grep 'ignoring option' conftest.err ||
23366 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23367 am_cv_GCJ_dependencies_compiler_type=$depmode
23374 rm -rf conftest.dir
23376 am_cv_GCJ_dependencies_compiler_type=none
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23381 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23382 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23385 test "x$enable_dependency_tracking" != xno \
23386 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23387 am__fastdepGCJ_TRUE=
23388 am__fastdepGCJ_FALSE='#'
23390 am__fastdepGCJ_TRUE='#'
23391 am__fastdepGCJ_FALSE=
23398 rm -f gnu/classpath/Configuration.java
23400 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23402 # The cast to long int works around a bug in the HP C Compiler
23403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23405 # This bug is HP SR number 8606223364.
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23407 $as_echo_n "checking size of void *... " >&6; }
23408 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23414 if test "$ac_cv_type_void_p" = yes; then
23415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23417 { as_fn_set_status 77
23418 as_fn_error "cannot compute sizeof (void *)
23419 See \`config.log' for more details." "$LINENO" 5; }; }
23421 ac_cv_sizeof_void_p=0
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23427 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23431 cat >>confdefs.h <<_ACEOF
23432 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23438 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23439 if test "${ac_cv_c_bigendian+set}" = set; then :
23440 $as_echo_n "(cached) " >&6
23442 ac_cv_c_bigendian=unknown
23443 # See if we're dealing with a universal compiler.
23444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23445 /* end confdefs.h. */
23446 #ifndef __APPLE_CC__
23447 not a universal capable compiler
23452 if ac_fn_c_try_compile "$LINENO"; then :
23454 # Check for potential -arch flags. It is not universal unless
23455 # there are at least two -arch flags with different values.
23458 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23459 if test -n "$ac_prev"; then
23461 i?86 | x86_64 | ppc | ppc64)
23462 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23465 ac_cv_c_bigendian=universal
23471 elif test "x$ac_word" = "x-arch"; then
23476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23477 if test $ac_cv_c_bigendian = unknown; then
23478 # See if sys/param.h defines the BYTE_ORDER macro.
23479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23480 /* end confdefs.h. */
23481 #include <sys/types.h>
23482 #include <sys/param.h>
23487 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23488 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23490 bogus endian macros
23497 if ac_fn_c_try_compile "$LINENO"; then :
23498 # It does; now see whether it defined to BIG_ENDIAN or not.
23499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23500 /* end confdefs.h. */
23501 #include <sys/types.h>
23502 #include <sys/param.h>
23507 #if BYTE_ORDER != BIG_ENDIAN
23515 if ac_fn_c_try_compile "$LINENO"; then :
23516 ac_cv_c_bigendian=yes
23518 ac_cv_c_bigendian=no
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 if test $ac_cv_c_bigendian = unknown; then
23525 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23528 #include <limits.h>
23533 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23534 bogus endian macros
23541 if ac_fn_c_try_compile "$LINENO"; then :
23542 # It does; now see whether it defined to _BIG_ENDIAN or not.
23543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h. */
23545 #include <limits.h>
23550 #ifndef _BIG_ENDIAN
23558 if ac_fn_c_try_compile "$LINENO"; then :
23559 ac_cv_c_bigendian=yes
23561 ac_cv_c_bigendian=no
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 if test $ac_cv_c_bigendian = unknown; then
23568 # Compile a test program.
23569 if test "$cross_compiling" = yes; then :
23570 # Try to guess by grepping values from an object file.
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 short int ascii_mm[] =
23574 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23575 short int ascii_ii[] =
23576 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23577 int use_ascii (int i) {
23578 return ascii_mm[i] + ascii_ii[i];
23580 short int ebcdic_ii[] =
23581 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23582 short int ebcdic_mm[] =
23583 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23584 int use_ebcdic (int i) {
23585 return ebcdic_mm[i] + ebcdic_ii[i];
23592 return use_ascii (foo) == use_ebcdic (foo);
23597 if ac_fn_c_try_compile "$LINENO"; then :
23598 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23599 ac_cv_c_bigendian=yes
23601 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23602 if test "$ac_cv_c_bigendian" = unknown; then
23603 ac_cv_c_bigendian=no
23605 # finding both strings is unlikely to happen, but who knows?
23606 ac_cv_c_bigendian=unknown
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23614 $ac_includes_default
23619 /* Are we little or big endian? From Harbison&Steele. */
23623 char c[sizeof (long int)];
23626 return u.c[sizeof (long int) - 1] == 1;
23632 if ac_fn_c_try_run "$LINENO"; then :
23633 ac_cv_c_bigendian=no
23635 ac_cv_c_bigendian=yes
23637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23638 conftest.$ac_objext conftest.beam conftest.$ac_ext
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23644 $as_echo "$ac_cv_c_bigendian" >&6; }
23645 case $ac_cv_c_bigendian in #(
23647 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23653 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23657 as_fn_error "unknown endianness
23658 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23666 if test -z "$ZLIBSPEC"; then
23667 # Use zlib from the GCC tree.
23668 ZINCS='-I$(top_srcdir)/../zlib'
23669 ZLIBS=../zlib/libzgcj_convenience.la
23672 SYS_ZLIBS="$ZLIBSPEC"
23684 if test "$NATIVE" = yes; then
23692 if test "$enable_shared" = yes; then
23693 ENABLE_SHARED_TRUE=
23694 ENABLE_SHARED_FALSE='#'
23696 ENABLE_SHARED_TRUE='#'
23697 ENABLE_SHARED_FALSE=
23700 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23701 NEEDS_DATA_START_TRUE=
23702 NEEDS_DATA_START_FALSE='#'
23704 NEEDS_DATA_START_TRUE='#'
23705 NEEDS_DATA_START_FALSE=
23708 if test -z "${with_multisubdir}"; then
23709 INSTALL_BINARIES_TRUE=
23710 INSTALL_BINARIES_FALSE='#'
23712 INSTALL_BINARIES_TRUE='#'
23713 INSTALL_BINARIES_FALSE=
23718 # Process the option "--enable-version-specific-runtime-libs"
23719 # Calculate toolexeclibdir
23720 case ${version_specific_libs} in
23722 # Need the gcc compiler version to know where to install libraries
23723 # and header files if --enable-version-specific-runtime-libs option
23725 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23726 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23727 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23728 toolexeclibdir=$toolexecmainlibdir
23731 if test -n "$with_cross_host" &&
23732 test x"$with_cross_host" != x"no"; then
23733 # Install a library built with a cross compiler in tooldir, not libdir.
23734 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23735 toolexecmainlibdir='$(toolexecdir)/lib'
23737 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23738 toolexecmainlibdir='$(libdir)'
23740 multi_os_directory=`$CC -print-multi-os-directory`
23741 case $multi_os_directory in
23742 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23743 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23751 # Determine gcj and libgcj version number.
23752 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23753 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23754 GCJVERSION=$gcjversion
23757 cat >>confdefs.h <<_ACEOF
23758 #define GCJVERSION "$GCJVERSION"
23762 # Determine where the standard .db file and GNU Classpath JNI
23763 # libraries are found.
23764 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23765 multi_os_directory=`$CC -print-multi-os-directory`
23766 case $multi_os_directory in
23768 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23771 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23778 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23781 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23785 case "${with_gxx_include_dir}" in
23787 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23790 case "${enable_version_specific_runtime_libs}" in
23791 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23793 libstdcxx_incdir='c++/$(gcc_version)'
23794 gxx_include_dir='include/$(libstdcxx_incdir)'
23795 if test -n "$with_cross_host" &&
23796 test x"$with_cross_host" != x"no"; then
23797 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23799 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23802 *) gxx_include_dir=${with_gxx_include_dir} ;;
23808 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23809 # On that system, sys/ioctl.h will not include sys/filio.h unless
23810 # BSD_COMP is defined; just including sys/filio.h is simpler.
23811 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23812 # for now. If you change this, you also must update natFile.cc.
23813 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23814 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23815 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23816 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23817 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23820 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23821 eval as_val=\$$as_ac_Header
23822 if test "x$as_val" = x""yes; then :
23823 cat >>confdefs.h <<_ACEOF
23824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23832 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23833 for ac_header in net/if.h
23835 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23836 #ifdef HAVE_SYS_SOCKET_H
23837 #include <sys/socket.h>
23841 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_NET_IF_H 1
23851 for ac_header in inttypes.h
23853 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23854 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23855 cat >>confdefs.h <<_ACEOF
23856 #define HAVE_INTTYPES_H 1
23860 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23863 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23871 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23872 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23876 cat >>confdefs.h <<_ACEOF
23877 #define ssize_t int
23882 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23883 #ifdef HAVE_MAGIC_H
23887 if test "x$ac_cv_type_magic_t" = x""yes; then :
23890 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23896 $as_echo_n "checking for in_addr_t... " >&6; }
23897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23898 /* end confdefs.h. */
23899 #include <sys/types.h>
23901 #include <stdlib.h>
23902 #include <stddef.h>
23904 #if HAVE_NETINET_IN_H
23905 #include <netinet/in.h>
23915 if ac_fn_c_try_compile "$LINENO"; then :
23917 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23920 $as_echo "yes" >&6; }
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23923 $as_echo "no" >&6; }
23925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23928 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h. */
23931 #include <netinet/in.h>
23935 struct ip_mreq mreq;
23940 if ac_fn_c_try_compile "$LINENO"; then :
23942 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23945 $as_echo "yes" >&6; }
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23948 $as_echo "no" >&6; }
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23953 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23955 /* end confdefs.h. */
23956 #include <netinet/in.h>
23960 struct ipv6_mreq mreq6;
23965 if ac_fn_c_try_compile "$LINENO"; then :
23967 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23970 $as_echo "yes" >&6; }
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23973 $as_echo "no" >&6; }
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23978 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23980 /* end confdefs.h. */
23981 #include <netinet/in.h>
23985 struct sockaddr_in6 addr6;
23990 if ac_fn_c_try_compile "$LINENO"; then :
23992 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23995 $as_echo "yes" >&6; }
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23998 $as_echo "no" >&6; }
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24003 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24005 /* end confdefs.h. */
24006 #define _POSIX_PII_SOCKET
24007 #include <sys/types.h>
24008 #include <sys/socket.h>
24017 if ac_fn_c_try_compile "$LINENO"; then :
24019 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24022 $as_echo "yes" >&6; }
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24025 $as_echo "no" >&6; }
24027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24030 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24037 struct tm tim; tim.tm_gmtoff = 0;
24042 if ac_fn_c_try_compile "$LINENO"; then :
24044 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24047 $as_echo "yes" >&6; }
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24050 $as_echo "no" >&6; }
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24052 $as_echo_n "checking for global timezone variable... " >&6; }
24053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054 /* end confdefs.h. */
24059 void i(){long z2 = 2*timezone;}
24064 if ac_fn_c_try_compile "$LINENO"; then :
24066 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24069 $as_echo "yes" >&6; }
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24072 $as_echo "no" >&6; }
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24074 $as_echo_n "checking for global _timezone variable... " >&6; }
24075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24076 /* end confdefs.h. */
24081 long z2 = _timezone;
24086 if ac_fn_c_try_compile "$LINENO"; then :
24088 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24091 $as_echo "yes" >&6; }
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24094 $as_echo "no" >&6; }
24096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102 for ac_prog in perl
24104 # Extract the first word of "$ac_prog", so it can be a program name with args.
24105 set dummy $ac_prog; ac_word=$2
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24107 $as_echo_n "checking for $ac_word... " >&6; }
24108 if test "${ac_cv_prog_PERL+set}" = set; then :
24109 $as_echo_n "(cached) " >&6
24111 if test -n "$PERL"; then
24112 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24115 for as_dir in $PATH
24118 test -z "$as_dir" && as_dir=.
24119 for ac_exec_ext in '' $ac_executable_extensions; do
24120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24121 ac_cv_prog_PERL="$ac_prog"
24122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24131 PERL=$ac_cv_prog_PERL
24132 if test -n "$PERL"; then
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24134 $as_echo "$PERL" >&6; }
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24137 $as_echo "no" >&6; }
24141 test -n "$PERL" && break
24143 test -n "$PERL" || PERL="false"
24147 SIGNAL_HANDLER_AUX=
24151 SIGNAL_HANDLER=include/i386-signal.h
24153 sparc*-sun-solaris*)
24154 SIGNAL_HANDLER=include/sparc-signal.h
24157 # SYSDEP_SOURCES=sysdep/ia64.c
24158 # test -d sysdep || mkdir sysdep
24161 SIGNAL_HANDLER=include/pa-signal.h
24164 SIGNAL_HANDLER=include/hppa-signal.h
24167 SIGNAL_HANDLER=include/dwarf2-signal.h
24170 SIGNAL_HANDLER=include/powerpc-signal.h
24173 SIGNAL_HANDLER=include/dwarf2-signal.h
24176 SIGNAL_HANDLER=include/s390-signal.h
24179 SIGNAL_HANDLER=include/x86_64-signal.h
24180 SIGNAL_HANDLER_AUX=include/i386-signal.h
24183 SIGNAL_HANDLER=include/dwarf2-signal.h
24186 SIGNAL_HANDLER=include/sh-signal.h
24189 SIGNAL_HANDLER=include/win32-signal.h
24192 SIGNAL_HANDLER=include/mips-signal.h
24195 SIGNAL_HANDLER=include/dwarf2-signal.h
24197 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24198 SIGNAL_HANDLER=include/darwin-signal.h
24201 SIGNAL_HANDLER=include/aix-signal.h
24204 SIGNAL_HANDLER=include/default-signal.h
24208 # If we're using sjlj exceptions, forget what we just learned.
24209 if test "$enable_sjlj_exceptions" = yes; then
24210 SIGNAL_HANDLER=include/default-signal.h
24211 SIGNAL_HANDLER_AUX=
24216 if test -z "$SIGNAL_HANDLER_AUX"; then
24217 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24220 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24223 if test "${multilib}" = "yes"; then
24224 multilib_arg="--enable-multilib"
24229 # See if we support thread-local storage.
24232 # Check whether --enable-tls was given.
24233 if test "${enable_tls+set}" = set; then :
24234 enableval=$enable_tls;
24235 case "$enableval" in
24237 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24246 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24247 if test "${gcc_cv_have_tls+set}" = set; then :
24248 $as_echo_n "(cached) " >&6
24251 if test "$cross_compiling" = yes; then :
24252 if test x$gcc_no_link = xyes; then
24253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24256 /* end confdefs.h. */
24257 __thread int a; int b; int main() { return a = b; }
24259 if ac_fn_c_try_link "$LINENO"; then :
24260 chktls_save_LDFLAGS="$LDFLAGS"
24263 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24266 chktls_save_CFLAGS="$CFLAGS"
24267 CFLAGS="-fPIC $CFLAGS"
24268 if test x$gcc_no_link = xyes; then
24269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24272 /* end confdefs.h. */
24273 int f() { return 0; }
24275 if ac_fn_c_try_link "$LINENO"; then :
24276 if test x$gcc_no_link = xyes; then
24277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24280 /* end confdefs.h. */
24281 __thread int a; int b; int f() { return a = b; }
24283 if ac_fn_c_try_link "$LINENO"; then :
24284 gcc_cv_have_tls=yes
24288 rm -f core conftest.err conftest.$ac_objext \
24289 conftest$ac_exeext conftest.$ac_ext
24291 gcc_cv_have_tls=yes
24293 rm -f core conftest.err conftest.$ac_objext \
24294 conftest$ac_exeext conftest.$ac_ext
24295 CFLAGS="$chktls_save_CFLAGS"
24296 LDFLAGS="$chktls_save_LDFLAGS"
24300 rm -f core conftest.err conftest.$ac_objext \
24301 conftest$ac_exeext conftest.$ac_ext
24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306 /* end confdefs.h. */
24307 __thread int a; int b; int main() { return a = b; }
24309 if ac_fn_c_try_run "$LINENO"; then :
24310 chktls_save_LDFLAGS="$LDFLAGS"
24311 LDFLAGS="-static $LDFLAGS"
24312 if test x$gcc_no_link = xyes; then
24313 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h. */
24317 int main() { return 0; }
24319 if ac_fn_c_try_link "$LINENO"; then :
24320 if test "$cross_compiling" = yes; then :
24321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24323 as_fn_error "cannot run test program while cross compiling
24324 See \`config.log' for more details." "$LINENO" 5; }
24326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327 /* end confdefs.h. */
24328 __thread int a; int b; int main() { return a = b; }
24330 if ac_fn_c_try_run "$LINENO"; then :
24331 gcc_cv_have_tls=yes
24335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24336 conftest.$ac_objext conftest.beam conftest.$ac_ext
24340 gcc_cv_have_tls=yes
24342 rm -f core conftest.err conftest.$ac_objext \
24343 conftest$ac_exeext conftest.$ac_ext
24344 LDFLAGS="$chktls_save_LDFLAGS"
24345 if test $gcc_cv_have_tls = yes; then
24346 chktls_save_CFLAGS="$CFLAGS"
24347 thread_CFLAGS=failed
24348 for flag in '' '-pthread' '-lpthread'; do
24349 CFLAGS="$flag $chktls_save_CFLAGS"
24350 if test x$gcc_no_link = xyes; then
24351 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24354 /* end confdefs.h. */
24355 #include <pthread.h>
24356 void *g(void *d) { return NULL; }
24360 pthread_t t; pthread_create(&t,NULL,g,NULL);
24365 if ac_fn_c_try_link "$LINENO"; then :
24366 thread_CFLAGS="$flag"
24368 rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24370 if test "X$thread_CFLAGS" != Xfailed; then
24374 CFLAGS="$chktls_save_CFLAGS"
24375 if test "X$thread_CFLAGS" != Xfailed; then
24376 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24377 if test "$cross_compiling" = yes; then :
24378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24380 as_fn_error "cannot run test program while cross compiling
24381 See \`config.log' for more details." "$LINENO" 5; }
24383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24384 /* end confdefs.h. */
24385 #include <pthread.h>
24387 static int *a_in_other_thread;
24389 thread_func (void *arg)
24391 a_in_other_thread = &a;
24398 void *thread_retval;
24399 int *a_in_main_thread;
24400 if (pthread_create (&thread, (pthread_attr_t *)0,
24401 thread_func, (void *)0))
24403 a_in_main_thread = &a;
24404 if (pthread_join (thread, &thread_retval))
24406 return (a_in_other_thread == a_in_main_thread);
24411 if ac_fn_c_try_run "$LINENO"; then :
24412 gcc_cv_have_tls=yes
24416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24417 conftest.$ac_objext conftest.beam conftest.$ac_ext
24420 CFLAGS="$chktls_save_CFLAGS"
24426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24427 conftest.$ac_objext conftest.beam conftest.$ac_ext
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24432 $as_echo "$gcc_cv_have_tls" >&6; }
24433 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24435 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24439 # For _Unwind_GetIPInfo.
24442 # Check whether --with-system-libunwind was given.
24443 if test "${with_system_libunwind+set}" = set; then :
24444 withval=$with_system_libunwind;
24447 # If system-libunwind was not specifically set, pick a default setting.
24448 if test x$with_system_libunwind = x; then
24450 ia64-*-hpux*) with_system_libunwind=yes ;;
24451 *) with_system_libunwind=no ;;
24454 # Based on system-libunwind and target, do we have ipinfo?
24455 if test x$with_system_libunwind = xyes; then
24457 ia64-*-*) have_unwind_getipinfo=no ;;
24458 *) have_unwind_getipinfo=yes ;;
24461 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24464 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24465 *) have_unwind_getipinfo=yes ;;
24470 if test x$have_unwind_getipinfo = xyes; then
24472 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24477 # See if linker supports anonymous version scripts.
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24479 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24480 if test "${libjava_cv_anon_version_script+set}" = set; then :
24481 $as_echo_n "(cached) " >&6
24483 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24484 libjava_cv_anon_version_script=no
24485 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24486 echo '{ global: globalsymb*; local: *; };' > conftest.map
24487 if test x$gcc_no_link = xyes; then
24488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24491 /* end confdefs.h. */
24492 void globalsymbol (void) {} void localsymbol (void) {}
24501 if ac_fn_c_try_link "$LINENO"; then :
24502 libjava_cv_anon_version_script=yes
24504 rm -f core conftest.err conftest.$ac_objext \
24505 conftest$ac_exeext conftest.$ac_ext
24506 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24510 $as_echo "$libjava_cv_anon_version_script" >&6; }
24511 if test "$libjava_cv_anon_version_script" = yes; then
24512 ANONVERSCRIPT_TRUE=
24513 ANONVERSCRIPT_FALSE='#'
24515 ANONVERSCRIPT_TRUE='#'
24516 ANONVERSCRIPT_FALSE=
24520 # Check if linker supports static linking on a per library basis
24521 LD_START_STATIC_SPEC=
24522 LD_FINISH_STATIC_SPEC=
24523 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24524 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24525 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24526 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24532 here=`${PWDCMD-pwd}`
24535 # We get this from the environment.
24539 # Check whether --with-python-dir was given.
24540 if test "${with_python_dir+set}" = set; then :
24541 withval=$with_python_dir; with_python_dir=$withval
24547 if test "x${with_python_dir}" = "x"
24549 # Needed for installing Python modules during make install.
24550 python_mod_dir="\${prefix}/share/python"
24551 # Needed for substituting into aot-compile*
24552 python_mod_dir_expanded="${expanded_prefix}/share/python"
24554 python_mod_dir="\${prefix}${with_python_dir}"
24555 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24558 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24562 # needed for aot-compile-rpm
24566 # Check whether --enable-aot-compile-rpm was given.
24567 if test "${enable_aot_compile_rpm+set}" = set; then :
24568 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24569 yes) AOT_RPM_ENABLED=yes ;;
24570 no) AOT_RPM_ENABLED=no ;;
24571 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24578 if test "x${AOT_RPM_ENABLED}" = xyes; then
24579 INSTALL_AOT_RPM_TRUE=
24580 INSTALL_AOT_RPM_FALSE='#'
24582 INSTALL_AOT_RPM_TRUE='#'
24583 INSTALL_AOT_RPM_FALSE=
24587 # Check whether --enable-java-home was given.
24588 if test "${enable_java_home+set}" = set; then :
24589 enableval=$enable_java_home; case "${enableval}" in
24590 yes) JAVA_HOME_ENABLED=yes ;;
24591 no) JAVA_HOME_ENABLED=no ;;
24592 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24595 JAVA_HOME_ENABLED=no
24599 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24600 CREATE_JAVA_HOME_TRUE=
24601 CREATE_JAVA_HOME_FALSE='#'
24603 CREATE_JAVA_HOME_TRUE='#'
24604 CREATE_JAVA_HOME_FALSE=
24608 # Only do these checks if java-home above is enabled.
24609 if test "x${JAVA_HOME_ENABLED}" = xyes
24613 # Check whether --with-gcc-suffix was given.
24614 if test "${with_gcc_suffix+set}" = set; then :
24615 withval=$with_gcc_suffix; gcc_suffix=$withval
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24621 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24625 # Check whether --with-arch-directory was given.
24626 if test "${with_arch_directory+set}" = set; then :
24627 withval=$with_arch_directory; host_cpu=$withval
24634 # Check whether --with-os-directory was given.
24635 if test "${with_os_directory+set}" = set; then :
24636 withval=$with_os_directory; host_os=$withval
24643 # Check whether --with-origin-name was given.
24644 if test "${with_origin_name+set}" = set; then :
24645 withval=$with_origin_name; origin_name=$withval
24647 origin_name=gcj${gcc_suffix}
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24651 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24654 # Check whether --with-arch-suffix was given.
24655 if test "${with_arch_suffix+set}" = set; then :
24656 withval=$with_arch_suffix; arch_suffix=$withval
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24662 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24665 # Check whether --with-jvm-root-dir was given.
24666 if test "${with_jvm_root_dir+set}" = set; then :
24667 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24669 jvm_root_dir="\${prefix}/lib/jvm"
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24673 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24676 # Check whether --with-jvm-jar-dir was given.
24677 if test "${with_jvm_jar_dir+set}" = set; then :
24678 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24680 jvm_jar_dir=\${prefix}/lib/jvm-exports
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24684 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24691 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24694 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24695 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24697 JVM_ROOT_DIR=${jvm_root_dir}
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24700 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24702 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24705 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24707 JVM_JAR_DIR=${jvm_jar_dir}
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24710 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24721 SDK_BIN_DIR=${jvm_root_dir}/bin
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24724 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24726 SDK_LIB_DIR=${jvm_root_dir}/lib
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24729 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24731 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24734 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24736 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24739 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24741 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24744 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24746 # Find gcj prefix using gcj found in PATH.
24747 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24749 # Where do the gcj binaries live?
24750 # For jhbuild based builds, they all live in a sibling of bin called
24751 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24752 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24755 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24758 $as_echo "host is ${host}" >&6; }
24759 if test "x${host_cpu}" = "x"
24762 *-mingw* | *-cygwin*)
24764 i486-* | i586-* | i686-*)
24769 host_cpu=${host_cpu};;
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24773 $as_echo "arch directory: ${host_cpu}" >&6; }
24777 if test "x${host_os}" = "x"
24780 *-mingw* | *-cygwin*)
24785 host_os=${host_os};;
24788 echo os directory: ${host_os}
24792 # make an expanded $libdir, for substituting into
24793 # scripts (and other non-Makefile things).
24795 if test "x${exec_prefix}" = "xNONE"
24797 lib_exec_prefix=$expanded_prefix
24799 lib_exec_prefix=$exec_prefix
24801 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24805 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"
24808 if test ${multilib} = yes; then
24809 multilib_arg="--enable-multilib"
24814 ac_config_files="$ac_config_files scripts/jar"
24816 cat >confcache <<\_ACEOF
24817 # This file is a shell script that caches the results of configure
24818 # tests run on this system so they can be shared between configure
24819 # scripts and configure runs, see configure's option --config-cache.
24820 # It is not useful on other systems. If it contains results you don't
24821 # want to keep, you may remove or edit it.
24823 # config.status only pays attention to the cache file if you give it
24824 # the --recheck option to rerun configure.
24826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24828 # following values.
24832 # The following way of writing the cache mishandles newlines in values,
24833 # but we know of no workaround that is simple, portable, and efficient.
24834 # So, we kill variables containing newlines.
24835 # Ultrix sh set writes to stderr and can't be redirected directly,
24836 # and sets the high bit in the cache file unless we assign to the vars.
24838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24839 eval ac_val=\$$ac_var
24843 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24844 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24847 _ | IFS | as_nl) ;; #(
24848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24849 *) { eval $ac_var=; unset $ac_var;} ;;
24855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24856 *${as_nl}ac_space=\ *)
24857 # `set' does not quote correctly, so add quotes: double-quote
24858 # substitution turns \\\\ into \\, and sed turns \\ into \.
24861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24864 # `set' quotes correctly as required by POSIX, so do not add quotes.
24865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24879 if test -w "$cache_file"; then
24880 test "x$cache_file" != "x/dev/null" &&
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24882 $as_echo "$as_me: updating cache $cache_file" >&6;}
24883 cat confcache >$cache_file
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24886 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24892 # Let make expand exec_prefix.
24893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24895 DEFS=-DHAVE_CONFIG_H
24899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24900 # 1. Remove the extension, and $U if already installed.
24901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24902 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24904 # will be set to the directory where LIBOBJS objects are built.
24905 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24906 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24908 LIBOBJS=$ac_libobjs
24910 LTLIBOBJS=$ac_ltlibobjs
24913 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24914 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24917 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24918 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24921 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24922 as_fn_error "conditional \"AMDEP\" was never defined.
24923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24925 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24926 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24929 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24930 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24933 if test -n "$EXEEXT"; then
24935 am__EXEEXT_FALSE='#'
24937 am__EXEEXT_TRUE='#'
24941 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24942 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24945 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24946 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24949 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24950 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24953 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24954 as_fn_error "conditional \"X_AWT\" was never defined.
24955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24957 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24958 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24961 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24962 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24965 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24966 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24969 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24970 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24973 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24974 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24977 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24978 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24981 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24982 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24985 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24986 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24989 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24990 as_fn_error "conditional \"INTERPRETER\" was never defined.
24991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24993 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24994 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24997 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24998 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25001 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25002 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25005 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25006 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25009 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25010 as_fn_error "conditional \"USING_NOGC\" was never defined.
25011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25013 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25014 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25017 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25018 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25021 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25022 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25025 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25026 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25029 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25030 as_fn_error "conditional \"USING_GCC\" was never defined.
25031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25033 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25034 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25038 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25039 as_fn_error "conditional \"NATIVE\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25043 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25046 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25047 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25051 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25054 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25055 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25059 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25062 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25063 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25067 : ${CONFIG_STATUS=./config.status}
25069 ac_clean_files_save=$ac_clean_files
25070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25076 # Generated by $as_me.
25077 # Run this file to recreate the current configuration.
25078 # Compiler output produced by configure, useful for debugging
25079 # configure, is in config.log if it exists.
25082 ac_cs_recheck=false
25085 SHELL=\${CONFIG_SHELL-$SHELL}
25088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25089 ## -------------------- ##
25090 ## M4sh Initialization. ##
25091 ## -------------------- ##
25093 # Be more Bourne compatible
25094 DUALCASE=1; export DUALCASE # for MKS sh
25095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25099 # is contrary to our usage. Disable this feature.
25100 alias -g '${1+"$@"}'='"$@"'
25101 setopt NO_GLOB_SUBST
25103 case `(set -o) 2>/dev/null` in #(
25115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25116 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25119 # Prefer a ksh shell builtin over an external printf program on Solaris,
25120 # but without wasting forks for bash or zsh.
25121 if test -z "$BASH_VERSION$ZSH_VERSION" \
25122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25123 as_echo='print -r --'
25124 as_echo_n='print -rn --'
25125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25126 as_echo='printf %s\n'
25127 as_echo_n='printf %s'
25129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25131 as_echo_n='/usr/ucb/echo -n'
25133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25134 as_echo_n_body='eval
25138 expr "X$arg" : "X\\(.*\\)$as_nl";
25139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25143 export as_echo_n_body
25144 as_echo_n='sh -c $as_echo_n_body as_echo'
25146 export as_echo_body
25147 as_echo='sh -c $as_echo_body as_echo'
25150 # The user is always right.
25151 if test "${PATH_SEPARATOR+set}" != set; then
25153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25161 # We need space, tab and new line, in precisely that order. Quoting is
25162 # there to prevent editors from complaining about space-tab.
25163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25164 # splitting by setting IFS to empty value.)
25167 # Find who we are. Look in the path if we contain no directory separator.
25169 *[\\/]* ) as_myself=$0 ;;
25170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171 for as_dir in $PATH
25174 test -z "$as_dir" && as_dir=.
25175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25181 # We did not find ourselves, most probably we were run as `sh COMMAND'
25182 # in which case we are not to be found in the path.
25183 if test "x$as_myself" = x; then
25186 if test ! -f "$as_myself"; then
25187 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25191 # Unset variables that we do not need and which cause bugs (e.g. in
25192 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25193 # suppresses any "Segmentation fault" message there. '((' could
25194 # trigger a bug in pdksh 5.2.14.
25195 for as_var in BASH_ENV ENV MAIL MAILPATH
25196 do eval test x\${$as_var+set} = xset \
25197 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25213 # as_fn_error ERROR [LINENO LOG_FD]
25214 # ---------------------------------
25215 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25216 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25217 # script with status $?, using 1 if that was 0.
25220 as_status=$?; test $as_status -eq 0 && as_status=1
25222 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25223 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25225 $as_echo "$as_me: error: $1" >&2
25226 as_fn_exit $as_status
25230 # as_fn_set_status STATUS
25231 # -----------------------
25232 # Set $? to STATUS, without forking.
25233 as_fn_set_status ()
25236 } # as_fn_set_status
25238 # as_fn_exit STATUS
25239 # -----------------
25240 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25244 as_fn_set_status $1
25250 # Portably unset VAR.
25253 { eval $1=; unset $1;}
25255 as_unset=as_fn_unset
25256 # as_fn_append VAR VALUE
25257 # ----------------------
25258 # Append the text in VALUE to the end of the definition contained in VAR. Take
25259 # advantage of any shell optimizations that allow amortized linear growth over
25260 # repeated appends, instead of the typical quadratic growth present in naive
25262 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25263 eval 'as_fn_append ()
25274 # as_fn_arith ARG...
25275 # ------------------
25276 # Perform arithmetic evaluation on the ARGs, and store the result in the
25277 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25278 # must be portable across $(()) and expr.
25279 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25280 eval 'as_fn_arith ()
25287 as_val=`expr "$@" || test $? -eq 1`
25292 if expr a : '\(a\)' >/dev/null 2>&1 &&
25293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25300 as_basename=basename
25305 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25311 as_me=`$as_basename -- "$0" ||
25312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25313 X"$0" : 'X\(//\)$' \| \
25314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25316 sed '/^.*\/\([^/][^/]*\)\/*$/{
25330 # Avoid depending upon Character Ranges.
25331 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25332 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25333 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25334 as_cr_digits='0123456789'
25335 as_cr_alnum=$as_cr_Letters$as_cr_digits
25337 ECHO_C= ECHO_N= ECHO_T=
25338 case `echo -n x` in #(((((
25340 case `echo 'xy\c'` in
25341 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25343 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25350 rm -f conf$$ conf$$.exe conf$$.file
25351 if test -d conf$$.dir; then
25352 rm -f conf$$.dir/conf$$.file
25355 mkdir conf$$.dir 2>/dev/null
25357 if (echo >conf$$.file) 2>/dev/null; then
25358 if ln -s conf$$.file conf$$ 2>/dev/null; then
25360 # ... but there are two gotchas:
25361 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25362 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25363 # In both cases, we have to default to `cp -p'.
25364 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25366 elif ln conf$$.file conf$$ 2>/dev/null; then
25374 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25375 rmdir conf$$.dir 2>/dev/null
25380 # Create "$as_dir" as a directory, including parents if necessary.
25385 -*) as_dir=./$as_dir;;
25387 test -d "$as_dir" || eval $as_mkdir_p || {
25391 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25392 *) as_qdir=$as_dir;;
25394 as_dirs="'$as_qdir' $as_dirs"
25395 as_dir=`$as_dirname -- "$as_dir" ||
25396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25397 X"$as_dir" : 'X\(//\)[^/]' \| \
25398 X"$as_dir" : 'X\(//\)$' \| \
25399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25400 $as_echo X"$as_dir" |
25401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25405 /^X\(\/\/\)[^/].*/{
25418 test -d "$as_dir" && break
25420 test -z "$as_dirs" || eval "mkdir $as_dirs"
25421 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25425 if mkdir -p . 2>/dev/null; then
25426 as_mkdir_p='mkdir -p "$as_dir"'
25428 test -d ./-p && rmdir ./-p
25432 if test -x / >/dev/null 2>&1; then
25433 as_test_x='test -x'
25435 if ls -dL / >/dev/null 2>&1; then
25442 if test -d "$1"; then
25448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25449 ???[sx]*):;;*)false;;esac;fi
25453 as_executable_p=$as_test_x
25455 # Sed expression to map a string onto a valid CPP name.
25456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25458 # Sed expression to map a string onto a valid variable name.
25459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25463 ## ----------------------------------- ##
25464 ## Main body of $CONFIG_STATUS script. ##
25465 ## ----------------------------------- ##
25467 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25470 # Save the log message, to keep $0 and so on meaningful, and to
25471 # report actual input values of CONFIG_FILES etc. instead of their
25472 # values after options handling.
25474 This file was extended by libjava $as_me version-unused, which was
25475 generated by GNU Autoconf 2.64. Invocation command line was
25477 CONFIG_FILES = $CONFIG_FILES
25478 CONFIG_HEADERS = $CONFIG_HEADERS
25479 CONFIG_LINKS = $CONFIG_LINKS
25480 CONFIG_COMMANDS = $CONFIG_COMMANDS
25483 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25488 case $ac_config_files in *"
25489 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25492 case $ac_config_headers in *"
25493 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25498 # Files that config.status was made for.
25499 config_files="$ac_config_files"
25500 config_headers="$ac_config_headers"
25501 config_links="$ac_config_links"
25502 config_commands="$ac_config_commands"
25506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25508 \`$as_me' instantiates files and other configuration actions
25509 from templates according to the current configuration. Unless the files
25510 and actions are specified as TAGs, all are instantiated by default.
25512 Usage: $0 [OPTION]... [TAG]...
25514 -h, --help print this help, then exit
25515 -V, --version print version number and configuration settings, then exit
25516 -q, --quiet, --silent
25517 do not print progress messages
25518 -d, --debug don't remove temporary files
25519 --recheck update $as_me by reconfiguring in the same conditions
25520 --file=FILE[:TEMPLATE]
25521 instantiate the configuration file FILE
25522 --header=FILE[:TEMPLATE]
25523 instantiate the configuration header FILE
25525 Configuration files:
25528 Configuration headers:
25531 Configuration links:
25534 Configuration commands:
25537 Report bugs to the package provider."
25540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25542 libjava config.status version-unused
25543 configured by $0, generated by GNU Autoconf 2.64,
25544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25546 Copyright (C) 2009 Free Software Foundation, Inc.
25547 This config.status script is free software; the Free Software Foundation
25548 gives unlimited permission to copy, distribute and modify it."
25555 test -n "\$AWK" || AWK=awk
25558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25559 # The default lists apply if the user does not specify any file.
25565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25577 # Handling of the options.
25578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25581 $as_echo "$ac_cs_version"; exit ;;
25582 --debug | --debu | --deb | --de | --d | -d )
25584 --file | --fil | --fi | --f )
25587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25589 as_fn_append CONFIG_FILES " '$ac_optarg'"
25590 ac_need_defaults=false;;
25591 --header | --heade | --head | --hea )
25594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25597 ac_need_defaults=false;;
25599 # Conflict between --help and --header
25600 as_fn_error "ambiguous option: \`$1'
25601 Try \`$0 --help' for more information.";;
25602 --help | --hel | -h )
25603 $as_echo "$ac_cs_usage"; exit ;;
25604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25608 # This is an error.
25609 -*) as_fn_error "unrecognized option: \`$1'
25610 Try \`$0 --help' for more information." ;;
25612 *) as_fn_append ac_config_targets " $1"
25613 ac_need_defaults=false ;;
25619 ac_configure_extra_args=
25621 if $ac_cs_silent; then
25623 ac_configure_extra_args="$ac_configure_extra_args --silent"
25627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25628 if \$ac_cs_recheck; then
25629 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25632 CONFIG_SHELL='$SHELL'
25633 export CONFIG_SHELL
25638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25643 ## Running $as_me. ##
25649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25657 with_multisubdir="$with_multisubdir"
25658 with_multisrctop="$with_multisrctop"
25659 with_target_subdir="$with_target_subdir"
25660 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25661 multi_basedir="$multi_basedir"
25662 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25665 GFORTRAN="$GFORTRAN"
25667 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25670 # The HP-UX ksh and POSIX shell print the target directory to stdout
25671 # if CDPATH is set.
25672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25674 sed_quote_subst='$sed_quote_subst'
25675 double_quote_subst='$double_quote_subst'
25676 delay_variable_subst='$delay_variable_subst'
25677 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25678 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25679 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25680 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25681 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25682 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25683 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25684 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25685 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25686 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25687 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25688 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25689 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25690 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25691 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25692 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25693 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25694 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25695 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25696 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25697 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25698 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25699 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25700 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25701 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25702 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25703 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25704 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25705 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25706 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25707 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25708 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25709 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25710 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25711 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25712 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25713 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25714 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25715 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25716 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25717 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25718 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25719 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25720 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25721 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25722 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25723 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25724 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25725 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"`'
25726 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25727 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25728 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25729 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25730 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25731 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25732 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25733 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25734 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25735 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25736 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25737 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25738 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25739 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25740 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25741 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25742 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25743 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25744 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25745 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25746 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25747 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25748 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25749 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25750 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25751 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25752 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25753 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25754 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25755 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25756 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25757 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25758 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25759 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25760 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25761 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25762 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25763 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25764 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25765 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25766 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25767 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25768 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25769 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25770 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25771 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25772 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25773 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25774 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25775 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25776 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25777 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25778 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25779 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25780 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25781 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25782 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25783 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25784 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25785 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25786 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25787 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25788 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25789 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25790 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25791 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25792 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25793 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25794 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25795 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25796 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25797 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25798 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25799 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25800 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25801 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25802 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25803 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25804 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25805 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25806 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25807 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25808 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25809 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25810 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25811 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25812 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25813 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25814 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25815 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25816 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25817 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25818 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25819 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25820 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25821 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25822 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25823 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25824 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25825 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25826 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25827 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25828 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25829 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25830 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25831 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25832 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25833 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25834 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25835 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25836 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25837 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25838 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25839 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25840 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25841 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25842 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25843 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25844 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25845 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25846 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25847 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25848 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25849 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25850 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25851 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25852 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25853 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25854 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25855 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25856 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25857 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25858 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25859 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25860 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25861 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25862 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25863 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25864 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25865 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25866 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25867 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25868 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25869 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25870 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25871 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25872 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25873 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25874 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25875 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25876 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25877 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25878 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25879 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25880 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25881 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25882 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25883 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25884 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25885 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25886 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25887 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25888 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25889 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25890 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25891 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25892 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25893 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25894 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25895 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25896 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25897 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25898 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25899 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25900 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25903 LTCFLAGS='$LTCFLAGS'
25904 compiler='$compiler_DEFAULT'
25906 # A function that is used when there is no print builtin or printf.
25907 func_fallback_echo ()
25909 eval 'cat <<_LTECHO_EOF
25914 # Quote evaled strings.
25928 deplibs_check_method \
25937 lt_cv_sys_global_symbol_pipe \
25938 lt_cv_sys_global_symbol_to_cdecl \
25939 lt_cv_sys_global_symbol_to_c_name_address \
25940 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25941 lt_prog_compiler_no_builtin_flag \
25942 lt_prog_compiler_wl \
25943 lt_prog_compiler_pic \
25944 lt_prog_compiler_static \
25945 lt_cv_prog_compiler_c_o \
25953 export_dynamic_flag_spec \
25954 whole_archive_flag_spec \
25955 compiler_needs_object \
25957 allow_undefined_flag \
25958 no_undefined_flag \
25959 hardcode_libdir_flag_spec \
25960 hardcode_libdir_flag_spec_ld \
25961 hardcode_libdir_separator \
25966 variables_saved_for_relink \
25968 library_names_spec \
25970 install_override_mode \
25974 compiler_lib_search_dirs \
25979 compiler_lib_search_path \
25986 lt_prog_compiler_no_builtin_flag_CXX \
25987 lt_prog_compiler_no_builtin_flag_GCJ \
25988 lt_prog_compiler_wl_CXX \
25989 lt_prog_compiler_wl_GCJ \
25990 lt_prog_compiler_pic_CXX \
25991 lt_prog_compiler_pic_GCJ \
25992 lt_prog_compiler_static_CXX \
25993 lt_prog_compiler_static_GCJ \
25994 lt_cv_prog_compiler_c_o_CXX \
25995 lt_cv_prog_compiler_c_o_GCJ \
25996 export_dynamic_flag_spec_CXX \
25997 export_dynamic_flag_spec_GCJ \
25998 whole_archive_flag_spec_CXX \
25999 whole_archive_flag_spec_GCJ \
26000 compiler_needs_object_CXX \
26001 compiler_needs_object_GCJ \
26004 allow_undefined_flag_CXX \
26005 allow_undefined_flag_GCJ \
26006 no_undefined_flag_CXX \
26007 no_undefined_flag_GCJ \
26008 hardcode_libdir_flag_spec_CXX \
26009 hardcode_libdir_flag_spec_GCJ \
26010 hardcode_libdir_flag_spec_ld_CXX \
26011 hardcode_libdir_flag_spec_ld_GCJ \
26012 hardcode_libdir_separator_CXX \
26013 hardcode_libdir_separator_GCJ \
26014 fix_srcfile_path_CXX \
26015 fix_srcfile_path_GCJ \
26016 exclude_expsyms_CXX \
26017 exclude_expsyms_GCJ \
26018 include_expsyms_CXX \
26019 include_expsyms_GCJ \
26020 file_list_spec_CXX \
26021 file_list_spec_GCJ \
26022 compiler_lib_search_dirs_CXX \
26023 compiler_lib_search_dirs_GCJ \
26024 predep_objects_CXX \
26025 predep_objects_GCJ \
26026 postdep_objects_CXX \
26027 postdep_objects_GCJ \
26032 compiler_lib_search_path_CXX \
26033 compiler_lib_search_path_GCJ; do
26034 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26035 *[\\\\\\\`\\"\\\$]*)
26036 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26039 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26044 # Double-quote double-evaled strings.
26045 for var in reload_cmds \
26046 old_postinstall_cmds \
26047 old_postuninstall_cmds \
26049 extract_expsyms_cmds \
26050 old_archive_from_new_cmds \
26051 old_archive_from_expsyms_cmds \
26053 archive_expsym_cmds \
26055 module_expsym_cmds \
26056 export_symbols_cmds \
26059 postuninstall_cmds \
26061 sys_lib_search_path_spec \
26062 sys_lib_dlsearch_path_spec \
26065 old_archive_cmds_CXX \
26066 old_archive_cmds_GCJ \
26067 old_archive_from_new_cmds_CXX \
26068 old_archive_from_new_cmds_GCJ \
26069 old_archive_from_expsyms_cmds_CXX \
26070 old_archive_from_expsyms_cmds_GCJ \
26073 archive_expsym_cmds_CXX \
26074 archive_expsym_cmds_GCJ \
26077 module_expsym_cmds_CXX \
26078 module_expsym_cmds_GCJ \
26079 export_symbols_cmds_CXX \
26080 export_symbols_cmds_GCJ \
26082 prelink_cmds_GCJ; do
26083 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26084 *[\\\\\\\`\\"\\\$]*)
26085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26093 ac_aux_dir='$ac_aux_dir'
26094 xsi_shell='$xsi_shell'
26095 lt_shell_append='$lt_shell_append'
26097 # See if we are running on zsh, and set the options which allow our
26098 # commands through without removal of \ escapes INIT.
26099 if test -n "\${ZSH_VERSION+set}" ; then
26100 setopt NO_GLOB_SUBST
26106 TIMESTAMP='$TIMESTAMP'
26119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26121 # Handling of arguments.
26122 for ac_config_target in $ac_config_targets
26124 case $ac_config_target in
26125 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26126 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26127 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26128 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26129 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26130 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26131 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26132 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26133 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26134 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26135 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26136 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26137 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26138 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26139 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26140 "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" ;;
26141 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26142 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26143 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26144 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26145 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26146 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26147 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26149 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26150 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26151 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26152 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26153 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26154 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26155 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26156 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26157 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26158 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26159 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26160 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26162 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26167 # If the user did not use the arguments to specify the items to instantiate,
26168 # then the envvar interface is used. Set only those that are not.
26169 # We use the long form for the default assignment because of an extremely
26170 # bizarre bug on SunOS 4.1.3.
26171 if $ac_need_defaults; then
26172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26174 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26178 # Have a temporary directory for convenience. Make it in the build tree
26179 # simply because there is no reason against having it here, and in addition,
26180 # creating and moving files from /tmp can sometimes cause problems.
26181 # Hook for its removal unless debugging.
26182 # Note that there is a small window in which the directory will not be cleaned:
26183 # after its creation but before its name has been assigned to `$tmp'.
26187 trap 'exit_status=$?
26188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26190 trap 'as_fn_exit 1' 1 2 13 15
26192 # Create a (secure) tmp directory for tmp files.
26195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26196 test -n "$tmp" && test -d "$tmp"
26199 tmp=./conf$$-$RANDOM
26200 (umask 077 && mkdir "$tmp")
26201 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26203 # Set up the scripts for CONFIG_FILES section.
26204 # No need to generate them if there are no CONFIG_FILES.
26205 # This happens for instance with `./config.status config.h'.
26206 if test -n "$CONFIG_FILES"; then
26209 ac_cr=`echo X | tr X '\015'`
26210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26211 # But we know of no other shell where ac_cr would be empty at this
26212 # point, so we can use a bashism as a fallback.
26213 if test "x$ac_cr" = x; then
26214 eval ac_cr=\$\'\\r\'
26216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26220 ac_cs_awk_cr=$ac_cr
26223 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26228 echo "cat >conf$$subs.awk <<_ACEOF" &&
26229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26231 } >conf$$subs.sh ||
26232 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26235 for ac_last_try in false false false false false :; do
26236 . ./conf$$subs.sh ||
26237 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26240 if test $ac_delim_n = $ac_delim_num; then
26242 elif $ac_last_try; then
26243 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26248 rm -f conf$$subs.sh
26250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26251 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26255 s/^/S["/; s/!.*/"]=/
26265 s/\(.\{148\}\).*/\1/
26267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26279 s/\(.\{148\}\).*/\1/
26281 s/["\\]/\\&/g; s/^/"/; s/$/"/
26285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26290 ' <conf$$subs.awk | sed '
26295 ' >>$CONFIG_STATUS || ac_write_fail=1
26296 rm -f conf$$subs.awk
26297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26299 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26300 for (key in S) S_is_set[key] = 1
26306 nfields = split(line, field, "@")
26308 len = length(field[1])
26309 for (i = 2; i < nfields; i++) {
26311 keylen = length(key)
26312 if (S_is_set[key]) {
26314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26315 len += length(value) + length(field[++i])
26326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26331 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26332 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26337 # trailing colons and then remove the whole line if VPATH becomes empty
26338 # (actually we leave an empty line to preserve line numbers).
26339 if test "x$srcdir" = x.; then
26340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26341 s/:*\$(srcdir):*/:/
26342 s/:*\${srcdir}:*/:/
26344 s/^\([^=]*=[ ]*\):*/\1/
26350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26351 fi # test -n "$CONFIG_FILES"
26353 # Set up the scripts for CONFIG_HEADERS section.
26354 # No need to generate them if there are no CONFIG_HEADERS.
26355 # This happens for instance with `./config.status Makefile'.
26356 if test -n "$CONFIG_HEADERS"; then
26357 cat >"$tmp/defines.awk" <<\_ACAWK ||
26361 # Transform confdefs.h into an awk script `defines.awk', embedded as
26362 # here-document in config.status, that substitutes the proper values into
26363 # config.h.in to produce config.h.
26365 # Create a delimiter string that does not exist in confdefs.h, to ease
26366 # handling of long lines.
26368 for ac_last_try in false false :; do
26369 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26370 if test -z "$ac_t"; then
26372 elif $ac_last_try; then
26373 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26379 # For the awk script, D is an array of macro values keyed by name,
26380 # likewise P contains macro parameters if any. Preserve backslash
26381 # newline sequences.
26383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26385 s/.\{148\}/&'"$ac_delim"'/g
26388 s/^[ ]*#[ ]*define[ ][ ]*/ /
26395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26402 D["\1"]=" \3\\\\\\n"\\/p
26404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26409 s/.\{148\}/&'"$ac_delim"'/g
26414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26419 ' <confdefs.h | sed '
26420 s/'"$ac_delim"'/"\\\
26421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26424 for (key in D) D_is_set[key] = 1
26427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26429 split(line, arg, " ")
26430 if (arg[1] == "#") {
26434 defundef = substr(arg[1], 2)
26437 split(mac1, mac2, "(") #)
26439 prefix = substr(line, 1, index(line, defundef) - 1)
26440 if (D_is_set[macro]) {
26441 # Preserve the white space surrounding the "#".
26442 print prefix "define", macro P[macro] D[macro]
26445 # Replace #undef with comments. This is necessary, for example,
26446 # in the case of _POSIX_SOURCE, which is predefined and required
26447 # on some systems where configure will not decide to define it.
26448 if (defundef == "undef") {
26449 print "/*", prefix defundef, macro, "*/"
26457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26458 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26459 fi # test -n "$CONFIG_HEADERS"
26462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26467 :[FHLC]) ac_mode=$ac_tag; continue;;
26469 case $ac_mode$ac_tag in
26471 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26472 :[FH]-) ac_tag=-:-;;
26473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26490 -) ac_f="$tmp/stdin";;
26491 *) # Look for the file first in the build tree, then in the source tree
26492 # (if the path is not absolute). The absolute path cannot be DOS-style,
26493 # because $ac_f cannot contain `:'.
26497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26499 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26502 as_fn_append ac_file_inputs " '$ac_f'"
26505 # Let's still pretend it is `configure' which instantiates (i.e., don't
26506 # use $as_me), people would be surprised to read:
26507 # /* config.h. Generated by config.status. */
26508 configure_input='Generated from '`
26509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26511 if test x"$ac_file" != x-; then
26512 configure_input="$ac_file. $configure_input"
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26514 $as_echo "$as_me: creating $ac_file" >&6;}
26516 # Neutralize special characters interpreted by sed in replacement strings.
26517 case $configure_input in #(
26518 *\&* | *\|* | *\\* )
26519 ac_sed_conf_input=`$as_echo "$configure_input" |
26520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26521 *) ac_sed_conf_input=$configure_input;;
26525 *:-:* | *:-) cat >"$tmp/stdin" \
26526 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26531 ac_dir=`$as_dirname -- "$ac_file" ||
26532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26533 X"$ac_file" : 'X\(//\)[^/]' \| \
26534 X"$ac_file" : 'X\(//\)$' \| \
26535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26536 $as_echo X"$ac_file" |
26537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26541 /^X\(\/\/\)[^/].*/{
26554 as_dir="$ac_dir"; as_fn_mkdir_p
26558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26561 # A ".." for each directory in $ac_dir_suffix.
26562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26563 case $ac_top_builddir_sub in
26564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26568 ac_abs_top_builddir=$ac_pwd
26569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26570 # for backward compatibility:
26571 ac_top_builddir=$ac_top_build_prefix
26574 .) # We are building in place.
26576 ac_top_srcdir=$ac_top_builddir_sub
26577 ac_abs_top_srcdir=$ac_pwd ;;
26578 [\\/]* | ?:[\\/]* ) # Absolute name.
26579 ac_srcdir=$srcdir$ac_dir_suffix;
26580 ac_top_srcdir=$srcdir
26581 ac_abs_top_srcdir=$srcdir ;;
26582 *) # Relative name.
26583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26584 ac_top_srcdir=$ac_top_build_prefix$srcdir
26585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26600 ac_MKDIR_P=$MKDIR_P
26602 [\\/$]* | ?:[\\/]* ) ;;
26603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26608 # If the template does not know about datarootdir, expand it.
26609 # FIXME: This hack should be removed a few years after 2.60.
26610 ac_datarootdir_hack=; ac_datarootdir_seen=
26621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26622 *datarootdir*) ac_datarootdir_seen=yes;;
26623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26628 ac_datarootdir_hack='
26629 s&@datadir@&$datadir&g
26630 s&@docdir@&$docdir&g
26631 s&@infodir@&$infodir&g
26632 s&@localedir@&$localedir&g
26633 s&@mandir@&$mandir&g
26634 s&\\\${datarootdir}&$datarootdir&g' ;;
26638 # Neutralize VPATH when `$srcdir' = `.'.
26639 # Shell code in configure.ac might set extrasub.
26640 # FIXME: do we really want to maintain this feature?
26641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26642 ac_sed_extra="$ac_vpsub
26645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26648 s|@configure_input@|$ac_sed_conf_input|;t t
26649 s&@top_builddir@&$ac_top_builddir_sub&;t t
26650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26651 s&@srcdir@&$ac_srcdir&;t t
26652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26653 s&@top_srcdir@&$ac_top_srcdir&;t t
26654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26655 s&@builddir@&$ac_builddir&;t t
26656 s&@abs_builddir@&$ac_abs_builddir&;t t
26657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26658 s&@INSTALL@&$ac_INSTALL&;t t
26659 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26660 $ac_datarootdir_hack
26662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26663 || as_fn_error "could not create $ac_file" "$LINENO" 5
26665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26669 which seems to be undefined. Please make sure it is defined." >&5
26670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26671 which seems to be undefined. Please make sure it is defined." >&2;}
26675 -) cat "$tmp/out" && rm -f "$tmp/out";;
26676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26678 || as_fn_error "could not create $ac_file" "$LINENO" 5
26684 if test x"$ac_file" != x-; then
26686 $as_echo "/* $configure_input */" \
26687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26688 } >"$tmp/config.h" \
26689 || as_fn_error "could not create $ac_file" "$LINENO" 5
26690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26695 mv "$tmp/config.h" "$ac_file" \
26696 || as_fn_error "could not create $ac_file" "$LINENO" 5
26699 $as_echo "/* $configure_input */" \
26700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26701 || as_fn_error "could not create -" "$LINENO" 5
26703 # Compute "$ac_file"'s index in $config_headers.
26706 for _am_header in $config_headers :; do
26707 case $_am_header in
26708 $_am_arg | $_am_arg:* )
26711 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26714 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26715 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26716 X"$_am_arg" : 'X\(//\)[^/]' \| \
26717 X"$_am_arg" : 'X\(//\)$' \| \
26718 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26719 $as_echo X"$_am_arg" |
26720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26724 /^X\(\/\/\)[^/].*/{
26736 s/.*/./; q'`/stamp-h$_am_stamp_count
26743 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26746 # Prefer the file from the source tree if names are identical.
26747 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26748 ac_source=$srcdir/$ac_source
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26752 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26754 if test ! -r "$ac_source"; then
26755 as_fn_error "$ac_source: file not found" "$LINENO" 5
26759 # Try a relative symlink, then a hard link, then a copy.
26761 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26762 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26764 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26765 ln "$ac_source" "$ac_file" 2>/dev/null ||
26766 cp -p "$ac_source" "$ac_file" ||
26767 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26770 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26771 $as_echo "$as_me: executing $ac_file commands" >&6;}
26776 case $ac_file$ac_mode in
26778 # Only add multilib support code if we just rebuilt the top-level
26780 case " $CONFIG_FILES " in
26782 ac_file=Makefile . ${multi_basedir}/config-ml.in
26785 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26786 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26787 # are listed without --file. Let's play safe and only enable the eval
26788 # if we detect the quoting.
26789 case $CONFIG_FILES in
26790 *\'*) eval set x "$CONFIG_FILES" ;;
26791 *) set x $CONFIG_FILES ;;
26796 # Strip MF so we end up with the name of the file.
26797 mf=`echo "$mf" | sed -e 's/:.*$//'`
26798 # Check whether this is an Automake generated Makefile or not.
26799 # We used to match only the files named `Makefile.in', but
26800 # some people rename them; so instead we look at the file content.
26801 # Grep'ing the first line is not enough: some people post-process
26802 # each Makefile.in and add a new line on top of each file to say so.
26803 # Grep'ing the whole file is not good either: AIX grep has a line
26804 # limit of 2048, but all sed's we know have understand at least 4000.
26805 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26806 dirpart=`$as_dirname -- "$mf" ||
26807 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26808 X"$mf" : 'X\(//\)[^/]' \| \
26809 X"$mf" : 'X\(//\)$' \| \
26810 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26816 /^X\(\/\/\)[^/].*/{
26832 # Extract the definition of DEPDIR, am__include, and am__quote
26833 # from the Makefile without running `make'.
26834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26835 test -z "$DEPDIR" && continue
26836 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26837 test -z "am__include" && continue
26838 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26839 # When using ansi2knr, U may be empty or an underscore; expand it
26840 U=`sed -n 's/^U = //p' < "$mf"`
26841 # Find all dependency output files, they are included files with
26842 # $(DEPDIR) in their names. We invoke sed twice because it is the
26843 # simplest approach to changing $(DEPDIR) to its actual value in the
26845 for file in `sed -n "
26846 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26848 # Make sure the directory exists.
26849 test -f "$dirpart/$file" && continue
26850 fdir=`$as_dirname -- "$file" ||
26851 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26852 X"$file" : 'X\(//\)[^/]' \| \
26853 X"$file" : 'X\(//\)$' \| \
26854 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26855 $as_echo X"$file" |
26856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26860 /^X\(\/\/\)[^/].*/{
26873 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26874 # echo "creating $dirpart/$file"
26875 echo '# dummy' > "$dirpart/$file"
26882 # See if we are running on zsh, and set the options which allow our
26883 # commands through without removal of \ escapes.
26884 if test -n "${ZSH_VERSION+set}" ; then
26885 setopt NO_GLOB_SUBST
26888 cfgfile="${ofile}T"
26889 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26892 cat <<_LT_EOF >> "$cfgfile"
26895 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26896 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26897 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26898 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26900 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26901 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26902 # Written by Gordon Matzigkeit, 1996
26904 # This file is part of GNU Libtool.
26906 # GNU Libtool is free software; you can redistribute it and/or
26907 # modify it under the terms of the GNU General Public License as
26908 # published by the Free Software Foundation; either version 2 of
26909 # the License, or (at your option) any later version.
26911 # As a special exception to the GNU General Public License,
26912 # if you distribute this file as part of a program or library that
26913 # is built using GNU Libtool, you may include this file under the
26914 # same distribution terms that you use for the rest of that program.
26916 # GNU Libtool is distributed in the hope that it will be useful,
26917 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26918 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26919 # GNU General Public License for more details.
26921 # You should have received a copy of the GNU General Public License
26922 # along with GNU Libtool; see the file COPYING. If not, a copy
26923 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26924 # obtained by writing to the Free Software Foundation, Inc.,
26925 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26928 # The names of the tagged configurations supported by this script.
26929 available_tags="CXX GCJ "
26931 # ### BEGIN LIBTOOL CONFIG
26933 # Which release of libtool.m4 was used?
26934 macro_version=$macro_version
26935 macro_revision=$macro_revision
26937 # Whether or not to build shared libraries.
26938 build_libtool_libs=$enable_shared
26940 # Whether or not to build static libraries.
26941 build_old_libs=$enable_static
26943 # What type of objects to build.
26946 # Whether or not to optimize for fast installation.
26947 fast_install=$enable_fast_install
26949 # Shell to use when invoking shell scripts.
26952 # An echo program that protects backslashes.
26956 host_alias=$host_alias
26960 # The build system.
26961 build_alias=$build_alias
26965 # A sed program that does not truncate output.
26968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26969 Xsed="\$SED -e 1s/^X//"
26971 # A grep program that handles long lines.
26977 # A literal string matcher.
26980 # A BSD- or MS-compatible name lister.
26983 # Whether we need soft or hard links.
26986 # What is the maximum length of a command?
26987 max_cmd_len=$max_cmd_len
26989 # Object file suffix (normally "o").
26992 # Executable file suffix (normally "").
26995 # whether the shell understands "unset".
26998 # turn spaces into newlines.
27001 # turn newlines into spaces.
27004 # An object symbol dumper.
27005 OBJDUMP=$lt_OBJDUMP
27007 # Method to check whether dependent libraries are shared objects.
27008 deplibs_check_method=$lt_deplibs_check_method
27010 # Command to use when deplibs_check_method == "file_magic".
27011 file_magic_cmd=$lt_file_magic_cmd
27015 AR_FLAGS=$lt_AR_FLAGS
27017 # A symbol stripping program.
27020 # Commands used to install an old-style archive.
27022 old_postinstall_cmds=$lt_old_postinstall_cmds
27023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27025 # Whether to use a lock for old archive extraction.
27026 lock_old_archive_extraction=$lock_old_archive_extraction
27031 # LTCC compiler flags.
27032 LTCFLAGS=$lt_CFLAGS
27034 # Take the output of nm and produce a listing of raw symbols and C names.
27035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27037 # Transform the output of nm in a proper C declaration.
27038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27040 # Transform the output of nm in a C name address pair.
27041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27043 # Transform the output of nm in a C name address pair when lib prefix is needed.
27044 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27046 # The name of the directory that contains temporary libtool files.
27049 # Used to examine libraries when file_magic_cmd begins with "file".
27050 MAGIC_CMD=$MAGIC_CMD
27052 # Must we lock files when doing compilation?
27053 need_locks=$lt_need_locks
27055 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27056 DSYMUTIL=$lt_DSYMUTIL
27058 # Tool to change global to local symbols on Mac OS X.
27061 # Tool to manipulate fat objects and archives on Mac OS X.
27064 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27067 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27068 OTOOL64=$lt_OTOOL64
27070 # Old archive suffix (normally "a").
27073 # Shared library suffix (normally ".so").
27074 shrext_cmds=$lt_shrext_cmds
27076 # The commands to extract the exported symbol list from a shared archive.
27077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27079 # Variables whose values should be saved in libtool wrapper scripts and
27080 # restored at link time.
27081 variables_saved_for_relink=$lt_variables_saved_for_relink
27083 # Do we need the "lib" prefix for modules?
27084 need_lib_prefix=$need_lib_prefix
27086 # Do we need a version for libraries?
27087 need_version=$need_version
27089 # Library versioning type.
27090 version_type=$version_type
27092 # Shared library runtime path variable.
27093 runpath_var=$runpath_var
27095 # Shared library path variable.
27096 shlibpath_var=$shlibpath_var
27098 # Is shlibpath searched before the hard-coded library search path?
27099 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27101 # Format of library name prefix.
27102 libname_spec=$lt_libname_spec
27104 # List of archive names. First name is the real one, the rest are links.
27105 # The last name is the one that the linker finds with -lNAME
27106 library_names_spec=$lt_library_names_spec
27108 # The coded name of the library, if different from the real name.
27109 soname_spec=$lt_soname_spec
27111 # Permission mode override for installation of shared libraries.
27112 install_override_mode=$lt_install_override_mode
27114 # Command to use after installation of a shared archive.
27115 postinstall_cmds=$lt_postinstall_cmds
27117 # Command to use after uninstallation of a shared archive.
27118 postuninstall_cmds=$lt_postuninstall_cmds
27120 # Commands used to finish a libtool library installation in a directory.
27121 finish_cmds=$lt_finish_cmds
27123 # As "finish_cmds", except a single script fragment to be evaled but
27125 finish_eval=$lt_finish_eval
27127 # Whether we should hardcode library paths into libraries.
27128 hardcode_into_libs=$hardcode_into_libs
27130 # Compile-time system search path for libraries.
27131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27133 # Run-time system search path for libraries.
27134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27136 # Whether dlopen is supported.
27137 dlopen_support=$enable_dlopen
27139 # Whether dlopen of programs is supported.
27140 dlopen_self=$enable_dlopen_self
27142 # Whether dlopen of statically linked programs is supported.
27143 dlopen_self_static=$enable_dlopen_self_static
27145 # Commands to strip libraries.
27146 old_striplib=$lt_old_striplib
27147 striplib=$lt_striplib
27150 # The linker used to build libraries.
27153 # How to create reloadable object files.
27154 reload_flag=$lt_reload_flag
27155 reload_cmds=$lt_reload_cmds
27157 # Commands used to build an old-style archive.
27158 old_archive_cmds=$lt_old_archive_cmds
27160 # A language specific compiler.
27163 # Is the compiler the GNU compiler?
27166 # Compiler flag to turn off builtin functions.
27167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27169 # How to pass a linker flag through the compiler.
27170 wl=$lt_lt_prog_compiler_wl
27172 # Additional compiler flags for building library objects.
27173 pic_flag=$lt_lt_prog_compiler_pic
27175 # Compiler flag to prevent dynamic linking.
27176 link_static_flag=$lt_lt_prog_compiler_static
27178 # Does compiler simultaneously support -c and -o options?
27179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27181 # Whether or not to add -lc for building shared libraries.
27182 build_libtool_need_lc=$archive_cmds_need_lc
27184 # Whether or not to disallow shared libs when runtime libs are static.
27185 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27187 # Compiler flag to allow reflexive dlopens.
27188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27190 # Compiler flag to generate shared objects directly from archives.
27191 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27193 # Whether the compiler copes with passing no objects directly.
27194 compiler_needs_object=$lt_compiler_needs_object
27196 # Create an old-style archive from a shared archive.
27197 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27199 # Create a temporary old-style archive to link instead of a shared archive.
27200 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27202 # Commands used to build a shared archive.
27203 archive_cmds=$lt_archive_cmds
27204 archive_expsym_cmds=$lt_archive_expsym_cmds
27206 # Commands used to build a loadable module if different from building
27207 # a shared archive.
27208 module_cmds=$lt_module_cmds
27209 module_expsym_cmds=$lt_module_expsym_cmds
27211 # Whether we are building with GNU ld or not.
27212 with_gnu_ld=$lt_with_gnu_ld
27214 # Flag that allows shared libraries with undefined symbols to be built.
27215 allow_undefined_flag=$lt_allow_undefined_flag
27217 # Flag that enforces no undefined symbols.
27218 no_undefined_flag=$lt_no_undefined_flag
27220 # Flag to hardcode \$libdir into a binary during linking.
27221 # This must work even if \$libdir does not exist
27222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27224 # If ld is used when linking, flag to hardcode \$libdir into a binary
27225 # during linking. This must work even if \$libdir does not exist.
27226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27228 # Whether we need a single "-rpath" flag with a separated argument.
27229 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27231 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27232 # DIR into the resulting binary.
27233 hardcode_direct=$hardcode_direct
27235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27236 # DIR into the resulting binary and the resulting library dependency is
27237 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27238 # library is relocated.
27239 hardcode_direct_absolute=$hardcode_direct_absolute
27241 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27242 # into the resulting binary.
27243 hardcode_minus_L=$hardcode_minus_L
27245 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27246 # into the resulting binary.
27247 hardcode_shlibpath_var=$hardcode_shlibpath_var
27249 # Set to "yes" if building a shared library automatically hardcodes DIR
27250 # into the library and all subsequent libraries and executables linked
27252 hardcode_automatic=$hardcode_automatic
27254 # Set to yes if linker adds runtime paths of dependent libraries
27255 # to runtime path list.
27256 inherit_rpath=$inherit_rpath
27258 # Whether libtool must link a program against all its dependency libraries.
27259 link_all_deplibs=$link_all_deplibs
27261 # Fix the shell variable \$srcfile for the compiler.
27262 fix_srcfile_path=$lt_fix_srcfile_path
27264 # Set to "yes" if exported symbols are required.
27265 always_export_symbols=$always_export_symbols
27267 # The commands to list exported symbols.
27268 export_symbols_cmds=$lt_export_symbols_cmds
27270 # Symbols that should not be listed in the preloaded symbols.
27271 exclude_expsyms=$lt_exclude_expsyms
27273 # Symbols that must always be exported.
27274 include_expsyms=$lt_include_expsyms
27276 # Commands necessary for linking programs (against libraries) with templates.
27277 prelink_cmds=$lt_prelink_cmds
27279 # Specify filename containing input files.
27280 file_list_spec=$lt_file_list_spec
27282 # How to hardcode a shared library path into an executable.
27283 hardcode_action=$hardcode_action
27285 # The directories searched by this compiler when creating a shared library.
27286 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27288 # Dependencies to place before and after the objects being linked to
27289 # create a shared library.
27290 predep_objects=$lt_predep_objects
27291 postdep_objects=$lt_postdep_objects
27292 predeps=$lt_predeps
27293 postdeps=$lt_postdeps
27295 # The library search path used internally by the compiler when linking
27296 # a shared library.
27297 compiler_lib_search_path=$lt_compiler_lib_search_path
27299 # ### END LIBTOOL CONFIG
27305 cat <<\_LT_EOF >> "$cfgfile"
27306 # AIX sometimes has problems with the GCC collect2 program. For some
27307 # reason, if we set the COLLECT_NAMES environment variable, the problems
27308 # vanish in a puff of smoke.
27309 if test "X${COLLECT_NAMES+set}" != Xset; then
27311 export COLLECT_NAMES
27318 ltmain="$ac_aux_dir/ltmain.sh"
27321 # We use sed instead of cat because bash on DJGPP gets confused if
27322 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27323 # text mode, it properly converts lines to CR/LF. This bash problem
27324 # is reportedly fixed, but why not run on old versions too?
27325 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27326 || (rm -f "$cfgfile"; exit 1)
27330 cat << \_LT_EOF >> "$cfgfile"
27332 # func_dirname file append nondir_replacement
27333 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27334 # otherwise set result to NONDIR_REPLACEMENT.
27338 */*) func_dirname_result="${1%/*}${2}" ;;
27339 * ) func_dirname_result="${3}" ;;
27343 # func_basename file
27346 func_basename_result="${1##*/}"
27349 # func_dirname_and_basename file append nondir_replacement
27350 # perform func_basename and func_dirname in a single function
27352 # dirname: Compute the dirname of FILE. If nonempty,
27353 # add APPEND to the result, otherwise set result
27354 # to NONDIR_REPLACEMENT.
27355 # value returned in "$func_dirname_result"
27356 # basename: Compute filename of FILE.
27357 # value retuned in "$func_basename_result"
27358 # Implementation must be kept synchronized with func_dirname
27359 # and func_basename. For efficiency, we do not delegate to
27360 # those functions but instead duplicate the functionality here.
27361 func_dirname_and_basename ()
27364 */*) func_dirname_result="${1%/*}${2}" ;;
27365 * ) func_dirname_result="${3}" ;;
27367 func_basename_result="${1##*/}"
27370 # func_stripname prefix suffix name
27371 # strip PREFIX and SUFFIX off of NAME.
27372 # PREFIX and SUFFIX must not contain globbing or regex special
27373 # characters, hashes, percent signs, but SUFFIX may contain a leading
27374 # dot (in which case that matches only a dot).
27377 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27378 # positional parameters, so assign one to ordinary parameter first.
27379 func_stripname_result=${3}
27380 func_stripname_result=${func_stripname_result#"${1}"}
27381 func_stripname_result=${func_stripname_result%"${2}"}
27387 func_opt_split_opt=${1%%=*}
27388 func_opt_split_arg=${1#*=}
27395 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27396 *) func_lo2o_result=${1} ;;
27400 # func_xform libobj-or-source
27403 func_xform_result=${1%.*}.lo
27406 # func_arith arithmetic-term...
27409 func_arith_result=$(( $* ))
27413 # STRING may not start with a hyphen.
27416 func_len_result=${#1}
27421 *) # Bourne compatible functions.
27422 cat << \_LT_EOF >> "$cfgfile"
27424 # func_dirname file append nondir_replacement
27425 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27426 # otherwise set result to NONDIR_REPLACEMENT.
27429 # Extract subdirectory from the argument.
27430 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27431 if test "X$func_dirname_result" = "X${1}"; then
27432 func_dirname_result="${3}"
27434 func_dirname_result="$func_dirname_result${2}"
27438 # func_basename file
27441 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27445 # func_stripname prefix suffix name
27446 # strip PREFIX and SUFFIX off of NAME.
27447 # PREFIX and SUFFIX must not contain globbing or regex special
27448 # characters, hashes, percent signs, but SUFFIX may contain a leading
27449 # dot (in which case that matches only a dot).
27450 # func_strip_suffix prefix name
27454 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27455 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27460 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27461 my_sed_long_arg='1s/^-[^=]*=//'
27466 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27467 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27473 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27476 # func_xform libobj-or-source
27479 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27482 # func_arith arithmetic-term...
27485 func_arith_result=`expr "$@"`
27489 # STRING may not start with a hyphen.
27492 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27498 case $lt_shell_append in
27500 cat << \_LT_EOF >> "$cfgfile"
27502 # func_append var value
27503 # Append VALUE to the end of shell variable VAR.
27511 cat << \_LT_EOF >> "$cfgfile"
27513 # func_append var value
27514 # Append VALUE to the end of shell variable VAR.
27525 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27526 || (rm -f "$cfgfile"; exit 1)
27528 mv -f "$cfgfile" "$ofile" ||
27529 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27533 cat <<_LT_EOF >> "$ofile"
27535 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27537 # The linker used to build libraries.
27540 # How to create reloadable object files.
27541 reload_flag=$lt_reload_flag_CXX
27542 reload_cmds=$lt_reload_cmds_CXX
27544 # Commands used to build an old-style archive.
27545 old_archive_cmds=$lt_old_archive_cmds_CXX
27547 # A language specific compiler.
27548 CC=$lt_compiler_CXX
27550 # Is the compiler the GNU compiler?
27553 # Compiler flag to turn off builtin functions.
27554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27556 # How to pass a linker flag through the compiler.
27557 wl=$lt_lt_prog_compiler_wl_CXX
27559 # Additional compiler flags for building library objects.
27560 pic_flag=$lt_lt_prog_compiler_pic_CXX
27562 # Compiler flag to prevent dynamic linking.
27563 link_static_flag=$lt_lt_prog_compiler_static_CXX
27565 # Does compiler simultaneously support -c and -o options?
27566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27568 # Whether or not to add -lc for building shared libraries.
27569 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27571 # Whether or not to disallow shared libs when runtime libs are static.
27572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27574 # Compiler flag to allow reflexive dlopens.
27575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27577 # Compiler flag to generate shared objects directly from archives.
27578 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27580 # Whether the compiler copes with passing no objects directly.
27581 compiler_needs_object=$lt_compiler_needs_object_CXX
27583 # Create an old-style archive from a shared archive.
27584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27586 # Create a temporary old-style archive to link instead of a shared archive.
27587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27589 # Commands used to build a shared archive.
27590 archive_cmds=$lt_archive_cmds_CXX
27591 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27593 # Commands used to build a loadable module if different from building
27594 # a shared archive.
27595 module_cmds=$lt_module_cmds_CXX
27596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27598 # Whether we are building with GNU ld or not.
27599 with_gnu_ld=$lt_with_gnu_ld_CXX
27601 # Flag that allows shared libraries with undefined symbols to be built.
27602 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27604 # Flag that enforces no undefined symbols.
27605 no_undefined_flag=$lt_no_undefined_flag_CXX
27607 # Flag to hardcode \$libdir into a binary during linking.
27608 # This must work even if \$libdir does not exist
27609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27611 # If ld is used when linking, flag to hardcode \$libdir into a binary
27612 # during linking. This must work even if \$libdir does not exist.
27613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27615 # Whether we need a single "-rpath" flag with a separated argument.
27616 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27618 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27619 # DIR into the resulting binary.
27620 hardcode_direct=$hardcode_direct_CXX
27622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27623 # DIR into the resulting binary and the resulting library dependency is
27624 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27625 # library is relocated.
27626 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27628 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27629 # into the resulting binary.
27630 hardcode_minus_L=$hardcode_minus_L_CXX
27632 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27633 # into the resulting binary.
27634 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27636 # Set to "yes" if building a shared library automatically hardcodes DIR
27637 # into the library and all subsequent libraries and executables linked
27639 hardcode_automatic=$hardcode_automatic_CXX
27641 # Set to yes if linker adds runtime paths of dependent libraries
27642 # to runtime path list.
27643 inherit_rpath=$inherit_rpath_CXX
27645 # Whether libtool must link a program against all its dependency libraries.
27646 link_all_deplibs=$link_all_deplibs_CXX
27648 # Fix the shell variable \$srcfile for the compiler.
27649 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27651 # Set to "yes" if exported symbols are required.
27652 always_export_symbols=$always_export_symbols_CXX
27654 # The commands to list exported symbols.
27655 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27657 # Symbols that should not be listed in the preloaded symbols.
27658 exclude_expsyms=$lt_exclude_expsyms_CXX
27660 # Symbols that must always be exported.
27661 include_expsyms=$lt_include_expsyms_CXX
27663 # Commands necessary for linking programs (against libraries) with templates.
27664 prelink_cmds=$lt_prelink_cmds_CXX
27666 # Specify filename containing input files.
27667 file_list_spec=$lt_file_list_spec_CXX
27669 # How to hardcode a shared library path into an executable.
27670 hardcode_action=$hardcode_action_CXX
27672 # The directories searched by this compiler when creating a shared library.
27673 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27675 # Dependencies to place before and after the objects being linked to
27676 # create a shared library.
27677 predep_objects=$lt_predep_objects_CXX
27678 postdep_objects=$lt_postdep_objects_CXX
27679 predeps=$lt_predeps_CXX
27680 postdeps=$lt_postdeps_CXX
27682 # The library search path used internally by the compiler when linking
27683 # a shared library.
27684 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27686 # ### END LIBTOOL TAG CONFIG: CXX
27690 cat <<_LT_EOF >> "$ofile"
27692 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27694 # The linker used to build libraries.
27697 # How to create reloadable object files.
27698 reload_flag=$lt_reload_flag_GCJ
27699 reload_cmds=$lt_reload_cmds_GCJ
27701 # Commands used to build an old-style archive.
27702 old_archive_cmds=$lt_old_archive_cmds_GCJ
27704 # A language specific compiler.
27705 CC=$lt_compiler_GCJ
27707 # Is the compiler the GNU compiler?
27710 # Compiler flag to turn off builtin functions.
27711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27713 # How to pass a linker flag through the compiler.
27714 wl=$lt_lt_prog_compiler_wl_GCJ
27716 # Additional compiler flags for building library objects.
27717 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27719 # Compiler flag to prevent dynamic linking.
27720 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27722 # Does compiler simultaneously support -c and -o options?
27723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27725 # Whether or not to add -lc for building shared libraries.
27726 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27728 # Whether or not to disallow shared libs when runtime libs are static.
27729 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27731 # Compiler flag to allow reflexive dlopens.
27732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27734 # Compiler flag to generate shared objects directly from archives.
27735 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27737 # Whether the compiler copes with passing no objects directly.
27738 compiler_needs_object=$lt_compiler_needs_object_GCJ
27740 # Create an old-style archive from a shared archive.
27741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27743 # Create a temporary old-style archive to link instead of a shared archive.
27744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27746 # Commands used to build a shared archive.
27747 archive_cmds=$lt_archive_cmds_GCJ
27748 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27750 # Commands used to build a loadable module if different from building
27751 # a shared archive.
27752 module_cmds=$lt_module_cmds_GCJ
27753 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27755 # Whether we are building with GNU ld or not.
27756 with_gnu_ld=$lt_with_gnu_ld_GCJ
27758 # Flag that allows shared libraries with undefined symbols to be built.
27759 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27761 # Flag that enforces no undefined symbols.
27762 no_undefined_flag=$lt_no_undefined_flag_GCJ
27764 # Flag to hardcode \$libdir into a binary during linking.
27765 # This must work even if \$libdir does not exist
27766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27768 # If ld is used when linking, flag to hardcode \$libdir into a binary
27769 # during linking. This must work even if \$libdir does not exist.
27770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27772 # Whether we need a single "-rpath" flag with a separated argument.
27773 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27776 # DIR into the resulting binary.
27777 hardcode_direct=$hardcode_direct_GCJ
27779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27780 # DIR into the resulting binary and the resulting library dependency is
27781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27782 # library is relocated.
27783 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27786 # into the resulting binary.
27787 hardcode_minus_L=$hardcode_minus_L_GCJ
27789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27790 # into the resulting binary.
27791 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27793 # Set to "yes" if building a shared library automatically hardcodes DIR
27794 # into the library and all subsequent libraries and executables linked
27796 hardcode_automatic=$hardcode_automatic_GCJ
27798 # Set to yes if linker adds runtime paths of dependent libraries
27799 # to runtime path list.
27800 inherit_rpath=$inherit_rpath_GCJ
27802 # Whether libtool must link a program against all its dependency libraries.
27803 link_all_deplibs=$link_all_deplibs_GCJ
27805 # Fix the shell variable \$srcfile for the compiler.
27806 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27808 # Set to "yes" if exported symbols are required.
27809 always_export_symbols=$always_export_symbols_GCJ
27811 # The commands to list exported symbols.
27812 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27814 # Symbols that should not be listed in the preloaded symbols.
27815 exclude_expsyms=$lt_exclude_expsyms_GCJ
27817 # Symbols that must always be exported.
27818 include_expsyms=$lt_include_expsyms_GCJ
27820 # Commands necessary for linking programs (against libraries) with templates.
27821 prelink_cmds=$lt_prelink_cmds_GCJ
27823 # Specify filename containing input files.
27824 file_list_spec=$lt_file_list_spec_GCJ
27826 # How to hardcode a shared library path into an executable.
27827 hardcode_action=$hardcode_action_GCJ
27829 # The directories searched by this compiler when creating a shared library.
27830 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27832 # Dependencies to place before and after the objects being linked to
27833 # create a shared library.
27834 predep_objects=$lt_predep_objects_GCJ
27835 postdep_objects=$lt_postdep_objects_GCJ
27836 predeps=$lt_predeps_GCJ
27837 postdeps=$lt_postdeps_GCJ
27839 # The library search path used internally by the compiler when linking
27840 # a shared library.
27841 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27843 # ### END LIBTOOL TAG CONFIG: GCJ
27847 "scripts/jar":F) chmod +x scripts/jar ;;
27855 ac_clean_files=$ac_clean_files_save
27857 test $ac_write_fail = 0 ||
27858 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27861 # configure is writing to config.log, and then calls config.status.
27862 # config.status does its own redirection, appending to config.log.
27863 # Unfortunately, on DOS this fails, as config.log is still kept open
27864 # by configure, so config.status won't be able to write to it; its
27865 # output is simply discarded. So we exec the FD to /dev/null,
27866 # effectively closing config.log, so it can be properly (re)opened and
27867 # appended to by config.status. When coming back to configure, we
27868 # need to make the FD available again.
27869 if test "$no_create" != yes; then
27871 ac_config_status_args=
27872 test "$silent" = yes &&
27873 ac_config_status_args="$ac_config_status_args --quiet"
27875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27878 # would make configure fail if this is the last instruction.
27879 $ac_cs_success || as_fn_exit $?
27883 # CONFIG_SUBDIRS section.
27885 if test "$no_recursion" != yes; then
27887 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27888 # so they do not pile up.
27889 ac_sub_configure_args=
27891 eval "set x $ac_configure_args"
27895 if test -n "$ac_prev"; then
27900 -cache-file | --cache-file | --cache-fil | --cache-fi \
27901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27902 ac_prev=cache_file ;;
27903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27907 --config-cache | -C)
27909 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27911 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27913 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27915 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27917 --disable-option-checking)
27921 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27923 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27927 # Always prepend --prefix to ensure using the same prefix
27928 # in subdir configurations.
27929 ac_arg="--prefix=$prefix"
27931 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27933 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27936 if test "$silent" = yes; then
27937 ac_sub_configure_args="--silent $ac_sub_configure_args"
27940 # Always prepend --disable-option-checking to silence warnings, since
27941 # different subdirs can have different --enable and --with options.
27942 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27945 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27947 # Do not complain, so a configure script can configure whichever
27948 # parts of a large source tree are present.
27949 test -d "$srcdir/$ac_dir" || continue
27951 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27952 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27953 $as_echo "$ac_msg" >&6
27954 as_dir="$ac_dir"; as_fn_mkdir_p
27958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27961 # A ".." for each directory in $ac_dir_suffix.
27962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27963 case $ac_top_builddir_sub in
27964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27968 ac_abs_top_builddir=$ac_pwd
27969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27970 # for backward compatibility:
27971 ac_top_builddir=$ac_top_build_prefix
27974 .) # We are building in place.
27976 ac_top_srcdir=$ac_top_builddir_sub
27977 ac_abs_top_srcdir=$ac_pwd ;;
27978 [\\/]* | ?:[\\/]* ) # Absolute name.
27979 ac_srcdir=$srcdir$ac_dir_suffix;
27980 ac_top_srcdir=$srcdir
27981 ac_abs_top_srcdir=$srcdir ;;
27982 *) # Relative name.
27983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27984 ac_top_srcdir=$ac_top_build_prefix$srcdir
27985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27992 # Check for guested configure; otherwise get Cygnus style configure.
27993 if test -f "$ac_srcdir/configure.gnu"; then
27994 ac_sub_configure=$ac_srcdir/configure.gnu
27995 elif test -f "$ac_srcdir/configure"; then
27996 ac_sub_configure=$ac_srcdir/configure
27997 elif test -f "$ac_srcdir/configure.in"; then
27998 # This should be Cygnus configure.
27999 ac_sub_configure=$ac_aux_dir/configure
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28002 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28006 # The recursion is here.
28007 if test -n "$ac_sub_configure"; then
28008 # Make the cache file name correct relative to the subdirectory.
28009 case $cache_file in
28010 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28011 *) # Relative name.
28012 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28015 { $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
28016 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28017 # The eval makes quoting arguments work.
28018 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28019 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28020 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28026 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28028 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}