mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-21 06:59:11 +08:00
64d9b880c5
* NEWS: inter-library dependencies are now supported * configure.in: add the depdemo subdirectory * depdemo/*: new demo to demonstrate inter-library dependencies * tests/depdemo*: new tests for depdemo * ltconfig.in: added hardcode_into_libs (whether library paths should be hardcoded into the libraries), it currently defaults to 'no' * ltmain.in: new internal 'relink' mode to relink libraries on platforms with hardcode_into_libs=yes, save command line arguments in libtool_args, accept relative -L directories, ignore -lm on BeOS and Cygwin, always ignore -lc, handle -l, -L and .la arguments later, always make the library installation directory (-rpath) absolute, in relink mode don't delete the not-relinked library and exit immediately after relinking, try to find already-installed libtool libraries that were specified using -l, support hardcoding of library paths into libraries too, export shlibpath before linking libraries, and a lot of other big changes that I don't want to describe here... please read the source. * merged Gary's Win32 code from the ILD branch: * NEWS: Win32 DLLs are now supported * TODO: removed .a library namespace clash for win32. It is now resolved. * ltconfig.in (cygwin, library_names_spec): removed $libname.a. Creating a dll with libtool no longer creates an import library. * ltconfig.in (extract_expsyms_cmds): Create $objdir if it does not exist -- i.e. we need to generate import an import library in a directory which has no libs of its own. * doc/libtool.texi (old_archive_from_expsyms_cmds, extract_expsyms_cmds): documented these new variables. * ltconfig.in (extract_expsyms_cmds): New variable. Commands to extract the exported symbol list from a dll. (old_archive_from_expsyms_cmds): New variable. Commands to build an old archive from the extracted expsyms list. * ltmain.in: run the cmds in extract_expsyms_cmds and old_archive_from_expsyms_cmds as necessary. * ltconfig.in (cygwin, old_archive_from_new_cmds): no longer required. * ltconfig.in (cygwin, shlibpath_overrides_runpath): I'm not even sure whether win32 honours the runpath at all when searching for a dll to load! Anyway, when set to yes this prevents a gratuitous warning. * ltmain.in (deplib): The cygwin environment doesn't actually have -lm, and although the linker fakes having one, specifiying it to libtool will break ILD, so we ignore it when generating dependencies.
81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
dnl Process this file with autoconf to create configure.
|
|
|
|
AC_INIT(ltmain.in)
|
|
|
|
AM_INIT_AUTOMAKE(libtool, 1.3a)
|
|
|
|
# This is a sanity check so we can see which version is used in bug reports.
|
|
# It is assumed that we only want to see the date extension for cvs libtool
|
|
# versions (i.e. "odd" letters) and not actual alpha releases.
|
|
case "$VERSION" in
|
|
changequote(,)
|
|
*[acegikmoqsuwy])
|
|
changequote([,])
|
|
TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog`
|
|
banner="Configuring $PACKAGE $VERSION$TIMESTAMP"
|
|
dashes=`echo "$banner" | sed 's/./-/g'`
|
|
|
|
# Display an obvious version banner
|
|
echo
|
|
echo $dashes
|
|
echo "$banner"
|
|
echo $dashes
|
|
echo
|
|
;;
|
|
esac
|
|
|
|
pkgdatadir='${datadir}'"/${PACKAGE}"
|
|
AC_SUBST(pkgdatadir) dnl automake does not need this, but libtoolize does
|
|
aclocaldir='${datadir}/aclocal'
|
|
AC_SUBST(aclocaldir)
|
|
|
|
dnl Use the specified CC, RANLIB, and LD while running ltconfig.
|
|
AC_PROG_CC
|
|
AC_PROG_RANLIB
|
|
AM_PROG_LD
|
|
AM_PROG_NM
|
|
AC_PROG_LN_S
|
|
|
|
dnl For the `lineno' script (which puts line numbers into `ltconfig').
|
|
AC_PROG_AWK
|
|
|
|
dnl Check for dlopen support
|
|
AC_LIBTOOL_DLOPEN
|
|
AC_LIBTOOL_SETUP
|
|
|
|
LIBTOOL_FLAGS="$libtool_flags"
|
|
AC_SUBST(LIBTOOL_FLAGS)
|
|
|
|
AC_ARG_ENABLE(ltdl-install,
|
|
[ --disable-ltdl-install do not install libltdl])
|
|
if test x"${enable_ltdl_install+set}" != xset; then
|
|
enable_ltdl_install=yes
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
|
fi
|
|
AC_CONFIG_SUBDIRS(libltdl)
|
|
|
|
dnl all subdirectories that are configured on demand, but that must be
|
|
dnl included in the distribution
|
|
CONF_SUBDIRS="cdemo demo depdemo mdemo"
|
|
AC_SUBST(CONF_SUBDIRS)
|
|
|
|
ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4 ${srcdir}/libltdl/acinclude.m4 "
|
|
DIST_MAKEFILE_LIST=
|
|
for dir in $CONF_SUBDIRS; do
|
|
ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST${srcdir}/$dir/acinclude.m4 "
|
|
DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile "
|
|
done
|
|
AC_SUBST(ACINCLUDE_M4_LIST)
|
|
AC_SUBST(DIST_MAKEFILE_LIST)
|
|
|
|
AC_OUTPUT_COMMANDS([
|
|
test -f ${saved_top_srcdir}/ltconfig || ${MAKE-make} ${saved_top_srcdir}/ltconfig
|
|
test -f ${saved_top_srcdir}/ltmain.sh || ${MAKE-make} ${saved_top_srcdir}/ltmain.sh
|
|
], [saved_top_srcdir=${srcdir}])
|
|
AC_OUTPUT([Makefile doc/Makefile tests/Makefile])
|
|
|
|
# Local Variables:
|
|
# mode:shell-script
|
|
# sh-indentation:2
|
|
# End:
|