1997-04-02 03:21:43 +08:00
|
|
|
dnl 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-01-23 02:04:51 +08:00
|
|
|
AM_INIT_AUTOMAKE(libtool, 1.2e)
|
|
|
|
|
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-01-23 02:04:51 +08:00
|
|
|
case "$VERSION" in
|
1999-01-22 22:09:12 +08:00
|
|
|
changequote(,)
|
|
|
|
*[acegikmoqsuwy])
|
1999-01-23 02:04:51 +08:00
|
|
|
TIMESTAMP=`sed 's%.*\$''Revision: \([^$]*\) \$ \$''Date: \([^$]*\) \$.*% (\1 \2)%;t end;d;: end' < ${srcdir}/ChangeLog`
|
|
|
|
changequote([,])
|
|
|
|
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
|
1997-04-02 02:29:23 +08:00
|
|
|
|
1999-01-26 22:45:24 +08:00
|
|
|
AC_SUBST(pkgdatadir)
|
1997-04-02 02:29:23 +08:00
|
|
|
aclocaldir='${datadir}/aclocal'
|
|
|
|
AC_SUBST(aclocaldir)
|
|
|
|
|
1997-04-02 03:21:43 +08:00
|
|
|
dnl Use the specified CC, RANLIB, and LD while running ltconfig.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
1997-07-02 04:04:47 +08:00
|
|
|
AM_PROG_LD
|
1997-07-13 05:39:00 +08:00
|
|
|
AM_PROG_NM
|
1997-07-01 12:38:32 +08:00
|
|
|
AC_PROG_LN_S
|
1997-04-02 03:21:43 +08:00
|
|
|
|
1997-11-28 00:57:00 +08:00
|
|
|
dnl For the `lineno' script (which puts line numbers into `ltconfig').
|
1997-08-21 13:16:08 +08:00
|
|
|
AC_PROG_AWK
|
|
|
|
|
* 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
|
|
|
dnl all subdirectories that are configured on demand, but that must be
|
|
|
|
dnl included in the distribution
|
|
|
|
CONF_SUBDIRS="libltdl demo mdemo cdemo" # depdemo
|
|
|
|
AC_SUBST(CONF_SUBDIRS)
|
|
|
|
|
|
|
|
ACINCLUDE_M4_LIST="\$(srcdir)/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)
|
|
|
|
|
1997-04-02 02:46:48 +08:00
|
|
|
AC_OUTPUT([Makefile doc/Makefile tests/Makefile])
|
1997-04-02 03:21:43 +08:00
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# mode:shell-script
|
|
|
|
# sh-indentation:2
|
|
|
|
# End:
|