libtool.m4   libtool.m4 
skipping to change at line 165 skipping to change at line 165
AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_PROG_LN_S])dnl
test -z "$LN_S" && LN_S="ln -s" test -z "$LN_S" && LN_S="ln -s"
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
dnl dnl
AC_REQUIRE([LT_CMD_MAX_LEN])dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dn l _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dn l
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
dnl dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CMD_RELOAD])dnl
m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
m4_require([_LT_WITH_SYSROOT])dnl
_LT_CONFIG_LIBTOOL_INIT([ _LT_CONFIG_LIBTOOL_INIT([
# See if we are running on zsh, and set the options which allow our # See if we are running on zsh, and set the options which allow our
# commands through without removal of \ escapes INIT. # commands through without removal of \ escapes INIT.
if test -n "\${ZSH_VERSION+set}" ; then if test -n "\${ZSH_VERSION+set}" ; then
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
fi fi
]) ])
if test -n "${ZSH_VERSION+set}" ; then if test -n "${ZSH_VERSION+set}" ; then
setopt NO_GLOB_SUBST setopt NO_GLOB_SUBST
skipping to change at line 719 skipping to change at line 722
_LT_EOF _LT_EOF
;; ;;
esac esac
_LT_PROG_LTMAIN _LT_PROG_LTMAIN
# We use sed instead of cat because bash on DJGPP gets confused if # We use sed instead of cat because bash on DJGPP gets confused if
# if finds mixed CR/LF and LF-only lines. Since sed operates in # if finds mixed CR/LF and LF-only lines. Since sed operates in
# text mode, it properly converts lines to CR/LF. This bash problem # text mode, it properly converts lines to CR/LF. This bash problem
# is reportedly fixed, but why not run on old versions too? # is reportedly fixed, but why not run on old versions too?
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfil sed '$q' "$ltmain" >> "$cfgfile" \
e" \ || (rm -f "$cfgfile"; exit 1)
|| (rm -f "$cfgfile"; exit 1)
_LT_PROG_XSI_SHELLFNS _LT_PROG_REPLACE_SHELLFNS
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$c mv -f "$cfgfile" "$ofile" ||
fgfile" \
|| (rm -f "$cfgfile"; exit 1)
mv -f "$cfgfile" "$ofile" ||
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
chmod +x "$ofile" chmod +x "$ofile"
], ],
[cat <<_LT_EOF >> "$ofile" [cat <<_LT_EOF >> "$ofile"
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
dnl in a comment (ie after a #). dnl in a comment (ie after a #).
# ### BEGIN LIBTOOL TAG CONFIG: $1 # ### BEGIN LIBTOOL TAG CONFIG: $1
_LT_LIBTOOL_TAG_VARS(_LT_TAG) _LT_LIBTOOL_TAG_VARS(_LT_TAG)
# ### END LIBTOOL TAG CONFIG: $1 # ### END LIBTOOL TAG CONFIG: $1
skipping to change at line 1035 skipping to change at line 1035
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
_LT_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/\$so name \$verstring${_lt_dsymutil}" _LT_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/\$so name \$verstring${_lt_dsymutil}"
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_ flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$r path/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_ flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$r path/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
fi fi
],[]) ],[])
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
]) ])
# _LT_SYS_MODULE_PATH_AIX # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
# ----------------------- # ----------------------------------
# Links a minimal program and checks the executable # Links a minimal program and checks the executable
# for the system default hardcoded library path. In most cases, # for the system default hardcoded library path. In most cases,
# this is /usr/lib:/lib, but when the MPI compilers are used # this is /usr/lib:/lib, but when the MPI compilers are used
# the location of the communication and MPI libs are included too. # the location of the communication and MPI libs are included too.
# If we don't find anything, use the default library path according # If we don't find anything, use the default library path according
# to the aix ld manual. # to the aix ld manual.
# Store the results from the different compilers for each TAGNAME.
# Allow to override them for all tags through lt_cv_aix_libpath.
m4_defun([_LT_SYS_MODULE_PATH_AIX], m4_defun([_LT_SYS_MODULE_PATH_AIX],
[m4_require([_LT_DECL_SED])dnl [m4_require([_LT_DECL_SED])dnl
AC_LINK_IFELSE(AC_LANG_PROGRAM,[ if test "${lt_cv_aix_libpath+set}" = set; then
lt_aix_libpath_sed=' aix_libpath=$lt_cv_aix_libpath
/Import File Strings/,/^$/ { else
/^0/ { AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
s/^0 *\(.*\)$/\1/ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
p lt_aix_libpath_sed='[
} /Import File Strings/,/^$/ {
}' /^0/ {
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l s/^0 *\([^ ]*\) *$/\1/
ibpath_sed"` p
# Check for a 64-bit object if we didn't find anything. }
if test -z "$aix_libpath"; then }]'
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev
aix_libpath_sed"` /null | $SED -n -e "$lt_aix_libpath_sed"`
fi],[]) # Check for a 64-bit object if we didn't find anything.
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2
>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
fi],[])
if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
_LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
fi
])
aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
fi
])# _LT_SYS_MODULE_PATH_AIX ])# _LT_SYS_MODULE_PATH_AIX
# _LT_SHELL_INIT(ARG) # _LT_SHELL_INIT(ARG)
# ------------------- # -------------------
m4_define([_LT_SHELL_INIT], m4_define([_LT_SHELL_INIT],
[m4_divert_text([M4SH-INIT], [$1 [m4_divert_text([M4SH-INIT], [$1
])])# _LT_SHELL_INIT ])])# _LT_SHELL_INIT
# _LT_PROG_ECHO_BACKSLASH # _LT_PROG_ECHO_BACKSLASH
# ----------------------- # -----------------------
skipping to change at line 1080 skipping to change at line 1091
# In particular, with Autoconf 2.60 or later we add some code to the start # In particular, with Autoconf 2.60 or later we add some code to the start
# of the generated configure script which will find a shell with a builtin # of the generated configure script which will find a shell with a builtin
# printf (which we can use as an echo command). # printf (which we can use as an echo command).
m4_defun([_LT_PROG_ECHO_BACKSLASH], m4_defun([_LT_PROG_ECHO_BACKSLASH],
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
AC_MSG_CHECKING([how to print strings]) AC_MSG_CHECKING([how to print strings])
# Test print first, because it will be a builtin if present. # Test print first, because it will be a builtin if present.
if test "X`print -r -- -n 2>/dev/null`" = X-n && \ if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
ECHO='print -r --' ECHO='print -r --'
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
ECHO='printf %s\n' ECHO='printf %s\n'
else else
# Use this function as a fallback that always works. # Use this function as a fallback that always works.
func_fallback_echo () func_fallback_echo ()
{ {
eval 'cat <<_LTECHO_EOF eval 'cat <<_LTECHO_EOF
$[]1 $[]1
skipping to change at line 1123 skipping to change at line 1134
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
PATH=/empty FPATH=/empty; export PATH FPATH PATH=/empty FPATH=/empty; export PATH FPATH
test "X`printf %s $ECHO`" = "X$ECHO" \ test "X`printf %s $ECHO`" = "X$ECHO" \
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])]) || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
])# _LT_PROG_ECHO_BACKSLASH ])# _LT_PROG_ECHO_BACKSLASH
# _LT_WITH_SYSROOT
# ----------------
AC_DEFUN([_LT_WITH_SYSROOT],
[AC_MSG_CHECKING([for sysroot])
AC_ARG_WITH([sysroot],
[ --with-sysroot[=DIR] Search for dependent libraries within DIR
(or the compiler's sysroot if not specified).],
[], [with_sysroot=no])
dnl lt_sysroot will always be passed unquoted. We quote it here
dnl in case the user passed a directory name.
lt_sysroot=
case ${with_sysroot} in #(
yes)
if test "$GCC" = yes; then
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
fi
;; #(
/*)
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
;; #(
no|'')
;; #(
*)
AC_MSG_RESULT([${with_sysroot}])
AC_MSG_ERROR([The sysroot must be an absolute path.])
;;
esac
AC_MSG_RESULT([${lt_sysroot:-no}])
_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
[dependent libraries, and in which our libraries should be installed.])])
# _LT_ENABLE_LOCK # _LT_ENABLE_LOCK
# --------------- # ---------------
m4_defun([_LT_ENABLE_LOCK], m4_defun([_LT_ENABLE_LOCK],
[AC_ARG_ENABLE([libtool-lock], [AC_ARG_ENABLE([libtool-lock],
[AS_HELP_STRING([--disable-libtool-lock], [AS_HELP_STRING([--disable-libtool-lock],
[avoid locking (might break parallel builds)])]) [avoid locking (might break parallel builds)])])
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
# Some flags need to be propagated to the compiler or linker for good # Some flags need to be propagated to the compiler or linker for good
# libtool support. # libtool support.
skipping to change at line 1268 skipping to change at line 1312
;; ;;
esac esac
fi fi
rm -rf conftest* rm -rf conftest*
;; ;;
esac esac
need_locks="$enable_libtool_lock" need_locks="$enable_libtool_lock"
])# _LT_ENABLE_LOCK ])# _LT_ENABLE_LOCK
# _LT_PROG_AR
# -----------
m4_defun([_LT_PROG_AR],
[AC_CHECK_TOOLS(AR, [ar], false)
: ${AR=ar}
: ${AR_FLAGS=cru}
_LT_DECL([], [AR], [1], [The archiver])
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
[lt_cv_ar_at_file=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
[echo conftest.$ac_objext > conftest.lst
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG
_FD'
AC_TRY_EVAL([lt_ar_try])
if test "$ac_status" -eq 0; then
# Ensure the archiver fails upon bogus file names.
rm -f conftest.$ac_objext libconftest.a
AC_TRY_EVAL([lt_ar_try])
if test "$ac_status" -ne 0; then
lt_cv_ar_at_file=@
fi
fi
rm -f conftest.* libconftest.a
])
])
if test "x$lt_cv_ar_at_file" = xno; then
archiver_list_spec=
else
archiver_list_spec=$lt_cv_ar_at_file
fi
_LT_DECL([], [archiver_list_spec], [1],
[How to feed a file listing to the archiver])
])# _LT_PROG_AR
# _LT_CMD_OLD_ARCHIVE # _LT_CMD_OLD_ARCHIVE
# ------------------- # -------------------
m4_defun([_LT_CMD_OLD_ARCHIVE], m4_defun([_LT_CMD_OLD_ARCHIVE],
[AC_CHECK_TOOL(AR, ar, false) [_LT_PROG_AR
test -z "$AR" && AR=ar
test -z "$AR_FLAGS" && AR_FLAGS=cru
_LT_DECL([], [AR], [1], [The archiver])
_LT_DECL([], [AR_FLAGS], [1])
AC_CHECK_TOOL(STRIP, strip, :) AC_CHECK_TOOL(STRIP, strip, :)
test -z "$STRIP" && STRIP=: test -z "$STRIP" && STRIP=:
_LT_DECL([], [STRIP], [1], [A symbol stripping program]) _LT_DECL([], [STRIP], [1], [A symbol stripping program])
AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(RANLIB, ranlib, :)
test -z "$RANLIB" && RANLIB=: test -z "$RANLIB" && RANLIB=:
_LT_DECL([], [RANLIB], [1], _LT_DECL([], [RANLIB], [1],
[Commands used to install an old-style archive]) [Commands used to install an old-style archive])
skipping to change at line 1610 skipping to change at line 1686
# define LT_DLLAZY_OR_NOW 0 # define LT_DLLAZY_OR_NOW 0
# endif # endif
# endif # endif
# endif # endif
# endif # endif
#endif #endif
/* When -fvisbility=hidden is used, assume the code has been annotated /* When -fvisbility=hidden is used, assume the code has been annotated
correspondingly for the symbols needed. */ correspondingly for the symbols needed. */
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__ GNUC__ > 3)) #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__ GNUC__ > 3))
void fnord () __attribute__((visibility("default"))); int fnord () __attribute__((visibility("default")));
#endif #endif
void fnord () { int i=42; } int fnord () { return 42; }
int main () int main ()
{ {
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
int status = $lt_dlunknown; int status = $lt_dlunknown;
if (self) if (self)
{ {
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
else else
{ {
skipping to change at line 2146 skipping to change at line 2222
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
# libtool to hard-code these into programs # libtool to hard-code these into programs
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
version_type=windows version_type=windows
shrext_cmds=".dll" shrext_cmds=".dll"
need_version=no need_version=no
need_lib_prefix=no need_lib_prefix=no
case $GCC,$host_os in case $GCC,$cc_basename in
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) yes,*)
# gcc
library_names_spec='$libname.dll.a' library_names_spec='$libname.dll.a'
# DLL is installed to $(libdir)/../bin by postinstall_cmds # DLL is installed to $(libdir)/../bin by postinstall_cmds
postinstall_cmds='base_file=`basename \${file}`~ postinstall_cmds='base_file=`basename \${file}`~
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlna me'\''`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlna me'\''`~
dldir=$destdir/`dirname \$dlpath`~ dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~ test -d \$dldir || mkdir -p \$dldir~
$install_prog $dir/$dlname \$dldir/$dlname~ $install_prog $dir/$dlname \$dldir/$dlname~
chmod a+x \$dldir/$dlname~ chmod a+x \$dldir/$dlname~
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
skipping to change at line 2180 skipping to change at line 2257
;; ;;
mingw* | cegcc*) mingw* | cegcc*)
# MinGW DLLs use traditional 'lib' prefix # MinGW DLLs use traditional 'lib' prefix
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver suffix}${shared_ext}' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${ver suffix}${shared_ext}'
;; ;;
pw32*) pw32*)
# pw32 DLLs use 'pw' prefix rather than 'lib' # pw32 DLLs use 'pw' prefix rather than 'lib'
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${re lease} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${re lease} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
;; ;;
esac esac
dynamic_linker='Win32 ld.exe'
;;
*,cl*)
# Native MSVC
libname_spec='$name'
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versu
ffix}${shared_ext}'
library_names_spec='${libname}.dll.lib'
case $build_os in
mingw*)
sys_lib_search_path_spec=
lt_save_ifs=$IFS
IFS=';'
for lt_path in $LIB
do
IFS=$lt_save_ifs
# Let DOS variable expansion print the short 8.3 style file name.
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @
echo %~si"`
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
done
IFS=$lt_save_ifs
# Convert to MSYS style.
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e
's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
;;
cygwin*)
# Convert to unix form, then to dos form, then back to unix form
# but this time dos style (no spaces!) so that the unix form looks
# like /cygdrive/c/PROGRA~1:/cygdr...
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_
spec" 2>/dev/null`
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path
_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
;;
*)
sys_lib_search_path_spec="$LIB"
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/nul
l]; then
# It is most probably a Windows format PATH.
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED
-e 's/;/ /g'`
else
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED
-e "s/$PATH_SEPARATOR/ /g"`
fi
# FIXME: find the short name or the path components, as spaces are
# common. (e.g. "Program Files" -> "PROGRA~1")
;;
esac
# DLL is installed to $(libdir)/../bin by postinstall_cmds
postinstall_cmds='base_file=`basename \${file}`~
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlna
me'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
$install_prog $dir/$dlname \$dldir/$dlname'
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\'
'`~
dlpath=$dir/\$dldll~
$RM \$dlpath'
shlibpath_overrides_runpath=yes
dynamic_linker='Win32 link.exe'
;; ;;
*) *)
# Assume MSVC wrapper
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'` ${versuffix}${shared_ext} $libname.lib' library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'` ${versuffix}${shared_ext} $libname.lib'
dynamic_linker='Win32 ld.exe'
;; ;;
esac esac
dynamic_linker='Win32 ld.exe'
# FIXME: first we should search . and the directory the executable is in # FIXME: first we should search . and the directory the executable is in
shlibpath_var=PATH shlibpath_var=PATH
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
dynamic_linker="$host_os dyld" dynamic_linker="$host_os dyld"
version_type=darwin version_type=darwin
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$sh ared_ext' library_names_spec='${libname}${release}${major}$shared_ext ${libname}$sh ared_ext'
skipping to change at line 2889 skipping to change at line 3024
[AC_CACHE_CHECK([for $LD option to reload object files], [AC_CACHE_CHECK([for $LD option to reload object files],
lt_cv_ld_reload_flag, lt_cv_ld_reload_flag,
[lt_cv_ld_reload_flag='-r']) [lt_cv_ld_reload_flag='-r'])
reload_flag=$lt_cv_ld_reload_flag reload_flag=$lt_cv_ld_reload_flag
case $reload_flag in case $reload_flag in
"" | " "*) ;; "" | " "*) ;;
*) reload_flag=" $reload_flag" ;; *) reload_flag=" $reload_flag" ;;
esac esac
reload_cmds='$LD$reload_flag -o $output$reload_objs' reload_cmds='$LD$reload_flag -o $output$reload_objs'
case $host_os in case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
if test "$GCC" != yes; then
reload_cmds=false
fi
;;
darwin*) darwin*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs ' reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs '
else else
reload_cmds='$LD$reload_flag -o $output$reload_objs' reload_cmds='$LD$reload_flag -o $output$reload_objs'
fi fi
;; ;;
esac esac
_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files] )dnl _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files] )dnl
_LT_TAGDECL([], [reload_cmds], [2])dnl _LT_TAGDECL([], [reload_cmds], [2])dnl
skipping to change at line 3106 skipping to change at line 3246
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
esac esac
;; ;;
tpf*) tpf*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
esac esac
]) ])
file_magic_glob=
want_nocaseglob=no
if test "$build" = "$host"; then
case $host_os in
mingw* | pw32*)
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
want_nocaseglob=yes
else
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWx
XyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
fi
;;
esac
fi
file_magic_cmd=$lt_cv_file_magic_cmd file_magic_cmd=$lt_cv_file_magic_cmd
deplibs_check_method=$lt_cv_deplibs_check_method deplibs_check_method=$lt_cv_deplibs_check_method
test -z "$deplibs_check_method" && deplibs_check_method=unknown test -z "$deplibs_check_method" && deplibs_check_method=unknown
_LT_DECL([], [deplibs_check_method], [1], _LT_DECL([], [deplibs_check_method], [1],
[Method to check whether dependent libraries are shared objects]) [Method to check whether dependent libraries are shared objects])
_LT_DECL([], [file_magic_cmd], [1], _LT_DECL([], [file_magic_cmd], [1],
[Command to use when deplibs_check_method == "file_magic"]) [Command to use when deplibs_check_method = "file_magic"])
_LT_DECL([], [file_magic_glob], [1],
[How to find potential files when deplibs_check_method = "file_magic"])
_LT_DECL([], [want_nocaseglob], [1],
[Find potential files using nocaseglob when deplibs_check_method = "fil
e_magic"])
])# _LT_CHECK_MAGIC_METHOD ])# _LT_CHECK_MAGIC_METHOD
# LT_PATH_NM # LT_PATH_NM
# ---------- # ----------
# find the pathname to a BSD- or MS-compatible name lister # find the pathname to a BSD- or MS-compatible name lister
AC_DEFUN([LT_PATH_NM], AC_DEFUN([LT_PATH_NM],
[AC_REQUIRE([AC_PROG_CC])dnl [AC_REQUIRE([AC_PROG_CC])dnl
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
[if test -n "$NM"; then [if test -n "$NM"; then
# Let the user override the test. # Let the user override the test.
skipping to change at line 3215 skipping to change at line 3374
rm -f conftest*]) rm -f conftest*])
])# LT_PATH_NM ])# LT_PATH_NM
# Old names: # Old names:
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AM_PROG_NM], [])
dnl AC_DEFUN([AC_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], [])
# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
# --------------------------------
# how to determine the name of the shared library
# associated with a specific link library.
# -- PORTME fill in with the dynamic library characteristics
m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
[m4_require([_LT_DECL_EGREP])
m4_require([_LT_DECL_OBJDUMP])
m4_require([_LT_DECL_DLLTOOL])
AC_CACHE_CHECK([how to associate runtime and link libraries],
lt_cv_sharedlib_from_linklib_cmd,
[lt_cv_sharedlib_from_linklib_cmd='unknown'
case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
# two different shell functions defined in ltmain.sh
# decide which to use based on capabilities of $DLLTOOL
case `$DLLTOOL --help 2>&1` in
*--identify-strict*)
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
;;
*)
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
;;
esac
;;
*)
# fallback: assume linklib IS sharedlib
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
;;
esac
])
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
[Command to associate shared and link libraries])
])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
# _LT_PATH_MANIFEST_TOOL
# ----------------------
# locate the manifest tool
m4_defun([_LT_PATH_MANIFEST_TOOL],
[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest
_tool],
[lt_cv_path_mainfest_tool=no
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
cat conftest.err >&AS_MESSAGE_LOG_FD
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
lt_cv_path_mainfest_tool=yes
fi
rm -f conftest*])
if test "x$lt_cv_path_mainfest_tool" != xyes; then
MANIFEST_TOOL=:
fi
_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
])# _LT_PATH_MANIFEST_TOOL
# LT_LIB_M # LT_LIB_M
# -------- # --------
# check for math library # check for math library
AC_DEFUN([LT_LIB_M], AC_DEFUN([LT_LIB_M],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl [AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM= LIBM=
case $host in case $host in
*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin* ) *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin* )
# These system don't have libm, or don't need it # These system don't have libm, or don't need it
;; ;;
skipping to change at line 3338 skipping to change at line 3557
*GNU* | *'with BFD'*) *GNU* | *'with BFD'*)
symcode='[[ABCDGIRSTW]]' ;; symcode='[[ABCDGIRSTW]]' ;;
esac esac
# Transform an extracted symbol line into a proper C declaration. # Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently, # Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach. # so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1( );/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1( );/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
# Transform an extracted symbol line into symbol name and symbol address # Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]
{\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\ *$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$
"\2\", (void *) \&\2},/p'" / {\"\2\", (void *) \&\2},/p'"
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^
]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \
[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ (lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \
]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" ([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
# Handle CRLF in mingw tool chain # Handle CRLF in mingw tool chain
opt_cr= opt_cr=
case $build_os in case $build_os in
mingw*) mingw*)
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
;; ;;
esac esac
# Try without a prefix underscore, then with it. # Try without a prefix underscore, then with it.
skipping to change at line 3375 skipping to change at line 3594
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
" {if(hide[section]) next};"\ " {if(hide[section]) next};"\
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx)) }"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx)) }"\
" ' prfx=^$ac_symprfx]" " ' prfx=^$ac_symprfx]"
else else
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcod e*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcod e*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
fi fi
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gn u_lto/d'"
# Check to see that the pipe works correctly. # Check to see that the pipe works correctly.
pipe_works=no pipe_works=no
rm -f conftest* rm -f conftest*
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
char nm_test_var; char nm_test_var;
skipping to change at line 3408 skipping to change at line 3628
if sort "$nlist" | uniq > "$nlist"T; then if sort "$nlist" | uniq > "$nlist"T; then
mv -f "$nlist"T "$nlist" mv -f "$nlist"T "$nlist"
else else
rm -f "$nlist"T rm -f "$nlist"T
fi fi
# Make sure that we snagged all the symbols we need. # Make sure that we snagged all the symbols we need.
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
cat <<_LT_EOF > conftest.$ac_ext cat <<_LT_EOF > conftest.$ac_ext
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and test
s. */
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
/* DATA imports from DLLs on WIN32 con't be const, because runtime
relocations are performed -- see ld's documentation on pseudo-relocs. *
/
# define LT@&t@_DLSYM_CONST
#elif defined(__osf__)
/* This system does not cope well with relocations in const data. */
# define LT@&t@_DLSYM_CONST
#else
# define LT@&t@_DLSYM_CONST const
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
_LT_EOF _LT_EOF
# Now generate the symbol file. # Now generate the symbol file.
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v ma in >> conftest.$ac_ext' eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v ma in >> conftest.$ac_ext'
cat <<_LT_EOF >> conftest.$ac_ext cat <<_LT_EOF >> conftest.$ac_ext
/* The mapping between symbol names and symbols. */ /* The mapping between symbol names and symbols. */
const struct { LT@&t@_DLSYM_CONST struct {
const char *name; const char *name;
void *address; void *address;
} }
lt__PROGRAM__LTX_preloaded_symbols[[]] = lt__PROGRAM__LTX_preloaded_symbols[[]] =
{ {
{ "@PROGRAM@", (void *) 0 }, { "@PROGRAM@", (void *) 0 },
_LT_EOF _LT_EOF
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2 },/" < "$nlist" | $GREP -v main >> conftest.$ac_ext $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2 },/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cat <<\_LT_EOF >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext
{0, (void *) 0} {0, (void *) 0}
skipping to change at line 3445 skipping to change at line 3677
return lt__PROGRAM__LTX_preloaded_symbols; return lt__PROGRAM__LTX_preloaded_symbols;
} }
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
_LT_EOF _LT_EOF
# Now try linking the two files. # Now try linking the two files.
mv conftest.$ac_objext conftstm.$ac_objext mv conftest.$ac_objext conftstm.$ac_objext
lt_save_LIBS="$LIBS" lt_globsym_save_LIBS=$LIBS
lt_save_CFLAGS="$CFLAGS" lt_globsym_save_CFLAGS=$CFLAGS
LIBS="conftstm.$ac_objext" LIBS="conftstm.$ac_objext"
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
pipe_works=yes pipe_works=yes
fi fi
LIBS="$lt_save_LIBS" LIBS=$lt_globsym_save_LIBS
CFLAGS="$lt_save_CFLAGS" CFLAGS=$lt_globsym_save_CFLAGS
else else
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
fi fi
else else
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
fi fi
else else
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
fi fi
else else
skipping to change at line 3486 skipping to change at line 3718
]) ])
if test -z "$lt_cv_sys_global_symbol_pipe"; then if test -z "$lt_cv_sys_global_symbol_pipe"; then
lt_cv_sys_global_symbol_to_cdecl= lt_cv_sys_global_symbol_to_cdecl=
fi fi
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl" ; then if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl" ; then
AC_MSG_RESULT(failed) AC_MSG_RESULT(failed)
else else
AC_MSG_RESULT(ok) AC_MSG_RESULT(ok)
fi fi
# Response file support.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
nm_file_list_spec='@'
elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
nm_file_list_spec='@'
fi
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
[Take the output of nm and produce a listing of raw symbols and C names ]) [Take the output of nm and produce a listing of raw symbols and C names ])
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
[Transform the output of nm in a proper C declaration]) [Transform the output of nm in a proper C declaration])
_LT_DECL([global_symbol_to_c_name_address], _LT_DECL([global_symbol_to_c_name_address],
[lt_cv_sys_global_symbol_to_c_name_address], [1], [lt_cv_sys_global_symbol_to_c_name_address], [1],
[Transform the output of nm in a C name address pair]) [Transform the output of nm in a C name address pair])
_LT_DECL([global_symbol_to_c_name_address_lib_prefix], _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
[Transform the output of nm in a C name address pair when lib prefix is needed]) [Transform the output of nm in a C name address pair when lib prefix is needed])
_LT_DECL([], [nm_file_list_spec], [1],
[Specify filename containing input files for $NM])
]) # _LT_CMD_GLOBAL_SYMBOLS ]) # _LT_CMD_GLOBAL_SYMBOLS
# _LT_COMPILER_PIC([TAGNAME]) # _LT_COMPILER_PIC([TAGNAME])
# --------------------------- # ---------------------------
m4_defun([_LT_COMPILER_PIC], m4_defun([_LT_COMPILER_PIC],
[m4_require([_LT_TAG_COMPILER])dnl [m4_require([_LT_TAG_COMPILER])dnl
_LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_wl, $1)=
_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)=
_LT_TAGVAR(lt_prog_compiler_static, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)=
AC_MSG_CHECKING([for $compiler option to produce PIC])
m4_if([$1], [CXX], [ m4_if([$1], [CXX], [
# C++ specific cases for pic, static, wl, etc. # C++ specific cases for pic, static, wl, etc.
if test "$GXX" = yes; then if test "$GXX" = yes; then
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
case $host_os in case $host_os in
aix*) aix*)
# All AIX code is PIC. # All AIX code is PIC.
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
skipping to change at line 3611 skipping to change at line 3851
fi fi
;; ;;
chorus*) chorus*)
case $cc_basename in case $cc_basename in
cxch68*) cxch68*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/C C/libC.a $MVME_DIR/lib/classix/libcx.s.a" # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/C C/libC.a $MVME_DIR/lib/classix/libcx.s.a"
;; ;;
esac esac
;; ;;
mingw* | cygwin* | os2* | pw32* | cegcc*)
# This hack is so that the source file can tell whether it is being
# built for inclusion in a dll (and should export symbols for exampl
e).
m4_if([$1], [GCJ], [],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
;;
dgux*) dgux*)
case $cc_basename in case $cc_basename in
ec++*) ec++*)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
;; ;;
ghcx*) ghcx*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
;; ;;
*) *)
skipping to change at line 3985 skipping to change at line 4231
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;; ;;
# Lahey Fortran 8.1. # Lahey Fortran 8.1.
lf95*) lf95*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
;; ;;
nagfor*)
# NAG Fortran compiler
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
;;
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
# Portland Group compilers (*not* the Pentium gcc compiler, # Portland Group compilers (*not* the Pentium gcc compiler,
# which looks to be a dead project) # which looks to be a dead project)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
;; ;;
ccc*) ccc*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
# All Alpha code is PIC. # All Alpha code is PIC.
skipping to change at line 4104 skipping to change at line 4356
]) ])
case $host_os in case $host_os in
# For platforms which do not support PIC, -DPIC is meaningless: # For platforms which do not support PIC, -DPIC is meaningless:
*djgpp*) *djgpp*)
_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)=
;; ;;
*) *)
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
;; ;;
esac esac
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], AC_CACHE_CHECK([for $compiler option to produce PIC],
[How to pass a linker flag through the compiler]) [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
[_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic
, $1)])
_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $
1)
# #
# Check to make sure the PIC flag actually works. # Check to make sure the PIC flag actually works.
# #
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_p ic, $1) works], _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_p ic, $1) works],
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if ([$1],[CXX],[ -DPIC],[])])], [], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if ([$1],[CXX],[ -DPIC],[])])], [],
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
"" | " "*) ;; "" | " "*) ;;
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler _pic, $1)" ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler _pic, $1)" ;;
esac], esac],
[_LT_TAGVAR(lt_prog_compiler_pic, $1)= [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
fi fi
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
[Additional compiler flags for building library objects]) [Additional compiler flags for building library objects])
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
[How to pass a linker flag through the compiler])
# #
# Check to make sure the static flag actually works. # Check to make sure the static flag actually works.
# #
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGV AR(lt_prog_compiler_static, $1)\" wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGV AR(lt_prog_compiler_static, $1)\"
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
$lt_tmp_static_flag, $lt_tmp_static_flag,
[], [],
[_LT_TAGVAR(lt_prog_compiler_static, $1)=]) [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
[Compiler flag to prevent dynamic linking]) [Compiler flag to prevent dynamic linking])
])# _LT_COMPILER_PIC ])# _LT_COMPILER_PIC
# _LT_LINKER_SHLIBS([TAGNAME]) # _LT_LINKER_SHLIBS([TAGNAME])
# ---------------------------- # ----------------------------
# See if the linker supports building shared libraries. # See if the linker supports building shared libraries.
m4_defun([_LT_LINKER_SHLIBS], m4_defun([_LT_LINKER_SHLIBS],
[AC_REQUIRE([LT_PATH_LD])dnl [AC_REQUIRE([LT_PATH_LD])dnl
AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_NM])dnl
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_SED])dnl
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
m4_require([_LT_TAG_COMPILER])dnl m4_require([_LT_TAG_COMPILER])dnl
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librari es]) AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared librari es])
m4_if([$1], [CXX], [ m4_if([$1], [CXX], [
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_ symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_ symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.* ']
case $host_os in case $host_os in
aix[[4-9]]*) aix[[4-9]]*)
# If we're using GNU nm, then we don't want the "-C" option. # If we're using GNU nm, then we don't want the "-C" option.
# -C means demangle to AIX nm, but means don't demangle with GNU nm # -C means demangle to AIX nm, but means don't demangle with GNU nm
# Also, AIX nm treats weak defined symbols like other global defined # Also, AIX nm treats weak defined symbols like other global defined
# symbols, whereas GNU nm marks them as "W". # symbols, whereas GNU nm marks them as "W".
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $ex port_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $ex port_symbols'
else else
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([subs tr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([subs tr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
fi fi
;; ;;
pw32*) pw32*)
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
;; ;;
cygwin* | mingw* | cegcc*) cygwin* | mingw* | cegcc*)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa case $cc_basename in
l_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/ cl*) ;;
;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/ *)
d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo
;; bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT
A/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[
]]/s/.* //'\'' | sort | uniq > $export_symbols'
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL
__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
;;
esac
;;
*) *)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa l_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $globa l_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
;; ;;
esac esac
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.* ']
], [ ], [
runpath_var= runpath_var=
_LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(allow_undefined_flag, $1)=
_LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(always_export_symbols, $1)=no
_LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_cmds, $1)=
_LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)=
_LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(compiler_needs_object, $1)=no
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_ symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_ symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
skipping to change at line 4342 skipping to change at line 4605
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
# as there is no search path for DLLs. # as there is no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(always_export_symbols, $1)=no
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo
bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT
A/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $expor A/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[
t_symbols' ]]/s/.* //'\'' | sort | uniq > $export_symbols'
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL
__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil er_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker - -out-implib -Xlinker $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil er_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker - -out-implib -Xlinker $lib'
# If the export-symbols file already is a .def file (1st line # If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is; otherwise, prepend... # is EXPORTS), use it as is; otherwise, prepend...
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb ols`" = xEXPORTS; then _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb ols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname.def; cp $export_symbols $output_objdir/$soname.def;
else else
echo EXPORTS > $output_objdir/$soname.def; echo EXPORTS > $output_objdir/$soname.def;
cat $export_symbols >> $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def;
skipping to change at line 4390 skipping to change at line 4654
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
tmp_diet=no tmp_diet=no
if test "$host_os" = linux-dietlibc; then if test "$host_os" = linux-dietlibc; then
case $cc_basename in case $cc_basename in
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
esac esac
fi fi
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
&& test "$tmp_diet" = no && test "$tmp_diet" = no
then then
tmp_addflag= tmp_addflag=' $pic_flag'
tmp_sharedflag='-shared' tmp_sharedflag='-shared'
case $cc_basename,$host_cpu in case $cc_basename,$host_cpu in
pgcc*) # Portland Group C compiler pgcc*) # Portland Group C compiler
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who le-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who le-archive'
tmp_addflag=' $pic_flag' tmp_addflag=' $pic_flag'
;; ;;
pgf77* | pgf90* | pgf95* | pgfortran*) pgf77* | pgf90* | pgf95* | pgfortran*)
# Portland Group f77 and f90 compile rs # Portland Group f77 and f90 compile rs
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who le-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_c onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-who le-archive'
tmp_addflag=' $pic_flag -Mnomain' ;; tmp_addflag=' $pic_flag -Mnomain' ;;
skipping to change at line 4460 skipping to change at line 4724
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
netbsd*) netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $lin ker_flags -o $lib' _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $lin ker_flags -o $lib'
wlarc= wlarc=
else else
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib
r_flags ${wl}-soname $wl$soname -o $lib' s $compiler_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
_symbols -o $lib' $wl$export_symbols -o $lib'
fi fi
;; ;;
solaris*) solaris*)
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
cat <<_LT_EOF 1>&2 cat <<_LT_EOF 1>&2
*** Warning: The releases 2.8.* of the GNU linker cannot reliably *** Warning: The releases 2.8.* of the GNU linker cannot reliably
*** create shared libraries on Solaris systems. Therefore, libtool *** create shared libraries on Solaris systems. Therefore, libtool
*** is disabling shared libraries support. We urge you to upgrade GNU *** is disabling shared libraries support. We urge you to upgrade GNU
*** binutils to release 2.9.1 or newer. Another option is to modify *** binutils to release 2.9.1 or newer. Another option is to modify
*** your PATH or compiler configuration so that the native linker is *** your PATH or compiler configuration so that the native linker is
*** used, and then restart. *** used, and then restart.
_LT_EOF _LT_EOF
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null ; then elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null ; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib
r_flags ${wl}-soname $wl$soname -o $lib' s $compiler_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
_symbols -o $lib' $wl$export_symbols -o $lib'
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in case `$LD -v 2>&1` in
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
cat <<_LT_EOF 1>&2 cat <<_LT_EOF 1>&2
skipping to change at line 4526 skipping to change at line 4790
sunos4*) sunos4*)
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $l ib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $l ib $libobjs $deplibs $linker_flags'
wlarc= wlarc=
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
*) *)
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib
r_flags ${wl}-soname $wl$soname -o $lib' s $compiler_flags ${wl}-soname $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs
compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file
_symbols -o $lib' $wl$export_symbols -o $lib'
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
runpath_var= runpath_var=
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
_LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)=
skipping to change at line 4657 skipping to change at line 4921
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
# It seems that -bexpall does not export symbols beginning with # It seems that -bexpall does not export symbols beginning with
# underscore (_), so it is better to generate a list of symbols to ex port. # underscore (_), so it is better to generate a list of symbols to ex port.
_LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(always_export_symbols, $1)=yes
if test "$aix_use_runtimelinking" = yes; then if test "$aix_use_runtimelinking" = yes; then
# Warning - without using the other runtime loading flags (-brtl), # Warning - without using the other runtime loading flags (-brtl),
# -berok will link without error, but may produce a broken library. # -berok will link without error, but may produce a broken library.
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
# Determine the default libpath from the value encoded in an # Determine the default libpath from the value encoded in an
# empty executable. # empty executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath"
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${all ow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag }"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${all ow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag }"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
else else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/li b:/lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/li b:/lib'
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $outpu t_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $outpu t_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
else else
# Determine the default libpath from the value encoded in an # Determine the default libpath from the value encoded in an
# empty executable. # empty executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:' "$aix_libpath"
# Warning - without using the other run time loading flags, # Warning - without using the other run time loading flags,
# -berok will link without error, but may produce a broken library . # -berok will link without error, but may produce a broken library .
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
if test "$with_gnu_ld" = yes; then if test "$with_gnu_ld" = yes; then
# We only use this code for GNU lds that support --whole-archive . # We only use this code for GNU lds that support --whole-archive .
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$co nvenience ${wl}--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$co nvenience ${wl}--no-whole-archive'
else else
# Exported symbols can be pulled into shared objects from archiv es # Exported symbols can be pulled into shared objects from archiv es
skipping to change at line 4712 skipping to change at line 4976
bsdi[[45]]*) bsdi[[45]]*)
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using # When not using gcc, we currently assume that we are using
# Microsoft Visual C++. # Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is # hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs. # no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' case $cc_basename in
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported cl*)
# Tell ltmain to make .lib files, not .a files. # Native MSVC
libext=lib _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
# Tell ltmain to make .dll files, not .so files. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
shrext_cmds=".dll" _LT_TAGVAR(always_export_symbols, $1)=yes
# FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(file_list_spec, $1)='@'
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `f # Tell ltmain to make .lib files, not .a files.
unc_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' libext=lib
# The linker will automatically build a .lib file if we build a DLL. # Tell ltmain to make .dll files, not .so files.
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true' shrext_cmds=".dll"
# FIXME: Should let the user specify the lib program. # FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplib _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs
s' $compiler_flags $deplibs -Wl,-dll~linknames='
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symb
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ols`" = xEXPORTS; then
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '
1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
else
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $expo
rt_symbols > $output_objdir/$soname.exp;
fi~
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplib
s "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$l
ibname.dll.lib"~
linknames='
# The linker will not automatically build a static lib if we build a
DLL.
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $gl
obal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DA
TA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $expo
rt_symbols'
# Don't use ranlib
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
lt_tool_outputfile="@TOOL_OUTPUT@"~
case $lt_outputfile in
*.exe|*.EXE) ;;
*)
lt_outputfile="$lt_outputfile.exe"
lt_tool_outputfile="$lt_tool_outputfile.exe"
;;
esac~
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifes
t"; then
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputr
esource:"$lt_tool_outputfile" || exit 1;
$RM "$lt_outputfile.manifest";
fi'
;;
*)
# Assume MSVC wrapper
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
# Tell ltmain to make .lib files, not .a files.
libext=lib
# Tell ltmain to make .dll files, not .so files.
shrext_cmds=".dll"
# FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `
func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
# The linker will automatically build a .lib file if we build a DLL.
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
# FIXME: Should let the user specify the lib program.
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_depli
bs'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
;;
esac
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
_LT_DARWIN_LINKER_FEATURES($1) _LT_DARWIN_LINKER_FEATURES($1)
;; ;;
dgux*) dgux*)
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $dep libs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $dep libs $linker_flags'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
skipping to change at line 4763 skipping to change at line 5070
# Unfortunately, older versions of FreeBSD 2 do not have this feature. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
freebsd2*) freebsd2*)
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags'
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
freebsd* | dragonfly*) freebsd* | dragonfly*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $ compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
hpux9*) hpux9*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $dep libs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdi r/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_o bjdir/$soname $lib'
else else
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $ install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~te st $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $ install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~te st $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
fi fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
# hardcode_minus_L: Not really in the search PATH, # hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library. # but as the default location of the library.
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
;; ;;
hpux10*) hpux10*)
if test "$GCC" = yes && test "$with_gnu_ld" = no; then if test "$GCC" = yes && test "$with_gnu_ld" = no; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$so name ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags '
else else
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir - o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir - o $lib $libobjs $deplibs $linker_flags'
fi fi
if test "$with_gnu_ld" = no; then if test "$with_gnu_ld" = no; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
skipping to change at line 4811 skipping to change at line 5118
fi fi
;; ;;
hpux11*) hpux11*)
if test "$GCC" = yes && test "$with_gnu_ld" = no; then if test "$GCC" = yes && test "$with_gnu_ld" = no; then
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
ia64*) ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$sona me ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$ soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$sona me ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$ soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_fla gs'
;; ;;
esac esac
else else
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
ia64*) ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+no defaultrpath -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+no defaultrpath -o $lib $libobjs $deplibs $compiler_flags'
;; ;;
skipping to change at line 4861 skipping to change at line 5168
# hardcode_minus_L: Not really in the search PATH, # hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library. # but as the default location of the library.
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
;; ;;
esac esac
fi fi
;; ;;
irix5* | irix6* | nonstopux*) irix5* | irix6* | nonstopux*)
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "$ {wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objd ir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib s $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_e cho_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${o utput_objdir}/so_locations -o $lib'
# Try to use the -exported_symbol ld option, if it does not # Try to use the -exported_symbol ld option, if it does not
# work, assume that -exports_file does not work either and # work, assume that -exports_file does not work either and
# implicitly export all symbols. # implicitly export all symbols.
save_LDFLAGS="$LDFLAGS" # This should be the same for all languages, so no per-tag cache var
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-upda iable.
te_registry ${wl}/dev/null" AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol
AC_LINK_IFELSE(int foo(void) {}, ],
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplib [lt_cv_irix_exported_symbol],
s $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_e [save_LDFLAGS="$LDFLAGS"
cho_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${o LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-up
utput_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' date_registry ${wl}/dev/null"
) AC_LINK_IFELSE(
LDFLAGS="$save_LDFLAGS" [AC_LANG_SOURCE(
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
[C++], [[int foo (void) { return 0; }]],
[Fortran 77], [[
subroutine foo
end]],
[Fortran], [[
subroutine foo
end]])])],
[lt_cv_irix_exported_symbol=yes],
[lt_cv_irix_exported_symbol=no])
LDFLAGS="$save_LDFLAGS"])
if test "$lt_cv_irix_exported_symbol" = yes; then
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libob
js $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring"
&& func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registr
y ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbol
s -o $lib'
fi
else else
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_versio n $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compile r_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_versio n $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set _version $verstring"` -update_registry ${output_objdir}/so_locations -expor ts_file $export_symbols -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $ compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set _version $verstring"` -update_registry ${output_objdir}/so_locations -expor ts_file $export_symbols -o $lib'
fi fi
_LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(inherit_rpath, $1)=yes
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
;; ;;
skipping to change at line 4955 skipping to change at line 5277
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && fun c_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_ locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && fun c_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_ locations -o $lib'
fi fi
_LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
;; ;;
osf4* | osf5*) # as osf3* with the addition of -msym flag osf4* | osf5*) # as osf3* with the addition of -msym flag
if test "$GCC" = yes; then if test "$GCC" = yes; then
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl} \*' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl} \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test - n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}- update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pi c_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$sona me `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstrin g"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
else else
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdi r}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $li bobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdi r}/so_locations -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\ \n" "-hidden">> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\ \n" "-hidden">> $lib.exp~
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compil er_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " -set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compil er_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO " -set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
# Both c and cxx compiler support -rpath directly # Both c and cxx compiler support -rpath directly
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
fi fi
_LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
;; ;;
solaris*) solaris*)
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs' _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
if test "$GCC" = yes; then if test "$GCC" = yes; then
wlarc='${wl}' wlarc='${wl}'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}tex t ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$ soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl }-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
else else
case `$CC -V 2>&1` in case `$CC -V 2>&1` in
*"Compilers 5.0"*) *"Compilers 5.0"*)
wlarc='' wlarc=''
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $so name -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $so name -o $lib $libobjs $deplibs $linker_flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~c at $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; }; " >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~c at $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; }; " >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libo bjs $deplibs $linker_flags~$RM $lib.exp' $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libo bjs $deplibs $linker_flags~$RM $lib.exp'
;; ;;
*) *)
wlarc='${wl}' wlarc='${wl}'
skipping to change at line 5248 skipping to change at line 5570
into the resulting binary]) into the resulting binary])
_LT_TAGDECL([], [hardcode_automatic], [0], _LT_TAGDECL([], [hardcode_automatic], [0],
[Set to "yes" if building a shared library automatically hardcodes DIR [Set to "yes" if building a shared library automatically hardcodes DIR
into the library and all subsequent libraries and executables linked into the library and all subsequent libraries and executables linked
against it]) against it])
_LT_TAGDECL([], [inherit_rpath], [0], _LT_TAGDECL([], [inherit_rpath], [0],
[Set to yes if linker adds runtime paths of dependent libraries [Set to yes if linker adds runtime paths of dependent libraries
to runtime path list]) to runtime path list])
_LT_TAGDECL([], [link_all_deplibs], [0], _LT_TAGDECL([], [link_all_deplibs], [0],
[Whether libtool must link a program against all its dependency librari es]) [Whether libtool must link a program against all its dependency librari es])
_LT_TAGDECL([], [fix_srcfile_path], [1],
[Fix the shell variable $srcfile for the compiler])
_LT_TAGDECL([], [always_export_symbols], [0], _LT_TAGDECL([], [always_export_symbols], [0],
[Set to "yes" if exported symbols are required]) [Set to "yes" if exported symbols are required])
_LT_TAGDECL([], [export_symbols_cmds], [2], _LT_TAGDECL([], [export_symbols_cmds], [2],
[The commands to list exported symbols]) [The commands to list exported symbols])
_LT_TAGDECL([], [exclude_expsyms], [1], _LT_TAGDECL([], [exclude_expsyms], [1],
[Symbols that should not be listed in the preloaded symbols]) [Symbols that should not be listed in the preloaded symbols])
_LT_TAGDECL([], [include_expsyms], [1], _LT_TAGDECL([], [include_expsyms], [1],
[Symbols that must always be exported]) [Symbols that must always be exported])
_LT_TAGDECL([], [prelink_cmds], [2], _LT_TAGDECL([], [prelink_cmds], [2],
[Commands necessary for linking programs (against libraries) with templ ates]) [Commands necessary for linking programs (against libraries) with templ ates])
_LT_TAGDECL([], [postlink_cmds], [2],
[Commands necessary for finishing linking programs])
_LT_TAGDECL([], [file_list_spec], [1], _LT_TAGDECL([], [file_list_spec], [1],
[Specify filename containing input files]) [Specify filename containing input files])
dnl FIXME: Not yet implemented dnl FIXME: Not yet implemented
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
dnl [Compiler flag to generate thread safe objects]) dnl [Compiler flag to generate thread safe objects])
])# _LT_LINKER_SHLIBS ])# _LT_LINKER_SHLIBS
# _LT_LANG_C_CONFIG([TAG]) # _LT_LANG_C_CONFIG([TAG])
# ------------------------ # ------------------------
# Ensure that the configuration variables for a C compiler are suitably # Ensure that the configuration variables for a C compiler are suitably
skipping to change at line 5359 skipping to change at line 5681
])# _LT_LANG_C_CONFIG ])# _LT_LANG_C_CONFIG
# _LT_LANG_CXX_CONFIG([TAG]) # _LT_LANG_CXX_CONFIG([TAG])
# -------------------------- # --------------------------
# Ensure that the configuration variables for a C++ compiler are suitably # Ensure that the configuration variables for a C++ compiler are suitably
# defined. These variables are subsequently used by _LT_CONFIG to write # defined. These variables are subsequently used by _LT_CONFIG to write
# the compiler configuration to `libtool'. # the compiler configuration to `libtool'.
m4_defun([_LT_LANG_CXX_CONFIG], m4_defun([_LT_LANG_CXX_CONFIG],
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_EGREP])dnl
m4_require([_LT_PATH_MANIFEST_TOOL])dnl
if test -n "$CXX" && ( test "X$CXX" != "Xno" && if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
(test "X$CXX" != "Xg++"))) ; then (test "X$CXX" != "Xg++"))) ; then
AC_PROG_CXXCPP AC_PROG_CXXCPP
else else
_lt_caught_CXX_error=yes _lt_caught_CXX_error=yes
fi fi
AC_LANG_PUSH(C++) AC_LANG_PUSH(C++)
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
skipping to change at line 5420 skipping to change at line 5743
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE _LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE _LT_LINKER_BOILERPLATE
# Allow CC to be a program name with arguments. # Allow CC to be a program name with arguments.
lt_save_CC=$CC lt_save_CC=$CC
lt_save_CFLAGS=$CFLAGS
lt_save_LD=$LD lt_save_LD=$LD
lt_save_GCC=$GCC lt_save_GCC=$GCC
GCC=$GXX GCC=$GXX
lt_save_with_gnu_ld=$with_gnu_ld lt_save_with_gnu_ld=$with_gnu_ld
lt_save_path_LD=$lt_cv_path_LD lt_save_path_LD=$lt_cv_path_LD
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
else else
$as_unset lt_cv_prog_gnu_ld $as_unset lt_cv_prog_gnu_ld
fi fi
if test -n "${lt_cv_path_LDCXX+set}"; then if test -n "${lt_cv_path_LDCXX+set}"; then
lt_cv_path_LD=$lt_cv_path_LDCXX lt_cv_path_LD=$lt_cv_path_LDCXX
else else
$as_unset lt_cv_path_LD $as_unset lt_cv_path_LD
fi fi
test -z "${LDCXX+set}" || LD=$LDCXX test -z "${LDCXX+set}" || LD=$LDCXX
CC=${CXX-"c++"} CC=${CXX-"c++"}
CFLAGS=$CXXFLAGS
compiler=$CC compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler]) _LT_CC_BASENAME([$compiler])
if test -n "$compiler"; then if test -n "$compiler"; then
# We don't want -fno-exception when compiling C++ code, so set the # We don't want -fno-exception when compiling C++ code, so set the
# no_builtin_flag separately # no_builtin_flag separately
if test "$GXX" = yes; then if test "$GXX" = yes; then
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
else else
skipping to change at line 5458 skipping to change at line 5783
fi fi
if test "$GXX" = yes; then if test "$GXX" = yes; then
# Set up default GNU C++ configuration # Set up default GNU C++ configuration
LT_PATH_LD LT_PATH_LD
# Check if GNU C++ uses GNU ld as the underlying linker, since the # Check if GNU C++ uses GNU ld as the underlying linker, since the
# archiving commands below assume that GNU ld is being used. # archiving commands below assume that GNU ld is being used.
if test "$with_gnu_ld" = yes; then if test "$with_gnu_ld" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $pred
$libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname
-o $lib' $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdli
objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-
$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir ' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir '
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
# If archive_cmds runs LD, not CC, wlarc should be empty # If archive_cmds runs LD, not CC, wlarc should be empty
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
# investigate it a little bit more. (MM) # investigate it a little bit more. (MM)
wlarc='${wl}' wlarc='${wl}'
# ancient GNU ld didn't support --whole-archive et. al. # ancient GNU ld didn't support --whole-archive et. al.
skipping to change at line 5600 skipping to change at line 5925
# It seems that -bexpall does not export symbols beginning with # It seems that -bexpall does not export symbols beginning with
# underscore (_), so it is better to generate a list of symbols to # underscore (_), so it is better to generate a list of symbols to
# export. # export.
_LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(always_export_symbols, $1)=yes
if test "$aix_use_runtimelinking" = yes; then if test "$aix_use_runtimelinking" = yes; then
# Warning - without using the other runtime loading flags (-brtl) , # Warning - without using the other runtime loading flags (-brtl) ,
# -berok will link without error, but may produce a broken librar y. # -berok will link without error, but may produce a broken librar y.
_LT_TAGVAR(allow_undefined_flag, $1)='-berok' _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
# Determine the default libpath from the value encoded in an empt y # Determine the default libpath from the value encoded in an empt y
# executable. # executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir :'"$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir :'"$aix_libpath"
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$sonam e $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${a llow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_fl ag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$sonam e $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${a llow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_fl ag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
else else
if test "$host_cpu" = ia64; then if test "$host_cpu" = ia64; then
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/ lib:/lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/ lib:/lib'
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $out put_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_fla gs ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $out put_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_fla gs ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
else else
# Determine the default libpath from the value encoded in an # Determine the default libpath from the value encoded in an
# empty executable. # empty executable.
_LT_SYS_MODULE_PATH_AIX _LT_SYS_MODULE_PATH_AIX([$1])
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdi r:'"$aix_libpath" _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdi r:'"$aix_libpath"
# Warning - without using the other run time loading flags, # Warning - without using the other run time loading flags,
# -berok will link without error, but may produce a broken libra ry. # -berok will link without error, but may produce a broken libra ry.
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
if test "$with_gnu_ld" = yes; then if test "$with_gnu_ld" = yes; then
# We only use this code for GNU lds that support --whole-archi ve. # We only use this code for GNU lds that support --whole-archi ve.
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$ convenience ${wl}--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$ convenience ${wl}--no-whole-archive'
else else
# Exported symbols can be pulled into shared objects from arch ives # Exported symbols can be pulled into shared objects from arch ives
skipping to change at line 5654 skipping to change at line 5979
chorus*) chorus*)
case $cc_basename in case $cc_basename in
*) *)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
esac esac
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless case $GXX,$cc_basename in
, ,cl* | no,cl*)
# as there is no search path for DLLs. # Native MSVC
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' # hardcode_libdir_flag_spec is actually meaningless, as there is
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols # no search path for DLLs.
' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(always_export_symbols, $1)=yes
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@'
# Tell ltmain to make .lib files, not .a files.
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then libext=lib
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objec # Tell ltmain to make .dll files, not .so files.
ts $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$so shrext_cmds=".dll"
name ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # FIXME: Setting linknames here is a bad hack.
# If the export-symbols file already is a .def file (1st line _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libob
# is EXPORTS), use it as is; otherwise, prepend... js $compiler_flags $deplibs -Wl,-dll~linknames='
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_s _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_sy
ymbols`" = xEXPORTS; then mbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname.def; $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -
else e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
echo EXPORTS > $output_objdir/$soname.def; else
cat $export_symbols >> $output_objdir/$soname.def; $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $e
fi~ xport_symbols > $output_objdir/$soname.exp;
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects fi~
$libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$sonam $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $depl
e ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' ibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir
else $libname.dll.lib"~
_LT_TAGVAR(ld_shlibs, $1)=no linknames='
fi # The linker will not automatically build a static lib if we build
;; a DLL.
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
# Don't use ranlib
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
lt_tool_outputfile="@TOOL_OUTPUT@"~
case $lt_outputfile in
*.exe|*.EXE) ;;
*)
lt_outputfile="$lt_outputfile.exe"
lt_tool_outputfile="$lt_tool_outputfile.exe"
;;
esac~
func_to_tool_file "$lt_outputfile"~
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manif
est"; then
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outpu
tresource:"$lt_tool_outputfile" || exit 1;
$RM "$lt_outputfile.manifest";
fi'
;;
*)
# g++
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningles
s,
# as there is no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbol
s'
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=no
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$s
oname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is; otherwise, prepend...
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_
symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname.def;
else
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/$sona
me ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
else
_LT_TAGVAR(ld_shlibs, $1)=no
fi
;;
esac
;;
darwin* | rhapsody*) darwin* | rhapsody*)
_LT_DARWIN_LINKER_FEATURES($1) _LT_DARWIN_LINKER_FEATURES($1)
;; ;;
dgux*) dgux*)
case $cc_basename in case $cc_basename in
ec++*) ec++*)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
skipping to change at line 5751 skipping to change at line 6122
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler fro m # There doesn't appear to be a way to prevent this compiler fro m
# explicitly linking system object files so we need to strip th em # explicitly linking system object files so we need to strip th em
# from the output so that they don't get included in the librar y # from the output so that they don't get included in the librar y
# dependencies. # dependencies.
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest. $objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in c onftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; d one; func_echo_all "$list"' output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest. $objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in c onftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; d one; func_echo_all "$list"'
;; ;;
*) *)
if test "$GXX" = yes; then if test "$GXX" = yes; then
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$son ame $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/ $soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~ test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
;; ;;
hpux10*|hpux11*) hpux10*|hpux11*)
if test $with_gnu_ld = no; then if test $with_gnu_ld = no; then
skipping to change at line 5822 skipping to change at line 6193
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$ objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in con ftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; don e; func_echo_all "$list"' output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$ objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in con ftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; don e; func_echo_all "$list"'
;; ;;
*) *)
if test "$GXX" = yes; then if test "$GXX" = yes; then
if test $with_gnu_ld = no; then if test $with_gnu_ld = no; then
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o bjects $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o bjects $compiler_flags'
;; ;;
ia64*) ia64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobj s $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic _flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic _flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_obj ects $libobjs $deplibs $postdep_objects $compiler_flags'
;; ;;
esac esac
fi fi
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
;; ;;
skipping to change at line 5866 skipping to change at line 6237
# Archives containing C++ object files must be created using # Archives containing C++ object files must be created using
# "CC -ar", where "CC" is the IRIX C++ compiler. This is # "CC -ar", where "CC" is the IRIX C++ compiler. This is
# necessary to make sure instantiated templates are included # necessary to make sure instantiated templates are included
# in the archive. # in the archive.
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $old objs' _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $old objs'
;; ;;
*) *)
if test "$GXX" = yes; then if test "$GXX" = yes; then
if test "$with_gnu_ld" = no; then if test "$with_gnu_ld" = no; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${w l}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$v erstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib ' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}- soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_versi on ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locatio ns -o $lib'
else else
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${w l}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$v erstring"` -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}- soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_versi on ${wl}$verstring"` -o $lib'
fi fi
fi fi
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
;; ;;
esac esac
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir ' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir '
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
_LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(inherit_rpath, $1)=yes
;; ;;
skipping to change at line 6146 skipping to change at line 6517
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v confte st.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$t emplist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templi st; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list= "$list $z";;esac; done; func_echo_all "$list"' output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v confte st.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$t emplist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templi st; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list= "$list $z";;esac; done; func_echo_all "$list"'
;; ;;
*) *)
if test "$GXX" = yes && test "$with_gnu_ld" = no; then if test "$GXX" = yes && test "$with_gnu_ld" = no; then
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
case $host in case $host in
osf3*) osf3*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allo w_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_ob jdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allo w_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_ob jdir}/so_locations -o $lib'
;; ;;
*) *)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allo w_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && fun c_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl} ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostd lib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obje cts $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstri ng" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_regi stry ${wl}${output_objdir}/so_locations -o $lib'
;; ;;
esac esac
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$l ibdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$l ibdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used whe n # what "hidden" libraries, object files and flags are used whe n
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
skipping to change at line 6233 skipping to change at line 6604
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libob js $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
# The C++ compiler must be used to create the archive. # The C++ compiler must be used to create the archive.
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldl ib $oldobjs' _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldl ib $oldobjs'
;; ;;
*) *)
# GNU C++ compiler with Solaris linker # GNU C++ compiler with Solaris linker
if test "$GXX" = yes && test "$with_gnu_ld" = no; then if test "$GXX" = yes && test "$with_gnu_ld" = no; then
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
if $CC --version | $GREP -v '^2\.7' > /dev/null; then if $CC --version | $GREP -v '^2\.7' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla gs ${wl}-h $wl$soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_ objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $li b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $l ib.exp'
# Commands to make compiler produce verbose output that list s # Commands to make compiler produce verbose output that list s
# what "hidden" libraries, object files and flags are used w hen # what "hidden" libraries, object files and flags are used w hen
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$ob jext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$ob jext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
# g++ 2.7 appears to require `-G' NOT `-shared' on this # g++ 2.7 appears to require `-G' NOT `-shared' on this
# platform. # platform.
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $pre dep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$ soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $pre dep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$ soname -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
skipping to change at line 6364 skipping to change at line 6735
_LT_COMPILER_C_O($1) _LT_COMPILER_C_O($1)
_LT_COMPILER_FILE_LOCKS($1) _LT_COMPILER_FILE_LOCKS($1)
_LT_LINKER_SHLIBS($1) _LT_LINKER_SHLIBS($1)
_LT_SYS_DYNAMIC_LINKER($1) _LT_SYS_DYNAMIC_LINKER($1)
_LT_LINKER_HARDCODE_LIBPATH($1) _LT_LINKER_HARDCODE_LIBPATH($1)
_LT_CONFIG($1) _LT_CONFIG($1)
fi # test -n "$compiler" fi # test -n "$compiler"
CC=$lt_save_CC CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
LDCXX=$LD LDCXX=$LD
LD=$lt_save_LD LD=$lt_save_LD
GCC=$lt_save_GCC GCC=$lt_save_GCC
with_gnu_ld=$lt_save_with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld
lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LDCXX=$lt_cv_path_LD
lt_cv_path_LD=$lt_save_path_LD lt_cv_path_LD=$lt_save_path_LD
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
fi # test "$_lt_caught_CXX_error" != yes fi # test "$_lt_caught_CXX_error" != yes
AC_LANG_POP AC_LANG_POP
])# _LT_LANG_CXX_CONFIG ])# _LT_LANG_CXX_CONFIG
# _LT_FUNC_STRIPNAME_CNF
# ----------------------
# func_stripname_cnf prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
#
# This function is identical to the (non-XSI) version of func_stripname,
# except this one can be used by m4 code that may be executed by configure,
# rather than the libtool script.
m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
AC_REQUIRE([_LT_DECL_SED])
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
func_stripname_cnf ()
{
case ${2} in
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%
"`;;
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
esac
} # func_stripname_cnf
])# _LT_FUNC_STRIPNAME_CNF
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
# --------------------------------- # ---------------------------------
# Figure out "hidden" library dependencies from verbose # Figure out "hidden" library dependencies from verbose
# compiler output when linking a shared library. # compiler output when linking a shared library.
# Parse the compiler output and extract the necessary # Parse the compiler output and extract the necessary
# objects, libraries and library flags. # objects, libraries and library flags.
m4_defun([_LT_SYS_HIDDEN_LIBDEPS], m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
# Dependencies to place before and after the object being linked: # Dependencies to place before and after the object being linked:
_LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(predep_objects, $1)=
_LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)=
_LT_TAGVAR(predeps, $1)= _LT_TAGVAR(predeps, $1)=
_LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(postdeps, $1)=
_LT_TAGVAR(compiler_lib_search_path, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)=
dnl we can't use the lt_simple_compile_test_code here, dnl we can't use the lt_simple_compile_test_code here,
dnl because it contains code intended for an executable, dnl because it contains code intended for an executable,
dnl not a library. It's possible we should let each dnl not a library. It's possible we should let each
skipping to change at line 6435 skipping to change at line 6831
_LT_EOF _LT_EOF
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
public class foo { public class foo {
private int a; private int a;
public void bar (void) { public void bar (void) {
a = 0; a = 0;
} }
}; };
_LT_EOF _LT_EOF
]) ])
_lt_libdeps_save_CFLAGS=$CFLAGS
case "$CC $CFLAGS " in #(
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
esac
dnl Parse the compiler output and extract the necessary dnl Parse the compiler output and extract the necessary
dnl objects, libraries and library flags. dnl objects, libraries and library flags.
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
# Parse the compiler output and extract the necessary # Parse the compiler output and extract the necessary
# objects, libraries and library flags. # objects, libraries and library flags.
# Sentinel used to keep track of whether or not we are before # Sentinel used to keep track of whether or not we are before
# the conftest object file. # the conftest object file.
pre_test_object_deps_done=no pre_test_object_deps_done=no
for p in `eval "$output_verbose_link_cmd"`; do for p in `eval "$output_verbose_link_cmd"`; do
case $p in case ${prev}${p} in
-L* | -R* | -l*) -L* | -R* | -l*)
# Some compilers place space between "-{L,R}" and the path. # Some compilers place space between "-{L,R}" and the path.
# Remove the space. # Remove the space.
if test $p = "-L" || if test $p = "-L" ||
test $p = "-R"; then test $p = "-R"; then
prev=$p prev=$p
continue continue
else
prev=
fi fi
# Expand the sysroot to ease extracting the directories later.
if test -z "$prev"; then
case $p in
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_r
esult ;;
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_r
esult ;;
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_r
esult ;;
esac
fi
case $p in
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_res
ult ;;
esac
if test "$pre_test_object_deps_done" = no; then if test "$pre_test_object_deps_done" = no; then
case $p in case ${prev} in
-L* | -R*) -L | -R)
# Internal compiler library paths should come after those # Internal compiler library paths should come after those
# provided the user. The postdeps already come after the # provided the user. The postdeps already come after the
# user supplied libs so there is no need to process them. # user supplied libs so there is no need to process them.
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
else else
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler _lib_search_path, $1)} ${prev}${p}" _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler _lib_search_path, $1)} ${prev}${p}"
fi fi
;; ;;
# The "-l" case would never come before the object being # The "-l" case would never come before the object being
# linked, so don't bother handling this case. # linked, so don't bother handling this case.
esac esac
else else
if test -z "$_LT_TAGVAR(postdeps, $1)"; then if test -z "$_LT_TAGVAR(postdeps, $1)"; then
_LT_TAGVAR(postdeps, $1)="${prev}${p}" _LT_TAGVAR(postdeps, $1)="${prev}${p}"
else else
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p} " _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p} "
fi fi
fi fi
prev=
;; ;;
*.lto.$objext) ;; # Ignore GCC LTO objects
*.$objext) *.$objext)
# This assumes that the test object file only shows up # This assumes that the test object file only shows up
# once in the compiler output. # once in the compiler output.
if test "$p" = "conftest.$objext"; then if test "$p" = "conftest.$objext"; then
pre_test_object_deps_done=yes pre_test_object_deps_done=yes
continue continue
fi fi
if test "$pre_test_object_deps_done" = no; then if test "$pre_test_object_deps_done" = no; then
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
skipping to change at line 6518 skipping to change at line 6932
esac esac
done done
# Clean up. # Clean up.
rm -f a.out a.exe rm -f a.out a.exe
else else
echo "libtool.m4: error: problem compiling $1 test program" echo "libtool.m4: error: problem compiling $1 test program"
fi fi
$RM -f confest.$objext $RM -f confest.$objext
CFLAGS=$_lt_libdeps_save_CFLAGS
# PORTME: override above test on systems where it is broken # PORTME: override above test on systems where it is broken
m4_if([$1], [CXX], m4_if([$1], [CXX],
[case $host_os in [case $host_os in
interix[[3-9]]*) interix[[3-9]]*)
# Interix 3.5 installs completely hosed .la files for C++, so rather than # Interix 3.5 installs completely hosed .la files for C++, so rather than
# hack all around it, let's just trust "g++" to DTRT. # hack all around it, let's just trust "g++" to DTRT.
_LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(predep_objects,$1)=
_LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)=
_LT_TAGVAR(postdeps,$1)= _LT_TAGVAR(postdeps,$1)=
skipping to change at line 6666 skipping to change at line 7081
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE _LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE _LT_LINKER_BOILERPLATE
# Allow CC to be a program name with arguments. # Allow CC to be a program name with arguments.
lt_save_CC="$CC" lt_save_CC="$CC"
lt_save_GCC=$GCC lt_save_GCC=$GCC
lt_save_CFLAGS=$CFLAGS
CC=${F77-"f77"} CC=${F77-"f77"}
CFLAGS=$FFLAGS
compiler=$CC compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler]) _LT_CC_BASENAME([$compiler])
GCC=$G77 GCC=$G77
if test -n "$compiler"; then if test -n "$compiler"; then
AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_CHECKING([if libtool supports shared libraries])
AC_MSG_RESULT([$can_build_shared]) AC_MSG_RESULT([$can_build_shared])
AC_MSG_CHECKING([whether to build shared libraries]) AC_MSG_CHECKING([whether to build shared libraries])
test "$can_build_shared" = "no" && enable_shared=no test "$can_build_shared" = "no" && enable_shared=no
skipping to change at line 6720 skipping to change at line 7137
_LT_COMPILER_FILE_LOCKS($1) _LT_COMPILER_FILE_LOCKS($1)
_LT_LINKER_SHLIBS($1) _LT_LINKER_SHLIBS($1)
_LT_SYS_DYNAMIC_LINKER($1) _LT_SYS_DYNAMIC_LINKER($1)
_LT_LINKER_HARDCODE_LIBPATH($1) _LT_LINKER_HARDCODE_LIBPATH($1)
_LT_CONFIG($1) _LT_CONFIG($1)
fi # test -n "$compiler" fi # test -n "$compiler"
GCC=$lt_save_GCC GCC=$lt_save_GCC
CC="$lt_save_CC" CC="$lt_save_CC"
CFLAGS="$lt_save_CFLAGS"
fi # test "$_lt_disable_F77" != yes fi # test "$_lt_disable_F77" != yes
AC_LANG_POP AC_LANG_POP
])# _LT_LANG_F77_CONFIG ])# _LT_LANG_F77_CONFIG
# _LT_LANG_FC_CONFIG([TAG]) # _LT_LANG_FC_CONFIG([TAG])
# ------------------------- # -------------------------
# Ensure that the configuration variables for a Fortran compiler are # Ensure that the configuration variables for a Fortran compiler are
# suitably defined. These variables are subsequently used by _LT_CONFIG # suitably defined. These variables are subsequently used by _LT_CONFIG
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
skipping to change at line 6795 skipping to change at line 7213
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE _LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE _LT_LINKER_BOILERPLATE
# Allow CC to be a program name with arguments. # Allow CC to be a program name with arguments.
lt_save_CC="$CC" lt_save_CC="$CC"
lt_save_GCC=$GCC lt_save_GCC=$GCC
lt_save_CFLAGS=$CFLAGS
CC=${FC-"f95"} CC=${FC-"f95"}
CFLAGS=$FCFLAGS
compiler=$CC compiler=$CC
GCC=$ac_cv_fc_compiler_gnu GCC=$ac_cv_fc_compiler_gnu
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler]) _LT_CC_BASENAME([$compiler])
if test -n "$compiler"; then if test -n "$compiler"; then
AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_CHECKING([if libtool supports shared libraries])
AC_MSG_RESULT([$can_build_shared]) AC_MSG_RESULT([$can_build_shared])
skipping to change at line 6851 skipping to change at line 7271
_LT_COMPILER_C_O($1) _LT_COMPILER_C_O($1)
_LT_COMPILER_FILE_LOCKS($1) _LT_COMPILER_FILE_LOCKS($1)
_LT_LINKER_SHLIBS($1) _LT_LINKER_SHLIBS($1)
_LT_SYS_DYNAMIC_LINKER($1) _LT_SYS_DYNAMIC_LINKER($1)
_LT_LINKER_HARDCODE_LIBPATH($1) _LT_LINKER_HARDCODE_LIBPATH($1)
_LT_CONFIG($1) _LT_CONFIG($1)
fi # test -n "$compiler" fi # test -n "$compiler"
GCC=$lt_save_GCC GCC=$lt_save_GCC
CC="$lt_save_CC" CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
fi # test "$_lt_disable_FC" != yes fi # test "$_lt_disable_FC" != yes
AC_LANG_POP AC_LANG_POP
])# _LT_LANG_FC_CONFIG ])# _LT_LANG_FC_CONFIG
# _LT_LANG_GCJ_CONFIG([TAG]) # _LT_LANG_GCJ_CONFIG([TAG])
# -------------------------- # --------------------------
# Ensure that the configuration variables for the GNU Java Compiler compile r # Ensure that the configuration variables for the GNU Java Compiler compile r
# are suitably defined. These variables are subsequently used by _LT_CONFI G # are suitably defined. These variables are subsequently used by _LT_CONFI G
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
skipping to change at line 6887 skipping to change at line 7308
lt_simple_link_test_code='public class conftest { public static void main(S tring[[]] argv) {}; }' lt_simple_link_test_code='public class conftest { public static void main(S tring[[]] argv) {}; }'
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE _LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE _LT_LINKER_BOILERPLATE
# Allow CC to be a program name with arguments. # Allow CC to be a program name with arguments.
lt_save_CC="$CC" lt_save_CC=$CC
lt_save_CFLAGS=$CFLAGS
lt_save_GCC=$GCC lt_save_GCC=$GCC
GCC=yes GCC=yes
CC=${GCJ-"gcj"} CC=${GCJ-"gcj"}
CFLAGS=$GCJFLAGS
compiler=$CC compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_TAGVAR(LD, $1)="$LD" _LT_TAGVAR(LD, $1)="$LD"
_LT_CC_BASENAME([$compiler]) _LT_CC_BASENAME([$compiler])
# GCJ did not exist at the time GCC didn't implicitly link libc in. # GCJ did not exist at the time GCC didn't implicitly link libc in.
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
_LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_flag, $1)=$reload_flag
skipping to change at line 6921 skipping to change at line 7344
_LT_COMPILER_FILE_LOCKS($1) _LT_COMPILER_FILE_LOCKS($1)
_LT_LINKER_SHLIBS($1) _LT_LINKER_SHLIBS($1)
_LT_LINKER_HARDCODE_LIBPATH($1) _LT_LINKER_HARDCODE_LIBPATH($1)
_LT_CONFIG($1) _LT_CONFIG($1)
fi fi
AC_LANG_RESTORE AC_LANG_RESTORE
GCC=$lt_save_GCC GCC=$lt_save_GCC
CC="$lt_save_CC" CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
])# _LT_LANG_GCJ_CONFIG ])# _LT_LANG_GCJ_CONFIG
# _LT_LANG_RC_CONFIG([TAG]) # _LT_LANG_RC_CONFIG([TAG])
# ------------------------- # -------------------------
# Ensure that the configuration variables for the Windows resource compiler # Ensure that the configuration variables for the Windows resource compiler
# are suitably defined. These variables are subsequently used by _LT_CONFI G # are suitably defined. These variables are subsequently used by _LT_CONFI G
# to write the compiler configuration to `libtool'. # to write the compiler configuration to `libtool'.
m4_defun([_LT_LANG_RC_CONFIG], m4_defun([_LT_LANG_RC_CONFIG],
[AC_REQUIRE([LT_PROG_RC])dnl [AC_REQUIRE([LT_PROG_RC])dnl
AC_LANG_SAVE AC_LANG_SAVE
skipping to change at line 6955 skipping to change at line 7379
# ltmain only uses $CC for tagged configurations so make sure $CC is set. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
_LT_TAG_COMPILER _LT_TAG_COMPILER
# save warnings/boilerplate of simple test code # save warnings/boilerplate of simple test code
_LT_COMPILER_BOILERPLATE _LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE _LT_LINKER_BOILERPLATE
# Allow CC to be a program name with arguments. # Allow CC to be a program name with arguments.
lt_save_CC="$CC" lt_save_CC="$CC"
lt_save_CFLAGS=$CFLAGS
lt_save_GCC=$GCC lt_save_GCC=$GCC
GCC= GCC=
CC=${RC-"windres"} CC=${RC-"windres"}
CFLAGS=
compiler=$CC compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler]) _LT_CC_BASENAME([$compiler])
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
if test -n "$compiler"; then if test -n "$compiler"; then
: :
_LT_CONFIG($1) _LT_CONFIG($1)
fi fi
GCC=$lt_save_GCC GCC=$lt_save_GCC
AC_LANG_RESTORE AC_LANG_RESTORE
CC="$lt_save_CC" CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
])# _LT_LANG_RC_CONFIG ])# _LT_LANG_RC_CONFIG
# LT_PROG_GCJ # LT_PROG_GCJ
# ----------- # -----------
AC_DEFUN([LT_PROG_GCJ], AC_DEFUN([LT_PROG_GCJ],
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
[AC_CHECK_TOOL(GCJ, gcj,) [AC_CHECK_TOOL(GCJ, gcj,)
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
AC_SUBST(GCJFLAGS)])])[]dnl AC_SUBST(GCJFLAGS)])])[]dnl
skipping to change at line 7025 skipping to change at line 7452
# -------------- # --------------
# If we don't have a new enough Autoconf to choose the best objdump # If we don't have a new enough Autoconf to choose the best objdump
# available, choose the one first in the user's PATH. # available, choose the one first in the user's PATH.
m4_defun([_LT_DECL_OBJDUMP], m4_defun([_LT_DECL_OBJDUMP],
[AC_CHECK_TOOL(OBJDUMP, objdump, false) [AC_CHECK_TOOL(OBJDUMP, objdump, false)
test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$OBJDUMP" && OBJDUMP=objdump
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
AC_SUBST([OBJDUMP]) AC_SUBST([OBJDUMP])
]) ])
# _LT_DECL_DLLTOOL
# ----------------
# Ensure DLLTOOL variable is set.
m4_defun([_LT_DECL_DLLTOOL],
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
test -z "$DLLTOOL" && DLLTOOL=dlltool
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
AC_SUBST([DLLTOOL])
])
# _LT_DECL_SED # _LT_DECL_SED
# ------------ # ------------
# Check for a fully-functional sed program, that truncates # Check for a fully-functional sed program, that truncates
# as few characters as possible. Prefer GNU sed if found. # as few characters as possible. Prefer GNU sed if found.
m4_defun([_LT_DECL_SED], m4_defun([_LT_DECL_SED],
[AC_PROG_SED [AC_PROG_SED
test -z "$SED" && SED=sed test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//" Xsed="$SED -e 1s/^X//"
_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
skipping to change at line 7116 skipping to change at line 7553
# _LT_CHECK_SHELL_FEATURES # _LT_CHECK_SHELL_FEATURES
# ------------------------ # ------------------------
# Find out whether the shell is Bourne or XSI compatible, # Find out whether the shell is Bourne or XSI compatible,
# or has some other useful features. # or has some other useful features.
m4_defun([_LT_CHECK_SHELL_FEATURES], m4_defun([_LT_CHECK_SHELL_FEATURES],
[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
# Try some XSI features # Try some XSI features
xsi_shell=no xsi_shell=no
( _lt_dummy="a/b/c" ( _lt_dummy="a/b/c"
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_
= c,a/b,, \ dummy"}, \
= c,a/b,b/c, \
&& eval 'test $(( 1 + 1 )) -eq 2 \ && eval 'test $(( 1 + 1 )) -eq 2 \
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
&& xsi_shell=yes && xsi_shell=yes
AC_MSG_RESULT([$xsi_shell]) AC_MSG_RESULT([$xsi_shell])
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
AC_MSG_CHECKING([whether the shell understands "+="]) AC_MSG_CHECKING([whether the shell understands "+="])
lt_shell_append=no lt_shell_append=no
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
>/dev/null 2>&1 \ >/dev/null 2>&1 \
skipping to change at line 7155 skipping to change at line 7592
;; ;;
*) # EBCDIC based system *) # EBCDIC based system
lt_SP2NL='tr \100 \n' lt_SP2NL='tr \100 \n'
lt_NL2SP='tr \r\n \100\100' lt_NL2SP='tr \r\n \100\100'
;; ;;
esac esac
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
])# _LT_CHECK_SHELL_FEATURES ])# _LT_CHECK_SHELL_FEATURES
# _LT_PROG_XSI_SHELLFNS # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
# --------------------- # ------------------------------------------------------
# Bourne and XSI compatible variants of some useful shell functions. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' an
m4_defun([_LT_PROG_XSI_SHELLFNS], d
[case $xsi_shell in # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
yes) m4_defun([_LT_PROG_FUNCTION_REPLACE],
cat << \_LT_EOF >> "$cfgfile" [dnl {
sed -e '/^$1 ()$/,/^} # $1 /c\
# func_dirname file append nondir_replacement $1 ()\
# Compute the dirname of FILE. If nonempty, add APPEND to the result, {\
# otherwise set result to NONDIR_REPLACEMENT. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
func_dirname () } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
{ && mv -f "$cfgfile.tmp" "$cfgfile" \
case ${1} in || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile
*/*) func_dirname_result="${1%/*}${2}" ;; .tmp")
* ) func_dirname_result="${3}" ;; test 0 -eq $? || _lt_function_replace_fail=:
esac ])
}
# func_basename file # _LT_PROG_REPLACE_SHELLFNS
func_basename () # -------------------------
{ # Replace existing portable implementations of several shell functions with
func_basename_result="${1##*/}" # equivalent extended shell implementations where those features are availa
} ble..
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
[if test x"$xsi_shell" = xyes; then
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
case ${1} in
*/*) func_dirname_result="${1%/*}${2}" ;;
* ) func_dirname_result="${3}" ;;
esac])
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
func_basename_result="${1##*/}"])
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
case ${1} in
*/*) func_dirname_result="${1%/*}${2}" ;;
* ) func_dirname_result="${3}" ;;
esac
func_basename_result="${1##*/}"])
# func_dirname_and_basename file append nondir_replacement _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
# perform func_basename and func_dirname in a single function # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
# call: # positional parameters, so assign one to ordinary parameter first.
# dirname: Compute the dirname of FILE. If nonempty, func_stripname_result=${3}
# add APPEND to the result, otherwise set result func_stripname_result=${func_stripname_result#"${1}"}
# to NONDIR_REPLACEMENT. func_stripname_result=${func_stripname_result%"${2}"}])
# value returned in "$func_dirname_result"
# basename: Compute filename of FILE. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
# value retuned in "$func_basename_result" func_split_long_opt_name=${1%%=*}
# Implementation must be kept synchronized with func_dirname func_split_long_opt_arg=${1#*=}])
# and func_basename. For efficiency, we do not delegate to
# those functions but instead duplicate the functionality here. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
func_dirname_and_basename () func_split_short_opt_arg=${1#??}
{ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
case ${1} in
*/*) func_dirname_result="${1%/*}${2}" ;; _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
* ) func_dirname_result="${3}" ;; case ${1} in
esac *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
func_basename_result="${1##*/}" *) func_lo2o_result=${1} ;;
} esac])
# func_stripname prefix suffix name _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo
# strip PREFIX and SUFFIX off of NAME. ])
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
func_stripname ()
{
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
# positional parameters, so assign one to ordinary parameter first.
func_stripname_result=${3}
func_stripname_result=${func_stripname_result#"${1}"}
func_stripname_result=${func_stripname_result%"${2}"}
}
# func_opt_split _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] )
func_opt_split () )])
{
func_opt_split_opt=${1%%=*}
func_opt_split_arg=${1#*=}
}
# func_lo2o object _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
func_lo2o () fi
{
case ${1} in
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
*) func_lo2o_result=${1} ;;
esac
}
# func_xform libobj-or-source if test x"$lt_shell_append" = xyes; then
func_xform () _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
{
func_xform_result=${1%.*}.lo
}
# func_arith arithmetic-term... _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
func_arith () func_quote_for_eval "${2}"
{ dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that int
func_arith_result=$(( $[*] )) o \
} eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
# Save a `func_append' function call where possible by direct use of '+='
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfil
e.tmp \
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfi
le.tmp")
test 0 -eq $? || _lt_function_replace_fail=:
else
# Save a `func_append' function call even when '+=' is not available
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgf
ile.tmp \
&& mv -f "$cfgfile.tmp" "$cfgfile" \
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfi
le.tmp")
test 0 -eq $? || _lt_function_replace_fail=:
fi
# func_len string if test x"$_lt_function_replace_fail" = x":"; then
# STRING may not start with a hyphen. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
func_len () fi
{ ])
func_len_result=${#1}
}
_LT_EOF # _LT_PATH_CONVERSION_FUNCTIONS
# -----------------------------
# Determine which file name conversion functions should be used by
# func_to_host_file (and, implicitly, by func_to_host_path). These are nee
ded
# for certain cross-compile configurations and native mingw.
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_MSG_CHECKING([how to convert $build file names to $host format])
AC_CACHE_VAL(lt_cv_to_host_file_cmd,
[case $host in
*-*-mingw* )
case $build in
*-*-mingw* ) # actually msys
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
;;
*-*-cygwin* )
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
;;
* ) # otherwise, assume *nix
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
;;
esac
;; ;;
*) # Bourne compatible functions. *-*-cygwin* )
cat << \_LT_EOF >> "$cfgfile" case $build in
*-*-mingw* ) # actually msys
# func_dirname file append nondir_replacement lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
# Compute the dirname of FILE. If nonempty, add APPEND to the result, ;;
# otherwise set result to NONDIR_REPLACEMENT. *-*-cygwin* )
func_dirname () lt_cv_to_host_file_cmd=func_convert_file_noop
{ ;;
# Extract subdirectory from the argument. * ) # otherwise, assume *nix
func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
if test "X$func_dirname_result" = "X${1}"; then ;;
func_dirname_result="${3}" esac
else
func_dirname_result="$func_dirname_result${2}"
fi
}
# func_basename file
func_basename ()
{
func_basename_result=`$ECHO "${1}" | $SED "$basename"`
}
dnl func_dirname_and_basename
dnl A portable version of this function is already defined in general.m4sh
dnl so there is no need for it here.
# func_stripname prefix suffix name
# strip PREFIX and SUFFIX off of NAME.
# PREFIX and SUFFIX must not contain globbing or regex special
# characters, hashes, percent signs, but SUFFIX may contain a leading
# dot (in which case that matches only a dot).
# func_strip_suffix prefix name
func_stripname ()
{
case ${2} in
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$
%%"`;;
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`
;;
esac
}
# sed scripts:
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
my_sed_long_arg='1s/^-[[^=]]*=//'
# func_opt_split
func_opt_split ()
{
func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
}
# func_lo2o object
func_lo2o ()
{
func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
}
# func_xform libobj-or-source
func_xform ()
{
func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
}
# func_arith arithmetic-term...
func_arith ()
{
func_arith_result=`expr "$[@]"`
}
# func_len string
# STRING may not start with a hyphen.
func_len ()
{
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
}
_LT_EOF
esac
case $lt_shell_append in
yes)
cat << \_LT_EOF >> "$cfgfile"
# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
eval "$[1]+=\$[2]"
}
_LT_EOF
;; ;;
*) * ) # unhandled hosts (and "normal" native builds)
cat << \_LT_EOF >> "$cfgfile" lt_cv_to_host_file_cmd=func_convert_file_noop
# func_append var value
# Append VALUE to the end of shell variable VAR.
func_append ()
{
eval "$[1]=\$$[1]\$[2]"
}
_LT_EOF
;; ;;
esac esac
])
to_host_file_cmd=$lt_cv_to_host_file_cmd
AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
[0], [convert $build file names to $host format])dnl
AC_MSG_CHECKING([how to convert $build file names to toolchain format])
AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
[#assume ordinary cross tools, or native build.
lt_cv_to_tool_file_cmd=func_convert_file_noop
case $host in
*-*-mingw* )
case $build in
*-*-mingw* ) # actually msys
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
;;
esac
;;
esac
]) ])
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
[0], [convert $build files to toolchain format])dnl
])# _LT_PATH_CONVERSION_FUNCTIONS
 End of changes. 117 change blocks. 
371 lines changed or deleted 816 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/