|
@@ -1,8 +1,8 @@
|
|
# 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, 2011 Free Software
|
|
|
|
-# Foundation, Inc.
|
|
|
|
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software 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
|
|
@@ -11,8 +11,8 @@
|
|
|
|
|
|
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, 2011 Free Software
|
|
|
|
-# Foundation, Inc.
|
|
|
|
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software 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.
|
|
@@ -146,8 +146,6 @@ 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
|
|
@@ -639,7 +637,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
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) 2011 Free Software Foundation, Inc.
|
|
|
|
|
|
+Copyright (C) 2010 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."
|
|
|
|
|
|
@@ -803,7 +801,6 @@ 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)],
|
|
@@ -825,31 +822,6 @@ 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],
|
|
@@ -880,10 +852,6 @@ 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)])])
|
|
@@ -986,13 +954,7 @@ 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 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
|
|
|
|
|
|
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 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
|
|
@@ -1000,7 +962,6 @@ 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
|
|
@@ -1012,7 +973,6 @@ 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
|
|
@@ -1030,9 +990,7 @@ _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 -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
|
|
|
|
|
|
+ if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; 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
|
|
@@ -1077,8 +1035,8 @@ _LT_EOF
|
|
])
|
|
])
|
|
|
|
|
|
|
|
|
|
-# _LT_DARWIN_LINKER_FEATURES([TAG])
|
|
|
|
-# ---------------------------------
|
|
|
|
|
|
+# _LT_DARWIN_LINKER_FEATURES
|
|
|
|
+# --------------------------
|
|
# 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],
|
|
[
|
|
[
|
|
@@ -1089,8 +1047,6 @@ 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
|
|
@@ -1374,27 +1330,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
fi
|
|
fi
|
|
;;
|
|
;;
|
|
-*-*solaris*)
|
|
|
|
|
|
+sparc*-*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*)
|
|
|
|
- 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
|
|
|
|
- ;;
|
|
|
|
|
|
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
*)
|
|
*)
|
|
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"
|
|
@@ -1471,13 +1414,13 @@ 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 \$tool_oldlib"
|
|
|
|
|
|
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
|
|
|
|
|
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
|
|
|
|
|
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
fi
|
|
fi
|
|
|
|
|
|
case $host_os in
|
|
case $host_os in
|
|
@@ -1657,11 +1600,6 @@ 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
|
|
@@ -2247,7 +2185,7 @@ need_version=unknown
|
|
|
|
|
|
case $host_os in
|
|
case $host_os in
|
|
aix3*)
|
|
aix3*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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
|
|
|
|
|
|
@@ -2256,7 +2194,7 @@ aix3*)
|
|
;;
|
|
;;
|
|
|
|
|
|
aix[[4-9]]*)
|
|
aix[[4-9]]*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
need_version=no
|
|
hardcode_into_libs=yes
|
|
hardcode_into_libs=yes
|
|
@@ -2321,7 +2259,7 @@ beos*)
|
|
;;
|
|
;;
|
|
|
|
|
|
bsdi[[45]]*)
|
|
bsdi[[45]]*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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'
|
|
@@ -2460,7 +2398,7 @@ m4_if([$1], [],[
|
|
;;
|
|
;;
|
|
|
|
|
|
dgux*)
|
|
dgux*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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'
|
|
@@ -2468,6 +2406,10 @@ 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.
|
|
@@ -2475,7 +2417,7 @@ freebsd* | dragonfly*)
|
|
objformat=`/usr/bin/objformat`
|
|
objformat=`/usr/bin/objformat`
|
|
else
|
|
else
|
|
case $host_os in
|
|
case $host_os in
|
|
- freebsd[[23]].*) objformat=aout ;;
|
|
|
|
|
|
+ freebsd[[123]]*) objformat=aout ;;
|
|
*) objformat=elf ;;
|
|
*) objformat=elf ;;
|
|
esac
|
|
esac
|
|
fi
|
|
fi
|
|
@@ -2493,7 +2435,7 @@ 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]]*)
|
|
@@ -2513,18 +2455,17 @@ freebsd* | dragonfly*)
|
|
;;
|
|
;;
|
|
|
|
|
|
gnu*)
|
|
gnu*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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 # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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"
|
|
@@ -2585,7 +2526,7 @@ hpux9* | hpux10* | hpux11*)
|
|
;;
|
|
;;
|
|
|
|
|
|
interix[[3-9]]*)
|
|
interix[[3-9]]*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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}'
|
|
@@ -2601,7 +2542,7 @@ 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 # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
else
|
|
else
|
|
version_type=irix
|
|
version_type=irix
|
|
fi ;;
|
|
fi ;;
|
|
@@ -2638,9 +2579,9 @@ linux*oldld* | linux*aout* | linux*coff*)
|
|
dynamic_linker=no
|
|
dynamic_linker=no
|
|
;;
|
|
;;
|
|
|
|
|
|
-# This must be glibc/ELF.
|
|
|
|
|
|
+# This must be Linux ELF.
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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}'
|
|
@@ -2684,18 +2625,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
dynamic_linker='GNU/Linux ld.so'
|
|
dynamic_linker='GNU/Linux ld.so'
|
|
;;
|
|
;;
|
|
|
|
|
|
-netbsdelf*-gnu)
|
|
|
|
- version_type=linux
|
|
|
|
- need_lib_prefix=no
|
|
|
|
- need_version=no
|
|
|
|
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
|
|
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
|
|
- shlibpath_var=LD_LIBRARY_PATH
|
|
|
|
- shlibpath_overrides_runpath=no
|
|
|
|
- hardcode_into_libs=yes
|
|
|
|
- dynamic_linker='NetBSD ld.elf_so'
|
|
|
|
- ;;
|
|
|
|
-
|
|
|
|
netbsd*)
|
|
netbsd*)
|
|
version_type=sunos
|
|
version_type=sunos
|
|
need_lib_prefix=no
|
|
need_lib_prefix=no
|
|
@@ -2715,7 +2644,7 @@ netbsd*)
|
|
;;
|
|
;;
|
|
|
|
|
|
newsos6)
|
|
newsos6)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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
|
|
@@ -2784,7 +2713,7 @@ rdos*)
|
|
;;
|
|
;;
|
|
|
|
|
|
solaris*)
|
|
solaris*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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}'
|
|
@@ -2809,7 +2738,7 @@ sunos4*)
|
|
;;
|
|
;;
|
|
|
|
|
|
sysv4 | sysv4.3*)
|
|
sysv4 | sysv4.3*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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
|
|
@@ -2833,7 +2762,7 @@ sysv4 | sysv4.3*)
|
|
|
|
|
|
sysv4*MP*)
|
|
sysv4*MP*)
|
|
if test -d /usr/nec ;then
|
|
if test -d /usr/nec ;then
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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
|
|
@@ -2864,7 +2793,7 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
|
|
|
|
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 # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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}'
|
|
@@ -2874,7 +2803,7 @@ tpf*)
|
|
;;
|
|
;;
|
|
|
|
|
|
uts4*)
|
|
uts4*)
|
|
- version_type=linux # correct to gnu/linux during the next big refactor
|
|
|
|
|
|
+ version_type=linux
|
|
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
|
|
@@ -3296,12 +3225,12 @@ irix5* | irix6* | nonstopux*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
;;
|
|
|
|
|
|
-# This must be glibc/ELF.
|
|
|
|
|
|
+# This must be Linux 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
|
|
;;
|
|
;;
|
|
|
|
|
|
-netbsd* | netbsdelf*-gnu)
|
|
|
|
|
|
+netbsd*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
|
|
else
|
|
else
|
|
@@ -3716,7 +3645,6 @@ 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};"\
|
|
@@ -4113,7 +4041,7 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
;;
|
|
;;
|
|
- netbsd* | netbsdelf*-gnu)
|
|
|
|
|
|
+ netbsd*)
|
|
;;
|
|
;;
|
|
*qnx* | *nto*)
|
|
*qnx* | *nto*)
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
# QNX uses GNU C++, but need to define -shared option too, otherwise
|
|
@@ -4301,9 +4229,7 @@ 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 '
|
|
- 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
|
|
|
|
|
|
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
else
|
|
else
|
|
@@ -4395,33 +4321,18 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
case `$CC -V 2>&1 | sed 5q` in
|
|
case `$CC -V 2>&1 | sed 5q` in
|
|
- *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
|
|
|
|
|
+ *Sun\ F* | *Sun*Fortran*)
|
|
# 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
|
|
@@ -4581,18 +4492,13 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
;;
|
|
cygwin* | mingw* | cegcc*)
|
|
cygwin* | mingw* | cegcc*)
|
|
case $cc_basename in
|
|
case $cc_basename in
|
|
- cl*)
|
|
|
|
- _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
|
|
|
- ;;
|
|
|
|
|
|
+ cl*) ;;
|
|
*)
|
|
*)
|
|
_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(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']
|
|
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
;;
|
|
;;
|
|
esac
|
|
esac
|
|
;;
|
|
;;
|
|
- linux* | k*bsd*-gnu | gnu*)
|
|
|
|
- _LT_TAGVAR(link_all_deplibs, $1)=no
|
|
|
|
- ;;
|
|
|
|
*)
|
|
*)
|
|
_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'
|
|
;;
|
|
;;
|
|
@@ -4611,6 +4517,7 @@ 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
|
|
@@ -4655,9 +4562,6 @@ dnl Note also adjust exclude_expsyms for C++ above.
|
|
openbsd*)
|
|
openbsd*)
|
|
with_gnu_ld=no
|
|
with_gnu_ld=no
|
|
;;
|
|
;;
|
|
- linux* | k*bsd*-gnu | gnu*)
|
|
|
|
- _LT_TAGVAR(link_all_deplibs, $1)=no
|
|
|
|
- ;;
|
|
|
|
esac
|
|
esac
|
|
|
|
|
|
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
_LT_TAGVAR(ld_shlibs, $1)=yes
|
|
@@ -4864,7 +4768,8 @@ _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)='${wl}-rpath ${wl}$libdir'
|
|
|
|
|
|
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
|
|
+ _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~
|
|
@@ -4879,7 +4784,7 @@ _LT_EOF
|
|
fi
|
|
fi
|
|
;;
|
|
;;
|
|
|
|
|
|
- netbsd* | netbsdelf*-gnu)
|
|
|
|
|
|
+ netbsd*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
_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=
|
|
@@ -5056,7 +4961,6 @@ _LT_EOF
|
|
if test "$aix_use_runtimelinking" = yes; then
|
|
if test "$aix_use_runtimelinking" = yes; then
|
|
shared_flag="$shared_flag "'${wl}-G'
|
|
shared_flag="$shared_flag "'${wl}-G'
|
|
fi
|
|
fi
|
|
- _LT_TAGVAR(link_all_deplibs, $1)=no
|
|
|
|
else
|
|
else
|
|
# not using gcc
|
|
# not using gcc
|
|
if test "$host_cpu" = ia64; then
|
|
if test "$host_cpu" = ia64; then
|
|
@@ -5160,7 +5064,6 @@ _LT_EOF
|
|
# The linker will not automatically build a static lib if we build a DLL.
|
|
# 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(old_archive_from_new_cmds, $1)='true'
|
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
_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'
|
|
_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
|
|
# Don't use ranlib
|
|
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
@@ -5207,6 +5110,10 @@ _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
|
|
@@ -5219,7 +5126,7 @@ _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
|
|
@@ -5258,6 +5165,7 @@ _LT_EOF
|
|
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
|
|
@@ -5361,7 +5269,7 @@ _LT_EOF
|
|
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
;;
|
|
;;
|
|
|
|
|
|
- netbsd* | netbsdelf*-gnu)
|
|
|
|
|
|
+ netbsd*)
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
else
|
|
else
|
|
@@ -5699,6 +5607,9 @@ _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],
|
|
@@ -5856,6 +5767,7 @@ _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
|
|
@@ -6225,7 +6137,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
esac
|
|
esac
|
|
;;
|
|
;;
|
|
|
|
|
|
- freebsd2.*)
|
|
|
|
|
|
+ freebsd[[12]]*)
|
|
# 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
|
|
@@ -6986,18 +6898,12 @@ 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
|
|
_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
case "$CC $CFLAGS " in #(
|
|
case "$CC $CFLAGS " in #(
|
|
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
-*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
|
|
|
|
esac
|
|
esac
|
|
|
|
|
|
dnl Parse the compiler output and extract the necessary
|
|
dnl Parse the compiler output and extract the necessary
|
|
@@ -7194,6 +7100,7 @@ _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
|
|
@@ -7326,6 +7233,7 @@ _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
|
|
@@ -7512,77 +7420,6 @@ 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
|
|
@@ -7652,13 +7489,6 @@ 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],
|