2357 lines
97 KiB
Text
2357 lines
97 KiB
Text
$NetBSD: patch-ab,v 1.3 2007/11/03 02:25:52 bjcosta Exp $
|
|
|
|
--- aclocal.m4.orig 2007-08-12 09:34:34.000000000 +1000
|
|
+++ aclocal.m4
|
|
@@ -1,7 +1,7 @@
|
|
-# generated automatically by aclocal 1.10 -*- Autoconf -*-
|
|
+# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
-# 2005, 2006 Free Software Foundation, Inc.
|
|
+# 2005 Free Software Foundation, Inc.
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
@@ -11,14 +11,9 @@
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE.
|
|
|
|
-m4_if(m4_PACKAGE_VERSION, [2.61],,
|
|
-[m4_fatal([this file was generated for autoconf 2.61.
|
|
-You have another version of autoconf. If you want to use that,
|
|
-you should regenerate the build system entirely.], [63])])
|
|
-
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
|
|
-# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
|
|
+# serial 47 AC_PROG_LIBTOOL
|
|
|
|
|
|
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
|
|
@@ -148,7 +143,7 @@ rm="rm -f"
|
|
default_ofile=libtool
|
|
can_build_shared=yes
|
|
|
|
-# All known linkers require a `.a' archive for static linking (except MSVC,
|
|
+# All known linkers require a `.a' archive for static linking (except M$VC,
|
|
# which needs '.lib').
|
|
libext=a
|
|
ltmain="$ac_aux_dir/ltmain.sh"
|
|
@@ -168,7 +163,6 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
test -z "$AS" && AS=as
|
|
test -z "$CC" && CC=cc
|
|
test -z "$LTCC" && LTCC=$CC
|
|
-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
test -z "$LD" && LD=ld
|
|
test -z "$LN_S" && LN_S="ln -s"
|
|
@@ -188,10 +182,10 @@ old_postuninstall_cmds=
|
|
if test -n "$RANLIB"; then
|
|
case $host_os in
|
|
openbsd*)
|
|
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
|
+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
|
;;
|
|
*)
|
|
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
|
+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
|
;;
|
|
esac
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
@@ -239,9 +233,6 @@ AC_DEFUN([_LT_AC_SYS_COMPILER],
|
|
# If no C compiler was specified, use CC.
|
|
LTCC=${LTCC-"$CC"}
|
|
|
|
-# If no C compiler flags were specified, use CFLAGS.
|
|
-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
-
|
|
# Allow CC to be a program name with arguments.
|
|
compiler=$CC
|
|
])# _LT_AC_SYS_COMPILER
|
|
@@ -270,7 +261,7 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -
|
|
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
|
|
[ac_outfile=conftest.$ac_objext
|
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
|
-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
_lt_compiler_boilerplate=`cat conftest.err`
|
|
$rm conftest*
|
|
])# _LT_COMPILER_BOILERPLATE
|
|
@@ -283,7 +274,7 @@ $rm conftest*
|
|
AC_DEFUN([_LT_LINKER_BOILERPLATE],
|
|
[ac_outfile=conftest.$ac_objext
|
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
|
-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
|
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
_lt_linker_boilerplate=`cat conftest.err`
|
|
$rm conftest*
|
|
])# _LT_LINKER_BOILERPLATE
|
|
@@ -368,8 +359,8 @@ if test "X${echo_test_string+set}" != Xs
|
|
# find a string as large as possible, as long as the shell can cope with it
|
|
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
|
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
|
|
- if (echo_test_string=`eval $cmd`) 2>/dev/null &&
|
|
- echo_test_string=`eval $cmd` &&
|
|
+ if (echo_test_string="`eval $cmd`") 2>/dev/null &&
|
|
+ echo_test_string="`eval $cmd`" &&
|
|
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
|
|
then
|
|
break
|
|
@@ -538,7 +529,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
|
|
# Find out which ABI we are using.
|
|
echo 'int i;' > conftest.$ac_ext
|
|
if AC_TRY_EVAL(ac_compile); then
|
|
- case `/usr/bin/file conftest.o` in
|
|
+ case "`/usr/bin/file conftest.o`" in
|
|
*32-bit*)
|
|
case $host in
|
|
x86_64-*linux*)
|
|
@@ -589,22 +580,6 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
|
|
CFLAGS="$SAVE_CFLAGS"
|
|
fi
|
|
;;
|
|
-sparc*-*solaris*)
|
|
- # Find out which ABI we are using.
|
|
- echo 'int i;' > conftest.$ac_ext
|
|
- if AC_TRY_EVAL(ac_compile); then
|
|
- case `/usr/bin/file conftest.o` in
|
|
- *64-bit*)
|
|
- case $lt_cv_prog_gnu_ld in
|
|
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
- *) LD="${LD-ld} -64" ;;
|
|
- esac
|
|
- ;;
|
|
- esac
|
|
- fi
|
|
- rm -rf conftest*
|
|
- ;;
|
|
-
|
|
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
|
|
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
|
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
@@ -636,7 +611,7 @@ AC_CACHE_CHECK([$1], [$2],
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
# The option is referenced via a variable to avoid confusing sed.
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
|
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
@@ -647,9 +622,9 @@ AC_CACHE_CHECK([$1], [$2],
|
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings other than the usual output.
|
|
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
|
+ $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
|
+ $SED '/^$/d' conftest.err >conftest.er2
|
|
+ if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
$2=yes
|
|
fi
|
|
fi
|
|
@@ -675,13 +650,13 @@ AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
|
|
LDFLAGS="$LDFLAGS $3"
|
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
- # The linker can only warn and ignore the option if not recognized
|
|
+ # The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings
|
|
if test -s conftest.err; then
|
|
# Append any errors to the config.log.
|
|
cat conftest.err 1>&AS_MESSAGE_LOG_FD
|
|
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
+ $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
|
|
+ $SED '/^$/d' conftest.err >conftest.er2
|
|
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
$2=yes
|
|
fi
|
|
@@ -750,18 +725,12 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
|
|
elif test -x /usr/sbin/sysctl; then
|
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
else
|
|
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
|
+ lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
|
|
fi
|
|
# And add a safety zone
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
|
;;
|
|
-
|
|
- interix*)
|
|
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
- lt_cv_sys_max_cmd_len=196608
|
|
- ;;
|
|
-
|
|
osf*)
|
|
# 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
|
|
@@ -775,17 +744,6 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
|
|
esac
|
|
fi
|
|
;;
|
|
- sco3.2v5*)
|
|
- lt_cv_sys_max_cmd_len=102400
|
|
- ;;
|
|
- sysv5* | sco5v6* | sysv4.2uw2*)
|
|
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
- if test -n "$kargmax"; then
|
|
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
|
|
- else
|
|
- lt_cv_sys_max_cmd_len=32768
|
|
- fi
|
|
- ;;
|
|
*)
|
|
# 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
|
|
@@ -817,7 +775,7 @@ fi
|
|
|
|
|
|
# _LT_AC_CHECK_DLFCN
|
|
-# ------------------
|
|
+# --------------------
|
|
AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
|
[AC_CHECK_HEADERS(dlfcn.h)dnl
|
|
])# _LT_AC_CHECK_DLFCN
|
|
@@ -825,7 +783,7 @@ AC_DEFUN([_LT_AC_CHECK_DLFCN],
|
|
|
|
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
|
|
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
|
|
-# ---------------------------------------------------------------------
|
|
+# ------------------------------------------------------------------
|
|
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
|
|
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|
if test "$cross_compiling" = yes; then :
|
|
@@ -891,19 +849,17 @@ int main ()
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
|
/* dlclose (self); */
|
|
}
|
|
- else
|
|
- puts (dlerror ());
|
|
|
|
exit (status);
|
|
}]
|
|
EOF
|
|
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
|
|
- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
|
+ (./conftest; exit; ) 2>/dev/null
|
|
lt_status=$?
|
|
case x$lt_status in
|
|
x$lt_dlno_uscore) $1 ;;
|
|
x$lt_dlneed_uscore) $2 ;;
|
|
- x$lt_dlunknown|x*) $3 ;;
|
|
+ x$lt_unknown|x*) $3 ;;
|
|
esac
|
|
else :
|
|
# compilation failed
|
|
@@ -915,7 +871,7 @@ rm -fr conftest*
|
|
|
|
|
|
# AC_LIBTOOL_DLOPEN_SELF
|
|
-# ----------------------
|
|
+# -------------------
|
|
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
|
|
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
|
|
if test "x$enable_dlopen" != xyes; then
|
|
@@ -986,7 +942,7 @@ else
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
|
|
|
save_LDFLAGS="$LDFLAGS"
|
|
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
|
|
save_LIBS="$LIBS"
|
|
LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
@@ -999,7 +955,7 @@ else
|
|
])
|
|
|
|
if test "x$lt_cv_dlopen_self" = xyes; then
|
|
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
|
+ LDFLAGS="$LDFLAGS $link_static_flag"
|
|
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
|
|
lt_cv_dlopen_self_static, [dnl
|
|
_LT_AC_TRY_DLOPEN_SELF(
|
|
@@ -1047,7 +1003,7 @@ AC_CACHE_CHECK([if $compiler supports -c
|
|
# Note that $ac_compile itself does not contain backslashes and begins
|
|
# with a dollar sign (not a hyphen), so the echo should work correctly.
|
|
lt_compile=`echo "$ac_compile" | $SED \
|
|
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
|
+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
|
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
|
|
-e 's:$: $lt_compiler_flag:'`
|
|
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
|
|
@@ -1059,13 +1015,13 @@ AC_CACHE_CHECK([if $compiler supports -c
|
|
then
|
|
# The compiler can only warn and ignore the option if not recognized
|
|
# So say no if there are warnings
|
|
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
+ $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
|
+ $SED '/^$/d' out/conftest.err >out/conftest.er2
|
|
+ if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
|
|
fi
|
|
fi
|
|
- chmod u+w . 2>&AS_MESSAGE_LOG_FD
|
|
+ chmod u+w .
|
|
$rm conftest*
|
|
# SGI C++ compiler will create directory out/ii_files/ for
|
|
# template instantiation
|
|
@@ -1325,8 +1281,7 @@ cygwin* | mingw* | pw32*)
|
|
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~
|
|
- chmod a+x \$dldir/$dlname'
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
dlpath=$dir/\$dldll~
|
|
$rm \$dlpath'
|
|
@@ -1379,7 +1334,7 @@ darwin* | rhapsody*)
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
|
shlibpath_overrides_runpath=yes
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
|
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
|
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
|
|
if test "$GCC" = yes; then
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
|
|
@@ -1402,17 +1357,22 @@ freebsd1*)
|
|
dynamic_linker=no
|
|
;;
|
|
|
|
+kfreebsd*-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='GNU ld.so'
|
|
+ ;;
|
|
+
|
|
freebsd* | dragonfly*)
|
|
# DragonFly does not have aout. When/if they implement a new
|
|
# versioning mechanism, adjust this.
|
|
- if test -x /usr/bin/objformat; then
|
|
- objformat=`/usr/bin/objformat`
|
|
- else
|
|
- case $host_os in
|
|
- freebsd[[123]]*) objformat=aout ;;
|
|
- *) objformat=elf ;;
|
|
- esac
|
|
- fi
|
|
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
|
version_type=freebsd-$objformat
|
|
case $version_type in
|
|
freebsd-elf*)
|
|
@@ -1434,15 +1394,10 @@ freebsd* | dragonfly*)
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
;;
|
|
- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
|
|
- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
|
|
+ *) # from 3.2 on
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
;;
|
|
- freebsd*) # from 4.6 on
|
|
- shlibpath_overrides_runpath=yes
|
|
- hardcode_into_libs=yes
|
|
- ;;
|
|
esac
|
|
;;
|
|
|
|
@@ -1462,7 +1417,7 @@ hpux9* | hpux10* | hpux11*)
|
|
version_type=sunos
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
- case $host_cpu in
|
|
+ case "$host_cpu" in
|
|
ia64*)
|
|
shrext_cmds='.so'
|
|
hardcode_into_libs=yes
|
|
@@ -1502,18 +1457,6 @@ hpux9* | hpux10* | hpux11*)
|
|
postinstall_cmds='chmod 555 $lib'
|
|
;;
|
|
|
|
-interix3*)
|
|
- 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'
|
|
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
- shlibpath_var=LD_LIBRARY_PATH
|
|
- shlibpath_overrides_runpath=no
|
|
- hardcode_into_libs=yes
|
|
- ;;
|
|
-
|
|
irix5* | irix6* | nonstopux*)
|
|
case $host_os in
|
|
nonstopux*) version_type=nonstopux ;;
|
|
@@ -1557,7 +1500,7 @@ linux*oldld* | linux*aout* | linux*coff*
|
|
;;
|
|
|
|
# This must be Linux ELF.
|
|
-linux* | k*bsd*-gnu)
|
|
+linux*)
|
|
version_type=linux
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
@@ -1586,7 +1529,7 @@ linux* | k*bsd*-gnu)
|
|
dynamic_linker='GNU/Linux ld.so'
|
|
;;
|
|
|
|
-netbsdelf*-gnu)
|
|
+knetbsd*-gnu)
|
|
version_type=linux
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
@@ -1595,7 +1538,7 @@ netbsdelf*-gnu)
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
- dynamic_linker='NetBSD ld.elf_so'
|
|
+ dynamic_linker='GNU ld.so'
|
|
;;
|
|
|
|
netbsd*)
|
|
@@ -1635,7 +1578,6 @@ nto-qnx*)
|
|
|
|
openbsd*)
|
|
version_type=sunos
|
|
- sys_lib_dlsearch_path_spec="/usr/lib"
|
|
need_lib_prefix=no
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
case $host_os in
|
|
@@ -1679,6 +1621,13 @@ osf3* | osf4* | osf5*)
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
|
;;
|
|
|
|
+sco3.2v5*)
|
|
+ version_type=osf
|
|
+ soname_spec='${libname}${release}${shared_ext}$major'
|
|
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
+ shlibpath_var=LD_LIBRARY_PATH
|
|
+ ;;
|
|
+
|
|
solaris*)
|
|
version_type=linux
|
|
need_lib_prefix=no
|
|
@@ -1704,7 +1653,7 @@ sunos4*)
|
|
need_version=yes
|
|
;;
|
|
|
|
-sysv4 | sysv4.3*)
|
|
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
version_type=linux
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
@@ -1737,29 +1686,6 @@ sysv4*MP*)
|
|
fi
|
|
;;
|
|
|
|
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
- version_type=freebsd-elf
|
|
- need_lib_prefix=no
|
|
- need_version=no
|
|
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
- soname_spec='${libname}${release}${shared_ext}$major'
|
|
- shlibpath_var=LD_LIBRARY_PATH
|
|
- hardcode_into_libs=yes
|
|
- if test "$with_gnu_ld" = yes; then
|
|
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
- shlibpath_overrides_runpath=no
|
|
- else
|
|
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
- shlibpath_overrides_runpath=yes
|
|
- case $host_os in
|
|
- sco3.2v5*)
|
|
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
- ;;
|
|
- esac
|
|
- fi
|
|
- sys_lib_dlsearch_path_spec='/usr/lib'
|
|
- ;;
|
|
-
|
|
uts4*)
|
|
version_type=linux
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
@@ -1773,11 +1699,6 @@ uts4*)
|
|
esac
|
|
AC_MSG_RESULT([$dynamic_linker])
|
|
test "$dynamic_linker" = no && can_build_shared=no
|
|
-
|
|
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
-if test "$GCC" = yes; then
|
|
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
-fi
|
|
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
|
|
|
|
|
|
@@ -1802,9 +1723,6 @@ if test -f "$ltmain" && test -n "$tagnam
|
|
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
|
|
fi
|
|
fi
|
|
- if test -z "$LTCFLAGS"; then
|
|
- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
|
- fi
|
|
|
|
# Extract list of available tagged configurations in $ofile.
|
|
# Note that this assumes the entire list is on one line.
|
|
@@ -1895,7 +1813,7 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN],
|
|
|
|
# AC_LIBTOOL_WIN32_DLL
|
|
# --------------------
|
|
-# declare package support for building win32 DLLs
|
|
+# declare package support for building win32 dll's
|
|
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
|
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
|
|
])# AC_LIBTOOL_WIN32_DLL
|
|
@@ -1933,7 +1851,7 @@ AC_ARG_ENABLE([shared],
|
|
|
|
# AC_DISABLE_SHARED
|
|
# -----------------
|
|
-# set the default shared flag to --disable-shared
|
|
+#- set the default shared flag to --disable-shared
|
|
AC_DEFUN([AC_DISABLE_SHARED],
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
AC_ENABLE_SHARED(no)
|
|
@@ -2069,7 +1987,7 @@ dnl not every word. This closes a longs
|
|
if test -n "$file_magic_test_file"; then
|
|
case $deplibs_check_method in
|
|
"file_magic "*)
|
|
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
|
+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
|
@@ -2179,7 +2097,7 @@ AC_CACHE_VAL(lt_cv_path_LD,
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
lt_cv_path_LD="$ac_dir/$ac_prog"
|
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
- # but apparently some variants of GNU ld only accept -v.
|
|
+ # but apparently some GNU ld's only accept -v.
|
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
|
*GNU* | *'with BFD'*)
|
|
@@ -2211,7 +2129,7 @@ AC_PROG_LD_GNU
|
|
AC_DEFUN([AC_PROG_LD_GNU],
|
|
[AC_REQUIRE([AC_PROG_EGREP])dnl
|
|
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
|
|
-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
|
|
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
|
case `$LD -v 2>&1 </dev/null` in
|
|
*GNU* | *'with BFD'*)
|
|
lt_cv_prog_gnu_ld=yes
|
|
@@ -2241,7 +2159,7 @@ reload_cmds='$LD$reload_flag -o $output$
|
|
case $host_os in
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
+ reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
|
|
else
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
fi
|
|
@@ -2303,7 +2221,7 @@ darwin* | rhapsody*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
-freebsd* | dragonfly*)
|
|
+freebsd* | kfreebsd*-gnu | dragonfly*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
case $host_cpu in
|
|
i*86 )
|
|
@@ -2325,7 +2243,7 @@ gnu*)
|
|
|
|
hpux10.20* | hpux11*)
|
|
lt_cv_file_magic_cmd=/usr/bin/file
|
|
- case $host_cpu in
|
|
+ case "$host_cpu" in
|
|
ia64*)
|
|
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
|
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
|
@@ -2341,11 +2259,6 @@ hpux10.20* | hpux11*)
|
|
esac
|
|
;;
|
|
|
|
-interix3*)
|
|
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
|
|
- ;;
|
|
-
|
|
irix5* | irix6* | nonstopux*)
|
|
case $LD in
|
|
*-32|*"-32 ") libmagic=32-bit;;
|
|
@@ -2357,11 +2270,11 @@ irix5* | irix6* | nonstopux*)
|
|
;;
|
|
|
|
# This must be Linux ELF.
|
|
-linux* | k*bsd*-gnu)
|
|
+linux*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
-netbsd* | netbsdelf*-gnu)
|
|
+netbsd*)
|
|
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)$'
|
|
else
|
|
@@ -2391,11 +2304,15 @@ osf3* | osf4* | osf5*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
+sco3.2v5*)
|
|
+ lt_cv_deplibs_check_method=pass_all
|
|
+ ;;
|
|
+
|
|
solaris*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
-sysv4 | sysv4.3*)
|
|
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
case $host_vendor in
|
|
motorola)
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
|
|
@@ -2416,13 +2333,10 @@ sysv4 | sysv4.3*)
|
|
siemens)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
- pc)
|
|
- lt_cv_deplibs_check_method=pass_all
|
|
- ;;
|
|
esac
|
|
;;
|
|
|
|
-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
|
|
lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
esac
|
|
@@ -2442,16 +2356,11 @@ AC_DEFUN([AC_PROG_NM],
|
|
# Let the user override the test.
|
|
lt_cv_path_NM="$NM"
|
|
else
|
|
- lt_nm_to_check="${ac_tool_prefix}nm"
|
|
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
- lt_nm_to_check="$lt_nm_to_check nm"
|
|
- fi
|
|
- for lt_tmp_nm in $lt_nm_to_check; do
|
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
+ for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
|
IFS="$lt_save_ifs"
|
|
test -z "$ac_dir" && ac_dir=.
|
|
- tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
+ tmp_nm="$ac_dir/${ac_tool_prefix}nm"
|
|
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
# Check to see if the nm accepts a BSD-compat flag.
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
@@ -2473,12 +2382,10 @@ else
|
|
continue # so that we can try to find one that supports BSD flags
|
|
;;
|
|
esac
|
|
- ;;
|
|
esac
|
|
fi
|
|
done
|
|
IFS="$lt_save_ifs"
|
|
- done
|
|
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
|
fi])
|
|
NM="$lt_cv_path_NM"
|
|
@@ -2510,13 +2417,13 @@ esac
|
|
# -----------------------------------
|
|
# sets LIBLTDL to the link flags for the libltdl convenience library and
|
|
# LTDLINCL to the include flags for the libltdl header and adds
|
|
-# --enable-ltdl-convenience to the configure arguments. Note that
|
|
-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
|
|
-# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
|
|
-# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
|
|
-# (note the single quotes!). If your package is not flat and you're not
|
|
-# using automake, define top_builddir and top_srcdir appropriately in
|
|
-# the Makefiles.
|
|
+# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
|
|
+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
|
+# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
|
|
+# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
|
|
+# '${top_srcdir}/' (note the single quotes!). If your package is not
|
|
+# flat and you're not using automake, define top_builddir and
|
|
+# top_srcdir appropriately in the Makefiles.
|
|
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
case $enable_ltdl_convenience in
|
|
@@ -2535,13 +2442,13 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
|
# -----------------------------------
|
|
# sets LIBLTDL to the link flags for the libltdl installable library and
|
|
# LTDLINCL to the include flags for the libltdl header and adds
|
|
-# --enable-ltdl-install to the configure arguments. Note that
|
|
-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
|
|
-# and an installed libltdl is not found, it is assumed to be `libltdl'.
|
|
-# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
|
|
-# '${top_srcdir}/' (note the single quotes!). If your package is not
|
|
-# flat and you're not using automake, define top_builddir and top_srcdir
|
|
-# appropriately in the Makefiles.
|
|
+# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
|
|
+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
|
|
+# DIRECTORY is not provided and an installed libltdl is not found, it is
|
|
+# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
|
|
+# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
|
|
+# quotes!). If your package is not flat and you're not using automake,
|
|
+# define top_builddir and top_srcdir appropriately in the Makefiles.
|
|
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
|
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
|
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|
@@ -2584,7 +2491,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+$
|
|
])# _LT_AC_LANG_CXX
|
|
|
|
# _LT_AC_PROG_CXXCPP
|
|
-# ------------------
|
|
+# ---------------
|
|
AC_DEFUN([_LT_AC_PROG_CXXCPP],
|
|
[
|
|
AC_REQUIRE([AC_PROG_CXX])
|
|
@@ -2633,7 +2540,7 @@ _LT_AC_SHELL_INIT([tagnames=${tagnames+$
|
|
|
|
|
|
# AC_LIBTOOL_RC
|
|
-# -------------
|
|
+# --------------
|
|
# enable support for Windows resource files
|
|
AC_DEFUN([AC_LIBTOOL_RC],
|
|
[AC_REQUIRE([LT_AC_PROG_RC])
|
|
@@ -2670,6 +2577,37 @@ _LT_AC_SYS_COMPILER
|
|
_LT_COMPILER_BOILERPLATE
|
|
_LT_LINKER_BOILERPLATE
|
|
|
|
+#
|
|
+# Check for any special shared library compilation flags.
|
|
+#
|
|
+_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
|
|
+if test "$GCC" = no; then
|
|
+ case $host_os in
|
|
+ sco3.2v5*)
|
|
+ _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
|
|
+ AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
|
|
+ if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
|
|
+ else
|
|
+ AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
|
|
+ _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
|
|
+ fi
|
|
+fi
|
|
+
|
|
+
|
|
+#
|
|
+# Check to make sure the static flag actually works.
|
|
+#
|
|
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
|
+ $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
|
|
+ [],
|
|
+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
|
+
|
|
+
|
|
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
|
|
AC_LIBTOOL_PROG_COMPILER_PIC($1)
|
|
AC_LIBTOOL_PROG_CC_C_O($1)
|
|
@@ -2678,9 +2616,9 @@ AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|
AC_LIBTOOL_SYS_LIB_STRIP
|
|
-AC_LIBTOOL_DLOPEN_SELF
|
|
+AC_LIBTOOL_DLOPEN_SELF($1)
|
|
|
|
-# Report which library types will actually be built
|
|
+# Report which librarie types wil actually be built
|
|
AC_MSG_CHECKING([if libtool supports shared libraries])
|
|
AC_MSG_RESULT([$can_build_shared])
|
|
|
|
@@ -2689,7 +2627,7 @@ test "$can_build_shared" = "no" && enabl
|
|
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
# are all built from PIC.
|
|
-case $host_os in
|
|
+case "$host_os" in
|
|
aix3*)
|
|
test "$enable_shared" = yes && enable_static=no
|
|
if test -n "$RANLIB"; then
|
|
@@ -2739,7 +2677,6 @@ _LT_AC_TAGVAR(hardcode_libdir_flag_spec,
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
|
-_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
|
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
|
|
_LT_AC_TAGVAR(module_cmds, $1)=
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
|
|
@@ -2757,7 +2694,7 @@ _LT_AC_TAGVAR(postdeps, $1)=
|
|
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
|
|
|
|
# Source file extension for C++ test sources.
|
|
-ac_ext=cpp
|
|
+ac_ext=cc
|
|
|
|
# Object file extension for compiled C++ test sources.
|
|
objext=o
|
|
@@ -2767,7 +2704,7 @@ _LT_AC_TAGVAR(objext, $1)=$objext
|
|
lt_simple_compile_test_code="int some_variable = 0;\n"
|
|
|
|
# Code to be used in simple link tests
|
|
-lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
|
|
+lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
|
|
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
|
_LT_AC_SYS_COMPILER
|
|
@@ -2786,12 +2723,12 @@ lt_save_path_LD=$lt_cv_path_LD
|
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
|
else
|
|
- $as_unset lt_cv_prog_gnu_ld
|
|
+ unset lt_cv_prog_gnu_ld
|
|
fi
|
|
if test -n "${lt_cv_path_LDCXX+set}"; then
|
|
lt_cv_path_LD=$lt_cv_path_LDCXX
|
|
else
|
|
- $as_unset lt_cv_path_LD
|
|
+ unset lt_cv_path_LD
|
|
fi
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
CC=${CXX-"c++"}
|
|
@@ -2886,7 +2823,6 @@ case $host_os in
|
|
;;
|
|
esac
|
|
done
|
|
- ;;
|
|
esac
|
|
|
|
exp_sym_flag='-bexport'
|
|
@@ -2924,7 +2860,6 @@ case $host_os in
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|
fi
|
|
- ;;
|
|
esac
|
|
shared_flag='-shared'
|
|
if test "$aix_use_runtimelinking" = yes; then
|
|
@@ -2956,12 +2891,12 @@ case $host_os in
|
|
_LT_AC_SYS_LIBPATH_AIX
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
|
- _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
else
|
|
if test "$host_cpu" = ia64; then
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
|
else
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
|
_LT_AC_SYS_LIBPATH_AIX
|
|
@@ -2970,26 +2905,16 @@ case $host_os in
|
|
# -berok will link without error, but may produce a broken library.
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|
+ # -bexpall does not export symbols beginning with underscore (_)
|
|
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|
# Exported symbols can be pulled into shared objects from archives
|
|
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
|
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
- # This is similar to how AIX traditionally builds its shared libraries.
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
+ # This is similar to how AIX traditionally builds it's shared libraries.
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
fi
|
|
fi
|
|
;;
|
|
-
|
|
- beos*)
|
|
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
- # support --undefined. This deserves some investigation. FIXME
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- else
|
|
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
- fi
|
|
- ;;
|
|
-
|
|
chorus*)
|
|
case $cc_basename in
|
|
*)
|
|
@@ -2999,6 +2924,7 @@ case $host_os in
|
|
esac
|
|
;;
|
|
|
|
+
|
|
cygwin* | mingw* | pw32*)
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
# as there is no search path for DLLs.
|
|
@@ -3008,7 +2934,7 @@ case $host_os in
|
|
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
- _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
# If the export-symbols file already is a .def file (1st line
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
@@ -3017,13 +2943,13 @@ case $host_os in
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
|
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}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
else
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
fi
|
|
;;
|
|
darwin* | rhapsody*)
|
|
- case $host_os in
|
|
+ case "$host_os" in
|
|
rhapsody* | darwin1.[[012]])
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
|
;;
|
|
@@ -3061,7 +2987,7 @@ case $host_os in
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
fi
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
else
|
|
@@ -3074,7 +3000,7 @@ case $host_os in
|
|
output_verbose_link_cmd='echo'
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
;;
|
|
@@ -3109,7 +3035,7 @@ case $host_os in
|
|
freebsd-elf*)
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
;;
|
|
- freebsd* | dragonfly*)
|
|
+ freebsd* | kfreebsd*-gnu | dragonfly*)
|
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
|
# conventions
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
|
@@ -3154,23 +3080,34 @@ case $host_os in
|
|
;;
|
|
hpux10*|hpux11*)
|
|
if test $with_gnu_ld = no; then
|
|
+ case "$host_cpu" in
|
|
+ hppa*64*)
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
-
|
|
- case $host_cpu in
|
|
- hppa*64*|ia64*)
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
+ ;;
|
|
+ ia64*)
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
;;
|
|
*)
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
;;
|
|
esac
|
|
fi
|
|
- case $host_cpu in
|
|
- hppa*64*|ia64*)
|
|
+ case "$host_cpu" in
|
|
+ hppa*64*)
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
;;
|
|
+ ia64*)
|
|
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|
+ # but as the default
|
|
+ # location of the library.
|
|
+ ;;
|
|
*)
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
|
|
@@ -3185,12 +3122,9 @@ case $host_os in
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
;;
|
|
aCC*)
|
|
- case $host_cpu in
|
|
- hppa*64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
- ;;
|
|
- ia64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ case "$host_cpu" in
|
|
+ hppa*64*|ia64*)
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
|
;;
|
|
*)
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
@@ -3209,12 +3143,9 @@ case $host_os in
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
if test $with_gnu_ld = no; then
|
|
- case $host_cpu in
|
|
- hppa*64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
- ;;
|
|
- ia64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ case "$host_cpu" in
|
|
+ ia64*|hppa*64*)
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
|
;;
|
|
*)
|
|
_LT_AC_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'
|
|
@@ -3228,20 +3159,6 @@ case $host_os in
|
|
;;
|
|
esac
|
|
;;
|
|
- interix3*)
|
|
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
- # Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
- # default) and relocated if they conflict, which is a slow very memory
|
|
- # consuming and fragmenting process. To avoid this, we pick a random,
|
|
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
- ;;
|
|
irix5* | irix6*)
|
|
case $cc_basename in
|
|
CC*)
|
|
@@ -3268,7 +3185,7 @@ case $host_os in
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
;;
|
|
- linux* | k*bsd*-gnu)
|
|
+ linux*)
|
|
case $cc_basename in
|
|
KCC*)
|
|
# Kuck and Associates, Inc. (KAI) C++ Compiler
|
|
@@ -3327,7 +3244,7 @@ case $host_os in
|
|
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
|
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
;;
|
|
cxx*)
|
|
# Compaq C++
|
|
@@ -3370,7 +3287,7 @@ case $host_os in
|
|
;;
|
|
esac
|
|
;;
|
|
- netbsd* | netbsdelf*-gnu)
|
|
+ netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
|
|
wlarc=
|
|
@@ -3524,6 +3441,19 @@ case $host_os in
|
|
# FIXME: insert proper C++ library support
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
;;
|
|
+ sco*)
|
|
+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
+ case $cc_basename in
|
|
+ CC*)
|
|
+ # FIXME: insert proper C++ library support
|
|
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
+ ;;
|
|
+ *)
|
|
+ # FIXME: insert proper C++ library support
|
|
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
sunos4*)
|
|
case $cc_basename in
|
|
CC*)
|
|
@@ -3546,11 +3476,10 @@ case $host_os in
|
|
case $cc_basename in
|
|
CC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
- _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|
+ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
|
|
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
@@ -3570,7 +3499,15 @@ case $host_os in
|
|
esac
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|
|
|
- output_verbose_link_cmd='echo'
|
|
+ # Commands to make compiler produce verbose output that lists
|
|
+ # what "hidden" libraries, object files and flags are used when
|
|
+ # linking a shared library.
|
|
+ #
|
|
+ # There doesn't appear to be a way to prevent this compiler from
|
|
+ # explicitly linking system object files so we need to strip them
|
|
+ # from the output so that they don't get included in the library
|
|
+ # dependencies.
|
|
+ output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
|
|
|
|
# Archives containing C++ object files must be created using
|
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is
|
|
@@ -3616,59 +3553,8 @@ case $host_os in
|
|
;;
|
|
esac
|
|
;;
|
|
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
|
|
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
- runpath_var='LD_RUN_PATH'
|
|
-
|
|
- case $cc_basename in
|
|
- CC*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- ;;
|
|
- *)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- ;;
|
|
- esac
|
|
- ;;
|
|
- sysv5* | sco3.2v5* | sco5v6*)
|
|
- # Note: We can NOT use -z defs as we might desire, because we do not
|
|
- # link with -lc, and that would cause any symbols used from libc to
|
|
- # always be unresolved, which means just about no library would
|
|
- # ever link correctly. If we're not using GNU ld we use -z text
|
|
- # though, which does catch some bad symbols but isn't as heavy-handed
|
|
- # as -z defs.
|
|
- # For security reasons, it is highly recommended that you always
|
|
- # use absolute paths for naming shared libraries, and exclude the
|
|
- # DT_RUNPATH tag from executables and libraries. But doing so
|
|
- # requires that you compile everything twice, which is a pain.
|
|
- # So that behaviour is only enabled if SCOABSPATH is set to a
|
|
- # non-empty value in the environment. Most likely only useful for
|
|
- # creating official distributions of packages.
|
|
- # This is a hack until libtool officially supports absolute path
|
|
- # names for shared libraries.
|
|
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
|
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
- runpath_var='LD_RUN_PATH'
|
|
-
|
|
- case $cc_basename in
|
|
- CC*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- ;;
|
|
- *)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- ;;
|
|
- esac
|
|
;;
|
|
tandem*)
|
|
case $cc_basename in
|
|
@@ -3705,6 +3591,8 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|
+AC_LIBTOOL_SYS_LIB_STRIP
|
|
+AC_LIBTOOL_DLOPEN_SELF($1)
|
|
|
|
AC_LIBTOOL_CONFIG($1)
|
|
|
|
@@ -3722,7 +3610,7 @@ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
|
|
])# AC_LIBTOOL_LANG_CXX_CONFIG
|
|
|
|
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
|
|
-# ------------------------------------
|
|
+# ------------------------
|
|
# Figure out "hidden" library dependencies from verbose
|
|
# compiler output when linking a shared library.
|
|
# Parse the compiler output and extract the necessary
|
|
@@ -3776,7 +3664,7 @@ if AC_TRY_EVAL(ac_compile); then
|
|
# The `*' in the case matches for architectures that use `case' in
|
|
# $output_verbose_cmd can trigger glob expansion during the loop
|
|
# eval without this substitution.
|
|
- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
|
|
+ output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
|
|
|
|
for p in `eval $output_verbose_link_cmd`; do
|
|
case $p in
|
|
@@ -3852,37 +3740,13 @@ fi
|
|
|
|
$rm -f confest.$objext
|
|
|
|
-# PORTME: override above test on systems where it is broken
|
|
-ifelse([$1],[CXX],
|
|
-[case $host_os in
|
|
-interix3*)
|
|
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
- # hack all around it, let's just trust "g++" to DTRT.
|
|
- _LT_AC_TAGVAR(predep_objects,$1)=
|
|
- _LT_AC_TAGVAR(postdep_objects,$1)=
|
|
- _LT_AC_TAGVAR(postdeps,$1)=
|
|
- ;;
|
|
-
|
|
-solaris*)
|
|
- case $cc_basename in
|
|
- CC*)
|
|
- # Adding this requires a known-good setup of shared libraries for
|
|
- # Sun compiler versions before 5.6, else PIC objects from an old
|
|
- # archive will be linked into the output, leading to subtle bugs.
|
|
- _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
|
|
- ;;
|
|
- esac
|
|
- ;;
|
|
-esac
|
|
-])
|
|
-
|
|
case " $_LT_AC_TAGVAR(postdeps, $1) " in
|
|
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
|
|
esac
|
|
])# AC_LIBTOOL_POSTDEP_PREDEP
|
|
|
|
# AC_LIBTOOL_LANG_F77_CONFIG
|
|
-# --------------------------
|
|
+# ------------------------
|
|
# Ensure that the configuration vars for the C compiler are
|
|
# suitably defined. Those variables are subsequently used by
|
|
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|
@@ -3945,7 +3809,7 @@ test "$can_build_shared" = "no" && enabl
|
|
|
|
# On AIX, shared libraries and static libraries use the same namespace, and
|
|
# are all built from PIC.
|
|
-case $host_os in
|
|
+case "$host_os" in
|
|
aix3*)
|
|
test "$enable_shared" = yes && enable_static=no
|
|
if test -n "$RANLIB"; then
|
|
@@ -3966,6 +3830,8 @@ AC_MSG_CHECKING([whether to build static
|
|
test "$enable_shared" = yes || enable_static=yes
|
|
AC_MSG_RESULT([$enable_static])
|
|
|
|
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|
+
|
|
_LT_AC_TAGVAR(GCC, $1)="$G77"
|
|
_LT_AC_TAGVAR(LD, $1)="$LD"
|
|
|
|
@@ -3975,6 +3841,8 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|
+AC_LIBTOOL_SYS_LIB_STRIP
|
|
+
|
|
|
|
AC_LIBTOOL_CONFIG($1)
|
|
|
|
@@ -4031,6 +3899,8 @@ AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1)
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
|
|
+AC_LIBTOOL_SYS_LIB_STRIP
|
|
+AC_LIBTOOL_DLOPEN_SELF($1)
|
|
|
|
AC_LIBTOOL_CONFIG($1)
|
|
|
|
@@ -4040,7 +3910,7 @@ CC="$lt_save_CC"
|
|
|
|
|
|
# AC_LIBTOOL_LANG_RC_CONFIG
|
|
-# -------------------------
|
|
+# --------------------------
|
|
# Ensure that the configuration vars for the Windows resource compiler are
|
|
# suitably defined. Those variables are subsequently used by
|
|
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
|
|
@@ -4103,7 +3973,7 @@ if test -f "$ltmain"; then
|
|
# Now quote all the things that may contain metacharacters while being
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
|
# variables and quote the copies for generation of the libtool script.
|
|
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
|
+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|
SED SHELL STRIP \
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
@@ -4272,9 +4142,6 @@ AR_FLAGS=$lt_AR_FLAGS
|
|
# A C compiler.
|
|
LTCC=$lt_LTCC
|
|
|
|
-# LTCC compiler flags.
|
|
-LTCFLAGS=$lt_LTCFLAGS
|
|
-
|
|
# A language-specific compiler.
|
|
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
|
|
|
|
@@ -4635,7 +4502,7 @@ hpux*) # Its linker distinguishes data f
|
|
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_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
|
|
;;
|
|
-linux* | k*bsd*-gnu)
|
|
+linux*)
|
|
if test "$host_cpu" = ia64; then
|
|
symcode='[[ABCDGIRSTW]]'
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
@@ -4648,18 +4515,9 @@ irix* | nonstopux*)
|
|
osf*)
|
|
symcode='[[BCDEGQRST]]'
|
|
;;
|
|
-solaris*)
|
|
+solaris* | sysv5*)
|
|
symcode='[[BDRT]]'
|
|
;;
|
|
-sco3.2v5*)
|
|
- symcode='[[DT]]'
|
|
- ;;
|
|
-sysv4.2uw2*)
|
|
- symcode='[[DT]]'
|
|
- ;;
|
|
-sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
- symcode='[[ABDT]]'
|
|
- ;;
|
|
sysv4)
|
|
symcode='[[DFNSTU]]'
|
|
;;
|
|
@@ -4842,10 +4700,6 @@ AC_MSG_CHECKING([for $compiler option to
|
|
# DJGPP does not support shared libraries at all
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
;;
|
|
- interix3*)
|
|
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
- # Instead, we relocate shared libraries at runtime.
|
|
- ;;
|
|
sysv4*MP*)
|
|
if test -d /usr/nec; then
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
|
|
@@ -4854,7 +4708,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
hpux*)
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
# not for PA HP-UX.
|
|
- case $host_cpu in
|
|
+ case "$host_cpu" in
|
|
hppa*64*|ia64*)
|
|
;;
|
|
*)
|
|
@@ -4908,22 +4762,22 @@ AC_MSG_CHECKING([for $compiler option to
|
|
;;
|
|
esac
|
|
;;
|
|
- freebsd* | dragonfly*)
|
|
+ freebsd* | kfreebsd*-gnu | dragonfly*)
|
|
# FreeBSD uses GNU C++
|
|
;;
|
|
hpux9* | hpux10* | hpux11*)
|
|
case $cc_basename in
|
|
CC*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
|
if test "$host_cpu" != ia64; then
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
|
|
fi
|
|
;;
|
|
aCC*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
|
|
- case $host_cpu in
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
|
+ case "$host_cpu" in
|
|
hppa*64*|ia64*)
|
|
# +Z the default
|
|
;;
|
|
@@ -4936,10 +4790,6 @@ AC_MSG_CHECKING([for $compiler option to
|
|
;;
|
|
esac
|
|
;;
|
|
- interix*)
|
|
- # This is c89, which is MS Visual C++ (no shared libs)
|
|
- # Anyone wants to do a port?
|
|
- ;;
|
|
irix5* | irix6* | nonstopux*)
|
|
case $cc_basename in
|
|
CC*)
|
|
@@ -4951,7 +4801,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
;;
|
|
esac
|
|
;;
|
|
- linux* | k*bsd*-gnu)
|
|
+ linux*)
|
|
case $cc_basename in
|
|
KCC*)
|
|
# KAI C++ Compiler
|
|
@@ -4968,7 +4818,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
# Portland Group C++ compiler.
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
;;
|
|
cxx*)
|
|
# Compaq C++
|
|
@@ -4994,7 +4844,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
;;
|
|
esac
|
|
;;
|
|
- netbsd* | netbsdelf*-gnu)
|
|
+ netbsd*)
|
|
;;
|
|
osf3* | osf4* | osf5*)
|
|
case $cc_basename in
|
|
@@ -5019,6 +4869,15 @@ AC_MSG_CHECKING([for $compiler option to
|
|
;;
|
|
psos*)
|
|
;;
|
|
+ sco*)
|
|
+ case $cc_basename in
|
|
+ CC*)
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
|
+ ;;
|
|
+ *)
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
solaris*)
|
|
case $cc_basename in
|
|
CC*)
|
|
@@ -5060,14 +4919,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
;;
|
|
esac
|
|
;;
|
|
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
- case $cc_basename in
|
|
- CC*)
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
- ;;
|
|
- esac
|
|
+ unixware*)
|
|
;;
|
|
vxworks*)
|
|
;;
|
|
@@ -5114,11 +4966,6 @@ AC_MSG_CHECKING([for $compiler option to
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
|
|
;;
|
|
|
|
- interix3*)
|
|
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
- # Instead, we relocate shared libraries at runtime.
|
|
- ;;
|
|
-
|
|
msdosdjgpp*)
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
# on systems that don't support them.
|
|
@@ -5135,7 +4982,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
hpux*)
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
# not for PA HP-UX.
|
|
- case $host_cpu in
|
|
+ case "$host_cpu" in
|
|
hppa*64*|ia64*)
|
|
# +Z the default
|
|
;;
|
|
@@ -5182,7 +5029,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
|
# not for PA HP-UX.
|
|
- case $host_cpu in
|
|
+ case "$host_cpu" in
|
|
hppa*64*|ia64*)
|
|
# +Z the default
|
|
;;
|
|
@@ -5205,19 +5052,19 @@ AC_MSG_CHECKING([for $compiler option to
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
;;
|
|
|
|
- linux* | k*bsd*-gnu)
|
|
+ linux*)
|
|
case $cc_basename in
|
|
icc* | ecc*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
;;
|
|
- pgcc* | pgf77* | pgf90* | pgf95*)
|
|
+ pgcc* | pgf77* | pgf90*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
|
;;
|
|
ccc*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
@@ -5233,6 +5080,11 @@ AC_MSG_CHECKING([for $compiler option to
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
|
|
;;
|
|
|
|
+ sco3.2v5*)
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
|
|
+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
|
|
+ ;;
|
|
+
|
|
solaris*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
@@ -5250,7 +5102,7 @@ AC_MSG_CHECKING([for $compiler option to
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
;;
|
|
|
|
- sysv4 | sysv4.2uw2* | sysv4.3*)
|
|
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
@@ -5263,12 +5115,6 @@ AC_MSG_CHECKING([for $compiler option to
|
|
fi
|
|
;;
|
|
|
|
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
- ;;
|
|
-
|
|
unicos*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
|
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
|
@@ -5301,7 +5147,7 @@ if test -n "$_LT_AC_TAGVAR(lt_prog_compi
|
|
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
|
|
fi
|
|
-case $host_os in
|
|
+case "$host_os" in
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
*djgpp*)
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
@@ -5310,16 +5156,6 @@ case $host_os in
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
|
|
;;
|
|
esac
|
|
-
|
|
-#
|
|
-# Check to make sure the static flag actually works.
|
|
-#
|
|
-wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
|
|
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
|
|
- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
|
|
- $lt_tmp_static_flag,
|
|
- [],
|
|
- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
|
|
])
|
|
|
|
|
|
@@ -5346,9 +5182,6 @@ ifelse([$1],[CXX],[
|
|
cygwin* | mingw*)
|
|
_LT_AC_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'
|
|
;;
|
|
- linux* | k*bsd*-gnu)
|
|
- _LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
|
- ;;
|
|
*)
|
|
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
;;
|
|
@@ -5401,10 +5234,6 @@ ifelse([$1],[CXX],[
|
|
with_gnu_ld=no
|
|
fi
|
|
;;
|
|
- interix*)
|
|
- # we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
- with_gnu_ld=yes
|
|
- ;;
|
|
openbsd*)
|
|
with_gnu_ld=no
|
|
;;
|
|
@@ -5489,7 +5318,7 @@ EOF
|
|
_LT_AC_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'
|
|
|
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
|
- _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
# If the export-symbols file already is a .def file (1st line
|
|
# is EXPORTS), use it as is; otherwise, prepend...
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
@@ -5498,37 +5327,22 @@ EOF
|
|
echo EXPORTS > $output_objdir/$soname.def;
|
|
cat $export_symbols >> $output_objdir/$soname.def;
|
|
fi~
|
|
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
else
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
fi
|
|
;;
|
|
|
|
- interix3*)
|
|
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
- # Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
- # default) and relocated if they conflict, which is a slow very memory
|
|
- # consuming and fragmenting process. To avoid this, we pick a random,
|
|
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
- ;;
|
|
-
|
|
- linux* | k*bsd*-gnu)
|
|
+ linux*)
|
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
tmp_addflag=
|
|
case $cc_basename,$host_cpu in
|
|
pgcc*) # Portland Group C compiler
|
|
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
tmp_addflag=' $pic_flag'
|
|
;;
|
|
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
|
|
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
+ pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
|
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
|
|
tmp_addflag=' $pic_flag -Mnomain' ;;
|
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
|
tmp_addflag=' -i_dynamic' ;;
|
|
@@ -5545,13 +5359,12 @@ EOF
|
|
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
- _LT_AC_TAGVAR(link_all_deplibs, $1)=no
|
|
else
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
fi
|
|
;;
|
|
|
|
- netbsd* | netbsdelf*-gnu)
|
|
+ netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
@@ -5561,7 +5374,7 @@ EOF
|
|
fi
|
|
;;
|
|
|
|
- solaris*)
|
|
+ solaris* | sysv5*)
|
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
cat <<EOF 1>&2
|
|
@@ -5582,33 +5395,6 @@ EOF
|
|
fi
|
|
;;
|
|
|
|
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
- case `$LD -v 2>&1` in
|
|
- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
|
|
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
- cat <<_LT_EOF 1>&2
|
|
-
|
|
-*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
-*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
-*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
-*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
-*** your PATH or compiler configuration so that the native linker is
|
|
-*** used, and then restart.
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
- else
|
|
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
- ;;
|
|
-
|
|
sunos4*)
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
|
wlarc=
|
|
@@ -5642,7 +5428,7 @@ _LT_EOF
|
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
|
# are no directories specified by -L.
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
|
+ if test "$GCC" = yes && test -z "$link_static_flag"; then
|
|
# Neither direct hardcoding nor static linking is supported with a
|
|
# broken collect2.
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
|
|
@@ -5676,7 +5462,6 @@ _LT_EOF
|
|
break
|
|
fi
|
|
done
|
|
- ;;
|
|
esac
|
|
|
|
exp_sym_flag='-bexport'
|
|
@@ -5714,7 +5499,6 @@ _LT_EOF
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
|
|
fi
|
|
- ;;
|
|
esac
|
|
shared_flag='-shared'
|
|
if test "$aix_use_runtimelinking" = yes; then
|
|
@@ -5745,12 +5529,12 @@ _LT_EOF
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
|
_LT_AC_SYS_LIBPATH_AIX
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
- _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
else
|
|
if test "$host_cpu" = ia64; then
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
|
else
|
|
# Determine the default libpath from the value encoded in an empty executable.
|
|
_LT_AC_SYS_LIBPATH_AIX
|
|
@@ -5759,11 +5543,13 @@ _LT_EOF
|
|
# -berok will link without error, but may produce a broken library.
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
|
|
+ # -bexpall does not export symbols beginning with underscore (_)
|
|
+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
|
|
# Exported symbols can be pulled into shared objects from archives
|
|
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
|
|
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
|
|
- # This is similar to how AIX traditionally builds its shared libraries.
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
+ # This is similar to how AIX traditionally builds it's shared libraries.
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
fi
|
|
fi
|
|
;;
|
|
@@ -5802,7 +5588,7 @@ _LT_EOF
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
- case $host_os in
|
|
+ case "$host_os" in
|
|
rhapsody* | darwin1.[[012]])
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
|
|
;;
|
|
@@ -5831,7 +5617,7 @@ _LT_EOF
|
|
output_verbose_link_cmd='echo'
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
else
|
|
@@ -5840,7 +5626,7 @@ _LT_EOF
|
|
output_verbose_link_cmd='echo'
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
|
|
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
|
|
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
|
|
+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
|
|
;;
|
|
@@ -5881,7 +5667,7 @@ _LT_EOF
|
|
;;
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
- freebsd* | dragonfly*)
|
|
+ freebsd* | kfreebsd*-gnu | dragonfly*)
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
@@ -5904,62 +5690,47 @@ _LT_EOF
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
;;
|
|
|
|
- hpux10*)
|
|
+ hpux10* | hpux11*)
|
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
- else
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
- fi
|
|
- if test "$with_gnu_ld" = no; then
|
|
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
-
|
|
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
-
|
|
- # hardcode_minus_L: Not really in the search PATH,
|
|
- # but as the default location of the library.
|
|
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|
- fi
|
|
- ;;
|
|
-
|
|
- hpux11*)
|
|
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
- case $host_cpu in
|
|
- hppa*64*)
|
|
+ case "$host_cpu" in
|
|
+ hppa*64*|ia64*)
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
- ia64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
- ;;
|
|
*)
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
- case $host_cpu in
|
|
- hppa*64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- ;;
|
|
- ia64*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ case "$host_cpu" in
|
|
+ hppa*64*|ia64*)
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
;;
|
|
*)
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
;;
|
|
esac
|
|
fi
|
|
if test "$with_gnu_ld" = no; then
|
|
+ case "$host_cpu" in
|
|
+ hppa*64*)
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
-
|
|
- case $host_cpu in
|
|
- hppa*64*|ia64*)
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
+ ;;
|
|
+ ia64*)
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
+
|
|
+ # hardcode_minus_L: Not really in the search PATH,
|
|
+ # but as the default location of the library.
|
|
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
|
|
;;
|
|
*)
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
|
|
@@ -5983,7 +5754,7 @@ _LT_EOF
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|
;;
|
|
|
|
- netbsd* | netbsdelf*-gnu)
|
|
+ netbsd*)
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
|
else
|
|
@@ -6061,6 +5832,14 @@ _LT_EOF
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
|
|
;;
|
|
|
|
+ sco3.2v5*)
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
+ runpath_var=LD_RUN_PATH
|
|
+ hardcode_runpath_var=yes
|
|
+ ;;
|
|
+
|
|
solaris*)
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
|
if test "$GCC" = yes; then
|
|
@@ -6146,45 +5925,36 @@ _LT_EOF
|
|
fi
|
|
;;
|
|
|
|
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
|
|
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
+ sysv4.2uw2*)
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
|
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
- runpath_var='LD_RUN_PATH'
|
|
+ hardcode_runpath_var=yes
|
|
+ runpath_var=LD_RUN_PATH
|
|
+ ;;
|
|
|
|
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
|
|
+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
|
|
if test "$GCC" = yes; then
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
fi
|
|
+ runpath_var='LD_RUN_PATH'
|
|
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
;;
|
|
|
|
- sysv5* | sco3.2v5* | sco5v6*)
|
|
- # Note: We can NOT use -z defs as we might desire, because we do not
|
|
- # link with -lc, and that would cause any symbols used from libc to
|
|
- # always be unresolved, which means just about no library would
|
|
- # ever link correctly. If we're not using GNU ld we use -z text
|
|
- # though, which does catch some bad symbols but isn't as heavy-handed
|
|
- # as -z defs.
|
|
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
|
|
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
|
|
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
|
+ sysv5*)
|
|
+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
|
|
+ # $CC -shared without GNU ld will not create a library from C++
|
|
+ # object files and a static libstdc++, better avoid it by now
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
|
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
|
|
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
|
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
|
|
runpath_var='LD_RUN_PATH'
|
|
-
|
|
- if test "$GCC" = yes; then
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- else
|
|
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
- fi
|
|
;;
|
|
|
|
uts4*)
|
|
@@ -6202,6 +5972,11 @@ _LT_EOF
|
|
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
|
|
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
|
|
|
|
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
+if test "$GCC" = yes; then
|
|
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
+fi
|
|
+
|
|
#
|
|
# Do we need to explicitly link libc?
|
|
#
|
|
@@ -6229,7 +6004,6 @@ x|xyes)
|
|
libobjs=conftest.$ac_objext
|
|
deplibs=
|
|
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
|
|
- pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
|
|
compiler_flags=-v
|
|
linker_flags=-v
|
|
verstring=
|
|
@@ -6385,7 +6159,7 @@ SED=$lt_cv_path_SED
|
|
AC_MSG_RESULT([$SED])
|
|
])
|
|
|
|
-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -6395,29 +6169,14 @@ AC_MSG_RESULT([$SED])
|
|
# ----------------------------
|
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
# generated from the m4 files accompanying Automake X.Y.
|
|
-# (This private macro should not be called outside this file.)
|
|
-AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
-[am__api_version='1.10'
|
|
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
-dnl require some minimum version. Point them to the right macro.
|
|
-m4_if([$1], [1.10], [],
|
|
- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
-])
|
|
-
|
|
-# _AM_AUTOCONF_VERSION(VERSION)
|
|
-# -----------------------------
|
|
-# aclocal traces this macro to find the Autoconf version.
|
|
-# This is a private macro too. Using m4_define simplifies
|
|
-# the logic in aclocal, which can simply ignore this definition.
|
|
-m4_define([_AM_AUTOCONF_VERSION], [])
|
|
+AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
|
|
|
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
# -------------------------------
|
|
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
+# Call AM_AUTOMAKE_VERSION so it can be traced.
|
|
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
-[AM_AUTOMAKE_VERSION([1.10])dnl
|
|
-_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
|
|
+ [AM_AUTOMAKE_VERSION([1.9.6])])
|
|
|
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
|
|
@@ -6474,14 +6233,14 @@ am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
|
|
# AM_CONDITIONAL -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
|
|
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
|
# Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
-# serial 8
|
|
+# serial 7
|
|
|
|
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
# -------------------------------------
|
|
@@ -6490,10 +6249,8 @@ AC_DEFUN([AM_CONDITIONAL],
|
|
[AC_PREREQ(2.52)dnl
|
|
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
-AC_SUBST([$1_TRUE])dnl
|
|
-AC_SUBST([$1_FALSE])dnl
|
|
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
+AC_SUBST([$1_TRUE])
|
|
+AC_SUBST([$1_FALSE])
|
|
if $2; then
|
|
$1_TRUE=
|
|
$1_FALSE='#'
|
|
@@ -6507,14 +6264,15 @@ AC_CONFIG_COMMANDS_PRE(
|
|
Usually this means the macro was only invoked conditionally.]])
|
|
fi])])
|
|
|
|
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
|
+
|
|
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|
# Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
-# serial 9
|
|
+# serial 8
|
|
|
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
|
# written in clear, in which case automake, when reading aclocal.m4,
|
|
@@ -6542,7 +6300,6 @@ AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
|
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
|
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
- [$1], UPC, [depcc="$UPC" am_compiler_list=],
|
|
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
[depcc="$$1" am_compiler_list=])
|
|
|
|
@@ -6608,7 +6365,6 @@ AC_CACHE_CHECK([dependency style of $dep
|
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
|
>/dev/null 2>conftest.err &&
|
|
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
@@ -6661,8 +6417,7 @@ if test "x$enable_dependency_tracking" !
|
|
AMDEPBACKSLASH='\'
|
|
fi
|
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
-AC_SUBST([AMDEPBACKSLASH])dnl
|
|
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
+AC_SUBST([AMDEPBACKSLASH])
|
|
])
|
|
|
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
@@ -6687,9 +6442,8 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
# some people rename them; so instead we look at the file content.
|
|
# Grep'ing the first line is not enough: some people post-process
|
|
# each Makefile.in and add a new line on top of each file to say so.
|
|
- # Grep'ing the whole file is not good either: AIX grep has a line
|
|
- # limit of 2048, but all sed's we know have understand at least 4000.
|
|
- if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
|
|
+ # So let's grep whole file.
|
|
+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
|
dirpart=`AS_DIRNAME("$mf")`
|
|
else
|
|
continue
|
|
@@ -6736,8 +6490,8 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS]
|
|
|
|
# Do all the work for Automake. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
-# 2005, 2006 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|
+# Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -6760,20 +6514,16 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS]
|
|
# arguments mandatory, and then we can depend on a new Autoconf
|
|
# release and drop the old call support.
|
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
-[AC_PREREQ([2.60])dnl
|
|
+[AC_PREREQ([2.58])dnl
|
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
dnl the ones we care about.
|
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
- # is not polluted with repeated "-I."
|
|
- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
- # test to see if srcdir already configured
|
|
- if test -f $srcdir/config.status; then
|
|
+# test to see if srcdir already configured
|
|
+if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
|
+ test -f $srcdir/config.status; then
|
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
- fi
|
|
fi
|
|
|
|
# test whether we have cygpath
|
|
@@ -6793,9 +6543,6 @@ m4_ifval([$2],
|
|
AC_SUBST([PACKAGE], [$1])dnl
|
|
AC_SUBST([VERSION], [$2])],
|
|
[_AM_SET_OPTIONS([$1])dnl
|
|
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
|
- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
|
|
@@ -6831,10 +6578,6 @@ AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
[_AM_DEPENDENCIES(CXX)],
|
|
[define([AC_PROG_CXX],
|
|
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
- [_AM_DEPENDENCIES(OBJC)],
|
|
- [define([AC_PROG_OBJC],
|
|
- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
|
])
|
|
])
|
|
|
|
@@ -6870,7 +6613,7 @@ echo "timestamp for $1" >`AS_DIRNAME([$1
|
|
# Define $install_sh.
|
|
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
|
|
+install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
|
AC_SUBST(install_sh)])
|
|
|
|
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
|
@@ -6894,6 +6637,35 @@ fi
|
|
rmdir .tst 2>/dev/null
|
|
AC_SUBST([am__leading_dot])])
|
|
|
|
+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
+# From Jim Meyering
|
|
+
|
|
+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
|
+# Free Software Foundation, Inc.
|
|
+#
|
|
+# This file is free software; the Free Software Foundation
|
|
+# gives unlimited permission to copy and/or distribute it,
|
|
+# with or without modifications, as long as this notice is preserved.
|
|
+
|
|
+# serial 4
|
|
+
|
|
+AC_DEFUN([AM_MAINTAINER_MODE],
|
|
+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
+ dnl maintainer-mode is disabled by default
|
|
+ AC_ARG_ENABLE(maintainer-mode,
|
|
+[ --enable-maintainer-mode enable make rules and dependencies not useful
|
|
+ (and sometimes confusing) to the casual installer],
|
|
+ USE_MAINTAINER_MODE=$enableval,
|
|
+ USE_MAINTAINER_MODE=no)
|
|
+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|
+ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
|
+ MAINT=$MAINTAINER_MODE_TRUE
|
|
+ AC_SUBST(MAINT)dnl
|
|
+]
|
|
+)
|
|
+
|
|
+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
|
+
|
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
|
|
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
|
@@ -6948,14 +6720,14 @@ rm -f confinc confmf
|
|
|
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
|
|
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
|
# Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
-# serial 5
|
|
+# serial 4
|
|
|
|
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
# ------------------------------
|
|
@@ -6971,7 +6743,6 @@ AC_SUBST($1)])
|
|
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
|
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
-AC_REQUIRE_AUX_FILE([missing])dnl
|
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
|
# Use eval to expand $SHELL
|
|
if eval "$MISSING --run true"; then
|
|
@@ -6982,7 +6753,7 @@ else
|
|
fi
|
|
])
|
|
|
|
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -6990,23 +6761,60 @@ fi
|
|
|
|
# AM_PROG_MKDIR_P
|
|
# ---------------
|
|
-# Check for `mkdir -p'.
|
|
+# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
|
+#
|
|
+# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
|
+# created by `make install' are always world readable, even if the
|
|
+# installer happens to have an overly restrictive umask (e.g. 077).
|
|
+# This was a mistake. There are at least two reasons why we must not
|
|
+# use `-m 0755':
|
|
+# - it causes special bits like SGID to be ignored,
|
|
+# - it may be too restrictive (some setups expect 775 directories).
|
|
+#
|
|
+# Do not use -m 0755 and let people choose whatever they expect by
|
|
+# setting umask.
|
|
+#
|
|
+# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
|
+# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
|
+# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
|
+# concurrently, both version can detect that a/ is missing, but only
|
|
+# one can create it and the other will error out. Consequently we
|
|
+# restrict ourselves to GNU make (using the --version option ensures
|
|
+# this.)
|
|
AC_DEFUN([AM_PROG_MKDIR_P],
|
|
-[AC_PREREQ([2.60])dnl
|
|
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
|
-dnl while keeping a definition of mkdir_p for backward compatibility.
|
|
-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
|
-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
|
-dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
|
-dnl adjustment using top_builddir (which is defined more often than
|
|
-dnl MKDIR_P).
|
|
-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
|
-case $mkdir_p in
|
|
- [[\\/$]]* | ?:[[\\/]]*) ;;
|
|
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
-esac
|
|
-])
|
|
+[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
|
+ # We used to keeping the `.' as first argument, in order to
|
|
+ # allow $(mkdir_p) to be used without argument. As in
|
|
+ # $(mkdir_p) $(somedir)
|
|
+ # where $(somedir) is conditionally defined. However this is wrong
|
|
+ # for two reasons:
|
|
+ # 1. if the package is installed by a user who cannot write `.'
|
|
+ # make install will fail,
|
|
+ # 2. the above comment should most certainly read
|
|
+ # $(mkdir_p) $(DESTDIR)$(somedir)
|
|
+ # so it does not work when $(somedir) is undefined and
|
|
+ # $(DESTDIR) is not.
|
|
+ # To support the latter case, we have to write
|
|
+ # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
|
+ # so the `.' trick is pointless.
|
|
+ mkdir_p='mkdir -p --'
|
|
+else
|
|
+ # On NextStep and OpenStep, the `mkdir' command does not
|
|
+ # recognize any option. It will interpret all options as
|
|
+ # directories to create, and then abort because `.' already
|
|
+ # exists.
|
|
+ for d in ./-p ./--version;
|
|
+ do
|
|
+ test -d $d && rmdir $d
|
|
+ done
|
|
+ # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
|
+ if test -f "$ac_aux_dir/mkinstalldirs"; then
|
|
+ mkdir_p='$(mkinstalldirs)'
|
|
+ else
|
|
+ mkdir_p='$(install_sh) -d'
|
|
+ fi
|
|
+fi
|
|
+AC_SUBST([mkdir_p])])
|
|
|
|
# Helper functions for option handling. -*- Autoconf -*-
|
|
|
|
@@ -7299,21 +7107,9 @@ dnl Don't test for $cross_compiling = ye
|
|
if test "$cross_compiling" != no; then
|
|
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
fi
|
|
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
|
|
-# Copyright (C) 2006 Free Software Foundation, Inc.
|
|
-#
|
|
-# This file is free software; the Free Software Foundation
|
|
-# gives unlimited permission to copy and/or distribute it,
|
|
-# with or without modifications, as long as this notice is preserved.
|
|
-
|
|
-# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
-# ---------------------------
|
|
-# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
|
|
-# This macro is traced by Automake.
|
|
-AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
-
|
|
# Check how to create a tarball. -*- Autoconf -*-
|
|
|
|
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|