libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Use AH_HEADER to fix LTDL_INIT for CVS Autoconf


From: Ralf Wildenhues
Subject: FYI: Use AH_HEADER to fix LTDL_INIT for CVS Autoconf
Date: Tue, 23 Aug 2005 17:07:54 +0200
User-agent: Mutt/1.4.1i

FYI: I am about to apply a re-diff of the patch proposed here:
http://lists.gnu.org/archive/html/libtool-patches/2005-08/msg00063.html
to HEAD and branch-2-0 to finally fix Libtool to work correctly with CVS
Autoconf also in ltdl-using client packages which may not have added
AC_CONFIG_HEADERS to their configure.ac.  Libtool then does not make use
of nonpublished Autoconf interface any more if the AH_HEADER macro is
defined;  if it is not, then it will still look at AC_LIST_HEADERS to
maintain compatibility with 2.59.

This means for you: Either bootstrap with Autoconf-2.59, or with CVS
Autoconf from either before 2005-07-25, or with the current CVS version
of today, but not any CVS versions in-between.

IOW: If you use CVS Autoconf, update now!

(I'll wait for the actual commit until after this mail has propagated,
in order not to confuse people.)

Cheers,
Ralf

2005-08-23  Stepan Kasal  <address@hidden>,
            Ralf Wildenhues  <address@hidden>

        * libltdl/m4/ltdl.m4 (LTDL_INIT): Use AH_HEADER if defined.
        Compute CONFIG_H only before creating config.status.
        Reported by Peter Ekberg <address@hidden>.

Index: libltdl/m4/ltdl.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/ltdl.m4,v
retrieving revision 1.2
diff -u -r1.2 ltdl.m4
--- libltdl/m4/ltdl.m4  23 Aug 2005 01:49:37 -0000      1.2
+++ libltdl/m4/ltdl.m4  23 Aug 2005 14:05:03 -0000
@@ -168,11 +168,13 @@
 # if they did not call it themself.  This is so that ltdl.h can pick up
 # the parent projects config.h file, The first file in AC_CONFIG_HEADERS
 # must contain the definitions required by ltdl.c.
-m4_ifset([_AC_LIST_TAGS],
-    [CONFIG_H=`echo "_AC_LIST_TAGS" | $GREP HEADERS | $SED 's,^[[      
]]*,,;s,[[ :)]].*$,,'`],
-  [m4_ifset([AC_LIST_HEADERS],
-    [CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[    ]]*,,;s,[[ :]].*$,,'`],
-  [CONFIG_H=config.h;AC_CONFIG_HEADERS([config.h])])])
+# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
+AC_CONFIG_COMMANDS_PRE([dnl
+m4_ifset([AH_HEADER],
+        [CONFIG_H=AH_HEADER],
+        [m4_ifset([AC_LIST_HEADERS],
+                  [CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[      
]]*,,;s,[[ :]].*$,,'`],
+                  [CONFIG_H=config.h;AC_CONFIG_HEADERS([config.h])])])])
 AC_SUBST([CONFIG_H])
 
 AC_CHECK_HEADERS([memory.h unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h],




reply via email to

[Prev in Thread] Current Thread [Next in Thread]