]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (LIBTOOL_DEPS): set it
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 18 Jan 1999 13:30:43 +0000 (13:30 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 18 Jan 1999 13:30:43 +0000 (13:30 +0000)
* libltdl/configure.in (LIBTOOL_DEPS): AC_SUBST it
* libltdl/Makefile.am (libtool): use it
* doc/libtool.texi (AM_PROG_LIBTOOL): document it

ChangeLog
doc/libtool.texi
libltdl/Makefile.am
libltdl/configure.in
libtool.m4

index 4c8da3ca4a37f9d754042931b2e62922fcf81cfd..4d3bf0ae026fdf82ab28dffdfb8479f6a4cd1b14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-01-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * libtool.m4 (LIBTOOL_DEPS): set it
+       * libltdl/configure.in (LIBTOOL_DEPS): AC_SUBST it
+       * libltdl/Makefile.am (libtool): use it
+       * doc/libtool.texi (AM_PROG_LIBTOOL): document it
+
        * Makefile.am (libltdl.tar.gz): don't create it as part of the
        build, since it is likely to become stale if we do
        (install-data-hook): create and install libltdl.tar.gz, without
index 6d008f74073e6c05feff23cdbce9b8bd6070b108..1be7d068c0e8faeb63e7fee5f57a58de5fbd121c 100644 (file)
@@ -1607,6 +1607,27 @@ similarly, but it uses @samp{--enable-static} and
 
 The package name @samp{default} matches any packages which have not set
 their name in the @code{PACKAGE} environment variable.
+
+This macro also sets the shell variable @var{LIBTOOL_DEPS}, that you can 
+use to automatically update the libtool script if it becomes
+out-of-date.  In order to do that, add to your @file{configure.in}:
+
+@example
+AM_PROG_LIBTOOL
+AC_SUBST(LIBTOOL_DEPS)
+@end example
+
+and, to @file{Makefile.in} or @file{Makefile.am}:
+
+@example
+LIBTOOL_DEPS = @@LIBTOOL_DEPS@@
+libtool: $(LIBTOOL_DEPS)
+        ./config.status --recheck
+@end example
+
+If you are using GNU automake, you can omit the assignment, as automake
+will take care of it.
+
 @end defmac
 
 @defmac AM_DISABLE_SHARED
index af310238a19b9b5daf7bbf48b6b3c867eeed80d1..110d5d01bf2f208be6a4219de311bea433960e43 100644 (file)
@@ -24,3 +24,6 @@ libltdl_la_LIBADD = $(LIBADD_DL)
 libltdlc_la_SOURCES = $(libltdl_la_SOURCES)
 libltdlc_la_LDFLAGS =
 libltdlc_la_LIBADD = $(libltdl_la_LIBADD)
+
+libtool: $(LIBTOOL_DEPS)
+       ./config.status --recheck
index 6810d333554b6ebc42c38bb465e273e4a71765d1..b792492dc91f7e29d3db7a263b659b3a7540508f 100644 (file)
@@ -20,6 +20,7 @@ AC_SUBST(NOINSTLIBS)
 
 AC_PROG_CC
 AM_PROG_LIBTOOL
+AC_SUBST(LIBTOOL_DEPS)
 
 AC_CACHE_CHECK([which variable specifies run-time library path],
   libltdl_cv_shlibpath_var, [dnl
index a69daea499ceee2ebdbeadee5de06be9c2c932f4..a5584bd8e8817e010a4beeed582ce48a00565f58 100644 (file)
@@ -108,6 +108,9 @@ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
 || AC_MSG_ERROR([libtool configure failed])
 
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
+
 # Redirect the config.log output again, so that the ltconfig log is not
 # clobbered by the next message.
 exec 5>>./config.log