[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Fix AU_ALIAS (Was: autoconf/152: Broken backwards compatibility for
From: |
Akim Demaille |
Subject: |
FYI: Fix AU_ALIAS (Was: autoconf/152: Broken backwards compatibility for AC_HAVE_FUNCS) |
Date: |
03 Nov 2000 12:33:04 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
| If one is trying to use some ancient configure.in files,
| the backwards compatbility code fails to substitute the
| arguments of the function.
|
| If one uses AC_HAVE_FUNCS for instance, the shell script
| simply says:
|
| for ac_func in
| do
|
| Without the substituted functions.
| >How-To-Repeat:
| Here is a sample configure.in - it works if AC_CHECK_FUNCS is used instead of
AC_HAVE_FUNCS.
|
| C_INIT(configure.in, 1.0, address@hidden)
| AC_PROG_CC
| dnl AC_CHECK_FUNCS(printf scanf)
| AC_HAVE_FUNCS(printf scanf)
| AC_OUTPUT(Makefile)
Thanks for the report. It's a big bug indeed, but I just smashed it
:)
Index: ChangeLog
from Akim Demaille <address@hidden>
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
2000-11-03 Akim Demaille <address@hidden>
Index: THANKS
===================================================================
RCS file: /cvs/autoconf/THANKS,v
retrieving revision 1.42
diff -u -u -r1.42 THANKS
--- THANKS 2000/11/03 09:22:15 1.42
+++ THANKS 2000/11/03 11:33:12
@@ -36,6 +36,7 @@
Erez Zadok address@hidden
Eric Backus address@hidden
Eric Mumpower address@hidden
+Ezra Peisach address@hidden
Felix Lee address@hidden
Franc,ois Pinard address@hidden
Gary V. Vaughan address@hidden
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.614
diff -u -u -r1.614 acgeneral.m4
--- acgeneral.m4 2000/11/03 11:14:48 1.614
+++ acgeneral.m4 2000/11/03 11:33:13
@@ -328,7 +328,7 @@
# Do not use `defn' since then autoupdate would replace an old macro
# call with the new macro body instead of the new macro call.
define([AU_ALIAS],
-[AU_DEFUN([$1], [$2])])
+[AU_DEFUN([$1], [$2($][@)])])
Index: tests/semantics.at
===================================================================
RCS file: /cvs/autoconf/tests/semantics.at,v
retrieving revision 1.3
diff -u -u -r1.3 semantics.at
--- tests/semantics.at 2000/11/01 19:57:55 1.3
+++ tests/semantics.at 2000/11/03 11:33:13
@@ -51,7 +51,19 @@
# --------------
# Check that it performs the correct actions:
# Must define HAVE_EXIT, but not HAVE_AUTOCONF_TIXE
-AT_CHECK_MACRO(AC_CHECK_FUNCS,
+AT_CHECK_MACRO([AC_CHECK_FUNCS],
+[AC_CHECK_FUNCS(exit autoconf_tixe)],
+[AT_CHECK_DEFINES(
+[/* #undef HAVE_AUTOCONF_TIXE */
+#define HAVE_EXIT 1
+])])
+
+
+# AC_HAVE_FUNCS
+# -------------
+# This macro is an obsolete version of AC_CHECK_FUNCS. Running this
+# test allows to check that AU_ALIAS'ed macros work properly.
+AT_CHECK_MACRO([AC_HAVE_FUNCS],
[AC_CHECK_FUNCS(exit autoconf_tixe)],
[AT_CHECK_DEFINES(
[/* #undef HAVE_AUTOCONF_TIXE */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Fix AU_ALIAS (Was: autoconf/152: Broken backwards compatibility for AC_HAVE_FUNCS),
Akim Demaille <=