version 1.1.1.1, 2012/02/21 23:37:58
|
version 1.1.1.3, 2014/06/15 19:53:38
|
Line 1
|
Line 1
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
# |
# |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
# Inc. | # Foundation, Inc. |
# Written by Gordon Matzigkeit, 1996 |
# Written by Gordon Matzigkeit, 1996 |
# |
# |
# This file is free software; the Free Software Foundation gives |
# This file is free software; the Free Software Foundation gives |
Line 11
|
Line 11
|
|
|
m4_define([_LT_COPYING], [dnl |
m4_define([_LT_COPYING], [dnl |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
# Inc. | # Foundation, Inc. |
# Written by Gordon Matzigkeit, 1996 |
# Written by Gordon Matzigkeit, 1996 |
# |
# |
# This file is part of GNU Libtool. |
# This file is part of GNU Libtool. |
Line 146 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
Line 146 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
|
|
|
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl |
|
dnl |
_LT_DECL([], [host_alias], [0], [The host system])dnl |
_LT_DECL([], [host_alias], [0], [The host system])dnl |
_LT_DECL([], [host], [0])dnl |
_LT_DECL([], [host], [0])dnl |
_LT_DECL([], [host_os], [0])dnl |
_LT_DECL([], [host_os], [0])dnl |
Line 168 _LT_DECL([], [exeext], [0], [Executable file suffix (n
|
Line 170 _LT_DECL([], [exeext], [0], [Executable file suffix (n
|
dnl |
dnl |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
|
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl |
m4_require([_LT_CMD_RELOAD])dnl |
m4_require([_LT_CMD_RELOAD])dnl |
m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
|
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl |
m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
|
m4_require([_LT_WITH_SYSROOT])dnl |
|
|
_LT_CONFIG_LIBTOOL_INIT([ |
_LT_CONFIG_LIBTOOL_INIT([ |
# See if we are running on zsh, and set the options which allow our |
# See if we are running on zsh, and set the options which allow our |
Line 634 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.
|
Line 639 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
configured by $[0], generated by m4_PACKAGE_STRING. |
configured by $[0], generated by m4_PACKAGE_STRING. |
|
|
Copyright (C) 2010 Free Software Foundation, Inc. | Copyright (C) 2011 Free Software Foundation, Inc. |
This config.lt script is free software; the Free Software Foundation |
This config.lt script is free software; the Free Software Foundation |
gives unlimited permision to copy, distribute and modify it." |
gives unlimited permision to copy, distribute and modify it." |
|
|
Line 748 _LT_EOF
|
Line 753 _LT_EOF
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
# text mode, it properly converts lines to CR/LF. This bash problem |
# text mode, it properly converts lines to CR/LF. This bash problem |
# is reportedly fixed, but why not run on old versions too? |
# is reportedly fixed, but why not run on old versions too? |
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | sed '$q' "$ltmain" >> "$cfgfile" \ |
|| (rm -f "$cfgfile"; exit 1) | || (rm -f "$cfgfile"; exit 1) |
|
|
_LT_PROG_XSI_SHELLFNS | _LT_PROG_REPLACE_SHELLFNS |
|
|
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | mv -f "$cfgfile" "$ofile" || |
|| (rm -f "$cfgfile"; exit 1) | |
| |
mv -f "$cfgfile" "$ofile" || | |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
chmod +x "$ofile" |
chmod +x "$ofile" |
], |
], |
Line 801 AC_DEFUN([LT_LANG],
|
Line 803 AC_DEFUN([LT_LANG],
|
m4_case([$1], |
m4_case([$1], |
[C], [_LT_LANG(C)], |
[C], [_LT_LANG(C)], |
[C++], [_LT_LANG(CXX)], |
[C++], [_LT_LANG(CXX)], |
|
[Go], [_LT_LANG(GO)], |
[Java], [_LT_LANG(GCJ)], |
[Java], [_LT_LANG(GCJ)], |
[Fortran 77], [_LT_LANG(F77)], |
[Fortran 77], [_LT_LANG(F77)], |
[Fortran], [_LT_LANG(FC)], |
[Fortran], [_LT_LANG(FC)], |
Line 822 m4_defun([_LT_LANG],
|
Line 825 m4_defun([_LT_LANG],
|
])# _LT_LANG |
])# _LT_LANG |
|
|
|
|
|
m4_ifndef([AC_PROG_GO], [ |
|
############################################################ |
|
# NOTE: This macro has been submitted for inclusion into # |
|
# GNU Autoconf as AC_PROG_GO. When it is available in # |
|
# a released version of Autoconf we should remove this # |
|
# macro and use it instead. # |
|
############################################################ |
|
m4_defun([AC_PROG_GO], |
|
[AC_LANG_PUSH(Go)dnl |
|
AC_ARG_VAR([GOC], [Go compiler command])dnl |
|
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl |
|
_AC_ARG_VAR_LDFLAGS()dnl |
|
AC_CHECK_TOOL(GOC, gccgo) |
|
if test -z "$GOC"; then |
|
if test -n "$ac_tool_prefix"; then |
|
AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) |
|
fi |
|
fi |
|
if test -z "$GOC"; then |
|
AC_CHECK_PROG(GOC, gccgo, gccgo, false) |
|
fi |
|
])#m4_defun |
|
])#m4_ifndef |
|
|
|
|
# _LT_LANG_DEFAULT_CONFIG |
# _LT_LANG_DEFAULT_CONFIG |
# ----------------------- |
# ----------------------- |
m4_defun([_LT_LANG_DEFAULT_CONFIG], |
m4_defun([_LT_LANG_DEFAULT_CONFIG], |
Line 852 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
Line 880 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
|
m4_ifdef([LT_PROG_GCJ], |
m4_ifdef([LT_PROG_GCJ], |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
|
|
|
AC_PROVIDE_IFELSE([AC_PROG_GO], |
|
[LT_LANG(GO)], |
|
[m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) |
|
|
AC_PROVIDE_IFELSE([LT_PROG_RC], |
AC_PROVIDE_IFELSE([LT_PROG_RC], |
[LT_LANG(RC)], |
[LT_LANG(RC)], |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
Line 954 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
Line 986 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
_lt_result=$? |
_lt_result=$? |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | # If there is a non-empty error log, and "single_module" |
| # appears in it, assume the flag caused a linker warning |
| if test -s conftest.err && $GREP single_module conftest.err; then |
| cat conftest.err >&AS_MESSAGE_LOG_FD |
| # Otherwise, if the output was created with a 0 exit code from |
| # the compiler, it worked. |
| elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
lt_cv_apple_cc_single_mod=yes |
lt_cv_apple_cc_single_mod=yes |
else |
else |
cat conftest.err >&AS_MESSAGE_LOG_FD |
cat conftest.err >&AS_MESSAGE_LOG_FD |
Line 962 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
Line 1000 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
rm -rf libconftest.dylib* |
rm -rf libconftest.dylib* |
rm -f conftest.* |
rm -f conftest.* |
fi]) |
fi]) |
|
|
AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
[lt_cv_ld_exported_symbols_list], |
[lt_cv_ld_exported_symbols_list], |
[lt_cv_ld_exported_symbols_list=no |
[lt_cv_ld_exported_symbols_list=no |
Line 973 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
Line 1012 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
|
[lt_cv_ld_exported_symbols_list=no]) |
[lt_cv_ld_exported_symbols_list=no]) |
LDFLAGS="$save_LDFLAGS" |
LDFLAGS="$save_LDFLAGS" |
]) |
]) |
|
|
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
[lt_cv_ld_force_load=no |
[lt_cv_ld_force_load=no |
cat > conftest.c << _LT_EOF |
cat > conftest.c << _LT_EOF |
Line 990 _LT_EOF
|
Line 1030 _LT_EOF
|
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
_lt_result=$? |
_lt_result=$? |
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | if test -s conftest.err && $GREP force_load conftest.err; then |
| cat conftest.err >&AS_MESSAGE_LOG_FD |
| elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
lt_cv_ld_force_load=yes |
lt_cv_ld_force_load=yes |
else |
else |
cat conftest.err >&AS_MESSAGE_LOG_FD |
cat conftest.err >&AS_MESSAGE_LOG_FD |
Line 1035 _LT_EOF
|
Line 1077 _LT_EOF
|
]) |
]) |
|
|
|
|
# _LT_DARWIN_LINKER_FEATURES | # _LT_DARWIN_LINKER_FEATURES([TAG]) |
# -------------------------- | # --------------------------------- |
# Checks for linker and compiler features on darwin |
# Checks for linker and compiler features on darwin |
m4_defun([_LT_DARWIN_LINKER_FEATURES], |
m4_defun([_LT_DARWIN_LINKER_FEATURES], |
[ |
[ |
Line 1047 m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
Line 1089 m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
if test "$lt_cv_ld_force_load" = "yes"; then |
if test "$lt_cv_ld_force_load" = "yes"; then |
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
|
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], |
|
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) |
else |
else |
_LT_TAGVAR(whole_archive_flag_spec, $1)='' |
_LT_TAGVAR(whole_archive_flag_spec, $1)='' |
fi |
fi |
Line 1073 m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
Line 1117 m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
fi |
fi |
]) |
]) |
|
|
# _LT_SYS_MODULE_PATH_AIX | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) |
# ----------------------- | # ---------------------------------- |
# Links a minimal program and checks the executable |
# Links a minimal program and checks the executable |
# for the system default hardcoded library path. In most cases, |
# for the system default hardcoded library path. In most cases, |
# this is /usr/lib:/lib, but when the MPI compilers are used |
# this is /usr/lib:/lib, but when the MPI compilers are used |
# the location of the communication and MPI libs are included too. |
# the location of the communication and MPI libs are included too. |
# If we don't find anything, use the default library path according |
# If we don't find anything, use the default library path according |
# to the aix ld manual. |
# to the aix ld manual. |
|
# Store the results from the different compilers for each TAGNAME. |
|
# Allow to override them for all tags through lt_cv_aix_libpath. |
m4_defun([_LT_SYS_MODULE_PATH_AIX], |
m4_defun([_LT_SYS_MODULE_PATH_AIX], |
[m4_require([_LT_DECL_SED])dnl |
[m4_require([_LT_DECL_SED])dnl |
AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | if test "${lt_cv_aix_libpath+set}" = set; then |
lt_aix_libpath_sed=' | aix_libpath=$lt_cv_aix_libpath |
/Import File Strings/,/^$/ { | else |
/^0/ { | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], |
s/^0 *\(.*\)$/\1/ | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ |
p | lt_aix_libpath_sed='[ |
} | /Import File Strings/,/^$/ { |
}' | /^0/ { |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | s/^0 *\([^ ]*\) *$/\1/ |
# Check for a 64-bit object if we didn't find anything. | p |
if test -z "$aix_libpath"; then | } |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | }]' |
fi],[]) | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | # Check for a 64-bit object if we didn't find anything. |
| if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| fi],[]) |
| if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then |
| _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" |
| fi |
| ]) |
| aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) |
| fi |
])# _LT_SYS_MODULE_PATH_AIX |
])# _LT_SYS_MODULE_PATH_AIX |
|
|
|
|
Line 1121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
Line 1176 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
AC_MSG_CHECKING([how to print strings]) |
AC_MSG_CHECKING([how to print strings]) |
# Test print first, because it will be a builtin if present. |
# Test print first, because it will be a builtin if present. |
if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
ECHO='print -r --' |
ECHO='print -r --' |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
Line 1165 _LT_DECL([], [ECHO], [1], [An echo program that protec
|
Line 1220 _LT_DECL([], [ECHO], [1], [An echo program that protec
|
])# _LT_PROG_ECHO_BACKSLASH |
])# _LT_PROG_ECHO_BACKSLASH |
|
|
|
|
|
# _LT_WITH_SYSROOT |
|
# ---------------- |
|
AC_DEFUN([_LT_WITH_SYSROOT], |
|
[AC_MSG_CHECKING([for sysroot]) |
|
AC_ARG_WITH([sysroot], |
|
[ --with-sysroot[=DIR] Search for dependent libraries within DIR |
|
(or the compiler's sysroot if not specified).], |
|
[], [with_sysroot=no]) |
|
|
|
dnl lt_sysroot will always be passed unquoted. We quote it here |
|
dnl in case the user passed a directory name. |
|
lt_sysroot= |
|
case ${with_sysroot} in #( |
|
yes) |
|
if test "$GCC" = yes; then |
|
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
|
fi |
|
;; #( |
|
/*) |
|
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
|
;; #( |
|
no|'') |
|
;; #( |
|
*) |
|
AC_MSG_RESULT([${with_sysroot}]) |
|
AC_MSG_ERROR([The sysroot must be an absolute path.]) |
|
;; |
|
esac |
|
|
|
AC_MSG_RESULT([${lt_sysroot:-no}]) |
|
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl |
|
[dependent libraries, and in which our libraries should be installed.])]) |
|
|
# _LT_ENABLE_LOCK |
# _LT_ENABLE_LOCK |
# --------------- |
# --------------- |
m4_defun([_LT_ENABLE_LOCK], |
m4_defun([_LT_ENABLE_LOCK], |
Line 1286 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
Line 1374 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
CFLAGS="$SAVE_CFLAGS" |
CFLAGS="$SAVE_CFLAGS" |
fi |
fi |
;; |
;; |
sparc*-*solaris*) | *-*solaris*) |
# Find out which ABI we are using. |
# Find out which ABI we are using. |
echo 'int i;' > conftest.$ac_ext |
echo 'int i;' > conftest.$ac_ext |
if AC_TRY_EVAL(ac_compile); then |
if AC_TRY_EVAL(ac_compile); then |
case `/usr/bin/file conftest.o` in |
case `/usr/bin/file conftest.o` in |
*64-bit*) |
*64-bit*) |
case $lt_cv_prog_gnu_ld in |
case $lt_cv_prog_gnu_ld in |
yes*) LD="${LD-ld} -m elf64_sparc" ;; | yes*) |
| case $host in |
| i?86-*-solaris*) |
| LD="${LD-ld} -m elf_x86_64" |
| ;; |
| sparc*-*-solaris*) |
| LD="${LD-ld} -m elf64_sparc" |
| ;; |
| esac |
| # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| LD="${LD-ld}_sol2" |
| fi |
| ;; |
*) |
*) |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
LD="${LD-ld} -64" |
LD="${LD-ld} -64" |
Line 1311 need_locks="$enable_libtool_lock"
|
Line 1412 need_locks="$enable_libtool_lock"
|
])# _LT_ENABLE_LOCK |
])# _LT_ENABLE_LOCK |
|
|
|
|
|
# _LT_PROG_AR |
|
# ----------- |
|
m4_defun([_LT_PROG_AR], |
|
[AC_CHECK_TOOLS(AR, [ar], false) |
|
: ${AR=ar} |
|
: ${AR_FLAGS=cru} |
|
_LT_DECL([], [AR], [1], [The archiver]) |
|
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) |
|
|
|
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], |
|
[lt_cv_ar_at_file=no |
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM], |
|
[echo conftest.$ac_objext > conftest.lst |
|
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' |
|
AC_TRY_EVAL([lt_ar_try]) |
|
if test "$ac_status" -eq 0; then |
|
# Ensure the archiver fails upon bogus file names. |
|
rm -f conftest.$ac_objext libconftest.a |
|
AC_TRY_EVAL([lt_ar_try]) |
|
if test "$ac_status" -ne 0; then |
|
lt_cv_ar_at_file=@ |
|
fi |
|
fi |
|
rm -f conftest.* libconftest.a |
|
]) |
|
]) |
|
|
|
if test "x$lt_cv_ar_at_file" = xno; then |
|
archiver_list_spec= |
|
else |
|
archiver_list_spec=$lt_cv_ar_at_file |
|
fi |
|
_LT_DECL([], [archiver_list_spec], [1], |
|
[How to feed a file listing to the archiver]) |
|
])# _LT_PROG_AR |
|
|
|
|
# _LT_CMD_OLD_ARCHIVE |
# _LT_CMD_OLD_ARCHIVE |
# ------------------- |
# ------------------- |
m4_defun([_LT_CMD_OLD_ARCHIVE], |
m4_defun([_LT_CMD_OLD_ARCHIVE], |
[AC_CHECK_TOOL(AR, ar, false) | [_LT_PROG_AR |
test -z "$AR" && AR=ar | |
test -z "$AR_FLAGS" && AR_FLAGS=cru | |
_LT_DECL([], [AR], [1], [The archiver]) | |
_LT_DECL([], [AR_FLAGS], [1]) | |
|
|
AC_CHECK_TOOL(STRIP, strip, :) |
AC_CHECK_TOOL(STRIP, strip, :) |
test -z "$STRIP" && STRIP=: |
test -z "$STRIP" && STRIP=: |
Line 1337 old_postuninstall_cmds=
|
Line 1471 old_postuninstall_cmds=
|
if test -n "$RANLIB"; then |
if test -n "$RANLIB"; then |
case $host_os in |
case $host_os in |
openbsd*) |
openbsd*) |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
;; |
;; |
*) |
*) |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
;; |
;; |
esac |
esac |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
fi |
fi |
|
|
case $host_os in |
case $host_os in |
Line 1523 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
Line 1657 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
lt_cv_sys_max_cmd_len=196608 |
lt_cv_sys_max_cmd_len=196608 |
;; |
;; |
|
|
|
os2*) |
|
# The test takes a long time on OS/2. |
|
lt_cv_sys_max_cmd_len=8192 |
|
;; |
|
|
osf*) |
osf*) |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
Line 1562 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
Line 1701 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
# If test is not a shell built-in, we'll probably end up computing a |
# If test is not a shell built-in, we'll probably end up computing a |
# maximum length that is only half of the actual maximum length, but |
# maximum length that is only half of the actual maximum length, but |
# we can't tell. |
# we can't tell. |
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
test $i != 17 # 1/2 MB should be enough |
test $i != 17 # 1/2 MB should be enough |
do |
do |
Line 1658 else
|
Line 1797 else
|
/* When -fvisbility=hidden is used, assume the code has been annotated |
/* When -fvisbility=hidden is used, assume the code has been annotated |
correspondingly for the symbols needed. */ |
correspondingly for the symbols needed. */ |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
void fnord () __attribute__((visibility("default"))); | int fnord () __attribute__((visibility("default"))); |
#endif |
#endif |
|
|
void fnord () { int i=42; } | int fnord () { return 42; } |
int main () |
int main () |
{ |
{ |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
Line 2108 need_version=unknown
|
Line 2247 need_version=unknown
|
|
|
case $host_os in |
case $host_os in |
aix3*) |
aix3*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
shlibpath_var=LIBPATH |
shlibpath_var=LIBPATH |
|
|
Line 2117 aix3*)
|
Line 2256 aix3*)
|
;; |
;; |
|
|
aix[[4-9]]*) |
aix[[4-9]]*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
Line 2182 beos*)
|
Line 2321 beos*)
|
;; |
;; |
|
|
bsdi[[45]]*) |
bsdi[[45]]*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
Line 2201 cygwin* | mingw* | pw32* | cegcc*)
|
Line 2340 cygwin* | mingw* | pw32* | cegcc*)
|
need_version=no |
need_version=no |
need_lib_prefix=no |
need_lib_prefix=no |
|
|
case $GCC,$host_os in | case $GCC,$cc_basename in |
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | yes,*) |
| # gcc |
library_names_spec='$libname.dll.a' |
library_names_spec='$libname.dll.a' |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
postinstall_cmds='base_file=`basename \${file}`~ |
postinstall_cmds='base_file=`basename \${file}`~ |
Line 2235 m4_if([$1], [],[
|
Line 2375 m4_if([$1], [],[
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
;; |
;; |
esac |
esac |
|
dynamic_linker='Win32 ld.exe' |
;; |
;; |
|
|
|
*,cl*) |
|
# Native MSVC |
|
libname_spec='$name' |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
|
library_names_spec='${libname}.dll.lib' |
|
|
|
case $build_os in |
|
mingw*) |
|
sys_lib_search_path_spec= |
|
lt_save_ifs=$IFS |
|
IFS=';' |
|
for lt_path in $LIB |
|
do |
|
IFS=$lt_save_ifs |
|
# Let DOS variable expansion print the short 8.3 style file name. |
|
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
|
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
|
done |
|
IFS=$lt_save_ifs |
|
# Convert to MSYS style. |
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` |
|
;; |
|
cygwin*) |
|
# Convert to unix form, then to dos form, then back to unix form |
|
# but this time dos style (no spaces!) so that the unix form looks |
|
# like /cygdrive/c/PROGRA~1:/cygdr... |
|
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
|
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
|
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
;; |
|
*) |
|
sys_lib_search_path_spec="$LIB" |
|
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
|
# It is most probably a Windows format PATH. |
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
else |
|
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
fi |
|
# FIXME: find the short name or the path components, as spaces are |
|
# common. (e.g. "Program Files" -> "PROGRA~1") |
|
;; |
|
esac |
|
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
postinstall_cmds='base_file=`basename \${file}`~ |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
dldir=$destdir/`dirname \$dlpath`~ |
|
test -d \$dldir || mkdir -p \$dldir~ |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
dlpath=$dir/\$dldll~ |
|
$RM \$dlpath' |
|
shlibpath_overrides_runpath=yes |
|
dynamic_linker='Win32 link.exe' |
|
;; |
|
|
*) |
*) |
|
# Assume MSVC wrapper |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
dynamic_linker='Win32 ld.exe' |
;; |
;; |
esac |
esac |
dynamic_linker='Win32 ld.exe' |
|
# FIXME: first we should search . and the directory the executable is in |
# FIXME: first we should search . and the directory the executable is in |
shlibpath_var=PATH |
shlibpath_var=PATH |
;; |
;; |
Line 2262 m4_if([$1], [],[
|
Line 2460 m4_if([$1], [],[
|
;; |
;; |
|
|
dgux*) |
dgux*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
Line 2270 dgux*)
|
Line 2468 dgux*)
|
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
;; |
;; |
|
|
freebsd1*) |
|
dynamic_linker=no |
|
;; |
|
|
|
freebsd* | dragonfly*) |
freebsd* | dragonfly*) |
# DragonFly does not have aout. When/if they implement a new |
# DragonFly does not have aout. When/if they implement a new |
# versioning mechanism, adjust this. |
# versioning mechanism, adjust this. |
Line 2281 freebsd* | dragonfly*)
|
Line 2475 freebsd* | dragonfly*)
|
objformat=`/usr/bin/objformat` |
objformat=`/usr/bin/objformat` |
else |
else |
case $host_os in |
case $host_os in |
freebsd[[123]]*) objformat=aout ;; | freebsd[[23]].*) objformat=aout ;; |
*) objformat=elf ;; |
*) objformat=elf ;; |
esac |
esac |
fi |
fi |
Line 2299 freebsd* | dragonfly*)
|
Line 2493 freebsd* | dragonfly*)
|
esac |
esac |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
case $host_os in |
case $host_os in |
freebsd2*) | freebsd2.*) |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
;; |
;; |
freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
Line 2319 freebsd* | dragonfly*)
|
Line 2513 freebsd* | dragonfly*)
|
;; |
;; |
|
|
gnu*) |
gnu*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
|
shlibpath_overrides_runpath=no |
hardcode_into_libs=yes |
hardcode_into_libs=yes |
;; |
;; |
|
|
haiku*) |
haiku*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
dynamic_linker="$host_os runtime_loader" |
dynamic_linker="$host_os runtime_loader" |
Line 2390 hpux9* | hpux10* | hpux11*)
|
Line 2585 hpux9* | hpux10* | hpux11*)
|
;; |
;; |
|
|
interix[[3-9]]*) |
interix[[3-9]]*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
Line 2406 irix5* | irix6* | nonstopux*)
|
Line 2601 irix5* | irix6* | nonstopux*)
|
nonstopux*) version_type=nonstopux ;; |
nonstopux*) version_type=nonstopux ;; |
*) |
*) |
if test "$lt_cv_prog_gnu_ld" = yes; then |
if test "$lt_cv_prog_gnu_ld" = yes; then |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
else |
else |
version_type=irix |
version_type=irix |
fi ;; |
fi ;; |
Line 2443 linux*oldld* | linux*aout* | linux*coff*)
|
Line 2638 linux*oldld* | linux*aout* | linux*coff*)
|
dynamic_linker=no |
dynamic_linker=no |
;; |
;; |
|
|
# This must be Linux ELF. | # This must be glibc/ELF. |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
Line 2512 netbsd*)
|
Line 2707 netbsd*)
|
;; |
;; |
|
|
newsos6) |
newsos6) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_overrides_runpath=yes |
shlibpath_overrides_runpath=yes |
Line 2581 rdos*)
|
Line 2776 rdos*)
|
;; |
;; |
|
|
solaris*) |
solaris*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
Line 2606 sunos4*)
|
Line 2801 sunos4*)
|
;; |
;; |
|
|
sysv4 | sysv4.3*) |
sysv4 | sysv4.3*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
Line 2630 sysv4 | sysv4.3*)
|
Line 2825 sysv4 | sysv4.3*)
|
|
|
sysv4*MP*) |
sysv4*MP*) |
if test -d /usr/nec ;then |
if test -d /usr/nec ;then |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
soname_spec='$libname${shared_ext}.$major' |
soname_spec='$libname${shared_ext}.$major' |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
Line 2661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* |
|
Line 2856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* |
|
|
|
tpf*) |
tpf*) |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
need_lib_prefix=no |
need_lib_prefix=no |
need_version=no |
need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
Line 2671 tpf*)
|
Line 2866 tpf*)
|
;; |
;; |
|
|
uts4*) |
uts4*) |
version_type=linux | version_type=linux # correct to gnu/linux during the next big refactor |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' |
soname_spec='${libname}${release}${shared_ext}$major' |
shlibpath_var=LD_LIBRARY_PATH |
shlibpath_var=LD_LIBRARY_PATH |
Line 2949 case $reload_flag in
|
Line 3144 case $reload_flag in
|
esac |
esac |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
case $host_os in |
case $host_os in |
|
cygwin* | mingw* | pw32* | cegcc*) |
|
if test "$GCC" != yes; then |
|
reload_cmds=false |
|
fi |
|
;; |
darwin*) |
darwin*) |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
Line 3088 irix5* | irix6* | nonstopux*)
|
Line 3288 irix5* | irix6* | nonstopux*)
|
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
;; |
;; |
|
|
# This must be Linux ELF. | # This must be glibc/ELF. |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
;; |
;; |
Line 3167 tpf*)
|
Line 3367 tpf*)
|
;; |
;; |
esac |
esac |
]) |
]) |
|
|
|
file_magic_glob= |
|
want_nocaseglob=no |
|
if test "$build" = "$host"; then |
|
case $host_os in |
|
mingw* | pw32*) |
|
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
|
want_nocaseglob=yes |
|
else |
|
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` |
|
fi |
|
;; |
|
esac |
|
fi |
|
|
file_magic_cmd=$lt_cv_file_magic_cmd |
file_magic_cmd=$lt_cv_file_magic_cmd |
deplibs_check_method=$lt_cv_deplibs_check_method |
deplibs_check_method=$lt_cv_deplibs_check_method |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
Line 3174 test -z "$deplibs_check_method" && deplibs_check_metho
|
Line 3389 test -z "$deplibs_check_method" && deplibs_check_metho
|
_LT_DECL([], [deplibs_check_method], [1], |
_LT_DECL([], [deplibs_check_method], [1], |
[Method to check whether dependent libraries are shared objects]) |
[Method to check whether dependent libraries are shared objects]) |
_LT_DECL([], [file_magic_cmd], [1], |
_LT_DECL([], [file_magic_cmd], [1], |
[Command to use when deplibs_check_method == "file_magic"]) | [Command to use when deplibs_check_method = "file_magic"]) |
| _LT_DECL([], [file_magic_glob], [1], |
| [How to find potential files when deplibs_check_method = "file_magic"]) |
| _LT_DECL([], [want_nocaseglob], [1], |
| [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) |
])# _LT_CHECK_MAGIC_METHOD |
])# _LT_CHECK_MAGIC_METHOD |
|
|
|
|
Line 3277 dnl aclocal-1.4 backwards compatibility:
|
Line 3496 dnl aclocal-1.4 backwards compatibility:
|
dnl AC_DEFUN([AM_PROG_NM], []) |
dnl AC_DEFUN([AM_PROG_NM], []) |
dnl AC_DEFUN([AC_PROG_NM], []) |
dnl AC_DEFUN([AC_PROG_NM], []) |
|
|
|
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
|
# -------------------------------- |
|
# how to determine the name of the shared library |
|
# associated with a specific link library. |
|
# -- PORTME fill in with the dynamic library characteristics |
|
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], |
|
[m4_require([_LT_DECL_EGREP]) |
|
m4_require([_LT_DECL_OBJDUMP]) |
|
m4_require([_LT_DECL_DLLTOOL]) |
|
AC_CACHE_CHECK([how to associate runtime and link libraries], |
|
lt_cv_sharedlib_from_linklib_cmd, |
|
[lt_cv_sharedlib_from_linklib_cmd='unknown' |
|
|
|
case $host_os in |
|
cygwin* | mingw* | pw32* | cegcc*) |
|
# two different shell functions defined in ltmain.sh |
|
# decide which to use based on capabilities of $DLLTOOL |
|
case `$DLLTOOL --help 2>&1` in |
|
*--identify-strict*) |
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
|
;; |
|
*) |
|
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
|
;; |
|
esac |
|
;; |
|
*) |
|
# fallback: assume linklib IS sharedlib |
|
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
|
;; |
|
esac |
|
]) |
|
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
|
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
|
|
|
_LT_DECL([], [sharedlib_from_linklib_cmd], [1], |
|
[Command to associate shared and link libraries]) |
|
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB |
|
|
|
|
|
# _LT_PATH_MANIFEST_TOOL |
|
# ---------------------- |
|
# locate the manifest tool |
|
m4_defun([_LT_PATH_MANIFEST_TOOL], |
|
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) |
|
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
|
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], |
|
[lt_cv_path_mainfest_tool=no |
|
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD |
|
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
|
cat conftest.err >&AS_MESSAGE_LOG_FD |
|
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
|
lt_cv_path_mainfest_tool=yes |
|
fi |
|
rm -f conftest*]) |
|
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
|
MANIFEST_TOOL=: |
|
fi |
|
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl |
|
])# _LT_PATH_MANIFEST_TOOL |
|
|
|
|
# LT_LIB_M |
# LT_LIB_M |
# -------- |
# -------- |
# check for math library |
# check for math library |
Line 3403 esac
|
Line 3683 esac
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
# Transform an extracted symbol line into symbol name and symbol address |
# Transform an extracted symbol line into symbol name and symbol address |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
|
|
# Handle CRLF in mingw tool chain |
# Handle CRLF in mingw tool chain |
opt_cr= |
opt_cr= |
Line 3428 for ac_symprfx in "" "_"; do
|
Line 3708 for ac_symprfx in "" "_"; do
|
# which start with @ or ?. |
# which start with @ or ?. |
lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
" {last_section=section; section=\$ 3};"\ |
" {last_section=section; section=\$ 3};"\ |
|
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
" \$ 0!~/External *\|/{next};"\ |
" \$ 0!~/External *\|/{next};"\ |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
Line 3440 for ac_symprfx in "" "_"; do
|
Line 3721 for ac_symprfx in "" "_"; do
|
else |
else |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
fi |
fi |
|
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
|
|
# Check to see that the pipe works correctly. |
# Check to see that the pipe works correctly. |
pipe_works=no |
pipe_works=no |
Line 3473 _LT_EOF
|
Line 3755 _LT_EOF
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
cat <<_LT_EOF > conftest.$ac_ext |
cat <<_LT_EOF > conftest.$ac_ext |
|
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
|
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
|
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
|
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
|
# define LT@&t@_DLSYM_CONST |
|
#elif defined(__osf__) |
|
/* This system does not cope well with relocations in const data. */ |
|
# define LT@&t@_DLSYM_CONST |
|
#else |
|
# define LT@&t@_DLSYM_CONST const |
|
#endif |
|
|
#ifdef __cplusplus |
#ifdef __cplusplus |
extern "C" { |
extern "C" { |
#endif |
#endif |
Line 3484 _LT_EOF
|
Line 3778 _LT_EOF
|
cat <<_LT_EOF >> conftest.$ac_ext |
cat <<_LT_EOF >> conftest.$ac_ext |
|
|
/* The mapping between symbol names and symbols. */ |
/* The mapping between symbol names and symbols. */ |
const struct { | LT@&t@_DLSYM_CONST struct { |
const char *name; |
const char *name; |
void *address; |
void *address; |
} |
} |
Line 3510 static const void *lt_preloaded_setup() {
|
Line 3804 static const void *lt_preloaded_setup() {
|
_LT_EOF |
_LT_EOF |
# Now try linking the two files. |
# Now try linking the two files. |
mv conftest.$ac_objext conftstm.$ac_objext |
mv conftest.$ac_objext conftstm.$ac_objext |
lt_save_LIBS="$LIBS" | lt_globsym_save_LIBS=$LIBS |
lt_save_CFLAGS="$CFLAGS" | lt_globsym_save_CFLAGS=$CFLAGS |
LIBS="conftstm.$ac_objext" |
LIBS="conftstm.$ac_objext" |
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
pipe_works=yes |
pipe_works=yes |
fi |
fi |
LIBS="$lt_save_LIBS" | LIBS=$lt_globsym_save_LIBS |
CFLAGS="$lt_save_CFLAGS" | CFLAGS=$lt_globsym_save_CFLAGS |
else |
else |
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
fi |
fi |
Line 3551 else
|
Line 3845 else
|
AC_MSG_RESULT(ok) |
AC_MSG_RESULT(ok) |
fi |
fi |
|
|
|
# Response file support. |
|
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
|
nm_file_list_spec='@' |
|
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then |
|
nm_file_list_spec='@' |
|
fi |
|
|
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
[Take the output of nm and produce a listing of raw symbols and C names]) |
[Take the output of nm and produce a listing of raw symbols and C names]) |
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
Line 3561 _LT_DECL([global_symbol_to_c_name_address],
|
Line 3862 _LT_DECL([global_symbol_to_c_name_address],
|
_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
[Transform the output of nm in a C name address pair when lib prefix is needed]) |
[Transform the output of nm in a C name address pair when lib prefix is needed]) |
|
_LT_DECL([], [nm_file_list_spec], [1], |
|
[Specify filename containing input files for $NM]) |
]) # _LT_CMD_GLOBAL_SYMBOLS |
]) # _LT_CMD_GLOBAL_SYMBOLS |
|
|
|
|
Line 3572 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
Line 3875 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
_LT_TAGVAR(lt_prog_compiler_static, $1)= |
_LT_TAGVAR(lt_prog_compiler_static, $1)= |
|
|
AC_MSG_CHECKING([for $compiler option to produce PIC]) |
|
m4_if([$1], [CXX], [ |
m4_if([$1], [CXX], [ |
# C++ specific cases for pic, static, wl, etc. |
# C++ specific cases for pic, static, wl, etc. |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
Line 3677 m4_if([$1], [CXX], [
|
Line 3979 m4_if([$1], [CXX], [
|
;; |
;; |
esac |
esac |
;; |
;; |
|
mingw* | cygwin* | os2* | pw32* | cegcc*) |
|
# This hack is so that the source file can tell whether it is being |
|
# built for inclusion in a dll (and should export symbols for example). |
|
m4_if([$1], [GCJ], [], |
|
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
|
;; |
dgux*) |
dgux*) |
case $cc_basename in |
case $cc_basename in |
ec++*) |
ec++*) |
Line 3985 m4_if([$1], [CXX], [
|
Line 4293 m4_if([$1], [CXX], [
|
case $cc_basename in |
case $cc_basename in |
nvcc*) # Cuda Compiler Driver 2.2 |
nvcc*) # Cuda Compiler Driver 2.2 |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" |
| fi |
;; |
;; |
esac |
esac |
else |
else |
Line 4051 m4_if([$1], [CXX], [
|
Line 4361 m4_if([$1], [CXX], [
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
;; |
;; |
|
nagfor*) |
|
# NAG Fortran compiler |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
;; |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
# Portland Group compilers (*not* the Pentium gcc compiler, |
# Portland Group compilers (*not* the Pentium gcc compiler, |
# which looks to be a dead project) |
# which looks to be a dead project) |
Line 4071 m4_if([$1], [CXX], [
|
Line 4387 m4_if([$1], [CXX], [
|
;; |
;; |
*) |
*) |
case `$CC -V 2>&1 | sed 5q` in |
case `$CC -V 2>&1 | sed 5q` in |
*Sun\ F* | *Sun*Fortran*) | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
;; |
;; |
|
*Sun\ F* | *Sun*Fortran*) |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
|
;; |
*Sun\ C*) |
*Sun\ C*) |
# Sun C 5.9 |
# Sun C 5.9 |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
;; |
;; |
|
*Intel*\ [[CF]]*Compiler*) |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
|
;; |
|
*Portland\ Group*) |
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
;; |
esac |
esac |
;; |
;; |
esac |
esac |
Line 4170 case $host_os in
|
Line 4501 case $host_os in
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
;; |
;; |
esac |
esac |
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
|
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
|
[How to pass a linker flag through the compiler]) |
|
|
|
|
AC_CACHE_CHECK([for $compiler option to produce PIC], |
|
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], |
|
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) |
|
|
# |
# |
# Check to make sure the PIC flag actually works. |
# Check to make sure the PIC flag actually works. |
# |
# |
Line 4191 fi
|
Line 4524 fi
|
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
[Additional compiler flags for building library objects]) |
[Additional compiler flags for building library objects]) |
|
|
|
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
|
[How to pass a linker flag through the compiler]) |
# |
# |
# Check to make sure the static flag actually works. |
# Check to make sure the static flag actually works. |
# |
# |
Line 4211 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_stat
|
Line 4546 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_stat
|
m4_defun([_LT_LINKER_SHLIBS], |
m4_defun([_LT_LINKER_SHLIBS], |
[AC_REQUIRE([LT_PATH_LD])dnl |
[AC_REQUIRE([LT_PATH_LD])dnl |
AC_REQUIRE([LT_PATH_NM])dnl |
AC_REQUIRE([LT_PATH_NM])dnl |
|
m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
m4_require([_LT_DECL_EGREP])dnl |
m4_require([_LT_DECL_EGREP])dnl |
m4_require([_LT_DECL_SED])dnl |
m4_require([_LT_DECL_SED])dnl |
Line 4219 m4_require([_LT_TAG_COMPILER])dnl
|
Line 4555 m4_require([_LT_TAG_COMPILER])dnl
|
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
m4_if([$1], [CXX], [ |
m4_if([$1], [CXX], [ |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
case $host_os in |
case $host_os in |
aix[[4-9]]*) |
aix[[4-9]]*) |
# If we're using GNU nm, then we don't want the "-C" option. |
# If we're using GNU nm, then we don't want the "-C" option. |
Line 4233 m4_if([$1], [CXX], [
|
Line 4570 m4_if([$1], [CXX], [
|
;; |
;; |
pw32*) |
pw32*) |
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
;; | ;; |
cygwin* | mingw* | cegcc*) |
cygwin* | mingw* | cegcc*) |
_LT_TAGVAR(export_symbols_cmds, $1)='$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' | case $cc_basename in |
;; | cl*) |
| _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| ;; |
| *) |
| _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' |
| _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
| ;; |
| esac |
| ;; |
*) |
*) |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
;; | ;; |
esac |
esac |
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
|
], [ |
], [ |
runpath_var= |
runpath_var= |
_LT_TAGVAR(allow_undefined_flag, $1)= |
_LT_TAGVAR(allow_undefined_flag, $1)= |
Line 4256 m4_if([$1], [CXX], [
|
Line 4600 m4_if([$1], [CXX], [
|
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
Line 4409 _LT_EOF
|
Line 4752 _LT_EOF
|
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
_LT_TAGVAR(always_export_symbols, $1)=no |
_LT_TAGVAR(always_export_symbols, $1)=no |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' |
| _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
Line 4457 _LT_EOF
|
Line 4801 _LT_EOF
|
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
&& test "$tmp_diet" = no |
&& test "$tmp_diet" = no |
then |
then |
tmp_addflag= | tmp_addflag=' $pic_flag' |
tmp_sharedflag='-shared' |
tmp_sharedflag='-shared' |
case $cc_basename,$host_cpu in |
case $cc_basename,$host_cpu in |
pgcc*) # Portland Group C compiler |
pgcc*) # Portland Group C compiler |
Line 4506 _LT_EOF
|
Line 4850 _LT_EOF
|
xlf* | bgf* | bgxlf* | mpixlf*) |
xlf* | bgf* | bgxlf* | mpixlf*) |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | |
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
if test "x$supports_anon_versioning" = xyes; then |
if test "x$supports_anon_versioning" = xyes; then |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
Line 4527 _LT_EOF
|
Line 4870 _LT_EOF
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
wlarc= |
wlarc= |
else |
else |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
fi |
fi |
;; |
;; |
|
|
Line 4546 _LT_EOF
|
Line 4889 _LT_EOF
|
|
|
_LT_EOF |
_LT_EOF |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
else |
else |
_LT_TAGVAR(ld_shlibs, $1)=no |
_LT_TAGVAR(ld_shlibs, $1)=no |
fi |
fi |
Line 4593 _LT_EOF
|
Line 4936 _LT_EOF
|
|
|
*) |
*) |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
else |
else |
_LT_TAGVAR(ld_shlibs, $1)=no |
_LT_TAGVAR(ld_shlibs, $1)=no |
fi |
fi |
Line 4724 _LT_EOF
|
Line 5067 _LT_EOF
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
# Determine the default libpath from the value encoded in an |
# Determine the default libpath from the value encoded in an |
# empty executable. |
# empty executable. |
_LT_SYS_MODULE_PATH_AIX | _LT_SYS_MODULE_PATH_AIX([$1]) |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
else |
else |
Line 4735 _LT_EOF
|
Line 5078 _LT_EOF
|
else |
else |
# Determine the default libpath from the value encoded in an |
# Determine the default libpath from the value encoded in an |
# empty executable. |
# empty executable. |
_LT_SYS_MODULE_PATH_AIX | _LT_SYS_MODULE_PATH_AIX([$1]) |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
# Warning - without using the other run time loading flags, |
# Warning - without using the other run time loading flags, |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
Line 4779 _LT_EOF
|
Line 5122 _LT_EOF
|
# Microsoft Visual C++. |
# Microsoft Visual C++. |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
# no search path for DLLs. |
# no search path for DLLs. |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | case $cc_basename in |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported | cl*) |
# Tell ltmain to make .lib files, not .a files. | # Native MSVC |
libext=lib | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
# Tell ltmain to make .dll files, not .so files. | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
shrext_cmds=".dll" | _LT_TAGVAR(always_export_symbols, $1)=yes |
# FIXME: Setting linknames here is a bad hack. | _LT_TAGVAR(file_list_spec, $1)='@' |
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | # Tell ltmain to make .lib files, not .a files. |
# The linker will automatically build a .lib file if we build a DLL. | libext=lib |
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | # Tell ltmain to make .dll files, not .so files. |
# FIXME: Should let the user specify the lib program. | shrext_cmds=".dll" |
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | # FIXME: Setting linknames here is a bad hack. |
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| else |
| sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| fi~ |
| $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| linknames=' |
| # The linker will not automatically build a static lib if we build a DLL. |
| # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' |
| # Don't use ranlib |
| _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| case $lt_outputfile in |
| *.exe|*.EXE) ;; |
| *) |
| lt_outputfile="$lt_outputfile.exe" |
| lt_tool_outputfile="$lt_tool_outputfile.exe" |
| ;; |
| esac~ |
| if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| $RM "$lt_outputfile.manifest"; |
| fi' |
| ;; |
| *) |
| # Assume MSVC wrapper |
| _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| # Tell ltmain to make .lib files, not .a files. |
| libext=lib |
| # Tell ltmain to make .dll files, not .so files. |
| shrext_cmds=".dll" |
| # FIXME: Setting linknames here is a bad hack. |
| _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| # The linker will automatically build a .lib file if we build a DLL. |
| _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| # FIXME: Should let the user specify the lib program. |
| _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| ;; |
| esac |
;; |
;; |
|
|
darwin* | rhapsody*) |
darwin* | rhapsody*) |
Line 4805 _LT_EOF
|
Line 5192 _LT_EOF
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; |
;; |
|
|
freebsd1*) |
|
_LT_TAGVAR(ld_shlibs, $1)=no |
|
;; |
|
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
# support. Future versions do this automatically, but an explicit c++rt0.o |
# support. Future versions do this automatically, but an explicit c++rt0.o |
# does not break anything, and helps significantly (at the cost of a little |
# does not break anything, and helps significantly (at the cost of a little |
Line 4821 _LT_EOF
|
Line 5204 _LT_EOF
|
;; |
;; |
|
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
freebsd2*) | freebsd2.*) |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
_LT_TAGVAR(hardcode_direct, $1)=yes |
_LT_TAGVAR(hardcode_direct, $1)=yes |
_LT_TAGVAR(hardcode_minus_L, $1)=yes |
_LT_TAGVAR(hardcode_minus_L, $1)=yes |
Line 4830 _LT_EOF
|
Line 5213 _LT_EOF
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
freebsd* | dragonfly*) |
freebsd* | dragonfly*) |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_TAGVAR(hardcode_direct, $1)=yes |
_LT_TAGVAR(hardcode_direct, $1)=yes |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
Line 4838 _LT_EOF
|
Line 5221 _LT_EOF
|
|
|
hpux9*) |
hpux9*) |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
_LT_TAGVAR(archive_cmds, $1)='$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' | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
else |
else |
_LT_TAGVAR(archive_cmds, $1)='$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' |
_LT_TAGVAR(archive_cmds, $1)='$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' |
fi |
fi |
Line 4854 _LT_EOF
|
Line 5237 _LT_EOF
|
|
|
hpux10*) |
hpux10*) |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
else |
else |
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
fi |
fi |
if test "$with_gnu_ld" = no; then |
if test "$with_gnu_ld" = no; then |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_TAGVAR(hardcode_direct, $1)=yes |
_LT_TAGVAR(hardcode_direct, $1)=yes |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
Line 4878 _LT_EOF
|
Line 5260 _LT_EOF
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
;; |
;; |
ia64*) |
ia64*) |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
;; |
;; |
*) |
*) |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
;; |
;; |
esac |
esac |
else |
else |
Line 4928 _LT_EOF
|
Line 5310 _LT_EOF
|
|
|
irix5* | irix6* | nonstopux*) |
irix5* | irix6* | nonstopux*) |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
# Try to use the -exported_symbol ld option, if it does not |
# Try to use the -exported_symbol ld option, if it does not |
# work, assume that -exports_file does not work either and |
# work, assume that -exports_file does not work either and |
# implicitly export all symbols. |
# implicitly export all symbols. |
save_LDFLAGS="$LDFLAGS" | # This should be the same for all languages, so no per-tag cache variable. |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], |
AC_LINK_IFELSE(int foo(void) {}, | [lt_cv_irix_exported_symbol], |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | [save_LDFLAGS="$LDFLAGS" |
) | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
LDFLAGS="$save_LDFLAGS" | AC_LINK_IFELSE( |
| [AC_LANG_SOURCE( |
| [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], |
| [C++], [[int foo (void) { return 0; }]], |
| [Fortran 77], [[ |
| subroutine foo |
| end]], |
| [Fortran], [[ |
| subroutine foo |
| end]])])], |
| [lt_cv_irix_exported_symbol=yes], |
| [lt_cv_irix_exported_symbol=no]) |
| LDFLAGS="$save_LDFLAGS"]) |
| if test "$lt_cv_irix_exported_symbol" = yes; then |
| _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| fi |
else |
else |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
Line 5022 _LT_EOF
|
Line 5419 _LT_EOF
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
else |
else |
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
Line 5041 _LT_EOF
|
Line 5438 _LT_EOF
|
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
wlarc='${wl}' |
wlarc='${wl}' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
else |
else |
case `$CC -V 2>&1` in |
case `$CC -V 2>&1` in |
*"Compilers 5.0"*) |
*"Compilers 5.0"*) |
Line 5287 _LT_TAGDECL([], [no_undefined_flag], [1],
|
Line 5684 _LT_TAGDECL([], [no_undefined_flag], [1],
|
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
[Flag to hardcode $libdir into a binary during linking. |
[Flag to hardcode $libdir into a binary during linking. |
This must work even if $libdir does not exist]) |
This must work even if $libdir does not exist]) |
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
|
[[If ld is used when linking, flag to hardcode $libdir into a binary |
|
during linking. This must work even if $libdir does not exist]]) |
|
_LT_TAGDECL([], [hardcode_libdir_separator], [1], |
_LT_TAGDECL([], [hardcode_libdir_separator], [1], |
[Whether we need a single "-rpath" flag with a separated argument]) |
[Whether we need a single "-rpath" flag with a separated argument]) |
_LT_TAGDECL([], [hardcode_direct], [0], |
_LT_TAGDECL([], [hardcode_direct], [0], |
Line 5315 _LT_TAGDECL([], [inherit_rpath], [0],
|
Line 5709 _LT_TAGDECL([], [inherit_rpath], [0],
|
to runtime path list]) |
to runtime path list]) |
_LT_TAGDECL([], [link_all_deplibs], [0], |
_LT_TAGDECL([], [link_all_deplibs], [0], |
[Whether libtool must link a program against all its dependency libraries]) |
[Whether libtool must link a program against all its dependency libraries]) |
_LT_TAGDECL([], [fix_srcfile_path], [1], |
|
[Fix the shell variable $srcfile for the compiler]) |
|
_LT_TAGDECL([], [always_export_symbols], [0], |
_LT_TAGDECL([], [always_export_symbols], [0], |
[Set to "yes" if exported symbols are required]) |
[Set to "yes" if exported symbols are required]) |
_LT_TAGDECL([], [export_symbols_cmds], [2], |
_LT_TAGDECL([], [export_symbols_cmds], [2], |
Line 5327 _LT_TAGDECL([], [include_expsyms], [1],
|
Line 5719 _LT_TAGDECL([], [include_expsyms], [1],
|
[Symbols that must always be exported]) |
[Symbols that must always be exported]) |
_LT_TAGDECL([], [prelink_cmds], [2], |
_LT_TAGDECL([], [prelink_cmds], [2], |
[Commands necessary for linking programs (against libraries) with templates]) |
[Commands necessary for linking programs (against libraries) with templates]) |
|
_LT_TAGDECL([], [postlink_cmds], [2], |
|
[Commands necessary for finishing linking programs]) |
_LT_TAGDECL([], [file_list_spec], [1], |
_LT_TAGDECL([], [file_list_spec], [1], |
[Specify filename containing input files]) |
[Specify filename containing input files]) |
dnl FIXME: Not yet implemented |
dnl FIXME: Not yet implemented |
Line 5428 CC="$lt_save_CC"
|
Line 5822 CC="$lt_save_CC"
|
m4_defun([_LT_LANG_CXX_CONFIG], |
m4_defun([_LT_LANG_CXX_CONFIG], |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
m4_require([_LT_DECL_EGREP])dnl |
m4_require([_LT_DECL_EGREP])dnl |
|
m4_require([_LT_PATH_MANIFEST_TOOL])dnl |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
(test "X$CXX" != "Xg++"))) ; then |
(test "X$CXX" != "Xg++"))) ; then |
Line 5446 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
Line 5841 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
Line 5489 if test "$_lt_caught_CXX_error" != yes; then
|
Line 5883 if test "$_lt_caught_CXX_error" != yes; then
|
|
|
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
lt_save_CC=$CC |
lt_save_CC=$CC |
|
lt_save_CFLAGS=$CFLAGS |
lt_save_LD=$LD |
lt_save_LD=$LD |
lt_save_GCC=$GCC |
lt_save_GCC=$GCC |
GCC=$GXX |
GCC=$GXX |
Line 5506 if test "$_lt_caught_CXX_error" != yes; then
|
Line 5901 if test "$_lt_caught_CXX_error" != yes; then
|
fi |
fi |
test -z "${LDCXX+set}" || LD=$LDCXX |
test -z "${LDCXX+set}" || LD=$LDCXX |
CC=${CXX-"c++"} |
CC=${CXX-"c++"} |
|
CFLAGS=$CXXFLAGS |
compiler=$CC |
compiler=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) |
_LT_CC_BASENAME([$compiler]) |
Line 5527 if test "$_lt_caught_CXX_error" != yes; then
|
Line 5923 if test "$_lt_caught_CXX_error" != yes; then
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
# archiving commands below assume that GNU ld is being used. |
# archiving commands below assume that GNU ld is being used. |
if test "$with_gnu_ld" = yes; then |
if test "$with_gnu_ld" = yes; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
Line 5669 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6065 if test "$_lt_caught_CXX_error" != yes; then
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
# Determine the default libpath from the value encoded in an empty |
# Determine the default libpath from the value encoded in an empty |
# executable. |
# executable. |
_LT_SYS_MODULE_PATH_AIX | _LT_SYS_MODULE_PATH_AIX([$1]) |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
Line 5681 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6077 if test "$_lt_caught_CXX_error" != yes; then
|
else |
else |
# Determine the default libpath from the value encoded in an |
# Determine the default libpath from the value encoded in an |
# empty executable. |
# empty executable. |
_LT_SYS_MODULE_PATH_AIX | _LT_SYS_MODULE_PATH_AIX([$1]) |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
# Warning - without using the other run time loading flags, |
# Warning - without using the other run time loading flags, |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
Line 5723 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6119 if test "$_lt_caught_CXX_error" != yes; then
|
;; |
;; |
|
|
cygwin* | mingw* | pw32* | cegcc*) |
cygwin* | mingw* | pw32* | cegcc*) |
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | case $GXX,$cc_basename in |
# as there is no search path for DLLs. | ,cl* | no,cl*) |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | # Native MSVC |
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | # hardcode_libdir_flag_spec is actually meaningless, as there is |
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported | # no search path for DLLs. |
_LT_TAGVAR(always_export_symbols, $1)=no | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| _LT_TAGVAR(always_export_symbols, $1)=yes |
| _LT_TAGVAR(file_list_spec, $1)='@' |
| # Tell ltmain to make .lib files, not .a files. |
| libext=lib |
| # Tell ltmain to make .dll files, not .so files. |
| shrext_cmds=".dll" |
| # FIXME: Setting linknames here is a bad hack. |
| _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| else |
| $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| fi~ |
| $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| linknames=' |
| # The linker will not automatically build a static lib if we build a DLL. |
| # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| # Don't use ranlib |
| _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
| _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ |
| lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| case $lt_outputfile in |
| *.exe|*.EXE) ;; |
| *) |
| lt_outputfile="$lt_outputfile.exe" |
| lt_tool_outputfile="$lt_tool_outputfile.exe" |
| ;; |
| esac~ |
| func_to_tool_file "$lt_outputfile"~ |
| if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| $RM "$lt_outputfile.manifest"; |
| fi' |
| ;; |
| *) |
| # g++ |
| # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| # as there is no search path for DLLs. |
| _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' |
| _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| _LT_TAGVAR(always_export_symbols, $1)=no |
| _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
_LT_TAGVAR(archive_cmds, $1)='$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' | _LT_TAGVAR(archive_cmds, $1)='$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' |
# If the export-symbols file already is a .def file (1st line | # If the export-symbols file already is a .def file (1st line |
# is EXPORTS), use it as is; otherwise, prepend... | # is EXPORTS), use it as is; otherwise, prepend... |
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
cp $export_symbols $output_objdir/$soname.def; | cp $export_symbols $output_objdir/$soname.def; |
else | else |
echo EXPORTS > $output_objdir/$soname.def; | echo EXPORTS > $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; | cat $export_symbols >> $output_objdir/$soname.def; |
fi~ | fi~ |
$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' | $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' |
else | else |
_LT_TAGVAR(ld_shlibs, $1)=no | _LT_TAGVAR(ld_shlibs, $1)=no |
fi | fi |
;; | ;; |
| esac |
| ;; |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
_LT_DARWIN_LINKER_FEATURES($1) |
_LT_DARWIN_LINKER_FEATURES($1) |
;; |
;; |
Line 5768 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6210 if test "$_lt_caught_CXX_error" != yes; then
|
esac |
esac |
;; |
;; |
|
|
freebsd[[12]]*) | freebsd2.*) |
# C++ shared libraries reported to be fairly broken before |
# C++ shared libraries reported to be fairly broken before |
# switch to ELF |
# switch to ELF |
_LT_TAGVAR(ld_shlibs, $1)=no |
_LT_TAGVAR(ld_shlibs, $1)=no |
Line 5820 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6262 if test "$_lt_caught_CXX_error" != yes; then
|
;; |
;; |
*) |
*) |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
_LT_TAGVAR(archive_cmds, $1)='$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' | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' |
else |
else |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
_LT_TAGVAR(ld_shlibs, $1)=no |
_LT_TAGVAR(ld_shlibs, $1)=no |
Line 5891 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6333 if test "$_lt_caught_CXX_error" != yes; then
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
;; |
;; |
ia64*) |
ia64*) |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
;; |
;; |
*) |
*) |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
;; |
;; |
esac |
esac |
fi |
fi |
Line 5935 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6377 if test "$_lt_caught_CXX_error" != yes; then
|
*) |
*) |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
if test "$with_gnu_ld" = no; then |
if test "$with_gnu_ld" = no; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
else |
else |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
fi |
fi |
fi |
fi |
_LT_TAGVAR(link_all_deplibs, $1)=yes |
_LT_TAGVAR(link_all_deplibs, $1)=yes |
Line 6215 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6657 if test "$_lt_caught_CXX_error" != yes; then
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
;; |
;; |
*) |
*) |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
;; |
;; |
esac |
esac |
|
|
Line 6302 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6744 if test "$_lt_caught_CXX_error" != yes; then
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
|
|
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
Line 6433 if test "$_lt_caught_CXX_error" != yes; then
|
Line 6875 if test "$_lt_caught_CXX_error" != yes; then
|
fi # test -n "$compiler" |
fi # test -n "$compiler" |
|
|
CC=$lt_save_CC |
CC=$lt_save_CC |
|
CFLAGS=$lt_save_CFLAGS |
LDCXX=$LD |
LDCXX=$LD |
LD=$lt_save_LD |
LD=$lt_save_LD |
GCC=$lt_save_GCC |
GCC=$lt_save_GCC |
Line 6447 AC_LANG_POP
|
Line 6890 AC_LANG_POP
|
])# _LT_LANG_CXX_CONFIG |
])# _LT_LANG_CXX_CONFIG |
|
|
|
|
|
# _LT_FUNC_STRIPNAME_CNF |
|
# ---------------------- |
|
# func_stripname_cnf prefix suffix name |
|
# strip PREFIX and SUFFIX off of NAME. |
|
# PREFIX and SUFFIX must not contain globbing or regex special |
|
# characters, hashes, percent signs, but SUFFIX may contain a leading |
|
# dot (in which case that matches only a dot). |
|
# |
|
# This function is identical to the (non-XSI) version of func_stripname, |
|
# except this one can be used by m4 code that may be executed by configure, |
|
# rather than the libtool script. |
|
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl |
|
AC_REQUIRE([_LT_DECL_SED]) |
|
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) |
|
func_stripname_cnf () |
|
{ |
|
case ${2} in |
|
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
|
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
|
esac |
|
} # func_stripname_cnf |
|
])# _LT_FUNC_STRIPNAME_CNF |
|
|
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
# --------------------------------- |
# --------------------------------- |
# Figure out "hidden" library dependencies from verbose |
# Figure out "hidden" library dependencies from verbose |
Line 6455 AC_LANG_POP
|
Line 6921 AC_LANG_POP
|
# objects, libraries and library flags. |
# objects, libraries and library flags. |
m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
|
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl |
# Dependencies to place before and after the object being linked: |
# Dependencies to place before and after the object being linked: |
_LT_TAGVAR(predep_objects, $1)= |
_LT_TAGVAR(predep_objects, $1)= |
_LT_TAGVAR(postdep_objects, $1)= |
_LT_TAGVAR(postdep_objects, $1)= |
Line 6504 public class foo {
|
Line 6971 public class foo {
|
} |
} |
}; |
}; |
_LT_EOF |
_LT_EOF |
|
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF |
|
package foo |
|
func foo() { |
|
} |
|
_LT_EOF |
]) |
]) |
|
|
|
_lt_libdeps_save_CFLAGS=$CFLAGS |
|
case "$CC $CFLAGS " in #( |
|
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
|
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
|
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
|
esac |
|
|
dnl Parse the compiler output and extract the necessary |
dnl Parse the compiler output and extract the necessary |
dnl objects, libraries and library flags. |
dnl objects, libraries and library flags. |
if AC_TRY_EVAL(ac_compile); then |
if AC_TRY_EVAL(ac_compile); then |
Line 6516 if AC_TRY_EVAL(ac_compile); then
|
Line 6996 if AC_TRY_EVAL(ac_compile); then
|
pre_test_object_deps_done=no |
pre_test_object_deps_done=no |
|
|
for p in `eval "$output_verbose_link_cmd"`; do |
for p in `eval "$output_verbose_link_cmd"`; do |
case $p in | case ${prev}${p} in |
|
|
-L* | -R* | -l*) |
-L* | -R* | -l*) |
# Some compilers place space between "-{L,R}" and the path. |
# Some compilers place space between "-{L,R}" and the path. |
Line 6525 if AC_TRY_EVAL(ac_compile); then
|
Line 7005 if AC_TRY_EVAL(ac_compile); then
|
test $p = "-R"; then |
test $p = "-R"; then |
prev=$p |
prev=$p |
continue |
continue |
else |
|
prev= |
|
fi |
fi |
|
|
|
# Expand the sysroot to ease extracting the directories later. |
|
if test -z "$prev"; then |
|
case $p in |
|
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
|
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
|
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
|
esac |
|
fi |
|
case $p in |
|
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
|
esac |
if test "$pre_test_object_deps_done" = no; then |
if test "$pre_test_object_deps_done" = no; then |
case $p in | case ${prev} in |
-L* | -R*) | -L | -R) |
# Internal compiler library paths should come after those |
# Internal compiler library paths should come after those |
# provided the user. The postdeps already come after the |
# provided the user. The postdeps already come after the |
# user supplied libs so there is no need to process them. |
# user supplied libs so there is no need to process them. |
Line 6551 if AC_TRY_EVAL(ac_compile); then
|
Line 7040 if AC_TRY_EVAL(ac_compile); then
|
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
fi |
fi |
fi |
fi |
|
prev= |
;; |
;; |
|
|
|
*.lto.$objext) ;; # Ignore GCC LTO objects |
*.$objext) |
*.$objext) |
# This assumes that the test object file only shows up |
# This assumes that the test object file only shows up |
# once in the compiler output. |
# once in the compiler output. |
Line 6588 else
|
Line 7079 else
|
fi |
fi |
|
|
$RM -f confest.$objext |
$RM -f confest.$objext |
|
CFLAGS=$_lt_libdeps_save_CFLAGS |
|
|
# PORTME: override above test on systems where it is broken |
# PORTME: override above test on systems where it is broken |
m4_if([$1], [CXX], |
m4_if([$1], [CXX], |
Line 6687 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
Line 7179 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_automatic, $1)=no |
_LT_TAGVAR(hardcode_automatic, $1)=no |
Line 6737 if test "$_lt_disable_F77" != yes; then
|
Line 7228 if test "$_lt_disable_F77" != yes; then
|
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
lt_save_CC="$CC" |
lt_save_CC="$CC" |
lt_save_GCC=$GCC |
lt_save_GCC=$GCC |
|
lt_save_CFLAGS=$CFLAGS |
CC=${F77-"f77"} |
CC=${F77-"f77"} |
|
CFLAGS=$FFLAGS |
compiler=$CC |
compiler=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) |
_LT_CC_BASENAME([$compiler]) |
Line 6791 if test "$_lt_disable_F77" != yes; then
|
Line 7284 if test "$_lt_disable_F77" != yes; then
|
|
|
GCC=$lt_save_GCC |
GCC=$lt_save_GCC |
CC="$lt_save_CC" |
CC="$lt_save_CC" |
|
CFLAGS="$lt_save_CFLAGS" |
fi # test "$_lt_disable_F77" != yes |
fi # test "$_lt_disable_F77" != yes |
|
|
AC_LANG_POP |
AC_LANG_POP |
Line 6817 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
Line 7311 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
|
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
|
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_minus_L, $1)=no |
_LT_TAGVAR(hardcode_automatic, $1)=no |
_LT_TAGVAR(hardcode_automatic, $1)=no |
Line 6867 if test "$_lt_disable_FC" != yes; then
|
Line 7360 if test "$_lt_disable_FC" != yes; then
|
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
lt_save_CC="$CC" |
lt_save_CC="$CC" |
lt_save_GCC=$GCC |
lt_save_GCC=$GCC |
|
lt_save_CFLAGS=$CFLAGS |
CC=${FC-"f95"} |
CC=${FC-"f95"} |
|
CFLAGS=$FCFLAGS |
compiler=$CC |
compiler=$CC |
GCC=$ac_cv_fc_compiler_gnu |
GCC=$ac_cv_fc_compiler_gnu |
|
|
Line 6923 if test "$_lt_disable_FC" != yes; then
|
Line 7418 if test "$_lt_disable_FC" != yes; then
|
fi # test -n "$compiler" |
fi # test -n "$compiler" |
|
|
GCC=$lt_save_GCC |
GCC=$lt_save_GCC |
CC="$lt_save_CC" | CC=$lt_save_CC |
| CFLAGS=$lt_save_CFLAGS |
fi # test "$_lt_disable_FC" != yes |
fi # test "$_lt_disable_FC" != yes |
|
|
AC_LANG_POP |
AC_LANG_POP |
Line 6960 _LT_COMPILER_BOILERPLATE
|
Line 7456 _LT_COMPILER_BOILERPLATE
|
_LT_LINKER_BOILERPLATE |
_LT_LINKER_BOILERPLATE |
|
|
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | lt_save_CC=$CC |
| lt_save_CFLAGS=$CFLAGS |
lt_save_GCC=$GCC |
lt_save_GCC=$GCC |
GCC=yes |
GCC=yes |
CC=${GCJ-"gcj"} |
CC=${GCJ-"gcj"} |
|
CFLAGS=$GCJFLAGS |
compiler=$CC |
compiler=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_TAGVAR(LD, $1)="$LD" |
_LT_TAGVAR(LD, $1)="$LD" |
Line 6994 fi
|
Line 7492 fi
|
AC_LANG_RESTORE |
AC_LANG_RESTORE |
|
|
GCC=$lt_save_GCC |
GCC=$lt_save_GCC |
CC="$lt_save_CC" | CC=$lt_save_CC |
| CFLAGS=$lt_save_CFLAGS |
])# _LT_LANG_GCJ_CONFIG |
])# _LT_LANG_GCJ_CONFIG |
|
|
|
|
|
# _LT_LANG_GO_CONFIG([TAG]) |
|
# -------------------------- |
|
# Ensure that the configuration variables for the GNU Go compiler |
|
# are suitably defined. These variables are subsequently used by _LT_CONFIG |
|
# to write the compiler configuration to `libtool'. |
|
m4_defun([_LT_LANG_GO_CONFIG], |
|
[AC_REQUIRE([LT_PROG_GO])dnl |
|
AC_LANG_SAVE |
|
|
|
# Source file extension for Go test sources. |
|
ac_ext=go |
|
|
|
# Object file extension for compiled Go test sources. |
|
objext=o |
|
_LT_TAGVAR(objext, $1)=$objext |
|
|
|
# Code to be used in simple compile tests |
|
lt_simple_compile_test_code="package main; func main() { }" |
|
|
|
# Code to be used in simple link tests |
|
lt_simple_link_test_code='package main; func main() { }' |
|
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
_LT_TAG_COMPILER |
|
|
|
# save warnings/boilerplate of simple test code |
|
_LT_COMPILER_BOILERPLATE |
|
_LT_LINKER_BOILERPLATE |
|
|
|
# Allow CC to be a program name with arguments. |
|
lt_save_CC=$CC |
|
lt_save_CFLAGS=$CFLAGS |
|
lt_save_GCC=$GCC |
|
GCC=yes |
|
CC=${GOC-"gccgo"} |
|
CFLAGS=$GOFLAGS |
|
compiler=$CC |
|
_LT_TAGVAR(compiler, $1)=$CC |
|
_LT_TAGVAR(LD, $1)="$LD" |
|
_LT_CC_BASENAME([$compiler]) |
|
|
|
# Go did not exist at the time GCC didn't implicitly link libc in. |
|
_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
|
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
|
_LT_TAGVAR(reload_flag, $1)=$reload_flag |
|
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds |
|
|
|
## CAVEAT EMPTOR: |
|
## There is no encapsulation within the following macros, do not change |
|
## the running order or otherwise move them around unless you know exactly |
|
## what you are doing... |
|
if test -n "$compiler"; then |
|
_LT_COMPILER_NO_RTTI($1) |
|
_LT_COMPILER_PIC($1) |
|
_LT_COMPILER_C_O($1) |
|
_LT_COMPILER_FILE_LOCKS($1) |
|
_LT_LINKER_SHLIBS($1) |
|
_LT_LINKER_HARDCODE_LIBPATH($1) |
|
|
|
_LT_CONFIG($1) |
|
fi |
|
|
|
AC_LANG_RESTORE |
|
|
|
GCC=$lt_save_GCC |
|
CC=$lt_save_CC |
|
CFLAGS=$lt_save_CFLAGS |
|
])# _LT_LANG_GO_CONFIG |
|
|
|
|
# _LT_LANG_RC_CONFIG([TAG]) |
# _LT_LANG_RC_CONFIG([TAG]) |
# ------------------------- |
# ------------------------- |
# Ensure that the configuration variables for the Windows resource compiler |
# Ensure that the configuration variables for the Windows resource compiler |
Line 7029 _LT_LINKER_BOILERPLATE
|
Line 7599 _LT_LINKER_BOILERPLATE
|
|
|
# Allow CC to be a program name with arguments. |
# Allow CC to be a program name with arguments. |
lt_save_CC="$CC" |
lt_save_CC="$CC" |
|
lt_save_CFLAGS=$CFLAGS |
lt_save_GCC=$GCC |
lt_save_GCC=$GCC |
GCC= |
GCC= |
CC=${RC-"windres"} |
CC=${RC-"windres"} |
|
CFLAGS= |
compiler=$CC |
compiler=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) |
_LT_CC_BASENAME([$compiler]) |
Line 7044 fi
|
Line 7616 fi
|
|
|
GCC=$lt_save_GCC |
GCC=$lt_save_GCC |
AC_LANG_RESTORE |
AC_LANG_RESTORE |
CC="$lt_save_CC" | CC=$lt_save_CC |
| CFLAGS=$lt_save_CFLAGS |
])# _LT_LANG_RC_CONFIG |
])# _LT_LANG_RC_CONFIG |
|
|
|
|
Line 7064 dnl aclocal-1.4 backwards compatibility:
|
Line 7637 dnl aclocal-1.4 backwards compatibility:
|
dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
|
|
|
|
|
# LT_PROG_GO |
|
# ---------- |
|
AC_DEFUN([LT_PROG_GO], |
|
[AC_CHECK_TOOL(GOC, gccgo,) |
|
]) |
|
|
|
|
# LT_PROG_RC |
# LT_PROG_RC |
# ---------- |
# ---------- |
AC_DEFUN([LT_PROG_RC], |
AC_DEFUN([LT_PROG_RC], |
Line 7103 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]
|
Line 7683 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]
|
AC_SUBST([OBJDUMP]) |
AC_SUBST([OBJDUMP]) |
]) |
]) |
|
|
|
# _LT_DECL_DLLTOOL |
|
# ---------------- |
|
# Ensure DLLTOOL variable is set. |
|
m4_defun([_LT_DECL_DLLTOOL], |
|
[AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) |
|
AC_SUBST([DLLTOOL]) |
|
]) |
|
|
# _LT_DECL_SED |
# _LT_DECL_SED |
# ------------ |
# ------------ |
Line 7196 m4_defun([_LT_CHECK_SHELL_FEATURES],
|
Line 7785 m4_defun([_LT_CHECK_SHELL_FEATURES],
|
# Try some XSI features |
# Try some XSI features |
xsi_shell=no |
xsi_shell=no |
( _lt_dummy="a/b/c" |
( _lt_dummy="a/b/c" |
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
= c,a/b,, \ | = c,a/b,b/c, \ |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
&& xsi_shell=yes |
&& xsi_shell=yes |
Line 7236 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into
|
Line 7825 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into
|
])# _LT_CHECK_SHELL_FEATURES |
])# _LT_CHECK_SHELL_FEATURES |
|
|
|
|
# _LT_PROG_XSI_SHELLFNS | # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) |
# --------------------- | # ------------------------------------------------------ |
# Bourne and XSI compatible variants of some useful shell functions. | # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and |
m4_defun([_LT_PROG_XSI_SHELLFNS], | # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. |
[case $xsi_shell in | m4_defun([_LT_PROG_FUNCTION_REPLACE], |
yes) | [dnl { |
cat << \_LT_EOF >> "$cfgfile" | sed -e '/^$1 ()$/,/^} # $1 /c\ |
| $1 ()\ |
| {\ |
| m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) |
| } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ |
| && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| test 0 -eq $? || _lt_function_replace_fail=: |
| ]) |
|
|
# func_dirname file append nondir_replacement |
|
# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
|
# otherwise set result to NONDIR_REPLACEMENT. |
|
func_dirname () |
|
{ |
|
case ${1} in |
|
*/*) func_dirname_result="${1%/*}${2}" ;; |
|
* ) func_dirname_result="${3}" ;; |
|
esac |
|
} |
|
|
|
# func_basename file | # _LT_PROG_REPLACE_SHELLFNS |
func_basename () | # ------------------------- |
{ | # Replace existing portable implementations of several shell functions with |
func_basename_result="${1##*/}" | # equivalent extended shell implementations where those features are available.. |
} | m4_defun([_LT_PROG_REPLACE_SHELLFNS], |
| [if test x"$xsi_shell" = xyes; then |
| _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl |
| case ${1} in |
| */*) func_dirname_result="${1%/*}${2}" ;; |
| * ) func_dirname_result="${3}" ;; |
| esac]) |
|
|
# func_dirname_and_basename file append nondir_replacement | _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl |
# perform func_basename and func_dirname in a single function | func_basename_result="${1##*/}"]) |
# call: | |
# dirname: Compute the dirname of FILE. If nonempty, | |
# add APPEND to the result, otherwise set result | |
# to NONDIR_REPLACEMENT. | |
# value returned in "$func_dirname_result" | |
# basename: Compute filename of FILE. | |
# value retuned in "$func_basename_result" | |
# Implementation must be kept synchronized with func_dirname | |
# and func_basename. For efficiency, we do not delegate to | |
# those functions but instead duplicate the functionality here. | |
func_dirname_and_basename () | |
{ | |
case ${1} in | |
*/*) func_dirname_result="${1%/*}${2}" ;; | |
* ) func_dirname_result="${3}" ;; | |
esac | |
func_basename_result="${1##*/}" | |
} | |
|
|
# func_stripname prefix suffix name | _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl |
# strip PREFIX and SUFFIX off of NAME. | case ${1} in |
# PREFIX and SUFFIX must not contain globbing or regex special | */*) func_dirname_result="${1%/*}${2}" ;; |
# characters, hashes, percent signs, but SUFFIX may contain a leading | * ) func_dirname_result="${3}" ;; |
# dot (in which case that matches only a dot). | esac |
func_stripname () | func_basename_result="${1##*/}"]) |
{ | |
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
# positional parameters, so assign one to ordinary parameter first. | |
func_stripname_result=${3} | |
func_stripname_result=${func_stripname_result#"${1}"} | |
func_stripname_result=${func_stripname_result%"${2}"} | |
} | |
|
|
# func_opt_split | _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl |
func_opt_split () | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
{ | # positional parameters, so assign one to ordinary parameter first. |
func_opt_split_opt=${1%%=*} | func_stripname_result=${3} |
func_opt_split_arg=${1#*=} | func_stripname_result=${func_stripname_result#"${1}"} |
} | func_stripname_result=${func_stripname_result%"${2}"}]) |
|
|
# func_lo2o object | _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl |
func_lo2o () | func_split_long_opt_name=${1%%=*} |
{ | func_split_long_opt_arg=${1#*=}]) |
case ${1} in | |
*.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
*) func_lo2o_result=${1} ;; | |
esac | |
} | |
|
|
# func_xform libobj-or-source | _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl |
func_xform () | func_split_short_opt_arg=${1#??} |
{ | func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) |
func_xform_result=${1%.*}.lo | |
} | |
|
|
# func_arith arithmetic-term... | _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl |
func_arith () | case ${1} in |
{ | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
func_arith_result=$(( $[*] )) | *) func_lo2o_result=${1} ;; |
} | esac]) |
|
|
# func_len string | _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) |
# STRING may not start with a hyphen. | |
func_len () | |
{ | |
func_len_result=${#1} | |
} | |
|
|
_LT_EOF | _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) |
;; | |
*) # Bourne compatible functions. | |
cat << \_LT_EOF >> "$cfgfile" | |
|
|
# func_dirname file append nondir_replacement | _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) |
# Compute the dirname of FILE. If nonempty, add APPEND to the result, | fi |
# otherwise set result to NONDIR_REPLACEMENT. | |
func_dirname () | |
{ | |
# Extract subdirectory from the argument. | |
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
if test "X$func_dirname_result" = "X${1}"; then | |
func_dirname_result="${3}" | |
else | |
func_dirname_result="$func_dirname_result${2}" | |
fi | |
} | |
|
|
# func_basename file | if test x"$lt_shell_append" = xyes; then |
func_basename () | _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) |
{ | |
func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
} | |
|
|
dnl func_dirname_and_basename | _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl |
dnl A portable version of this function is already defined in general.m4sh | func_quote_for_eval "${2}" |
dnl so there is no need for it here. | dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ |
| eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) |
|
|
# func_stripname prefix suffix name | # Save a `func_append' function call where possible by direct use of '+=' |
# strip PREFIX and SUFFIX off of NAME. | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
# PREFIX and SUFFIX must not contain globbing or regex special | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
# characters, hashes, percent signs, but SUFFIX may contain a leading | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
# dot (in which case that matches only a dot). | test 0 -eq $? || _lt_function_replace_fail=: |
# func_strip_suffix prefix name | else |
func_stripname () | # Save a `func_append' function call even when '+=' is not available |
{ | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
case ${2} in | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | test 0 -eq $? || _lt_function_replace_fail=: |
esac | fi |
} | |
|
|
# sed scripts: | if test x"$_lt_function_replace_fail" = x":"; then |
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) |
my_sed_long_arg='1s/^-[[^=]]*=//' | fi |
| ]) |
|
|
# func_opt_split | # _LT_PATH_CONVERSION_FUNCTIONS |
func_opt_split () | # ----------------------------- |
{ | # Determine which file name conversion functions should be used by |
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | # func_to_host_file (and, implicitly, by func_to_host_path). These are needed |
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | # for certain cross-compile configurations and native mingw. |
} | m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], |
| [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
# func_lo2o object | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
func_lo2o () | AC_MSG_CHECKING([how to convert $build file names to $host format]) |
{ | AC_CACHE_VAL(lt_cv_to_host_file_cmd, |
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | [case $host in |
} | *-*-mingw* ) |
| case $build in |
# func_xform libobj-or-source | *-*-mingw* ) # actually msys |
func_xform () | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
{ | ;; |
func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` | *-*-cygwin* ) |
} | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| ;; |
# func_arith arithmetic-term... | * ) # otherwise, assume *nix |
func_arith () | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
{ | ;; |
func_arith_result=`expr "$[@]"` | esac |
} | ;; |
| *-*-cygwin* ) |
# func_len string | case $build in |
# STRING may not start with a hyphen. | *-*-mingw* ) # actually msys |
func_len () | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
{ | ;; |
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | *-*-cygwin* ) |
} | lt_cv_to_host_file_cmd=func_convert_file_noop |
| ;; |
_LT_EOF | * ) # otherwise, assume *nix |
| lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| ;; |
| esac |
| ;; |
| * ) # unhandled hosts (and "normal" native builds) |
| lt_cv_to_host_file_cmd=func_convert_file_noop |
| ;; |
esac |
esac |
|
]) |
|
to_host_file_cmd=$lt_cv_to_host_file_cmd |
|
AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) |
|
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], |
|
[0], [convert $build file names to $host format])dnl |
|
|
case $lt_shell_append in | AC_MSG_CHECKING([how to convert $build file names to toolchain format]) |
yes) | AC_CACHE_VAL(lt_cv_to_tool_file_cmd, |
cat << \_LT_EOF >> "$cfgfile" | [#assume ordinary cross tools, or native build. |
| lt_cv_to_tool_file_cmd=func_convert_file_noop |
# func_append var value | case $host in |
# Append VALUE to the end of shell variable VAR. | *-*-mingw* ) |
func_append () | case $build in |
{ | *-*-mingw* ) # actually msys |
eval "$[1]+=\$[2]" | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
} | ;; |
_LT_EOF | esac |
;; |
;; |
*) | esac |
cat << \_LT_EOF >> "$cfgfile" | |
| |
# func_append var value | |
# Append VALUE to the end of shell variable VAR. | |
func_append () | |
{ | |
eval "$[1]=\$$[1]\$[2]" | |
} | |
| |
_LT_EOF | |
;; | |
esac | |
]) |
]) |
|
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
|
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) |
|
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], |
|
[0], [convert $build files to toolchain format])dnl |
|
])# _LT_PATH_CONVERSION_FUNCTIONS |