This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AC_PROG_LIBTOOL is not recognized in automake-1.4-p2


AC_PROG_LIBTOOL is not recognized in automake-1.4-p2.

Without the patch below, I get an error which includes:

        library used but `LIBTOOL' not defined in `configure.in'

when I use lib_LTLIBRARIES in a Makefile.am file.

It would be very useful to have this patch in automake-1.4-p3.


Here's a patch from automake-1.4f which seems to solve the problem:

--- automake-1.4-p2.orig/automake.in
+++ automake-1.4-p2/automake.in
@@ -4281,8 +4281,18 @@
 	$seen_prog_install = 1 if /AC_PROG_INSTALL/;
         $seen_lispdir = 1 if /AM_PATH_LISPDIR/;
 
-        if (/AM_PROG_LIBTOOL/)
+        if (/A(C|M)_PROG_LIBTOOL/)
 	{
+	    # We're not ready for this yet.  People still use a
+	    # libtool with no AC_PROG_LIBTOOL.  Once that is the
+	    # dominant version we can reenable this code -- but next
+	    # time by mentioning the macro in %obsolete_macros, both
+	    # here and in aclocal.in.
+
+	    # if (/AM_PROG_LIBTOOL/)
+	    # {
+	    # 	&am_conf_line_warning ($filename, $., "`AM_PROG_LIBTOOL' is obsolete, use `AC_PROG_LIBTOOL' instead");
+	    # }
 	    $seen_libtool = 1;
 	    $libtool_line = $.;
 	    $configure_vars{'LIBTOOL'} = $filename . ':' . $.;




-- 
Kevin Dalley
kevind@rahul.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]