2000-09-16 08:52:20 +08:00
|
|
|
## Process this file with autoconf to create configure.
|
1999-01-22 22:09:12 +08:00
|
|
|
|
1997-09-15 20:31:09 +08:00
|
|
|
AC_INIT(ltmain.in)
|
1997-11-28 00:57:00 +08:00
|
|
|
|
1999-07-03 01:54:53 +08:00
|
|
|
AM_INIT_AUTOMAKE(libtool, 1.3c)
|
1999-01-23 02:04:51 +08:00
|
|
|
|
1999-01-22 22:09:12 +08:00
|
|
|
# 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.
|
1999-10-02 07:12:15 +08:00
|
|
|
TIMESTAMP=
|
1999-01-23 02:04:51 +08:00
|
|
|
case "$VERSION" in
|
2000-09-16 08:52:20 +08:00
|
|
|
[*[acegikmoqsuwy])]
|
1999-01-27 10:40:39 +08:00
|
|
|
TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog`
|
1999-01-23 02:04:51 +08:00
|
|
|
banner="Configuring $PACKAGE $VERSION$TIMESTAMP"
|
|
|
|
dashes=`echo "$banner" | sed 's/./-/g'`
|
|
|
|
|
|
|
|
# Display an obvious version banner
|
|
|
|
echo
|
|
|
|
echo $dashes
|
|
|
|
echo "$banner"
|
|
|
|
echo $dashes
|
|
|
|
echo
|
1999-01-22 22:09:12 +08:00
|
|
|
;;
|
|
|
|
esac
|
1999-10-02 07:12:15 +08:00
|
|
|
AC_SUBST(TIMESTAMP)
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1999-01-27 11:07:15 +08:00
|
|
|
pkgdatadir='${datadir}'"/${PACKAGE}"
|
2000-09-16 08:52:20 +08:00
|
|
|
AC_SUBST(pkgdatadir) # automake does not need this, but libtoolize does
|
1997-04-02 02:29:23 +08:00
|
|
|
aclocaldir='${datadir}/aclocal'
|
|
|
|
AC_SUBST(aclocaldir)
|
|
|
|
|
2000-09-16 08:52:20 +08:00
|
|
|
# Use the specified CC and LD
|
1997-04-02 03:21:43 +08:00
|
|
|
AC_PROG_CC
|
1997-07-02 04:04:47 +08:00
|
|
|
AM_PROG_LD
|
1999-12-03 10:27:33 +08:00
|
|
|
AC_SUBST(LD)
|
1997-07-13 05:39:00 +08:00
|
|
|
AM_PROG_NM
|
1999-12-03 10:27:33 +08:00
|
|
|
AC_SUBST(NM)
|
1997-07-01 12:38:32 +08:00
|
|
|
AC_PROG_LN_S
|
1997-04-02 03:21:43 +08:00
|
|
|
|
2000-09-16 08:52:20 +08:00
|
|
|
# Declare win32 dll support
|
2000-01-14 20:14:41 +08:00
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
|
2000-09-16 08:52:20 +08:00
|
|
|
# Check for dlopen support
|
1999-03-11 01:23:28 +08:00
|
|
|
AC_LIBTOOL_DLOPEN
|
2000-09-13 04:02:16 +08:00
|
|
|
AC_PROG_LIBTOOL
|
1999-03-11 01:23:28 +08:00
|
|
|
|
1999-03-10 06:13:49 +08:00
|
|
|
AC_ARG_ENABLE(ltdl-install,
|
1999-03-11 00:16:03 +08:00
|
|
|
[ --disable-ltdl-install do not install libltdl])
|
1999-03-11 05:23:37 +08:00
|
|
|
if test x"${enable_ltdl_install+set}" != xset; then
|
|
|
|
enable_ltdl_install=yes
|
|
|
|
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
1999-03-10 06:13:49 +08:00
|
|
|
fi
|
|
|
|
AC_CONFIG_SUBDIRS(libltdl)
|
|
|
|
|
2000-09-16 08:52:20 +08:00
|
|
|
# all subdirectories that are configured on demand, but that must be
|
|
|
|
# included in the distribution
|
* merged my inter-library dependencies code from the ILD branch:
* 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.
1999-03-19 05:57:08 +08:00
|
|
|
CONF_SUBDIRS="cdemo demo depdemo mdemo"
|
* configure.in (AC_CONFIG_DIRS): configure only libltdl, and then,
only if --enable-ltdl-install
(CONF_SUBDIRS): list directories that are configured on demand,
but that must be included in the distribution
(ACINCLUDE_M4_LIST, DIST_MAKEFILE_LIST): generated from CONF_SUBDIRS
* Makefile.am (AUTOMAKE_OPTIONS): added version 1.3e and
readme-alpha, to handle README-alpha automatically
(EXTRA_DIST): removed README-alpha
(BUILD_SUBDIRS): subdirectories that are always built
(SUBDIRS): BUILD_SUBDIRS plus BUILD_LTDL
(DIST_SUBDIRS): BUILD_SUBDIRS plus CONF_SUBDIRS, from configure
(all-local, check-local): depend on $(ACINCLUDE_M4_LIST), from
configure, and libtool, so that it is built before subdirs
(configure-subdirs): new target
(configure-subdirs, distdir): depend on $(DIST_MAKEFILE_LIST),
from configure
(@DIST_MAKEFILE_LIST@): create subdir if needed, then run
configure.
On-demand configuration of subdirs at distribution time was
suggested by Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
1999-01-13 18:41:07 +08:00
|
|
|
AC_SUBST(CONF_SUBDIRS)
|
|
|
|
|
1999-12-16 19:40:16 +08:00
|
|
|
ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4"
|
* configure.in (AC_CONFIG_DIRS): configure only libltdl, and then,
only if --enable-ltdl-install
(CONF_SUBDIRS): list directories that are configured on demand,
but that must be included in the distribution
(ACINCLUDE_M4_LIST, DIST_MAKEFILE_LIST): generated from CONF_SUBDIRS
* Makefile.am (AUTOMAKE_OPTIONS): added version 1.3e and
readme-alpha, to handle README-alpha automatically
(EXTRA_DIST): removed README-alpha
(BUILD_SUBDIRS): subdirectories that are always built
(SUBDIRS): BUILD_SUBDIRS plus BUILD_LTDL
(DIST_SUBDIRS): BUILD_SUBDIRS plus CONF_SUBDIRS, from configure
(all-local, check-local): depend on $(ACINCLUDE_M4_LIST), from
configure, and libtool, so that it is built before subdirs
(configure-subdirs): new target
(configure-subdirs, distdir): depend on $(DIST_MAKEFILE_LIST),
from configure
(@DIST_MAKEFILE_LIST@): create subdir if needed, then run
configure.
On-demand configuration of subdirs at distribution time was
suggested by Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
1999-01-13 18:41:07 +08:00
|
|
|
DIST_MAKEFILE_LIST=
|
|
|
|
for dir in $CONF_SUBDIRS; do
|
1999-12-16 19:40:16 +08:00
|
|
|
ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST ${srcdir}/$dir/acinclude.m4"
|
* configure.in (AC_CONFIG_DIRS): configure only libltdl, and then,
only if --enable-ltdl-install
(CONF_SUBDIRS): list directories that are configured on demand,
but that must be included in the distribution
(ACINCLUDE_M4_LIST, DIST_MAKEFILE_LIST): generated from CONF_SUBDIRS
* Makefile.am (AUTOMAKE_OPTIONS): added version 1.3e and
readme-alpha, to handle README-alpha automatically
(EXTRA_DIST): removed README-alpha
(BUILD_SUBDIRS): subdirectories that are always built
(SUBDIRS): BUILD_SUBDIRS plus BUILD_LTDL
(DIST_SUBDIRS): BUILD_SUBDIRS plus CONF_SUBDIRS, from configure
(all-local, check-local): depend on $(ACINCLUDE_M4_LIST), from
configure, and libtool, so that it is built before subdirs
(configure-subdirs): new target
(configure-subdirs, distdir): depend on $(DIST_MAKEFILE_LIST),
from configure
(@DIST_MAKEFILE_LIST@): create subdir if needed, then run
configure.
On-demand configuration of subdirs at distribution time was
suggested by Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
1999-01-13 18:41:07 +08:00
|
|
|
DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile "
|
|
|
|
done
|
|
|
|
AC_SUBST(ACINCLUDE_M4_LIST)
|
|
|
|
AC_SUBST(DIST_MAKEFILE_LIST)
|
|
|
|
|
2000-09-17 08:44:49 +08:00
|
|
|
AC_OUTPUT([Makefile doc/Makefile tests/Makefile])
|