2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL
=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec
; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo
; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo
; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset
; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
597 echo_test_string
=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
617 for dir
in $PATH /usr
/ucb
; do
619 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho
; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL
=/bin
/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
658 SHELL
="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string
=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames
=${tagnames+${tagnames},}CXX
704 tagnames
=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev
/null
6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix
=/usr
/local
718 ac_config_libobj_dir
=.
724 SHELL
=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file
="src/jam.c"
734 ac_default_prefix
=/usr
/local
/jamvm
735 # Factoring default headers for most tests.
736 ac_includes_default
="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
822 INSTALL_STRIP_PROGRAM
841 COMPILE_TIME_RELOC_CHECKS_TRUE
842 COMPILE_TIME_RELOC_CHECKS_FALSE
843 with_classpath_install_dir
883 am__fastdepCCAS_FALSE
889 MAINTAINER_MODE_FALSE
894 ac_precious_vars
='build_alias
913 # Initialize some variables set by options.
915 ac_init_version
=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name
=s
,x
,x
,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir
='${exec_prefix}/bin'
940 sbindir
='${exec_prefix}/sbin'
941 libexecdir
='${exec_prefix}/libexec'
942 datarootdir
='${prefix}/share'
943 datadir
='${datarootdir}'
944 sysconfdir
='${prefix}/etc'
945 sharedstatedir
='${prefix}/com'
946 localstatedir
='${prefix}/var'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
983 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
986 -build |
--build |
--buil |
--bui |
--bu)
987 ac_prev
=build_alias
;;
988 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
989 build_alias
=$ac_optarg ;;
991 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
992 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
993 ac_prev
=cache_file
;;
994 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
995 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
996 cache_file
=$ac_optarg ;;
999 cache_file
=config.cache
;;
1001 -datadir |
--datadir |
--datadi |
--datad)
1003 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1004 datadir
=$ac_optarg ;;
1006 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1007 |
--dataroo |
--dataro |
--datar)
1008 ac_prev
=datarootdir
;;
1009 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1010 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1011 datarootdir
=$ac_optarg ;;
1013 -disable-* |
--disable-*)
1014 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_
$ac_feature=no
;;
1022 -docdir |
--docdir |
--docdi |
--doc |
--do)
1024 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1025 docdir
=$ac_optarg ;;
1027 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1029 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1030 dvidir
=$ac_optarg ;;
1032 -enable-* |
--enable-*)
1033 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_
$ac_feature=\
$ac_optarg ;;
1041 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1042 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1043 |
--exec |
--exe |
--ex)
1044 ac_prev
=exec_prefix
;;
1045 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1046 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1047 |
--exec=* |
--exe=* |
--ex=*)
1048 exec_prefix
=$ac_optarg ;;
1050 -gas |
--gas |
--ga |
--g)
1051 # Obsolete; use --with-gas.
1054 -help |
--help |
--hel |
--he |
-h)
1055 ac_init_help
=long
;;
1056 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1057 ac_init_help
=recursive
;;
1058 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1059 ac_init_help
=short
;;
1061 -host |
--host |
--hos |
--ho)
1062 ac_prev
=host_alias
;;
1063 -host=* |
--host=* |
--hos=* |
--ho=*)
1064 host_alias
=$ac_optarg ;;
1066 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1068 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1070 htmldir
=$ac_optarg ;;
1072 -includedir |
--includedir |
--includedi |
--included |
--include \
1073 |
--includ |
--inclu |
--incl |
--inc)
1074 ac_prev
=includedir
;;
1075 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1076 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1077 includedir
=$ac_optarg ;;
1079 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1081 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1082 infodir
=$ac_optarg ;;
1084 -libdir |
--libdir |
--libdi |
--libd)
1086 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1087 libdir
=$ac_optarg ;;
1089 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1090 |
--libexe |
--libex |
--libe)
1091 ac_prev
=libexecdir
;;
1092 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1093 |
--libexe=* |
--libex=* |
--libe=*)
1094 libexecdir
=$ac_optarg ;;
1096 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1097 ac_prev
=localedir
;;
1098 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1099 localedir
=$ac_optarg ;;
1101 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1102 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1103 ac_prev
=localstatedir
;;
1104 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1105 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1106 localstatedir
=$ac_optarg ;;
1108 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1110 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1111 mandir
=$ac_optarg ;;
1113 -nfp |
--nfp |
--nf)
1114 # Obsolete; use --without-fp.
1117 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1118 |
--no-cr |
--no-c |
-n)
1121 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1122 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1125 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1126 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1127 |
--oldin |
--oldi |
--old |
--ol |
--o)
1128 ac_prev
=oldincludedir
;;
1129 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1130 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1131 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1132 oldincludedir
=$ac_optarg ;;
1134 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1136 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1137 prefix
=$ac_optarg ;;
1139 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1140 |
--program-pre |
--program-pr |
--program-p)
1141 ac_prev
=program_prefix
;;
1142 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1143 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1144 program_prefix
=$ac_optarg ;;
1146 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1147 |
--program-suf |
--program-su |
--program-s)
1148 ac_prev
=program_suffix
;;
1149 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1150 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1151 program_suffix
=$ac_optarg ;;
1153 -program-transform-name |
--program-transform-name \
1154 |
--program-transform-nam |
--program-transform-na \
1155 |
--program-transform-n |
--program-transform- \
1156 |
--program-transform |
--program-transfor \
1157 |
--program-transfo |
--program-transf \
1158 |
--program-trans |
--program-tran \
1159 |
--progr-tra |
--program-tr |
--program-t)
1160 ac_prev
=program_transform_name
;;
1161 -program-transform-name=* |
--program-transform-name=* \
1162 |
--program-transform-nam=* |
--program-transform-na=* \
1163 |
--program-transform-n=* |
--program-transform-=* \
1164 |
--program-transform=* |
--program-transfor=* \
1165 |
--program-transfo=* |
--program-transf=* \
1166 |
--program-trans=* |
--program-tran=* \
1167 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1168 program_transform_name
=$ac_optarg ;;
1170 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1172 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1173 pdfdir
=$ac_optarg ;;
1175 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1177 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1180 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1181 |
-silent |
--silent |
--silen |
--sile |
--sil)
1184 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1186 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1188 sbindir
=$ac_optarg ;;
1190 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1191 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1192 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1194 ac_prev
=sharedstatedir
;;
1195 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1196 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1197 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1199 sharedstatedir
=$ac_optarg ;;
1201 -site |
--site |
--sit)
1203 -site=* |
--site=* |
--sit=*)
1206 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1208 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1209 srcdir
=$ac_optarg ;;
1211 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1212 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1213 ac_prev
=sysconfdir
;;
1214 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1215 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1216 sysconfdir
=$ac_optarg ;;
1218 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1219 ac_prev
=target_alias
;;
1220 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1221 target_alias
=$ac_optarg ;;
1223 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1226 -version |
--version |
--versio |
--versi |
--vers |
-V)
1227 ac_init_version
=: ;;
1230 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_
$ac_package=\
$ac_optarg ;;
1238 -without-* |
--without-*)
1239 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_
$ac_package=no
;;
1248 # Obsolete; use --with-x.
1251 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1252 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1253 ac_prev
=x_includes
;;
1254 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1255 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1256 x_includes
=$ac_optarg ;;
1258 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1259 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1260 ac_prev
=x_libraries
;;
1261 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1262 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1263 x_libraries
=$ac_optarg ;;
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1271 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\
$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 if test -n "$ac_prev"; then
1291 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1292 { echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1296 # Be sure to have absolute directory names.
1297 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val
=\$
$ac_var
1304 [\\/$
]* | ?
:[\\/]* ) continue;;
1305 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target
=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x
; then
1320 if test "x$build_alias" = x
; then
1321 cross_compiling
=maybe
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1332 test "$silent" = yes && exec 6>/dev
/null
1335 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di
=`ls -di .` &&
1337 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1338 { echo "$as_me: error: Working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted
=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir
=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$0" : 'X\(//\)[^/]' \| \
1352 X"$0" : 'X\(//\)$' \| \
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted
=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var
in $ac_precious_vars; do
1400 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1402 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1476 --build=BUILD configure
for building on BUILD
[guessed
]
1477 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1481 if test -n "$ac_init_help"; then
1486 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1487 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1488 --enable-tracegc add gc tracing
(for debugging
)
1489 --enable-tracealloc add object allocation tracing
(for debugging
)
1490 --enable-tracefnlz add object finalisation tracing
(for debugging
)
1491 --enable-tracedll add library loading
/lookup tracing
(for debugging
)
1492 --enable-tracelock add object locking tracing
(for debugging
)
1493 --enable-tracethread add thread creation tracing
(for debugging
)
1494 --enable-tracecompact add GC compaction phase tracing
(for debugging
)
1495 --enable-tracedirect add interpreter direct-mode tracing
(for debugging
)
1496 --enable-traceinlining add interpreter inlining tracing
(for debugging
)
1497 --enable-trace add all tracing
(for debugging
)
1498 --enable-int-threading enable threaded version of the interpreter
(default
1500 --enable-int-direct enable direct threaded version of the interpreter
1502 --enable-int-caching enable stack-caching version of the interpreter
1503 (disabled by default on x86-64
, enabled otherwise
)
1504 --enable-int-prefetch enable prefetching version of the interpreter
(by
1505 default enabled on powerpc
, disabled otherwise
)
1506 --enable-runtime-reloc-checks
1507 compute relocatability
at runtime
(inlining
1509 --enable-int-inlining enable inline threaded version of the interpreter
1510 (by default enabled on x86_64
, i386 and powerpc
,
1512 --enable-ffi use libffi to call native methods
1513 --disable-zip turn-off
zip support
in the bootstrap loader
1514 --enable-static[=PKGS
] build static libraries
[default
=no
]
1515 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1516 --enable-fast-install[=PKGS
]
1517 optimize
for fast installation
[default
=yes]
1518 --disable-dependency-tracking speeds up one-time build
1519 --enable-dependency-tracking do not reject slow dependency extractors
1520 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1521 --enable-maintainer-mode enable make rules and dependencies not useful
1522 (and sometimes confusing
) to the casual installer
1525 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1526 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1527 --with-classpath-install-dir=<dir
>
1528 installation directory of GNU classpath
(default
1529 /usr
/local
/classpath
)
1530 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1531 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1533 --with-tags[=TAGS
] include additional configurations
[automatic
]
1535 Some influential environment variables
:
1536 CC C compiler
command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1539 nonstandard directory
<lib dir
>
1540 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1541 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1542 you have headers
in a nonstandard directory
<include dir
>
1544 CXX C
++ compiler
command
1545 CXXFLAGS C
++ compiler flags
1546 CXXCPP C
++ preprocessor
1547 F77 Fortran
77 compiler
command
1548 FFLAGS Fortran
77 compiler flags
1549 CCAS assembler compiler
command (defaults to CC
)
1550 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1552 Use these variables to override the choices made by
`configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" || continue
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1616 generated by GNU Autoconf 2.61
1618 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1625 cat >config.log <<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1629 It was created by $as_me, which was
1630 generated by GNU Autoconf 2.61. Invocation command line was
1642 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1643 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1644 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1645 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1646 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1648 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1649 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1651 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1652 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1653 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1654 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1655 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1656 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1657 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 echo "PATH: $as_dir"
1682 # Keep a trace of the command line.
1683 # Strip out --no-create and --no-recursion so they do not pile up.
1684 # Strip out --silent because we don't want to record it for future runs.
1685 # Also quote any args containing shell meta-characters.
1686 # Make two passes to allow for proper duplicate-argument suppression.
1690 ac_must_keep_next=false
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1701 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1704 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1719 -* ) ac_must_keep_next=true ;;
1722 ac_configure_args="$ac_configure_args '$ac_arg'"
1727 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1728 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730 # When interrupted or exit'd, cleanup temporary files, and complete
1731 # config.log. We remove comments because anyway the quotes in there
1732 # would cause problems or look ugly.
1733 # WARNING: Use '\'' to represent an apostrophe within the trap.
1734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735 trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1741 ## ---------------- ##
1742 ## Cache variables. ##
1743 ## ---------------- ##
1746 # The following way of writing the cache mishandles newlines in values,
1748 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1749 eval ac_val=\$$ac_var
1753 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1754 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1757 _ | IFS | as_nl) ;; #(
1758 *) $as_unset $ac_var ;;
1763 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1764 *${as_nl}ac_space=\ *)
1766 "s/'\''/'\''\\\\'\'''\''/g;
1767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1778 ## ----------------- ##
1779 ## Output variables. ##
1780 ## ----------------- ##
1783 for ac_var in $ac_subst_vars
1785 eval ac_val=\$$ac_var
1787 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 echo "$ac_var='\''$ac_val'\''"
1793 if test -n "$ac_subst_files"; then
1795 ## ------------------- ##
1796 ## File substitutions. ##
1797 ## ------------------- ##
1800 for ac_var in $ac_subst_files
1802 eval ac_val=\$$ac_var
1804 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 echo "$ac_var='\''$ac_val'\''"
1811 if test -s confdefs.h; then
1821 test "$ac_signal" != 0 &&
1822 echo "$as_me: caught signal $ac_signal"
1823 echo "$as_me: exit $exit_status"
1825 rm -f core *.core core.conftest.* &&
1826 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1829 for ac_signal in 1 2 13 15; do
1830 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1834 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1835 rm -f -r conftest* confdefs.h
1837 # Predefined preprocessor variables.
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_NAME "$PACKAGE_NAME"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_STRING "$PACKAGE_STRING"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1864 # Let the site file select an alternate cache file if it wants to.
1865 # Prefer explicitly selected file to automatically selected ones.
1866 if test -n "$CONFIG_SITE"; then
1867 set x "$CONFIG_SITE"
1868 elif test "x$prefix" != xNONE; then
1869 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 set x "$ac_default_prefix/share/config.site" \
1872 "$ac_default_prefix/etc/config.site"
1877 if test -r "$ac_site_file"; then
1878 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1879 echo "$as_me: loading site script $ac_site_file" >&6;}
1880 sed 's/^/| /' "$ac_site_file" >&5
1885 if test -r "$cache_file"; then
1886 # Some versions of bash will fail to source /dev/null (special
1887 # files actually), so we avoid doing that.
1888 if test -f "$cache_file"; then
1889 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1890 echo "$as_me: loading cache $cache_file" >&6;}
1892 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1893 *) . "./$cache_file";;
1897 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1898 echo "$as_me: creating cache $cache_file" >&6;}
1902 # Check that the precious variables saved in the cache have kept the same
1904 ac_cache_corrupted=false
1905 for ac_var in $ac_precious_vars; do
1906 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1907 eval ac_new_set=\$ac_env_${ac_var}_set
1908 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1909 eval ac_new_val=\$ac_env_${ac_var}_value
1910 case $ac_old_set,$ac_new_set in
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1913 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1916 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1917 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1921 if test "x$ac_old_val" != "x$ac_new_val"; then
1922 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1923 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1924 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1925 echo "$as_me: former value
: $ac_old_val" >&2;}
1926 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1927 echo "$as_me: current value
: $ac_new_val" >&2;}
1928 ac_cache_corrupted=:
1931 # Pass precious variables to config.status.
1932 if test "$ac_new_set" = set; then
1934 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1935 *) ac_arg=$ac_var=$ac_new_val ;;
1937 case " $ac_configure_args " in
1938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 if $ac_cache_corrupted; then
1944 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1945 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1946 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1947 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1948 { (exit 1); exit 1; }; }
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 am__api_version='1.10'
1977 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1978 if test -f "$ac_dir/install-sh"; then
1980 ac_install_sh="$ac_aux_dir/install-sh -c"
1982 elif test -f "$ac_dir/install.sh"; then
1984 ac_install_sh="$ac_aux_dir/install.sh -c"
1986 elif test -f "$ac_dir/shtool"; then
1988 ac_install_sh="$ac_aux_dir/shtool install -c"
1992 if test -z "$ac_aux_dir"; then
1993 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1994 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1995 { (exit 1); exit 1; }; }
1998 # These three variables are undocumented and unsupported,
1999 # and are intended to be withdrawn in a future Autoconf release.
2000 # They can cause serious problems if a builder's source tree is in a directory
2001 # whose full name contains unusual characters.
2002 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2003 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2004 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2007 # Find a good install program. We prefer a C program (faster),
2008 # so one script is as good as another. But avoid the broken or
2009 # incompatible versions:
2010 # SysV /etc/install, /usr/sbin/install
2011 # SunOS /usr/etc/install
2012 # IRIX /sbin/install
2014 # AmigaOS /C/install, which installs bootblocks on floppy discs
2015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2018 # OS/2's system install, which has a completely different semantic
2019 # ./install, which can be erroneously created by make from ./install.sh.
2020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2022 if test -z "$INSTALL"; then
2023 if test "${ac_cv_path_install+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 # Account for people who put trailing slashes in PATH elements.
2033 ./ | .// | /cC/* | \
2034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2038 # OSF1 and SCO ODT 3.0 have their own names for install.
2039 # Don't use installbsd from OSF since it installs stuff as root
2041 for ac_prog in ginstall scoinst install; do
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2044 if test $ac_prog = install &&
2045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046 # AIX install. It has an incompatible calling convention.
2048 elif test $ac_prog = install &&
2049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2050 # program-specific install script used by HP pwplus--don't use.
2053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2066 if test "${ac_cv_path_install+set}" = set; then
2067 INSTALL=$ac_cv_path_install
2069 # As a last resort, use the slow shell script. Don't cache a
2070 # value for INSTALL within a source directory, because that will
2071 # break other packages using the cache if that directory is
2072 # removed, or if the value is a relative name.
2073 INSTALL=$ac_install_sh
2076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2077 echo "${ECHO_T}$INSTALL" >&6; }
2079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2080 # It thinks the first close brace ends the variable substitution.
2081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2087 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2088 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2091 echo timestamp > conftest.file
2092 # Do `set' in a subshell so we don't clobber the current shell
's
2093 # arguments. Must try -L first in case configure is actually a
2094 # symlink; some systems play weird games with the mod time of symlinks
2095 # (eg FreeBSD returns the mod time of the symlink's containing
2098 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2099 if test "$*" = "X"; then
2101 set X
`ls -t $srcdir/configure conftest.file`
2104 if test "$*" != "X $srcdir/configure conftest.file" \
2105 && test "$*" != "X conftest.file $srcdir/configure"; then
2107 # If neither matched, then we have a broken ls. This can happen
2108 # if, for instance, CONFIG_SHELL is bash and it inherits a
2109 # broken ls alias from the environment. This has actually
2110 # happened. Such a system could not be considered "sane".
2111 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2112 alias in your environment" >&5
2113 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2114 alias in your environment" >&2;}
2115 { (exit 1); exit 1; }; }
2118 test "$2" = conftest.
file
2124 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2125 Check your system clock" >&5
2126 echo "$as_me: error: newly created file is older than distributed files!
2127 Check your system clock" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { echo "$as_me:$LINENO: result: yes" >&5
2131 echo "${ECHO_T}yes" >&6; }
2132 test "$program_prefix" != NONE
&&
2133 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2134 # Use a double $ so make ignores it.
2135 test "$program_suffix" != NONE
&&
2136 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2137 # Double any \ or $. echo might interpret backslashes.
2138 # By default was `s,x,x', remove it if useless.
2139 cat <<\_ACEOF
>conftest.
sed
2140 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2142 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2145 # expand $ac_aux_dir to an absolute path
2146 am_aux_dir
=`cd $ac_aux_dir && pwd`
2148 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2149 # Use eval to expand $SHELL
2150 if eval "$MISSING --run true"; then
2151 am_missing_run
="$MISSING --run "
2154 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2155 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2158 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2159 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2160 if test -z "$MKDIR_P"; then
2161 if test "${ac_cv_path_mkdir+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2165 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2168 test -z "$as_dir" && as_dir
=.
2169 for ac_prog
in mkdir gmkdir
; do
2170 for ac_exec_ext
in '' $ac_executable_extensions; do
2171 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2172 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2173 'mkdir (GNU coreutils) '* | \
2174 'mkdir (coreutils) '* | \
2175 'mkdir (fileutils) '4.1*)
2176 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2186 if test "${ac_cv_path_mkdir+set}" = set; then
2187 MKDIR_P
="$ac_cv_path_mkdir -p"
2189 # As a last resort, use the slow shell script. Don't cache a
2190 # value for MKDIR_P within a source directory, because that will
2191 # break other packages using the cache if that directory is
2192 # removed, or if the value is a relative name.
2193 test -d .
/--version && rmdir .
/--version
2194 MKDIR_P
="$ac_install_sh -d"
2197 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2198 echo "${ECHO_T}$MKDIR_P" >&6; }
2202 [\\/$
]* | ?
:[\\/]*) ;;
2203 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2206 for ac_prog
in gawk mawk nawk
awk
2208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2209 set dummy
$ac_prog; ac_word
=$2
2210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2212 if test "${ac_cv_prog_AWK+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 if test -n "$AWK"; then
2216 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir
=.
2223 for ac_exec_ext
in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_AWK
="$ac_prog"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 if test -n "$AWK"; then
2237 { echo "$as_me:$LINENO: result: $AWK" >&5
2238 echo "${ECHO_T}$AWK" >&6; }
2240 { echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6; }
2245 test -n "$AWK" && break
2248 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2249 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2250 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2251 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 cat >conftest.
make <<\_ACEOF
2257 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2264 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2268 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2269 { echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6; }
2273 { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 SET_MAKE
="MAKE=${MAKE-make}"
2278 rm -rf .tst
2>/dev
/null
2279 mkdir .tst
2>/dev
/null
2280 if test -d .tst
; then
2285 rmdir .tst
2>/dev
/null
2287 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2288 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2289 # is not polluted with repeated "-I."
2290 am__isrc
=' -I$(srcdir)'
2291 # test to see if srcdir already configured
2292 if test -f $srcdir/config.status
; then
2293 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2294 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2295 { (exit 1); exit 1; }; }
2299 # test whether we have cygpath
2300 if test -z "$CYGPATH_W"; then
2301 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2302 CYGPATH_W
='cygpath -w'
2309 # Define the identity of the package.
2314 cat >>confdefs.h
<<_ACEOF
2315 #define PACKAGE "$PACKAGE"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define VERSION "$VERSION"
2323 # Some tools Automake needs.
2325 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2328 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2331 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2334 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2337 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2339 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no
; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir
=.
2362 for ac_exec_ext
in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 STRIP
=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { echo "$as_me:$LINENO: result: $STRIP" >&5
2377 echo "${ECHO_T}$STRIP" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_STRIP"; then
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip
; ac_word
=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir
=.
2402 for ac_exec_ext
in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_STRIP
="strip"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2417 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_STRIP" = x
; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned
=yes ;;
2439 STRIP
="$ac_cv_prog_STRIP"
2443 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2445 # We need awk for the "check" target. The system "awk" is bad on
2447 # Always define AMTAR for backward compatibility.
2449 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2451 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2457 ac_config_headers
="$ac_config_headers src/config.h"
2461 # Make sure we can run config.sub.
2462 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2463 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2464 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2465 { (exit 1); exit 1; }; }
2467 { echo "$as_me:$LINENO: checking build system type" >&5
2468 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2469 if test "${ac_cv_build+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 ac_build_alias
=$build_alias
2473 test "x$ac_build_alias" = x
&&
2474 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2475 test "x$ac_build_alias" = x
&&
2476 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2477 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2478 { (exit 1); exit 1; }; }
2479 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2480 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2481 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2482 { (exit 1); exit 1; }; }
2485 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2486 echo "${ECHO_T}$ac_cv_build" >&6; }
2487 case $ac_cv_build in
2489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2490 echo "$as_me: error: invalid value of canonical build" >&2;}
2491 { (exit 1); exit 1; }; };;
2494 ac_save_IFS
=$IFS; IFS
='-'
2500 # Remember, the first character of IFS is used to create $*,
2501 # except with old shells:
2504 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2507 { echo "$as_me:$LINENO: checking host system type" >&5
2508 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2509 if test "${ac_cv_host+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test "x$host_alias" = x
; then
2513 ac_cv_host
=$ac_cv_build
2515 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2516 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2517 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2518 { (exit 1); exit 1; }; }
2522 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2523 echo "${ECHO_T}$ac_cv_host" >&6; }
2526 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2527 echo "$as_me: error: invalid value of canonical host" >&2;}
2528 { (exit 1); exit 1; }; };;
2531 ac_save_IFS
=$IFS; IFS
='-'
2537 # Remember, the first character of IFS is used to create $*,
2538 # except with old shells:
2541 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2546 i
[3456]86-*-linux*) host_cpu
=i386 host_os
=linux
;;
2547 i
[3456]86-*-kfreebsd*) host_cpu
=i386 host_os
=linux
;;
2548 i
[3456]86-*-darwin*) host_cpu
=i386 host_os
=darwin
;;
2549 i386-
*-openbsd*) host_os
=bsd libdl_needed
=no
;;
2550 i386-
*-freebsd*) host_os
=bsd libdl_needed
=no
;;
2551 x86_64-
*-linux*) host_os
=linux
;;
2552 hppa
*-*-linux*) host_cpu
=parisc host_os
=linux
;;
2553 avr32
*-*-linux*) host_cpu
=avr32 host_os
=linux
;;
2554 mipsel-
*-linux*) host_cpu
=mips host_os
=linux
;;
2555 amd64-
*-openbsd*) host_os
=bsd libdl_needed
=no
;;
2556 amd64-
*-freebsd*) host_os
=bsd libdl_needed
=no
;;
2557 arm
*-*-linux*) host_cpu
=arm host_os
=linux
;;
2558 arm
*-*-openbsd*) host_cpu
=arm host_os
=bsd libdl_needed
=no
;;
2559 arm
*-*-freebsd*) host_cpu
=arm host_os
=bsd libdl_needed
=no
;;
2560 powerpc
*-*-linux*) host_cpu
=powerpc host_os
=linux
;;
2561 powerpc
*-*-openbsd*) host_cpu
=powerpc host_os
=bsd libdl_needed
=no
;;
2562 powerpc
*-*-freebsd*) host_cpu
=powerpc host_os
=bsd libdl_needed
=no
;;
2563 powerpc-
*-darwin*) host_os
=darwin
;;
2564 *) { { echo "$as_me:$LINENO: error: $host not supported" >&5
2565 echo "$as_me: error: $host not supported" >&2;}
2566 { (exit 1); exit 1; }; } ;;
2574 # Check whether --enable-tracegc was given.
2575 if test "${enable_tracegc+set}" = set; then
2576 enableval
=$enable_tracegc; if test "$enableval" != no
; then
2578 cat >>confdefs.h
<<\_ACEOF
2586 # Check whether --enable-tracealloc was given.
2587 if test "${enable_tracealloc+set}" = set; then
2588 enableval
=$enable_tracealloc; if test "$enableval" != no
; then
2590 cat >>confdefs.h
<<\_ACEOF
2591 #define TRACEALLOC 1
2598 # Check whether --enable-tracefnlz was given.
2599 if test "${enable_tracefnlz+set}" = set; then
2600 enableval
=$enable_tracefnlz; if test "$enableval" != no
; then
2602 cat >>confdefs.h
<<\_ACEOF
2610 # Check whether --enable-tracedll was given.
2611 if test "${enable_tracedll+set}" = set; then
2612 enableval
=$enable_tracedll; if test "$enableval" != no
; then
2614 cat >>confdefs.h
<<\_ACEOF
2622 # Check whether --enable-tracelock was given.
2623 if test "${enable_tracelock+set}" = set; then
2624 enableval
=$enable_tracelock; if test "$enableval" != no
; then
2626 cat >>confdefs.h
<<\_ACEOF
2634 # Check whether --enable-tracethread was given.
2635 if test "${enable_tracethread+set}" = set; then
2636 enableval
=$enable_tracethread; if test "$enableval" != no
; then
2638 cat >>confdefs.h
<<\_ACEOF
2639 #define TRACETHREAD 1
2646 # Check whether --enable-tracecompact was given.
2647 if test "${enable_tracecompact+set}" = set; then
2648 enableval
=$enable_tracecompact; if test "$enableval" != no
; then
2650 cat >>confdefs.h
<<\_ACEOF
2651 #define TRACECOMPACT 1
2658 # Check whether --enable-tracedirect was given.
2659 if test "${enable_tracedirect+set}" = set; then
2660 enableval
=$enable_tracedirect; if test "$enableval" != no
; then
2662 cat >>confdefs.h
<<\_ACEOF
2663 #define TRACEDIRECT 1
2670 # Check whether --enable-traceinlining was given.
2671 if test "${enable_traceinlining+set}" = set; then
2672 enableval
=$enable_traceinlining; if test "$enableval" != no
; then
2674 cat >>confdefs.h
<<\_ACEOF
2675 #define TRACEINLINING 1
2682 # Check whether --enable-trace was given.
2683 if test "${enable_trace+set}" = set; then
2684 enableval
=$enable_trace; if test "$enableval" != no
; then
2686 cat >>confdefs.h
<<\_ACEOF
2691 cat >>confdefs.h
<<\_ACEOF
2692 #define TRACEALLOC 1
2696 cat >>confdefs.h
<<\_ACEOF
2701 cat >>confdefs.h
<<\_ACEOF
2706 cat >>confdefs.h
<<\_ACEOF
2711 cat >>confdefs.h
<<\_ACEOF
2712 #define TRACETHREAD 1
2716 cat >>confdefs.h
<<\_ACEOF
2717 #define TRACECOMPACT 1
2721 cat >>confdefs.h
<<\_ACEOF
2722 #define TRACEDIRECT 1
2726 cat >>confdefs.h
<<\_ACEOF
2727 #define TRACEINLINING 1
2734 # Check whether --enable-int-threading was given.
2735 if test "${enable_int_threading+set}" = set; then
2736 enableval
=$enable_int_threading;
2740 # Check whether --enable-int-direct was given.
2741 if test "${enable_int_direct+set}" = set; then
2742 enableval
=$enable_int_direct;
2746 # Check whether --enable-int-caching was given.
2747 if test "${enable_int_caching+set}" = set; then
2748 enableval
=$enable_int_caching;
2750 if test "$host_cpu" = x86_64
; then
2751 enable_int_caching
=no
2756 # Check whether --enable-int-prefetch was given.
2757 if test "${enable_int_prefetch+set}" = set; then
2758 enableval
=$enable_int_prefetch;
2760 if test "$host_cpu" != powerpc
; then
2761 enable_int_prefetch
=no
2766 # Check whether --enable-runtime-reloc-checks was given.
2767 if test "${enable_runtime_reloc_checks+set}" = set; then
2768 enableval
=$enable_runtime_reloc_checks;
2770 enable_runtime_reloc_checks
=no
2774 # Check whether --enable-int-inlining was given.
2775 if test "${enable_int_inlining+set}" = set; then
2776 enableval
=$enable_int_inlining;
2778 if test "$host_cpu" = x86_64
-o "$host_cpu" = i386
-o "$host_cpu" = powerpc
&& \
2779 test "$cross_compiling" = no
-o "$enable_runtime_reloc_checks" != no
; then
2780 enable_int_inlining
=yes
2782 enable_int_inlining
=no
2787 if test "$enable_int_threading" != no
; then
2789 cat >>confdefs.h
<<\_ACEOF
2794 if test "$enable_int_caching" != no
; then
2796 cat >>confdefs.h
<<\_ACEOF
2802 if test "$enable_int_direct" != no
; then
2804 cat >>confdefs.h
<<\_ACEOF
2809 if test "$enable_int_prefetch" != no
; then
2811 cat >>confdefs.h
<<\_ACEOF
2817 if test "$enable_int_inlining" != no
; then
2819 cat >>confdefs.h
<<\_ACEOF
2823 interp_cflags
=-fno-reorder-blocks
2825 if test "$enable_runtime_reloc_checks" != no
; then
2827 cat >>confdefs.h
<<\_ACEOF
2828 #define RUNTIME_RELOC_CHECKS 1
2832 compile_time_reloc_checks
=yes
2839 if test "$compile_time_reloc_checks" = yes; then
2840 COMPILE_TIME_RELOC_CHECKS_TRUE
=
2841 COMPILE_TIME_RELOC_CHECKS_FALSE
='#'
2843 COMPILE_TIME_RELOC_CHECKS_TRUE
='#'
2844 COMPILE_TIME_RELOC_CHECKS_FALSE
=
2848 # Check whether --enable-ffi was given.
2849 if test "${enable_ffi+set}" = set; then
2850 enableval
=$enable_ffi;
2852 if test "$host_cpu" != x86_64
-a "$host_cpu" != parisc
; then
2859 # Check whether --with-classpath-install-dir was given.
2860 if test "${with_classpath_install_dir+set}" = set; then
2861 withval
=$with_classpath_install_dir;
2863 with_classpath_install_dir
=/usr
/local
/classpath
2868 cat >>confdefs.h
<<_ACEOF
2869 #define CLASSPATH_INSTALL_DIR "$with_classpath_install_dir"
2875 if test "$prefix" = "NONE"; then
2876 install_dir
=$ac_default_prefix
2881 cat >>confdefs.h
<<_ACEOF
2882 #define INSTALL_DIR "$install_dir"
2886 # Check whether --enable-zip was given.
2887 if test "${enable_zip+set}" = set; then
2888 enableval
=$enable_zip;
2892 # Check whether --enable-static was given.
2893 if test "${enable_static+set}" = set; then
2894 enableval
=$enable_static; p
=${PACKAGE-default}
2896 yes) enable_static
=yes ;;
2897 no
) enable_static
=no
;;
2900 # Look at the argument we got. We use all the common list separators.
2901 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
2902 for pkg
in $enableval; do
2904 if test "X$pkg" = "X$p"; then
2917 # Check whether --enable-shared was given.
2918 if test "${enable_shared+set}" = set; then
2919 enableval
=$enable_shared; p
=${PACKAGE-default}
2921 yes) enable_shared
=yes ;;
2922 no
) enable_shared
=no
;;
2925 # Look at the argument we got. We use all the common list separators.
2926 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
2927 for pkg
in $enableval; do
2929 if test "X$pkg" = "X$p"; then
2941 # Check whether --enable-fast-install was given.
2942 if test "${enable_fast_install+set}" = set; then
2943 enableval
=$enable_fast_install; p
=${PACKAGE-default}
2945 yes) enable_fast_install
=yes ;;
2946 no
) enable_fast_install
=no
;;
2948 enable_fast_install
=no
2949 # Look at the argument we got. We use all the common list separators.
2950 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
2951 for pkg
in $enableval; do
2953 if test "X$pkg" = "X$p"; then
2954 enable_fast_install
=yes
2961 enable_fast_install
=yes
2965 DEPDIR
="${am__leading_dot}deps"
2967 ac_config_commands
="$ac_config_commands depfiles"
2970 am_make
=${MAKE-make}
2971 cat > confinc
<< 'END'
2976 # If we don't find an include directive, just comment out the code.
2977 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2978 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2982 # First try GNU make style include.
2983 echo "include confinc" > confmf
2984 # We grep out `Entering directory' and `Leaving directory'
2985 # messages which can occur if `w' ends up in MAKEFLAGS.
2986 # In particular we don't look at `^make:' because GNU make might
2987 # be invoked under some other name (usually "gmake"), in which
2988 # case it prints its new name instead of `make'.
2989 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2994 # Now try BSD make style include.
2995 if test "$am__include" = "#"; then
2996 echo '.include "confinc"' > confmf
2997 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2998 am__include
=.include
3005 { echo "$as_me:$LINENO: result: $_am_result" >&5
3006 echo "${ECHO_T}$_am_result" >&6; }
3007 rm -f confinc confmf
3009 # Check whether --enable-dependency-tracking was given.
3010 if test "${enable_dependency_tracking+set}" = set; then
3011 enableval
=$enable_dependency_tracking;
3014 if test "x$enable_dependency_tracking" != xno
; then
3015 am_depcomp
="$ac_aux_dir/depcomp"
3018 if test "x$enable_dependency_tracking" != xno; then
3028 ac_cpp
='$CPP $CPPFLAGS'
3029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3037 if test "${ac_cv_prog_CC+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC
="$CC" # Let the user override the test.
3043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir
=.
3048 for ac_exec_ext
in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6; }
3065 { echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6; }
3071 if test -z "$ac_cv_prog_CC"; then
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc
; ac_word
=$2
3075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir
=.
3088 for ac_exec_ext
in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC
="gcc"
3091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3103 echo "${ECHO_T}$ac_ct_CC" >&6; }
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3109 if test "x$ac_ct_CC" = x
; then
3112 case $cross_compiling:$ac_tool_warned in
3114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&5
3117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3118 whose name does not start with the host triplet. If you think this
3119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3120 ac_tool_warned
=yes ;;
3128 if test -z "$CC"; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC
="$CC" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { echo "$as_me:$LINENO: result: $CC" >&5
3160 echo "${ECHO_T}$CC" >&6; }
3162 { echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6; }
3169 if test -z "$CC"; then
3170 # Extract the first word of "cc", so it can be a program name with args.
3171 set dummy cc
; ac_word
=$2
3172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC
="$CC" # Let the user override the test.
3181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir
=.
3186 for ac_exec_ext
in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189 ac_prog_rejected
=yes
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test $ac_prog_rejected = yes; then
3201 # We found a bogon in the path, so make sure we never use it.
3202 set dummy
$ac_cv_prog_CC
3204 if test $# != 0; then
3205 # We chose a different compiler from the bogus one.
3206 # However, it has the same basename, so the bogon will be chosen
3207 # first if we set CC to just the basename; use the full file name.
3209 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3215 if test -n "$CC"; then
3216 { echo "$as_me:$LINENO: result: $CC" >&5
3217 echo "${ECHO_T}$CC" >&6; }
3219 { echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6; }
3225 if test -z "$CC"; then
3226 if test -n "$ac_tool_prefix"; then
3227 for ac_prog
in cl.exe
3229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3233 if test "${ac_cv_prog_CC+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC
="$CC" # Let the user override the test.
3239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir
=.
3244 for ac_exec_ext
in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 if test -n "$CC"; then
3258 { echo "$as_me:$LINENO: result: $CC" >&5
3259 echo "${ECHO_T}$CC" >&6; }
3261 { echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6; }
3266 test -n "$CC" && break
3269 if test -z "$CC"; then
3271 for ac_prog
in cl.exe
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy
$ac_prog; ac_word
=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_ac_ct_CC
="$ac_prog"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3303 echo "${ECHO_T}$ac_ct_CC" >&6; }
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 test -n "$ac_ct_CC" && break
3313 if test "x$ac_ct_CC" = x
; then
3316 case $cross_compiling:$ac_tool_warned in
3318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&5
3321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3322 whose name does not start with the host triplet. If you think this
3323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3324 ac_tool_warned
=yes ;;
3333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3334 See \`config.log' for more details." >&5
3335 echo "$as_me: error: no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3339 # Provide some information about the compiler.
3340 echo "$as_me:$LINENO: checking for C compiler version" >&5
3341 ac_compiler
=`set X $ac_compile; echo $2`
3342 { (ac_try
="$ac_compiler --version >&5"
3344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_compiler --version >&5") 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352 { (ac_try="$ac_compiler -v >&5"
3354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3355 *) ac_try_echo
=$ac_try;;
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try
="$ac_compiler -V >&5"
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compiler -V >&5") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3388 ac_clean_files_save=$ac_clean_files
3389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3390 # Try to create an executable without -o first, disregard a.out.
3391 # It will help us diagnose broken compilers, and finding out an intuition
3393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3395 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3397 # List of possible output files, starting from the most likely.
3398 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3399 # only as a last resort. b.out is created by i960 compilers.
3400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3402 # The IRIX 6 linker writes into existing files which may not be
3403 # executable, retaining their permissions. Remove them first so a
3404 # subsequent execution test works.
3406 for ac_file in $ac_files
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 if { (ac_try="$ac_link_default"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_link_default") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; then
3425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3428 # so that the user can short-circuit this test for compilers unknown to
3430 for ac_file
in $ac_files ''
3432 test -f "$ac_file" ||
continue
3434 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3437 # We found the default executable, but exeext='' is most
3441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3443 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 # We set ac_cv_exeext here because the later test for it is not
3446 # safe: cross compilers may not add the suffix if given an `-o'
3447 # argument, so we may need to know it at that point already.
3448 # Even if this section looks crufty: it has the advantage of
3455 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3461 { echo "$as_me:$LINENO: result: $ac_file" >&5
3462 echo "${ECHO_T}$ac_file" >&6; }
3463 if test -z "$ac_file"; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.
$ac_ext >&5
3467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C compiler cannot create executables
3470 See \`config.log' for more details." >&2;}
3471 { (exit 77); exit 77; }; }
3474 ac_exeext
=$ac_cv_exeext
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3481 # If not cross compiling, check that we can run a simple program.
3482 if test "$cross_compiling" != yes; then
3483 if { ac_try
='./$ac_file'
3484 { (case "(($ac_try" in
3485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_try") 2>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3495 if test "$cross_compiling" = maybe; then
3498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3499 If you meant to cross compile, use \`--host'.
3500 See \`config.log' for more details.
" >&5
3501 echo "$as_me: error
: cannot run C compiled programs.
3502 If you meant to cross compile
, use \
`--host'.
3503 See \`config.log
' for more details." >&2;}
3504 { (exit 1); exit 1; }; }
3508 { echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6; }
3511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3512 ac_clean_files=$ac_clean_files_save
3513 # Check that the compiler produces executables we can run. If not, either
3514 # the compiler is broken, or we cross compile.
3515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3518 echo "${ECHO_T}$cross_compiling" >&6; }
3520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3522 if { (ac_try="$ac_link"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_link") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; then
3532 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3533 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3534 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3536 for ac_file
in conftest.exe conftest conftest.
*; do
3537 test -f "$ac_file" ||
continue
3539 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3540 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3547 See \`config.log' for more details." >&5
3548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3549 See \`config.log' for more details." >&2;}
3550 { (exit 1); exit 1; }; }
3553 rm -f conftest
$ac_cv_exeext
3554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3557 rm -f conftest.
$ac_ext
3558 EXEEXT
=$ac_cv_exeext
3560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3562 if test "${ac_cv_objext+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 cat >conftest.
$ac_ext <<_ACEOF
3568 cat confdefs.h
>>conftest.
$ac_ext
3569 cat >>conftest.
$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3580 rm -f conftest.o conftest.obj
3581 if { (ac_try
="$ac_compile"
3583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log
' for more details." >&5
3605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details.
" >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3613 echo "${ECHO_T}$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3617 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 echo $ECHO_N "(cached
) $ECHO_C" >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 echo "$as_me: failed program was
:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3670 GCC=`test $ac_compiler_gnu = yes && echo yes`
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3674 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3675 if test "${ac_cv_prog_cc_g+set}" = set; then
3676 echo $ECHO_N "(cached
) $ECHO_C" >&6
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3716 echo "$as_me: failed program was
:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3754 echo "$as_me: failed program was
:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_c_werror_flag=$ac_save_c_werror_flag
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3793 echo "$as_me: failed program was
:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3826 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then
3828 echo $ECHO_N "(cached
) $ECHO_C" >&6
3830 ac_cv_prog_cc_c89=no
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3840 #include <sys/types.h>
3841 #include <sys/stat.h>
3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3843 struct buf { int x; };
3844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845 static char *e (p, i)
3851 static char *f (char * (*g) (char **, int), char **p, ...)
3856 s = g (p, va_arg (v,int));
3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3862 function prototypes and stuff, but not '\xHH' hex character constants.
3863 These don't provoke an error unfortunately, instead are silently treated
3864 as 'x'. The following induces an error, until -std is added to get
3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3866 array size at least. It's necessary to write '\x00'==0 to get something
3867 that's true only with -std. */
3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3871 inside strings and character constants. */
3873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3875 int test (int i, double x);
3876 struct s1 {int (*f) (int a);};
3877 struct s2 {int (*f) (double a);};
3878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3892 CC="$ac_save_CC $ac_arg"
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3910 ac_cv_prog_cc_c89=$ac_arg
3912 echo "$as_me: failed program was
:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext
3919 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3921 rm -f conftest.$ac_ext
3926 case "x
$ac_cv_prog_cc_c89" in
3928 { echo "$as_me:$LINENO: result
: none needed
" >&5
3929 echo "${ECHO_T}none needed
" >&6; } ;;
3931 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3932 echo "${ECHO_T}unsupported
" >&6; } ;;
3934 CC="$CC $ac_cv_prog_cc_c89"
3935 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 depcc="$CC" am_compiler_list=
3948 { echo "$as_me:$LINENO: checking dependency style of
$depcc" >&5
3949 echo $ECHO_N "checking dependency style of
$depcc...
$ECHO_C" >&6; }
3950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3951 echo $ECHO_N "(cached
) $ECHO_C" >&6
3953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3954 # We make a subdir and do the tests there. Otherwise we can end up
3955 # making bogus files that we don't know about and never remove. For
3956 # instance it was reported that on HP-UX the gcc test will end up
3957 # making a dummy file named `D' -- because `-MD' means `put the output
3960 # Copy depcomp to subdir because otherwise we won't find it if we're
3961 # using a relative directory.
3962 cp "$am_depcomp" conftest.dir
3964 # We will build objects and dependencies in a subdirectory because
3965 # it helps to detect inapplicable dependency modes. For instance
3966 # both Tru64's cc and ICC support -MD to output dependencies as a
3967 # side effect of compilation, but ICC will put the dependencies in
3968 # the current directory while Tru64 will put them in the object
3972 am_cv_CC_dependencies_compiler_type=none
3973 if test "$am_compiler_list" = ""; then
3974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3976 for depmode in $am_compiler_list; do
3977 # Setup a source with many dependencies, because some compilers
3978 # like to wrap large dependency lists on column 80 (with \), and
3979 # we should not choose a depcomp mode which is confused by this.
3981 # We need to recreate these files for each test, as the compiler may
3982 # overwrite some of them when testing with obscure command lines.
3983 # This happens at least with the AIX C compiler.
3985 for i in 1 2 3 4 5 6; do
3986 echo '#include "conftst
'$i'.h
"' >> sub/conftest.c
3987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3988 # Solaris 8's {/usr,}/bin/sh.
3989 touch sub/conftst$i.h
3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3995 # after this tag, mechanisms are not by side-effect, so they'll
3996 # only be used when explicitly requested
3997 if test "x
$enable_dependency_tracking" = xyes; then
4005 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
4006 # mode. It turns out that the SunPro C++ compiler does not properly
4007 # handle `-M -o', and we need to detect this.
4008 if depmode=$depmode \
4009 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4011 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4012 >/dev/null 2>conftest.err &&
4013 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4015 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4017 # icc doesn't choke on unknown options, it will just issue warnings
4018 # or remarks (even with -Werror). So we grep stderr for any message
4019 # that says an option was ignored or not supported.
4020 # When given -MP, icc 7.0 and 7.1 complain thusly:
4021 # icc: Command line warning: ignoring option '-M'; no argument required
4022 # The diagnosis changed in icc 8.0:
4023 # icc: Command line remark: option '-MP' not supported
4024 if (grep 'ignoring option' conftest.err ||
4025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4026 am_cv_CC_dependencies_compiler_type=$depmode
4035 am_cv_CC_dependencies_compiler_type=none
4039 { echo "$as_me:$LINENO: result
: $am_cv_CC_dependencies_compiler_type" >&5
4040 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4044 test "x
$enable_dependency_tracking" != xno \
4045 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4047 am__fastdepCC_FALSE='#'
4049 am__fastdepCC_TRUE='#'
4050 am__fastdepCC_FALSE=
4054 { echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
4055 echo $ECHO_N "checking
for a
sed that does not truncate output...
$ECHO_C" >&6; }
4056 if test "${lt_cv_path_SED+set}" = set; then
4057 echo $ECHO_N "(cached
) $ECHO_C" >&6
4059 # Loop through the user's path and test for sed and gsed.
4060 # Then use that list of sed's as ones to test for truncation.
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 test -z "$as_dir" && as_dir=.
4066 for lt_ac_prog in sed gsed; do
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4069 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4078 # along with /bin/sed that truncates output.
4079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4080 test ! -f $lt_ac_sed && continue
4081 cat /dev/null > conftest.in
4083 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4084 # Check for GNU sed and select it if it is found.
4085 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4086 lt_cv_path_SED=$lt_ac_sed
4090 cat conftest.in conftest.in >conftest.tmp
4091 mv conftest.tmp conftest.in
4092 cp conftest.in conftest.nl
4094 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4095 cmp -s conftest.out conftest.nl || break
4096 # 10000 chars as input seems more than enough
4097 test $lt_ac_count -gt 10 && break
4098 lt_ac_count=`expr $lt_ac_count + 1`
4099 if test $lt_ac_count -gt $lt_ac_max; then
4100 lt_ac_max=$lt_ac_count
4101 lt_cv_path_SED=$lt_ac_sed
4110 { echo "$as_me:$LINENO: result
: $SED" >&5
4111 echo "${ECHO_T}$SED" >&6; }
4113 { echo "$as_me:$LINENO: checking
for grep that handles long lines and
-e" >&5
4114 echo $ECHO_N "checking
for grep that handles long lines and
-e...
$ECHO_C" >&6; }
4115 if test "${ac_cv_path_GREP+set}" = set; then
4116 echo $ECHO_N "(cached
) $ECHO_C" >&6
4118 # Extract the first word of "grep ggrep
" to use in msg output
4119 if test -z "$GREP"; then
4120 set dummy grep ggrep; ac_prog_name=$2
4121 if test "${ac_cv_path_GREP+set}" = set; then
4122 echo $ECHO_N "(cached
) $ECHO_C" >&6
4124 ac_path_GREP_found=false
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4130 test -z "$as_dir" && as_dir=.
4131 for ac_prog in grep ggrep; do
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136 # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4142 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
4145 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4146 mv "conftest.tmp
" "conftest.
in"
4147 cp "conftest.
in" "conftest.
nl"
4148 echo 'GREP' >> "conftest.
nl"
4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4150 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4151 ac_count=`expr $ac_count + 1`
4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP="$ac_path_GREP"
4155 ac_path_GREP_max=$ac_count
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 $ac_path_GREP_found && break 3
4174 GREP="$ac_cv_path_GREP"
4175 if test -z "$GREP"; then
4176 { { echo "$as_me:$LINENO: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&5
4177 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
4178 { (exit 1); exit 1; }; }
4182 ac_cv_path_GREP=$GREP
4187 { echo "$as_me:$LINENO: result
: $ac_cv_path_GREP" >&5
4188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4189 GREP="$ac_cv_path_GREP"
4192 { echo "$as_me:$LINENO: checking
for egrep" >&5
4193 echo $ECHO_N "checking
for egrep...
$ECHO_C" >&6; }
4194 if test "${ac_cv_path_EGREP+set}" = set; then
4195 echo $ECHO_N "(cached
) $ECHO_C" >&6
4197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4198 then ac_cv_path_EGREP="$GREP -E"
4200 # Extract the first word of "egrep" to use in msg output
4201 if test -z "$EGREP"; then
4202 set dummy egrep; ac_prog_name=$2
4203 if test "${ac_cv_path_EGREP+set}" = set; then
4204 echo $ECHO_N "(cached
) $ECHO_C" >&6
4206 ac_path_EGREP_found=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in egrep; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4217 # Check for GNU ac_path_EGREP and select it if it is found.
4218 # Check for GNU $ac_path_EGREP
4219 case `"$ac_path_EGREP" --version 2>&1` in
4221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.
in"
4227 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4228 mv "conftest.tmp
" "conftest.
in"
4229 cp "conftest.
in" "conftest.
nl"
4230 echo 'EGREP' >> "conftest.
nl"
4231 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4232 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4233 ac_count=`expr $ac_count + 1`
4234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_EGREP="$ac_path_EGREP"
4237 ac_path_EGREP_max=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 $ac_path_EGREP_found && break 3
4256 EGREP="$ac_cv_path_EGREP"
4257 if test -z "$EGREP"; then
4258 { { echo "$as_me:$LINENO: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&5
4259 echo "$as_me: error
: no acceptable
$ac_prog_name could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" >&2;}
4260 { (exit 1); exit 1; }; }
4264 ac_cv_path_EGREP=$EGREP
4270 { echo "$as_me:$LINENO: result
: $ac_cv_path_EGREP" >&5
4271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4272 EGREP="$ac_cv_path_EGREP"
4276 # Check whether --with-gnu-ld was given.
4277 if test "${with_gnu_ld+set}" = set; then
4278 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4284 if test "$GCC" = yes; then
4285 # Check if gcc -print-prog-name=ld gives a path.
4286 { echo "$as_me:$LINENO: checking
for ld used by
$CC" >&5
4287 echo $ECHO_N "checking
for ld used by
$CC...
$ECHO_C" >&6; }
4290 # gcc leaves a trailing carriage return which upsets mingw
4291 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4293 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4296 # Accept absolute paths.
4298 re_direlt='/[^/][^/]*/\.\./'
4299 # Canonicalize the pathname of ld
4300 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4301 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4302 ac_prog=`echo $ac_prog| $SED "s
%$re_direlt%/%"`
4304 test -z "$LD" && LD="$ac_prog"
4307 # If it fails, then pretend we aren't using GCC.
4311 # If it is relative, then search for the first ld in PATH.
4315 elif test "$with_gnu_ld" = yes; then
4316 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
4317 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
4319 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
4320 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
4322 if test "${lt_cv_path_LD+set}" = set; then
4323 echo $ECHO_N "(cached
) $ECHO_C" >&6
4325 if test -z "$LD"; then
4326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4327 for ac_dir in $PATH; do
4329 test -z "$ac_dir" && ac_dir=.
4330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4331 lt_cv_path_LD="$ac_dir/$ac_prog"
4332 # Check to see if the program is GNU ld. I'd rather use --version,
4333 # but apparently some variants of GNU ld only accept -v.
4334 # Break only if it was the GNU/non-GNU ld that we prefer.
4335 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4336 *GNU* | *'with BFD'*)
4337 test "$with_gnu_ld" != no && break
4340 test "$with_gnu_ld" != yes && break
4347 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4352 if test -n "$LD"; then
4353 { echo "$as_me:$LINENO: result
: $LD" >&5
4354 echo "${ECHO_T}$LD" >&6; }
4356 { echo "$as_me:$LINENO: result
: no
" >&5
4357 echo "${ECHO_T}no
" >&6; }
4359 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
4360 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
4361 { (exit 1); exit 1; }; }
4362 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
4363 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
4364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4365 echo $ECHO_N "(cached
) $ECHO_C" >&6
4367 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4368 case `$LD -v 2>&1 </dev/null` in
4369 *GNU* | *'with BFD'*)
4370 lt_cv_prog_gnu_ld=yes
4373 lt_cv_prog_gnu_ld=no
4377 { echo "$as_me:$LINENO: result
: $lt_cv_prog_gnu_ld" >&5
4378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4379 with_gnu_ld=$lt_cv_prog_gnu_ld
4382 { echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4383 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6; }
4384 if test "${lt_cv_ld_reload_flag+set}" = set; then
4385 echo $ECHO_N "(cached
) $ECHO_C" >&6
4387 lt_cv_ld_reload_flag='-r'
4389 { echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4391 reload_flag=$lt_cv_ld_reload_flag
4392 case $reload_flag in
4394 *) reload_flag=" $reload_flag" ;;
4396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4399 if test "$GCC" = yes; then
4400 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4407 { echo "$as_me:$LINENO: checking
for BSD-compatible nm
" >&5
4408 echo $ECHO_N "checking
for BSD-compatible nm...
$ECHO_C" >&6; }
4409 if test "${lt_cv_path_NM+set}" = set; then
4410 echo $ECHO_N "(cached
) $ECHO_C" >&6
4412 if test -n "$NM"; then
4413 # Let the user override the test.
4416 lt_nm_to_check="${ac_tool_prefix}nm
"
4417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4418 lt_nm_to_check="$lt_nm_to_check nm
"
4420 for lt_tmp_nm in $lt_nm_to_check; do
4421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4424 test -z "$ac_dir" && ac_dir=.
4425 tmp_nm="$ac_dir/$lt_tmp_nm"
4426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4427 # Check to see if the nm accepts a BSD-compat flag.
4428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4429 # nm: unknown option "B
" ignored
4430 # Tru64's nm complains that /dev/null is an invalid object file
4431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4432 */dev/null* | *'Invalid file or object type'*)
4433 lt_cv_path_NM="$tmp_nm -B"
4437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4439 lt_cv_path_NM="$tmp_nm -p"
4443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4444 continue # so that we can try to find one that supports BSD flags
4453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4456 { echo "$as_me:$LINENO: result
: $lt_cv_path_NM" >&5
4457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4460 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
4461 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
4463 if test "$LN_S" = "ln -s"; then
4464 { echo "$as_me:$LINENO: result
: yes" >&5
4465 echo "${ECHO_T}yes" >&6; }
4467 { echo "$as_me:$LINENO: result
: no
, using
$LN_S" >&5
4468 echo "${ECHO_T}no
, using
$LN_S" >&6; }
4471 { echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
4472 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6; }
4473 if test "${lt_cv_deplibs_check_method+set}" = set; then
4474 echo $ECHO_N "(cached
) $ECHO_C" >&6
4476 lt_cv_file_magic_cmd='$MAGIC_CMD'
4477 lt_cv_file_magic_test_file=
4478 lt_cv_deplibs_check_method='unknown'
4479 # Need to set the preceding variable on all platforms that support
4480 # interlibrary dependencies.
4481 # 'none' -- dependencies not supported.
4482 # `unknown' -- same as none, but documents that we really don't know.
4483 # 'pass_all' -- all dependencies passed with no checks.
4484 # 'test_compile' -- check by making test program.
4485 # 'file_magic [[regex]]' -- check by looking for files in library path
4486 # which responds to the $file_magic_cmd with a given extended regex.
4487 # If you have `file' or equivalent on your system and you're not sure
4488 # whether `pass_all' will *always* work, you probably want this one.
4492 lt_cv_deplibs_check_method=pass_all
4496 lt_cv_deplibs_check_method=pass_all
4500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4501 lt_cv_file_magic_cmd='/usr/bin/file -L'
4502 lt_cv_file_magic_test_file=/shlib/libc.so
4506 # func_win32_libid is a shell function defined in ltmain.sh
4507 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4508 lt_cv_file_magic_cmd='func_win32_libid'
4512 # Base MSYS/MinGW do not provide the 'file' command needed by
4513 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4514 # unless we find 'file', for example because we are cross-compiling.
4515 if ( file / ) >/dev/null 2>&1; then
4516 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4517 lt_cv_file_magic_cmd='func_win32_libid'
4519 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4520 lt_cv_file_magic_cmd='$OBJDUMP -f'
4524 darwin* | rhapsody*)
4525 lt_cv_deplibs_check_method=pass_all
4528 freebsd* | dragonfly*)
4529 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4532 # Not sure whether the presence of OpenBSD here was a mistake.
4533 # Let's accept both of them until this is cleared up.
4534 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4535 lt_cv_file_magic_cmd=/usr/bin/file
4536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4540 lt_cv_deplibs_check_method=pass_all
4545 lt_cv_deplibs_check_method=pass_all
4548 hpux10.20* | hpux11*)
4549 lt_cv_file_magic_cmd=/usr/bin/file
4552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4557 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4560 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4561 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4567 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4571 irix5* | irix6* | nonstopux*)
4573 *-32|*"-32 ") libmagic=32-bit;;
4574 *-n32|*"-n32 ") libmagic=N32;;
4575 *-64|*"-64 ") libmagic=64-bit;;
4576 *) libmagic=never-match;;
4578 lt_cv_deplibs_check_method=pass_all
4581 # This must be Linux ELF.
4582 linux* | k*bsd*-gnu)
4583 lt_cv_deplibs_check_method=pass_all
4586 netbsd* | netbsdelf*-gnu)
4587 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4596 lt_cv_file_magic_cmd=/usr/bin/file
4597 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4601 lt_cv_deplibs_check_method=unknown
4605 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4612 osf3* | osf4* | osf5*)
4613 lt_cv_deplibs_check_method=pass_all
4617 lt_cv_deplibs_check_method=pass_all
4621 lt_cv_deplibs_check_method=pass_all
4625 case $host_vendor in
4627 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]'
4628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4631 lt_cv_deplibs_check_method=pass_all
4634 lt_cv_file_magic_cmd='/bin/file'
4635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4638 lt_cv_file_magic_cmd='/bin/file'
4639 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4640 lt_cv_file_magic_test_file=/lib/libc.so
4643 lt_cv_deplibs_check_method=pass_all
4646 lt_cv_deplibs_check_method=pass_all
4651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4652 lt_cv_deplibs_check_method=pass_all
4657 { echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4658 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4659 file_magic_cmd=$lt_cv_file_magic_cmd
4660 deplibs_check_method=$lt_cv_deplibs_check_method
4661 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4666 # If no C compiler was specified, use CC.
4669 # If no C compiler flags were specified, use CFLAGS.
4670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4672 # Allow CC to be a program name with arguments.
4676 # Check whether --enable-libtool-lock was given.
4677 if test "${enable_libtool_lock+set}" = set; then
4678 enableval=$enable_libtool_lock;
4681 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
4683 # Some flags need to be propagated to the compiler or linker for good
4687 # Find out which ABI we are using.
4688 echo 'int i;' > conftest.$ac_ext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4693 (exit $ac_status); }; then
4694 case `/usr/bin/file conftest.$ac_objext` in
4706 # Find out which ABI we are using.
4707 echo '#line 4706 "configure
"' > conftest.$ac_ext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>&5
4711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4712 (exit $ac_status); }; then
4713 if test "$lt_cv_prog_gnu_ld" = yes; then
4714 case `/usr/bin/file conftest.$ac_objext` in
4716 LD="${LD-ld} -melf32bsmip"
4719 LD="${LD-ld} -melf32bmipn32"
4722 LD="${LD-ld} -melf64bmip"
4726 case `/usr/bin/file conftest.$ac_objext` in
4742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4743 s390*-*linux*|sparc*-*linux*)
4744 # Find out which ABI we are using.
4745 echo 'int i;' > conftest.$ac_ext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4750 (exit $ac_status); }; then
4751 case `/usr/bin/file conftest.o` in
4754 x86_64-*kfreebsd*-gnu)
4755 LD="${LD-ld} -m elf_i386_fbsd
"
4758 LD="${LD-ld} -m elf_i386
"
4760 ppc64-*linux*|powerpc64-*linux*)
4761 LD="${LD-ld} -m elf32ppclinux
"
4764 LD="${LD-ld} -m elf_s390
"
4767 LD="${LD-ld} -m elf32_sparc
"
4773 x86_64-*kfreebsd*-gnu)
4774 LD="${LD-ld} -m elf_x86_64_fbsd
"
4777 LD="${LD-ld} -m elf_x86_64
"
4779 ppc*-*linux*|powerpc*-*linux*)
4780 LD="${LD-ld} -m elf64ppc
"
4783 LD="${LD-ld} -m elf64_s390
"
4786 LD="${LD-ld} -m elf64_sparc
"
4796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4797 SAVE_CFLAGS="$CFLAGS"
4798 CFLAGS="$CFLAGS -belf"
4799 { echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
4800 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6; }
4801 if test "${lt_cv_cc_needs_belf+set}" = set; then
4802 echo $ECHO_N "(cached
) $ECHO_C" >&6
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4825 rm -f conftest.$ac_objext conftest$ac_exeext
4826 if { (ac_try="$ac_link"
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>conftest.er1
4834 grep -v '^ *+' conftest.er1 >conftest.err
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest$ac_exeext &&
4842 $as_test_x conftest$ac_exeext; then
4843 lt_cv_cc_needs_belf=yes
4845 echo "$as_me: failed program was
:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 lt_cv_cc_needs_belf=no
4851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4852 conftest$ac_exeext conftest.$ac_ext
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860 { echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
4861 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4862 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4863 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4864 CFLAGS="$SAVE_CFLAGS"
4868 # Find out which ABI we are using.
4869 echo 'int i;' > conftest.$ac_ext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4874 (exit $ac_status); }; then
4875 case `/usr/bin/file conftest.o` in
4877 case $lt_cv_prog_gnu_ld in
4878 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
4879 *) LD="${LD-ld} -64" ;;
4890 need_locks="$enable_libtool_lock"
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4899 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4900 # On Suns, sometimes $CPP names a directory.
4901 if test -n "$CPP" && test -d "$CPP"; then
4904 if test -z "$CPP"; then
4905 if test "${ac_cv_prog_CPP+set}" = set; then
4906 echo $ECHO_N "(cached
) $ECHO_C" >&6
4908 # Double quotes because CPP needs to be expanded
4909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4912 for ac_c_preproc_warn_flag in '' yes
4914 # Use a header file that comes with gcc, so configuring glibc
4915 # with a fresh cross-compiler works.
4916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917 # <limits.h> exists even on freestanding compilers.
4918 # On the NeXT, cc -E runs the code through the compiler's parser,
4919 # not just through cpp. "Syntax error
" is here to catch this case.
4920 cat >conftest.$ac_ext <<_ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4927 # include <limits.h>
4929 # include <assert.h>
4933 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4945 (exit $ac_status); } >/dev/null && {
4946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4951 echo "$as_me: failed program was
:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 # Broken: fails on valid input.
4958 rm -f conftest.err conftest.$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat >conftest.$ac_ext <<_ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #include <ac_nonexistent.h>
4970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4982 (exit $ac_status); } >/dev/null && {
4983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4986 # Broken: success on invalid input.
4989 echo "$as_me: failed program was
:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 # Passes both tests.
4997 rm -f conftest.err conftest.$ac_ext
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then
5014 { echo "$as_me:$LINENO: result
: $CPP" >&5
5015 echo "${ECHO_T}$CPP" >&6; }
5017 for ac_c_preproc_warn_flag in '' yes
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error
" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 # include <limits.h>
5034 # include <assert.h>
5038 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5046 grep -v '^ *+' conftest.er1 >conftest.err
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5050 (exit $ac_status); } >/dev/null && {
5051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5052 test ! -s conftest.err
5056 echo "$as_me: failed program was
:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 # Broken: fails on valid input.
5063 rm -f conftest.err conftest.$ac_ext
5065 # OK, works on sane cases. Now check whether nonexistent headers
5066 # can be detected and how.
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 #include <ac_nonexistent.h>
5075 if { (ac_try="$ac_cpp conftest.
$ac_ext"
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
5083 grep -v '^ *+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5087 (exit $ac_status); } >/dev/null && {
5088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5091 # Broken: success on invalid input.
5094 echo "$as_me: failed program was
:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 # Passes both tests.
5102 rm -f conftest.err conftest.$ac_ext
5105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5106 rm -f conftest.err conftest.$ac_ext
5107 if $ac_preproc_ok; then
5110 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5111 See \
`config.log' for more details." >&5
5112 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5113 See \`config.log
' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5118 ac_cpp='$CPP $CPPFLAGS'
5119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5120 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5125 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5126 if test "${ac_cv_header_stdc+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5148 rm -f conftest.$ac_objext
5149 if { (ac_try="$ac_compile"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compile") 2>conftest.er1
5157 grep -v '^
*+' conftest.er1 >conftest.err
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest.$ac_objext; then
5165 ac_cv_header_stdc=yes
5167 echo "$as_me: failed program was:" >&5
5168 sed 's
/^
/|
/' conftest.$ac_ext >&5
5170 ac_cv_header_stdc=no
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175 if test $ac_cv_header_stdc = yes; then
5176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5187 $EGREP "memchr" >/dev/null 2>&1; then
5190 ac_cv_header_stdc=no
5196 if test $ac_cv_header_stdc = yes; then
5197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "free" >/dev/null 2>&1; then
5211 ac_cv_header_stdc=no
5217 if test $ac_cv_header_stdc = yes; then
5218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5219 if test "$cross_compiling" = yes; then
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5230 #if ((' ' & 0x0FF) == 0x020)
5231 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
5232 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
5234 # define ISLOWER(c) \
5235 (('a
' <= (c) && (c) <= 'i
') \
5236 || ('j
' <= (c) && (c) <= 'r
') \
5237 || ('s
' <= (c) && (c) <= 'z
'))
5238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5246 for (i = 0; i < 256; i++)
5247 if (XOR (islower (i), ISLOWER (i))
5248 || toupper (i) != TOUPPER (i))
5253 rm -f conftest$ac_exeext
5254 if { (ac_try="$ac_link"
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_link") 2>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
5264 { (case "(($ac_try" in
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_try") 2>&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5275 echo "$as_me: program exited with status $ac_status" >&5
5276 echo "$as_me: failed program was:" >&5
5277 sed 's
/^
/|
/' conftest.$ac_ext >&5
5280 ac_cv_header_stdc=no
5282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5288 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5289 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5290 if test $ac_cv_header_stdc = yes; then
5292 cat >>confdefs.h <<\_ACEOF
5293 #define STDC_HEADERS 1
5298 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5308 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5309 inttypes.h stdint.h unistd.h
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 $ac_includes_default
5325 #include <$ac_header>
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compile") 2>conftest.er1
5336 grep -v '^
*+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && {
5341 test -z "$ac_c_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
5344 eval "$as_ac_Header=yes"
5346 echo "$as_me: failed program was:" >&5
5347 sed 's
/^
/|
/' conftest.$ac_ext >&5
5349 eval "$as_ac_Header=no"
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_res=`eval echo '${'$as_ac_Header'}'`
5355 { echo "$as_me:$LINENO: result: $ac_res" >&5
5356 echo "${ECHO_T}$ac_res" >&6; }
5357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5358 cat >>confdefs.h <<_ACEOF
5359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 for ac_header in dlfcn.h
5370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 ac_res=`eval echo '${'$as_ac_Header'}'`
5378 { echo "$as_me:$LINENO: result: $ac_res" >&5
5379 echo "${ECHO_T}$ac_res" >&6; }
5381 # Is the header compilable?
5382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5384 cat >conftest.$ac_ext <<_ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5391 #include <$ac_header>
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5402 grep -v '^
*+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_header_compiler=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's
/^
/|
/' conftest.$ac_ext >&5
5415 ac_header_compiler=no
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5420 echo "${ECHO_T}$ac_header_compiler" >&6; }
5422 # Is the header present?
5423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <$ac_header>
5433 if { (ac_try="$ac_cpp conftest.$ac_ext"
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5441 grep -v '^
*+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null && {
5446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5449 ac_header_preproc=yes
5451 echo "$as_me: failed program was:" >&5
5452 sed 's
/^
/|
/' conftest.$ac_ext >&5
5454 ac_header_preproc=no
5457 rm -f conftest.err conftest.$ac_ext
5458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5459 echo "${ECHO_T}$ac_header_preproc" >&6; }
5461 # So? What about this header?
5462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
5467 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
5468 ac_header_preproc=yes
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
5480 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 eval "$as_ac_Header=\$ac_header_preproc"
5493 ac_res=`eval echo '${'$as_ac_Header'}'`
5494 { echo "$as_me:$LINENO: result: $ac_res" >&5
5495 echo "${ECHO_T}$ac_res" >&6; }
5498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5499 cat >>confdefs.h <<_ACEOF
5500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 ac_cpp='$CXXCPP $CPPFLAGS'
5509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5510 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5512 if test -z "$CXX"; then
5513 if test -n "$CCC"; then
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_CXX+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$CXX"; then
5548 { echo "$as_me:$LINENO: result: $CXX" >&5
5549 echo "${ECHO_T}$CXX" >&6; }
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5556 test -n "$CXX" && break
5559 if test -z "$CXX"; then
5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_CXX="$ac_prog"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591 if test -n "$ac_ct_CXX"; then
5592 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5593 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5600 test -n "$ac_ct_CXX" && break
5603 if test "x$ac_ct_CXX" = x; then
5606 case $cross_compiling:$ac_tool_warned in
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet. If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet. If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5622 # Provide some information about the compiler.
5623 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5624 ac_compiler=`set X $ac_compile; echo $2`
5625 { (ac_try="$ac_compiler --version >&5"
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compiler --version >&5") 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }
5635 { (ac_try="$ac_compiler -v >&5"
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compiler -v >&5") 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }
5645 { (ac_try="$ac_compiler -V >&5"
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compiler -V >&5") 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
5656 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^
*+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_cxx_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5698 echo "$as_me: failed program was:" >&5
5699 sed 's
/^
/|
/' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5708 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5709 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5710 GXX=`test $ac_compiler_gnu = yes && echo yes`
5711 ac_test_CXXFLAGS=${CXXFLAGS+set}
5712 ac_save_CXXFLAGS=$CXXFLAGS
5713 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5714 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_cxx_g+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5719 ac_cxx_werror_flag=yes
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5746 grep -v '^
*+' conftest.er1 >conftest.err
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.$ac_objext; then
5754 ac_cv_prog_cxx_g=yes
5756 echo "$as_me: failed program was:" >&5
5757 sed 's
/^
/|
/' conftest.$ac_ext >&5
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^
*+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's
/^
/|
/' conftest.$ac_ext >&5
5797 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5823 grep -v '^
*+' conftest.er1 >conftest.err
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && {
5828 test -z "$ac_cxx_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.$ac_objext; then
5831 ac_cv_prog_cxx_g=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's
/^
/|
/' conftest.$ac_ext >&5
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5848 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5849 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5850 if test "$ac_test_CXXFLAGS" = set; then
5851 CXXFLAGS=$ac_save_CXXFLAGS
5852 elif test $ac_cv_prog_cxx_g = yes; then
5853 if test "$GXX" = yes; then
5859 if test "$GXX" = yes; then
5866 ac_cpp='$CXXCPP $CPPFLAGS'
5867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5868 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5871 depcc="$CXX" am_compiler_list=
5873 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5874 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5875 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5879 # We make a subdir and do the tests there. Otherwise we can end up
5880 # making bogus files that we don't know about and never remove. For
5881 # instance it was reported that on HP-UX the gcc test will end up
5882 # making a dummy file named `D' -- because `-MD' means `put the output
5885 # Copy depcomp to subdir because otherwise we won't find it if we're
5886 # using a relative directory.
5887 cp "$am_depcomp" conftest.dir
5889 # We will build objects and dependencies in a subdirectory because
5890 # it helps to detect inapplicable dependency modes. For instance
5891 # both Tru64's cc and ICC support -MD to output dependencies as a
5892 # side effect of compilation, but ICC will put the dependencies in
5893 # the current directory while Tru64 will put them in the object
5897 am_cv_CXX_dependencies_compiler_type
=none
5898 if test "$am_compiler_list" = ""; then
5899 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5901 for depmode
in $am_compiler_list; do
5902 # Setup a source with many dependencies, because some compilers
5903 # like to wrap large dependency lists on column 80 (with \), and
5904 # we should not choose a depcomp mode which is confused by this.
5906 # We need to recreate these files for each test, as the compiler may
5907 # overwrite some of them when testing with obscure command lines.
5908 # This happens at least with the AIX C compiler.
5910 for i
in 1 2 3 4 5 6; do
5911 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5913 # Solaris 8's {/usr,}/bin/sh.
5914 touch sub
/conftst
$i.h
5916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5920 # after this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested
5922 if test "x$enable_dependency_tracking" = xyes
; then
5930 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5931 # mode. It turns out that the SunPro C++ compiler does not properly
5932 # handle `-M -o', and we need to detect this.
5933 if depmode
=$depmode \
5934 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5935 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5936 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5937 >/dev
/null
2>conftest.err
&&
5938 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5939 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5940 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5941 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5942 # icc doesn't choke on unknown options, it will just issue warnings
5943 # or remarks (even with -Werror). So we grep stderr for any message
5944 # that says an option was ignored or not supported.
5945 # When given -MP, icc 7.0 and 7.1 complain thusly:
5946 # icc: Command line warning: ignoring option '-M'; no argument required
5947 # The diagnosis changed in icc 8.0:
5948 # icc: Command line remark: option '-MP' not supported
5949 if (grep 'ignoring option' conftest.err ||
5950 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5951 am_cv_CXX_dependencies_compiler_type
=$depmode
5960 am_cv_CXX_dependencies_compiler_type
=none
5964 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5965 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5966 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5969 test "x$enable_dependency_tracking" != xno \
5970 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5971 am__fastdepCXX_TRUE
=
5972 am__fastdepCXX_FALSE
='#'
5974 am__fastdepCXX_TRUE
='#'
5975 am__fastdepCXX_FALSE
=
5981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5983 (test "X$CXX" != "Xg++"))) ; then
5985 ac_cpp
='$CXXCPP $CPPFLAGS'
5986 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5989 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5991 if test -z "$CXXCPP"; then
5992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 # Double quotes because CXXCPP needs to be expanded
5996 for CXXCPP
in "$CXX -E" "/lib/cpp"
5999 for ac_cxx_preproc_warn_flag
in '' yes
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.
$ac_ext <<_ACEOF
6010 cat confdefs.h
>>conftest.
$ac_ext
6011 cat >>conftest.
$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6014 # include <limits.h>
6016 # include <assert.h>
6020 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } >/dev/null && {
6033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 # Broken: fails on valid input.
6045 rm -f conftest.err conftest.$ac_ext
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <ac_nonexistent.h>
6057 if { (ac_try="$ac_cpp conftest.$ac_ext"
6059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6060 *) ac_try_echo
=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1
>conftest.err
6067 cat conftest.err
>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev
/null
&& {
6070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6071 test ! -s conftest.err
6073 # Broken: success on invalid input.
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.
$ac_ext >&5
6079 # Passes both tests.
6084 rm -f conftest.err conftest.
$ac_ext
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.
$ac_ext
6089 if $ac_preproc_ok; then
6094 ac_cv_prog_CXXCPP
=$CXXCPP
6097 CXXCPP
=$ac_cv_prog_CXXCPP
6099 ac_cv_prog_CXXCPP
=$CXXCPP
6101 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6102 echo "${ECHO_T}$CXXCPP" >&6; }
6104 for ac_cxx_preproc_warn_flag
in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6119 # include <limits.h>
6121 # include <assert.h>
6125 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } >/dev/null && {
6138 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6139 test ! -s conftest.err
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 # Broken: fails on valid input.
6150 rm -f conftest.err conftest.$ac_ext
6152 # OK, works on sane cases. Now check whether nonexistent headers
6153 # can be detected and how.
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <ac_nonexistent.h>
6162 if { (ac_try="$ac_cpp conftest.$ac_ext"
6164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6165 *) ac_try_echo
=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1
>conftest.err
6172 cat conftest.err
>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev
/null
&& {
6175 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6176 test ! -s conftest.err
6178 # Broken: success on invalid input.
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6184 # Passes both tests.
6189 rm -f conftest.err conftest.
$ac_ext
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.
$ac_ext
6194 if $ac_preproc_ok; then
6197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6200 See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6205 ac_cpp
='$CXXCPP $CPPFLAGS'
6206 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6214 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6215 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6217 if test -n "$ac_tool_prefix"; then
6218 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_prog_F77+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 if test -n "$F77"; then
6228 ac_cv_prog_F77
="$F77" # Let the user override the test.
6230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir
=.
6235 for ac_exec_ext
in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 if test -n "$F77"; then
6249 { echo "$as_me:$LINENO: result: $F77" >&5
6250 echo "${ECHO_T}$F77" >&6; }
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 test -n "$F77" && break
6260 if test -z "$F77"; then
6262 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy
$ac_prog; ac_word
=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 if test -n "$ac_ct_F77"; then
6272 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir
=.
6279 for ac_exec_ext
in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_F77
="$ac_prog"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6292 if test -n "$ac_ct_F77"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6294 echo "${ECHO_T}$ac_ct_F77" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 test -n "$ac_ct_F77" && break
6304 if test "x$ac_ct_F77" = x
; then
6307 case $cross_compiling:$ac_tool_warned in
6309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet. If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&5
6312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet. If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315 ac_tool_warned
=yes ;;
6322 # Provide some information about the compiler.
6323 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6324 ac_compiler
=`set X $ac_compile; echo $2`
6325 { (ac_try
="$ac_compiler --version >&5"
6327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335 { (ac_try="$ac_compiler -v >&5"
6337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6338 *) ac_try_echo
=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345 { (ac_try
="$ac_compiler -V >&5"
6347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6357 # If we don't use `.F
' as extension, the preprocessor is not run on the
6358 # input file. (Note that this only needs to work for GNU compilers.)
6361 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6362 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6363 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 cat >conftest.$ac_ext <<_ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6383 grep -v '^
*+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_f77_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6393 echo "$as_me: failed program was:" >&5
6394 sed 's
/^
/|
/' conftest.$ac_ext >&5
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6403 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6404 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6406 ac_test_FFLAGS=${FFLAGS+set}
6407 ac_save_FFLAGS=$FFLAGS
6409 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6410 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6411 if test "${ac_cv_prog_f77_g+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
6429 grep -v '^
*+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_f77_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.$ac_objext; then
6437 ac_cv_prog_f77_g=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's
/^
/|
/' conftest.$ac_ext >&5
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6450 if test "$ac_test_FFLAGS" = set; then
6451 FFLAGS=$ac_save_FFLAGS
6452 elif test $ac_cv_prog_f77_g = yes; then
6453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6466 G77=`test $ac_compiler_gnu = yes && echo yes`
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6470 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6477 # find the maximum length of command line arguments
6478 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 # On DJGPP, this test can blow up pretty badly due to problems in libc
6489 # (any single argument exceeding 2000 bytes causes a buffer overrun
6490 # during glob expansion). Even if it were fixed, the result of this
6491 # check would be larger than it should be.
6492 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6496 # Under GNU Hurd, this test is not required because there is
6497 # no limit to the length of command line arguments.
6498 # Libtool will interpret -1 as no limit whatsoever
6499 lt_cv_sys_max_cmd_len
=-1;
6503 # On Win9x/ME, this test blows up -- it succeeds, but takes
6504 # about 5 minutes as the teststring grows exponentially.
6505 # Worse, since 9x/ME are not pre-emptively multitasking,
6506 # you end up with a "frozen" computer, even though with patience
6507 # the test eventually succeeds (with a max line length of 256k).
6508 # Instead, let's just punt: use the minimum linelength reported by
6509 # all of the supported platforms: 8192 (on NT/2K/XP).
6510 lt_cv_sys_max_cmd_len
=8192;
6514 # On AmigaOS with pdksh, this test takes hours, literally.
6515 # So we just punt and use a minimum line length of 8192.
6516 lt_cv_sys_max_cmd_len
=8192;
6519 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6520 # This has been around since 386BSD, at least. Likely further.
6521 if test -x /sbin
/sysctl
; then
6522 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6523 elif test -x /usr
/sbin
/sysctl
; then
6524 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6526 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6528 # And add a safety zone
6529 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6530 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6535 lt_cv_sys_max_cmd_len
=196608
6539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6541 # nice to cause kernel panics so lets avoid the loop below.
6542 # First set a reasonable default.
6543 lt_cv_sys_max_cmd_len
=16384
6545 if test -x /sbin
/sysconfig
; then
6546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6547 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6552 lt_cv_sys_max_cmd_len
=102400
6554 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6555 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6556 if test -n "$kargmax"; then
6557 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6559 lt_cv_sys_max_cmd_len
=32768
6563 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6564 if test -n "$lt_cv_sys_max_cmd_len"; then
6565 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6566 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6568 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6569 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6570 = "XX$teststring") >/dev
/null
2>&1 &&
6571 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6572 lt_cv_sys_max_cmd_len
=$new_result &&
6573 test $i != 17 # 1/2 MB should be enough
6576 teststring
=$teststring$teststring
6579 # Add a significant safety factor because C++ compilers can tack on massive
6580 # amounts of additional arguments before passing them to the linker.
6581 # It appears as though 1/2 is a usable value.
6582 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6589 if test -n $lt_cv_sys_max_cmd_len ; then
6590 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6591 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6593 { echo "$as_me:$LINENO: result: none" >&5
6594 echo "${ECHO_T}none" >&6; }
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6603 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6604 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611 # Character class describing NM global symbol codes.
6612 symcode
='[BCDEGRST]'
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6617 # Transform an extracted symbol line into a proper C declaration
6618 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6620 # Transform an extracted symbol line into symbol name and symbol address
6621 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6623 # Define system-specific variables.
6628 cygwin
* | mingw
* | pw32
*)
6629 symcode
='[ABCDGISTW]'
6631 hpux
*) # Its linker distinguishes data from code symbols
6632 if test "$host_cpu" = ia64
; then
6633 symcode
='[ABCDEGRST]'
6635 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6638 linux
* | k
*bsd
*-gnu)
6639 if test "$host_cpu" = ia64
; then
6640 symcode
='[ABCDGIRSTW]'
6641 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6642 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6646 symcode
='[BCDEGRST]'
6649 symcode
='[BCDEGQRST]'
6660 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6668 # Handle CRLF in mingw tool chain
6672 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 # If we're using GNU nm, then use its standard symbol codes.
6677 case `$NM -V 2>&1` in
6678 *GNU
* |
*'with BFD'*)
6679 symcode
='[ABCDGIRSTW]' ;;
6682 # Try without a prefix undercore, then with it.
6683 for ac_symprfx
in "" "_"; do
6685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6686 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6688 # Write the raw and C identifiers.
6689 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6691 # Check to see that the pipe works correctly.
6695 cat > conftest.
$ac_ext <<EOF
6700 void nm_test_func(){}
6704 int main(){nm_test_var='a';nm_test_func();return(0);}
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; then
6712 # Now try to grab the symbols.
6714 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6715 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s "$nlist"; then
6719 # Try sorting and uniquifying the output.
6720 if sort "$nlist" |
uniq > "$nlist"T
; then
6721 mv -f "$nlist"T
"$nlist"
6726 # Make sure that we snagged all the symbols we need.
6727 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6728 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6729 cat <<EOF > conftest.$ac_ext
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6738 cat <<EOF >> conftest.$ac_ext
6739 #if defined (__STDC__) && __STDC__
6740 # define lt_ptr_t void *
6742 # define lt_ptr_t char *
6746 /* The mapping between symbol names and symbols. */
6751 lt_preloaded_symbols[] =
6754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6755 cat <<\EOF
>> conftest.
$ac_ext
6763 # Now try linking the two files.
6764 mv conftest.
$ac_objext conftstm.
$ac_objext
6765 lt_save_LIBS
="$LIBS"
6766 lt_save_CFLAGS
="$CFLAGS"
6767 LIBS
="conftstm.$ac_objext"
6768 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6776 LIBS
="$lt_save_LIBS"
6777 CFLAGS
="$lt_save_CFLAGS"
6779 echo "cannot find nm_test_func in $nlist" >&5
6782 echo "cannot find nm_test_var in $nlist" >&5
6785 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6788 echo "$progname: failed program was:" >&5
6789 cat conftest.
$ac_ext >&5
6791 rm -f conftest
* conftst
*
6793 # Do not use the global_symbol_pipe unless it works.
6794 if test "$pipe_works" = yes; then
6797 lt_cv_sys_global_symbol_pipe
=
6803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6804 lt_cv_sys_global_symbol_to_cdecl
=
6806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6807 { echo "$as_me:$LINENO: result: failed" >&5
6808 echo "${ECHO_T}failed" >&6; }
6810 { echo "$as_me:$LINENO: result: ok" >&5
6811 echo "${ECHO_T}ok" >&6; }
6814 { echo "$as_me:$LINENO: checking for objdir" >&5
6815 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6816 if test "${lt_cv_objdir+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 rm -f .libs
2>/dev
/null
6820 mkdir .libs
2>/dev
/null
6821 if test -d .libs
; then
6824 # MS-DOS does not allow filenames that begin with a dot.
6827 rmdir .libs
2>/dev
/null
6829 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6830 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6831 objdir
=$lt_cv_objdir
6839 # AIX sometimes has problems with the GCC collect2 program. For some
6840 # reason, if we set the COLLECT_NAMES environment variable, the problems
6841 # vanish in a puff of smoke.
6842 if test "X${COLLECT_NAMES+set}" != Xset
; then
6844 export COLLECT_NAMES
6849 # Sed substitution that helps us do robust quoting. It backslashifies
6850 # metacharacters that are still active within double-quoted strings.
6851 Xsed
='sed -e 1s/^X//'
6852 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6854 # Same as above, but do not quote variable references.
6855 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6857 # Sed substitution to delay expansion of an escaped shell variable in a
6858 # double_quote_subst'ed string.
6859 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6861 # Sed substitution to avoid accidental globbing in evaled expressions
6862 no_glob_subst
='s/\*/\\\*/g'
6868 default_ofile
=libtool
6869 can_build_shared
=yes
6871 # All known linkers require a `.a' archive for static linking (except MSVC,
6872 # which needs '.lib').
6874 ltmain
="$ac_aux_dir/ltmain.sh"
6875 ofile
="$default_ofile"
6876 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6880 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_prog_AR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 if test -n "$AR"; then
6887 ac_cv_prog_AR
="$AR" # Let the user override the test.
6889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir
=.
6894 for ac_exec_ext
in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 if test -n "$AR"; then
6908 { echo "$as_me:$LINENO: result: $AR" >&5
6909 echo "${ECHO_T}$AR" >&6; }
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6917 if test -z "$ac_cv_prog_AR"; then
6919 # Extract the first word of "ar", so it can be a program name with args.
6920 set dummy
ar; ac_word
=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 if test -n "$ac_ct_AR"; then
6927 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir
=.
6934 for ac_exec_ext
in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_AR
="ar"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6947 if test -n "$ac_ct_AR"; then
6948 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6949 echo "${ECHO_T}$ac_ct_AR" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6955 if test "x$ac_ct_AR" = x
; then
6958 case $cross_compiling:$ac_tool_warned in
6960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6961 whose name does not start with the host triplet. If you think this
6962 configuration is useful to you, please write to autoconf@gnu.org." >&5
6963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6964 whose name does not start with the host triplet. If you think this
6965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6966 ac_tool_warned
=yes ;;
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6976 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6979 if test "${ac_cv_prog_RANLIB+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 if test -n "$RANLIB"; then
6983 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir
=.
6990 for ac_exec_ext
in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 RANLIB
=$ac_cv_prog_RANLIB
7003 if test -n "$RANLIB"; then
7004 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7005 echo "${ECHO_T}$RANLIB" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7013 if test -z "$ac_cv_prog_RANLIB"; then
7014 ac_ct_RANLIB
=$RANLIB
7015 # Extract the first word of "ranlib", so it can be a program name with args.
7016 set dummy ranlib
; ac_word
=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 if test -n "$ac_ct_RANLIB"; then
7023 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir
=.
7030 for ac_exec_ext
in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7043 if test -n "$ac_ct_RANLIB"; then
7044 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7045 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7051 if test "x$ac_ct_RANLIB" = x
; then
7054 case $cross_compiling:$ac_tool_warned in
7056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7057 whose name does not start with the host triplet. If you think this
7058 configuration is useful to you, please write to autoconf@gnu.org." >&5
7059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7062 ac_tool_warned
=yes ;;
7064 RANLIB
=$ac_ct_RANLIB
7067 RANLIB
="$ac_cv_prog_RANLIB"
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7072 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_STRIP+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir
=.
7086 for ac_exec_ext
in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 STRIP
=$ac_cv_prog_STRIP
7099 if test -n "$STRIP"; then
7100 { echo "$as_me:$LINENO: result: $STRIP" >&5
7101 echo "${ECHO_T}$STRIP" >&6; }
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7109 if test -z "$ac_cv_prog_STRIP"; then
7111 # Extract the first word of "strip", so it can be a program name with args.
7112 set dummy strip
; ac_word
=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 if test -n "$ac_ct_STRIP"; then
7119 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir
=.
7126 for ac_exec_ext
in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_STRIP
="strip"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7139 if test -n "$ac_ct_STRIP"; then
7140 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7141 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7147 if test "x$ac_ct_STRIP" = x
; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7153 whose name does not start with the host triplet. If you think this
7154 configuration is useful to you, please write to autoconf@gnu.org." >&5
7155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7156 whose name does not start with the host triplet. If you think this
7157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7158 ac_tool_warned
=yes ;;
7163 STRIP
="$ac_cv_prog_STRIP"
7168 old_CFLAGS
="$CFLAGS"
7170 # Set sane defaults for various variables
7171 test -z "$AR" && AR
=ar
7172 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7173 test -z "$AS" && AS
=as
7174 test -z "$CC" && CC
=cc
7175 test -z "$LTCC" && LTCC
=$CC
7176 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7177 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7178 test -z "$LD" && LD
=ld
7179 test -z "$LN_S" && LN_S
="ln -s"
7180 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7181 test -z "$NM" && NM
=nm
7182 test -z "$SED" && SED
=sed
7183 test -z "$OBJDUMP" && OBJDUMP
=objdump
7184 test -z "$RANLIB" && RANLIB
=:
7185 test -z "$STRIP" && STRIP
=:
7186 test -z "$ac_objext" && ac_objext
=o
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds
='chmod 644 $oldlib'
7191 old_postuninstall_cmds
=
7193 if test -n "$RANLIB"; then
7196 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7199 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7202 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7205 for cc_temp
in $compiler""; do
7207 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7208 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7213 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7216 # Only perform the check for file, if the check method requires it
7217 case $deplibs_check_method in
7219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7220 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7230 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7231 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7232 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7233 for ac_dir
in $ac_dummy; do
7235 test -z "$ac_dir" && ac_dir
=.
7236 if test -f $ac_dir/${ac_tool_prefix}file; then
7237 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7238 if test -n "$file_magic_test_file"; then
7239 case $deplibs_check_method in
7241 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7242 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7243 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7244 $EGREP "$file_magic_regex" > /dev
/null
; then
7249 *** Warning: the command libtool uses to detect shared libraries,
7250 *** $file_magic_cmd, produces output that libtool cannot recognize.
7251 *** The result is that libtool may fail to recognize shared libraries
7252 *** as such. This will affect the creation of libtool libraries that
7253 *** depend on shared libraries, but programs linked with such libtool
7254 *** libraries will work regardless of this problem. Nevertheless, you
7255 *** may want to report the problem to your system manager and/or to
7256 *** bug-libtool@gnu.org
7266 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7271 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7272 if test -n "$MAGIC_CMD"; then
7273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7280 if test -z "$lt_cv_path_MAGIC_CMD"; then
7281 if test -n "$ac_tool_prefix"; then
7282 { echo "$as_me:$LINENO: checking for file" >&5
7283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7292 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7293 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7294 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7295 for ac_dir
in $ac_dummy; do
7297 test -z "$ac_dir" && ac_dir
=.
7298 if test -f $ac_dir/file; then
7299 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7300 if test -n "$file_magic_test_file"; then
7301 case $deplibs_check_method in
7303 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7304 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7305 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7306 $EGREP "$file_magic_regex" > /dev
/null
; then
7311 *** Warning: the command libtool uses to detect shared libraries,
7312 *** $file_magic_cmd, produces output that libtool cannot recognize.
7313 *** The result is that libtool may fail to recognize shared libraries
7314 *** as such. This will affect the creation of libtool libraries that
7315 *** depend on shared libraries, but programs linked with such libtool
7316 *** libraries will work regardless of this problem. Nevertheless, you
7317 *** may want to report the problem to your system manager and/or to
7318 *** bug-libtool@gnu.org
7328 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7333 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7334 if test -n "$MAGIC_CMD"; then
7335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7354 # Check whether --enable-libtool-lock was given.
7355 if test "${enable_libtool_lock+set}" = set; then
7356 enableval
=$enable_libtool_lock;
7359 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then
7364 withval
=$with_pic; pic_mode
="$withval"
7369 test -z "$pic_mode" && pic_mode
=default
7371 # Use C for the default configuration in the libtool script
7375 ac_cpp
='$CPP $CPPFLAGS'
7376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7381 # Source file extension for C test sources.
7384 # Object file extension for compiled C test sources.
7388 # Code to be used in simple compile tests
7389 lt_simple_compile_test_code
="int some_variable = 0;"
7391 # Code to be used in simple link tests
7392 lt_simple_link_test_code
='int main(){return(0);}'
7395 # If no C compiler was specified, use CC.
7398 # If no C compiler flags were specified, use CFLAGS.
7399 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7401 # Allow CC to be a program name with arguments.
7405 # save warnings/boilerplate of simple test code
7406 ac_outfile
=conftest.
$ac_objext
7407 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7408 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7409 _lt_compiler_boilerplate
=`cat conftest.err`
7412 ac_outfile
=conftest.
$ac_objext
7413 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7414 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7415 _lt_linker_boilerplate
=`cat conftest.err`
7420 lt_prog_compiler_no_builtin_flag
=
7422 if test "$GCC" = yes; then
7423 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7426 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7427 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7428 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 lt_cv_prog_compiler_rtti_exceptions
=no
7432 ac_outfile
=conftest.
$ac_objext
7433 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7434 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7435 # Insert the option either (1) after the last *FLAGS variable, or
7436 # (2) before a word containing "conftest.", or (3) at the end.
7437 # Note that $ac_compile itself does not contain backslashes and begins
7438 # with a dollar sign (not a hyphen), so the echo should work correctly.
7439 # The option is referenced via a variable to avoid confusing sed.
7440 lt_compile
=`echo "$ac_compile" | $SED \
7441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7443 -e 's:$: $lt_compiler_flag:'`
7444 (eval echo "\"\$as_me:7443: $lt_compile\"" >&5)
7445 (eval "$lt_compile" 2>conftest.err
)
7447 cat conftest.err
>&5
7448 echo "$as_me:7447: \$? = $ac_status" >&5
7449 if (exit $ac_status) && test -s "$ac_outfile"; then
7450 # The compiler can only warn and ignore the option if not recognized
7451 # So say no if there are warnings other than the usual output.
7452 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7453 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7454 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7455 lt_cv_prog_compiler_rtti_exceptions
=yes
7461 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7462 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7464 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7465 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7472 lt_prog_compiler_wl
=
7473 lt_prog_compiler_pic
=
7474 lt_prog_compiler_static
=
7476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7479 if test "$GCC" = yes; then
7480 lt_prog_compiler_wl
='-Wl,'
7481 lt_prog_compiler_static
='-static'
7485 # All AIX code is PIC.
7486 if test "$host_cpu" = ia64
; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static
='-Bstatic'
7493 # FIXME: we need at least 68020 code to build shared libraries, but
7494 # adding the `-m68020' flag to GCC prevents building anything better,
7496 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7499 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7500 # PIC is the default for these OSes.
7503 mingw
* | cygwin
* | pw32
* | os2
*)
7504 # This hack is so that the source file can tell whether it is being
7505 # built for inclusion in a dll (and should export symbols for example).
7506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7507 # (--disable-auto-import) libraries
7508 lt_prog_compiler_pic
='-DDLL_EXPORT'
7511 darwin
* | rhapsody
*)
7512 # PIC is the default on this platform
7513 # Common symbols not allowed in MH_DYLIB files
7514 lt_prog_compiler_pic
='-fno-common'
7518 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7519 # Instead, we relocate shared libraries at runtime.
7523 # Just because we use GCC doesn't mean we suddenly get shared libraries
7524 # on systems that don't support them.
7525 lt_prog_compiler_can_build_shared
=no
7530 if test -d /usr
/nec
; then
7531 lt_prog_compiler_pic
=-Kconform_pic
7536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7543 lt_prog_compiler_pic
='-fPIC'
7549 lt_prog_compiler_pic
='-fPIC'
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7556 lt_prog_compiler_wl
='-Wl,'
7557 if test "$host_cpu" = ia64
; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static
='-Bstatic'
7561 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7565 # PIC is the default on this platform
7566 # Common symbols not allowed in MH_DYLIB files
7567 case $cc_basename in
7569 lt_prog_compiler_pic
='-qnocommon'
7570 lt_prog_compiler_wl
='-Wl,'
7575 mingw
* | cygwin
* | pw32
* | os2
*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 lt_prog_compiler_pic
='-DDLL_EXPORT'
7581 hpux9
* | hpux10
* | hpux11
*)
7582 lt_prog_compiler_wl
='-Wl,'
7583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7590 lt_prog_compiler_pic
='+Z'
7593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7594 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7597 irix5
* | irix6
* | nonstopux
*)
7598 lt_prog_compiler_wl
='-Wl,'
7599 # PIC (with -KPIC) is the default.
7600 lt_prog_compiler_static
='-non_shared'
7604 lt_prog_compiler_pic
='-KPIC'
7605 lt_prog_compiler_static
='-Bstatic'
7608 linux
* | k
*bsd
*-gnu)
7609 case $cc_basename in
7611 lt_prog_compiler_wl
='-Wl,'
7612 lt_prog_compiler_pic
='-KPIC'
7613 lt_prog_compiler_static
='-static'
7615 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7616 # Portland Group compilers (*not* the Pentium gcc compiler,
7617 # which looks to be a dead project)
7618 lt_prog_compiler_wl
='-Wl,'
7619 lt_prog_compiler_pic
='-fpic'
7620 lt_prog_compiler_static
='-Bstatic'
7623 lt_prog_compiler_wl
='-Wl,'
7624 # All Alpha code is PIC.
7625 lt_prog_compiler_static
='-non_shared'
7628 case `$CC -V 2>&1 | sed 5q` in
7631 lt_prog_compiler_pic
='-KPIC'
7632 lt_prog_compiler_static
='-Bstatic'
7633 lt_prog_compiler_wl
='-Wl,'
7636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7637 lt_prog_compiler_pic
='-KPIC'
7638 lt_prog_compiler_static
='-Bstatic'
7639 lt_prog_compiler_wl
=''
7646 osf3
* | osf4
* | osf5
*)
7647 lt_prog_compiler_wl
='-Wl,'
7648 # All OSF/1 code is PIC.
7649 lt_prog_compiler_static
='-non_shared'
7653 lt_prog_compiler_static
='-non_shared'
7657 lt_prog_compiler_pic
='-KPIC'
7658 lt_prog_compiler_static
='-Bstatic'
7659 case $cc_basename in
7661 lt_prog_compiler_wl
='-Qoption ld ';;
7663 lt_prog_compiler_wl
='-Wl,';;
7668 lt_prog_compiler_wl
='-Qoption ld '
7669 lt_prog_compiler_pic
='-PIC'
7670 lt_prog_compiler_static
='-Bstatic'
7673 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7674 lt_prog_compiler_wl
='-Wl,'
7675 lt_prog_compiler_pic
='-KPIC'
7676 lt_prog_compiler_static
='-Bstatic'
7680 if test -d /usr
/nec
;then
7681 lt_prog_compiler_pic
='-Kconform_pic'
7682 lt_prog_compiler_static
='-Bstatic'
7686 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7687 lt_prog_compiler_wl
='-Wl,'
7688 lt_prog_compiler_pic
='-KPIC'
7689 lt_prog_compiler_static
='-Bstatic'
7693 lt_prog_compiler_wl
='-Wl,'
7694 lt_prog_compiler_can_build_shared
=no
7698 lt_prog_compiler_pic
='-pic'
7699 lt_prog_compiler_static
='-Bstatic'
7703 lt_prog_compiler_can_build_shared
=no
7708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7709 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7712 # Check to make sure the PIC flag actually works.
7714 if test -n "$lt_prog_compiler_pic"; then
7716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7718 if test "${lt_prog_compiler_pic_works+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 lt_prog_compiler_pic_works
=no
7722 ac_outfile
=conftest.
$ac_objext
7723 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7724 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 # The option is referenced via a variable to avoid confusing sed.
7730 lt_compile
=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
7734 (eval echo "\"\$as_me:7733: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>conftest.err
)
7737 cat conftest.err
>&5
7738 echo "$as_me:7737: \$? = $ac_status" >&5
7739 if (exit $ac_status) && test -s "$ac_outfile"; then
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings other than the usual output.
7742 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7744 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7745 lt_prog_compiler_pic_works
=yes
7751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7752 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7754 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7755 case $lt_prog_compiler_pic in
7757 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7760 lt_prog_compiler_pic
=
7761 lt_prog_compiler_can_build_shared
=no
7766 # For platforms which do not support PIC, -DPIC is meaningless:
7768 lt_prog_compiler_pic
=
7771 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7776 # Check to make sure the static flag actually works.
7778 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7781 if test "${lt_prog_compiler_static_works+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 lt_prog_compiler_static_works
=no
7785 save_LDFLAGS
="$LDFLAGS"
7786 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7787 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7788 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7789 # The linker can only warn and ignore the option if not recognized
7790 # So say no if there are warnings
7791 if test -s conftest.err
; then
7792 # Append any errors to the config.log.
7793 cat conftest.err
1>&5
7794 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7795 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7796 if diff conftest.exp conftest.er2
>/dev
/null
; then
7797 lt_prog_compiler_static_works
=yes
7800 lt_prog_compiler_static_works
=yes
7804 LDFLAGS
="$save_LDFLAGS"
7807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7808 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7810 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7813 lt_prog_compiler_static
=
7817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 lt_cv_prog_compiler_c_o
=no
7823 $rm -r conftest
2>/dev
/null
7827 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7829 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7830 # Insert the option either (1) after the last *FLAGS variable, or
7831 # (2) before a word containing "conftest.", or (3) at the end.
7832 # Note that $ac_compile itself does not contain backslashes and begins
7833 # with a dollar sign (not a hyphen), so the echo should work correctly.
7834 lt_compile
=`echo "$ac_compile" | $SED \
7835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7837 -e 's:$: $lt_compiler_flag:'`
7838 (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7839 (eval "$lt_compile" 2>out
/conftest.err
)
7841 cat out
/conftest.err
>&5
7842 echo "$as_me:7841: \$? = $ac_status" >&5
7843 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7845 # The compiler can only warn and ignore the option if not recognized
7846 # So say no if there are warnings
7847 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7848 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7849 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7850 lt_cv_prog_compiler_c_o
=yes
7855 # SGI C++ compiler will create directory out/ii_files/ for
7856 # template instantiation
7857 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7858 $rm out
/* && rmdir out
7864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7868 hard_links
="nottested"
7869 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7870 # do not overwrite the value of need_locks provided by the user
7871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7875 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7877 ln conftest.a conftest.b
2>&5 || hard_links
=no
7878 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7879 { echo "$as_me:$LINENO: result: $hard_links" >&5
7880 echo "${ECHO_T}$hard_links" >&6; }
7881 if test "$hard_links" = no
; then
7882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7894 allow_undefined_flag
=
7895 enable_shared_with_static_runtimes
=no
7897 archive_expsym_cmds
=
7898 old_archive_From_new_cmds
=
7899 old_archive_from_expsyms_cmds
=
7900 export_dynamic_flag_spec
=
7901 whole_archive_flag_spec
=
7902 thread_safe_flag_spec
=
7903 hardcode_libdir_flag_spec
=
7904 hardcode_libdir_flag_spec_ld
=
7905 hardcode_libdir_separator
=
7908 hardcode_shlibpath_var
=unsupported
7909 link_all_deplibs
=unknown
7910 hardcode_automatic
=no
7913 always_export_symbols
=no
7914 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7915 # include_expsyms should be a list of space-separated symbols to be *always*
7916 # included in the symbol list
7918 # exclude_expsyms can be an extended regexp of symbols to exclude
7919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921 # as well as any symbol that contains `d'.
7922 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924 # platforms (ab)use it in PIC code, but their linkers get confused if
7925 # the symbol is explicitly referenced. Since portable code cannot
7926 # rely on this symbol name, it's probably fine to never include it in
7927 # preloaded symbol tables.
7928 extract_expsyms_cmds
=
7929 # Just being paranoid about ensuring that cc_basename is set.
7930 for cc_temp
in $compiler""; do
7932 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7933 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7938 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7941 cygwin
* | mingw
* | pw32
*)
7942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7943 # When not using gcc, we currently assume that we are using
7944 # Microsoft Visual C++.
7945 if test "$GCC" != yes; then
7950 # we just hope/assume this is gcc and not c89 (= MSVC++)
7959 if test "$with_gnu_ld" = yes; then
7960 # If archive_cmds runs LD, not CC, wlarc should be empty
7963 # Set some defaults for GNU ld with shared library support. These
7964 # are reset later if shared libraries are not supported. Putting them
7965 # here allows them to be overridden if necessary.
7966 runpath_var
=LD_RUN_PATH
7967 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7968 export_dynamic_flag_spec
='${wl}--export-dynamic'
7969 # ancient GNU ld didn't support --whole-archive et. al.
7970 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7971 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7973 whole_archive_flag_spec
=
7975 supports_anon_versioning
=no
7976 case `$LD -v 2>/dev/null` in
7977 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7978 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7979 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7980 *\
2.11.
*) ;; # other 2.11 versions
7981 *) supports_anon_versioning
=yes ;;
7984 # See if GNU ld supports shared libraries.
7986 aix3
* | aix4
* | aix5
*)
7987 # On AIX/PPC, the GNU linker is very broken
7988 if test "$host_cpu" != ia64
; then
7992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7993 *** to be unable to reliably create shared libraries on AIX.
7994 *** Therefore, libtool is disabling shared libraries support. If you
7995 *** really care for shared libraries, you may want to modify your PATH
7996 *** so that a non-GNU linker is found, and then restart.
8003 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)'
8004 hardcode_libdir_flag_spec
='-L$libdir'
8005 hardcode_minus_L
=yes
8007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8008 # that the semantics of dynamic libraries on AmigaOS, at least up
8009 # to version 4, is to share data among multiple programs linked
8010 # with the same dynamic library. Since this doesn't match the
8011 # behavior of shared libraries on other platforms, we can't use
8017 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8018 allow_undefined_flag
=unsupported
8019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8020 # support --undefined. This deserves some investigation. FIXME
8021 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 cygwin
* | mingw
* | pw32
*)
8028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8029 # as there is no search path for DLLs.
8030 hardcode_libdir_flag_spec
='-L$libdir'
8031 allow_undefined_flag
=unsupported
8032 always_export_symbols
=no
8033 enable_shared_with_static_runtimes
=yes
8034 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8036 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
8037 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8038 # If the export-symbols file already is a .def file (1st line
8039 # is EXPORTS), use it as is; otherwise, prepend...
8040 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8041 cp $export_symbols $output_objdir/$soname.def;
8043 echo EXPORTS > $output_objdir/$soname.def;
8044 cat $export_symbols >> $output_objdir/$soname.def;
8046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8054 hardcode_shlibpath_var
=no
8055 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8056 export_dynamic_flag_spec
='${wl}-E'
8057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8058 # Instead, shared libraries are loaded at an image base (0x10000000 by
8059 # default) and relocated if they conflict, which is a slow very memory
8060 # consuming and fragmenting process. To avoid this, we pick a random,
8061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8063 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8064 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'
8067 gnu
* | linux
* | k
*bsd
*-gnu)
8068 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8070 case $cc_basename,$host_cpu in
8071 pgcc
*) # Portland Group C compiler
8072 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8073 tmp_addflag
=' $pic_flag'
8075 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8076 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8077 tmp_addflag
=' $pic_flag -Mnomain' ;;
8078 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8079 tmp_addflag
=' -i_dynamic' ;;
8080 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8081 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8082 ifc
* | ifort
*) # Intel Fortran compiler
8083 tmp_addflag
=' -nofor_main' ;;
8085 case `$CC -V 2>&1 | sed 5q` in
8086 *Sun\ C
*) # Sun C 5.9
8087 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8088 tmp_sharedflag
='-G' ;;
8089 *Sun\ F
*) # Sun Fortran 8.3
8090 tmp_sharedflag
='-G' ;;
8092 tmp_sharedflag
='-shared' ;;
8094 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 if test $supports_anon_versioning = yes; then
8097 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8099 $echo "local: *; };" >> $output_objdir/$libname.ver~
8100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8108 netbsd
* | netbsdelf
*-gnu)
8109 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8110 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8113 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8119 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8124 *** create shared libraries on Solaris systems. Therefore, libtool
8125 *** is disabling shared libraries support. We urge you to upgrade GNU
8126 *** binutils to release 2.9.1 or newer. Another option is to modify
8127 *** your PATH or compiler configuration so that the native linker is
8128 *** used, and then restart.
8131 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8132 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8133 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8139 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8140 case `$LD -v 2>&1` in
8141 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8146 *** reliably create shared libraries on SCO systems. Therefore, libtool
8147 *** is disabling shared libraries support. We urge you to upgrade GNU
8148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8149 *** your PATH or compiler configuration so that the native linker is
8150 *** used, and then restart.
8155 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8156 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8157 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8158 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8167 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8170 hardcode_shlibpath_var
=no
8174 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8175 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8176 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8183 if test "$ld_shlibs" = no
; then
8185 hardcode_libdir_flag_spec
=
8186 export_dynamic_flag_spec
=
8187 whole_archive_flag_spec
=
8190 # PORTME fill in a description of your system's linker (not GNU ld)
8193 allow_undefined_flag
=unsupported
8194 always_export_symbols
=yes
8195 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'
8196 # Note: this linker hardcodes the directories in LIBPATH if there
8197 # are no directories specified by -L.
8198 hardcode_minus_L
=yes
8199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8200 # Neither direct hardcoding nor static linking is supported with a
8202 hardcode_direct
=unsupported
8207 if test "$host_cpu" = ia64
; then
8208 # On IA64, the linker does run time linking by default, so we don't
8209 # have to do anything special.
8210 aix_use_runtimelinking
=no
8211 exp_sym_flag
='-Bexport'
8214 # If we're using GNU nm, then we don't want the "-C" option.
8215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8216 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8217 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8219 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'
8221 aix_use_runtimelinking
=no
8223 # Test if we are trying to use run time linking or normal
8224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8225 # need to do runtime linking.
8226 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8227 for ld_flag
in $LDFLAGS; do
8228 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8229 aix_use_runtimelinking
=yes
8236 exp_sym_flag
='-bexport'
8237 no_entry_flag
='-bnoentry'
8240 # When large executables or shared objects are built, AIX ld can
8241 # have problems creating the table of contents. If linking a library
8242 # or program results in "error TOC overflow" add -mminimal-toc to
8243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8248 hardcode_libdir_separator
=':'
8249 link_all_deplibs
=yes
8251 if test "$GCC" = yes; then
8252 case $host_os in aix4.
[012]|aix4.
[012].
*)
8253 # We only want to do this on AIX 4.2 and lower, the check
8254 # below for broken collect2 doesn't work under 4.3+
8255 collect2name
=`${CC} -print-prog-name=collect2`
8256 if test -f "$collect2name" && \
8257 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8259 # We have reworked collect2
8262 # We have old collect2
8263 hardcode_direct
=unsupported
8264 # It fails to find uninstalled libraries when the uninstalled
8265 # path is not listed in the libpath. Setting hardcode_minus_L
8266 # to unsupported forces relinking
8267 hardcode_minus_L
=yes
8268 hardcode_libdir_flag_spec
='-L$libdir'
8269 hardcode_libdir_separator
=
8273 shared_flag
='-shared'
8274 if test "$aix_use_runtimelinking" = yes; then
8275 shared_flag
="$shared_flag "'${wl}-G'
8279 if test "$host_cpu" = ia64
; then
8280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8281 # chokes on -Wl,-G. The following line is correct:
8284 if test "$aix_use_runtimelinking" = yes; then
8285 shared_flag
='${wl}-G'
8287 shared_flag
='${wl}-bM:SRE'
8292 # It seems that -bexpall does not export symbols beginning with
8293 # underscore (_), so it is better to generate a list of symbols to export.
8294 always_export_symbols
=yes
8295 if test "$aix_use_runtimelinking" = yes; then
8296 # Warning - without using the other runtime loading flags (-brtl),
8297 # -berok will link without error, but may produce a broken library.
8298 allow_undefined_flag
='-berok'
8299 # Determine the default libpath from the value encoded in an empty executable.
8300 cat >conftest.
$ac_ext <<_ACEOF
8303 cat confdefs.h
>>conftest.
$ac_ext
8304 cat >>conftest.
$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8315 rm -f conftest.
$ac_objext conftest
$ac_exeext
8316 if { (ac_try
="$ac_link"
8318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_link") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest$ac_exeext &&
8332 $as_test_x conftest$ac_exeext; then
8334 lt_aix_libpath_sed='
8335 /Import File Strings/,/^$/ {
8341 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8342 # Check for a 64-bit object if we didn't find anything.
8343 if test -z "$aix_libpath"; then
8344 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8354 conftest$ac_exeext conftest.$ac_ext
8355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8358 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8360 if test "$host_cpu" = ia64; then
8361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8362 allow_undefined_flag="-z nodefs"
8363 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"
8365 # Determine the default libpath from the value encoded in an empty executable.
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (ac_try="$ac_link"
8384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8385 *) ac_try_echo
=$ac_try;;
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_link") 2>conftest.er1
8390 grep -v '^ *+' conftest.er1
>conftest.err
8392 cat conftest.err
>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest
$ac_exeext &&
8398 $as_test_x conftest
$ac_exeext; then
8400 lt_aix_libpath_sed
='
8401 /Import File Strings/,/^$/ {
8407 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8408 # Check for a 64-bit object if we didn't find anything.
8409 if test -z "$aix_libpath"; then
8410 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8420 conftest
$ac_exeext conftest.
$ac_ext
8421 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8423 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8424 # Warning - without using the other run time loading flags,
8425 # -berok will link without error, but may produce a broken library.
8426 no_undefined_flag
=' ${wl}-bernotok'
8427 allow_undefined_flag
=' ${wl}-berok'
8428 # Exported symbols can be pulled into shared objects from archives
8429 whole_archive_flag_spec
='$convenience'
8430 archive_cmds_need_lc
=yes
8431 # This is similar to how AIX traditionally builds its shared libraries.
8432 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'
8438 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)'
8439 hardcode_libdir_flag_spec
='-L$libdir'
8440 hardcode_minus_L
=yes
8441 # see comment about different semantics on the GNU ld section
8446 export_dynamic_flag_spec
=-rdynamic
8449 cygwin
* | mingw
* | pw32
*)
8450 # When not using gcc, we currently assume that we are using
8451 # Microsoft Visual C++.
8452 # hardcode_libdir_flag_spec is actually meaningless, as there is
8453 # no search path for DLLs.
8454 hardcode_libdir_flag_spec
=' '
8455 allow_undefined_flag
=unsupported
8456 # Tell ltmain to make .lib files, not .a files.
8458 # Tell ltmain to make .dll files, not .so files.
8460 # FIXME: Setting linknames here is a bad hack.
8461 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8462 # The linker will automatically build a .lib file if we build a DLL.
8463 old_archive_From_new_cmds
='true'
8464 # FIXME: Should let the user specify the lib program.
8465 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8466 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8467 enable_shared_with_static_runtimes
=yes
8470 darwin
* | rhapsody
*)
8472 rhapsody
* | darwin1.
[012])
8473 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8476 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8477 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8479 case ${MACOSX_DEPLOYMENT_TARGET} in
8481 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8484 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8490 archive_cmds_need_lc
=no
8492 hardcode_automatic
=yes
8493 hardcode_shlibpath_var
=unsupported
8494 whole_archive_flag_spec
=''
8495 link_all_deplibs
=yes
8496 if test "$GCC" = yes ; then
8497 output_verbose_link_cmd
='echo'
8498 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8499 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8501 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8502 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8504 case $cc_basename in
8506 output_verbose_link_cmd
='echo'
8507 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8508 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8510 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8511 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8521 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_libdir_flag_spec
='-L$libdir'
8523 hardcode_shlibpath_var
=no
8530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8531 # support. Future versions do this automatically, but an explicit c++rt0.o
8532 # does not break anything, and helps significantly (at the cost of a little
8535 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8536 hardcode_libdir_flag_spec
='-R$libdir'
8538 hardcode_shlibpath_var
=no
8541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8543 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8545 hardcode_minus_L
=yes
8546 hardcode_shlibpath_var
=no
8549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8550 freebsd
* | dragonfly
*)
8551 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8552 hardcode_libdir_flag_spec
='-R$libdir'
8554 hardcode_shlibpath_var
=no
8558 if test "$GCC" = yes; then
8559 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'
8561 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'
8563 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8564 hardcode_libdir_separator
=:
8567 # hardcode_minus_L: Not really in the search PATH,
8568 # but as the default location of the library.
8569 hardcode_minus_L
=yes
8570 export_dynamic_flag_spec
='${wl}-E'
8574 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8575 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8577 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8579 if test "$with_gnu_ld" = no
; then
8580 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8581 hardcode_libdir_separator
=:
8584 export_dynamic_flag_spec
='${wl}-E'
8586 # hardcode_minus_L: Not really in the search PATH,
8587 # but as the default location of the library.
8588 hardcode_minus_L
=yes
8593 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8596 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8602 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8608 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8618 if test "$with_gnu_ld" = no
; then
8619 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8620 hardcode_libdir_separator
=:
8624 hardcode_libdir_flag_spec_ld
='+b $libdir'
8626 hardcode_shlibpath_var
=no
8630 export_dynamic_flag_spec
='${wl}-E'
8632 # hardcode_minus_L: Not really in the search PATH,
8633 # but as the default location of the library.
8634 hardcode_minus_L
=yes
8640 irix5
* | irix6
* | nonstopux
*)
8641 if test "$GCC" = yes; then
8642 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8644 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8645 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8647 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator
=:
8649 link_all_deplibs
=yes
8652 netbsd
* | netbsdelf
*-gnu)
8653 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8654 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8656 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8658 hardcode_libdir_flag_spec
='-R$libdir'
8660 hardcode_shlibpath_var
=no
8664 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8667 hardcode_libdir_separator
=:
8668 hardcode_shlibpath_var
=no
8672 if test -f /usr
/libexec
/ld.so
; then
8674 hardcode_shlibpath_var
=no
8675 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8679 export_dynamic_flag_spec
='${wl}-E'
8682 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8683 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_libdir_flag_spec
='-R$libdir'
8687 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8698 hardcode_libdir_flag_spec
='-L$libdir'
8699 hardcode_minus_L
=yes
8700 allow_undefined_flag
=unsupported
8701 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'
8702 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8706 if test "$GCC" = yes; then
8707 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8708 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8710 allow_undefined_flag
=' -expect_unresolved \*'
8711 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8713 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8714 hardcode_libdir_separator
=:
8717 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8718 if test "$GCC" = yes; then
8719 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8720 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8721 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8723 allow_undefined_flag
=' -expect_unresolved \*'
8724 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8725 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8726 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8728 # Both c and cxx compiler support -rpath directly
8729 hardcode_libdir_flag_spec
='-rpath $libdir'
8731 hardcode_libdir_separator
=:
8735 no_undefined_flag
=' -z text'
8736 if test "$GCC" = yes; then
8738 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8739 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8740 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8743 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8747 hardcode_libdir_flag_spec
='-R$libdir'
8748 hardcode_shlibpath_var
=no
8750 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8752 # The compiler driver will combine and reorder linker options,
8753 # but understands `-z linker_flag'. GCC discards it without `$wl',
8754 # but is careful enough not to reorder.
8755 # Supported since Solaris 2.6 (maybe 2.5.1?)
8756 if test "$GCC" = yes; then
8757 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8759 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8763 link_all_deplibs
=yes
8767 if test "x$host_vendor" = xsequent
; then
8768 # Use $CC to link under sequent, because it throws in some extra .o
8769 # files that make .init and .fini sections work.
8770 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8772 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8774 hardcode_libdir_flag_spec
='-L$libdir'
8776 hardcode_minus_L
=yes
8777 hardcode_shlibpath_var
=no
8781 case $host_vendor in
8783 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8784 hardcode_direct
=yes # is this really true???
8787 ## LD is ld it makes a PLAMLIB
8788 ## CC just makes a GrossModule.
8789 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8790 reload_cmds
='$CC -r -o $output$reload_objs'
8794 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8798 runpath_var
='LD_RUN_PATH'
8799 hardcode_shlibpath_var
=no
8803 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8804 hardcode_shlibpath_var
=no
8805 export_dynamic_flag_spec
='-Bexport'
8809 if test -d /usr
/nec
; then
8810 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_shlibpath_var
=no
8812 runpath_var
=LD_RUN_PATH
8813 hardcode_runpath_var
=yes
8818 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8819 no_undefined_flag
='${wl}-z,text'
8820 archive_cmds_need_lc
=no
8821 hardcode_shlibpath_var
=no
8822 runpath_var
='LD_RUN_PATH'
8824 if test "$GCC" = yes; then
8825 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8829 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 sysv5
* | sco3.2v5
* | sco5v6
*)
8834 # Note: We can NOT use -z defs as we might desire, because we do not
8835 # link with -lc, and that would cause any symbols used from libc to
8836 # always be unresolved, which means just about no library would
8837 # ever link correctly. If we're not using GNU ld we use -z text
8838 # though, which does catch some bad symbols but isn't as heavy-handed
8840 no_undefined_flag
='${wl}-z,text'
8841 allow_undefined_flag
='${wl}-z,nodefs'
8842 archive_cmds_need_lc
=no
8843 hardcode_shlibpath_var
=no
8844 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8845 hardcode_libdir_separator
=':'
8846 link_all_deplibs
=yes
8847 export_dynamic_flag_spec
='${wl}-Bexport'
8848 runpath_var
='LD_RUN_PATH'
8850 if test "$GCC" = yes; then
8851 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861 hardcode_libdir_flag_spec
='-L$libdir'
8862 hardcode_shlibpath_var
=no
8871 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8872 echo "${ECHO_T}$ld_shlibs" >&6; }
8873 test "$ld_shlibs" = no
&& can_build_shared
=no
8876 # Do we need to explicitly link libc?
8878 case "x$archive_cmds_need_lc" in
8880 # Assume -lc should be added
8881 archive_cmds_need_lc
=yes
8883 if test "$enable_shared" = yes && test "$GCC" = yes; then
8884 case $archive_cmds in
8886 # FIXME: we may have to deal with multi-command sequences.
8889 # Test whether the compiler implicitly links with -lc since on some
8890 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8891 # to ld, don't add -lc before -lgcc.
8892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8895 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 (eval $ac_compile) 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } 2>conftest.err
; then
8904 libobjs
=conftest.
$ac_objext
8906 wl
=$lt_prog_compiler_wl
8907 pic_flag
=$lt_prog_compiler_pic
8913 lt_save_allow_undefined_flag
=$allow_undefined_flag
8914 allow_undefined_flag
=
8915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8916 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }
8921 archive_cmds_need_lc
=no
8923 archive_cmds_need_lc
=yes
8925 allow_undefined_flag
=$lt_save_allow_undefined_flag
8927 cat conftest.err
1>&5
8930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8931 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8938 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8939 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8941 libname_spec
='lib$name'
8949 shlibpath_overrides_runpath
=unknown
8951 dynamic_linker
="$host_os ld.so"
8952 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8954 if test "$GCC" = yes; then
8956 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8957 *) lt_awk_arg
="/^libraries:/" ;;
8959 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8960 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8961 # if the path contains ";" then we assume it to be the separator
8962 # otherwise default to the standard path separator (i.e. ":") - it is
8963 # assumed that no part of a normal pathname contains ";" but that should
8964 # okay in the real world where ";" in dirpaths is itself problematic.
8965 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8967 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8969 # Ok, now we have the path, separated by spaces, we can step through it
8970 # and add multilib dir if necessary.
8971 lt_tmp_lt_search_path_spec
=
8972 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8973 for lt_sys_path
in $lt_search_path_spec; do
8974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8975 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8977 test -d "$lt_sys_path" && \
8978 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8981 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8982 BEGIN {RS=" "; FS="/|\n";} {
8985 for (lt_i = NF; lt_i > 0; lt_i--) {
8986 if ($lt_i != "" && $lt_i != ".") {
8987 if ($lt_i == "..") {
8990 if (lt_count == 0) {
8991 lt_foo="/" $lt_i lt_foo;
8998 if (lt_foo != "") { lt_freq[lt_foo]++; }
8999 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9001 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9003 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9005 need_lib_prefix
=unknown
9006 hardcode_into_libs
=no
9008 # when you set need_version to no, make sure it does not cause -set_version
9009 # flags to be left without arguments
9010 need_version
=unknown
9015 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9016 shlibpath_var
=LIBPATH
9018 # AIX 3 has no versioning support, so we append a major version to the name.
9019 soname_spec
='${libname}${release}${shared_ext}$major'
9026 hardcode_into_libs
=yes
9027 if test "$host_cpu" = ia64
; then
9028 # AIX 5 supports IA64
9029 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9030 shlibpath_var
=LD_LIBRARY_PATH
9032 # With GCC up to 2.95.x, collect2 would create an import file
9033 # for dependence libraries. The import file would start with
9034 # the line `#! .'. This would cause the generated library to
9035 # depend on `.', always an invalid library. This was fixed in
9036 # development snapshots of GCC prior to 3.0.
9038 aix4 | aix4.
[01] | aix4.
[01].
*)
9039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9041 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9049 # soname into executable. Probably we can add versioning support to
9050 # collect2, so additional links can be useful in future.
9051 if test "$aix_use_runtimelinking" = yes; then
9052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9053 # instead of lib<name>.a to let people know that these are not
9054 # typical AIX shared libraries.
9055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 # We preserve .a as extension for shared libraries through AIX4.2
9058 # and later when we are not doing run time linking.
9059 library_names_spec
='${libname}${release}.a $libname.a'
9060 soname_spec
='${libname}${release}${shared_ext}$major'
9062 shlibpath_var
=LIBPATH
9067 library_names_spec
='$libname.ixlibrary $libname.a'
9068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9069 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'
9073 library_names_spec
='${libname}${shared_ext}'
9074 dynamic_linker
="$host_os ld.so"
9075 shlibpath_var
=LIBRARY_PATH
9081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec
='${libname}${release}${shared_ext}$major'
9083 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9084 shlibpath_var
=LD_LIBRARY_PATH
9085 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9086 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9087 # the default ld.so.conf also contains /usr/contrib/lib and
9088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9089 # libtool to hard-code these into programs
9092 cygwin
* | mingw
* | pw32
*)
9093 version_type
=windows
9098 case $GCC,$host_os in
9099 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9100 library_names_spec
='$libname.dll.a'
9101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9102 postinstall_cmds
='base_file=`basename \${file}`~
9103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9104 dldir=$destdir/`dirname \$dlpath`~
9105 test -d \$dldir || mkdir -p \$dldir~
9106 $install_prog $dir/$dlname \$dldir/$dlname~
9107 chmod a+x \$dldir/$dlname'
9108 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9109 dlpath=$dir/\$dldll~
9111 shlibpath_overrides_runpath
=yes
9115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9116 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9117 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9120 # MinGW DLLs use traditional 'lib' prefix
9121 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9124 # It is most probably a Windows format PATH printed by
9125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9126 # path with ; separators, and with drive letters. We can handle the
9127 # drive letters (cygwin fileutils understands them), so leave them,
9128 # especially as we might pass files found there to a mingw objdump,
9129 # which wouldn't understand a cygwinified path. Ahh.
9130 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9132 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9136 # pw32 DLLs use 'pw' prefix rather than 'lib'
9137 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9146 dynamic_linker
='Win32 ld.exe'
9147 # FIXME: first we should search . and the directory the executable is in
9151 darwin
* | rhapsody
*)
9152 dynamic_linker
="$host_os dyld"
9156 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9157 soname_spec
='${libname}${release}${major}$shared_ext'
9158 shlibpath_overrides_runpath
=yes
9159 shlibpath_var
=DYLD_LIBRARY_PATH
9160 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9162 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9163 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9171 soname_spec
='${libname}${release}${shared_ext}$major'
9172 shlibpath_var
=LD_LIBRARY_PATH
9179 freebsd
* | dragonfly
*)
9180 # DragonFly does not have aout. When/if they implement a new
9181 # versioning mechanism, adjust this.
9182 if test -x /usr
/bin
/objformat
; then
9183 objformat
=`/usr/bin/objformat`
9186 freebsd
[123]*) objformat
=aout
;;
9190 version_type
=freebsd-
$objformat
9191 case $version_type in
9193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9198 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9202 shlibpath_var
=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath
=yes
9207 freebsd3.
[01]* | freebsdelf3.
[01]*)
9208 shlibpath_overrides_runpath
=yes
9209 hardcode_into_libs
=yes
9211 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9212 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9213 shlibpath_overrides_runpath
=no
9214 hardcode_into_libs
=yes
9216 *) # from 4.6 on, and DragonFly
9217 shlibpath_overrides_runpath
=yes
9218 hardcode_into_libs
=yes
9227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9228 soname_spec
='${libname}${release}${shared_ext}$major'
9229 shlibpath_var
=LD_LIBRARY_PATH
9230 hardcode_into_libs
=yes
9233 hpux9
* | hpux10
* | hpux11
*)
9234 # Give a soname corresponding to the major version so that dld.sl refuses to
9235 # link against other versions.
9242 hardcode_into_libs
=yes
9243 dynamic_linker
="$host_os dld.so"
9244 shlibpath_var
=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec
='${libname}${release}${shared_ext}$major'
9248 if test "X$HPUX_IA64_MODE" = X32
; then
9249 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9251 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9253 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9257 hardcode_into_libs
=yes
9258 dynamic_linker
="$host_os dld.sl"
9259 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9260 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 soname_spec
='${libname}${release}${shared_ext}$major'
9263 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9264 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9268 dynamic_linker
="$host_os dld.sl"
9269 shlibpath_var
=SHLIB_PATH
9270 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec
='${libname}${release}${shared_ext}$major'
9275 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9276 postinstall_cmds
='chmod 555 $lib'
9283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284 soname_spec
='${libname}${release}${shared_ext}$major'
9285 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9286 shlibpath_var
=LD_LIBRARY_PATH
9287 shlibpath_overrides_runpath
=no
9288 hardcode_into_libs
=yes
9291 irix5
* | irix6
* | nonstopux
*)
9293 nonstopux
*) version_type
=nonstopux
;;
9295 if test "$lt_cv_prog_gnu_ld" = yes; then
9303 soname_spec
='${libname}${release}${shared_ext}$major'
9304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9306 irix5
* | nonstopux
*)
9310 case $LD in # libtool.m4 will add one of these switches to LD
9311 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9312 libsuff
= shlibsuff
= libmagic
=32-bit;;
9313 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9314 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9315 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9316 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9317 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9321 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9322 shlibpath_overrides_runpath
=no
9323 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9324 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9325 hardcode_into_libs
=yes
9328 # No shared lib support for Linux oldld, aout, or coff.
9329 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9333 # This must be Linux ELF.
9334 linux
* | k
*bsd
*-gnu)
9338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec
='${libname}${release}${shared_ext}$major'
9340 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9341 shlibpath_var
=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath
=no
9343 # This implies no fast_install, which is unacceptable.
9344 # Some rework will be needed to allow for fast_install
9345 # before this can be enabled.
9346 hardcode_into_libs
=yes
9348 # Append ld.so.conf contents to the search path
9349 if test -f /etc
/ld.so.conf
; then
9350 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9351 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9354 # We used to test for /lib/ld.so.1 and disable shared libraries on
9355 # powerpc, because MkLinux only supported shared libraries with the
9356 # GNU dynamic linker. Since this was broken with cross compilers,
9357 # most powerpc-linux boxes support dynamic linking these days and
9358 # people can always --disable-shared, the test was removed, and we
9359 # assume the GNU/Linux dynamic linker is in use.
9360 dynamic_linker
='GNU/Linux ld.so'
9367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9368 soname_spec
='${libname}${release}${shared_ext}$major'
9369 shlibpath_var
=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath
=no
9371 hardcode_into_libs
=yes
9372 dynamic_linker
='NetBSD ld.elf_so'
9379 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9382 dynamic_linker
='NetBSD (a.out) ld.so'
9384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9385 soname_spec
='${libname}${release}${shared_ext}$major'
9386 dynamic_linker
='NetBSD ld.elf_so'
9388 shlibpath_var
=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath
=yes
9390 hardcode_into_libs
=yes
9395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396 shlibpath_var
=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath
=yes
9404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec
='${libname}${release}${shared_ext}$major'
9406 shlibpath_var
=LD_LIBRARY_PATH
9407 shlibpath_overrides_runpath
=yes
9412 sys_lib_dlsearch_path_spec
="/usr/lib"
9414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9416 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9417 *) need_version
=no
;;
9419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9420 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9421 shlibpath_var
=LD_LIBRARY_PATH
9422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9424 openbsd2.
[89] | openbsd2.
[89].
*)
9425 shlibpath_overrides_runpath
=no
9428 shlibpath_overrides_runpath
=yes
9432 shlibpath_overrides_runpath
=yes
9437 libname_spec
='$name'
9440 library_names_spec
='$libname${shared_ext} $libname.a'
9441 dynamic_linker
='OS/2 ld.exe'
9442 shlibpath_var
=LIBPATH
9445 osf3
* | osf4
* | osf5
*)
9449 soname_spec
='${libname}${release}${shared_ext}$major'
9450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 shlibpath_var
=LD_LIBRARY_PATH
9452 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9453 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465 soname_spec
='${libname}${release}${shared_ext}$major'
9466 shlibpath_var
=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath
=yes
9468 hardcode_into_libs
=yes
9469 # ldd complains unless libraries are executable
9470 postinstall_cmds
='chmod +x $lib'
9475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9477 shlibpath_var
=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath
=yes
9479 if test "$with_gnu_ld" = yes; then
9487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec
='${libname}${release}${shared_ext}$major'
9489 shlibpath_var
=LD_LIBRARY_PATH
9490 case $host_vendor in
9492 shlibpath_overrides_runpath
=no
9494 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9495 runpath_var
=LD_RUN_PATH
9503 shlibpath_overrides_runpath
=no
9504 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9510 if test -d /usr
/nec
;then
9512 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9513 soname_spec
='$libname${shared_ext}.$major'
9514 shlibpath_var
=LD_LIBRARY_PATH
9518 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9519 version_type
=freebsd-elf
9522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9523 soname_spec
='${libname}${release}${shared_ext}$major'
9524 shlibpath_var
=LD_LIBRARY_PATH
9525 hardcode_into_libs
=yes
9526 if test "$with_gnu_ld" = yes; then
9527 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9528 shlibpath_overrides_runpath
=no
9530 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9531 shlibpath_overrides_runpath
=yes
9534 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9538 sys_lib_dlsearch_path_spec
='/usr/lib'
9543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 soname_spec
='${libname}${release}${shared_ext}$major'
9545 shlibpath_var
=LD_LIBRARY_PATH
9552 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9553 echo "${ECHO_T}$dynamic_linker" >&6; }
9554 test "$dynamic_linker" = no
&& can_build_shared
=no
9556 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9557 if test "$GCC" = yes; then
9558 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9561 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9562 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9564 if test -n "$hardcode_libdir_flag_spec" || \
9565 test -n "$runpath_var" || \
9566 test "X$hardcode_automatic" = "Xyes" ; then
9568 # We can hardcode non-existant directories.
9569 if test "$hardcode_direct" != no
&&
9570 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9571 # have to relink, otherwise we might link with an installed library
9572 # when we should be linking with a yet-to-be-installed one
9573 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9574 test "$hardcode_minus_L" != no
; then
9575 # Linking always hardcodes the temporary library directory.
9576 hardcode_action
=relink
9578 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9579 hardcode_action
=immediate
9582 # We cannot hardcode anything, or else we can only hardcode existing
9584 hardcode_action
=unsupported
9586 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9587 echo "${ECHO_T}$hardcode_action" >&6; }
9589 if test "$hardcode_action" = relink
; then
9590 # Fast installation is not supported
9591 enable_fast_install
=no
9592 elif test "$shlibpath_overrides_runpath" = yes ||
9593 test "$enable_shared" = no
; then
9594 # Fast installation is not necessary
9595 enable_fast_install
=needless
9600 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9601 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9602 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9603 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9604 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9605 { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9608 # FIXME - insert some real tests, host_os isn't really good enough
9611 if test -n "$STRIP" ; then
9612 striplib
="$STRIP -x"
9613 old_striplib
="$STRIP -S"
9614 { echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6; }
9617 { echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6; }
9622 { echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6; }
9628 if test "x$enable_dlopen" != xyes
; then
9629 enable_dlopen
=unknown
9630 enable_dlopen_self
=unknown
9631 enable_dlopen_self_static
=unknown
9638 lt_cv_dlopen
="load_add_on"
9640 lt_cv_dlopen_self
=yes
9644 lt_cv_dlopen
="LoadLibrary"
9649 lt_cv_dlopen
="dlopen"
9654 # if libdl is installed we need to link against it
9655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS
=$LIBS
9662 cat >conftest.
$ac_ext <<_ACEOF
9665 cat confdefs.h
>>conftest.
$ac_ext
9666 cat >>conftest.
$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9684 rm -f conftest.
$ac_objext conftest
$ac_exeext
9685 if { (ac_try
="$ac_link"
9687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest$ac_exeext &&
9701 $as_test_x conftest$ac_exeext; then
9702 ac_cv_lib_dl_dlopen=yes
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9707 ac_cv_lib_dl_dlopen=no
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711 conftest$ac_exeext conftest.$ac_ext
9712 LIBS=$ac_check_lib_save_LIBS
9714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9716 if test $ac_cv_lib_dl_dlopen = yes; then
9717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9722 lt_cv_dlopen_self=yes
9729 { echo "$as_me:$LINENO: checking for shl_load" >&5
9730 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9731 if test "${ac_cv_func_shl_load+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9742 #define shl_load innocuous_shl_load
9744 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char shl_load (); below.
9746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747 <limits.h> exists even on freestanding compilers. */
9750 # include <limits.h>
9752 # include <assert.h>
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9764 /* The GNU C library defines this for functions which it implements
9765 to always fail with ENOSYS. Some functions are actually named
9766 something starting with __ and the normal name is an alias. */
9767 #if defined __stub_shl_load || defined __stub___shl_load
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9783 *) ac_try_echo
=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9788 grep -v '^ *+' conftest.er1
>conftest.err
9790 cat conftest.err
>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest
$ac_exeext &&
9796 $as_test_x conftest
$ac_exeext; then
9797 ac_cv_func_shl_load
=yes
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.
$ac_ext >&5
9802 ac_cv_func_shl_load
=no
9805 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9806 conftest
$ac_exeext conftest.
$ac_ext
9808 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9809 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9810 if test $ac_cv_func_shl_load = yes; then
9811 lt_cv_dlopen
="shl_load"
9813 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9814 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 ac_check_lib_save_LIBS
=$LIBS
9820 cat >conftest.
$ac_ext <<_ACEOF
9823 cat confdefs.h
>>conftest.
$ac_ext
9824 cat >>conftest.
$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9842 rm -f conftest.
$ac_objext conftest
$ac_exeext
9843 if { (ac_try
="$ac_link"
9845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_link") 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } && {
9856 test -z "$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 } && test -s conftest$ac_exeext &&
9859 $as_test_x conftest$ac_exeext; then
9860 ac_cv_lib_dld_shl_load=yes
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_cv_lib_dld_shl_load=no
9868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LIBS=$ac_check_lib_save_LIBS
9872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9874 if test $ac_cv_lib_dld_shl_load = yes; then
9875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9877 { echo "$as_me:$LINENO: checking for dlopen" >&5
9878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9879 if test "${ac_cv_func_dlopen+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9890 #define dlopen innocuous_dlopen
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char dlopen (); below.
9894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895 <limits.h> exists even on freestanding compilers. */
9898 # include <limits.h>
9900 # include <assert.h>
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined __stub_dlopen || defined __stub___dlopen
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9931 *) ac_try_echo
=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9936 grep -v '^ *+' conftest.er1
>conftest.err
9938 cat conftest.err
>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest
$ac_exeext &&
9944 $as_test_x conftest
$ac_exeext; then
9945 ac_cv_func_dlopen
=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.
$ac_ext >&5
9950 ac_cv_func_dlopen
=no
9953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9954 conftest
$ac_exeext conftest.
$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9957 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9958 if test $ac_cv_func_dlopen = yes; then
9959 lt_cv_dlopen
="dlopen"
9961 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 ac_check_lib_save_LIBS
=$LIBS
9968 cat >conftest.
$ac_ext <<_ACEOF
9971 cat confdefs.h
>>conftest.
$ac_ext
9972 cat >>conftest.
$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9975 /* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
9990 rm -f conftest.
$ac_objext conftest
$ac_exeext
9991 if { (ac_try
="$ac_link"
9993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_link") 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest$ac_exeext &&
10007 $as_test_x conftest$ac_exeext; then
10008 ac_cv_lib_dl_dlopen=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_lib_dl_dlopen=no
10016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10022 if test $ac_cv_lib_dl_dlopen = yes; then
10023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10025 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10026 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 ac_check_lib_save_LIBS=$LIBS
10031 LIBS="-lsvld $LIBS"
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10058 *) ac_try_echo
=$ac_try;;
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10063 grep -v '^ *+' conftest.er1
>conftest.err
10065 cat conftest.err
>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } && {
10068 test -z "$ac_c_werror_flag" ||
10069 test ! -s conftest.err
10070 } && test -s conftest
$ac_exeext &&
10071 $as_test_x conftest
$ac_exeext; then
10072 ac_cv_lib_svld_dlopen
=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.
$ac_ext >&5
10077 ac_cv_lib_svld_dlopen
=no
10080 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10081 conftest
$ac_exeext conftest.
$ac_ext
10082 LIBS
=$ac_check_lib_save_LIBS
10084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10086 if test $ac_cv_lib_svld_dlopen = yes; then
10087 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10089 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10090 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10091 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 ac_check_lib_save_LIBS
=$LIBS
10096 cat >conftest.
$ac_ext <<_ACEOF
10099 cat confdefs.h
>>conftest.
$ac_ext
10100 cat >>conftest.
$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10113 return dld_link ();
10118 rm -f conftest.
$ac_objext conftest
$ac_exeext
10119 if { (ac_try
="$ac_link"
10120 case "(($ac_try" in
10121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_link") 2>conftest.er1
10127 grep -v '^ *+' conftest.er1 >conftest.err
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest$ac_exeext &&
10135 $as_test_x conftest$ac_exeext; then
10136 ac_cv_lib_dld_dld_link=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ac_cv_lib_dld_dld_link=no
10144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10145 conftest$ac_exeext conftest.$ac_ext
10146 LIBS=$ac_check_lib_save_LIBS
10148 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10149 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10150 if test $ac_cv_lib_dld_dld_link = yes; then
10151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10172 if test "x$lt_cv_dlopen" != xno; then
10178 case $lt_cv_dlopen in
10180 save_CPPFLAGS="$CPPFLAGS"
10181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10183 save_LDFLAGS="$LDFLAGS"
10184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10187 LIBS="$lt_cv_dlopen_libs $LIBS"
10189 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10190 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10191 if test "${lt_cv_dlopen_self+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 if test "$cross_compiling" = yes; then :
10195 lt_cv_dlopen_self=cross
10197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10198 lt_status=$lt_dlunknown
10199 cat > conftest.$ac_ext <<EOF
10200 #line 10199 "configure"
10201 #include "confdefs.h"
10210 # define LT_DLGLOBAL RTLD_GLOBAL
10213 # define LT_DLGLOBAL DL_GLOBAL
10215 # define LT_DLGLOBAL 0
10219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10220 find out it does not work in some platform. */
10221 #ifndef LT_DLLAZY_OR_NOW
10223 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10226 # define LT_DLLAZY_OR_NOW DL_LAZY
10229 # define LT_DLLAZY_OR_NOW RTLD_NOW
10232 # define LT_DLLAZY_OR_NOW DL_NOW
10234 # define LT_DLLAZY_OR_NOW 0
10242 extern "C" void exit (int);
10245 void fnord() { int i=42;}
10248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10249 int status = $lt_dlunknown;
10253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10255 /* dlclose (self); */
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10268 (./conftest; exit; ) >&5 2>/dev/null
10270 case x$lt_status in
10271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10276 # compilation failed
10277 lt_cv_dlopen_self=no
10284 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10287 if test "x$lt_cv_dlopen_self" = xyes; then
10288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10289 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10291 if test "${lt_cv_dlopen_self_static+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 if test "$cross_compiling" = yes; then :
10295 lt_cv_dlopen_self_static=cross
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10299 "configure"
10301 #include "confdefs.h"
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10315 # define LT_DLGLOBAL 0
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # define LT_DLLAZY_OR_NOW 0
10342 extern "C" void exit (int);
10345 void fnord() { int i=42;}
10348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349 int status = $lt_dlunknown;
10353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355 /* dlclose (self); */
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364 (eval $ac_link) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10368 (./conftest; exit; ) >&5 2>/dev/null
10370 case x$lt_status in
10371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10373 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10376 # compilation failed
10377 lt_cv_dlopen_self_static=no
10384 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10388 CPPFLAGS="$save_CPPFLAGS"
10389 LDFLAGS="$save_LDFLAGS"
10394 case $lt_cv_dlopen_self in
10395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10396 *) enable_dlopen_self=unknown ;;
10399 case $lt_cv_dlopen_self_static in
10400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10401 *) enable_dlopen_self_static=unknown ;;
10406 # Report which library types will actually be built
10407 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10409 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10410 echo "${ECHO_T}$can_build_shared" >&6; }
10412 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10414 test "$can_build_shared" = "no" && enable_shared=no
10416 # On AIX, shared libraries and static libraries use the same namespace, and
10417 # are all built from PIC.
10420 test "$enable_shared" = yes && enable_static=no
10421 if test -n "$RANLIB"; then
10422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10423 postinstall_cmds='$RANLIB $lib'
10428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10429 test "$enable_shared" = yes && enable_static=no
10433 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10434 echo "${ECHO_T}$enable_shared" >&6; }
10436 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10438 # Make sure either enable_shared or enable_static is yes.
10439 test "$enable_shared" = yes || enable_static=yes
10440 { echo "$as_me:$LINENO: result: $enable_static" >&5
10441 echo "${ECHO_T}$enable_static" >&6; }
10443 # The else clause should only fire when bootstrapping the
10444 # libtool distribution, otherwise you forgot to ship ltmain.sh
10445 # with your package, and you will get complaints that there are
10446 # no rules to generate ltmain.sh.
10447 if test -f "$ltmain"; then
10448 # See if we are running on zsh, and set the options which allow our commands through
10449 # without removal of \ escapes.
10450 if test -n "${ZSH_VERSION+set}" ; then
10451 setopt NO_GLOB_SUBST
10453 # Now quote all the things that may contain metacharacters while being
10454 # careful not to overquote the AC_SUBSTed values. We take copies of the
10455 # variables and quote the copies for generation of the libtool script.
10456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10460 deplibs_check_method reload_flag reload_cmds need_locks \
10461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10462 lt_cv_sys_global_symbol_to_c_name_address \
10463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10464 old_postinstall_cmds old_postuninstall_cmds \
10468 lt_prog_compiler_wl \
10469 lt_prog_compiler_pic \
10470 lt_prog_compiler_static \
10471 lt_prog_compiler_no_builtin_flag \
10472 export_dynamic_flag_spec \
10473 thread_safe_flag_spec \
10474 whole_archive_flag_spec \
10475 enable_shared_with_static_runtimes \
10477 old_archive_from_new_cmds \
10482 compiler_lib_search_path \
10484 archive_expsym_cmds \
10486 postuninstall_cmds \
10487 old_archive_from_expsyms_cmds \
10488 allow_undefined_flag \
10489 no_undefined_flag \
10490 export_symbols_cmds \
10491 hardcode_libdir_flag_spec \
10492 hardcode_libdir_flag_spec_ld \
10493 hardcode_libdir_separator \
10494 hardcode_automatic \
10496 module_expsym_cmds \
10497 lt_cv_prog_compiler_c_o \
10500 include_expsyms; do
10503 old_archive_cmds | \
10504 old_archive_from_new_cmds | \
10506 archive_expsym_cmds | \
10508 module_expsym_cmds | \
10509 old_archive_from_expsyms_cmds | \
10510 export_symbols_cmds | \
10511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10512 postinstall_cmds | postuninstall_cmds | \
10513 old_postinstall_cmds | old_postuninstall_cmds | \
10514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10515 # Double-quote double-evaled strings.
10516 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10519 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10525 *'\$0 --fallback-echo"')
10526 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10530 cfgfile="${ofile}T"
10531 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10533 { echo "$as_me:$LINENO: creating $ofile" >&5
10534 echo "$as_me: creating $ofile" >&6;}
10536 cat <<__EOF__ >> "$cfgfile"
10539 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10540 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10541 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10543 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10544 # Free Software Foundation, Inc.
10546 # This file is part of GNU Libtool:
10547 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10549 # This program is free software; you can redistribute it and/or modify
10550 # it under the terms of the GNU General Public License as published by
10551 # the Free Software Foundation; either version 2 of the License, or
10552 # (at your option) any later version.
10554 # This program is distributed in the hope that it will be useful, but
10555 # WITHOUT ANY WARRANTY; without even the implied warranty of
10556 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10557 # General Public License for more details.
10559 # You should have received a copy of the GNU General Public License
10560 # along with this program; if not, write to the Free Software
10561 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10563 # As a special exception to the GNU General Public License, if you
10564 # distribute this file as part of a program that contains a
10565 # configuration script generated by Autoconf, you may include it under
10566 # the same distribution terms that you use for the rest of that program.
10568 # A sed program that does not truncate output.
10571 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10572 Xsed="$SED -e 1s/^X//"
10574 # The HP-UX ksh and POSIX shell print the target directory to stdout
10575 # if CDPATH is set.
10576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10578 # The names of the tagged configurations supported by this script.
10581 # ### BEGIN LIBTOOL CONFIG
10583 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10585 # Shell to use when invoking shell scripts.
10588 # Whether or not to build shared libraries.
10589 build_libtool_libs=$enable_shared
10591 # Whether or not to build static libraries.
10592 build_old_libs=$enable_static
10594 # Whether or not to add -lc for building shared libraries.
10595 build_libtool_need_lc=$archive_cmds_need_lc
10597 # Whether or not to disallow shared libs when runtime libs are static
10598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10600 # Whether or not to optimize for fast installation.
10601 fast_install=$enable_fast_install
10604 host_alias=$host_alias
10608 # The build system.
10609 build_alias=$build_alias
10613 # An echo program that does not interpret backslashes.
10618 AR_FLAGS=$lt_AR_FLAGS
10623 # LTCC compiler flags.
10624 LTCFLAGS=$lt_LTCFLAGS
10626 # A language-specific compiler.
10629 # Is the compiler the GNU C compiler?
10635 # The linker used to build libraries.
10638 # Whether we need hard or soft links.
10641 # A BSD-compatible nm program.
10644 # A symbol stripping program
10647 # Used to examine libraries when file_magic_cmd begins "file"
10648 MAGIC_CMD=$MAGIC_CMD
10650 # Used on cygwin: DLL creation program.
10653 # Used on cygwin: object dumper.
10656 # Used on cygwin: assembler.
10659 # The name of the directory that contains temporary libtool files.
10662 # How to create reloadable object files.
10663 reload_flag=$lt_reload_flag
10664 reload_cmds=$lt_reload_cmds
10666 # How to pass a linker flag through the compiler.
10667 wl=$lt_lt_prog_compiler_wl
10669 # Object file suffix (normally "o").
10670 objext="$ac_objext"
10672 # Old archive suffix (normally "a").
10675 # Shared library suffix (normally ".so").
10676 shrext_cmds='$shrext_cmds'
10678 # Executable file suffix (normally "").
10681 # Additional compiler flags for building library objects.
10682 pic_flag=$lt_lt_prog_compiler_pic
10685 # What is the maximum length of a command?
10686 max_cmd_len=$lt_cv_sys_max_cmd_len
10688 # Does compiler simultaneously support -c and -o options?
10689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10691 # Must we lock files when doing compilation?
10692 need_locks=$lt_need_locks
10694 # Do we need the lib prefix for modules?
10695 need_lib_prefix=$need_lib_prefix
10697 # Do we need a version for libraries?
10698 need_version=$need_version
10700 # Whether dlopen is supported.
10701 dlopen_support=$enable_dlopen
10703 # Whether dlopen of programs is supported.
10704 dlopen_self=$enable_dlopen_self
10706 # Whether dlopen of statically linked programs is supported.
10707 dlopen_self_static=$enable_dlopen_self_static
10709 # Compiler flag to prevent dynamic linking.
10710 link_static_flag=$lt_lt_prog_compiler_static
10712 # Compiler flag to turn off builtin functions.
10713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10715 # Compiler flag to allow reflexive dlopens.
10716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10718 # Compiler flag to generate shared objects directly from archives.
10719 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10721 # Compiler flag to generate thread-safe objects.
10722 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10724 # Library versioning type.
10725 version_type=$version_type
10727 # Format of library name prefix.
10728 libname_spec=$lt_libname_spec
10730 # List of archive names. First name is the real one, the rest are links.
10731 # The last name is the one that the linker finds with -lNAME.
10732 library_names_spec=$lt_library_names_spec
10734 # The coded name of the library, if different from the real name.
10735 soname_spec=$lt_soname_spec
10737 # Commands used to build and install an old-style archive.
10739 old_archive_cmds=$lt_old_archive_cmds
10740 old_postinstall_cmds=$lt_old_postinstall_cmds
10741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10743 # Create an old-style archive from a shared archive.
10744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10746 # Create a temporary old-style archive to link instead of a shared archive.
10747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10749 # Commands used to build and install a shared archive.
10750 archive_cmds=$lt_archive_cmds
10751 archive_expsym_cmds=$lt_archive_expsym_cmds
10752 postinstall_cmds=$lt_postinstall_cmds
10753 postuninstall_cmds=$lt_postuninstall_cmds
10755 # Commands used to build a loadable module (assumed same as above if empty)
10756 module_cmds=$lt_module_cmds
10757 module_expsym_cmds=$lt_module_expsym_cmds
10759 # Commands to strip libraries.
10760 old_striplib=$lt_old_striplib
10761 striplib=$lt_striplib
10763 # Dependencies to place before the objects being linked to create a
10765 predep_objects=$lt_predep_objects
10767 # Dependencies to place after the objects being linked to create a
10769 postdep_objects=$lt_postdep_objects
10771 # Dependencies to place before the objects being linked to create a
10773 predeps=$lt_predeps
10775 # Dependencies to place after the objects being linked to create a
10777 postdeps=$lt_postdeps
10779 # The library search path used internally by the compiler when linking
10780 # a shared library.
10781 compiler_lib_search_path=$lt_compiler_lib_search_path
10783 # Method to check whether dependent libraries are shared objects.
10784 deplibs_check_method=$lt_deplibs_check_method
10786 # Command to use when deplibs_check_method == file_magic.
10787 file_magic_cmd=$lt_file_magic_cmd
10789 # Flag that allows shared libraries with undefined symbols to be built.
10790 allow_undefined_flag=$lt_allow_undefined_flag
10792 # Flag that forces no undefined symbols.
10793 no_undefined_flag=$lt_no_undefined_flag
10795 # Commands used to finish a libtool library installation in a directory.
10796 finish_cmds=$lt_finish_cmds
10798 # Same as above, but a single script fragment to be evaled but not shown.
10799 finish_eval=$lt_finish_eval
10801 # Take the output of nm and produce a listing of raw symbols and C names.
10802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10804 # Transform the output of nm in a proper C declaration
10805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10807 # Transform the output of nm in a C name address pair
10808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10810 # This is the shared library runtime path variable.
10811 runpath_var=$runpath_var
10813 # This is the shared library path variable.
10814 shlibpath_var=$shlibpath_var
10816 # Is shlibpath searched before the hard-coded library search path?
10817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10819 # How to hardcode a shared library path into an executable.
10820 hardcode_action=$hardcode_action
10822 # Whether we should hardcode library paths into libraries.
10823 hardcode_into_libs=$hardcode_into_libs
10825 # Flag to hardcode \$libdir into a binary during linking.
10826 # This must work even if \$libdir does not exist.
10827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10829 # If ld is used when linking, flag to hardcode \$libdir into
10830 # a binary during linking. This must work even if \$libdir does
10832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10834 # Whether we need a single -rpath flag with a separated argument.
10835 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_direct=$hardcode_direct
10841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10842 # resulting binary.
10843 hardcode_minus_L=$hardcode_minus_L
10845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10846 # the resulting binary.
10847 hardcode_shlibpath_var=$hardcode_shlibpath_var
10849 # Set to yes if building a shared library automatically hardcodes DIR into the library
10850 # and all subsequent libraries and executables linked against it.
10851 hardcode_automatic=$hardcode_automatic
10853 # Variables whose values should be saved in libtool wrapper scripts and
10854 # restored at relink time.
10855 variables_saved_for_relink="$variables_saved_for_relink"
10857 # Whether libtool must link a program against all its dependency libraries.
10858 link_all_deplibs=$link_all_deplibs
10860 # Compile-time system search path for libraries
10861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10863 # Run-time system search path for libraries
10864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10866 # Fix the shell variable \$srcfile for the compiler.
10867 fix_srcfile_path=$lt_fix_srcfile_path
10869 # Set to yes if exported symbols are required.
10870 always_export_symbols=$always_export_symbols
10872 # The commands to list exported symbols.
10873 export_symbols_cmds=$lt_export_symbols_cmds
10875 # The commands to extract the exported symbol list from a shared archive.
10876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10878 # Symbols that should not be listed in the preloaded symbols.
10879 exclude_expsyms=$lt_exclude_expsyms
10881 # Symbols that must always be exported.
10882 include_expsyms=$lt_include_expsyms
10884 # ### END LIBTOOL CONFIG
10891 cat <<\EOF >> "$cfgfile"
10893 # AIX sometimes has problems with the GCC collect2 program. For some
10894 # reason, if we set the COLLECT_NAMES environment variable, the problems
10895 # vanish in a puff of smoke.
10896 if test "X${COLLECT_NAMES+set}" != Xset; then
10898 export COLLECT_NAMES
10904 # We use sed instead of cat because bash on DJGPP gets confused if
10905 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10906 # text mode, it properly converts lines to CR/LF. This bash problem
10907 # is reportedly fixed, but why not run on old versions too?
10908 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10910 mv -f "$cfgfile" "$ofile" || \
10911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10915 # If there is no Makefile yet, we rely on a make rule to execute
10916 # `config.status
--recheck' to rerun these tests and create the
10917 # libtool script then.
10918 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10919 if test -f "$ltmain_in"; then
10920 test -f Makefile && make "$ltmain"
10926 ac_cpp='$CPP $CPPFLAGS'
10927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10928 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10934 # Check whether --with-tags was given.
10935 if test "${with_tags+set}" = set; then
10936 withval=$with_tags; tagnames="$withval"
10940 if test -f "$ltmain" && test -n "$tagnames"; then
10941 if test ! -f "${ofile}"; then
10942 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10943 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10946 if test -z "$LTCC"; then
10947 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10948 if test -z "$LTCC"; then
10949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10950 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10952 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10953 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10956 if test -z "$LTCFLAGS"; then
10957 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10960 # Extract list of available tagged configurations in $ofile.
10961 # Note that this assumes the entire list is on one line.
10962 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10965 for tagname in $tagnames; do
10967 # Check whether tagname contains only valid characters
10968 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10970 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10971 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10972 { (exit 1); exit 1; }; }
10976 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10978 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10979 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10980 { (exit 1); exit 1; }; }
10983 # Update the list of available tags.
10984 if test -n "$tagname"; then
10985 echo appending configuration tag \"$tagname\" to $ofile
10989 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10990 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10991 (test "X$CXX" != "Xg++"))) ; then
10993 ac_cpp='$CXXCPP $CPPFLAGS'
10994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11001 archive_cmds_need_lc_CXX=no
11002 allow_undefined_flag_CXX=
11003 always_export_symbols_CXX=no
11004 archive_expsym_cmds_CXX=
11005 export_dynamic_flag_spec_CXX=
11006 hardcode_direct_CXX=no
11007 hardcode_libdir_flag_spec_CXX=
11008 hardcode_libdir_flag_spec_ld_CXX=
11009 hardcode_libdir_separator_CXX=
11010 hardcode_minus_L_CXX=no
11011 hardcode_shlibpath_var_CXX=unsupported
11012 hardcode_automatic_CXX=no
11014 module_expsym_cmds_CXX=
11015 link_all_deplibs_CXX=unknown
11016 old_archive_cmds_CXX=$old_archive_cmds
11017 no_undefined_flag_CXX=
11018 whole_archive_flag_spec_CXX=
11019 enable_shared_with_static_runtimes_CXX=no
11021 # Dependencies to place before and after the object being linked:
11022 predep_objects_CXX=
11023 postdep_objects_CXX=
11026 compiler_lib_search_path_CXX=
11028 # Source file extension for C++ test sources.
11031 # Object file extension for compiled C++ test sources.
11035 # Code to be used in simple compile tests
11036 lt_simple_compile_test_code="int some_variable = 0;"
11038 # Code to be used in simple link tests
11039 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11041 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11043 # If no C compiler was specified, use CC.
11046 # If no C compiler flags were specified, use CFLAGS.
11047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11049 # Allow CC to be a program name with arguments.
11053 # save warnings/boilerplate of simple test code
11054 ac_outfile=conftest.$ac_objext
11055 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11056 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11057 _lt_compiler_boilerplate=`cat conftest.err
`
11060 ac_outfile=conftest.$ac_objext
11061 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11062 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11063 _lt_linker_boilerplate=`cat conftest.err
`
11067 # Allow CC to be a program name with arguments.
11072 lt_save_with_gnu_ld=$with_gnu_ld
11073 lt_save_path_LD=$lt_cv_path_LD
11074 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11075 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11077 $as_unset lt_cv_prog_gnu_ld
11079 if test -n "${lt_cv_path_LDCXX+set}"; then
11080 lt_cv_path_LD=$lt_cv_path_LDCXX
11082 $as_unset lt_cv_path_LD
11084 test -z "${LDCXX+set}" || LD=$LDCXX
11088 for cc_temp in $compiler""; do
11090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11096 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099 # We don't want -fno-exception wen compiling C++ code, so set the
11100 # no_builtin_flag separately
11101 if test "$GXX" = yes; then
11102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11104 lt_prog_compiler_no_builtin_flag_CXX=
11107 if test "$GXX" = yes; then
11108 # Set up default GNU C++ configuration
11111 # Check whether --with-gnu-ld was given.
11112 if test "${with_gnu_ld+set}" = set; then
11113 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11119 if test "$GCC" = yes; then
11120 # Check if gcc -print-prog-name=ld gives a path.
11121 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11125 # gcc leaves a trailing carriage return which upsets mingw
11126 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11128 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11131 # Accept absolute paths.
11133 re_direlt='/[^/][^/]*/\.\./'
11134 # Canonicalize the pathname of ld
11135 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11137 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11139 test -z "$LD" && LD="$ac_prog"
11142 # If it fails, then pretend we aren't using GCC.
11146 # If it is relative, then search for the first ld in PATH.
11147 with_gnu_ld=unknown
11150 elif test "$with_gnu_ld" = yes; then
11151 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11154 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11157 if test "${lt_cv_path_LD+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 if test -z "$LD"; then
11161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11162 for ac_dir in $PATH; do
11164 test -z "$ac_dir" && ac_dir=.
11165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11166 lt_cv_path_LD="$ac_dir/$ac_prog"
11167 # Check to see if the program is GNU ld. I'd rather use --version,
11168 # but apparently some variants of GNU ld only accept -v.
11169 # Break only if it was the GNU/non-GNU ld that we prefer.
11170 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11171 *GNU* | *'with BFD'*)
11172 test "$with_gnu_ld" != no && break
11175 test "$with_gnu_ld" != yes && break
11182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11186 LD="$lt_cv_path_LD"
11187 if test -n "$LD"; then
11188 { echo "$as_me:$LINENO: result: $LD" >&5
11189 echo "${ECHO_T}$LD" >&6; }
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11196 { (exit 1); exit 1; }; }
11197 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11203 case `$LD -v 2>&1 </dev
/null
` in
11204 *GNU* | *'with BFD'*)
11205 lt_cv_prog_gnu_ld=yes
11208 lt_cv_prog_gnu_ld=no
11212 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11214 with_gnu_ld=$lt_cv_prog_gnu_ld
11218 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11219 # archiving commands below assume that GNU ld is being used.
11220 if test "$with_gnu_ld" = yes; then
11221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11222 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'
11224 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11227 # If archive_cmds runs LD, not CC, wlarc should be empty
11228 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11229 # investigate it a little bit more. (MM)
11232 # ancient GNU ld didn't support --whole-archive et. al.
11233 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11234 grep 'no-whole-archive' > /dev/null; then
11235 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11237 whole_archive_flag_spec_CXX=
11243 # A generic and very simple default shared library creation
11244 # command for GNU C++ for the case where it uses the native
11245 # linker, instead of GNU ld. If possible, this setting should
11246 # overridden to take advantage of the native linker features on
11247 # the platform it is being used on.
11248 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11251 # Commands to make compiler produce verbose output that lists
11252 # what "hidden" libraries, object files and flags are used when
11253 # linking a shared library.
11254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11262 # PORTME: fill in a description of your system's C++ link characteristics
11263 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11264 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11268 # FIXME: insert proper C++ library support
11272 if test "$host_cpu" = ia64; then
11273 # On IA64, the linker does run time linking by default, so we don't
11274 # have to do anything special.
11275 aix_use_runtimelinking=no
11276 exp_sym_flag='-Bexport'
11279 aix_use_runtimelinking=no
11281 # Test if we are trying to use run time linking or normal
11282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11283 # need to do runtime linking.
11284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11285 for ld_flag in $LDFLAGS; do
11288 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.
11306 archive_cmds_CXX=''
11307 hardcode_direct_CXX=yes
11308 hardcode_libdir_separator_CXX=':'
11309 link_all_deplibs_CXX=yes
11311 if test "$GXX" = yes; then
11312 case $host_os in aix4.[012]|aix4.[012].*)
11313 # We only want to do this on AIX 4.2 and lower, the check
11314 # below for broken collect2 doesn't work under 4.3+
11315 collect2name=`${CC} -print-prog-name=collect2
`
11316 if test -f "$collect2name" && \
11317 strings "$collect2name" | grep resolve_lib_name >/dev/null
11319 # We have reworked collect2
11322 # We have old collect2
11323 hardcode_direct_CXX=unsupported
11324 # It fails to find uninstalled libraries when the uninstalled
11325 # path is not listed in the libpath. Setting hardcode_minus_L
11326 # to unsupported forces relinking
11327 hardcode_minus_L_CXX=yes
11328 hardcode_libdir_flag_spec_CXX='-L$libdir'
11329 hardcode_libdir_separator_CXX=
11333 shared_flag='-shared'
11334 if test "$aix_use_runtimelinking" = yes; then
11335 shared_flag="$shared_flag "'${wl}-G'
11339 if test "$host_cpu" = ia64; then
11340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11341 # chokes on -Wl,-G. The following line is correct:
11344 if test "$aix_use_runtimelinking" = yes; then
11345 shared_flag='${wl}-G'
11347 shared_flag='${wl}-bM:SRE'
11352 # It seems that -bexpall does not export symbols beginning with
11353 # underscore (_), so it is better to generate a list of symbols to export.
11354 always_export_symbols_CXX=yes
11355 if test "$aix_use_runtimelinking" = yes; then
11356 # Warning - without using the other runtime loading flags (-brtl),
11357 # -berok will link without error, but may produce a broken library.
11358 allow_undefined_flag_CXX='-berok'
11359 # Determine the default libpath from the value encoded in an empty executable.
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11379 *) ac_try_echo
=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_link") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1
>conftest.err
11386 cat conftest.err
>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_cxx_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest
$ac_exeext &&
11392 $as_test_x conftest
$ac_exeext; then
11394 lt_aix_libpath_sed
='
11395 /Import File Strings/,/^$/ {
11401 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 # Check for a 64-bit object if we didn't find anything.
11403 if test -z "$aix_libpath"; then
11404 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.
$ac_ext >&5
11413 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11414 conftest
$ac_exeext conftest.
$ac_ext
11415 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11417 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11419 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11421 if test "$host_cpu" = ia64
; then
11422 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11423 allow_undefined_flag_CXX
="-z nodefs"
11424 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"
11426 # Determine the default libpath from the value encoded in an empty executable.
11427 cat >conftest.
$ac_ext <<_ACEOF
11430 cat confdefs.h
>>conftest.
$ac_ext
11431 cat >>conftest.
$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11442 rm -f conftest.
$ac_objext conftest
$ac_exeext
11443 if { (ac_try
="$ac_link"
11444 case "(($ac_try" in
11445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_link") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_cxx_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext &&
11459 $as_test_x conftest$ac_exeext; then
11461 lt_aix_libpath_sed='
11462 /Import File Strings/,/^$/ {
11468 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11469 # Check for a 64-bit object if we didn't find anything.
11470 if test -z "$aix_libpath"; then
11471 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481 conftest$ac_exeext conftest.$ac_ext
11482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11485 # Warning - without using the other run time loading flags,
11486 # -berok will link without error, but may produce a broken library.
11487 no_undefined_flag_CXX=' ${wl}-bernotok'
11488 allow_undefined_flag_CXX=' ${wl}-berok'
11489 # Exported symbols can be pulled into shared objects from archives
11490 whole_archive_flag_spec_CXX='$convenience'
11491 archive_cmds_need_lc_CXX=yes
11492 # This is similar to how AIX traditionally builds its shared libraries.
11493 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'
11499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11500 allow_undefined_flag_CXX=unsupported
11501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11502 # support --undefined. This deserves some investigation. FIXME
11503 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510 case $cc_basename in
11512 # FIXME: insert proper C++ library support
11518 cygwin* | mingw* | pw32*)
11519 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11520 # as there is no search path for DLLs.
11521 hardcode_libdir_flag_spec_CXX='-L$libdir'
11522 allow_undefined_flag_CXX=unsupported
11523 always_export_symbols_CXX=no
11524 enable_shared_with_static_runtimes_CXX=yes
11526 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11527 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'
11528 # If the export-symbols file already is a .def file (1st line
11529 # is EXPORTS), use it as is; otherwise, prepend...
11530 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11531 cp $export_symbols $output_objdir/$soname.def;
11533 echo EXPORTS > $output_objdir/$soname.def;
11534 cat $export_symbols >> $output_objdir/$soname.def;
11536 $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'
11541 darwin* | rhapsody*)
11543 rhapsody* | darwin1.[012])
11544 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11547 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11548 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11550 case ${MACOSX_DEPLOYMENT_TARGET} in
11552 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11555 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11561 archive_cmds_need_lc_CXX=no
11562 hardcode_direct_CXX=no
11563 hardcode_automatic_CXX=yes
11564 hardcode_shlibpath_var_CXX=unsupported
11565 whole_archive_flag_spec_CXX=''
11566 link_all_deplibs_CXX=yes
11568 if test "$GXX" = yes ; then
11569 lt_int_apple_cc_single_mod=no
11570 output_verbose_link_cmd='echo'
11571 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11572 lt_int_apple_cc_single_mod=yes
11574 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11575 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11577 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'
11579 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11580 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11581 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11582 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11584 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11586 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11588 case $cc_basename in
11590 output_verbose_link_cmd='echo'
11591 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11592 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11594 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11595 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11605 case $cc_basename in
11607 # FIXME: insert proper C++ library support
11611 # Green Hills C++ Compiler
11612 # FIXME: insert proper C++ library support
11616 # FIXME: insert proper C++ library support
11622 # C++ shared libraries reported to be fairly broken before switch to ELF
11626 archive_cmds_need_lc_CXX=no
11628 freebsd* | dragonfly*)
11629 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11636 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11637 hardcode_libdir_separator_CXX=:
11638 export_dynamic_flag_spec_CXX='${wl}-E'
11639 hardcode_direct_CXX=yes
11640 hardcode_minus_L_CXX=yes # Not in the search PATH,
11641 # but as the default
11642 # location of the library.
11644 case $cc_basename in
11646 # FIXME: insert proper C++ library support
11650 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'
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11655 # There doesn't appear to be a way to prevent this compiler from
11656 # explicitly linking system object files so we need to strip them
11657 # from the output so that they don't get included in the library
11659 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.
$objext 2>&1) |
grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11662 if test "$GXX" = yes; then
11663 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'
11665 # FIXME: insert proper C++ library support
11672 if test $with_gnu_ld = no; then
11673 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11674 hardcode_libdir_separator_CXX=:
11679 export_dynamic_flag_spec_CXX='${wl}-E'
11685 hardcode_direct_CXX=no
11686 hardcode_shlibpath_var_CXX=no
11689 hardcode_direct_CXX=yes
11690 hardcode_minus_L_CXX=yes # Not in the search PATH,
11691 # but as the default
11692 # location of the library.
11696 case $cc_basename in
11698 # FIXME: insert proper C++ library support
11704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11707 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11713 # Commands to make compiler produce verbose output that lists
11714 # what "hidden" libraries, object files and flags are used when
11715 # linking a shared library.
11717 # There doesn't appear to be a way to prevent this compiler from
11718 # explicitly linking system object files so we need to strip them
11719 # from the output so that they don't get included in the library
11721 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.
$objext 2>&1) |
grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11724 if test "$GXX" = yes; then
11725 if test $with_gnu_ld = no; then
11728 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11731 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11734 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'
11739 # FIXME: insert proper C++ library support
11746 hardcode_direct_CXX=no
11747 hardcode_shlibpath_var_CXX=no
11748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11749 export_dynamic_flag_spec_CXX='${wl}-E'
11750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11751 # Instead, shared libraries are loaded at an image base (0x10000000 by
11752 # default) and relocated if they conflict, which is a slow very memory
11753 # consuming and fragmenting process. To avoid this, we pick a random,
11754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11756 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'
11757 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'
11760 case $cc_basename in
11763 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11765 # Archives containing C++ object files must be created using
11766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11767 # necessary to make sure instantiated templates are included
11769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11772 if test "$GXX" = yes; then
11773 if test "$with_gnu_ld" = no; then
11774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11776 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11779 link_all_deplibs_CXX=yes
11782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11783 hardcode_libdir_separator_CXX=:
11785 linux* | k*bsd*-gnu)
11786 case $cc_basename in
11788 # Kuck and Associates, Inc. (KAI) C++ Compiler
11790 # KCC will only create a shared library if the output file
11791 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11792 # to its proper name (with version) after linking.
11793 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'
11794 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'
11795 # Commands to make compiler produce verbose output that lists
11796 # what "hidden" libraries, object files and flags are used when
11797 # linking a shared library.
11799 # There doesn't appear to be a way to prevent this compiler from
11800 # explicitly linking system object files so we need to strip them
11801 # from the output so that they don't get included in the library
11803 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11805 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11806 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11808 # Archives containing C++ object files must be created using
11809 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11810 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11815 # version 8.0 and above of icpc choke on multiply defined symbols
11816 # if we add $predep_objects and $postdep_objects, however 7.1 and
11817 # earlier do not add the objects themselves.
11818 case `$CC -V 2>&1` in
11820 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11821 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'
11823 *) # Version 8.0 or newer
11826 ia64
*) tmp_idyn
=' -i_dynamic';;
11828 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11829 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'
11832 archive_cmds_need_lc_CXX
=no
11833 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11834 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11835 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11838 # Portland Group C++ compiler
11839 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11840 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'
11842 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11843 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11844 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11848 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11849 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'
11851 runpath_var
=LD_RUN_PATH
11852 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11853 hardcode_libdir_separator_CXX
=:
11855 # Commands to make compiler produce verbose output that lists
11856 # what "hidden" libraries, object files and flags are used when
11857 # linking a shared library.
11859 # There doesn't appear to be a way to prevent this compiler from
11860 # explicitly linking system object files so we need to strip them
11861 # from the output so that they don't get included in the library
11863 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11866 case `$CC -V 2>&1 | sed 5q` in
11869 no_undefined_flag_CXX
=' -zdefs'
11870 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11871 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'
11872 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11873 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11875 # Not sure whether something based on
11876 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11878 output_verbose_link_cmd
='echo'
11880 # Archives containing C++ object files must be created using
11881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11882 # necessary to make sure instantiated templates are included
11884 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11891 # FIXME: insert proper C++ library support
11895 # FIXME: insert proper C++ library support
11899 case $cc_basename in
11901 # FIXME: insert proper C++ library support
11905 # FIXME: insert proper C++ library support
11910 netbsd
* | netbsdelf
*-gnu)
11911 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11912 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11914 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11915 hardcode_direct_CXX
=yes
11916 hardcode_shlibpath_var_CXX
=no
11918 # Workaround some broken pre-1.5 toolchains
11919 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11922 # C++ shared libraries are fairly broken
11926 if test -f /usr
/libexec
/ld.so
; then
11927 hardcode_direct_CXX
=yes
11928 hardcode_shlibpath_var_CXX
=no
11929 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11930 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11932 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11933 export_dynamic_flag_spec_CXX
='${wl}-E'
11934 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11936 output_verbose_link_cmd
='echo'
11942 case $cc_basename in
11944 # Kuck and Associates, Inc. (KAI) C++ Compiler
11946 # KCC will only create a shared library if the output file
11947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11948 # to its proper name (with version) after linking.
11949 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'
11951 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11952 hardcode_libdir_separator_CXX
=:
11954 # Archives containing C++ object files must be created using
11955 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11956 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11960 # Rational C++ 2.4.1
11961 # FIXME: insert proper C++ library support
11965 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11966 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11968 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11969 hardcode_libdir_separator_CXX
=:
11971 # Commands to make compiler produce verbose output that lists
11972 # what "hidden" libraries, object files and flags are used when
11973 # linking a shared library.
11975 # There doesn't appear to be a way to prevent this compiler from
11976 # explicitly linking system object files so we need to strip them
11977 # from the output so that they don't get included in the library
11979 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11982 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11983 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11984 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11986 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11987 hardcode_libdir_separator_CXX
=:
11989 # Commands to make compiler produce verbose output that lists
11990 # what "hidden" libraries, object files and flags are used when
11991 # linking a shared library.
11992 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11995 # FIXME: insert proper C++ library support
12002 case $cc_basename in
12004 # Kuck and Associates, Inc. (KAI) C++ Compiler
12006 # KCC will only create a shared library if the output file
12007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12008 # to its proper name (with version) after linking.
12009 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'
12011 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12012 hardcode_libdir_separator_CXX
=:
12014 # Archives containing C++ object files must be created using
12015 # the KAI C++ compiler.
12016 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12019 # Rational C++ 2.4.1
12020 # FIXME: insert proper C++ library support
12024 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12025 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12026 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12027 echo "-hidden">> $lib.exp~
12028 $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~
12031 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12032 hardcode_libdir_separator_CXX
=:
12034 # Commands to make compiler produce verbose output that lists
12035 # what "hidden" libraries, object files and flags are used when
12036 # linking a shared library.
12038 # There doesn't appear to be a way to prevent this compiler from
12039 # explicitly linking system object files so we need to strip them
12040 # from the output so that they don't get included in the library
12042 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12045 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12046 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12047 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12049 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12050 hardcode_libdir_separator_CXX
=:
12052 # Commands to make compiler produce verbose output that lists
12053 # what "hidden" libraries, object files and flags are used when
12054 # linking a shared library.
12055 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12058 # FIXME: insert proper C++ library support
12065 # FIXME: insert proper C++ library support
12069 case $cc_basename in
12072 # FIXME: insert proper C++ library support
12077 # FIXME: insert proper C++ library support
12081 # FIXME: insert proper C++ library support
12087 case $cc_basename in
12089 # Sun C++ 4.2, 5.x and Centerline C++
12090 archive_cmds_need_lc_CXX
=yes
12091 no_undefined_flag_CXX
=' -zdefs'
12092 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12094 $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'
12096 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12097 hardcode_shlibpath_var_CXX
=no
12099 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12101 # The compiler driver will combine and reorder linker options,
12102 # but understands `-z linker_flag'.
12103 # Supported since Solaris 2.6 (maybe 2.5.1?)
12104 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12107 link_all_deplibs_CXX
=yes
12109 output_verbose_link_cmd
='echo'
12111 # Archives containing C++ object files must be created using
12112 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12113 # necessary to make sure instantiated templates are included
12115 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12118 # Green Hills C++ Compiler
12119 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121 # The C++ compiler must be used to create the archive.
12122 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12125 # GNU C++ compiler with Solaris linker
12126 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12127 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12128 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12129 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12131 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12138 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12140 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12141 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12142 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12144 # Commands to make compiler produce verbose output that lists
12145 # what "hidden" libraries, object files and flags are used when
12146 # linking a shared library.
12147 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12150 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12152 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12154 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12161 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12162 no_undefined_flag_CXX
='${wl}-z,text'
12163 archive_cmds_need_lc_CXX
=no
12164 hardcode_shlibpath_var_CXX
=no
12165 runpath_var
='LD_RUN_PATH'
12167 case $cc_basename in
12169 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12174 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12178 sysv5
* | sco3.2v5
* | sco5v6
*)
12179 # Note: We can NOT use -z defs as we might desire, because we do not
12180 # link with -lc, and that would cause any symbols used from libc to
12181 # always be unresolved, which means just about no library would
12182 # ever link correctly. If we're not using GNU ld we use -z text
12183 # though, which does catch some bad symbols but isn't as heavy-handed
12185 # For security reasons, it is highly recommended that you always
12186 # use absolute paths for naming shared libraries, and exclude the
12187 # DT_RUNPATH tag from executables and libraries. But doing so
12188 # requires that you compile everything twice, which is a pain.
12189 # So that behaviour is only enabled if SCOABSPATH is set to a
12190 # non-empty value in the environment. Most likely only useful for
12191 # creating official distributions of packages.
12192 # This is a hack until libtool officially supports absolute path
12193 # names for shared libraries.
12194 no_undefined_flag_CXX
='${wl}-z,text'
12195 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12196 archive_cmds_need_lc_CXX
=no
12197 hardcode_shlibpath_var_CXX
=no
12198 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12199 hardcode_libdir_separator_CXX
=':'
12200 link_all_deplibs_CXX
=yes
12201 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12202 runpath_var
='LD_RUN_PATH'
12204 case $cc_basename in
12206 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12207 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12210 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12211 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12216 case $cc_basename in
12218 # NonStop-UX NCC 3.20
12219 # FIXME: insert proper C++ library support
12223 # FIXME: insert proper C++ library support
12229 # FIXME: insert proper C++ library support
12233 # FIXME: insert proper C++ library support
12237 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12238 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12239 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12245 cat > conftest.
$ac_ext <<EOF
12249 Foo (void) { a = 0; }
12255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12256 (eval $ac_compile) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; then
12260 # Parse the compiler output and extract the necessary
12261 # objects, libraries and library flags.
12263 # Sentinel used to keep track of whether or not we are before
12264 # the conftest object file.
12265 pre_test_object_deps_done
=no
12267 # The `*' in the case matches for architectures that use `case' in
12268 # $output_verbose_cmd can trigger glob expansion during the loop
12269 # eval without this substitution.
12270 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12272 for p
in `eval $output_verbose_link_cmd`; do
12276 # Some compilers place space between "-{L,R}" and the path.
12277 # Remove the space.
12278 if test $p = "-L" \
12279 ||
test $p = "-R"; then
12286 if test "$pre_test_object_deps_done" = no
; then
12289 # Internal compiler library paths should come after those
12290 # provided the user. The postdeps already come after the
12291 # user supplied libs so there is no need to process them.
12292 if test -z "$compiler_lib_search_path_CXX"; then
12293 compiler_lib_search_path_CXX
="${prev}${p}"
12295 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12298 # The "-l" case would never come before the object being
12299 # linked, so don't bother handling this case.
12302 if test -z "$postdeps_CXX"; then
12303 postdeps_CXX
="${prev}${p}"
12305 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12311 # This assumes that the test object file only shows up
12312 # once in the compiler output.
12313 if test "$p" = "conftest.$objext"; then
12314 pre_test_object_deps_done
=yes
12318 if test "$pre_test_object_deps_done" = no
; then
12319 if test -z "$predep_objects_CXX"; then
12320 predep_objects_CXX
="$p"
12322 predep_objects_CXX
="$predep_objects_CXX $p"
12325 if test -z "$postdep_objects_CXX"; then
12326 postdep_objects_CXX
="$p"
12328 postdep_objects_CXX
="$postdep_objects_CXX $p"
12333 *) ;; # Ignore the rest.
12341 echo "libtool.m4: error: problem compiling CXX test program"
12344 $rm -f confest.
$objext
12346 # PORTME: override above test on systems where it is broken
12349 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12350 # hack all around it, let's just trust "g++" to DTRT.
12351 predep_objects_CXX
=
12352 postdep_objects_CXX
=
12357 case `$CC -V 2>&1 | sed 5q` in
12361 # The more standards-conforming stlport4 library is
12362 # incompatible with the Cstd library. Avoid specifying
12363 # it if it's in CXXFLAGS. Ignore libCrun as
12364 # -library=stlport4 depends on it.
12365 case " $CXX $CXXFLAGS " in
12366 *" -library=stlport4 "*)
12367 solaris_use_stlport4
=yes
12370 if test "$solaris_use_stlport4" != yes; then
12371 postdeps_CXX
='-library=Cstd -library=Crun'
12378 case $cc_basename in
12380 # The more standards-conforming stlport4 library is
12381 # incompatible with the Cstd library. Avoid specifying
12382 # it if it's in CXXFLAGS. Ignore libCrun as
12383 # -library=stlport4 depends on it.
12384 case " $CXX $CXXFLAGS " in
12385 *" -library=stlport4 "*)
12386 solaris_use_stlport4
=yes
12390 # Adding this requires a known-good setup of shared libraries for
12391 # Sun compiler versions before 5.6, else PIC objects from an old
12392 # archive will be linked into the output, leading to subtle bugs.
12393 if test "$solaris_use_stlport4" != yes; then
12394 postdeps_CXX
='-library=Cstd -library=Crun'
12402 case " $postdeps_CXX " in
12403 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12406 lt_prog_compiler_wl_CXX
=
12407 lt_prog_compiler_pic_CXX
=
12408 lt_prog_compiler_static_CXX
=
12410 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12411 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12413 # C++ specific cases for pic, static, wl, etc.
12414 if test "$GXX" = yes; then
12415 lt_prog_compiler_wl_CXX
='-Wl,'
12416 lt_prog_compiler_static_CXX
='-static'
12420 # All AIX code is PIC.
12421 if test "$host_cpu" = ia64
; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static_CXX
='-Bstatic'
12427 # FIXME: we need at least 68020 code to build shared libraries, but
12428 # adding the `-m68020' flag to GCC prevents building anything better,
12430 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12432 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12433 # PIC is the default for these OSes.
12435 mingw
* | cygwin
* | os2
* | pw32
*)
12436 # This hack is so that the source file can tell whether it is being
12437 # built for inclusion in a dll (and should export symbols for example).
12438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12439 # (--disable-auto-import) libraries
12440 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12442 darwin
* | rhapsody
*)
12443 # PIC is the default on this platform
12444 # Common symbols not allowed in MH_DYLIB files
12445 lt_prog_compiler_pic_CXX
='-fno-common'
12448 # DJGPP does not support shared libraries at all
12449 lt_prog_compiler_pic_CXX
=
12452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12453 # Instead, we relocate shared libraries at runtime.
12456 if test -d /usr
/nec
; then
12457 lt_prog_compiler_pic_CXX
=-Kconform_pic
12461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12462 # not for PA HP-UX.
12467 lt_prog_compiler_pic_CXX
='-fPIC'
12472 lt_prog_compiler_pic_CXX
='-fPIC'
12478 # All AIX code is PIC.
12479 if test "$host_cpu" = ia64
; then
12480 # AIX 5 now supports IA64 processor
12481 lt_prog_compiler_static_CXX
='-Bstatic'
12483 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12487 case $cc_basename in
12489 # Green Hills C++ Compiler
12490 # _LT_AC_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"
12495 # PIC is the default on this platform
12496 # Common symbols not allowed in MH_DYLIB files
12497 case $cc_basename in
12499 lt_prog_compiler_pic_CXX
='-qnocommon'
12500 lt_prog_compiler_wl_CXX
='-Wl,'
12505 case $cc_basename in
12507 lt_prog_compiler_pic_CXX
='-KPIC'
12510 # Green Hills C++ Compiler
12511 lt_prog_compiler_pic_CXX
='-pic'
12517 freebsd
* | dragonfly
*)
12518 # FreeBSD uses GNU C++
12520 hpux9
* | hpux10
* | hpux11
*)
12521 case $cc_basename in
12523 lt_prog_compiler_wl_CXX
='-Wl,'
12524 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12525 if test "$host_cpu" != ia64
; then
12526 lt_prog_compiler_pic_CXX
='+Z'
12530 lt_prog_compiler_wl_CXX
='-Wl,'
12531 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12537 lt_prog_compiler_pic_CXX
='+Z'
12546 # This is c89, which is MS Visual C++ (no shared libs)
12547 # Anyone wants to do a port?
12549 irix5
* | irix6
* | nonstopux
*)
12550 case $cc_basename in
12552 lt_prog_compiler_wl_CXX
='-Wl,'
12553 lt_prog_compiler_static_CXX
='-non_shared'
12554 # CC pic flag -KPIC is the default.
12560 linux
* | k
*bsd
*-gnu)
12561 case $cc_basename in
12564 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12565 lt_prog_compiler_pic_CXX
='-fPIC'
12569 lt_prog_compiler_wl_CXX
='-Wl,'
12570 lt_prog_compiler_pic_CXX
='-KPIC'
12571 lt_prog_compiler_static_CXX
='-static'
12574 # Portland Group C++ compiler.
12575 lt_prog_compiler_wl_CXX
='-Wl,'
12576 lt_prog_compiler_pic_CXX
='-fpic'
12577 lt_prog_compiler_static_CXX
='-Bstatic'
12581 # Make sure the PIC flag is empty. It appears that all Alpha
12582 # Linux and Compaq Tru64 Unix objects are PIC.
12583 lt_prog_compiler_pic_CXX
=
12584 lt_prog_compiler_static_CXX
='-non_shared'
12587 case `$CC -V 2>&1 | sed 5q` in
12590 lt_prog_compiler_pic_CXX
='-KPIC'
12591 lt_prog_compiler_static_CXX
='-Bstatic'
12592 lt_prog_compiler_wl_CXX
='-Qoption ld '
12603 case $cc_basename in
12605 lt_prog_compiler_pic_CXX
='-W c,exportall'
12611 netbsd
* | netbsdelf
*-gnu)
12613 osf3
* | osf4
* | osf5
*)
12614 case $cc_basename in
12616 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12619 # Rational C++ 2.4.1
12620 lt_prog_compiler_pic_CXX
='-pic'
12623 # Digital/Compaq C++
12624 lt_prog_compiler_wl_CXX
='-Wl,'
12625 # Make sure the PIC flag is empty. It appears that all Alpha
12626 # Linux and Compaq Tru64 Unix objects are PIC.
12627 lt_prog_compiler_pic_CXX
=
12628 lt_prog_compiler_static_CXX
='-non_shared'
12637 case $cc_basename in
12639 # Sun C++ 4.2, 5.x and Centerline C++
12640 lt_prog_compiler_pic_CXX
='-KPIC'
12641 lt_prog_compiler_static_CXX
='-Bstatic'
12642 lt_prog_compiler_wl_CXX
='-Qoption ld '
12645 # Green Hills C++ Compiler
12646 lt_prog_compiler_pic_CXX
='-PIC'
12653 case $cc_basename in
12656 lt_prog_compiler_pic_CXX
='-pic'
12657 lt_prog_compiler_static_CXX
='-Bstatic'
12661 lt_prog_compiler_pic_CXX
='-pic'
12668 case $cc_basename in
12670 # NonStop-UX NCC 3.20
12671 lt_prog_compiler_pic_CXX
='-KPIC'
12677 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12678 case $cc_basename in
12680 lt_prog_compiler_wl_CXX
='-Wl,'
12681 lt_prog_compiler_pic_CXX
='-KPIC'
12682 lt_prog_compiler_static_CXX
='-Bstatic'
12689 lt_prog_compiler_can_build_shared_CXX
=no
12694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12695 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12698 # Check to make sure the PIC flag actually works.
12700 if test -n "$lt_prog_compiler_pic_CXX"; then
12702 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12704 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 lt_prog_compiler_pic_works_CXX
=no
12708 ac_outfile
=conftest.
$ac_objext
12709 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12710 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12711 # Insert the option either (1) after the last *FLAGS variable, or
12712 # (2) before a word containing "conftest.", or (3) at the end.
12713 # Note that $ac_compile itself does not contain backslashes and begins
12714 # with a dollar sign (not a hyphen), so the echo should work correctly.
12715 # The option is referenced via a variable to avoid confusing sed.
12716 lt_compile
=`echo "$ac_compile" | $SED \
12717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12719 -e 's:$: $lt_compiler_flag:'`
12720 (eval echo "\"\$as_me:12719: $lt_compile\"" >&5)
12721 (eval "$lt_compile" 2>conftest.err
)
12723 cat conftest.err
>&5
12724 echo "$as_me:12723: \$? = $ac_status" >&5
12725 if (exit $ac_status) && test -s "$ac_outfile"; then
12726 # The compiler can only warn and ignore the option if not recognized
12727 # So say no if there are warnings other than the usual output.
12728 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12729 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12730 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12731 lt_prog_compiler_pic_works_CXX
=yes
12737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12738 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12740 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12741 case $lt_prog_compiler_pic_CXX in
12743 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12746 lt_prog_compiler_pic_CXX
=
12747 lt_prog_compiler_can_build_shared_CXX
=no
12752 # For platforms which do not support PIC, -DPIC is meaningless:
12754 lt_prog_compiler_pic_CXX
=
12757 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12762 # Check to make sure the static flag actually works.
12764 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12765 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12766 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12767 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 lt_prog_compiler_static_works_CXX
=no
12771 save_LDFLAGS
="$LDFLAGS"
12772 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12773 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12774 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12775 # The linker can only warn and ignore the option if not recognized
12776 # So say no if there are warnings
12777 if test -s conftest.err
; then
12778 # Append any errors to the config.log.
12779 cat conftest.err
1>&5
12780 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12781 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12782 if diff conftest.exp conftest.er2
>/dev
/null
; then
12783 lt_prog_compiler_static_works_CXX
=yes
12786 lt_prog_compiler_static_works_CXX
=yes
12790 LDFLAGS
="$save_LDFLAGS"
12793 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12794 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12796 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12799 lt_prog_compiler_static_CXX
=
12803 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12805 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 lt_cv_prog_compiler_c_o_CXX
=no
12809 $rm -r conftest
2>/dev
/null
12813 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12815 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12816 # Insert the option either (1) after the last *FLAGS variable, or
12817 # (2) before a word containing "conftest.", or (3) at the end.
12818 # Note that $ac_compile itself does not contain backslashes and begins
12819 # with a dollar sign (not a hyphen), so the echo should work correctly.
12820 lt_compile
=`echo "$ac_compile" | $SED \
12821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12823 -e 's:$: $lt_compiler_flag:'`
12824 (eval echo "\"\$as_me:12823: $lt_compile\"" >&5)
12825 (eval "$lt_compile" 2>out
/conftest.err
)
12827 cat out
/conftest.err
>&5
12828 echo "$as_me:12827: \$? = $ac_status" >&5
12829 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12831 # The compiler can only warn and ignore the option if not recognized
12832 # So say no if there are warnings
12833 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12834 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12835 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12836 lt_cv_prog_compiler_c_o_CXX
=yes
12841 # SGI C++ compiler will create directory out/ii_files/ for
12842 # template instantiation
12843 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12844 $rm out
/* && rmdir out
12850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12854 hard_links
="nottested"
12855 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12856 # do not overwrite the value of need_locks provided by the user
12857 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12858 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12861 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12863 ln conftest.a conftest.b
2>&5 || hard_links
=no
12864 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12865 { echo "$as_me:$LINENO: result: $hard_links" >&5
12866 echo "${ECHO_T}$hard_links" >&6; }
12867 if test "$hard_links" = no
; then
12868 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12869 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12876 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12879 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12884 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12885 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12887 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'
12891 export_symbols_cmds_CXX
="$ltdll_cmds"
12894 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'
12896 linux
* | k
*bsd
*-gnu)
12897 link_all_deplibs_CXX
=no
12900 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12904 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12905 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12906 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12909 # Do we need to explicitly link libc?
12911 case "x$archive_cmds_need_lc_CXX" in
12913 # Assume -lc should be added
12914 archive_cmds_need_lc_CXX
=yes
12916 if test "$enable_shared" = yes && test "$GCC" = yes; then
12917 case $archive_cmds_CXX in
12919 # FIXME: we may have to deal with multi-command sequences.
12922 # Test whether the compiler implicitly links with -lc since on some
12923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12924 # to ld, don't add -lc before -lgcc.
12925 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12926 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12928 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } 2>conftest.err
; then
12937 libobjs
=conftest.
$ac_objext
12939 wl
=$lt_prog_compiler_wl_CXX
12940 pic_flag
=$lt_prog_compiler_pic_CXX
12946 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12947 allow_undefined_flag_CXX
=
12948 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12949 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }
12954 archive_cmds_need_lc_CXX
=no
12956 archive_cmds_need_lc_CXX
=yes
12958 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12960 cat conftest.err
1>&5
12963 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12964 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12971 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12972 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12973 library_names_spec
=
12974 libname_spec
='lib$name'
12978 postuninstall_cmds
=
12982 shlibpath_overrides_runpath
=unknown
12984 dynamic_linker
="$host_os ld.so"
12985 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12987 need_lib_prefix
=unknown
12988 hardcode_into_libs
=no
12990 # when you set need_version to no, make sure it does not cause -set_version
12991 # flags to be left without arguments
12992 need_version
=unknown
12997 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12998 shlibpath_var
=LIBPATH
13000 # AIX 3 has no versioning support, so we append a major version to the name.
13001 soname_spec
='${libname}${release}${shared_ext}$major'
13008 hardcode_into_libs
=yes
13009 if test "$host_cpu" = ia64
; then
13010 # AIX 5 supports IA64
13011 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13012 shlibpath_var
=LD_LIBRARY_PATH
13014 # With GCC up to 2.95.x, collect2 would create an import file
13015 # for dependence libraries. The import file would start with
13016 # the line `#! .'. This would cause the generated library to
13017 # depend on `.', always an invalid library. This was fixed in
13018 # development snapshots of GCC prior to 3.0.
13020 aix4 | aix4.
[01] | aix4.
[01].
*)
13021 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13023 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13026 can_build_shared
=no
13030 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13031 # soname into executable. Probably we can add versioning support to
13032 # collect2, so additional links can be useful in future.
13033 if test "$aix_use_runtimelinking" = yes; then
13034 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13035 # instead of lib<name>.a to let people know that these are not
13036 # typical AIX shared libraries.
13037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 # We preserve .a as extension for shared libraries through AIX4.2
13040 # and later when we are not doing run time linking.
13041 library_names_spec
='${libname}${release}.a $libname.a'
13042 soname_spec
='${libname}${release}${shared_ext}$major'
13044 shlibpath_var
=LIBPATH
13049 library_names_spec
='$libname.ixlibrary $libname.a'
13050 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13051 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'
13055 library_names_spec
='${libname}${shared_ext}'
13056 dynamic_linker
="$host_os ld.so"
13057 shlibpath_var
=LIBRARY_PATH
13063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064 soname_spec
='${libname}${release}${shared_ext}$major'
13065 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13066 shlibpath_var
=LD_LIBRARY_PATH
13067 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13068 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13069 # the default ld.so.conf also contains /usr/contrib/lib and
13070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13071 # libtool to hard-code these into programs
13074 cygwin
* | mingw
* | pw32
*)
13075 version_type
=windows
13080 case $GCC,$host_os in
13081 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13082 library_names_spec
='$libname.dll.a'
13083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13084 postinstall_cmds
='base_file=`basename \${file}`~
13085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13086 dldir=$destdir/`dirname \$dlpath`~
13087 test -d \$dldir || mkdir -p \$dldir~
13088 $install_prog $dir/$dlname \$dldir/$dlname~
13089 chmod a+x \$dldir/$dlname'
13090 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13091 dlpath=$dir/\$dldll~
13093 shlibpath_overrides_runpath
=yes
13097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13098 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13099 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13102 # MinGW DLLs use traditional 'lib' prefix
13103 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13104 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13105 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13106 # It is most probably a Windows format PATH printed by
13107 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13108 # path with ; separators, and with drive letters. We can handle the
13109 # drive letters (cygwin fileutils understands them), so leave them,
13110 # especially as we might pass files found there to a mingw objdump,
13111 # which wouldn't understand a cygwinified path. Ahh.
13112 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13114 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13118 # pw32 DLLs use 'pw' prefix rather than 'lib'
13119 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13125 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13128 dynamic_linker
='Win32 ld.exe'
13129 # FIXME: first we should search . and the directory the executable is in
13133 darwin
* | rhapsody
*)
13134 dynamic_linker
="$host_os dyld"
13135 version_type
=darwin
13138 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13139 soname_spec
='${libname}${release}${major}$shared_ext'
13140 shlibpath_overrides_runpath
=yes
13141 shlibpath_var
=DYLD_LIBRARY_PATH
13142 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13144 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13152 soname_spec
='${libname}${release}${shared_ext}$major'
13153 shlibpath_var
=LD_LIBRARY_PATH
13160 freebsd
* | dragonfly
*)
13161 # DragonFly does not have aout. When/if they implement a new
13162 # versioning mechanism, adjust this.
13163 if test -x /usr
/bin
/objformat
; then
13164 objformat
=`/usr/bin/objformat`
13167 freebsd
[123]*) objformat
=aout
;;
13168 *) objformat
=elf
;;
13171 version_type
=freebsd-
$objformat
13172 case $version_type in
13174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13179 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13183 shlibpath_var
=LD_LIBRARY_PATH
13186 shlibpath_overrides_runpath
=yes
13188 freebsd3.
[01]* | freebsdelf3.
[01]*)
13189 shlibpath_overrides_runpath
=yes
13190 hardcode_into_libs
=yes
13192 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13193 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13194 shlibpath_overrides_runpath
=no
13195 hardcode_into_libs
=yes
13197 *) # from 4.6 on, and DragonFly
13198 shlibpath_overrides_runpath
=yes
13199 hardcode_into_libs
=yes
13208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13209 soname_spec
='${libname}${release}${shared_ext}$major'
13210 shlibpath_var
=LD_LIBRARY_PATH
13211 hardcode_into_libs
=yes
13214 hpux9
* | hpux10
* | hpux11
*)
13215 # Give a soname corresponding to the major version so that dld.sl refuses to
13216 # link against other versions.
13223 hardcode_into_libs
=yes
13224 dynamic_linker
="$host_os dld.so"
13225 shlibpath_var
=LD_LIBRARY_PATH
13226 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13228 soname_spec
='${libname}${release}${shared_ext}$major'
13229 if test "X$HPUX_IA64_MODE" = X32
; then
13230 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13232 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13234 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13238 hardcode_into_libs
=yes
13239 dynamic_linker
="$host_os dld.sl"
13240 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13241 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13242 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13243 soname_spec
='${libname}${release}${shared_ext}$major'
13244 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13245 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13249 dynamic_linker
="$host_os dld.sl"
13250 shlibpath_var
=SHLIB_PATH
13251 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13253 soname_spec
='${libname}${release}${shared_ext}$major'
13256 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13257 postinstall_cmds
='chmod 555 $lib'
13264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13265 soname_spec
='${libname}${release}${shared_ext}$major'
13266 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13267 shlibpath_var
=LD_LIBRARY_PATH
13268 shlibpath_overrides_runpath
=no
13269 hardcode_into_libs
=yes
13272 irix5
* | irix6
* | nonstopux
*)
13274 nonstopux
*) version_type
=nonstopux
;;
13276 if test "$lt_cv_prog_gnu_ld" = yes; then
13284 soname_spec
='${libname}${release}${shared_ext}$major'
13285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13287 irix5
* | nonstopux
*)
13288 libsuff
= shlibsuff
=
13291 case $LD in # libtool.m4 will add one of these switches to LD
13292 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13293 libsuff
= shlibsuff
= libmagic
=32-bit;;
13294 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13295 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13296 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13297 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13298 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13302 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13303 shlibpath_overrides_runpath
=no
13304 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13305 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13306 hardcode_into_libs
=yes
13309 # No shared lib support for Linux oldld, aout, or coff.
13310 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13314 # This must be Linux ELF.
13315 linux
* | k
*bsd
*-gnu)
13319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320 soname_spec
='${libname}${release}${shared_ext}$major'
13321 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13322 shlibpath_var
=LD_LIBRARY_PATH
13323 shlibpath_overrides_runpath
=no
13324 # This implies no fast_install, which is unacceptable.
13325 # Some rework will be needed to allow for fast_install
13326 # before this can be enabled.
13327 hardcode_into_libs
=yes
13329 # Append ld.so.conf contents to the search path
13330 if test -f /etc
/ld.so.conf
; then
13331 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13332 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
13335 # We used to test for /lib/ld.so.1 and disable shared libraries on
13336 # powerpc, because MkLinux only supported shared libraries with the
13337 # GNU dynamic linker. Since this was broken with cross compilers,
13338 # most powerpc-linux boxes support dynamic linking these days and
13339 # people can always --disable-shared, the test was removed, and we
13340 # assume the GNU/Linux dynamic linker is in use.
13341 dynamic_linker
='GNU/Linux ld.so'
13348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13349 soname_spec
='${libname}${release}${shared_ext}$major'
13350 shlibpath_var
=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath
=no
13352 hardcode_into_libs
=yes
13353 dynamic_linker
='NetBSD ld.elf_so'
13360 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13362 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13363 dynamic_linker
='NetBSD (a.out) ld.so'
13365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13366 soname_spec
='${libname}${release}${shared_ext}$major'
13367 dynamic_linker
='NetBSD ld.elf_so'
13369 shlibpath_var
=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath
=yes
13371 hardcode_into_libs
=yes
13376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13377 shlibpath_var
=LD_LIBRARY_PATH
13378 shlibpath_overrides_runpath
=yes
13385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13386 soname_spec
='${libname}${release}${shared_ext}$major'
13387 shlibpath_var
=LD_LIBRARY_PATH
13388 shlibpath_overrides_runpath
=yes
13393 sys_lib_dlsearch_path_spec
="/usr/lib"
13395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13397 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13398 *) need_version
=no
;;
13400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13401 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13402 shlibpath_var
=LD_LIBRARY_PATH
13403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13405 openbsd2.
[89] | openbsd2.
[89].
*)
13406 shlibpath_overrides_runpath
=no
13409 shlibpath_overrides_runpath
=yes
13413 shlibpath_overrides_runpath
=yes
13418 libname_spec
='$name'
13421 library_names_spec
='$libname${shared_ext} $libname.a'
13422 dynamic_linker
='OS/2 ld.exe'
13423 shlibpath_var
=LIBPATH
13426 osf3
* | osf4
* | osf5
*)
13430 soname_spec
='${libname}${release}${shared_ext}$major'
13431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13432 shlibpath_var
=LD_LIBRARY_PATH
13433 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13434 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13446 soname_spec
='${libname}${release}${shared_ext}$major'
13447 shlibpath_var
=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath
=yes
13449 hardcode_into_libs
=yes
13450 # ldd complains unless libraries are executable
13451 postinstall_cmds
='chmod +x $lib'
13456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13457 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13458 shlibpath_var
=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath
=yes
13460 if test "$with_gnu_ld" = yes; then
13468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469 soname_spec
='${libname}${release}${shared_ext}$major'
13470 shlibpath_var
=LD_LIBRARY_PATH
13471 case $host_vendor in
13473 shlibpath_overrides_runpath
=no
13475 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13476 runpath_var
=LD_RUN_PATH
13484 shlibpath_overrides_runpath
=no
13485 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13491 if test -d /usr
/nec
;then
13493 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13494 soname_spec
='$libname${shared_ext}.$major'
13495 shlibpath_var
=LD_LIBRARY_PATH
13499 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13500 version_type
=freebsd-elf
13503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13504 soname_spec
='${libname}${release}${shared_ext}$major'
13505 shlibpath_var
=LD_LIBRARY_PATH
13506 hardcode_into_libs
=yes
13507 if test "$with_gnu_ld" = yes; then
13508 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13509 shlibpath_overrides_runpath
=no
13511 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13512 shlibpath_overrides_runpath
=yes
13515 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13519 sys_lib_dlsearch_path_spec
='/usr/lib'
13524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525 soname_spec
='${libname}${release}${shared_ext}$major'
13526 shlibpath_var
=LD_LIBRARY_PATH
13533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13534 echo "${ECHO_T}$dynamic_linker" >&6; }
13535 test "$dynamic_linker" = no
&& can_build_shared
=no
13537 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13544 hardcode_action_CXX
=
13545 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13546 test -n "$runpath_var_CXX" || \
13547 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13549 # We can hardcode non-existant directories.
13550 if test "$hardcode_direct_CXX" != no
&&
13551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13552 # have to relink, otherwise we might link with an installed library
13553 # when we should be linking with a yet-to-be-installed one
13554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13555 test "$hardcode_minus_L_CXX" != no
; then
13556 # Linking always hardcodes the temporary library directory.
13557 hardcode_action_CXX
=relink
13559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13560 hardcode_action_CXX
=immediate
13563 # We cannot hardcode anything, or else we can only hardcode existing
13565 hardcode_action_CXX
=unsupported
13567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13570 if test "$hardcode_action_CXX" = relink
; then
13571 # Fast installation is not supported
13572 enable_fast_install
=no
13573 elif test "$shlibpath_overrides_runpath" = yes ||
13574 test "$enable_shared" = no
; then
13575 # Fast installation is not necessary
13576 enable_fast_install
=needless
13580 # The else clause should only fire when bootstrapping the
13581 # libtool distribution, otherwise you forgot to ship ltmain.sh
13582 # with your package, and you will get complaints that there are
13583 # no rules to generate ltmain.sh.
13584 if test -f "$ltmain"; then
13585 # See if we are running on zsh, and set the options which allow our commands through
13586 # without removal of \ escapes.
13587 if test -n "${ZSH_VERSION+set}" ; then
13588 setopt NO_GLOB_SUBST
13590 # Now quote all the things that may contain metacharacters while being
13591 # careful not to overquote the AC_SUBSTed values. We take copies of the
13592 # variables and quote the copies for generation of the libtool script.
13593 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13597 deplibs_check_method reload_flag reload_cmds need_locks \
13598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13599 lt_cv_sys_global_symbol_to_c_name_address \
13600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13601 old_postinstall_cmds old_postuninstall_cmds \
13605 lt_prog_compiler_wl_CXX \
13606 lt_prog_compiler_pic_CXX \
13607 lt_prog_compiler_static_CXX \
13608 lt_prog_compiler_no_builtin_flag_CXX \
13609 export_dynamic_flag_spec_CXX \
13610 thread_safe_flag_spec_CXX \
13611 whole_archive_flag_spec_CXX \
13612 enable_shared_with_static_runtimes_CXX \
13613 old_archive_cmds_CXX \
13614 old_archive_from_new_cmds_CXX \
13615 predep_objects_CXX \
13616 postdep_objects_CXX \
13619 compiler_lib_search_path_CXX \
13621 archive_expsym_cmds_CXX \
13622 postinstall_cmds_CXX \
13623 postuninstall_cmds_CXX \
13624 old_archive_from_expsyms_cmds_CXX \
13625 allow_undefined_flag_CXX \
13626 no_undefined_flag_CXX \
13627 export_symbols_cmds_CXX \
13628 hardcode_libdir_flag_spec_CXX \
13629 hardcode_libdir_flag_spec_ld_CXX \
13630 hardcode_libdir_separator_CXX \
13631 hardcode_automatic_CXX \
13633 module_expsym_cmds_CXX \
13634 lt_cv_prog_compiler_c_o_CXX \
13635 fix_srcfile_path_CXX \
13636 exclude_expsyms_CXX \
13637 include_expsyms_CXX
; do
13640 old_archive_cmds_CXX | \
13641 old_archive_from_new_cmds_CXX | \
13642 archive_cmds_CXX | \
13643 archive_expsym_cmds_CXX | \
13644 module_cmds_CXX | \
13645 module_expsym_cmds_CXX | \
13646 old_archive_from_expsyms_cmds_CXX | \
13647 export_symbols_cmds_CXX | \
13648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13649 postinstall_cmds | postuninstall_cmds | \
13650 old_postinstall_cmds | old_postuninstall_cmds | \
13651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13652 # Double-quote double-evaled strings.
13653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13662 *'\$0 --fallback-echo"')
13663 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13669 cat <<__EOF__ >> "$cfgfile"
13670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13674 # Shell to use when invoking shell scripts.
13677 # Whether or not to build shared libraries.
13678 build_libtool_libs=$enable_shared
13680 # Whether or not to build static libraries.
13681 build_old_libs=$enable_static
13683 # Whether or not to add -lc for building shared libraries.
13684 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13686 # Whether or not to disallow shared libs when runtime libs are static
13687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13689 # Whether or not to optimize for fast installation.
13690 fast_install=$enable_fast_install
13693 host_alias=$host_alias
13697 # The build system.
13698 build_alias=$build_alias
13702 # An echo program that does not interpret backslashes.
13707 AR_FLAGS=$lt_AR_FLAGS
13712 # LTCC compiler flags.
13713 LTCFLAGS=$lt_LTCFLAGS
13715 # A language-specific compiler.
13716 CC=$lt_compiler_CXX
13718 # Is the compiler the GNU C compiler?
13724 # The linker used to build libraries.
13727 # Whether we need hard or soft links.
13730 # A BSD-compatible nm program.
13733 # A symbol stripping program
13736 # Used to examine libraries when file_magic_cmd begins "file"
13737 MAGIC_CMD=$MAGIC_CMD
13739 # Used on cygwin: DLL creation program.
13742 # Used on cygwin: object dumper.
13745 # Used on cygwin: assembler.
13748 # The name of the directory that contains temporary libtool files.
13751 # How to create reloadable object files.
13752 reload_flag=$lt_reload_flag
13753 reload_cmds=$lt_reload_cmds
13755 # How to pass a linker flag through the compiler.
13756 wl=$lt_lt_prog_compiler_wl_CXX
13758 # Object file suffix (normally "o").
13759 objext="$ac_objext"
13761 # Old archive suffix (normally "a").
13764 # Shared library suffix (normally ".so").
13765 shrext_cmds='$shrext_cmds'
13767 # Executable file suffix (normally "").
13770 # Additional compiler flags for building library objects.
13771 pic_flag=$lt_lt_prog_compiler_pic_CXX
13774 # What is the maximum length of a command?
13775 max_cmd_len=$lt_cv_sys_max_cmd_len
13777 # Does compiler simultaneously support -c and -o options?
13778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13780 # Must we lock files when doing compilation?
13781 need_locks=$lt_need_locks
13783 # Do we need the lib prefix for modules?
13784 need_lib_prefix=$need_lib_prefix
13786 # Do we need a version for libraries?
13787 need_version=$need_version
13789 # Whether dlopen is supported.
13790 dlopen_support=$enable_dlopen
13792 # Whether dlopen of programs is supported.
13793 dlopen_self=$enable_dlopen_self
13795 # Whether dlopen of statically linked programs is supported.
13796 dlopen_self_static=$enable_dlopen_self_static
13798 # Compiler flag to prevent dynamic linking.
13799 link_static_flag=$lt_lt_prog_compiler_static_CXX
13801 # Compiler flag to turn off builtin functions.
13802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13804 # Compiler flag to allow reflexive dlopens.
13805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13807 # Compiler flag to generate shared objects directly from archives.
13808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13810 # Compiler flag to generate thread-safe objects.
13811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13813 # Library versioning type.
13814 version_type=$version_type
13816 # Format of library name prefix.
13817 libname_spec=$lt_libname_spec
13819 # List of archive names. First name is the real one, the rest are links.
13820 # The last name is the one that the linker finds with -lNAME.
13821 library_names_spec=$lt_library_names_spec
13823 # The coded name of the library, if different from the real name.
13824 soname_spec=$lt_soname_spec
13826 # Commands used to build and install an old-style archive.
13828 old_archive_cmds=$lt_old_archive_cmds_CXX
13829 old_postinstall_cmds=$lt_old_postinstall_cmds
13830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13832 # Create an old-style archive from a shared archive.
13833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13835 # Create a temporary old-style archive to link instead of a shared archive.
13836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13838 # Commands used to build and install a shared archive.
13839 archive_cmds=$lt_archive_cmds_CXX
13840 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13841 postinstall_cmds=$lt_postinstall_cmds
13842 postuninstall_cmds=$lt_postuninstall_cmds
13844 # Commands used to build a loadable module (assumed same as above if empty)
13845 module_cmds=$lt_module_cmds_CXX
13846 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13848 # Commands to strip libraries.
13849 old_striplib=$lt_old_striplib
13850 striplib=$lt_striplib
13852 # Dependencies to place before the objects being linked to create a
13854 predep_objects=$lt_predep_objects_CXX
13856 # Dependencies to place after the objects being linked to create a
13858 postdep_objects=$lt_postdep_objects_CXX
13860 # Dependencies to place before the objects being linked to create a
13862 predeps=$lt_predeps_CXX
13864 # Dependencies to place after the objects being linked to create a
13866 postdeps=$lt_postdeps_CXX
13868 # The library search path used internally by the compiler when linking
13869 # a shared library.
13870 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13872 # Method to check whether dependent libraries are shared objects.
13873 deplibs_check_method=$lt_deplibs_check_method
13875 # Command to use when deplibs_check_method == file_magic.
13876 file_magic_cmd=$lt_file_magic_cmd
13878 # Flag that allows shared libraries with undefined symbols to be built.
13879 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13881 # Flag that forces no undefined symbols.
13882 no_undefined_flag=$lt_no_undefined_flag_CXX
13884 # Commands used to finish a libtool library installation in a directory.
13885 finish_cmds=$lt_finish_cmds
13887 # Same as above, but a single script fragment to be evaled but not shown.
13888 finish_eval=$lt_finish_eval
13890 # Take the output of nm and produce a listing of raw symbols and C names.
13891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13893 # Transform the output of nm in a proper C declaration
13894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13896 # Transform the output of nm in a C name address pair
13897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13899 # This is the shared library runtime path variable.
13900 runpath_var=$runpath_var
13902 # This is the shared library path variable.
13903 shlibpath_var=$shlibpath_var
13905 # Is shlibpath searched before the hard-coded library search path?
13906 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13908 # How to hardcode a shared library path into an executable.
13909 hardcode_action=$hardcode_action_CXX
13911 # Whether we should hardcode library paths into libraries.
13912 hardcode_into_libs=$hardcode_into_libs
13914 # Flag to hardcode \$libdir into a binary during linking.
13915 # This must work even if \$libdir does not exist.
13916 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13918 # If ld is used when linking, flag to hardcode \$libdir into
13919 # a binary during linking. This must work even if \$libdir does
13921 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13923 # Whether we need a single -rpath flag with a separated argument.
13924 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13926 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13927 # resulting binary.
13928 hardcode_direct=$hardcode_direct_CXX
13930 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13931 # resulting binary.
13932 hardcode_minus_L=$hardcode_minus_L_CXX
13934 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13935 # the resulting binary.
13936 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13938 # Set to yes if building a shared library automatically hardcodes DIR into the library
13939 # and all subsequent libraries and executables linked against it.
13940 hardcode_automatic=$hardcode_automatic_CXX
13942 # Variables whose values should be saved in libtool wrapper scripts and
13943 # restored at relink time.
13944 variables_saved_for_relink="$variables_saved_for_relink"
13946 # Whether libtool must link a program against all its dependency libraries.
13947 link_all_deplibs=$link_all_deplibs_CXX
13949 # Compile-time system search path for libraries
13950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13952 # Run-time system search path for libraries
13953 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13955 # Fix the shell variable \$srcfile for the compiler.
13956 fix_srcfile_path=$lt_fix_srcfile_path
13958 # Set to yes if exported symbols are required.
13959 always_export_symbols=$always_export_symbols_CXX
13961 # The commands to list exported symbols.
13962 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13964 # The commands to extract the exported symbol list from a shared archive.
13965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13967 # Symbols that should not be listed in the preloaded symbols.
13968 exclude_expsyms=$lt_exclude_expsyms_CXX
13970 # Symbols that must always be exported.
13971 include_expsyms=$lt_include_expsyms_CXX
13973 # ### END LIBTOOL TAG CONFIG: $tagname
13979 # If there is no Makefile yet, we rely on a make rule to execute
13980 # `config.status --recheck' to rerun these tests and create the
13981 # libtool script then.
13982 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13983 if test -f "$ltmain_in"; then
13984 test -f Makefile
&& make "$ltmain"
13990 ac_cpp
='$CPP $CPPFLAGS'
13991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13999 with_gnu_ldcxx
=$with_gnu_ld
14000 with_gnu_ld
=$lt_save_with_gnu_ld
14001 lt_cv_path_LDCXX
=$lt_cv_path_LD
14002 lt_cv_path_LD
=$lt_save_path_LD
14003 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14004 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14012 if test -n "$F77" && test "X$F77" != "Xno"; then
14015 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14016 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
14020 archive_cmds_need_lc_F77
=no
14021 allow_undefined_flag_F77
=
14022 always_export_symbols_F77
=no
14023 archive_expsym_cmds_F77
=
14024 export_dynamic_flag_spec_F77
=
14025 hardcode_direct_F77
=no
14026 hardcode_libdir_flag_spec_F77
=
14027 hardcode_libdir_flag_spec_ld_F77
=
14028 hardcode_libdir_separator_F77
=
14029 hardcode_minus_L_F77
=no
14030 hardcode_automatic_F77
=no
14032 module_expsym_cmds_F77
=
14033 link_all_deplibs_F77
=unknown
14034 old_archive_cmds_F77
=$old_archive_cmds
14035 no_undefined_flag_F77
=
14036 whole_archive_flag_spec_F77
=
14037 enable_shared_with_static_runtimes_F77
=no
14039 # Source file extension for f77 test sources.
14042 # Object file extension for compiled f77 test sources.
14046 # Code to be used in simple compile tests
14047 lt_simple_compile_test_code
="\
14053 # Code to be used in simple link tests
14054 lt_simple_link_test_code
="\
14059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14061 # If no C compiler was specified, use CC.
14064 # If no C compiler flags were specified, use CFLAGS.
14065 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14067 # Allow CC to be a program name with arguments.
14071 # save warnings/boilerplate of simple test code
14072 ac_outfile
=conftest.
$ac_objext
14073 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14074 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14075 _lt_compiler_boilerplate
=`cat conftest.err`
14078 ac_outfile
=conftest.
$ac_objext
14079 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14080 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14081 _lt_linker_boilerplate
=`cat conftest.err`
14085 # Allow CC to be a program name with arguments.
14090 for cc_temp
in $compiler""; do
14092 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14093 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14098 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14101 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14102 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14103 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14104 echo "${ECHO_T}$can_build_shared" >&6; }
14106 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14107 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14108 test "$can_build_shared" = "no" && enable_shared
=no
14110 # On AIX, shared libraries and static libraries use the same namespace, and
14111 # are all built from PIC.
14114 test "$enable_shared" = yes && enable_static
=no
14115 if test -n "$RANLIB"; then
14116 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14117 postinstall_cmds
='$RANLIB $lib'
14121 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14122 test "$enable_shared" = yes && enable_static
=no
14126 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14127 echo "${ECHO_T}$enable_shared" >&6; }
14129 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14130 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14131 # Make sure either enable_shared or enable_static is yes.
14132 test "$enable_shared" = yes || enable_static
=yes
14133 { echo "$as_me:$LINENO: result: $enable_static" >&5
14134 echo "${ECHO_T}$enable_static" >&6; }
14139 lt_prog_compiler_wl_F77
=
14140 lt_prog_compiler_pic_F77
=
14141 lt_prog_compiler_static_F77
=
14143 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14144 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14146 if test "$GCC" = yes; then
14147 lt_prog_compiler_wl_F77
='-Wl,'
14148 lt_prog_compiler_static_F77
='-static'
14152 # All AIX code is PIC.
14153 if test "$host_cpu" = ia64
; then
14154 # AIX 5 now supports IA64 processor
14155 lt_prog_compiler_static_F77
='-Bstatic'
14160 # FIXME: we need at least 68020 code to build shared libraries, but
14161 # adding the `-m68020' flag to GCC prevents building anything better,
14163 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14166 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14167 # PIC is the default for these OSes.
14170 mingw
* | cygwin
* | pw32
* | os2
*)
14171 # This hack is so that the source file can tell whether it is being
14172 # built for inclusion in a dll (and should export symbols for example).
14173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14174 # (--disable-auto-import) libraries
14175 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14178 darwin
* | rhapsody
*)
14179 # PIC is the default on this platform
14180 # Common symbols not allowed in MH_DYLIB files
14181 lt_prog_compiler_pic_F77
='-fno-common'
14185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14186 # Instead, we relocate shared libraries at runtime.
14190 # Just because we use GCC doesn't mean we suddenly get shared libraries
14191 # on systems that don't support them.
14192 lt_prog_compiler_can_build_shared_F77
=no
14197 if test -d /usr
/nec
; then
14198 lt_prog_compiler_pic_F77
=-Kconform_pic
14203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14204 # not for PA HP-UX.
14210 lt_prog_compiler_pic_F77
='-fPIC'
14216 lt_prog_compiler_pic_F77
='-fPIC'
14220 # PORTME Check for flag to pass linker flags through the system compiler.
14223 lt_prog_compiler_wl_F77
='-Wl,'
14224 if test "$host_cpu" = ia64
; then
14225 # AIX 5 now supports IA64 processor
14226 lt_prog_compiler_static_F77
='-Bstatic'
14228 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14232 # PIC is the default on this platform
14233 # Common symbols not allowed in MH_DYLIB files
14234 case $cc_basename in
14236 lt_prog_compiler_pic_F77
='-qnocommon'
14237 lt_prog_compiler_wl_F77
='-Wl,'
14242 mingw
* | cygwin
* | pw32
* | os2
*)
14243 # This hack is so that the source file can tell whether it is being
14244 # built for inclusion in a dll (and should export symbols for example).
14245 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14248 hpux9
* | hpux10
* | hpux11
*)
14249 lt_prog_compiler_wl_F77
='-Wl,'
14250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14251 # not for PA HP-UX.
14257 lt_prog_compiler_pic_F77
='+Z'
14260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14261 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14264 irix5
* | irix6
* | nonstopux
*)
14265 lt_prog_compiler_wl_F77
='-Wl,'
14266 # PIC (with -KPIC) is the default.
14267 lt_prog_compiler_static_F77
='-non_shared'
14271 lt_prog_compiler_pic_F77
='-KPIC'
14272 lt_prog_compiler_static_F77
='-Bstatic'
14275 linux
* | k
*bsd
*-gnu)
14276 case $cc_basename in
14278 lt_prog_compiler_wl_F77
='-Wl,'
14279 lt_prog_compiler_pic_F77
='-KPIC'
14280 lt_prog_compiler_static_F77
='-static'
14282 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14283 # Portland Group compilers (*not* the Pentium gcc compiler,
14284 # which looks to be a dead project)
14285 lt_prog_compiler_wl_F77
='-Wl,'
14286 lt_prog_compiler_pic_F77
='-fpic'
14287 lt_prog_compiler_static_F77
='-Bstatic'
14290 lt_prog_compiler_wl_F77
='-Wl,'
14291 # All Alpha code is PIC.
14292 lt_prog_compiler_static_F77
='-non_shared'
14295 case `$CC -V 2>&1 | sed 5q` in
14298 lt_prog_compiler_pic_F77
='-KPIC'
14299 lt_prog_compiler_static_F77
='-Bstatic'
14300 lt_prog_compiler_wl_F77
='-Wl,'
14303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14304 lt_prog_compiler_pic_F77
='-KPIC'
14305 lt_prog_compiler_static_F77
='-Bstatic'
14306 lt_prog_compiler_wl_F77
=''
14313 osf3
* | osf4
* | osf5
*)
14314 lt_prog_compiler_wl_F77
='-Wl,'
14315 # All OSF/1 code is PIC.
14316 lt_prog_compiler_static_F77
='-non_shared'
14320 lt_prog_compiler_static_F77
='-non_shared'
14324 lt_prog_compiler_pic_F77
='-KPIC'
14325 lt_prog_compiler_static_F77
='-Bstatic'
14326 case $cc_basename in
14327 f77
* | f90
* | f95
*)
14328 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14330 lt_prog_compiler_wl_F77
='-Wl,';;
14335 lt_prog_compiler_wl_F77
='-Qoption ld '
14336 lt_prog_compiler_pic_F77
='-PIC'
14337 lt_prog_compiler_static_F77
='-Bstatic'
14340 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14341 lt_prog_compiler_wl_F77
='-Wl,'
14342 lt_prog_compiler_pic_F77
='-KPIC'
14343 lt_prog_compiler_static_F77
='-Bstatic'
14347 if test -d /usr
/nec
;then
14348 lt_prog_compiler_pic_F77
='-Kconform_pic'
14349 lt_prog_compiler_static_F77
='-Bstatic'
14353 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14354 lt_prog_compiler_wl_F77
='-Wl,'
14355 lt_prog_compiler_pic_F77
='-KPIC'
14356 lt_prog_compiler_static_F77
='-Bstatic'
14360 lt_prog_compiler_wl_F77
='-Wl,'
14361 lt_prog_compiler_can_build_shared_F77
=no
14365 lt_prog_compiler_pic_F77
='-pic'
14366 lt_prog_compiler_static_F77
='-Bstatic'
14370 lt_prog_compiler_can_build_shared_F77
=no
14375 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14376 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14379 # Check to make sure the PIC flag actually works.
14381 if test -n "$lt_prog_compiler_pic_F77"; then
14383 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14384 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14385 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 lt_prog_compiler_pic_works_F77
=no
14389 ac_outfile
=conftest.
$ac_objext
14390 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14391 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14392 # Insert the option either (1) after the last *FLAGS variable, or
14393 # (2) before a word containing "conftest.", or (3) at the end.
14394 # Note that $ac_compile itself does not contain backslashes and begins
14395 # with a dollar sign (not a hyphen), so the echo should work correctly.
14396 # The option is referenced via a variable to avoid confusing sed.
14397 lt_compile
=`echo "$ac_compile" | $SED \
14398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14400 -e 's:$: $lt_compiler_flag:'`
14401 (eval echo "\"\$as_me:14400: $lt_compile\"" >&5)
14402 (eval "$lt_compile" 2>conftest.err
)
14404 cat conftest.err
>&5
14405 echo "$as_me:14404: \$? = $ac_status" >&5
14406 if (exit $ac_status) && test -s "$ac_outfile"; then
14407 # The compiler can only warn and ignore the option if not recognized
14408 # So say no if there are warnings other than the usual output.
14409 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14410 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14411 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14412 lt_prog_compiler_pic_works_F77
=yes
14418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14419 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14421 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14422 case $lt_prog_compiler_pic_F77 in
14424 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14427 lt_prog_compiler_pic_F77
=
14428 lt_prog_compiler_can_build_shared_F77
=no
14433 # For platforms which do not support PIC, -DPIC is meaningless:
14435 lt_prog_compiler_pic_F77
=
14438 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14443 # Check to make sure the static flag actually works.
14445 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14446 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14447 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14448 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 lt_prog_compiler_static_works_F77
=no
14452 save_LDFLAGS
="$LDFLAGS"
14453 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14454 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14455 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14456 # The linker can only warn and ignore the option if not recognized
14457 # So say no if there are warnings
14458 if test -s conftest.err
; then
14459 # Append any errors to the config.log.
14460 cat conftest.err
1>&5
14461 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14462 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14463 if diff conftest.exp conftest.er2
>/dev
/null
; then
14464 lt_prog_compiler_static_works_F77
=yes
14467 lt_prog_compiler_static_works_F77
=yes
14471 LDFLAGS
="$save_LDFLAGS"
14474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14475 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14477 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14480 lt_prog_compiler_static_F77
=
14484 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14485 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14486 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 lt_cv_prog_compiler_c_o_F77
=no
14490 $rm -r conftest
2>/dev
/null
14494 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14496 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14497 # Insert the option either (1) after the last *FLAGS variable, or
14498 # (2) before a word containing "conftest.", or (3) at the end.
14499 # Note that $ac_compile itself does not contain backslashes and begins
14500 # with a dollar sign (not a hyphen), so the echo should work correctly.
14501 lt_compile
=`echo "$ac_compile" | $SED \
14502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14504 -e 's:$: $lt_compiler_flag:'`
14505 (eval echo "\"\$as_me:14504: $lt_compile\"" >&5)
14506 (eval "$lt_compile" 2>out
/conftest.err
)
14508 cat out
/conftest.err
>&5
14509 echo "$as_me:14508: \$? = $ac_status" >&5
14510 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14512 # The compiler can only warn and ignore the option if not recognized
14513 # So say no if there are warnings
14514 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14515 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14516 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14517 lt_cv_prog_compiler_c_o_F77
=yes
14522 # SGI C++ compiler will create directory out/ii_files/ for
14523 # template instantiation
14524 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14525 $rm out
/* && rmdir out
14531 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14532 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14535 hard_links
="nottested"
14536 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14537 # do not overwrite the value of need_locks provided by the user
14538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14539 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14542 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14544 ln conftest.a conftest.b
2>&5 || hard_links
=no
14545 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14546 { echo "$as_me:$LINENO: result: $hard_links" >&5
14547 echo "${ECHO_T}$hard_links" >&6; }
14548 if test "$hard_links" = no
; then
14549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14558 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14561 allow_undefined_flag_F77
=
14562 enable_shared_with_static_runtimes_F77
=no
14564 archive_expsym_cmds_F77
=
14565 old_archive_From_new_cmds_F77
=
14566 old_archive_from_expsyms_cmds_F77
=
14567 export_dynamic_flag_spec_F77
=
14568 whole_archive_flag_spec_F77
=
14569 thread_safe_flag_spec_F77
=
14570 hardcode_libdir_flag_spec_F77
=
14571 hardcode_libdir_flag_spec_ld_F77
=
14572 hardcode_libdir_separator_F77
=
14573 hardcode_direct_F77
=no
14574 hardcode_minus_L_F77
=no
14575 hardcode_shlibpath_var_F77
=unsupported
14576 link_all_deplibs_F77
=unknown
14577 hardcode_automatic_F77
=no
14579 module_expsym_cmds_F77
=
14580 always_export_symbols_F77
=no
14581 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14582 # include_expsyms should be a list of space-separated symbols to be *always*
14583 # included in the symbol list
14584 include_expsyms_F77
=
14585 # exclude_expsyms can be an extended regexp of symbols to exclude
14586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14588 # as well as any symbol that contains `d'.
14589 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14591 # platforms (ab)use it in PIC code, but their linkers get confused if
14592 # the symbol is explicitly referenced. Since portable code cannot
14593 # rely on this symbol name, it's probably fine to never include it in
14594 # preloaded symbol tables.
14595 extract_expsyms_cmds
=
14596 # Just being paranoid about ensuring that cc_basename is set.
14597 for cc_temp
in $compiler""; do
14599 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14600 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14605 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14608 cygwin
* | mingw
* | pw32
*)
14609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14610 # When not using gcc, we currently assume that we are using
14611 # Microsoft Visual C++.
14612 if test "$GCC" != yes; then
14617 # we just hope/assume this is gcc and not c89 (= MSVC++)
14626 if test "$with_gnu_ld" = yes; then
14627 # If archive_cmds runs LD, not CC, wlarc should be empty
14630 # Set some defaults for GNU ld with shared library support. These
14631 # are reset later if shared libraries are not supported. Putting them
14632 # here allows them to be overridden if necessary.
14633 runpath_var
=LD_RUN_PATH
14634 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14635 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14636 # ancient GNU ld didn't support --whole-archive et. al.
14637 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14638 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14640 whole_archive_flag_spec_F77
=
14642 supports_anon_versioning
=no
14643 case `$LD -v 2>/dev/null` in
14644 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14645 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14646 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14647 *\
2.11.
*) ;; # other 2.11 versions
14648 *) supports_anon_versioning
=yes ;;
14651 # See if GNU ld supports shared libraries.
14653 aix3
* | aix4
* | aix5
*)
14654 # On AIX/PPC, the GNU linker is very broken
14655 if test "$host_cpu" != ia64
; then
14659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14660 *** to be unable to reliably create shared libraries on AIX.
14661 *** Therefore, libtool is disabling shared libraries support. If you
14662 *** really care for shared libraries, you may want to modify your PATH
14663 *** so that a non-GNU linker is found, and then restart.
14670 archive_cmds_F77
='$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)'
14671 hardcode_libdir_flag_spec_F77
='-L$libdir'
14672 hardcode_minus_L_F77
=yes
14674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14675 # that the semantics of dynamic libraries on AmigaOS, at least up
14676 # to version 4, is to share data among multiple programs linked
14677 # with the same dynamic library. Since this doesn't match the
14678 # behavior of shared libraries on other platforms, we can't use
14684 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14685 allow_undefined_flag_F77
=unsupported
14686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14687 # support --undefined. This deserves some investigation. FIXME
14688 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 cygwin
* | mingw
* | pw32
*)
14695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14696 # as there is no search path for DLLs.
14697 hardcode_libdir_flag_spec_F77
='-L$libdir'
14698 allow_undefined_flag_F77
=unsupported
14699 always_export_symbols_F77
=no
14700 enable_shared_with_static_runtimes_F77
=yes
14701 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14703 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14704 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14705 # If the export-symbols file already is a .def file (1st line
14706 # is EXPORTS), use it as is; otherwise, prepend...
14707 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14708 cp $export_symbols $output_objdir/$soname.def;
14710 echo EXPORTS > $output_objdir/$soname.def;
14711 cat $export_symbols >> $output_objdir/$soname.def;
14713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14720 hardcode_direct_F77
=no
14721 hardcode_shlibpath_var_F77
=no
14722 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14723 export_dynamic_flag_spec_F77
='${wl}-E'
14724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14725 # Instead, shared libraries are loaded at an image base (0x10000000 by
14726 # default) and relocated if they conflict, which is a slow very memory
14727 # consuming and fragmenting process. To avoid this, we pick a random,
14728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14730 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14731 archive_expsym_cmds_F77
='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'
14734 gnu
* | linux
* | k
*bsd
*-gnu)
14735 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14737 case $cc_basename,$host_cpu in
14738 pgcc
*) # Portland Group C compiler
14739 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14740 tmp_addflag
=' $pic_flag'
14742 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14743 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14744 tmp_addflag
=' $pic_flag -Mnomain' ;;
14745 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14746 tmp_addflag
=' -i_dynamic' ;;
14747 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14748 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14749 ifc
* | ifort
*) # Intel Fortran compiler
14750 tmp_addflag
=' -nofor_main' ;;
14752 case `$CC -V 2>&1 | sed 5q` in
14753 *Sun\ C
*) # Sun C 5.9
14754 whole_archive_flag_spec_F77
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14755 tmp_sharedflag
='-G' ;;
14756 *Sun\ F
*) # Sun Fortran 8.3
14757 tmp_sharedflag
='-G' ;;
14759 tmp_sharedflag
='-shared' ;;
14761 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763 if test $supports_anon_versioning = yes; then
14764 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14766 $echo "local: *; };" >> $output_objdir/$libname.ver~
14767 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14769 link_all_deplibs_F77
=no
14775 netbsd
* | netbsdelf
*-gnu)
14776 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14777 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14780 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14781 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14786 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14790 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14791 *** create shared libraries on Solaris systems. Therefore, libtool
14792 *** is disabling shared libraries support. We urge you to upgrade GNU
14793 *** binutils to release 2.9.1 or newer. Another option is to modify
14794 *** your PATH or compiler configuration so that the native linker is
14795 *** used, and then restart.
14798 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14799 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14800 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14806 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14807 case `$LD -v 2>&1` in
14808 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14812 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14813 *** reliably create shared libraries on SCO systems. Therefore, libtool
14814 *** is disabling shared libraries support. We urge you to upgrade GNU
14815 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14816 *** your PATH or compiler configuration so that the native linker is
14817 *** used, and then restart.
14822 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14823 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14824 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14825 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14834 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_direct_F77
=yes
14837 hardcode_shlibpath_var_F77
=no
14841 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14842 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14850 if test "$ld_shlibs_F77" = no
; then
14852 hardcode_libdir_flag_spec_F77
=
14853 export_dynamic_flag_spec_F77
=
14854 whole_archive_flag_spec_F77
=
14857 # PORTME fill in a description of your system's linker (not GNU ld)
14860 allow_undefined_flag_F77
=unsupported
14861 always_export_symbols_F77
=yes
14862 archive_expsym_cmds_F77
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14863 # Note: this linker hardcodes the directories in LIBPATH if there
14864 # are no directories specified by -L.
14865 hardcode_minus_L_F77
=yes
14866 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14867 # Neither direct hardcoding nor static linking is supported with a
14869 hardcode_direct_F77
=unsupported
14874 if test "$host_cpu" = ia64
; then
14875 # On IA64, the linker does run time linking by default, so we don't
14876 # have to do anything special.
14877 aix_use_runtimelinking
=no
14878 exp_sym_flag
='-Bexport'
14881 # If we're using GNU nm, then we don't want the "-C" option.
14882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14883 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14884 export_symbols_cmds_F77
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14886 export_symbols_cmds_F77
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14888 aix_use_runtimelinking
=no
14890 # Test if we are trying to use run time linking or normal
14891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14892 # need to do runtime linking.
14893 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14894 for ld_flag
in $LDFLAGS; do
14895 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14896 aix_use_runtimelinking
=yes
14903 exp_sym_flag
='-bexport'
14904 no_entry_flag
='-bnoentry'
14907 # When large executables or shared objects are built, AIX ld can
14908 # have problems creating the table of contents. If linking a library
14909 # or program results in "error TOC overflow" add -mminimal-toc to
14910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14913 archive_cmds_F77
=''
14914 hardcode_direct_F77
=yes
14915 hardcode_libdir_separator_F77
=':'
14916 link_all_deplibs_F77
=yes
14918 if test "$GCC" = yes; then
14919 case $host_os in aix4.
[012]|aix4.
[012].
*)
14920 # We only want to do this on AIX 4.2 and lower, the check
14921 # below for broken collect2 doesn't work under 4.3+
14922 collect2name
=`${CC} -print-prog-name=collect2`
14923 if test -f "$collect2name" && \
14924 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14926 # We have reworked collect2
14929 # We have old collect2
14930 hardcode_direct_F77
=unsupported
14931 # It fails to find uninstalled libraries when the uninstalled
14932 # path is not listed in the libpath. Setting hardcode_minus_L
14933 # to unsupported forces relinking
14934 hardcode_minus_L_F77
=yes
14935 hardcode_libdir_flag_spec_F77
='-L$libdir'
14936 hardcode_libdir_separator_F77
=
14940 shared_flag
='-shared'
14941 if test "$aix_use_runtimelinking" = yes; then
14942 shared_flag
="$shared_flag "'${wl}-G'
14946 if test "$host_cpu" = ia64
; then
14947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14948 # chokes on -Wl,-G. The following line is correct:
14951 if test "$aix_use_runtimelinking" = yes; then
14952 shared_flag
='${wl}-G'
14954 shared_flag
='${wl}-bM:SRE'
14959 # It seems that -bexpall does not export symbols beginning with
14960 # underscore (_), so it is better to generate a list of symbols to export.
14961 always_export_symbols_F77
=yes
14962 if test "$aix_use_runtimelinking" = yes; then
14963 # Warning - without using the other runtime loading flags (-brtl),
14964 # -berok will link without error, but may produce a broken library.
14965 allow_undefined_flag_F77
='-berok'
14966 # Determine the default libpath from the value encoded in an empty executable.
14967 cat >conftest.
$ac_ext <<_ACEOF
14972 rm -f conftest.
$ac_objext conftest
$ac_exeext
14973 if { (ac_try
="$ac_link"
14974 case "(($ac_try" in
14975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_f77_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest$ac_exeext &&
14989 $as_test_x conftest$ac_exeext; then
14991 lt_aix_libpath_sed='
14992 /Import File Strings/,/^$/ {
14998 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14999 # Check for a 64-bit object if we didn't find anything.
15000 if test -z "$aix_libpath"; then
15001 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15011 conftest$ac_exeext conftest.$ac_ext
15012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15014 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15015 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15017 if test "$host_cpu" = ia64; then
15018 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15019 allow_undefined_flag_F77="-z nodefs"
15020 archive_expsym_cmds_F77="\$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"
15022 # Determine the default libpath from the value encoded in an empty executable.
15023 cat >conftest.$ac_ext <<_ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (ac_try="$ac_link"
15030 case "(($ac_try" in
15031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15032 *) ac_try_echo
=$ac_try;;
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_link") 2>conftest.er1
15037 grep -v '^ *+' conftest.er1
>conftest.err
15039 cat conftest.err
>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && {
15042 test -z "$ac_f77_werror_flag" ||
15043 test ! -s conftest.err
15044 } && test -s conftest
$ac_exeext &&
15045 $as_test_x conftest
$ac_exeext; then
15047 lt_aix_libpath_sed
='
15048 /Import File Strings/,/^$/ {
15054 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15055 # Check for a 64-bit object if we didn't find anything.
15056 if test -z "$aix_libpath"; then
15057 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.
$ac_ext >&5
15066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15067 conftest
$ac_exeext conftest.
$ac_ext
15068 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15070 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15071 # Warning - without using the other run time loading flags,
15072 # -berok will link without error, but may produce a broken library.
15073 no_undefined_flag_F77
=' ${wl}-bernotok'
15074 allow_undefined_flag_F77
=' ${wl}-berok'
15075 # Exported symbols can be pulled into shared objects from archives
15076 whole_archive_flag_spec_F77
='$convenience'
15077 archive_cmds_need_lc_F77
=yes
15078 # This is similar to how AIX traditionally builds its shared libraries.
15079 archive_expsym_cmds_F77
="\$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'
15085 archive_cmds_F77
='$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)'
15086 hardcode_libdir_flag_spec_F77
='-L$libdir'
15087 hardcode_minus_L_F77
=yes
15088 # see comment about different semantics on the GNU ld section
15093 export_dynamic_flag_spec_F77
=-rdynamic
15096 cygwin
* | mingw
* | pw32
*)
15097 # When not using gcc, we currently assume that we are using
15098 # Microsoft Visual C++.
15099 # hardcode_libdir_flag_spec is actually meaningless, as there is
15100 # no search path for DLLs.
15101 hardcode_libdir_flag_spec_F77
=' '
15102 allow_undefined_flag_F77
=unsupported
15103 # Tell ltmain to make .lib files, not .a files.
15105 # Tell ltmain to make .dll files, not .so files.
15107 # FIXME: Setting linknames here is a bad hack.
15108 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15109 # The linker will automatically build a .lib file if we build a DLL.
15110 old_archive_From_new_cmds_F77
='true'
15111 # FIXME: Should let the user specify the lib program.
15112 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15113 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15114 enable_shared_with_static_runtimes_F77
=yes
15117 darwin
* | rhapsody
*)
15119 rhapsody
* | darwin1.
[012])
15120 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15123 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15124 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15126 case ${MACOSX_DEPLOYMENT_TARGET} in
15128 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15131 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15137 archive_cmds_need_lc_F77
=no
15138 hardcode_direct_F77
=no
15139 hardcode_automatic_F77
=yes
15140 hardcode_shlibpath_var_F77
=unsupported
15141 whole_archive_flag_spec_F77
=''
15142 link_all_deplibs_F77
=yes
15143 if test "$GCC" = yes ; then
15144 output_verbose_link_cmd
='echo'
15145 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15146 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15148 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15149 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15151 case $cc_basename in
15153 output_verbose_link_cmd
='echo'
15154 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15155 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15157 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15158 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15168 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15169 hardcode_libdir_flag_spec_F77
='-L$libdir'
15170 hardcode_shlibpath_var_F77
=no
15177 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15178 # support. Future versions do this automatically, but an explicit c++rt0.o
15179 # does not break anything, and helps significantly (at the cost of a little
15182 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15183 hardcode_libdir_flag_spec_F77
='-R$libdir'
15184 hardcode_direct_F77
=yes
15185 hardcode_shlibpath_var_F77
=no
15188 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15190 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_direct_F77
=yes
15192 hardcode_minus_L_F77
=yes
15193 hardcode_shlibpath_var_F77
=no
15196 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15197 freebsd
* | dragonfly
*)
15198 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15199 hardcode_libdir_flag_spec_F77
='-R$libdir'
15200 hardcode_direct_F77
=yes
15201 hardcode_shlibpath_var_F77
=no
15205 if test "$GCC" = yes; then
15206 archive_cmds_F77
='$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'
15208 archive_cmds_F77
='$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'
15210 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15211 hardcode_libdir_separator_F77
=:
15212 hardcode_direct_F77
=yes
15214 # hardcode_minus_L: Not really in the search PATH,
15215 # but as the default location of the library.
15216 hardcode_minus_L_F77
=yes
15217 export_dynamic_flag_spec_F77
='${wl}-E'
15221 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15222 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15226 if test "$with_gnu_ld" = no
; then
15227 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15228 hardcode_libdir_separator_F77
=:
15230 hardcode_direct_F77
=yes
15231 export_dynamic_flag_spec_F77
='${wl}-E'
15233 # hardcode_minus_L: Not really in the search PATH,
15234 # but as the default location of the library.
15235 hardcode_minus_L_F77
=yes
15240 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15243 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15246 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15249 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15258 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15265 if test "$with_gnu_ld" = no
; then
15266 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15267 hardcode_libdir_separator_F77
=:
15271 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15272 hardcode_direct_F77
=no
15273 hardcode_shlibpath_var_F77
=no
15276 hardcode_direct_F77
=yes
15277 export_dynamic_flag_spec_F77
='${wl}-E'
15279 # hardcode_minus_L: Not really in the search PATH,
15280 # but as the default location of the library.
15281 hardcode_minus_L_F77
=yes
15287 irix5
* | irix6
* | nonstopux
*)
15288 if test "$GCC" = yes; then
15289 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15291 archive_cmds_F77
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15292 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15294 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15295 hardcode_libdir_separator_F77
=:
15296 link_all_deplibs_F77
=yes
15299 netbsd
* | netbsdelf
*-gnu)
15300 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15301 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15303 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15305 hardcode_libdir_flag_spec_F77
='-R$libdir'
15306 hardcode_direct_F77
=yes
15307 hardcode_shlibpath_var_F77
=no
15311 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15312 hardcode_direct_F77
=yes
15313 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15314 hardcode_libdir_separator_F77
=:
15315 hardcode_shlibpath_var_F77
=no
15319 if test -f /usr
/libexec
/ld.so
; then
15320 hardcode_direct_F77
=yes
15321 hardcode_shlibpath_var_F77
=no
15322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15323 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15324 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15325 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15326 export_dynamic_flag_spec_F77
='${wl}-E'
15329 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15330 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15331 hardcode_libdir_flag_spec_F77
='-R$libdir'
15334 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15335 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15345 hardcode_libdir_flag_spec_F77
='-L$libdir'
15346 hardcode_minus_L_F77
=yes
15347 allow_undefined_flag_F77
=unsupported
15348 archive_cmds_F77
='$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'
15349 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15353 if test "$GCC" = yes; then
15354 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15355 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15357 allow_undefined_flag_F77
=' -expect_unresolved \*'
15358 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15360 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15361 hardcode_libdir_separator_F77
=:
15364 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15365 if test "$GCC" = yes; then
15366 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15367 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15368 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15370 allow_undefined_flag_F77
=' -expect_unresolved \*'
15371 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15372 archive_expsym_cmds_F77
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15373 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15375 # Both c and cxx compiler support -rpath directly
15376 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15378 hardcode_libdir_separator_F77
=:
15382 no_undefined_flag_F77
=' -z text'
15383 if test "$GCC" = yes; then
15385 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15386 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15387 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15390 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15391 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15394 hardcode_libdir_flag_spec_F77
='-R$libdir'
15395 hardcode_shlibpath_var_F77
=no
15397 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15399 # The compiler driver will combine and reorder linker options,
15400 # but understands `-z linker_flag'. GCC discards it without `$wl',
15401 # but is careful enough not to reorder.
15402 # Supported since Solaris 2.6 (maybe 2.5.1?)
15403 if test "$GCC" = yes; then
15404 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15406 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15410 link_all_deplibs_F77
=yes
15414 if test "x$host_vendor" = xsequent
; then
15415 # Use $CC to link under sequent, because it throws in some extra .o
15416 # files that make .init and .fini sections work.
15417 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15419 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15421 hardcode_libdir_flag_spec_F77
='-L$libdir'
15422 hardcode_direct_F77
=yes
15423 hardcode_minus_L_F77
=yes
15424 hardcode_shlibpath_var_F77
=no
15428 case $host_vendor in
15430 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_direct_F77
=yes # is this really true???
15434 ## LD is ld it makes a PLAMLIB
15435 ## CC just makes a GrossModule.
15436 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15437 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15438 hardcode_direct_F77
=no
15441 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15445 runpath_var
='LD_RUN_PATH'
15446 hardcode_shlibpath_var_F77
=no
15450 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15451 hardcode_shlibpath_var_F77
=no
15452 export_dynamic_flag_spec_F77
='-Bexport'
15456 if test -d /usr
/nec
; then
15457 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15458 hardcode_shlibpath_var_F77
=no
15459 runpath_var
=LD_RUN_PATH
15460 hardcode_runpath_var
=yes
15465 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15466 no_undefined_flag_F77
='${wl}-z,text'
15467 archive_cmds_need_lc_F77
=no
15468 hardcode_shlibpath_var_F77
=no
15469 runpath_var
='LD_RUN_PATH'
15471 if test "$GCC" = yes; then
15472 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15473 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15475 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 sysv5
* | sco3.2v5
* | sco5v6
*)
15481 # Note: We can NOT use -z defs as we might desire, because we do not
15482 # link with -lc, and that would cause any symbols used from libc to
15483 # always be unresolved, which means just about no library would
15484 # ever link correctly. If we're not using GNU ld we use -z text
15485 # though, which does catch some bad symbols but isn't as heavy-handed
15487 no_undefined_flag_F77
='${wl}-z,text'
15488 allow_undefined_flag_F77
='${wl}-z,nodefs'
15489 archive_cmds_need_lc_F77
=no
15490 hardcode_shlibpath_var_F77
=no
15491 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15492 hardcode_libdir_separator_F77
=':'
15493 link_all_deplibs_F77
=yes
15494 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15495 runpath_var
='LD_RUN_PATH'
15497 if test "$GCC" = yes; then
15498 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15507 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_libdir_flag_spec_F77
='-L$libdir'
15509 hardcode_shlibpath_var_F77
=no
15518 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15519 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15520 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15523 # Do we need to explicitly link libc?
15525 case "x$archive_cmds_need_lc_F77" in
15527 # Assume -lc should be added
15528 archive_cmds_need_lc_F77
=yes
15530 if test "$enable_shared" = yes && test "$GCC" = yes; then
15531 case $archive_cmds_F77 in
15533 # FIXME: we may have to deal with multi-command sequences.
15536 # Test whether the compiler implicitly links with -lc since on some
15537 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15538 # to ld, don't add -lc before -lgcc.
15539 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15540 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15542 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } 2>conftest.err
; then
15551 libobjs
=conftest.
$ac_objext
15553 wl
=$lt_prog_compiler_wl_F77
15554 pic_flag
=$lt_prog_compiler_pic_F77
15560 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15561 allow_undefined_flag_F77
=
15562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15563 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }
15568 archive_cmds_need_lc_F77
=no
15570 archive_cmds_need_lc_F77
=yes
15572 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15574 cat conftest.err
1>&5
15577 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15578 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15585 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15587 library_names_spec
=
15588 libname_spec
='lib$name'
15592 postuninstall_cmds
=
15596 shlibpath_overrides_runpath
=unknown
15598 dynamic_linker
="$host_os ld.so"
15599 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15601 need_lib_prefix
=unknown
15602 hardcode_into_libs
=no
15604 # when you set need_version to no, make sure it does not cause -set_version
15605 # flags to be left without arguments
15606 need_version
=unknown
15611 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15612 shlibpath_var
=LIBPATH
15614 # AIX 3 has no versioning support, so we append a major version to the name.
15615 soname_spec
='${libname}${release}${shared_ext}$major'
15622 hardcode_into_libs
=yes
15623 if test "$host_cpu" = ia64
; then
15624 # AIX 5 supports IA64
15625 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15626 shlibpath_var
=LD_LIBRARY_PATH
15628 # With GCC up to 2.95.x, collect2 would create an import file
15629 # for dependence libraries. The import file would start with
15630 # the line `#! .'. This would cause the generated library to
15631 # depend on `.', always an invalid library. This was fixed in
15632 # development snapshots of GCC prior to 3.0.
15634 aix4 | aix4.
[01] | aix4.
[01].
*)
15635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15637 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15640 can_build_shared
=no
15644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15645 # soname into executable. Probably we can add versioning support to
15646 # collect2, so additional links can be useful in future.
15647 if test "$aix_use_runtimelinking" = yes; then
15648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15649 # instead of lib<name>.a to let people know that these are not
15650 # typical AIX shared libraries.
15651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 # We preserve .a as extension for shared libraries through AIX4.2
15654 # and later when we are not doing run time linking.
15655 library_names_spec
='${libname}${release}.a $libname.a'
15656 soname_spec
='${libname}${release}${shared_ext}$major'
15658 shlibpath_var
=LIBPATH
15663 library_names_spec
='$libname.ixlibrary $libname.a'
15664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15665 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'
15669 library_names_spec
='${libname}${shared_ext}'
15670 dynamic_linker
="$host_os ld.so"
15671 shlibpath_var
=LIBRARY_PATH
15677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec
='${libname}${release}${shared_ext}$major'
15679 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15680 shlibpath_var
=LD_LIBRARY_PATH
15681 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15682 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15683 # the default ld.so.conf also contains /usr/contrib/lib and
15684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15685 # libtool to hard-code these into programs
15688 cygwin
* | mingw
* | pw32
*)
15689 version_type
=windows
15694 case $GCC,$host_os in
15695 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15696 library_names_spec
='$libname.dll.a'
15697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15698 postinstall_cmds
='base_file=`basename \${file}`~
15699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15700 dldir=$destdir/`dirname \$dlpath`~
15701 test -d \$dldir || mkdir -p \$dldir~
15702 $install_prog $dir/$dlname \$dldir/$dlname~
15703 chmod a+x \$dldir/$dlname'
15704 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15705 dlpath=$dir/\$dldll~
15707 shlibpath_overrides_runpath
=yes
15711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15712 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15716 # MinGW DLLs use traditional 'lib' prefix
15717 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15718 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15719 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15720 # It is most probably a Windows format PATH printed by
15721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15722 # path with ; separators, and with drive letters. We can handle the
15723 # drive letters (cygwin fileutils understands them), so leave them,
15724 # especially as we might pass files found there to a mingw objdump,
15725 # which wouldn't understand a cygwinified path. Ahh.
15726 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15728 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15732 # pw32 DLLs use 'pw' prefix rather than 'lib'
15733 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15739 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15742 dynamic_linker
='Win32 ld.exe'
15743 # FIXME: first we should search . and the directory the executable is in
15747 darwin
* | rhapsody
*)
15748 dynamic_linker
="$host_os dyld"
15749 version_type
=darwin
15752 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15753 soname_spec
='${libname}${release}${major}$shared_ext'
15754 shlibpath_overrides_runpath
=yes
15755 shlibpath_var
=DYLD_LIBRARY_PATH
15756 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15758 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15766 soname_spec
='${libname}${release}${shared_ext}$major'
15767 shlibpath_var
=LD_LIBRARY_PATH
15774 freebsd
* | dragonfly
*)
15775 # DragonFly does not have aout. When/if they implement a new
15776 # versioning mechanism, adjust this.
15777 if test -x /usr
/bin
/objformat
; then
15778 objformat
=`/usr/bin/objformat`
15781 freebsd
[123]*) objformat
=aout
;;
15782 *) objformat
=elf
;;
15785 version_type
=freebsd-
$objformat
15786 case $version_type in
15788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15793 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15797 shlibpath_var
=LD_LIBRARY_PATH
15800 shlibpath_overrides_runpath
=yes
15802 freebsd3.
[01]* | freebsdelf3.
[01]*)
15803 shlibpath_overrides_runpath
=yes
15804 hardcode_into_libs
=yes
15806 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15807 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15808 shlibpath_overrides_runpath
=no
15809 hardcode_into_libs
=yes
15811 *) # from 4.6 on, and DragonFly
15812 shlibpath_overrides_runpath
=yes
15813 hardcode_into_libs
=yes
15822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15823 soname_spec
='${libname}${release}${shared_ext}$major'
15824 shlibpath_var
=LD_LIBRARY_PATH
15825 hardcode_into_libs
=yes
15828 hpux9
* | hpux10
* | hpux11
*)
15829 # Give a soname corresponding to the major version so that dld.sl refuses to
15830 # link against other versions.
15837 hardcode_into_libs
=yes
15838 dynamic_linker
="$host_os dld.so"
15839 shlibpath_var
=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec
='${libname}${release}${shared_ext}$major'
15843 if test "X$HPUX_IA64_MODE" = X32
; then
15844 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15846 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15848 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15852 hardcode_into_libs
=yes
15853 dynamic_linker
="$host_os dld.sl"
15854 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15855 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec
='${libname}${release}${shared_ext}$major'
15858 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15859 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15863 dynamic_linker
="$host_os dld.sl"
15864 shlibpath_var
=SHLIB_PATH
15865 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15867 soname_spec
='${libname}${release}${shared_ext}$major'
15870 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15871 postinstall_cmds
='chmod 555 $lib'
15878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15879 soname_spec
='${libname}${release}${shared_ext}$major'
15880 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15881 shlibpath_var
=LD_LIBRARY_PATH
15882 shlibpath_overrides_runpath
=no
15883 hardcode_into_libs
=yes
15886 irix5
* | irix6
* | nonstopux
*)
15888 nonstopux
*) version_type
=nonstopux
;;
15890 if test "$lt_cv_prog_gnu_ld" = yes; then
15898 soname_spec
='${libname}${release}${shared_ext}$major'
15899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15901 irix5
* | nonstopux
*)
15902 libsuff
= shlibsuff
=
15905 case $LD in # libtool.m4 will add one of these switches to LD
15906 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15907 libsuff
= shlibsuff
= libmagic
=32-bit;;
15908 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15909 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15910 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15911 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15912 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15916 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15917 shlibpath_overrides_runpath
=no
15918 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15919 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15920 hardcode_into_libs
=yes
15923 # No shared lib support for Linux oldld, aout, or coff.
15924 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15928 # This must be Linux ELF.
15929 linux
* | k
*bsd
*-gnu)
15933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15934 soname_spec
='${libname}${release}${shared_ext}$major'
15935 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15936 shlibpath_var
=LD_LIBRARY_PATH
15937 shlibpath_overrides_runpath
=no
15938 # This implies no fast_install, which is unacceptable.
15939 # Some rework will be needed to allow for fast_install
15940 # before this can be enabled.
15941 hardcode_into_libs
=yes
15943 # Append ld.so.conf contents to the search path
15944 if test -f /etc
/ld.so.conf
; then
15945 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15946 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15949 # We used to test for /lib/ld.so.1 and disable shared libraries on
15950 # powerpc, because MkLinux only supported shared libraries with the
15951 # GNU dynamic linker. Since this was broken with cross compilers,
15952 # most powerpc-linux boxes support dynamic linking these days and
15953 # people can always --disable-shared, the test was removed, and we
15954 # assume the GNU/Linux dynamic linker is in use.
15955 dynamic_linker
='GNU/Linux ld.so'
15962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15963 soname_spec
='${libname}${release}${shared_ext}$major'
15964 shlibpath_var
=LD_LIBRARY_PATH
15965 shlibpath_overrides_runpath
=no
15966 hardcode_into_libs
=yes
15967 dynamic_linker
='NetBSD ld.elf_so'
15974 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15976 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15977 dynamic_linker
='NetBSD (a.out) ld.so'
15979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15980 soname_spec
='${libname}${release}${shared_ext}$major'
15981 dynamic_linker
='NetBSD ld.elf_so'
15983 shlibpath_var
=LD_LIBRARY_PATH
15984 shlibpath_overrides_runpath
=yes
15985 hardcode_into_libs
=yes
15990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15991 shlibpath_var
=LD_LIBRARY_PATH
15992 shlibpath_overrides_runpath
=yes
15999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000 soname_spec
='${libname}${release}${shared_ext}$major'
16001 shlibpath_var
=LD_LIBRARY_PATH
16002 shlibpath_overrides_runpath
=yes
16007 sys_lib_dlsearch_path_spec
="/usr/lib"
16009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16011 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16012 *) need_version
=no
;;
16014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16015 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16016 shlibpath_var
=LD_LIBRARY_PATH
16017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16019 openbsd2.
[89] | openbsd2.
[89].
*)
16020 shlibpath_overrides_runpath
=no
16023 shlibpath_overrides_runpath
=yes
16027 shlibpath_overrides_runpath
=yes
16032 libname_spec
='$name'
16035 library_names_spec
='$libname${shared_ext} $libname.a'
16036 dynamic_linker
='OS/2 ld.exe'
16037 shlibpath_var
=LIBPATH
16040 osf3
* | osf4
* | osf5
*)
16044 soname_spec
='${libname}${release}${shared_ext}$major'
16045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 shlibpath_var
=LD_LIBRARY_PATH
16047 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16048 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060 soname_spec
='${libname}${release}${shared_ext}$major'
16061 shlibpath_var
=LD_LIBRARY_PATH
16062 shlibpath_overrides_runpath
=yes
16063 hardcode_into_libs
=yes
16064 # ldd complains unless libraries are executable
16065 postinstall_cmds
='chmod +x $lib'
16070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16072 shlibpath_var
=LD_LIBRARY_PATH
16073 shlibpath_overrides_runpath
=yes
16074 if test "$with_gnu_ld" = yes; then
16082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083 soname_spec
='${libname}${release}${shared_ext}$major'
16084 shlibpath_var
=LD_LIBRARY_PATH
16085 case $host_vendor in
16087 shlibpath_overrides_runpath
=no
16089 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16090 runpath_var
=LD_RUN_PATH
16098 shlibpath_overrides_runpath
=no
16099 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16105 if test -d /usr
/nec
;then
16107 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16108 soname_spec
='$libname${shared_ext}.$major'
16109 shlibpath_var
=LD_LIBRARY_PATH
16113 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16114 version_type
=freebsd-elf
16117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16118 soname_spec
='${libname}${release}${shared_ext}$major'
16119 shlibpath_var
=LD_LIBRARY_PATH
16120 hardcode_into_libs
=yes
16121 if test "$with_gnu_ld" = yes; then
16122 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16123 shlibpath_overrides_runpath
=no
16125 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16126 shlibpath_overrides_runpath
=yes
16129 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16133 sys_lib_dlsearch_path_spec
='/usr/lib'
16138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 soname_spec
='${libname}${release}${shared_ext}$major'
16140 shlibpath_var
=LD_LIBRARY_PATH
16147 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16148 echo "${ECHO_T}$dynamic_linker" >&6; }
16149 test "$dynamic_linker" = no
&& can_build_shared
=no
16151 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16152 if test "$GCC" = yes; then
16153 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16156 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16158 hardcode_action_F77
=
16159 if test -n "$hardcode_libdir_flag_spec_F77" || \
16160 test -n "$runpath_var_F77" || \
16161 test "X$hardcode_automatic_F77" = "Xyes" ; then
16163 # We can hardcode non-existant directories.
16164 if test "$hardcode_direct_F77" != no
&&
16165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16166 # have to relink, otherwise we might link with an installed library
16167 # when we should be linking with a yet-to-be-installed one
16168 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16169 test "$hardcode_minus_L_F77" != no
; then
16170 # Linking always hardcodes the temporary library directory.
16171 hardcode_action_F77
=relink
16173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16174 hardcode_action_F77
=immediate
16177 # We cannot hardcode anything, or else we can only hardcode existing
16179 hardcode_action_F77
=unsupported
16181 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16182 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16184 if test "$hardcode_action_F77" = relink
; then
16185 # Fast installation is not supported
16186 enable_fast_install
=no
16187 elif test "$shlibpath_overrides_runpath" = yes ||
16188 test "$enable_shared" = no
; then
16189 # Fast installation is not necessary
16190 enable_fast_install
=needless
16194 # The else clause should only fire when bootstrapping the
16195 # libtool distribution, otherwise you forgot to ship ltmain.sh
16196 # with your package, and you will get complaints that there are
16197 # no rules to generate ltmain.sh.
16198 if test -f "$ltmain"; then
16199 # See if we are running on zsh, and set the options which allow our commands through
16200 # without removal of \ escapes.
16201 if test -n "${ZSH_VERSION+set}" ; then
16202 setopt NO_GLOB_SUBST
16204 # Now quote all the things that may contain metacharacters while being
16205 # careful not to overquote the AC_SUBSTed values. We take copies of the
16206 # variables and quote the copies for generation of the libtool script.
16207 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16211 deplibs_check_method reload_flag reload_cmds need_locks \
16212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16213 lt_cv_sys_global_symbol_to_c_name_address \
16214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16215 old_postinstall_cmds old_postuninstall_cmds \
16219 lt_prog_compiler_wl_F77 \
16220 lt_prog_compiler_pic_F77 \
16221 lt_prog_compiler_static_F77 \
16222 lt_prog_compiler_no_builtin_flag_F77 \
16223 export_dynamic_flag_spec_F77 \
16224 thread_safe_flag_spec_F77 \
16225 whole_archive_flag_spec_F77 \
16226 enable_shared_with_static_runtimes_F77 \
16227 old_archive_cmds_F77 \
16228 old_archive_from_new_cmds_F77 \
16229 predep_objects_F77 \
16230 postdep_objects_F77 \
16233 compiler_lib_search_path_F77 \
16235 archive_expsym_cmds_F77 \
16236 postinstall_cmds_F77 \
16237 postuninstall_cmds_F77 \
16238 old_archive_from_expsyms_cmds_F77 \
16239 allow_undefined_flag_F77 \
16240 no_undefined_flag_F77 \
16241 export_symbols_cmds_F77 \
16242 hardcode_libdir_flag_spec_F77 \
16243 hardcode_libdir_flag_spec_ld_F77 \
16244 hardcode_libdir_separator_F77 \
16245 hardcode_automatic_F77 \
16247 module_expsym_cmds_F77 \
16248 lt_cv_prog_compiler_c_o_F77 \
16249 fix_srcfile_path_F77 \
16250 exclude_expsyms_F77 \
16251 include_expsyms_F77
; do
16254 old_archive_cmds_F77 | \
16255 old_archive_from_new_cmds_F77 | \
16256 archive_cmds_F77 | \
16257 archive_expsym_cmds_F77 | \
16258 module_cmds_F77 | \
16259 module_expsym_cmds_F77 | \
16260 old_archive_from_expsyms_cmds_F77 | \
16261 export_symbols_cmds_F77 | \
16262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16263 postinstall_cmds | postuninstall_cmds | \
16264 old_postinstall_cmds | old_postuninstall_cmds | \
16265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16266 # Double-quote double-evaled strings.
16267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16276 *'\$0 --fallback-echo"')
16277 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16283 cat <<__EOF__ >> "$cfgfile"
16284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16288 # Shell to use when invoking shell scripts.
16291 # Whether or not to build shared libraries.
16292 build_libtool_libs=$enable_shared
16294 # Whether or not to build static libraries.
16295 build_old_libs=$enable_static
16297 # Whether or not to add -lc for building shared libraries.
16298 build_libtool_need_lc=$archive_cmds_need_lc_F77
16300 # Whether or not to disallow shared libs when runtime libs are static
16301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16303 # Whether or not to optimize for fast installation.
16304 fast_install=$enable_fast_install
16307 host_alias=$host_alias
16311 # The build system.
16312 build_alias=$build_alias
16316 # An echo program that does not interpret backslashes.
16321 AR_FLAGS=$lt_AR_FLAGS
16326 # LTCC compiler flags.
16327 LTCFLAGS=$lt_LTCFLAGS
16329 # A language-specific compiler.
16330 CC=$lt_compiler_F77
16332 # Is the compiler the GNU C compiler?
16338 # The linker used to build libraries.
16341 # Whether we need hard or soft links.
16344 # A BSD-compatible nm program.
16347 # A symbol stripping program
16350 # Used to examine libraries when file_magic_cmd begins "file"
16351 MAGIC_CMD=$MAGIC_CMD
16353 # Used on cygwin: DLL creation program.
16356 # Used on cygwin: object dumper.
16359 # Used on cygwin: assembler.
16362 # The name of the directory that contains temporary libtool files.
16365 # How to create reloadable object files.
16366 reload_flag=$lt_reload_flag
16367 reload_cmds=$lt_reload_cmds
16369 # How to pass a linker flag through the compiler.
16370 wl=$lt_lt_prog_compiler_wl_F77
16372 # Object file suffix (normally "o").
16373 objext="$ac_objext"
16375 # Old archive suffix (normally "a").
16378 # Shared library suffix (normally ".so").
16379 shrext_cmds='$shrext_cmds'
16381 # Executable file suffix (normally "").
16384 # Additional compiler flags for building library objects.
16385 pic_flag=$lt_lt_prog_compiler_pic_F77
16388 # What is the maximum length of a command?
16389 max_cmd_len=$lt_cv_sys_max_cmd_len
16391 # Does compiler simultaneously support -c and -o options?
16392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16394 # Must we lock files when doing compilation?
16395 need_locks=$lt_need_locks
16397 # Do we need the lib prefix for modules?
16398 need_lib_prefix=$need_lib_prefix
16400 # Do we need a version for libraries?
16401 need_version=$need_version
16403 # Whether dlopen is supported.
16404 dlopen_support=$enable_dlopen
16406 # Whether dlopen of programs is supported.
16407 dlopen_self=$enable_dlopen_self
16409 # Whether dlopen of statically linked programs is supported.
16410 dlopen_self_static=$enable_dlopen_self_static
16412 # Compiler flag to prevent dynamic linking.
16413 link_static_flag=$lt_lt_prog_compiler_static_F77
16415 # Compiler flag to turn off builtin functions.
16416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16418 # Compiler flag to allow reflexive dlopens.
16419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16421 # Compiler flag to generate shared objects directly from archives.
16422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16424 # Compiler flag to generate thread-safe objects.
16425 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16427 # Library versioning type.
16428 version_type=$version_type
16430 # Format of library name prefix.
16431 libname_spec=$lt_libname_spec
16433 # List of archive names. First name is the real one, the rest are links.
16434 # The last name is the one that the linker finds with -lNAME.
16435 library_names_spec=$lt_library_names_spec
16437 # The coded name of the library, if different from the real name.
16438 soname_spec=$lt_soname_spec
16440 # Commands used to build and install an old-style archive.
16442 old_archive_cmds=$lt_old_archive_cmds_F77
16443 old_postinstall_cmds=$lt_old_postinstall_cmds
16444 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16446 # Create an old-style archive from a shared archive.
16447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16449 # Create a temporary old-style archive to link instead of a shared archive.
16450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16452 # Commands used to build and install a shared archive.
16453 archive_cmds=$lt_archive_cmds_F77
16454 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16455 postinstall_cmds=$lt_postinstall_cmds
16456 postuninstall_cmds=$lt_postuninstall_cmds
16458 # Commands used to build a loadable module (assumed same as above if empty)
16459 module_cmds=$lt_module_cmds_F77
16460 module_expsym_cmds=$lt_module_expsym_cmds_F77
16462 # Commands to strip libraries.
16463 old_striplib=$lt_old_striplib
16464 striplib=$lt_striplib
16466 # Dependencies to place before the objects being linked to create a
16468 predep_objects=$lt_predep_objects_F77
16470 # Dependencies to place after the objects being linked to create a
16472 postdep_objects=$lt_postdep_objects_F77
16474 # Dependencies to place before the objects being linked to create a
16476 predeps=$lt_predeps_F77
16478 # Dependencies to place after the objects being linked to create a
16480 postdeps=$lt_postdeps_F77
16482 # The library search path used internally by the compiler when linking
16483 # a shared library.
16484 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16486 # Method to check whether dependent libraries are shared objects.
16487 deplibs_check_method=$lt_deplibs_check_method
16489 # Command to use when deplibs_check_method == file_magic.
16490 file_magic_cmd=$lt_file_magic_cmd
16492 # Flag that allows shared libraries with undefined symbols to be built.
16493 allow_undefined_flag=$lt_allow_undefined_flag_F77
16495 # Flag that forces no undefined symbols.
16496 no_undefined_flag=$lt_no_undefined_flag_F77
16498 # Commands used to finish a libtool library installation in a directory.
16499 finish_cmds=$lt_finish_cmds
16501 # Same as above, but a single script fragment to be evaled but not shown.
16502 finish_eval=$lt_finish_eval
16504 # Take the output of nm and produce a listing of raw symbols and C names.
16505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16507 # Transform the output of nm in a proper C declaration
16508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16510 # Transform the output of nm in a C name address pair
16511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16513 # This is the shared library runtime path variable.
16514 runpath_var=$runpath_var
16516 # This is the shared library path variable.
16517 shlibpath_var=$shlibpath_var
16519 # Is shlibpath searched before the hard-coded library search path?
16520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16522 # How to hardcode a shared library path into an executable.
16523 hardcode_action=$hardcode_action_F77
16525 # Whether we should hardcode library paths into libraries.
16526 hardcode_into_libs=$hardcode_into_libs
16528 # Flag to hardcode \$libdir into a binary during linking.
16529 # This must work even if \$libdir does not exist.
16530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16532 # If ld is used when linking, flag to hardcode \$libdir into
16533 # a binary during linking. This must work even if \$libdir does
16535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16537 # Whether we need a single -rpath flag with a separated argument.
16538 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16540 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16541 # resulting binary.
16542 hardcode_direct=$hardcode_direct_F77
16544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16545 # resulting binary.
16546 hardcode_minus_L=$hardcode_minus_L_F77
16548 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16549 # the resulting binary.
16550 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16552 # Set to yes if building a shared library automatically hardcodes DIR into the library
16553 # and all subsequent libraries and executables linked against it.
16554 hardcode_automatic=$hardcode_automatic_F77
16556 # Variables whose values should be saved in libtool wrapper scripts and
16557 # restored at relink time.
16558 variables_saved_for_relink="$variables_saved_for_relink"
16560 # Whether libtool must link a program against all its dependency libraries.
16561 link_all_deplibs=$link_all_deplibs_F77
16563 # Compile-time system search path for libraries
16564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16566 # Run-time system search path for libraries
16567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16569 # Fix the shell variable \$srcfile for the compiler.
16570 fix_srcfile_path=$lt_fix_srcfile_path
16572 # Set to yes if exported symbols are required.
16573 always_export_symbols=$always_export_symbols_F77
16575 # The commands to list exported symbols.
16576 export_symbols_cmds=$lt_export_symbols_cmds_F77
16578 # The commands to extract the exported symbol list from a shared archive.
16579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16581 # Symbols that should not be listed in the preloaded symbols.
16582 exclude_expsyms=$lt_exclude_expsyms_F77
16584 # Symbols that must always be exported.
16585 include_expsyms=$lt_include_expsyms_F77
16587 # ### END LIBTOOL TAG CONFIG: $tagname
16593 # If there is no Makefile yet, we rely on a make rule to execute
16594 # `config.status --recheck' to rerun these tests and create the
16595 # libtool script then.
16596 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16597 if test -f "$ltmain_in"; then
16598 test -f Makefile
&& make "$ltmain"
16604 ac_cpp
='$CPP $CPPFLAGS'
16605 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16617 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16620 # Source file extension for Java test sources.
16623 # Object file extension for compiled Java test sources.
16627 # Code to be used in simple compile tests
16628 lt_simple_compile_test_code
="class foo {}"
16630 # Code to be used in simple link tests
16631 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16635 # If no C compiler was specified, use CC.
16638 # If no C compiler flags were specified, use CFLAGS.
16639 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16641 # Allow CC to be a program name with arguments.
16645 # save warnings/boilerplate of simple test code
16646 ac_outfile
=conftest.
$ac_objext
16647 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16648 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16649 _lt_compiler_boilerplate
=`cat conftest.err`
16652 ac_outfile
=conftest.
$ac_objext
16653 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16654 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16655 _lt_linker_boilerplate
=`cat conftest.err`
16659 # Allow CC to be a program name with arguments.
16664 for cc_temp
in $compiler""; do
16666 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16667 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16672 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16675 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16676 archive_cmds_need_lc_GCJ
=no
16678 old_archive_cmds_GCJ
=$old_archive_cmds
16681 lt_prog_compiler_no_builtin_flag_GCJ
=
16683 if test "$GCC" = yes; then
16684 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16687 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16688 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16689 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 lt_cv_prog_compiler_rtti_exceptions
=no
16693 ac_outfile
=conftest.
$ac_objext
16694 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16695 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16696 # Insert the option either (1) after the last *FLAGS variable, or
16697 # (2) before a word containing "conftest.", or (3) at the end.
16698 # Note that $ac_compile itself does not contain backslashes and begins
16699 # with a dollar sign (not a hyphen), so the echo should work correctly.
16700 # The option is referenced via a variable to avoid confusing sed.
16701 lt_compile
=`echo "$ac_compile" | $SED \
16702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16704 -e 's:$: $lt_compiler_flag:'`
16705 (eval echo "\"\$as_me:16704: $lt_compile\"" >&5)
16706 (eval "$lt_compile" 2>conftest.err
)
16708 cat conftest.err
>&5
16709 echo "$as_me:16708: \$? = $ac_status" >&5
16710 if (exit $ac_status) && test -s "$ac_outfile"; then
16711 # The compiler can only warn and ignore the option if not recognized
16712 # So say no if there are warnings other than the usual output.
16713 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16714 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16715 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16716 lt_cv_prog_compiler_rtti_exceptions
=yes
16722 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16723 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16725 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16726 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16733 lt_prog_compiler_wl_GCJ
=
16734 lt_prog_compiler_pic_GCJ
=
16735 lt_prog_compiler_static_GCJ
=
16737 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16738 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16740 if test "$GCC" = yes; then
16741 lt_prog_compiler_wl_GCJ
='-Wl,'
16742 lt_prog_compiler_static_GCJ
='-static'
16746 # All AIX code is PIC.
16747 if test "$host_cpu" = ia64
; then
16748 # AIX 5 now supports IA64 processor
16749 lt_prog_compiler_static_GCJ
='-Bstatic'
16754 # FIXME: we need at least 68020 code to build shared libraries, but
16755 # adding the `-m68020' flag to GCC prevents building anything better,
16757 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16760 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16761 # PIC is the default for these OSes.
16764 mingw
* | cygwin
* | pw32
* | os2
*)
16765 # This hack is so that the source file can tell whether it is being
16766 # built for inclusion in a dll (and should export symbols for example).
16767 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16768 # (--disable-auto-import) libraries
16769 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16772 darwin
* | rhapsody
*)
16773 # PIC is the default on this platform
16774 # Common symbols not allowed in MH_DYLIB files
16775 lt_prog_compiler_pic_GCJ
='-fno-common'
16779 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16780 # Instead, we relocate shared libraries at runtime.
16784 # Just because we use GCC doesn't mean we suddenly get shared libraries
16785 # on systems that don't support them.
16786 lt_prog_compiler_can_build_shared_GCJ
=no
16791 if test -d /usr
/nec
; then
16792 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16798 # not for PA HP-UX.
16804 lt_prog_compiler_pic_GCJ
='-fPIC'
16810 lt_prog_compiler_pic_GCJ
='-fPIC'
16814 # PORTME Check for flag to pass linker flags through the system compiler.
16817 lt_prog_compiler_wl_GCJ
='-Wl,'
16818 if test "$host_cpu" = ia64
; then
16819 # AIX 5 now supports IA64 processor
16820 lt_prog_compiler_static_GCJ
='-Bstatic'
16822 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16826 # PIC is the default on this platform
16827 # Common symbols not allowed in MH_DYLIB files
16828 case $cc_basename in
16830 lt_prog_compiler_pic_GCJ
='-qnocommon'
16831 lt_prog_compiler_wl_GCJ
='-Wl,'
16836 mingw
* | cygwin
* | pw32
* | os2
*)
16837 # This hack is so that the source file can tell whether it is being
16838 # built for inclusion in a dll (and should export symbols for example).
16839 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16842 hpux9
* | hpux10
* | hpux11
*)
16843 lt_prog_compiler_wl_GCJ
='-Wl,'
16844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16845 # not for PA HP-UX.
16851 lt_prog_compiler_pic_GCJ
='+Z'
16854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16855 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16858 irix5
* | irix6
* | nonstopux
*)
16859 lt_prog_compiler_wl_GCJ
='-Wl,'
16860 # PIC (with -KPIC) is the default.
16861 lt_prog_compiler_static_GCJ
='-non_shared'
16865 lt_prog_compiler_pic_GCJ
='-KPIC'
16866 lt_prog_compiler_static_GCJ
='-Bstatic'
16869 linux
* | k
*bsd
*-gnu)
16870 case $cc_basename in
16872 lt_prog_compiler_wl_GCJ
='-Wl,'
16873 lt_prog_compiler_pic_GCJ
='-KPIC'
16874 lt_prog_compiler_static_GCJ
='-static'
16876 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16877 # Portland Group compilers (*not* the Pentium gcc compiler,
16878 # which looks to be a dead project)
16879 lt_prog_compiler_wl_GCJ
='-Wl,'
16880 lt_prog_compiler_pic_GCJ
='-fpic'
16881 lt_prog_compiler_static_GCJ
='-Bstatic'
16884 lt_prog_compiler_wl_GCJ
='-Wl,'
16885 # All Alpha code is PIC.
16886 lt_prog_compiler_static_GCJ
='-non_shared'
16889 case `$CC -V 2>&1 | sed 5q` in
16892 lt_prog_compiler_pic_GCJ
='-KPIC'
16893 lt_prog_compiler_static_GCJ
='-Bstatic'
16894 lt_prog_compiler_wl_GCJ
='-Wl,'
16897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16898 lt_prog_compiler_pic_GCJ
='-KPIC'
16899 lt_prog_compiler_static_GCJ
='-Bstatic'
16900 lt_prog_compiler_wl_GCJ
=''
16907 osf3
* | osf4
* | osf5
*)
16908 lt_prog_compiler_wl_GCJ
='-Wl,'
16909 # All OSF/1 code is PIC.
16910 lt_prog_compiler_static_GCJ
='-non_shared'
16914 lt_prog_compiler_static_GCJ
='-non_shared'
16918 lt_prog_compiler_pic_GCJ
='-KPIC'
16919 lt_prog_compiler_static_GCJ
='-Bstatic'
16920 case $cc_basename in
16921 f77
* | f90
* | f95
*)
16922 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16924 lt_prog_compiler_wl_GCJ
='-Wl,';;
16929 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16930 lt_prog_compiler_pic_GCJ
='-PIC'
16931 lt_prog_compiler_static_GCJ
='-Bstatic'
16934 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16935 lt_prog_compiler_wl_GCJ
='-Wl,'
16936 lt_prog_compiler_pic_GCJ
='-KPIC'
16937 lt_prog_compiler_static_GCJ
='-Bstatic'
16941 if test -d /usr
/nec
;then
16942 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16943 lt_prog_compiler_static_GCJ
='-Bstatic'
16947 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16948 lt_prog_compiler_wl_GCJ
='-Wl,'
16949 lt_prog_compiler_pic_GCJ
='-KPIC'
16950 lt_prog_compiler_static_GCJ
='-Bstatic'
16954 lt_prog_compiler_wl_GCJ
='-Wl,'
16955 lt_prog_compiler_can_build_shared_GCJ
=no
16959 lt_prog_compiler_pic_GCJ
='-pic'
16960 lt_prog_compiler_static_GCJ
='-Bstatic'
16964 lt_prog_compiler_can_build_shared_GCJ
=no
16969 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16970 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16973 # Check to make sure the PIC flag actually works.
16975 if test -n "$lt_prog_compiler_pic_GCJ"; then
16977 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16979 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 lt_prog_compiler_pic_works_GCJ
=no
16983 ac_outfile
=conftest.
$ac_objext
16984 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16985 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16986 # Insert the option either (1) after the last *FLAGS variable, or
16987 # (2) before a word containing "conftest.", or (3) at the end.
16988 # Note that $ac_compile itself does not contain backslashes and begins
16989 # with a dollar sign (not a hyphen), so the echo should work correctly.
16990 # The option is referenced via a variable to avoid confusing sed.
16991 lt_compile
=`echo "$ac_compile" | $SED \
16992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16994 -e 's:$: $lt_compiler_flag:'`
16995 (eval echo "\"\$as_me:16994: $lt_compile\"" >&5)
16996 (eval "$lt_compile" 2>conftest.err
)
16998 cat conftest.err
>&5
16999 echo "$as_me:16998: \$? = $ac_status" >&5
17000 if (exit $ac_status) && test -s "$ac_outfile"; then
17001 # The compiler can only warn and ignore the option if not recognized
17002 # So say no if there are warnings other than the usual output.
17003 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17004 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17005 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17006 lt_prog_compiler_pic_works_GCJ
=yes
17012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17013 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17015 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
17016 case $lt_prog_compiler_pic_GCJ in
17018 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
17021 lt_prog_compiler_pic_GCJ
=
17022 lt_prog_compiler_can_build_shared_GCJ
=no
17027 # For platforms which do not support PIC, -DPIC is meaningless:
17029 lt_prog_compiler_pic_GCJ
=
17032 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17037 # Check to make sure the static flag actually works.
17039 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17040 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17041 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17042 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 lt_prog_compiler_static_works_GCJ
=no
17046 save_LDFLAGS
="$LDFLAGS"
17047 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17048 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17049 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17050 # The linker can only warn and ignore the option if not recognized
17051 # So say no if there are warnings
17052 if test -s conftest.err
; then
17053 # Append any errors to the config.log.
17054 cat conftest.err
1>&5
17055 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17056 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17057 if diff conftest.exp conftest.er2
>/dev
/null
; then
17058 lt_prog_compiler_static_works_GCJ
=yes
17061 lt_prog_compiler_static_works_GCJ
=yes
17065 LDFLAGS
="$save_LDFLAGS"
17068 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17069 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17071 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17074 lt_prog_compiler_static_GCJ
=
17078 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17080 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 lt_cv_prog_compiler_c_o_GCJ
=no
17084 $rm -r conftest
2>/dev
/null
17088 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17090 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17091 # Insert the option either (1) after the last *FLAGS variable, or
17092 # (2) before a word containing "conftest.", or (3) at the end.
17093 # Note that $ac_compile itself does not contain backslashes and begins
17094 # with a dollar sign (not a hyphen), so the echo should work correctly.
17095 lt_compile
=`echo "$ac_compile" | $SED \
17096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17098 -e 's:$: $lt_compiler_flag:'`
17099 (eval echo "\"\$as_me:17098: $lt_compile\"" >&5)
17100 (eval "$lt_compile" 2>out
/conftest.err
)
17102 cat out
/conftest.err
>&5
17103 echo "$as_me:17102: \$? = $ac_status" >&5
17104 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17106 # The compiler can only warn and ignore the option if not recognized
17107 # So say no if there are warnings
17108 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17109 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17110 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17111 lt_cv_prog_compiler_c_o_GCJ
=yes
17116 # SGI C++ compiler will create directory out/ii_files/ for
17117 # template instantiation
17118 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17119 $rm out
/* && rmdir out
17125 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17129 hard_links
="nottested"
17130 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17131 # do not overwrite the value of need_locks provided by the user
17132 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17133 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17136 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17138 ln conftest.a conftest.b
2>&5 || hard_links
=no
17139 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17140 { echo "$as_me:$LINENO: result: $hard_links" >&5
17141 echo "${ECHO_T}$hard_links" >&6; }
17142 if test "$hard_links" = no
; then
17143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17151 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17152 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17155 allow_undefined_flag_GCJ
=
17156 enable_shared_with_static_runtimes_GCJ
=no
17158 archive_expsym_cmds_GCJ
=
17159 old_archive_From_new_cmds_GCJ
=
17160 old_archive_from_expsyms_cmds_GCJ
=
17161 export_dynamic_flag_spec_GCJ
=
17162 whole_archive_flag_spec_GCJ
=
17163 thread_safe_flag_spec_GCJ
=
17164 hardcode_libdir_flag_spec_GCJ
=
17165 hardcode_libdir_flag_spec_ld_GCJ
=
17166 hardcode_libdir_separator_GCJ
=
17167 hardcode_direct_GCJ
=no
17168 hardcode_minus_L_GCJ
=no
17169 hardcode_shlibpath_var_GCJ
=unsupported
17170 link_all_deplibs_GCJ
=unknown
17171 hardcode_automatic_GCJ
=no
17173 module_expsym_cmds_GCJ
=
17174 always_export_symbols_GCJ
=no
17175 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17176 # include_expsyms should be a list of space-separated symbols to be *always*
17177 # included in the symbol list
17178 include_expsyms_GCJ
=
17179 # exclude_expsyms can be an extended regexp of symbols to exclude
17180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17182 # as well as any symbol that contains `d'.
17183 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17185 # platforms (ab)use it in PIC code, but their linkers get confused if
17186 # the symbol is explicitly referenced. Since portable code cannot
17187 # rely on this symbol name, it's probably fine to never include it in
17188 # preloaded symbol tables.
17189 extract_expsyms_cmds
=
17190 # Just being paranoid about ensuring that cc_basename is set.
17191 for cc_temp
in $compiler""; do
17193 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17194 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17199 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17202 cygwin
* | mingw
* | pw32
*)
17203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17204 # When not using gcc, we currently assume that we are using
17205 # Microsoft Visual C++.
17206 if test "$GCC" != yes; then
17211 # we just hope/assume this is gcc and not c89 (= MSVC++)
17220 if test "$with_gnu_ld" = yes; then
17221 # If archive_cmds runs LD, not CC, wlarc should be empty
17224 # Set some defaults for GNU ld with shared library support. These
17225 # are reset later if shared libraries are not supported. Putting them
17226 # here allows them to be overridden if necessary.
17227 runpath_var
=LD_RUN_PATH
17228 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17229 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17230 # ancient GNU ld didn't support --whole-archive et. al.
17231 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17232 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17234 whole_archive_flag_spec_GCJ
=
17236 supports_anon_versioning
=no
17237 case `$LD -v 2>/dev/null` in
17238 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17239 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17240 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17241 *\
2.11.
*) ;; # other 2.11 versions
17242 *) supports_anon_versioning
=yes ;;
17245 # See if GNU ld supports shared libraries.
17247 aix3
* | aix4
* | aix5
*)
17248 # On AIX/PPC, the GNU linker is very broken
17249 if test "$host_cpu" != ia64
; then
17253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17254 *** to be unable to reliably create shared libraries on AIX.
17255 *** Therefore, libtool is disabling shared libraries support. If you
17256 *** really care for shared libraries, you may want to modify your PATH
17257 *** so that a non-GNU linker is found, and then restart.
17264 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)'
17265 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17266 hardcode_minus_L_GCJ
=yes
17268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17269 # that the semantics of dynamic libraries on AmigaOS, at least up
17270 # to version 4, is to share data among multiple programs linked
17271 # with the same dynamic library. Since this doesn't match the
17272 # behavior of shared libraries on other platforms, we can't use
17278 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17279 allow_undefined_flag_GCJ
=unsupported
17280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17281 # support --undefined. This deserves some investigation. FIXME
17282 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17288 cygwin
* | mingw
* | pw32
*)
17289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17290 # as there is no search path for DLLs.
17291 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17292 allow_undefined_flag_GCJ
=unsupported
17293 always_export_symbols_GCJ
=no
17294 enable_shared_with_static_runtimes_GCJ
=yes
17295 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17297 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17298 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17299 # If the export-symbols file already is a .def file (1st line
17300 # is EXPORTS), use it as is; otherwise, prepend...
17301 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17302 cp $export_symbols $output_objdir/$soname.def;
17304 echo EXPORTS > $output_objdir/$soname.def;
17305 cat $export_symbols >> $output_objdir/$soname.def;
17307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17314 hardcode_direct_GCJ
=no
17315 hardcode_shlibpath_var_GCJ
=no
17316 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17317 export_dynamic_flag_spec_GCJ
='${wl}-E'
17318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17319 # Instead, shared libraries are loaded at an image base (0x10000000 by
17320 # default) and relocated if they conflict, which is a slow very memory
17321 # consuming and fragmenting process. To avoid this, we pick a random,
17322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17324 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'
17325 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'
17328 gnu
* | linux
* | k
*bsd
*-gnu)
17329 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17331 case $cc_basename,$host_cpu in
17332 pgcc
*) # Portland Group C compiler
17333 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17334 tmp_addflag
=' $pic_flag'
17336 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17337 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17338 tmp_addflag
=' $pic_flag -Mnomain' ;;
17339 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17340 tmp_addflag
=' -i_dynamic' ;;
17341 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17342 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17343 ifc
* | ifort
*) # Intel Fortran compiler
17344 tmp_addflag
=' -nofor_main' ;;
17346 case `$CC -V 2>&1 | sed 5q` in
17347 *Sun\ C
*) # Sun C 5.9
17348 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17349 tmp_sharedflag
='-G' ;;
17350 *Sun\ F
*) # Sun Fortran 8.3
17351 tmp_sharedflag
='-G' ;;
17353 tmp_sharedflag
='-shared' ;;
17355 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357 if test $supports_anon_versioning = yes; then
17358 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17360 $echo "local: *; };" >> $output_objdir/$libname.ver~
17361 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17363 link_all_deplibs_GCJ
=no
17369 netbsd
* | netbsdelf
*-gnu)
17370 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17371 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17374 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17375 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17380 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17384 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17385 *** create shared libraries on Solaris systems. Therefore, libtool
17386 *** is disabling shared libraries support. We urge you to upgrade GNU
17387 *** binutils to release 2.9.1 or newer. Another option is to modify
17388 *** your PATH or compiler configuration so that the native linker is
17389 *** used, and then restart.
17392 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17393 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17394 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17400 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17401 case `$LD -v 2>&1` in
17402 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17406 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17407 *** reliably create shared libraries on SCO systems. Therefore, libtool
17408 *** is disabling shared libraries support. We urge you to upgrade GNU
17409 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17410 *** your PATH or compiler configuration so that the native linker is
17411 *** used, and then restart.
17416 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17417 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17418 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17419 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17428 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17430 hardcode_direct_GCJ
=yes
17431 hardcode_shlibpath_var_GCJ
=no
17435 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17436 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17437 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17444 if test "$ld_shlibs_GCJ" = no
; then
17446 hardcode_libdir_flag_spec_GCJ
=
17447 export_dynamic_flag_spec_GCJ
=
17448 whole_archive_flag_spec_GCJ
=
17451 # PORTME fill in a description of your system's linker (not GNU ld)
17454 allow_undefined_flag_GCJ
=unsupported
17455 always_export_symbols_GCJ
=yes
17456 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'
17457 # Note: this linker hardcodes the directories in LIBPATH if there
17458 # are no directories specified by -L.
17459 hardcode_minus_L_GCJ
=yes
17460 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17461 # Neither direct hardcoding nor static linking is supported with a
17463 hardcode_direct_GCJ
=unsupported
17468 if test "$host_cpu" = ia64
; then
17469 # On IA64, the linker does run time linking by default, so we don't
17470 # have to do anything special.
17471 aix_use_runtimelinking
=no
17472 exp_sym_flag
='-Bexport'
17475 # If we're using GNU nm, then we don't want the "-C" option.
17476 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17477 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17478 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17480 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'
17482 aix_use_runtimelinking
=no
17484 # Test if we are trying to use run time linking or normal
17485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17486 # need to do runtime linking.
17487 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17488 for ld_flag
in $LDFLAGS; do
17489 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17490 aix_use_runtimelinking
=yes
17497 exp_sym_flag
='-bexport'
17498 no_entry_flag
='-bnoentry'
17501 # When large executables or shared objects are built, AIX ld can
17502 # have problems creating the table of contents. If linking a library
17503 # or program results in "error TOC overflow" add -mminimal-toc to
17504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17507 archive_cmds_GCJ
=''
17508 hardcode_direct_GCJ
=yes
17509 hardcode_libdir_separator_GCJ
=':'
17510 link_all_deplibs_GCJ
=yes
17512 if test "$GCC" = yes; then
17513 case $host_os in aix4.
[012]|aix4.
[012].
*)
17514 # We only want to do this on AIX 4.2 and lower, the check
17515 # below for broken collect2 doesn't work under 4.3+
17516 collect2name
=`${CC} -print-prog-name=collect2`
17517 if test -f "$collect2name" && \
17518 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17520 # We have reworked collect2
17523 # We have old collect2
17524 hardcode_direct_GCJ
=unsupported
17525 # It fails to find uninstalled libraries when the uninstalled
17526 # path is not listed in the libpath. Setting hardcode_minus_L
17527 # to unsupported forces relinking
17528 hardcode_minus_L_GCJ
=yes
17529 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17530 hardcode_libdir_separator_GCJ
=
17534 shared_flag
='-shared'
17535 if test "$aix_use_runtimelinking" = yes; then
17536 shared_flag
="$shared_flag "'${wl}-G'
17540 if test "$host_cpu" = ia64
; then
17541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17542 # chokes on -Wl,-G. The following line is correct:
17545 if test "$aix_use_runtimelinking" = yes; then
17546 shared_flag
='${wl}-G'
17548 shared_flag
='${wl}-bM:SRE'
17553 # It seems that -bexpall does not export symbols beginning with
17554 # underscore (_), so it is better to generate a list of symbols to export.
17555 always_export_symbols_GCJ
=yes
17556 if test "$aix_use_runtimelinking" = yes; then
17557 # Warning - without using the other runtime loading flags (-brtl),
17558 # -berok will link without error, but may produce a broken library.
17559 allow_undefined_flag_GCJ
='-berok'
17560 # Determine the default libpath from the value encoded in an empty executable.
17561 cat >conftest.
$ac_ext <<_ACEOF
17564 cat confdefs.h
>>conftest.
$ac_ext
17565 cat >>conftest.
$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17576 rm -f conftest.
$ac_objext conftest
$ac_exeext
17577 if { (ac_try
="$ac_link"
17578 case "(($ac_try" in
17579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_link") 2>conftest.er1
17585 grep -v '^ *+' conftest.er1 >conftest.err
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && {
17590 test -z "$ac_c_werror_flag" ||
17591 test ! -s conftest.err
17592 } && test -s conftest$ac_exeext &&
17593 $as_test_x conftest$ac_exeext; then
17595 lt_aix_libpath_sed='
17596 /Import File Strings/,/^$/ {
17602 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17603 # Check for a 64-bit object if we didn't find anything.
17604 if test -z "$aix_libpath"; then
17605 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17615 conftest$ac_exeext conftest.$ac_ext
17616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17618 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17619 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17621 if test "$host_cpu" = ia64; then
17622 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17623 allow_undefined_flag_GCJ="-z nodefs"
17624 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"
17626 # Determine the default libpath from the value encoded in an empty executable.
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (ac_try="$ac_link"
17644 case "(($ac_try" in
17645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17646 *) ac_try_echo
=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_link") 2>conftest.er1
17651 grep -v '^ *+' conftest.er1
>conftest.err
17653 cat conftest.err
>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest
$ac_exeext &&
17659 $as_test_x conftest
$ac_exeext; then
17661 lt_aix_libpath_sed
='
17662 /Import File Strings/,/^$/ {
17668 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17669 # Check for a 64-bit object if we didn't find anything.
17670 if test -z "$aix_libpath"; then
17671 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.
$ac_ext >&5
17680 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17681 conftest
$ac_exeext conftest.
$ac_ext
17682 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17684 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17685 # Warning - without using the other run time loading flags,
17686 # -berok will link without error, but may produce a broken library.
17687 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17688 allow_undefined_flag_GCJ
=' ${wl}-berok'
17689 # Exported symbols can be pulled into shared objects from archives
17690 whole_archive_flag_spec_GCJ
='$convenience'
17691 archive_cmds_need_lc_GCJ
=yes
17692 # This is similar to how AIX traditionally builds its shared libraries.
17693 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'
17699 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)'
17700 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17701 hardcode_minus_L_GCJ
=yes
17702 # see comment about different semantics on the GNU ld section
17707 export_dynamic_flag_spec_GCJ
=-rdynamic
17710 cygwin
* | mingw
* | pw32
*)
17711 # When not using gcc, we currently assume that we are using
17712 # Microsoft Visual C++.
17713 # hardcode_libdir_flag_spec is actually meaningless, as there is
17714 # no search path for DLLs.
17715 hardcode_libdir_flag_spec_GCJ
=' '
17716 allow_undefined_flag_GCJ
=unsupported
17717 # Tell ltmain to make .lib files, not .a files.
17719 # Tell ltmain to make .dll files, not .so files.
17721 # FIXME: Setting linknames here is a bad hack.
17722 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17723 # The linker will automatically build a .lib file if we build a DLL.
17724 old_archive_From_new_cmds_GCJ
='true'
17725 # FIXME: Should let the user specify the lib program.
17726 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17727 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17728 enable_shared_with_static_runtimes_GCJ
=yes
17731 darwin
* | rhapsody
*)
17733 rhapsody
* | darwin1.
[012])
17734 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17737 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17738 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17740 case ${MACOSX_DEPLOYMENT_TARGET} in
17742 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17745 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17751 archive_cmds_need_lc_GCJ
=no
17752 hardcode_direct_GCJ
=no
17753 hardcode_automatic_GCJ
=yes
17754 hardcode_shlibpath_var_GCJ
=unsupported
17755 whole_archive_flag_spec_GCJ
=''
17756 link_all_deplibs_GCJ
=yes
17757 if test "$GCC" = yes ; then
17758 output_verbose_link_cmd
='echo'
17759 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17760 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17762 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17763 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17765 case $cc_basename in
17767 output_verbose_link_cmd
='echo'
17768 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17769 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17771 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17772 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17782 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17784 hardcode_shlibpath_var_GCJ
=no
17791 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17792 # support. Future versions do this automatically, but an explicit c++rt0.o
17793 # does not break anything, and helps significantly (at the cost of a little
17796 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17797 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17798 hardcode_direct_GCJ
=yes
17799 hardcode_shlibpath_var_GCJ
=no
17802 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17804 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17805 hardcode_direct_GCJ
=yes
17806 hardcode_minus_L_GCJ
=yes
17807 hardcode_shlibpath_var_GCJ
=no
17810 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17811 freebsd
* | dragonfly
*)
17812 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17813 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17814 hardcode_direct_GCJ
=yes
17815 hardcode_shlibpath_var_GCJ
=no
17819 if test "$GCC" = yes; then
17820 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'
17822 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'
17824 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17825 hardcode_libdir_separator_GCJ
=:
17826 hardcode_direct_GCJ
=yes
17828 # hardcode_minus_L: Not really in the search PATH,
17829 # but as the default location of the library.
17830 hardcode_minus_L_GCJ
=yes
17831 export_dynamic_flag_spec_GCJ
='${wl}-E'
17835 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17836 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17840 if test "$with_gnu_ld" = no
; then
17841 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17842 hardcode_libdir_separator_GCJ
=:
17844 hardcode_direct_GCJ
=yes
17845 export_dynamic_flag_spec_GCJ
='${wl}-E'
17847 # hardcode_minus_L: Not really in the search PATH,
17848 # but as the default location of the library.
17849 hardcode_minus_L_GCJ
=yes
17854 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17857 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17860 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17863 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17869 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17875 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17879 if test "$with_gnu_ld" = no
; then
17880 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17881 hardcode_libdir_separator_GCJ
=:
17885 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17886 hardcode_direct_GCJ
=no
17887 hardcode_shlibpath_var_GCJ
=no
17890 hardcode_direct_GCJ
=yes
17891 export_dynamic_flag_spec_GCJ
='${wl}-E'
17893 # hardcode_minus_L: Not really in the search PATH,
17894 # but as the default location of the library.
17895 hardcode_minus_L_GCJ
=yes
17901 irix5
* | irix6
* | nonstopux
*)
17902 if test "$GCC" = yes; then
17903 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17905 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17906 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17908 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17909 hardcode_libdir_separator_GCJ
=:
17910 link_all_deplibs_GCJ
=yes
17913 netbsd
* | netbsdelf
*-gnu)
17914 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17915 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17917 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17919 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17920 hardcode_direct_GCJ
=yes
17921 hardcode_shlibpath_var_GCJ
=no
17925 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17926 hardcode_direct_GCJ
=yes
17927 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17928 hardcode_libdir_separator_GCJ
=:
17929 hardcode_shlibpath_var_GCJ
=no
17933 if test -f /usr
/libexec
/ld.so
; then
17934 hardcode_direct_GCJ
=yes
17935 hardcode_shlibpath_var_GCJ
=no
17936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17937 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17938 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17939 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17940 export_dynamic_flag_spec_GCJ
='${wl}-E'
17943 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17944 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17945 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17948 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17949 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17959 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17960 hardcode_minus_L_GCJ
=yes
17961 allow_undefined_flag_GCJ
=unsupported
17962 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'
17963 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17967 if test "$GCC" = yes; then
17968 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17969 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17971 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17972 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17974 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17975 hardcode_libdir_separator_GCJ
=:
17978 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17979 if test "$GCC" = yes; then
17980 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17981 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17982 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17984 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17985 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17986 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17987 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17989 # Both c and cxx compiler support -rpath directly
17990 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17992 hardcode_libdir_separator_GCJ
=:
17996 no_undefined_flag_GCJ
=' -z text'
17997 if test "$GCC" = yes; then
17999 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18000 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18001 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18004 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18005 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18008 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
18009 hardcode_shlibpath_var_GCJ
=no
18011 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18013 # The compiler driver will combine and reorder linker options,
18014 # but understands `-z linker_flag'. GCC discards it without `$wl',
18015 # but is careful enough not to reorder.
18016 # Supported since Solaris 2.6 (maybe 2.5.1?)
18017 if test "$GCC" = yes; then
18018 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18020 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
18024 link_all_deplibs_GCJ
=yes
18028 if test "x$host_vendor" = xsequent
; then
18029 # Use $CC to link under sequent, because it throws in some extra .o
18030 # files that make .init and .fini sections work.
18031 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18033 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18035 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18036 hardcode_direct_GCJ
=yes
18037 hardcode_minus_L_GCJ
=yes
18038 hardcode_shlibpath_var_GCJ
=no
18042 case $host_vendor in
18044 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18045 hardcode_direct_GCJ
=yes # is this really true???
18048 ## LD is ld it makes a PLAMLIB
18049 ## CC just makes a GrossModule.
18050 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18051 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18052 hardcode_direct_GCJ
=no
18055 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18059 runpath_var
='LD_RUN_PATH'
18060 hardcode_shlibpath_var_GCJ
=no
18064 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18065 hardcode_shlibpath_var_GCJ
=no
18066 export_dynamic_flag_spec_GCJ
='-Bexport'
18070 if test -d /usr
/nec
; then
18071 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18072 hardcode_shlibpath_var_GCJ
=no
18073 runpath_var
=LD_RUN_PATH
18074 hardcode_runpath_var
=yes
18079 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18080 no_undefined_flag_GCJ
='${wl}-z,text'
18081 archive_cmds_need_lc_GCJ
=no
18082 hardcode_shlibpath_var_GCJ
=no
18083 runpath_var
='LD_RUN_PATH'
18085 if test "$GCC" = yes; then
18086 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18089 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18090 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18094 sysv5
* | sco3.2v5
* | sco5v6
*)
18095 # Note: We can NOT use -z defs as we might desire, because we do not
18096 # link with -lc, and that would cause any symbols used from libc to
18097 # always be unresolved, which means just about no library would
18098 # ever link correctly. If we're not using GNU ld we use -z text
18099 # though, which does catch some bad symbols but isn't as heavy-handed
18101 no_undefined_flag_GCJ
='${wl}-z,text'
18102 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18103 archive_cmds_need_lc_GCJ
=no
18104 hardcode_shlibpath_var_GCJ
=no
18105 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18106 hardcode_libdir_separator_GCJ
=':'
18107 link_all_deplibs_GCJ
=yes
18108 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18109 runpath_var
='LD_RUN_PATH'
18111 if test "$GCC" = yes; then
18112 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18113 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18121 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18123 hardcode_shlibpath_var_GCJ
=no
18132 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18133 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18134 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18137 # Do we need to explicitly link libc?
18139 case "x$archive_cmds_need_lc_GCJ" in
18141 # Assume -lc should be added
18142 archive_cmds_need_lc_GCJ
=yes
18144 if test "$enable_shared" = yes && test "$GCC" = yes; then
18145 case $archive_cmds_GCJ in
18147 # FIXME: we may have to deal with multi-command sequences.
18150 # Test whether the compiler implicitly links with -lc since on some
18151 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18152 # to ld, don't add -lc before -lgcc.
18153 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18154 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18156 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18159 (eval $ac_compile) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } 2>conftest.err
; then
18165 libobjs
=conftest.
$ac_objext
18167 wl
=$lt_prog_compiler_wl_GCJ
18168 pic_flag
=$lt_prog_compiler_pic_GCJ
18174 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18175 allow_undefined_flag_GCJ
=
18176 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18177 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }
18182 archive_cmds_need_lc_GCJ
=no
18184 archive_cmds_need_lc_GCJ
=yes
18186 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18188 cat conftest.err
1>&5
18191 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18192 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18199 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18201 library_names_spec
=
18202 libname_spec
='lib$name'
18206 postuninstall_cmds
=
18210 shlibpath_overrides_runpath
=unknown
18212 dynamic_linker
="$host_os ld.so"
18213 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18215 need_lib_prefix
=unknown
18216 hardcode_into_libs
=no
18218 # when you set need_version to no, make sure it does not cause -set_version
18219 # flags to be left without arguments
18220 need_version
=unknown
18225 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18226 shlibpath_var
=LIBPATH
18228 # AIX 3 has no versioning support, so we append a major version to the name.
18229 soname_spec
='${libname}${release}${shared_ext}$major'
18236 hardcode_into_libs
=yes
18237 if test "$host_cpu" = ia64
; then
18238 # AIX 5 supports IA64
18239 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18240 shlibpath_var
=LD_LIBRARY_PATH
18242 # With GCC up to 2.95.x, collect2 would create an import file
18243 # for dependence libraries. The import file would start with
18244 # the line `#! .'. This would cause the generated library to
18245 # depend on `.', always an invalid library. This was fixed in
18246 # development snapshots of GCC prior to 3.0.
18248 aix4 | aix4.
[01] | aix4.
[01].
*)
18249 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18251 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18254 can_build_shared
=no
18258 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18259 # soname into executable. Probably we can add versioning support to
18260 # collect2, so additional links can be useful in future.
18261 if test "$aix_use_runtimelinking" = yes; then
18262 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18263 # instead of lib<name>.a to let people know that these are not
18264 # typical AIX shared libraries.
18265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18267 # We preserve .a as extension for shared libraries through AIX4.2
18268 # and later when we are not doing run time linking.
18269 library_names_spec
='${libname}${release}.a $libname.a'
18270 soname_spec
='${libname}${release}${shared_ext}$major'
18272 shlibpath_var
=LIBPATH
18277 library_names_spec
='$libname.ixlibrary $libname.a'
18278 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18279 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'
18283 library_names_spec
='${libname}${shared_ext}'
18284 dynamic_linker
="$host_os ld.so"
18285 shlibpath_var
=LIBRARY_PATH
18291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 soname_spec
='${libname}${release}${shared_ext}$major'
18293 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18294 shlibpath_var
=LD_LIBRARY_PATH
18295 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18296 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18297 # the default ld.so.conf also contains /usr/contrib/lib and
18298 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18299 # libtool to hard-code these into programs
18302 cygwin
* | mingw
* | pw32
*)
18303 version_type
=windows
18308 case $GCC,$host_os in
18309 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18310 library_names_spec
='$libname.dll.a'
18311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18312 postinstall_cmds
='base_file=`basename \${file}`~
18313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18314 dldir=$destdir/`dirname \$dlpath`~
18315 test -d \$dldir || mkdir -p \$dldir~
18316 $install_prog $dir/$dlname \$dldir/$dlname~
18317 chmod a+x \$dldir/$dlname'
18318 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18319 dlpath=$dir/\$dldll~
18321 shlibpath_overrides_runpath
=yes
18325 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18326 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18327 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18330 # MinGW DLLs use traditional 'lib' prefix
18331 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18332 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18333 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18334 # It is most probably a Windows format PATH printed by
18335 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18336 # path with ; separators, and with drive letters. We can handle the
18337 # drive letters (cygwin fileutils understands them), so leave them,
18338 # especially as we might pass files found there to a mingw objdump,
18339 # which wouldn't understand a cygwinified path. Ahh.
18340 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18342 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18346 # pw32 DLLs use 'pw' prefix rather than 'lib'
18347 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18353 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18356 dynamic_linker
='Win32 ld.exe'
18357 # FIXME: first we should search . and the directory the executable is in
18361 darwin
* | rhapsody
*)
18362 dynamic_linker
="$host_os dyld"
18363 version_type
=darwin
18366 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18367 soname_spec
='${libname}${release}${major}$shared_ext'
18368 shlibpath_overrides_runpath
=yes
18369 shlibpath_var
=DYLD_LIBRARY_PATH
18370 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18372 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18380 soname_spec
='${libname}${release}${shared_ext}$major'
18381 shlibpath_var
=LD_LIBRARY_PATH
18388 freebsd
* | dragonfly
*)
18389 # DragonFly does not have aout. When/if they implement a new
18390 # versioning mechanism, adjust this.
18391 if test -x /usr
/bin
/objformat
; then
18392 objformat
=`/usr/bin/objformat`
18395 freebsd
[123]*) objformat
=aout
;;
18396 *) objformat
=elf
;;
18399 version_type
=freebsd-
$objformat
18400 case $version_type in
18402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18407 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18411 shlibpath_var
=LD_LIBRARY_PATH
18414 shlibpath_overrides_runpath
=yes
18416 freebsd3.
[01]* | freebsdelf3.
[01]*)
18417 shlibpath_overrides_runpath
=yes
18418 hardcode_into_libs
=yes
18420 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18421 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18422 shlibpath_overrides_runpath
=no
18423 hardcode_into_libs
=yes
18425 *) # from 4.6 on, and DragonFly
18426 shlibpath_overrides_runpath
=yes
18427 hardcode_into_libs
=yes
18436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18437 soname_spec
='${libname}${release}${shared_ext}$major'
18438 shlibpath_var
=LD_LIBRARY_PATH
18439 hardcode_into_libs
=yes
18442 hpux9
* | hpux10
* | hpux11
*)
18443 # Give a soname corresponding to the major version so that dld.sl refuses to
18444 # link against other versions.
18451 hardcode_into_libs
=yes
18452 dynamic_linker
="$host_os dld.so"
18453 shlibpath_var
=LD_LIBRARY_PATH
18454 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec
='${libname}${release}${shared_ext}$major'
18457 if test "X$HPUX_IA64_MODE" = X32
; then
18458 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18460 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18462 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18466 hardcode_into_libs
=yes
18467 dynamic_linker
="$host_os dld.sl"
18468 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18469 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec
='${libname}${release}${shared_ext}$major'
18472 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18473 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18477 dynamic_linker
="$host_os dld.sl"
18478 shlibpath_var
=SHLIB_PATH
18479 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec
='${libname}${release}${shared_ext}$major'
18484 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18485 postinstall_cmds
='chmod 555 $lib'
18492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18493 soname_spec
='${libname}${release}${shared_ext}$major'
18494 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18495 shlibpath_var
=LD_LIBRARY_PATH
18496 shlibpath_overrides_runpath
=no
18497 hardcode_into_libs
=yes
18500 irix5
* | irix6
* | nonstopux
*)
18502 nonstopux
*) version_type
=nonstopux
;;
18504 if test "$lt_cv_prog_gnu_ld" = yes; then
18512 soname_spec
='${libname}${release}${shared_ext}$major'
18513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18515 irix5
* | nonstopux
*)
18516 libsuff
= shlibsuff
=
18519 case $LD in # libtool.m4 will add one of these switches to LD
18520 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18521 libsuff
= shlibsuff
= libmagic
=32-bit;;
18522 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18523 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18524 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18525 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18526 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18530 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18531 shlibpath_overrides_runpath
=no
18532 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18533 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18534 hardcode_into_libs
=yes
18537 # No shared lib support for Linux oldld, aout, or coff.
18538 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18542 # This must be Linux ELF.
18543 linux
* | k
*bsd
*-gnu)
18547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18548 soname_spec
='${libname}${release}${shared_ext}$major'
18549 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18550 shlibpath_var
=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath
=no
18552 # This implies no fast_install, which is unacceptable.
18553 # Some rework will be needed to allow for fast_install
18554 # before this can be enabled.
18555 hardcode_into_libs
=yes
18557 # Append ld.so.conf contents to the search path
18558 if test -f /etc
/ld.so.conf
; then
18559 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18560 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18563 # We used to test for /lib/ld.so.1 and disable shared libraries on
18564 # powerpc, because MkLinux only supported shared libraries with the
18565 # GNU dynamic linker. Since this was broken with cross compilers,
18566 # most powerpc-linux boxes support dynamic linking these days and
18567 # people can always --disable-shared, the test was removed, and we
18568 # assume the GNU/Linux dynamic linker is in use.
18569 dynamic_linker
='GNU/Linux ld.so'
18576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18577 soname_spec
='${libname}${release}${shared_ext}$major'
18578 shlibpath_var
=LD_LIBRARY_PATH
18579 shlibpath_overrides_runpath
=no
18580 hardcode_into_libs
=yes
18581 dynamic_linker
='NetBSD ld.elf_so'
18588 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18590 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18591 dynamic_linker
='NetBSD (a.out) ld.so'
18593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18594 soname_spec
='${libname}${release}${shared_ext}$major'
18595 dynamic_linker
='NetBSD ld.elf_so'
18597 shlibpath_var
=LD_LIBRARY_PATH
18598 shlibpath_overrides_runpath
=yes
18599 hardcode_into_libs
=yes
18604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605 shlibpath_var
=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath
=yes
18613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614 soname_spec
='${libname}${release}${shared_ext}$major'
18615 shlibpath_var
=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath
=yes
18621 sys_lib_dlsearch_path_spec
="/usr/lib"
18623 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18625 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18626 *) need_version
=no
;;
18628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18629 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18630 shlibpath_var
=LD_LIBRARY_PATH
18631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18633 openbsd2.
[89] | openbsd2.
[89].
*)
18634 shlibpath_overrides_runpath
=no
18637 shlibpath_overrides_runpath
=yes
18641 shlibpath_overrides_runpath
=yes
18646 libname_spec
='$name'
18649 library_names_spec
='$libname${shared_ext} $libname.a'
18650 dynamic_linker
='OS/2 ld.exe'
18651 shlibpath_var
=LIBPATH
18654 osf3
* | osf4
* | osf5
*)
18658 soname_spec
='${libname}${release}${shared_ext}$major'
18659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18660 shlibpath_var
=LD_LIBRARY_PATH
18661 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18662 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674 soname_spec
='${libname}${release}${shared_ext}$major'
18675 shlibpath_var
=LD_LIBRARY_PATH
18676 shlibpath_overrides_runpath
=yes
18677 hardcode_into_libs
=yes
18678 # ldd complains unless libraries are executable
18679 postinstall_cmds
='chmod +x $lib'
18684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18685 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18686 shlibpath_var
=LD_LIBRARY_PATH
18687 shlibpath_overrides_runpath
=yes
18688 if test "$with_gnu_ld" = yes; then
18696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697 soname_spec
='${libname}${release}${shared_ext}$major'
18698 shlibpath_var
=LD_LIBRARY_PATH
18699 case $host_vendor in
18701 shlibpath_overrides_runpath
=no
18703 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18704 runpath_var
=LD_RUN_PATH
18712 shlibpath_overrides_runpath
=no
18713 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18719 if test -d /usr
/nec
;then
18721 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18722 soname_spec
='$libname${shared_ext}.$major'
18723 shlibpath_var
=LD_LIBRARY_PATH
18727 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18728 version_type
=freebsd-elf
18731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18732 soname_spec
='${libname}${release}${shared_ext}$major'
18733 shlibpath_var
=LD_LIBRARY_PATH
18734 hardcode_into_libs
=yes
18735 if test "$with_gnu_ld" = yes; then
18736 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18737 shlibpath_overrides_runpath
=no
18739 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18740 shlibpath_overrides_runpath
=yes
18743 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18747 sys_lib_dlsearch_path_spec
='/usr/lib'
18752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753 soname_spec
='${libname}${release}${shared_ext}$major'
18754 shlibpath_var
=LD_LIBRARY_PATH
18761 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18762 echo "${ECHO_T}$dynamic_linker" >&6; }
18763 test "$dynamic_linker" = no
&& can_build_shared
=no
18765 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18766 if test "$GCC" = yes; then
18767 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18770 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18771 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18772 hardcode_action_GCJ
=
18773 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18774 test -n "$runpath_var_GCJ" || \
18775 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18777 # We can hardcode non-existant directories.
18778 if test "$hardcode_direct_GCJ" != no
&&
18779 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18780 # have to relink, otherwise we might link with an installed library
18781 # when we should be linking with a yet-to-be-installed one
18782 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18783 test "$hardcode_minus_L_GCJ" != no
; then
18784 # Linking always hardcodes the temporary library directory.
18785 hardcode_action_GCJ
=relink
18787 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18788 hardcode_action_GCJ
=immediate
18791 # We cannot hardcode anything, or else we can only hardcode existing
18793 hardcode_action_GCJ
=unsupported
18795 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18796 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18798 if test "$hardcode_action_GCJ" = relink
; then
18799 # Fast installation is not supported
18800 enable_fast_install
=no
18801 elif test "$shlibpath_overrides_runpath" = yes ||
18802 test "$enable_shared" = no
; then
18803 # Fast installation is not necessary
18804 enable_fast_install
=needless
18808 # The else clause should only fire when bootstrapping the
18809 # libtool distribution, otherwise you forgot to ship ltmain.sh
18810 # with your package, and you will get complaints that there are
18811 # no rules to generate ltmain.sh.
18812 if test -f "$ltmain"; then
18813 # See if we are running on zsh, and set the options which allow our commands through
18814 # without removal of \ escapes.
18815 if test -n "${ZSH_VERSION+set}" ; then
18816 setopt NO_GLOB_SUBST
18818 # Now quote all the things that may contain metacharacters while being
18819 # careful not to overquote the AC_SUBSTed values. We take copies of the
18820 # variables and quote the copies for generation of the libtool script.
18821 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18825 deplibs_check_method reload_flag reload_cmds need_locks \
18826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18827 lt_cv_sys_global_symbol_to_c_name_address \
18828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18829 old_postinstall_cmds old_postuninstall_cmds \
18833 lt_prog_compiler_wl_GCJ \
18834 lt_prog_compiler_pic_GCJ \
18835 lt_prog_compiler_static_GCJ \
18836 lt_prog_compiler_no_builtin_flag_GCJ \
18837 export_dynamic_flag_spec_GCJ \
18838 thread_safe_flag_spec_GCJ \
18839 whole_archive_flag_spec_GCJ \
18840 enable_shared_with_static_runtimes_GCJ \
18841 old_archive_cmds_GCJ \
18842 old_archive_from_new_cmds_GCJ \
18843 predep_objects_GCJ \
18844 postdep_objects_GCJ \
18847 compiler_lib_search_path_GCJ \
18849 archive_expsym_cmds_GCJ \
18850 postinstall_cmds_GCJ \
18851 postuninstall_cmds_GCJ \
18852 old_archive_from_expsyms_cmds_GCJ \
18853 allow_undefined_flag_GCJ \
18854 no_undefined_flag_GCJ \
18855 export_symbols_cmds_GCJ \
18856 hardcode_libdir_flag_spec_GCJ \
18857 hardcode_libdir_flag_spec_ld_GCJ \
18858 hardcode_libdir_separator_GCJ \
18859 hardcode_automatic_GCJ \
18861 module_expsym_cmds_GCJ \
18862 lt_cv_prog_compiler_c_o_GCJ \
18863 fix_srcfile_path_GCJ \
18864 exclude_expsyms_GCJ \
18865 include_expsyms_GCJ
; do
18868 old_archive_cmds_GCJ | \
18869 old_archive_from_new_cmds_GCJ | \
18870 archive_cmds_GCJ | \
18871 archive_expsym_cmds_GCJ | \
18872 module_cmds_GCJ | \
18873 module_expsym_cmds_GCJ | \
18874 old_archive_from_expsyms_cmds_GCJ | \
18875 export_symbols_cmds_GCJ | \
18876 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18877 postinstall_cmds | postuninstall_cmds | \
18878 old_postinstall_cmds | old_postuninstall_cmds | \
18879 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18880 # Double-quote double-evaled strings.
18881 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18890 *'\$0 --fallback-echo"')
18891 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18897 cat <<__EOF__ >> "$cfgfile"
18898 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18902 # Shell to use when invoking shell scripts.
18905 # Whether or not to build shared libraries.
18906 build_libtool_libs=$enable_shared
18908 # Whether or not to build static libraries.
18909 build_old_libs=$enable_static
18911 # Whether or not to add -lc for building shared libraries.
18912 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18914 # Whether or not to disallow shared libs when runtime libs are static
18915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18917 # Whether or not to optimize for fast installation.
18918 fast_install=$enable_fast_install
18921 host_alias=$host_alias
18925 # The build system.
18926 build_alias=$build_alias
18930 # An echo program that does not interpret backslashes.
18935 AR_FLAGS=$lt_AR_FLAGS
18940 # LTCC compiler flags.
18941 LTCFLAGS=$lt_LTCFLAGS
18943 # A language-specific compiler.
18944 CC=$lt_compiler_GCJ
18946 # Is the compiler the GNU C compiler?
18952 # The linker used to build libraries.
18955 # Whether we need hard or soft links.
18958 # A BSD-compatible nm program.
18961 # A symbol stripping program
18964 # Used to examine libraries when file_magic_cmd begins "file"
18965 MAGIC_CMD=$MAGIC_CMD
18967 # Used on cygwin: DLL creation program.
18970 # Used on cygwin: object dumper.
18973 # Used on cygwin: assembler.
18976 # The name of the directory that contains temporary libtool files.
18979 # How to create reloadable object files.
18980 reload_flag=$lt_reload_flag
18981 reload_cmds=$lt_reload_cmds
18983 # How to pass a linker flag through the compiler.
18984 wl=$lt_lt_prog_compiler_wl_GCJ
18986 # Object file suffix (normally "o").
18987 objext="$ac_objext"
18989 # Old archive suffix (normally "a").
18992 # Shared library suffix (normally ".so").
18993 shrext_cmds='$shrext_cmds'
18995 # Executable file suffix (normally "").
18998 # Additional compiler flags for building library objects.
18999 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19002 # What is the maximum length of a command?
19003 max_cmd_len=$lt_cv_sys_max_cmd_len
19005 # Does compiler simultaneously support -c and -o options?
19006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19008 # Must we lock files when doing compilation?
19009 need_locks=$lt_need_locks
19011 # Do we need the lib prefix for modules?
19012 need_lib_prefix=$need_lib_prefix
19014 # Do we need a version for libraries?
19015 need_version=$need_version
19017 # Whether dlopen is supported.
19018 dlopen_support=$enable_dlopen
19020 # Whether dlopen of programs is supported.
19021 dlopen_self=$enable_dlopen_self
19023 # Whether dlopen of statically linked programs is supported.
19024 dlopen_self_static=$enable_dlopen_self_static
19026 # Compiler flag to prevent dynamic linking.
19027 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19029 # Compiler flag to turn off builtin functions.
19030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19032 # Compiler flag to allow reflexive dlopens.
19033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19035 # Compiler flag to generate shared objects directly from archives.
19036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19038 # Compiler flag to generate thread-safe objects.
19039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19041 # Library versioning type.
19042 version_type=$version_type
19044 # Format of library name prefix.
19045 libname_spec=$lt_libname_spec
19047 # List of archive names. First name is the real one, the rest are links.
19048 # The last name is the one that the linker finds with -lNAME.
19049 library_names_spec=$lt_library_names_spec
19051 # The coded name of the library, if different from the real name.
19052 soname_spec=$lt_soname_spec
19054 # Commands used to build and install an old-style archive.
19056 old_archive_cmds=$lt_old_archive_cmds_GCJ
19057 old_postinstall_cmds=$lt_old_postinstall_cmds
19058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19060 # Create an old-style archive from a shared archive.
19061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19063 # Create a temporary old-style archive to link instead of a shared archive.
19064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19066 # Commands used to build and install a shared archive.
19067 archive_cmds=$lt_archive_cmds_GCJ
19068 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19069 postinstall_cmds=$lt_postinstall_cmds
19070 postuninstall_cmds=$lt_postuninstall_cmds
19072 # Commands used to build a loadable module (assumed same as above if empty)
19073 module_cmds=$lt_module_cmds_GCJ
19074 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19076 # Commands to strip libraries.
19077 old_striplib=$lt_old_striplib
19078 striplib=$lt_striplib
19080 # Dependencies to place before the objects being linked to create a
19082 predep_objects=$lt_predep_objects_GCJ
19084 # Dependencies to place after the objects being linked to create a
19086 postdep_objects=$lt_postdep_objects_GCJ
19088 # Dependencies to place before the objects being linked to create a
19090 predeps=$lt_predeps_GCJ
19092 # Dependencies to place after the objects being linked to create a
19094 postdeps=$lt_postdeps_GCJ
19096 # The library search path used internally by the compiler when linking
19097 # a shared library.
19098 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19100 # Method to check whether dependent libraries are shared objects.
19101 deplibs_check_method=$lt_deplibs_check_method
19103 # Command to use when deplibs_check_method == file_magic.
19104 file_magic_cmd=$lt_file_magic_cmd
19106 # Flag that allows shared libraries with undefined symbols to be built.
19107 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19109 # Flag that forces no undefined symbols.
19110 no_undefined_flag=$lt_no_undefined_flag_GCJ
19112 # Commands used to finish a libtool library installation in a directory.
19113 finish_cmds=$lt_finish_cmds
19115 # Same as above, but a single script fragment to be evaled but not shown.
19116 finish_eval=$lt_finish_eval
19118 # Take the output of nm and produce a listing of raw symbols and C names.
19119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19121 # Transform the output of nm in a proper C declaration
19122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19124 # Transform the output of nm in a C name address pair
19125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19127 # This is the shared library runtime path variable.
19128 runpath_var=$runpath_var
19130 # This is the shared library path variable.
19131 shlibpath_var=$shlibpath_var
19133 # Is shlibpath searched before the hard-coded library search path?
19134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19136 # How to hardcode a shared library path into an executable.
19137 hardcode_action=$hardcode_action_GCJ
19139 # Whether we should hardcode library paths into libraries.
19140 hardcode_into_libs=$hardcode_into_libs
19142 # Flag to hardcode \$libdir into a binary during linking.
19143 # This must work even if \$libdir does not exist.
19144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19146 # If ld is used when linking, flag to hardcode \$libdir into
19147 # a binary during linking. This must work even if \$libdir does
19149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19151 # Whether we need a single -rpath flag with a separated argument.
19152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19155 # resulting binary.
19156 hardcode_direct=$hardcode_direct_GCJ
19158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19159 # resulting binary.
19160 hardcode_minus_L=$hardcode_minus_L_GCJ
19162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19163 # the resulting binary.
19164 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19166 # Set to yes if building a shared library automatically hardcodes DIR into the library
19167 # and all subsequent libraries and executables linked against it.
19168 hardcode_automatic=$hardcode_automatic_GCJ
19170 # Variables whose values should be saved in libtool wrapper scripts and
19171 # restored at relink time.
19172 variables_saved_for_relink="$variables_saved_for_relink"
19174 # Whether libtool must link a program against all its dependency libraries.
19175 link_all_deplibs=$link_all_deplibs_GCJ
19177 # Compile-time system search path for libraries
19178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19180 # Run-time system search path for libraries
19181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19183 # Fix the shell variable \$srcfile for the compiler.
19184 fix_srcfile_path=$lt_fix_srcfile_path
19186 # Set to yes if exported symbols are required.
19187 always_export_symbols=$always_export_symbols_GCJ
19189 # The commands to list exported symbols.
19190 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19192 # The commands to extract the exported symbol list from a shared archive.
19193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19195 # Symbols that should not be listed in the preloaded symbols.
19196 exclude_expsyms=$lt_exclude_expsyms_GCJ
19198 # Symbols that must always be exported.
19199 include_expsyms=$lt_include_expsyms_GCJ
19201 # ### END LIBTOOL TAG CONFIG: $tagname
19207 # If there is no Makefile yet, we rely on a make rule to execute
19208 # `config.status --recheck' to rerun these tests and create the
19209 # libtool script then.
19210 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19211 if test -f "$ltmain_in"; then
19212 test -f Makefile
&& make "$ltmain"
19218 ac_cpp
='$CPP $CPPFLAGS'
19219 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19233 # Source file extension for RC test sources.
19236 # Object file extension for compiled RC test sources.
19240 # Code to be used in simple compile tests
19241 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19243 # Code to be used in simple link tests
19244 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19246 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19248 # If no C compiler was specified, use CC.
19251 # If no C compiler flags were specified, use CFLAGS.
19252 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19254 # Allow CC to be a program name with arguments.
19258 # save warnings/boilerplate of simple test code
19259 ac_outfile
=conftest.
$ac_objext
19260 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19261 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19262 _lt_compiler_boilerplate
=`cat conftest.err`
19265 ac_outfile
=conftest.
$ac_objext
19266 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19267 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19268 _lt_linker_boilerplate
=`cat conftest.err`
19272 # Allow CC to be a program name with arguments.
19277 for cc_temp
in $compiler""; do
19279 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19280 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19285 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19287 lt_cv_prog_compiler_c_o_RC
=yes
19289 # The else clause should only fire when bootstrapping the
19290 # libtool distribution, otherwise you forgot to ship ltmain.sh
19291 # with your package, and you will get complaints that there are
19292 # no rules to generate ltmain.sh.
19293 if test -f "$ltmain"; then
19294 # See if we are running on zsh, and set the options which allow our commands through
19295 # without removal of \ escapes.
19296 if test -n "${ZSH_VERSION+set}" ; then
19297 setopt NO_GLOB_SUBST
19299 # Now quote all the things that may contain metacharacters while being
19300 # careful not to overquote the AC_SUBSTed values. We take copies of the
19301 # variables and quote the copies for generation of the libtool script.
19302 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19304 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19305 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19306 deplibs_check_method reload_flag reload_cmds need_locks \
19307 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19308 lt_cv_sys_global_symbol_to_c_name_address \
19309 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19310 old_postinstall_cmds old_postuninstall_cmds \
19314 lt_prog_compiler_wl_RC \
19315 lt_prog_compiler_pic_RC \
19316 lt_prog_compiler_static_RC \
19317 lt_prog_compiler_no_builtin_flag_RC \
19318 export_dynamic_flag_spec_RC \
19319 thread_safe_flag_spec_RC \
19320 whole_archive_flag_spec_RC \
19321 enable_shared_with_static_runtimes_RC \
19322 old_archive_cmds_RC \
19323 old_archive_from_new_cmds_RC \
19324 predep_objects_RC \
19325 postdep_objects_RC \
19328 compiler_lib_search_path_RC \
19330 archive_expsym_cmds_RC \
19331 postinstall_cmds_RC \
19332 postuninstall_cmds_RC \
19333 old_archive_from_expsyms_cmds_RC \
19334 allow_undefined_flag_RC \
19335 no_undefined_flag_RC \
19336 export_symbols_cmds_RC \
19337 hardcode_libdir_flag_spec_RC \
19338 hardcode_libdir_flag_spec_ld_RC \
19339 hardcode_libdir_separator_RC \
19340 hardcode_automatic_RC \
19342 module_expsym_cmds_RC \
19343 lt_cv_prog_compiler_c_o_RC \
19344 fix_srcfile_path_RC \
19345 exclude_expsyms_RC \
19346 include_expsyms_RC
; do
19349 old_archive_cmds_RC | \
19350 old_archive_from_new_cmds_RC | \
19351 archive_cmds_RC | \
19352 archive_expsym_cmds_RC | \
19354 module_expsym_cmds_RC | \
19355 old_archive_from_expsyms_cmds_RC | \
19356 export_symbols_cmds_RC | \
19357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19358 postinstall_cmds | postuninstall_cmds | \
19359 old_postinstall_cmds | old_postuninstall_cmds | \
19360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19361 # Double-quote double-evaled strings.
19362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19371 *'\$0 --fallback-echo"')
19372 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19378 cat <<__EOF__ >> "$cfgfile"
19379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19383 # Shell to use when invoking shell scripts.
19386 # Whether or not to build shared libraries.
19387 build_libtool_libs=$enable_shared
19389 # Whether or not to build static libraries.
19390 build_old_libs=$enable_static
19392 # Whether or not to add -lc for building shared libraries.
19393 build_libtool_need_lc=$archive_cmds_need_lc_RC
19395 # Whether or not to disallow shared libs when runtime libs are static
19396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19398 # Whether or not to optimize for fast installation.
19399 fast_install=$enable_fast_install
19402 host_alias=$host_alias
19406 # The build system.
19407 build_alias=$build_alias
19411 # An echo program that does not interpret backslashes.
19416 AR_FLAGS=$lt_AR_FLAGS
19421 # LTCC compiler flags.
19422 LTCFLAGS=$lt_LTCFLAGS
19424 # A language-specific compiler.
19427 # Is the compiler the GNU C compiler?
19433 # The linker used to build libraries.
19436 # Whether we need hard or soft links.
19439 # A BSD-compatible nm program.
19442 # A symbol stripping program
19445 # Used to examine libraries when file_magic_cmd begins "file"
19446 MAGIC_CMD=$MAGIC_CMD
19448 # Used on cygwin: DLL creation program.
19451 # Used on cygwin: object dumper.
19454 # Used on cygwin: assembler.
19457 # The name of the directory that contains temporary libtool files.
19460 # How to create reloadable object files.
19461 reload_flag=$lt_reload_flag
19462 reload_cmds=$lt_reload_cmds
19464 # How to pass a linker flag through the compiler.
19465 wl=$lt_lt_prog_compiler_wl_RC
19467 # Object file suffix (normally "o").
19468 objext="$ac_objext"
19470 # Old archive suffix (normally "a").
19473 # Shared library suffix (normally ".so").
19474 shrext_cmds='$shrext_cmds'
19476 # Executable file suffix (normally "").
19479 # Additional compiler flags for building library objects.
19480 pic_flag=$lt_lt_prog_compiler_pic_RC
19483 # What is the maximum length of a command?
19484 max_cmd_len=$lt_cv_sys_max_cmd_len
19486 # Does compiler simultaneously support -c and -o options?
19487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19489 # Must we lock files when doing compilation?
19490 need_locks=$lt_need_locks
19492 # Do we need the lib prefix for modules?
19493 need_lib_prefix=$need_lib_prefix
19495 # Do we need a version for libraries?
19496 need_version=$need_version
19498 # Whether dlopen is supported.
19499 dlopen_support=$enable_dlopen
19501 # Whether dlopen of programs is supported.
19502 dlopen_self=$enable_dlopen_self
19504 # Whether dlopen of statically linked programs is supported.
19505 dlopen_self_static=$enable_dlopen_self_static
19507 # Compiler flag to prevent dynamic linking.
19508 link_static_flag=$lt_lt_prog_compiler_static_RC
19510 # Compiler flag to turn off builtin functions.
19511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19513 # Compiler flag to allow reflexive dlopens.
19514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19516 # Compiler flag to generate shared objects directly from archives.
19517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19519 # Compiler flag to generate thread-safe objects.
19520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19522 # Library versioning type.
19523 version_type=$version_type
19525 # Format of library name prefix.
19526 libname_spec=$lt_libname_spec
19528 # List of archive names. First name is the real one, the rest are links.
19529 # The last name is the one that the linker finds with -lNAME.
19530 library_names_spec=$lt_library_names_spec
19532 # The coded name of the library, if different from the real name.
19533 soname_spec=$lt_soname_spec
19535 # Commands used to build and install an old-style archive.
19537 old_archive_cmds=$lt_old_archive_cmds_RC
19538 old_postinstall_cmds=$lt_old_postinstall_cmds
19539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19541 # Create an old-style archive from a shared archive.
19542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19544 # Create a temporary old-style archive to link instead of a shared archive.
19545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19547 # Commands used to build and install a shared archive.
19548 archive_cmds=$lt_archive_cmds_RC
19549 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19550 postinstall_cmds=$lt_postinstall_cmds
19551 postuninstall_cmds=$lt_postuninstall_cmds
19553 # Commands used to build a loadable module (assumed same as above if empty)
19554 module_cmds=$lt_module_cmds_RC
19555 module_expsym_cmds=$lt_module_expsym_cmds_RC
19557 # Commands to strip libraries.
19558 old_striplib=$lt_old_striplib
19559 striplib=$lt_striplib
19561 # Dependencies to place before the objects being linked to create a
19563 predep_objects=$lt_predep_objects_RC
19565 # Dependencies to place after the objects being linked to create a
19567 postdep_objects=$lt_postdep_objects_RC
19569 # Dependencies to place before the objects being linked to create a
19571 predeps=$lt_predeps_RC
19573 # Dependencies to place after the objects being linked to create a
19575 postdeps=$lt_postdeps_RC
19577 # The library search path used internally by the compiler when linking
19578 # a shared library.
19579 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19581 # Method to check whether dependent libraries are shared objects.
19582 deplibs_check_method=$lt_deplibs_check_method
19584 # Command to use when deplibs_check_method == file_magic.
19585 file_magic_cmd=$lt_file_magic_cmd
19587 # Flag that allows shared libraries with undefined symbols to be built.
19588 allow_undefined_flag=$lt_allow_undefined_flag_RC
19590 # Flag that forces no undefined symbols.
19591 no_undefined_flag=$lt_no_undefined_flag_RC
19593 # Commands used to finish a libtool library installation in a directory.
19594 finish_cmds=$lt_finish_cmds
19596 # Same as above, but a single script fragment to be evaled but not shown.
19597 finish_eval=$lt_finish_eval
19599 # Take the output of nm and produce a listing of raw symbols and C names.
19600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19602 # Transform the output of nm in a proper C declaration
19603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19605 # Transform the output of nm in a C name address pair
19606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19608 # This is the shared library runtime path variable.
19609 runpath_var=$runpath_var
19611 # This is the shared library path variable.
19612 shlibpath_var=$shlibpath_var
19614 # Is shlibpath searched before the hard-coded library search path?
19615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19617 # How to hardcode a shared library path into an executable.
19618 hardcode_action=$hardcode_action_RC
19620 # Whether we should hardcode library paths into libraries.
19621 hardcode_into_libs=$hardcode_into_libs
19623 # Flag to hardcode \$libdir into a binary during linking.
19624 # This must work even if \$libdir does not exist.
19625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19627 # If ld is used when linking, flag to hardcode \$libdir into
19628 # a binary during linking. This must work even if \$libdir does
19630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19632 # Whether we need a single -rpath flag with a separated argument.
19633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19636 # resulting binary.
19637 hardcode_direct=$hardcode_direct_RC
19639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19640 # resulting binary.
19641 hardcode_minus_L=$hardcode_minus_L_RC
19643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19644 # the resulting binary.
19645 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19647 # Set to yes if building a shared library automatically hardcodes DIR into the library
19648 # and all subsequent libraries and executables linked against it.
19649 hardcode_automatic=$hardcode_automatic_RC
19651 # Variables whose values should be saved in libtool wrapper scripts and
19652 # restored at relink time.
19653 variables_saved_for_relink="$variables_saved_for_relink"
19655 # Whether libtool must link a program against all its dependency libraries.
19656 link_all_deplibs=$link_all_deplibs_RC
19658 # Compile-time system search path for libraries
19659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19661 # Run-time system search path for libraries
19662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19664 # Fix the shell variable \$srcfile for the compiler.
19665 fix_srcfile_path=$lt_fix_srcfile_path
19667 # Set to yes if exported symbols are required.
19668 always_export_symbols=$always_export_symbols_RC
19670 # The commands to list exported symbols.
19671 export_symbols_cmds=$lt_export_symbols_cmds_RC
19673 # The commands to extract the exported symbol list from a shared archive.
19674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19676 # Symbols that should not be listed in the preloaded symbols.
19677 exclude_expsyms=$lt_exclude_expsyms_RC
19679 # Symbols that must always be exported.
19680 include_expsyms=$lt_include_expsyms_RC
19682 # ### END LIBTOOL TAG CONFIG: $tagname
19688 # If there is no Makefile yet, we rely on a make rule to execute
19689 # `config.status --recheck' to rerun these tests and create the
19690 # libtool script then.
19691 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19692 if test -f "$ltmain_in"; then
19693 test -f Makefile
&& make "$ltmain"
19699 ac_cpp
='$CPP $CPPFLAGS'
19700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19709 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19710 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19711 { (exit 1); exit 1; }; }
19715 # Append the new tag name to the list of available tags.
19716 if test -n "$tagname" ; then
19717 available_tags
="$available_tags $tagname"
19723 # Now substitute the updated list of available tags.
19724 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19725 mv "${ofile}T" "$ofile"
19729 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19730 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19731 { (exit 1); exit 1; }; }
19737 # This can be used to rebuild libtool when needed
19738 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19740 # Always use our own libtool.
19741 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19743 # Prevent multiple expansion
19766 ac_cpp
='$CPP $CPPFLAGS'
19767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19770 if test -n "$ac_tool_prefix"; then
19771 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19772 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
19773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19775 if test "${ac_cv_prog_CC+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 if test -n "$CC"; then
19779 ac_cv_prog_CC
="$CC" # Let the user override the test.
19781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19782 for as_dir
in $PATH
19785 test -z "$as_dir" && as_dir
=.
19786 for ac_exec_ext
in '' $ac_executable_extensions; do
19787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19788 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
19789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19799 if test -n "$CC"; then
19800 { echo "$as_me:$LINENO: result: $CC" >&5
19801 echo "${ECHO_T}$CC" >&6; }
19803 { echo "$as_me:$LINENO: result: no" >&5
19804 echo "${ECHO_T}no" >&6; }
19809 if test -z "$ac_cv_prog_CC"; then
19811 # Extract the first word of "gcc", so it can be a program name with args.
19812 set dummy gcc
; ac_word
=$2
19813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 if test -n "$ac_ct_CC"; then
19819 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
19821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19822 for as_dir
in $PATH
19825 test -z "$as_dir" && as_dir
=.
19826 for ac_exec_ext
in '' $ac_executable_extensions; do
19827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19828 ac_cv_prog_ac_ct_CC
="gcc"
19829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19838 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
19839 if test -n "$ac_ct_CC"; then
19840 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19841 echo "${ECHO_T}$ac_ct_CC" >&6; }
19843 { echo "$as_me:$LINENO: result: no" >&5
19844 echo "${ECHO_T}no" >&6; }
19847 if test "x$ac_ct_CC" = x
; then
19850 case $cross_compiling:$ac_tool_warned in
19852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19853 whose name does not start with the host triplet. If you think this
19854 configuration is useful to you, please write to autoconf@gnu.org." >&5
19855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19856 whose name does not start with the host triplet. If you think this
19857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19858 ac_tool_warned
=yes ;;
19863 CC
="$ac_cv_prog_CC"
19866 if test -z "$CC"; then
19867 if test -n "$ac_tool_prefix"; then
19868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19869 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
19870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19872 if test "${ac_cv_prog_CC+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 if test -n "$CC"; then
19876 ac_cv_prog_CC
="$CC" # Let the user override the test.
19878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19879 for as_dir
in $PATH
19882 test -z "$as_dir" && as_dir
=.
19883 for ac_exec_ext
in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_prog_CC
="${ac_tool_prefix}cc"
19886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19896 if test -n "$CC"; then
19897 { echo "$as_me:$LINENO: result: $CC" >&5
19898 echo "${ECHO_T}$CC" >&6; }
19900 { echo "$as_me:$LINENO: result: no" >&5
19901 echo "${ECHO_T}no" >&6; }
19907 if test -z "$CC"; then
19908 # Extract the first word of "cc", so it can be a program name with args.
19909 set dummy cc
; ac_word
=$2
19910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19912 if test "${ac_cv_prog_CC+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 if test -n "$CC"; then
19916 ac_cv_prog_CC
="$CC" # Let the user override the test.
19918 ac_prog_rejected
=no
19919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19920 for as_dir
in $PATH
19923 test -z "$as_dir" && as_dir
=.
19924 for ac_exec_ext
in '' $ac_executable_extensions; do
19925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19927 ac_prog_rejected
=yes
19931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19938 if test $ac_prog_rejected = yes; then
19939 # We found a bogon in the path, so make sure we never use it.
19940 set dummy
$ac_cv_prog_CC
19942 if test $# != 0; then
19943 # We chose a different compiler from the bogus one.
19944 # However, it has the same basename, so the bogon will be chosen
19945 # first if we set CC to just the basename; use the full file name.
19947 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
19953 if test -n "$CC"; then
19954 { echo "$as_me:$LINENO: result: $CC" >&5
19955 echo "${ECHO_T}$CC" >&6; }
19957 { echo "$as_me:$LINENO: result: no" >&5
19958 echo "${ECHO_T}no" >&6; }
19963 if test -z "$CC"; then
19964 if test -n "$ac_tool_prefix"; then
19965 for ac_prog
in cl.exe
19967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19968 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
19969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19971 if test "${ac_cv_prog_CC+set}" = set; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 if test -n "$CC"; then
19975 ac_cv_prog_CC
="$CC" # Let the user override the test.
19977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19978 for as_dir
in $PATH
19981 test -z "$as_dir" && as_dir
=.
19982 for ac_exec_ext
in '' $ac_executable_extensions; do
19983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19984 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
19985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19995 if test -n "$CC"; then
19996 { echo "$as_me:$LINENO: result: $CC" >&5
19997 echo "${ECHO_T}$CC" >&6; }
19999 { echo "$as_me:$LINENO: result: no" >&5
20000 echo "${ECHO_T}no" >&6; }
20004 test -n "$CC" && break
20007 if test -z "$CC"; then
20009 for ac_prog
in cl.exe
20011 # Extract the first word of "$ac_prog", so it can be a program name with args.
20012 set dummy
$ac_prog; ac_word
=$2
20013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 if test -n "$ac_ct_CC"; then
20019 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
20021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20022 for as_dir
in $PATH
20025 test -z "$as_dir" && as_dir
=.
20026 for ac_exec_ext
in '' $ac_executable_extensions; do
20027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20028 ac_cv_prog_ac_ct_CC
="$ac_prog"
20029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20038 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
20039 if test -n "$ac_ct_CC"; then
20040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20041 echo "${ECHO_T}$ac_ct_CC" >&6; }
20043 { echo "$as_me:$LINENO: result: no" >&5
20044 echo "${ECHO_T}no" >&6; }
20048 test -n "$ac_ct_CC" && break
20051 if test "x$ac_ct_CC" = x
; then
20054 case $cross_compiling:$ac_tool_warned in
20056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20057 whose name does not start with the host triplet. If you think this
20058 configuration is useful to you, please write to autoconf@gnu.org." >&5
20059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20060 whose name does not start with the host triplet. If you think this
20061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20062 ac_tool_warned
=yes ;;
20071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20072 See \`config.log' for more details." >&5
20073 echo "$as_me: error: no acceptable C compiler found in \$PATH
20074 See \`config.log' for more details." >&2;}
20075 { (exit 1); exit 1; }; }
20077 # Provide some information about the compiler.
20078 echo "$as_me:$LINENO: checking for C compiler version" >&5
20079 ac_compiler
=`set X $ac_compile; echo $2`
20080 { (ac_try
="$ac_compiler --version >&5"
20081 case "(($ac_try" in
20082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_compiler --version >&5") 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }
20090 { (ac_try="$ac_compiler -v >&5"
20091 case "(($ac_try" in
20092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20093 *) ac_try_echo
=$ac_try;;
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_compiler -v >&5") 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }
20100 { (ac_try
="$ac_compiler -V >&5"
20101 case "(($ac_try" in
20102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_compiler -V >&5") 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }
20111 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20138 *) ac_try_echo
=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20143 grep -v '^ *+' conftest.er1
>conftest.err
20145 cat conftest.err
>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.
$ac_objext; then
20151 ac_compiler_gnu
=yes
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.
$ac_ext >&5
20159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20160 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
20163 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20164 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20165 GCC
=`test $ac_compiler_gnu = yes && echo yes`
20166 ac_test_CFLAGS
=${CFLAGS+set}
20167 ac_save_CFLAGS
=$CFLAGS
20168 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20170 if test "${ac_cv_prog_cc_g+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 ac_save_c_werror_flag
=$ac_c_werror_flag
20174 ac_c_werror_flag
=yes
20177 cat >conftest.
$ac_ext <<_ACEOF
20180 cat confdefs.h
>>conftest.
$ac_ext
20181 cat >>conftest.
$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20192 rm -f conftest.
$ac_objext
20193 if { (ac_try
="$ac_compile"
20194 case "(($ac_try" in
20195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_compile") 2>conftest.er1
20201 grep -v '^ *+' conftest.er1 >conftest.err
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } && {
20206 test -z "$ac_c_werror_flag" ||
20207 test ! -s conftest.err
20208 } && test -s conftest.$ac_objext; then
20209 ac_cv_prog_cc_g=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20230 rm -f conftest.$ac_objext
20231 if { (ac_try="$ac_compile"
20232 case "(($ac_try" in
20233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20234 *) ac_try_echo
=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_compile") 2>conftest.er1
20239 grep -v '^ *+' conftest.er1
>conftest.err
20241 cat conftest.err
>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } && {
20244 test -z "$ac_c_werror_flag" ||
20245 test ! -s conftest.err
20246 } && test -s conftest.
$ac_objext; then
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.
$ac_ext >&5
20252 ac_c_werror_flag
=$ac_save_c_werror_flag
20254 cat >conftest.
$ac_ext <<_ACEOF
20257 cat confdefs.h
>>conftest.
$ac_ext
20258 cat >>conftest.
$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20269 rm -f conftest.
$ac_objext
20270 if { (ac_try
="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_compile") 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } && {
20283 test -z "$ac_c_werror_flag" ||
20284 test ! -s conftest.err
20285 } && test -s conftest.$ac_objext; then
20286 ac_cv_prog_cc_g=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 ac_c_werror_flag=$ac_save_c_werror_flag
20303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20305 if test "$ac_test_CFLAGS" = set; then
20306 CFLAGS=$ac_save_CFLAGS
20307 elif test $ac_cv_prog_cc_g = yes; then
20308 if test "$GCC" = yes; then
20314 if test "$GCC" = yes; then
20320 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20321 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20322 if test "${ac_cv_prog_cc_c89+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 ac_cv_prog_cc_c89=no
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333 #include <stdarg.h>
20335 #include <sys/types.h>
20336 #include <sys/stat.h>
20337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20338 struct buf { int x; };
20339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20340 static char *e (p, i)
20346 static char *f (char * (*g) (char **, int), char **p, ...)
20351 s = g (p, va_arg (v,int));
20356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20357 function prototypes and stuff, but not '\xHH' hex character constants.
20358 These don't provoke an error unfortunately, instead are silently treated
20359 as 'x'. The following induces an error, until -std is added to get
20360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20361 array size at least. It's necessary to write '\x00'==0 to get something
20362 that's true only with -std. */
20363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20366 inside strings and character constants. */
20368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20370 int test (int i, double x);
20371 struct s1 {int (*f) (int a);};
20372 struct s2 {int (*f) (double a);};
20373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20387 CC="$ac_save_CC $ac_arg"
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20392 *) ac_try_echo
=$ac_try;;
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1
>conftest.err
20399 cat conftest.err
>&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.
$ac_objext; then
20405 ac_cv_prog_cc_c89
=$ac_arg
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.
$ac_ext >&5
20413 rm -f core conftest.err conftest.
$ac_objext
20414 test "x$ac_cv_prog_cc_c89" != "xno" && break
20416 rm -f conftest.
$ac_ext
20421 case "x$ac_cv_prog_cc_c89" in
20423 { echo "$as_me:$LINENO: result: none needed" >&5
20424 echo "${ECHO_T}none needed" >&6; } ;;
20426 { echo "$as_me:$LINENO: result: unsupported" >&5
20427 echo "${ECHO_T}unsupported" >&6; } ;;
20429 CC
="$CC $ac_cv_prog_cc_c89"
20430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20431 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20436 ac_cpp
='$CPP $CPPFLAGS'
20437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20441 depcc
="$CC" am_compiler_list
=
20443 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20444 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20445 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20449 # We make a subdir and do the tests there. Otherwise we can end up
20450 # making bogus files that we don't know about and never remove. For
20451 # instance it was reported that on HP-UX the gcc test will end up
20452 # making a dummy file named `D' -- because `-MD' means `put the output
20455 # Copy depcomp to subdir because otherwise we won't find it if we're
20456 # using a relative directory.
20457 cp "$am_depcomp" conftest.dir
20459 # We will build objects and dependencies in a subdirectory because
20460 # it helps to detect inapplicable dependency modes. For instance
20461 # both Tru64's cc and ICC support -MD to output dependencies as a
20462 # side effect of compilation, but ICC will put the dependencies in
20463 # the current directory while Tru64 will put them in the object
20467 am_cv_CC_dependencies_compiler_type
=none
20468 if test "$am_compiler_list" = ""; then
20469 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20471 for depmode
in $am_compiler_list; do
20472 # Setup a source with many dependencies, because some compilers
20473 # like to wrap large dependency lists on column 80 (with \), and
20474 # we should not choose a depcomp mode which is confused by this.
20476 # We need to recreate these files for each test, as the compiler may
20477 # overwrite some of them when testing with obscure command lines.
20478 # This happens at least with the AIX C compiler.
20480 for i
in 1 2 3 4 5 6; do
20481 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
20482 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20483 # Solaris 8's {/usr,}/bin/sh.
20484 touch sub
/conftst
$i.h
20486 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20490 # after this tag, mechanisms are not by side-effect, so they'll
20491 # only be used when explicitly requested
20492 if test "x$enable_dependency_tracking" = xyes
; then
20500 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20501 # mode. It turns out that the SunPro C++ compiler does not properly
20502 # handle `-M -o', and we need to detect this.
20503 if depmode
=$depmode \
20504 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
20505 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
20506 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
20507 >/dev
/null
2>conftest.err
&&
20508 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
20509 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
20510 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
20511 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
20512 # icc doesn't choke on unknown options, it will just issue warnings
20513 # or remarks (even with -Werror). So we grep stderr for any message
20514 # that says an option was ignored or not supported.
20515 # When given -MP, icc 7.0 and 7.1 complain thusly:
20516 # icc: Command line warning: ignoring option '-M'; no argument required
20517 # The diagnosis changed in icc 8.0:
20518 # icc: Command line remark: option '-MP' not supported
20519 if (grep 'ignoring option' conftest.err ||
20520 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
20521 am_cv_CC_dependencies_compiler_type
=$depmode
20528 rm -rf conftest.dir
20530 am_cv_CC_dependencies_compiler_type
=none
20534 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20535 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20536 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
20539 test "x$enable_dependency_tracking" != xno \
20540 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
20541 am__fastdepCC_TRUE
=
20542 am__fastdepCC_FALSE
='#'
20544 am__fastdepCC_TRUE
='#'
20545 am__fastdepCC_FALSE
=
20549 # By default we simply use the C compiler to build assembly code.
20551 test "${CCAS+set}" = set || CCAS
=$CC
20552 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
20556 depcc
="$CCAS" am_compiler_list
=
20558 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20559 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20560 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20564 # We make a subdir and do the tests there. Otherwise we can end up
20565 # making bogus files that we don't know about and never remove. For
20566 # instance it was reported that on HP-UX the gcc test will end up
20567 # making a dummy file named `D' -- because `-MD' means `put the output
20570 # Copy depcomp to subdir because otherwise we won't find it if we're
20571 # using a relative directory.
20572 cp "$am_depcomp" conftest.dir
20574 # We will build objects and dependencies in a subdirectory because
20575 # it helps to detect inapplicable dependency modes. For instance
20576 # both Tru64's cc and ICC support -MD to output dependencies as a
20577 # side effect of compilation, but ICC will put the dependencies in
20578 # the current directory while Tru64 will put them in the object
20582 am_cv_CCAS_dependencies_compiler_type
=none
20583 if test "$am_compiler_list" = ""; then
20584 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20586 for depmode
in $am_compiler_list; do
20587 # Setup a source with many dependencies, because some compilers
20588 # like to wrap large dependency lists on column 80 (with \), and
20589 # we should not choose a depcomp mode which is confused by this.
20591 # We need to recreate these files for each test, as the compiler may
20592 # overwrite some of them when testing with obscure command lines.
20593 # This happens at least with the AIX C compiler.
20595 for i
in 1 2 3 4 5 6; do
20596 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
20597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20598 # Solaris 8's {/usr,}/bin/sh.
20599 touch sub
/conftst
$i.h
20601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20605 # after this tag, mechanisms are not by side-effect, so they'll
20606 # only be used when explicitly requested
20607 if test "x$enable_dependency_tracking" = xyes
; then
20615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20616 # mode. It turns out that the SunPro C++ compiler does not properly
20617 # handle `-M -o', and we need to detect this.
20618 if depmode
=$depmode \
20619 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
20620 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
20621 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
20622 >/dev
/null
2>conftest.err
&&
20623 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
20624 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
20625 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
20626 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
20627 # icc doesn't choke on unknown options, it will just issue warnings
20628 # or remarks (even with -Werror). So we grep stderr for any message
20629 # that says an option was ignored or not supported.
20630 # When given -MP, icc 7.0 and 7.1 complain thusly:
20631 # icc: Command line warning: ignoring option '-M'; no argument required
20632 # The diagnosis changed in icc 8.0:
20633 # icc: Command line remark: option '-MP' not supported
20634 if (grep 'ignoring option' conftest.err ||
20635 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
20636 am_cv_CCAS_dependencies_compiler_type
=$depmode
20643 rm -rf conftest.dir
20645 am_cv_CCAS_dependencies_compiler_type
=none
20649 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
20650 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
20651 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
20654 test "x$enable_dependency_tracking" != xno \
20655 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
20656 am__fastdepCCAS_TRUE
=
20657 am__fastdepCCAS_FALSE
='#'
20659 am__fastdepCCAS_TRUE
='#'
20660 am__fastdepCCAS_FALSE
=
20665 for ac_prog
in ecj jikes
"gcj -C" javac
20667 # Extract the first word of "$ac_prog", so it can be a program name with args.
20668 set dummy
$ac_prog; ac_word
=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_prog_JAVAC+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 if test -n "$JAVAC"; then
20675 ac_cv_prog_JAVAC
="$JAVAC" # Let the user override the test.
20677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20678 for as_dir
in $PATH
20681 test -z "$as_dir" && as_dir
=.
20682 for ac_exec_ext
in '' $ac_executable_extensions; do
20683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20684 ac_cv_prog_JAVAC
="$ac_prog"
20685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20694 JAVAC
=$ac_cv_prog_JAVAC
20695 if test -n "$JAVAC"; then
20696 { echo "$as_me:$LINENO: result: $JAVAC" >&5
20697 echo "${ECHO_T}$JAVAC" >&6; }
20699 { echo "$as_me:$LINENO: result: no" >&5
20700 echo "${ECHO_T}no" >&6; }
20704 test -n "$JAVAC" && break
20710 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
20711 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
20712 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 ac_check_lib_save_LIBS
=$LIBS
20716 LIBS
="-lpthread $LIBS"
20717 cat >conftest.
$ac_ext <<_ACEOF
20720 cat confdefs.h
>>conftest.
$ac_ext
20721 cat >>conftest.
$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20730 char pthread_self ();
20734 return pthread_self ();
20739 rm -f conftest.
$ac_objext conftest
$ac_exeext
20740 if { (ac_try
="$ac_link"
20741 case "(($ac_try" in
20742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_link") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest$ac_exeext &&
20756 $as_test_x conftest$ac_exeext; then
20757 ac_cv_lib_pthread_pthread_self=yes
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_cv_lib_pthread_pthread_self=no
20765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20766 conftest$ac_exeext conftest.$ac_ext
20767 LIBS=$ac_check_lib_save_LIBS
20769 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
20770 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
20771 if test $ac_cv_lib_pthread_pthread_self = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define HAVE_LIBPTHREAD 1
20776 LIBS="-lpthread $LIBS"
20779 { { echo "$as_me:$LINENO: error: libpthread is missing" >&5
20780 echo "$as_me: error: libpthread is missing" >&2;}
20781 { (exit 1); exit 1; }; }
20785 { echo "$as_me:$LINENO: checking for fmod in -lm" >&5
20786 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6; }
20787 if test "${ac_cv_lib_m_fmod+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 ac_check_lib_save_LIBS=$LIBS
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20818 *) ac_try_echo
=$ac_try;;
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_link") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1
>conftest.err
20825 cat conftest.err
>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest
$ac_exeext &&
20831 $as_test_x conftest
$ac_exeext; then
20832 ac_cv_lib_m_fmod
=yes
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.
$ac_ext >&5
20837 ac_cv_lib_m_fmod
=no
20840 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20841 conftest
$ac_exeext conftest.
$ac_ext
20842 LIBS
=$ac_check_lib_save_LIBS
20844 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
20845 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6; }
20846 if test $ac_cv_lib_m_fmod = yes; then
20847 cat >>confdefs.h
<<_ACEOF
20848 #define HAVE_LIBM 1
20854 { { echo "$as_me:$LINENO: error: libm is missing" >&5
20855 echo "$as_me: error: libm is missing" >&2;}
20856 { (exit 1); exit 1; }; }
20860 if test "$libdl_needed" != no
; then
20862 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20863 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20864 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20867 ac_check_lib_save_LIBS
=$LIBS
20869 cat >conftest.
$ac_ext <<_ACEOF
20872 cat confdefs.h
>>conftest.
$ac_ext
20873 cat >>conftest.
$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 /* Override any GCC internal prototype to avoid an error.
20877 Use char because int might match the return type of a GCC
20878 builtin and then its argument prototype would still apply. */
20891 rm -f conftest.
$ac_objext conftest
$ac_exeext
20892 if { (ac_try
="$ac_link"
20893 case "(($ac_try" in
20894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_link") 2>conftest.er1
20900 grep -v '^ *+' conftest.er1 >conftest.err
20902 cat conftest.err >&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && {
20905 test -z "$ac_c_werror_flag" ||
20906 test ! -s conftest.err
20907 } && test -s conftest$ac_exeext &&
20908 $as_test_x conftest$ac_exeext; then
20909 ac_cv_lib_dl_dlopen=yes
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_cv_lib_dl_dlopen=no
20917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20923 if test $ac_cv_lib_dl_dlopen = yes; then
20924 cat >>confdefs.h <<_ACEOF
20925 #define HAVE_LIBDL 1
20931 { { echo "$as_me:$LINENO: error: libdl is missing" >&5
20932 echo "$as_me: error: libdl is missing" >&2;}
20933 { (exit 1); exit 1; }; }
20939 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
20940 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
20941 if test "${ac_cv_lib_z_inflate+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 ac_check_lib_save_LIBS=$LIBS
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 /* Override any GCC internal prototype to avoid an error.
20954 Use char because int might match the return type of a GCC
20955 builtin and then its argument prototype would still apply. */
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (ac_try="$ac_link"
20970 case "(($ac_try" in
20971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20972 *) ac_try_echo
=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_link") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1
>conftest.err
20979 cat conftest.err
>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest
$ac_exeext &&
20985 $as_test_x conftest
$ac_exeext; then
20986 ac_cv_lib_z_inflate
=yes
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.
$ac_ext >&5
20991 ac_cv_lib_z_inflate
=no
20994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20995 conftest
$ac_exeext conftest.
$ac_ext
20996 LIBS
=$ac_check_lib_save_LIBS
20998 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
20999 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
21000 if test $ac_cv_lib_z_inflate = yes; then
21001 cat >>confdefs.h
<<_ACEOF
21002 #define HAVE_LIBZ 1
21008 if test "$enable_zip" != no
; then
21009 { echo "$as_me:$LINENO: WARNING: cannot find libz -- zip/jar support in bootclasspath is disabled" >&5
21010 echo "$as_me: WARNING: cannot find libz -- zip/jar support in bootclasspath is disabled" >&2;}
21017 { echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
21018 echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
21019 if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 ac_check_lib_save_LIBS
=$LIBS
21024 cat >conftest.
$ac_ext <<_ACEOF
21027 cat confdefs.h
>>conftest.
$ac_ext
21028 cat >>conftest.
$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21041 return ffi_call ();
21046 rm -f conftest.
$ac_objext conftest
$ac_exeext
21047 if { (ac_try
="$ac_link"
21048 case "(($ac_try" in
21049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_link") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest$ac_exeext &&
21063 $as_test_x conftest$ac_exeext; then
21064 ac_cv_lib_ffi_ffi_call=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_lib_ffi_ffi_call=no
21072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21073 conftest$ac_exeext conftest.$ac_ext
21074 LIBS=$ac_check_lib_save_LIBS
21076 { echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
21077 echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
21078 if test $ac_cv_lib_ffi_ffi_call = yes; then
21079 cat >>confdefs.h <<_ACEOF
21080 #define HAVE_LIBFFI 1
21086 if test "$enable_ffi" != no; then
21087 { { echo "$as_me:$LINENO: error: cannot find libffi" >&5
21088 echo "$as_me: error: cannot find libffi" >&2;}
21089 { (exit 1); exit 1; }; }
21094 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21096 if test "${ac_cv_header_stdc+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 #include <stdlib.h>
21106 #include <stdarg.h>
21107 #include <string.h>
21118 rm -f conftest.$ac_objext
21119 if { (ac_try="$ac_compile"
21120 case "(($ac_try" in
21121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21122 *) ac_try_echo
=$ac_try;;
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21127 grep -v '^ *+' conftest.er1
>conftest.err
21129 cat conftest.err
>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.
$ac_objext; then
21135 ac_cv_header_stdc
=yes
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.
$ac_ext >&5
21140 ac_cv_header_stdc
=no
21143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21145 if test $ac_cv_header_stdc = yes; then
21146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21147 cat >conftest.
$ac_ext <<_ACEOF
21150 cat confdefs.h
>>conftest.
$ac_ext
21151 cat >>conftest.
$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21153 #include <string.h>
21156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21157 $EGREP "memchr" >/dev
/null
2>&1; then
21160 ac_cv_header_stdc
=no
21166 if test $ac_cv_header_stdc = yes; then
21167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21168 cat >conftest.
$ac_ext <<_ACEOF
21171 cat confdefs.h
>>conftest.
$ac_ext
21172 cat >>conftest.
$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 #include <stdlib.h>
21177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21178 $EGREP "free" >/dev
/null
2>&1; then
21181 ac_cv_header_stdc
=no
21187 if test $ac_cv_header_stdc = yes; then
21188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21189 if test "$cross_compiling" = yes; then
21192 cat >conftest.
$ac_ext <<_ACEOF
21195 cat confdefs.h
>>conftest.
$ac_ext
21196 cat >>conftest.
$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21199 #include <stdlib.h>
21200 #if ((' ' & 0x0FF) == 0x020)
21201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21204 # define ISLOWER(c) \
21205 (('a' <= (c) && (c) <= 'i') \
21206 || ('j' <= (c) && (c) <= 'r') \
21207 || ('s' <= (c) && (c) <= 'z'))
21208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21216 for (i = 0; i < 256; i++)
21217 if (XOR (islower (i), ISLOWER (i))
21218 || toupper (i) != TOUPPER (i))
21223 rm -f conftest
$ac_exeext
21224 if { (ac_try
="$ac_link"
21225 case "(($ac_try" in
21226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21236 *) ac_try_echo
=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21245 echo "$as_me: program exited with status $ac_status" >&5
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.
$ac_ext >&5
21249 ( exit $ac_status )
21250 ac_cv_header_stdc
=no
21252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21259 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21260 if test $ac_cv_header_stdc = yes; then
21262 cat >>confdefs.h
<<\_ACEOF
21263 #define STDC_HEADERS 1
21269 if test "${ac_cv_header_zlib_h+set}" = set; then
21270 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21271 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21272 if test "${ac_cv_header_zlib_h+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21276 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21278 # Is the header compilable?
21279 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
21280 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
21281 cat >conftest.
$ac_ext <<_ACEOF
21284 cat confdefs.h
>>conftest.
$ac_ext
21285 cat >>conftest.
$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 $ac_includes_default
21290 rm -f conftest.
$ac_objext
21291 if { (ac_try
="$ac_compile"
21292 case "(($ac_try" in
21293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21299 grep -v '^ *+' conftest.er1 >conftest.err
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21307 ac_header_compiler=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_header_compiler=no
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21317 echo "${ECHO_T}$ac_header_compiler" >&6; }
21319 # Is the header present?
21320 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
21321 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21330 if { (ac_try="$ac_cpp conftest.$ac_ext"
21331 case "(($ac_try" in
21332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21333 *) ac_try_echo
=$ac_try;;
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21338 grep -v '^ *+' conftest.er1
>conftest.err
21340 cat conftest.err
>&5
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } >/dev
/null
&& {
21343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21346 ac_header_preproc
=yes
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.
$ac_ext >&5
21351 ac_header_preproc
=no
21354 rm -f conftest.err conftest.
$ac_ext
21355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21356 echo "${ECHO_T}$ac_header_preproc" >&6; }
21358 # So? What about this header?
21359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21361 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21362 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21364 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21365 ac_header_preproc
=yes
21368 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21369 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21371 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21373 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21375 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21377 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21379 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
21383 { echo "$as_me:$LINENO: checking for zlib.h" >&5
21384 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
21385 if test "${ac_cv_header_zlib_h+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 ac_cv_header_zlib_h
=$ac_header_preproc
21390 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21391 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
21394 if test $ac_cv_header_zlib_h = yes; then
21397 if test "$enable_zip" != no
; then
21398 { echo "$as_me:$LINENO: WARNING: cannot find zlib.h -- zip/jar support in bootclasspath is disabled" >&5
21399 echo "$as_me: WARNING: cannot find zlib.h -- zip/jar support in bootclasspath is disabled" >&2;}
21406 if test "${ac_cv_header_ffi_h+set}" = set; then
21407 { echo "$as_me:$LINENO: checking for ffi.h" >&5
21408 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
21409 if test "${ac_cv_header_ffi_h+set}" = set; then
21410 echo $ECHO_N "(cached) $ECHO_C" >&6
21412 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
21413 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
21415 # Is the header compilable?
21416 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
21417 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
21418 cat >conftest.
$ac_ext <<_ACEOF
21421 cat confdefs.h
>>conftest.
$ac_ext
21422 cat >>conftest.
$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21427 rm -f conftest.
$ac_objext
21428 if { (ac_try
="$ac_compile"
21429 case "(($ac_try" in
21430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_compile") 2>conftest.er1
21436 grep -v '^ *+' conftest.er1 >conftest.err
21438 cat conftest.err >&5
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && {
21441 test -z "$ac_c_werror_flag" ||
21442 test ! -s conftest.err
21443 } && test -s conftest.$ac_objext; then
21444 ac_header_compiler=yes
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21449 ac_header_compiler=no
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21454 echo "${ECHO_T}$ac_header_compiler" >&6; }
21456 # Is the header present?
21457 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
21458 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21467 if { (ac_try="$ac_cpp conftest.$ac_ext"
21468 case "(($ac_try" in
21469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21470 *) ac_try_echo
=$ac_try;;
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1
>conftest.err
21477 cat conftest.err
>&5
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); } >/dev
/null
&& {
21480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21483 ac_header_preproc
=yes
21485 echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.
$ac_ext >&5
21488 ac_header_preproc
=no
21491 rm -f conftest.err conftest.
$ac_ext
21492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 echo "${ECHO_T}$ac_header_preproc" >&6; }
21495 # So? What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21498 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
21499 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
21501 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
21502 ac_header_preproc
=yes
21505 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
21506 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
21508 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
21510 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
21512 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
21514 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
21516 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
21520 { echo "$as_me:$LINENO: checking for ffi.h" >&5
21521 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
21522 if test "${ac_cv_header_ffi_h+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 ac_cv_header_ffi_h
=$ac_header_preproc
21527 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
21528 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
21531 if test $ac_cv_header_ffi_h = yes; then
21534 if test "$enable_ffi" != no
; then
21535 { { echo "$as_me:$LINENO: error: cannot find ffi.h" >&5
21536 echo "$as_me: error: cannot find ffi.h" >&2;}
21537 { (exit 1); exit 1; }; }
21543 if test "$enable_zip" != no
; then
21545 cat >>confdefs.h
<<\_ACEOF
21559 if test "$enable_ffi" != no
; then
21561 cat >>confdefs.h
<<\_ACEOF
21572 for ac_header
in sys
/time.h unistd.h endian.h sys
/param.h locale.h
21574 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21575 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21578 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 ac_res
=`eval echo '${'$as_ac_Header'}'`
21582 { echo "$as_me:$LINENO: result: $ac_res" >&5
21583 echo "${ECHO_T}$ac_res" >&6; }
21585 # Is the header compilable?
21586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21588 cat >conftest.
$ac_ext <<_ACEOF
21591 cat confdefs.h
>>conftest.
$ac_ext
21592 cat >>conftest.
$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 $ac_includes_default
21595 #include <$ac_header>
21597 rm -f conftest.
$ac_objext
21598 if { (ac_try
="$ac_compile"
21599 case "(($ac_try" in
21600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_compile") 2>conftest.er1
21606 grep -v '^ *+' conftest.er1 >conftest.err
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); } && {
21611 test -z "$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21613 } && test -s conftest.$ac_objext; then
21614 ac_header_compiler=yes
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_compiler=no
21622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21624 echo "${ECHO_T}$ac_header_compiler" >&6; }
21626 # Is the header present?
21627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 #include <$ac_header>
21637 if { (ac_try="$ac_cpp conftest.$ac_ext"
21638 case "(($ac_try" in
21639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21640 *) ac_try_echo
=$ac_try;;
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21645 grep -v '^ *+' conftest.er1
>conftest.err
21647 cat conftest.err
>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } >/dev
/null
&& {
21650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21653 ac_header_preproc
=yes
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.
$ac_ext >&5
21658 ac_header_preproc
=no
21661 rm -f conftest.err conftest.
$ac_ext
21662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21663 echo "${ECHO_T}$ac_header_preproc" >&6; }
21665 # So? What about this header?
21666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21672 ac_header_preproc
=yes
21675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21692 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21693 echo $ECHO_N "(cached) $ECHO_C" >&6
21695 eval "$as_ac_Header=\$ac_header_preproc"
21697 ac_res
=`eval echo '${'$as_ac_Header'}'`
21698 { echo "$as_me:$LINENO: result: $ac_res" >&5
21699 echo "${ECHO_T}$ac_res" >&6; }
21702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21703 cat >>confdefs.h
<<_ACEOF
21704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21712 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21714 if test "${ac_cv_c_const+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 cat >conftest.
$ac_ext <<_ACEOF
21720 cat confdefs.h
>>conftest.
$ac_ext
21721 cat >>conftest.
$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21727 /* FIXME: Include the comments suggested by Paul. */
21728 #ifndef __cplusplus
21729 /* Ultrix mips cc rejects this. */
21730 typedef int charset[2];
21732 /* SunOS 4.1.1 cc rejects this. */
21733 char const *const *pcpcc;
21735 /* NEC SVR4.0.2 mips cc rejects this. */
21736 struct point {int x, y;};
21737 static struct point const zero = {0,0};
21738 /* AIX XL C 1.02.0.0 rejects this.
21739 It does not let you subtract one const X* pointer from another in
21740 an arm of an if-expression whose if-part is not a constant
21742 const char *g = "string";
21743 pcpcc = &g + (g ? g-g : 0);
21744 /* HPUX 7.0 cc rejects these. */
21746 ppc = (char**) pcpcc;
21747 pcpcc = (char const *const *) ppc;
21748 { /* SCO 3.2v4 cc rejects this. */
21750 char const *s = 0 ? (char *) 0 : (char const *) 0;
21755 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21756 int x[] = {25, 17};
21757 const int *foo = &x[0];
21760 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21761 typedef const int *iptr;
21765 { /* AIX XL C 1.02.0.0 rejects this saying
21766 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21767 struct s { int j; const int *ap[3]; };
21768 struct s *b; b->j = 5;
21770 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21771 const int foo = 10;
21772 if (!foo) return 0;
21774 return !cs[0] && !zero.x;
21781 rm -f conftest.
$ac_objext
21782 if { (ac_try
="$ac_compile"
21783 case "(($ac_try" in
21784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_compile") 2>conftest.er1
21790 grep -v '^ *+' conftest.er1 >conftest.err
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest.$ac_objext; then
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21809 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21810 if test $ac_cv_c_const = no; then
21812 cat >>confdefs.h <<\_ACEOF
21818 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21819 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21820 if test "${ac_cv_header_time+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 #include <sys/types.h>
21830 #include <sys/time.h>
21836 if ((struct tm *) 0)
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21846 *) ac_try_echo
=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1
>conftest.err
21853 cat conftest.err
>&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.
$ac_objext; then
21859 ac_cv_header_time
=yes
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.
$ac_ext >&5
21864 ac_cv_header_time
=no
21867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21869 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21870 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21871 if test $ac_cv_header_time = yes; then
21873 cat >>confdefs.h
<<\_ACEOF
21874 #define TIME_WITH_SYS_TIME 1
21880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21881 # for constant arguments. Useless!
21882 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
21883 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21884 if test "${ac_cv_working_alloca_h+set}" = set; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 cat >conftest.
$ac_ext <<_ACEOF
21890 cat confdefs.h
>>conftest.
$ac_ext
21891 cat >>conftest.
$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #include <alloca.h>
21897 char *p = (char *) alloca (2 * sizeof (int));
21903 rm -f conftest.
$ac_objext conftest
$ac_exeext
21904 if { (ac_try
="$ac_link"
21905 case "(($ac_try" in
21906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_link") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1 >conftest.err
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest$ac_exeext &&
21920 $as_test_x conftest$ac_exeext; then
21921 ac_cv_working_alloca_h=yes
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ac_cv_working_alloca_h=no
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930 conftest$ac_exeext conftest.$ac_ext
21932 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21933 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21934 if test $ac_cv_working_alloca_h = yes; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_ALLOCA_H 1
21942 { echo "$as_me:$LINENO: checking for alloca" >&5
21943 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21944 if test "${ac_cv_func_alloca_works+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21954 # define alloca __builtin_alloca
21957 # include <malloc.h>
21958 # define alloca _alloca
21960 # ifdef HAVE_ALLOCA_H
21961 # include <alloca.h>
21966 # ifndef alloca /* predefined by HP cc +Olibcalls */
21977 char *p = (char *) alloca (1);
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21987 *) ac_try_echo
=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_link") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1
>conftest.err
21994 cat conftest.err
>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } && {
21997 test -z "$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 } && test -s conftest
$ac_exeext &&
22000 $as_test_x conftest
$ac_exeext; then
22001 ac_cv_func_alloca_works
=yes
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.
$ac_ext >&5
22006 ac_cv_func_alloca_works
=no
22009 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22010 conftest
$ac_exeext conftest.
$ac_ext
22012 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22013 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
22015 if test $ac_cv_func_alloca_works = yes; then
22017 cat >>confdefs.h
<<\_ACEOF
22018 #define HAVE_ALLOCA 1
22022 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22023 # that cause trouble. Some versions do not even contain alloca or
22024 # contain a buggy version. If you still want to use their alloca,
22025 # use ar to extract alloca.o from them instead of compiling alloca.c.
22027 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
22029 cat >>confdefs.h
<<\_ACEOF
22034 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22035 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
22036 if test "${ac_cv_os_cray+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 cat >conftest.
$ac_ext <<_ACEOF
22042 cat confdefs.h
>>conftest.
$ac_ext
22043 cat >>conftest.
$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #if defined CRAY && ! defined CRAY2
22052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22053 $EGREP "webecray" >/dev
/null
2>&1; then
22061 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22062 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
22063 if test $ac_cv_os_cray = yes; then
22064 for ac_func
in _getb67 GETB67 getb67
; do
22065 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22068 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22071 cat >conftest.
$ac_ext <<_ACEOF
22074 cat confdefs.h
>>conftest.
$ac_ext
22075 cat >>conftest.
$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22079 #define $ac_func innocuous_$ac_func
22081 /* System header to define __stub macros and hopefully few prototypes,
22082 which can conflict with char $ac_func (); below.
22083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084 <limits.h> exists even on freestanding compilers. */
22087 # include <limits.h>
22089 # include <assert.h>
22094 /* Override any GCC internal prototype to avoid an error.
22095 Use char because int might match the return type of a GCC
22096 builtin and then its argument prototype would still apply. */
22101 /* The GNU C library defines this for functions which it implements
22102 to always fail with ENOSYS. Some functions are actually named
22103 something starting with __ and the normal name is an alias. */
22104 #if defined __stub_$ac_func || defined __stub___$ac_func
22111 return $ac_func ();
22116 rm -f conftest.
$ac_objext conftest
$ac_exeext
22117 if { (ac_try
="$ac_link"
22118 case "(($ac_try" in
22119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_link") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest$ac_exeext &&
22133 $as_test_x conftest$ac_exeext; then
22134 eval "$as_ac_var=yes"
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 eval "$as_ac_var=no"
22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22143 conftest$ac_exeext conftest.$ac_ext
22145 ac_res=`eval echo '${'$as_ac_var'}'`
22146 { echo "$as_me:$LINENO: result: $ac_res" >&5
22147 echo "${ECHO_T}$ac_res" >&6; }
22148 if test `eval echo '${'$as_ac_var'}'` = yes; then
22150 cat >>confdefs.h <<_ACEOF
22151 #define CRAY_STACKSEG_END $ac_func
22160 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22161 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
22162 if test "${ac_cv_c_stack_direction+set}" = set; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22165 if test "$cross_compiling" = yes; then
22166 ac_cv_c_stack_direction=0
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 $ac_includes_default
22176 find_stack_direction ()
22178 static char *addr = 0;
22183 return find_stack_direction ();
22186 return (&dummy > addr) ? 1 : -1;
22192 return find_stack_direction () < 0;
22195 rm -f conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22199 *) ac_try_echo
=$ac_try;;
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22206 { (case "(($ac_try" in
22207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_try") 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_c_stack_direction=1
22217 echo "$as_me: program exited with status $ac_status" >&5
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ( exit $ac_status )
22222 ac_cv_c_stack_direction=-1
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22230 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
22232 cat >>confdefs.h <<_ACEOF
22233 #define STACK_DIRECTION $ac_cv_c_stack_direction
22241 for ac_header in stdlib.h unistd.h
22243 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
22244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 ac_res=`eval echo '${'$as_ac_Header'}'`
22251 { echo "$as_me:$LINENO: result: $ac_res" >&5
22252 echo "${ECHO_T}$ac_res" >&6; }
22254 # Is the header compilable?
22255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22257 cat >conftest.$ac_ext <<_ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22264 #include <$ac_header>
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22270 *) ac_try_echo
=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1
>conftest.err
22277 cat conftest.err
>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.
$ac_objext; then
22283 ac_header_compiler
=yes
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.
$ac_ext >&5
22288 ac_header_compiler
=no
22291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22293 echo "${ECHO_T}$ac_header_compiler" >&6; }
22295 # Is the header present?
22296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22298 cat >conftest.
$ac_ext <<_ACEOF
22301 cat confdefs.h
>>conftest.
$ac_ext
22302 cat >>conftest.
$ac_ext <<_ACEOF
22303 /* end confdefs.h. */
22304 #include <$ac_header>
22306 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22307 case "(($ac_try" in
22308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } >/dev/null && {
22319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22322 ac_header_preproc=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_header_preproc=no
22330 rm -f conftest.err conftest.$ac_ext
22331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22332 echo "${ECHO_T}$ac_header_preproc" >&6; }
22334 # So? What about this header?
22335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22341 ac_header_preproc=yes
22344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 eval "$as_ac_Header=\$ac_header_preproc"
22366 ac_res=`eval echo '${'$as_ac_Header'}'`
22367 { echo "$as_me:$LINENO: result: $ac_res" >&5
22368 echo "${ECHO_T}$ac_res" >&6; }
22371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22372 cat >>confdefs.h <<_ACEOF
22373 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
22381 for ac_func in getpagesize
22383 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22397 #define $ac_func innocuous_$ac_func
22399 /* System header to define __stub macros and hopefully few prototypes,
22400 which can conflict with char $ac_func (); below.
22401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22402 <limits.h> exists even on freestanding compilers. */
22405 # include <limits.h>
22407 # include <assert.h>
22412 /* Override any GCC internal prototype to avoid an error.
22413 Use char because int might match the return type of a GCC
22414 builtin and then its argument prototype would still apply. */
22419 /* The GNU C library defines this for functions which it implements
22420 to always fail with ENOSYS. Some functions are actually named
22421 something starting with __ and the normal name is an alias. */
22422 #if defined __stub_$ac_func || defined __stub___$ac_func
22429 return $ac_func ();
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22438 *) ac_try_echo
=$ac_try;;
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_link") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1
>conftest.err
22445 cat conftest.err
>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest
$ac_exeext &&
22451 $as_test_x conftest
$ac_exeext; then
22452 eval "$as_ac_var=yes"
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.
$ac_ext >&5
22457 eval "$as_ac_var=no"
22460 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22461 conftest
$ac_exeext conftest.
$ac_ext
22463 ac_res
=`eval echo '${'$as_ac_var'}'`
22464 { echo "$as_me:$LINENO: result: $ac_res" >&5
22465 echo "${ECHO_T}$ac_res" >&6; }
22466 if test `eval echo '${'$as_ac_var'}'` = yes; then
22467 cat >>confdefs.h
<<_ACEOF
22468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22474 { echo "$as_me:$LINENO: checking for working mmap" >&5
22475 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22476 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 if test "$cross_compiling" = yes; then
22480 ac_cv_func_mmap_fixed_mapped
=no
22482 cat >conftest.
$ac_ext <<_ACEOF
22485 cat confdefs.h
>>conftest.
$ac_ext
22486 cat >>conftest.
$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 $ac_includes_default
22489 /* malloc might have been renamed as rpl_malloc. */
22492 /* Thanks to Mike Haertel and Jim Avera for this test.
22493 Here is a matrix of mmap possibilities:
22494 mmap private not fixed
22495 mmap private fixed at somewhere currently unmapped
22496 mmap private fixed at somewhere already mapped
22497 mmap shared not fixed
22498 mmap shared fixed at somewhere currently unmapped
22499 mmap shared fixed at somewhere already mapped
22500 For private mappings, we should verify that changes cannot be read()
22501 back from the file, nor mmap's back from the file at a different
22502 address. (There have been systems where private was not correctly
22503 implemented like the infamous i386 svr4.0, and systems where the
22504 VM page cache was not coherent with the file system buffer cache
22505 like early versions of FreeBSD and possibly contemporary NetBSD.)
22506 For shared mappings, we should conversely verify that changes get
22507 propagated back to all the places they're supposed to be.
22509 Grep wants private fixed already mapped.
22510 The main things grep needs to know about mmap are:
22511 * does it exist and is it safe to write into the mmap'd area
22512 * how to use it (BSD variants) */
22515 #include <sys/mman.h>
22517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22521 /* This mess was copied from the GNU getpagesize.h. */
22522 #ifndef HAVE_GETPAGESIZE
22523 /* Assume that all systems that can run configure have sys/param.h. */
22524 # ifndef HAVE_SYS_PARAM_H
22525 # define HAVE_SYS_PARAM_H 1
22528 # ifdef _SC_PAGESIZE
22529 # define getpagesize() sysconf(_SC_PAGESIZE)
22530 # else /* no _SC_PAGESIZE */
22531 # ifdef HAVE_SYS_PARAM_H
22532 # include <sys/param.h>
22533 # ifdef EXEC_PAGESIZE
22534 # define getpagesize() EXEC_PAGESIZE
22535 # else /* no EXEC_PAGESIZE */
22537 # define getpagesize() NBPG * CLSIZE
22540 # endif /* no CLSIZE */
22541 # else /* no NBPG */
22543 # define getpagesize() NBPC
22544 # else /* no NBPC */
22546 # define getpagesize() PAGESIZE
22547 # endif /* PAGESIZE */
22548 # endif /* no NBPC */
22549 # endif /* no NBPG */
22550 # endif /* no EXEC_PAGESIZE */
22551 # else /* no HAVE_SYS_PARAM_H */
22552 # define getpagesize() 8192 /* punt totally */
22553 # endif /* no HAVE_SYS_PARAM_H */
22554 # endif /* no _SC_PAGESIZE */
22556 #endif /* no HAVE_GETPAGESIZE */
22561 char *data, *data2, *data3;
22565 pagesize = getpagesize ();
22567 /* First, make a file with some known garbage in it. */
22568 data = (char *) malloc (pagesize);
22571 for (i = 0; i < pagesize; ++i)
22572 *(data + i) = rand ();
22574 fd = creat ("conftest.mmap", 0600);
22577 if (write (fd, data, pagesize) != pagesize)
22581 /* Next, try to mmap the file at a fixed address which already has
22582 something else allocated at it. If we can, also make sure that
22583 we see the same garbage. */
22584 fd = open ("conftest.mmap", O_RDWR);
22587 data2 = (char *) malloc (2 * pagesize);
22590 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22591 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22592 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22594 for (i = 0; i < pagesize; ++i)
22595 if (*(data + i) != *(data2 + i))
22598 /* Finally, make sure that changes to the mapped area do not
22599 percolate back to the file as seen by read(). (This is a bug on
22600 some variants of i386 svr4.0.) */
22601 for (i = 0; i < pagesize; ++i)
22602 *(data2 + i) = *(data2 + i) + 1;
22603 data3 = (char *) malloc (pagesize);
22606 if (read (fd, data3, pagesize) != pagesize)
22608 for (i = 0; i < pagesize; ++i)
22609 if (*(data + i) != *(data3 + i))
22615 rm -f conftest
$ac_exeext
22616 if { (ac_try
="$ac_link"
22617 case "(($ac_try" in
22618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_link") 2>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22626 { (case "(($ac_try" in
22627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22628 *) ac_try_echo
=$ac_try;;
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_try") 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_cv_func_mmap_fixed_mapped
=yes
22637 echo "$as_me: program exited with status $ac_status" >&5
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.
$ac_ext >&5
22641 ( exit $ac_status )
22642 ac_cv_func_mmap_fixed_mapped
=no
22644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22649 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22650 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22651 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22653 cat >>confdefs.h
<<\_ACEOF
22654 #define HAVE_MMAP 1
22658 rm -f conftest.mmap
22663 for ac_func
in gettimeofday strtol setlocale
22665 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22668 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 cat >conftest.
$ac_ext <<_ACEOF
22674 cat confdefs.h
>>conftest.
$ac_ext
22675 cat >>conftest.
$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22679 #define $ac_func innocuous_$ac_func
22681 /* System header to define __stub macros and hopefully few prototypes,
22682 which can conflict with char $ac_func (); below.
22683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22684 <limits.h> exists even on freestanding compilers. */
22687 # include <limits.h>
22689 # include <assert.h>
22694 /* Override any GCC internal prototype to avoid an error.
22695 Use char because int might match the return type of a GCC
22696 builtin and then its argument prototype would still apply. */
22701 /* The GNU C library defines this for functions which it implements
22702 to always fail with ENOSYS. Some functions are actually named
22703 something starting with __ and the normal name is an alias. */
22704 #if defined __stub_$ac_func || defined __stub___$ac_func
22711 return $ac_func ();
22716 rm -f conftest.
$ac_objext conftest
$ac_exeext
22717 if { (ac_try
="$ac_link"
22718 case "(($ac_try" in
22719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 eval "$as_ac_var=yes"
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 eval "$as_ac_var=no"
22742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22743 conftest$ac_exeext conftest.$ac_ext
22745 ac_res=`eval echo '${'$as_ac_var'}'`
22746 { echo "$as_me:$LINENO: result: $ac_res" >&5
22747 echo "${ECHO_T}$ac_res" >&6; }
22748 if test `eval echo '${'$as_ac_var'}'` = yes; then
22749 cat >>confdefs.h <<_ACEOF
22750 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22756 if test $ac_cv_header_locale_h = yes; then
22757 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22758 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22759 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 cat >conftest.$ac_ext <<_ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #include <locale.h>
22777 rm -f conftest.$ac_objext conftest$ac_exeext
22778 if { (ac_try="$ac_link"
22779 case "(($ac_try" in
22780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22781 *) ac_try_echo
=$ac_try;;
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_link") 2>conftest.er1
22786 grep -v '^ *+' conftest.er1
>conftest.err
22788 cat conftest.err
>&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest
$ac_exeext &&
22794 $as_test_x conftest
$ac_exeext; then
22795 am_cv_val_LC_MESSAGES
=yes
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.
$ac_ext >&5
22800 am_cv_val_LC_MESSAGES
=no
22803 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22804 conftest
$ac_exeext conftest.
$ac_ext
22806 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22807 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
22808 if test $am_cv_val_LC_MESSAGES = yes; then
22810 cat >>confdefs.h
<<\_ACEOF
22811 #define HAVE_LC_MESSAGES 1
22817 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22818 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
22819 # Check whether --enable-maintainer-mode was given.
22820 if test "${enable_maintainer_mode+set}" = set; then
22821 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
22823 USE_MAINTAINER_MODE
=no
22826 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22827 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
22828 if test $USE_MAINTAINER_MODE = yes; then
22829 MAINTAINER_MODE_TRUE
=
22830 MAINTAINER_MODE_FALSE
='#'
22832 MAINTAINER_MODE_TRUE
='#'
22833 MAINTAINER_MODE_FALSE
=
22836 MAINT
=$MAINTAINER_MODE_TRUE
22840 ac_config_links
="$ac_config_links src/arch.h:src/arch/$arch.h"
22843 ac_config_files
="$ac_config_files Makefile src/Makefile src/interp/Makefile src/interp/engine/Makefile src/arch/Makefile src/os/Makefile src/os/linux/Makefile src/os/darwin/Makefile src/os/bsd/Makefile src/os/linux/powerpc/Makefile src/os/linux/arm/Makefile src/os/linux/i386/Makefile src/os/linux/x86_64/Makefile src/os/linux/avr32/Makefile src/os/linux/parisc/Makefile src/os/linux/mips/Makefile src/os/darwin/i386/Makefile src/os/darwin/powerpc/Makefile src/os/bsd/powerpc/Makefile src/os/bsd/arm/Makefile src/os/bsd/i386/Makefile src/os/bsd/x86_64/Makefile lib/Makefile lib/java/Makefile lib/java/lang/Makefile lib/jamvm/Makefile lib/jamvm/java/Makefile lib/jamvm/java/lang/Makefile lib/java/lang/reflect/Makefile lib/java/security/Makefile lib/gnu/Makefile lib/sun/reflect/annotation/Makefile lib/sun/reflect//Makefile lib/sun/Makefile lib/gnu/classpath/Makefile"
22846 cat >confcache
<<\_ACEOF
22847 # This file is a shell script that caches the results of configure
22848 # tests run on this system so they can be shared between configure
22849 # scripts and configure runs, see configure's option --config-cache.
22850 # It is not useful on other systems. If it contains results you don't
22851 # want to keep, you may remove or edit it.
22853 # config.status only pays attention to the cache file if you give it
22854 # the --recheck option to rerun configure.
22856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22858 # following values.
22862 # The following way of writing the cache mishandles newlines in values,
22863 # but we know of no workaround that is simple, portable, and efficient.
22864 # So, we kill variables containing newlines.
22865 # Ultrix sh set writes to stderr and can't be redirected directly,
22866 # and sets the high bit in the cache file unless we assign to the vars.
22868 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22869 eval ac_val
=\$
$ac_var
22873 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22877 _ | IFS | as_nl
) ;; #(
22878 *) $as_unset $ac_var ;;
22884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22885 *${as_nl}ac_space
=\
*)
22886 # `set' does not quote correctly, so add quotes (double-quote
22887 # substitution turns \\\\ into \\, and sed turns \\ into \).
22890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22893 # `set' quotes correctly as required by POSIX, so do not add quotes.
22894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22907 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22908 if test -w "$cache_file"; then
22909 test "x$cache_file" != "x/dev/null" &&
22910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22911 echo "$as_me: updating cache $cache_file" >&6;}
22912 cat confcache
>$cache_file
22914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22920 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22921 # Let make expand exec_prefix.
22922 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22924 DEFS
=-DHAVE_CONFIG_H
22928 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22929 # 1. Remove the extension, and $U if already installed.
22930 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22931 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22933 # will be set to the directory where LIBOBJS objects are built.
22934 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22935 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22937 LIBOBJS
=$ac_libobjs
22939 LTLIBOBJS
=$ac_ltlibobjs
22942 if test -z "${COMPILE_TIME_RELOC_CHECKS_TRUE}" && test -z "${COMPILE_TIME_RELOC_CHECKS_FALSE}"; then
22943 { { echo "$as_me:$LINENO: error: conditional \"COMPILE_TIME_RELOC_CHECKS\" was never defined.
22944 Usually this means the macro was only invoked conditionally." >&5
22945 echo "$as_me: error: conditional \"COMPILE_TIME_RELOC_CHECKS\" was never defined.
22946 Usually this means the macro was only invoked conditionally." >&2;}
22947 { (exit 1); exit 1; }; }
22949 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22950 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22951 Usually this means the macro was only invoked conditionally." >&5
22952 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22953 Usually this means the macro was only invoked conditionally." >&2;}
22954 { (exit 1); exit 1; }; }
22956 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22957 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22958 Usually this means the macro was only invoked conditionally." >&5
22959 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22960 Usually this means the macro was only invoked conditionally." >&2;}
22961 { (exit 1); exit 1; }; }
22963 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22964 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22965 Usually this means the macro was only invoked conditionally." >&5
22966 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22967 Usually this means the macro was only invoked conditionally." >&2;}
22968 { (exit 1); exit 1; }; }
22970 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22971 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22972 Usually this means the macro was only invoked conditionally." >&5
22973 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22974 Usually this means the macro was only invoked conditionally." >&2;}
22975 { (exit 1); exit 1; }; }
22977 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22978 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22979 Usually this means the macro was only invoked conditionally." >&5
22980 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22981 Usually this means the macro was only invoked conditionally." >&2;}
22982 { (exit 1); exit 1; }; }
22984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22985 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22986 Usually this means the macro was only invoked conditionally." >&5
22987 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22988 Usually this means the macro was only invoked conditionally." >&2;}
22989 { (exit 1); exit 1; }; }
22992 : ${CONFIG_STATUS=./config.status}
22993 ac_clean_files_save
=$ac_clean_files
22994 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22995 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22996 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22997 cat >$CONFIG_STATUS <<_ACEOF
22999 # Generated by $as_me.
23000 # Run this file to recreate the current configuration.
23001 # Compiler output produced by configure, useful for debugging
23002 # configure, is in config.log if it exists.
23005 ac_cs_recheck=false
23007 SHELL=\${CONFIG_SHELL-$SHELL}
23010 cat >>$CONFIG_STATUS <<\_ACEOF
23011 ## --------------------- ##
23012 ## M4sh Initialization. ##
23013 ## --------------------- ##
23015 # Be more Bourne compatible
23016 DUALCASE
=1; export DUALCASE
# for MKS sh
23017 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23021 # is contrary to our usage. Disable this feature.
23022 alias -g '${1+"$@"}'='"$@"'
23023 setopt NO_GLOB_SUBST
23025 case `(set -o) 2>/dev/null` in
23026 *posix
*) set -o posix
;;
23035 # Avoid depending upon Character Ranges.
23036 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23037 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23038 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23039 as_cr_digits
='0123456789'
23040 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23042 # The user is always right.
23043 if test "${PATH_SEPARATOR+set}" != set; then
23044 echo "#! /bin/sh" >conf$$.sh
23045 echo "exit 0" >>conf$$.sh
23047 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23055 # Support unset when possible.
23056 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23064 # We need space, tab and new line, in precisely that order. Quoting is
23065 # there to prevent editors from complaining about space-tab.
23066 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23067 # splitting by setting IFS to empty value.)
23072 # Find who we are. Look in the path if we contain no directory separator.
23074 *[\\/]* ) as_myself
=$0 ;;
23075 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23076 for as_dir
in $PATH
23079 test -z "$as_dir" && as_dir
=.
23080 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23086 # We did not find ourselves, most probably we were run as `sh COMMAND'
23087 # in which case we are not to be found in the path.
23088 if test "x$as_myself" = x
; then
23091 if test ! -f "$as_myself"; then
23092 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23093 { (exit 1); exit 1; }
23096 # Work around bugs in pre-3.0 UWIN ksh.
23097 for as_var
in ENV MAIL MAILPATH
23098 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23108 LC_TELEPHONE LC_TIME
23110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23111 eval $as_var=C
; export $as_var
23113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23117 # Required to use basename.
23118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23126 as_basename
=basename
23132 # Name of the executable.
23133 as_me
=`$as_basename -- "$0" ||
23134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23135 X"$0" : 'X\(//\)$' \| \
23136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23138 sed '/^.*\/\([^/][^/]*\)\/*$/{
23157 as_lineno_1
=$LINENO
23158 as_lineno_2
=$LINENO
23159 test "x$as_lineno_1" != "x$as_lineno_2" &&
23160 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23163 # uniformly replaced by the line number. The first 'sed' inserts a
23164 # line-number line after each line using $LINENO; the second 'sed'
23165 # does the real work. The second script uses 'N' to pair each
23166 # line-number line with the line containing $LINENO, and appends
23167 # trailing '-' during substitution so that $LINENO is not a special
23168 # case at line end.
23169 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23170 # scripts with optimization help from Paolo Bonzini. Blame Lee
23171 # E. McMahon (1931-1989) for sed's syntax. :-)
23183 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23186 ' >$as_me.lineno
&&
23187 chmod +x
"$as_me.lineno" ||
23188 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23189 { (exit 1); exit 1; }; }
23191 # Don't try to exec as it changes $[0], causing all sort of problems
23192 # (the dirname of $[0] is not the place where we might find the
23193 # original and so on. Autoconf is especially sensitive to this).
23194 .
"./$as_me.lineno"
23195 # Exit status is that of the last command.
23200 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23206 ECHO_C
= ECHO_N
= ECHO_T
=
23207 case `echo -n x` in
23209 case `echo 'x\c'` in
23210 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23217 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23218 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23224 rm -f conf$$ conf$$.exe conf$$.
file
23225 if test -d conf$$.dir
; then
23226 rm -f conf$$.dir
/conf$$.
file
23232 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23234 # ... but there are two gotchas:
23235 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23236 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23237 # In both cases, we have to default to `cp -p'.
23238 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23240 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23245 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23246 rmdir conf$$.dir
2>/dev
/null
23248 if mkdir
-p .
2>/dev
/null
; then
23251 test -d .
/-p && rmdir .
/-p
23255 if test -x / >/dev
/null
2>&1; then
23256 as_test_x
='test -x'
23258 if ls -dL / >/dev
/null
2>&1; then
23265 if test -d "$1"; then
23271 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23272 ???[sx]*):;;*)false;;esac;fi
23276 as_executable_p
=$as_test_x
23278 # Sed expression to map a string onto a valid CPP name.
23279 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23281 # Sed expression to map a string onto a valid variable name.
23282 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23287 # Save the log message, to keep $[0] and so on meaningful, and to
23288 # report actual input values of CONFIG_FILES etc. instead of their
23289 # values after options handling.
23291 This file was extended by $as_me, which was
23292 generated by GNU Autoconf 2.61. Invocation command line was
23294 CONFIG_FILES = $CONFIG_FILES
23295 CONFIG_HEADERS = $CONFIG_HEADERS
23296 CONFIG_LINKS = $CONFIG_LINKS
23297 CONFIG_COMMANDS = $CONFIG_COMMANDS
23300 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23305 cat >>$CONFIG_STATUS <<_ACEOF
23306 # Files that config.status was made for.
23307 config_files="$ac_config_files"
23308 config_headers="$ac_config_headers"
23309 config_links="$ac_config_links"
23310 config_commands="$ac_config_commands"
23314 cat >>$CONFIG_STATUS <<\_ACEOF
23316 \`$as_me' instantiates files from templates according to the
23317 current configuration.
23319 Usage: $0 [OPTIONS] [FILE]...
23321 -h, --help print this help, then exit
23322 -V, --version print version number and configuration settings, then exit
23323 -q, --quiet do not print progress messages
23324 -d, --debug don't remove temporary files
23325 --recheck update $as_me by reconfiguring in the same conditions
23326 --file=FILE[:TEMPLATE]
23327 instantiate the configuration file FILE
23328 --header=FILE[:TEMPLATE]
23329 instantiate the configuration header FILE
23331 Configuration files:
23334 Configuration headers:
23337 Configuration links:
23340 Configuration commands:
23343 Report bugs to <bug-autoconf@gnu.org>."
23346 cat >>$CONFIG_STATUS <<_ACEOF
23349 configured by $0, generated by GNU Autoconf 2.61,
23350 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23352 Copyright (C) 2006 Free Software Foundation, Inc.
23353 This config.status script is free software; the Free Software Foundation
23354 gives unlimited permission to copy, distribute and modify it."
23362 cat >>$CONFIG_STATUS <<\_ACEOF
23363 # If no file are specified by the user, then we need to provide default
23364 # value. By we need to know if files were specified by the user.
23370 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23371 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23382 # Handling of the options.
23383 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23385 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23386 echo "$ac_cs_version"; exit ;;
23387 --debug |
--debu |
--deb |
--de |
--d |
-d )
23389 --file |
--fil |
--fi |
--f )
23391 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23392 ac_need_defaults
=false
;;
23393 --header |
--heade |
--head |
--hea )
23395 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23396 ac_need_defaults
=false
;;
23398 # Conflict between --help and --header
23399 { echo "$as_me: error: ambiguous option: $1
23400 Try \`$0 --help' for more information." >&2
23401 { (exit 1); exit 1; }; };;
23402 --help |
--hel |
-h )
23403 echo "$ac_cs_usage"; exit ;;
23404 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23405 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23408 # This is an error.
23409 -*) { echo "$as_me: error: unrecognized option: $1
23410 Try \`$0 --help' for more information." >&2
23411 { (exit 1); exit 1; }; } ;;
23413 *) ac_config_targets
="$ac_config_targets $1"
23414 ac_need_defaults
=false
;;
23420 ac_configure_extra_args
=
23422 if $ac_cs_silent; then
23424 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23428 cat >>$CONFIG_STATUS <<_ACEOF
23429 if \$ac_cs_recheck; then
23430 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23431 CONFIG_SHELL=$SHELL
23432 export CONFIG_SHELL
23433 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23437 cat >>$CONFIG_STATUS <<\_ACEOF
23441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23442 ## Running $as_me. ##
23448 cat >>$CONFIG_STATUS <<_ACEOF
23452 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23456 cat >>$CONFIG_STATUS <<\_ACEOF
23458 # Handling of arguments.
23459 for ac_config_target
in $ac_config_targets
23461 case $ac_config_target in
23462 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h" ;;
23463 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23464 "src/arch.h") CONFIG_LINKS
="$CONFIG_LINKS src/arch.h:src/arch/$arch.h" ;;
23465 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23466 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23467 "src/interp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/interp/Makefile" ;;
23468 "src/interp/engine/Makefile") CONFIG_FILES
="$CONFIG_FILES src/interp/engine/Makefile" ;;
23469 "src/arch/Makefile") CONFIG_FILES
="$CONFIG_FILES src/arch/Makefile" ;;
23470 "src/os/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/Makefile" ;;
23471 "src/os/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/Makefile" ;;
23472 "src/os/darwin/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/darwin/Makefile" ;;
23473 "src/os/bsd/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/bsd/Makefile" ;;
23474 "src/os/linux/powerpc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/powerpc/Makefile" ;;
23475 "src/os/linux/arm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/arm/Makefile" ;;
23476 "src/os/linux/i386/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/i386/Makefile" ;;
23477 "src/os/linux/x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/x86_64/Makefile" ;;
23478 "src/os/linux/parisc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/parisc/Makefile" ;;
23479 "src/os/linux/avr32/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/avr32/Makefile" ;;
23480 "src/os/linux/mips/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/linux/mips/Makefile" ;;
23481 "src/os/darwin/i386/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/darwin/i386/Makefile" ;;
23482 "src/os/darwin/powerpc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/darwin/powerpc/Makefile" ;;
23483 "src/os/bsd/powerpc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/bsd/powerpc/Makefile" ;;
23484 "src/os/bsd/arm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/bsd/arm/Makefile" ;;
23485 "src/os/bsd/i386/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/bsd/i386/Makefile" ;;
23486 "src/os/bsd/x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES src/os/bsd/x86_64/Makefile" ;;
23487 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23488 "lib/java/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/java/Makefile" ;;
23489 "lib/java/lang/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/java/lang/Makefile" ;;
23490 "lib/jamvm/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/jamvm/Makefile" ;;
23491 "lib/jamvm/java/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/jamvm/java/Makefile" ;;
23492 "lib/jamvm/java/lang/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/jamvm/java/lang/Makefile" ;;
23493 "lib/java/lang/reflect/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/java/lang/reflect/Makefile" ;;
23494 "lib/java/security/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/java/security/Makefile" ;;
23495 "lib/gnu/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/gnu/Makefile" ;;
23496 "lib/sun/reflect/annotation/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sun/reflect/annotation/Makefile" ;;
23497 "lib/sun/reflect//Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sun/reflect//Makefile" ;;
23498 "lib/sun/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/sun/Makefile" ;;
23499 "lib/gnu/classpath/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/gnu/classpath/Makefile" ;;
23501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23503 { (exit 1); exit 1; }; };;
23508 # If the user did not use the arguments to specify the items to instantiate,
23509 # then the envvar interface is used. Set only those that are not.
23510 # We use the long form for the default assignment because of an extremely
23511 # bizarre bug on SunOS 4.1.3.
23512 if $ac_need_defaults; then
23513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23515 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
23516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23519 # Have a temporary directory for convenience. Make it in the build tree
23520 # simply because there is no reason against having it here, and in addition,
23521 # creating and moving files from /tmp can sometimes cause problems.
23522 # Hook for its removal unless debugging.
23523 # Note that there is a small window in which the directory will not be cleaned:
23524 # after its creation but before its name has been assigned to `$tmp'.
23528 trap 'exit_status=$?
23529 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23531 trap '{ (exit 1); exit 1; }' 1 2 13 15
23533 # Create a (secure) tmp directory for tmp files.
23536 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23537 test -n "$tmp" && test -d "$tmp"
23540 tmp
=.
/conf$$
-$RANDOM
23541 (umask 077 && mkdir
"$tmp")
23544 echo "$me: cannot create a temporary directory in ." >&2
23545 { (exit 1); exit 1; }
23549 # Set up the sed scripts for CONFIG_FILES section.
23552 # No need to generate the scripts if there are no CONFIG_FILES.
23553 # This happens for instance when ./config.status config.h
23554 if test -n "$CONFIG_FILES"; then
23561 for ac_last_try
in false false false false false
:; do
23562 cat >conf$
$subs.
sed <<_ACEOF
23563 SHELL!$SHELL$ac_delim
23564 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23565 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23566 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23567 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23568 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23569 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23570 exec_prefix!$exec_prefix$ac_delim
23571 prefix!$prefix$ac_delim
23572 program_transform_name!$program_transform_name$ac_delim
23573 bindir!$bindir$ac_delim
23574 sbindir!$sbindir$ac_delim
23575 libexecdir!$libexecdir$ac_delim
23576 datarootdir!$datarootdir$ac_delim
23577 datadir!$datadir$ac_delim
23578 sysconfdir!$sysconfdir$ac_delim
23579 sharedstatedir!$sharedstatedir$ac_delim
23580 localstatedir!$localstatedir$ac_delim
23581 includedir!$includedir$ac_delim
23582 oldincludedir!$oldincludedir$ac_delim
23583 docdir!$docdir$ac_delim
23584 infodir!$infodir$ac_delim
23585 htmldir!$htmldir$ac_delim
23586 dvidir!$dvidir$ac_delim
23587 pdfdir!$pdfdir$ac_delim
23588 psdir!$psdir$ac_delim
23589 libdir!$libdir$ac_delim
23590 localedir!$localedir$ac_delim
23591 mandir!$mandir$ac_delim
23592 DEFS!$DEFS$ac_delim
23593 ECHO_C!$ECHO_C$ac_delim
23594 ECHO_N!$ECHO_N$ac_delim
23595 ECHO_T!$ECHO_T$ac_delim
23596 LIBS!$LIBS$ac_delim
23597 build_alias!$build_alias$ac_delim
23598 host_alias!$host_alias$ac_delim
23599 target_alias!$target_alias$ac_delim
23600 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23601 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23602 INSTALL_DATA!$INSTALL_DATA$ac_delim
23603 am__isrc!$am__isrc$ac_delim
23604 CYGPATH_W!$CYGPATH_W$ac_delim
23605 PACKAGE!$PACKAGE$ac_delim
23606 VERSION!$VERSION$ac_delim
23607 ACLOCAL!$ACLOCAL$ac_delim
23608 AUTOCONF!$AUTOCONF$ac_delim
23609 AUTOMAKE!$AUTOMAKE$ac_delim
23610 AUTOHEADER!$AUTOHEADER$ac_delim
23611 MAKEINFO!$MAKEINFO$ac_delim
23612 install_sh!$install_sh$ac_delim
23613 STRIP!$STRIP$ac_delim
23614 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23615 mkdir_p!$mkdir_p$ac_delim
23617 SET_MAKE!$SET_MAKE$ac_delim
23618 am__leading_dot!$am__leading_dot$ac_delim
23619 AMTAR!$AMTAR$ac_delim
23620 am__tar!$am__tar$ac_delim
23621 am__untar!$am__untar$ac_delim
23622 build!$build$ac_delim
23623 build_cpu!$build_cpu$ac_delim
23624 build_vendor!$build_vendor$ac_delim
23625 build_os!$build_os$ac_delim
23626 host!$host$ac_delim
23627 host_cpu!$host_cpu$ac_delim
23628 host_vendor!$host_vendor$ac_delim
23629 host_os!$host_os$ac_delim
23630 arch!$arch$ac_delim
23632 interp_cflags!$interp_cflags$ac_delim
23633 COMPILE_TIME_RELOC_CHECKS_TRUE!$COMPILE_TIME_RELOC_CHECKS_TRUE$ac_delim
23634 COMPILE_TIME_RELOC_CHECKS_FALSE!$COMPILE_TIME_RELOC_CHECKS_FALSE$ac_delim
23635 with_classpath_install_dir!$with_classpath_install_dir$ac_delim
23637 CFLAGS!$CFLAGS$ac_delim
23638 LDFLAGS!$LDFLAGS$ac_delim
23639 CPPFLAGS!$CPPFLAGS$ac_delim
23640 ac_ct_CC!$ac_ct_CC$ac_delim
23641 EXEEXT!$EXEEXT$ac_delim
23642 OBJEXT!$OBJEXT$ac_delim
23643 DEPDIR!$DEPDIR$ac_delim
23644 am__include!$am__include$ac_delim
23645 am__quote!$am__quote$ac_delim
23646 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23647 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23648 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23649 CCDEPMODE!$CCDEPMODE$ac_delim
23650 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23651 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23653 GREP!$GREP$ac_delim
23654 EGREP!$EGREP$ac_delim
23655 LN_S!$LN_S$ac_delim
23656 ECHO!$ECHO$ac_delim
23658 RANLIB!$RANLIB$ac_delim
23662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23664 elif $ac_last_try; then
23665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23667 { (exit 1); exit 1; }; }
23669 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23673 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23674 if test -n "$ac_eof"; then
23675 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23676 ac_eof
=`expr $ac_eof + 1`
23679 cat >>$CONFIG_STATUS <<_ACEOF
23680 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23685 s/^/s,@/; s/!/@,|#_!!_#|/
23688 s/'"$ac_delim"'$/,g/; t
23690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23691 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23692 rm -f conf$
$subs.
sed
23693 cat >>$CONFIG_STATUS <<_ACEOF
23699 for ac_last_try
in false false false false false
:; do
23700 cat >conf$
$subs.
sed <<_ACEOF
23702 CXXFLAGS!$CXXFLAGS$ac_delim
23703 ac_ct_CXX!$ac_ct_CXX$ac_delim
23704 CXXDEPMODE!$CXXDEPMODE$ac_delim
23705 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23706 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23707 CXXCPP!$CXXCPP$ac_delim
23709 FFLAGS!$FFLAGS$ac_delim
23710 ac_ct_F77!$ac_ct_F77$ac_delim
23711 LIBTOOL!$LIBTOOL$ac_delim
23712 CCAS!$CCAS$ac_delim
23713 CCASFLAGS!$CCASFLAGS$ac_delim
23714 CCASDEPMODE!$CCASDEPMODE$ac_delim
23715 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
23716 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
23717 JAVAC!$JAVAC$ac_delim
23718 use_zip_yes!$use_zip_yes$ac_delim
23719 use_zip_no!$use_zip_no$ac_delim
23720 ALLOCA!$ALLOCA$ac_delim
23721 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23722 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23723 MAINT!$MAINT$ac_delim
23724 LIBOBJS!$LIBOBJS$ac_delim
23725 LTLIBOBJS!$LTLIBOBJS$ac_delim
23728 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
23730 elif $ac_last_try; then
23731 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23732 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23733 { (exit 1); exit 1; }; }
23735 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23739 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23740 if test -n "$ac_eof"; then
23741 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23742 ac_eof
=`expr $ac_eof + 1`
23745 cat >>$CONFIG_STATUS <<_ACEOF
23746 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23750 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23751 s/^/s,@/; s/!/@,|#_!!_#|/
23754 s/'"$ac_delim"'$/,g/; t
23756 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23757 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23758 rm -f conf$
$subs.
sed
23759 cat >>$CONFIG_STATUS <<_ACEOF
23766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23768 # trailing colons and then remove the whole line if VPATH becomes empty
23769 # (actually we leave an empty line to preserve line numbers).
23770 if test "x$srcdir" = x.
; then
23771 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23772 s/:*\$(srcdir):*/:/
23773 s/:*\${srcdir}:*/:/
23775 s/^\([^=]*=[ ]*\):*/\1/
23781 cat >>$CONFIG_STATUS <<\_ACEOF
23782 fi # test -n "$CONFIG_FILES"
23785 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
23788 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23790 case $ac_mode$ac_tag in
23792 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23793 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23794 { (exit 1); exit 1; }; };;
23795 :[FH
]-) ac_tag
=-:-;;
23796 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23813 -) ac_f
="$tmp/stdin";;
23814 *) # Look for the file first in the build tree, then in the source tree
23815 # (if the path is not absolute). The absolute path cannot be DOS-style,
23816 # because $ac_f cannot contain `:'.
23820 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23822 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23823 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23824 { (exit 1); exit 1; }; };;
23826 ac_file_inputs
="$ac_file_inputs $ac_f"
23829 # Let's still pretend it is `configure' which instantiates (i.e., don't
23830 # use $as_me), people would be surprised to read:
23831 # /* config.h. Generated by config.status. */
23832 configure_input
="Generated from "`IFS=:
23833 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23834 if test x
"$ac_file" != x-
; then
23835 configure_input
="$ac_file. $configure_input"
23836 { echo "$as_me:$LINENO: creating $ac_file" >&5
23837 echo "$as_me: creating $ac_file" >&6;}
23841 *:-:* |
*:-) cat >"$tmp/stdin";;
23846 ac_dir
=`$as_dirname -- "$ac_file" ||
23847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23848 X"$ac_file" : 'X\(//\)[^/]' \| \
23849 X"$ac_file" : 'X\(//\)$' \| \
23850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23856 /^X\(\/\/\)[^/].*/{
23871 -*) as_dir
=.
/$as_dir;;
23873 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23877 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23878 *) as_qdir
=$as_dir;;
23880 as_dirs
="'$as_qdir' $as_dirs"
23881 as_dir
=`$as_dirname -- "$as_dir" ||
23882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23883 X"$as_dir" : 'X\(//\)[^/]' \| \
23884 X"$as_dir" : 'X\(//\)$' \| \
23885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23891 /^X\(\/\/\)[^/].*/{
23904 test -d "$as_dir" && break
23906 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23907 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23908 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23909 { (exit 1); exit 1; }; }; }
23913 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23915 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23916 # A ".." for each directory in $ac_dir_suffix.
23917 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23918 case $ac_top_builddir_sub in
23919 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23920 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23923 ac_abs_top_builddir
=$ac_pwd
23924 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23925 # for backward compatibility:
23926 ac_top_builddir
=$ac_top_build_prefix
23929 .
) # We are building in place.
23931 ac_top_srcdir
=$ac_top_builddir_sub
23932 ac_abs_top_srcdir
=$ac_pwd ;;
23933 [\\/]* | ?
:[\\/]* ) # Absolute name.
23934 ac_srcdir
=$srcdir$ac_dir_suffix;
23935 ac_top_srcdir
=$srcdir
23936 ac_abs_top_srcdir
=$srcdir ;;
23937 *) # Relative name.
23938 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23939 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23940 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23942 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23952 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23953 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23955 ac_MKDIR_P
=$MKDIR_P
23957 [\\/$
]* | ?
:[\\/]* ) ;;
23958 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 # If the template does not know about datarootdir, expand it.
23964 # FIXME: This hack should be removed a few years after 2.60.
23965 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23967 case `sed -n '/datarootdir/ {
23976 ' $ac_file_inputs` in
23977 *datarootdir
*) ac_datarootdir_seen
=yes;;
23978 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23979 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23980 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983 ac_datarootdir_hack='
23984 s&@datadir@&$datadir&g
23985 s&@docdir@&$docdir&g
23986 s&@infodir@&$infodir&g
23987 s&@localedir@&$localedir&g
23988 s&@mandir@&$mandir&g
23989 s&\\\${datarootdir}&$datarootdir&g' ;;
23993 # Neutralize VPATH when `$srcdir' = `.'.
23994 # Shell code in configure.ac might set extrasub.
23995 # FIXME: do we really want to maintain this feature?
23996 cat >>$CONFIG_STATUS <<_ACEOF
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24002 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24003 s
&@configure_input@
&$configure_input&;t t
24004 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24005 s
&@srcdir@
&$ac_srcdir&;t t
24006 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24007 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24008 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24009 s
&@builddir@
&$ac_builddir&;t t
24010 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24011 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24012 s
&@INSTALL@
&$ac_INSTALL&;t t
24013 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24014 $ac_datarootdir_hack
24015 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24020 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24021 which seems to be undefined. Please make sure it is defined." >&5
24022 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24023 which seems to be undefined. Please make sure it is defined." >&2;}
24027 -) cat "$tmp/out"; rm -f "$tmp/out";;
24028 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24037 # Transform confdefs.h into a sed script `conftest.defines', that
24038 # substitutes the proper values into config.h.in to produce config.h.
24039 rm -f conftest.defines conftest.
tail
24040 # First, append a space to every undef/define line, to ease matching.
24041 echo 's/$/ /' >conftest.defines
24042 # Then, protect against being on the right side of a sed subst, or in
24043 # an unquoted here document, in config.status. If some macros were
24044 # called several times there might be several #defines for the same
24045 # symbol, which is useless. But do not sort them, since the last
24046 # AC_DEFINE must be honored.
24047 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24048 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24049 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24050 # PARAMS is the parameter list in the macro definition--in most cases, it's
24051 # just an empty string.
24052 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24053 ac_dB
='\\)[ (].*,\\1define\\2'
24061 s/^[ ]*#[ ]*define[ ][ ]*//
24066 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24067 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24068 ' >>conftest.defines
24070 # Remove the space that was appended to ease matching.
24071 # Then replace #undef with comments. This is necessary, for
24072 # example, in the case of _POSIX_SOURCE, which is predefined and required
24073 # on some systems where configure will not decide to define it.
24074 # (The regexp can be short, since the line contains either #define or #undef.)
24076 s,^[ #]*u.*,/* & */,' >>conftest.defines
24078 # Break up conftest.defines:
24079 ac_max_sed_lines
=50
24081 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24082 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24083 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24085 ac_in
='$ac_file_inputs'
24086 ac_out
='"$tmp/out1"'
24087 ac_nxt
='"$tmp/out2"'
24091 # Write a here document:
24092 cat >>$CONFIG_STATUS <<_ACEOF
24093 # First, check the format of the line:
24094 cat >"\$tmp/defines.sed" <<\\CEOF
24095 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24096 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24100 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24102 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24103 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24104 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24105 grep . conftest.
tail >/dev
/null ||
break
24106 rm -f conftest.defines
24107 mv conftest.
tail conftest.defines
24109 rm -f conftest.defines conftest.
tail
24111 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24112 cat >>$CONFIG_STATUS <<\_ACEOF
24113 if test x
"$ac_file" != x-
; then
24114 echo "/* $configure_input */" >"$tmp/config.h"
24115 cat "$ac_result" >>"$tmp/config.h"
24116 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24117 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24118 echo "$as_me: $ac_file is unchanged" >&6;}
24121 mv "$tmp/config.h" $ac_file
24124 echo "/* $configure_input */"
24128 # Compute $ac_file's index in $config_headers.
24130 for _am_header
in $config_headers :; do
24131 case $_am_header in
24132 $ac_file |
$ac_file:* )
24135 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24138 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24139 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24140 X$ac_file : 'X\(//\)[^/]' \| \
24141 X$ac_file : 'X\(//\)$' \| \
24142 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24148 /^X\(\/\/\)[^/].*/{
24160 s/.*/./; q'`/stamp-h
$_am_stamp_count
24167 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
24168 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
24170 if test ! -r "$srcdir/$ac_source"; then
24171 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24172 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24173 { (exit 1); exit 1; }; }
24177 # Try a relative symlink, then a hard link, then a copy.
24179 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
24180 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
24182 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
24183 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
24184 cp -p "$srcdir/$ac_source" "$ac_file" ||
24185 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
24186 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
24187 { (exit 1); exit 1; }; }
24189 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24190 echo "$as_me: executing $ac_file commands" >&6;}
24195 case $ac_file$ac_mode in
24196 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
24197 # Strip MF so we end up with the name of the file.
24198 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24199 # Check whether this is an Automake generated Makefile or not.
24200 # We used to match only the files named `Makefile.in', but
24201 # some people rename them; so instead we look at the file content.
24202 # Grep'ing the first line is not enough: some people post-process
24203 # each Makefile.in and add a new line on top of each file to say so.
24204 # Grep'ing the whole file is not good either: AIX grep has a line
24205 # limit of 2048, but all sed's we know have understand at least 4000.
24206 if sed 10q
"$mf" |
grep '^#.*generated by automake' > /dev
/null
2>&1; then
24207 dirpart
=`$as_dirname -- "$mf" ||
24208 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24209 X"$mf" : 'X\(//\)[^/]' \| \
24210 X"$mf" : 'X\(//\)$' \| \
24211 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24217 /^X\(\/\/\)[^/].*/{
24233 # Extract the definition of DEPDIR, am__include, and am__quote
24234 # from the Makefile without running `make'.
24235 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24236 test -z "$DEPDIR" && continue
24237 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24238 test -z "am__include" && continue
24239 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24240 # When using ansi2knr, U may be empty or an underscore; expand it
24241 U
=`sed -n 's/^U = //p' < "$mf"`
24242 # Find all dependency output files, they are included files with
24243 # $(DEPDIR) in their names. We invoke sed twice because it is the
24244 # simplest approach to changing $(DEPDIR) to its actual value in the
24246 for file in `sed -n "
24247 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24248 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24249 # Make sure the directory exists.
24250 test -f "$dirpart/$file" && continue
24251 fdir
=`$as_dirname -- "$file" ||
24252 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24253 X"$file" : 'X\(//\)[^/]' \| \
24254 X"$file" : 'X\(//\)$' \| \
24255 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24261 /^X\(\/\/\)[^/].*/{
24274 { as_dir
=$dirpart/$fdir
24276 -*) as_dir
=.
/$as_dir;;
24278 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24282 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24283 *) as_qdir
=$as_dir;;
24285 as_dirs
="'$as_qdir' $as_dirs"
24286 as_dir
=`$as_dirname -- "$as_dir" ||
24287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24288 X"$as_dir" : 'X\(//\)[^/]' \| \
24289 X"$as_dir" : 'X\(//\)$' \| \
24290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24296 /^X\(\/\/\)[^/].*/{
24309 test -d "$as_dir" && break
24311 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24312 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24313 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24314 { (exit 1); exit 1; }; }; }
24315 # echo "creating $dirpart/$file"
24316 echo '# dummy' > "$dirpart/$file"
24325 { (exit 0); exit 0; }
24327 chmod +x
$CONFIG_STATUS
24328 ac_clean_files
=$ac_clean_files_save
24331 # configure is writing to config.log, and then calls config.status.
24332 # config.status does its own redirection, appending to config.log.
24333 # Unfortunately, on DOS this fails, as config.log is still kept open
24334 # by configure, so config.status won't be able to write to it; its
24335 # output is simply discarded. So we exec the FD to /dev/null,
24336 # effectively closing config.log, so it can be properly (re)opened and
24337 # appended to by config.status. When coming back to configure, we
24338 # need to make the FD available again.
24339 if test "$no_create" != yes; then
24341 ac_config_status_args
=
24342 test "$silent" = yes &&
24343 ac_config_status_args
="$ac_config_status_args --quiet"
24345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24348 # would make configure fail if this is the last instruction.
24349 $ac_cs_success ||
{ (exit 1); exit 1; }