]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_PRO): Use AC_PROVIDE instead of defining
authorAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 11:06:23 +0000 (11:06 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 11:06:23 +0000 (11:06 +0000)
yourself.  This allows to see everything that is AC_PROVIDEd via
autoconf --trace.
(AC_SPECIALIZE): define'd, not AC_DEFUN'd.
(AC_PROVIDE): Use define with a single arg, instead of an empty $2.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index c438ccadf82988599108660f77cc991d854e2d21..9d3707a4fb4d8056e8564a23dc5bf87401d60cac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-02-08  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (AC_PRO): Use AC_PROVIDE instead of defining
+       yourself.  This allows to see everything that is AC_PROVIDEd via
+       autoconf --trace.
+       (AC_SPECIALIZE): define'd, not AC_DEFUN'd.
+       (AC_PROVIDE): Use define with a single arg, instead of an empty $2.
+
 2000-02-08  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (ac_includes_default): Don't use simple quotes, but
index 6eed6c7fb5416bdc1c4328b674dd2e1de69d2df7..9786d50edd9762091a5bb8bc2fe645b26f8a30f2 100644 (file)
@@ -108,7 +108,7 @@ pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_KILL)
 # ------------------
 # The prologue for Autoconf macros.
 define(AC_PRO,
-[define([AC_PROVIDE_$1], )dnl
+[AC_PROVIDE([$1])dnl
 ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL,
        [AC_DIVERT_PUSH(m4_eval(AC_DIVERSION_CURRENT - 1))],
        [pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl
@@ -175,7 +175,7 @@ define(AC_OBSOLETE,
 # there exist a specialized version of MACRO for ARG1, use this macro
 # instead with arguments ARGS (i.e., ARG1 is *not* given).  See the
 # definition of `AC_DEFUN'.
-AC_DEFUN(AC_SPECIALIZE,
+define(AC_SPECIALIZE,
 [ifdef([$1-$2],
        [indir([$1-$2], m4_shift(m4_shift($@)))],
        [indir([$1], m4_shift($@))])])
@@ -205,7 +205,7 @@ AC_DIVERT_POP()dnl
 # AC_PROVIDE(MACRO-NAME)
 # ----------------------
 define(AC_PROVIDE,
-[define([AC_PROVIDE_$1])])
+[define([AC_PROVIDE_$1])])
 
 
 
index 6eed6c7fb5416bdc1c4328b674dd2e1de69d2df7..9786d50edd9762091a5bb8bc2fe645b26f8a30f2 100644 (file)
@@ -108,7 +108,7 @@ pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_KILL)
 # ------------------
 # The prologue for Autoconf macros.
 define(AC_PRO,
-[define([AC_PROVIDE_$1], )dnl
+[AC_PROVIDE([$1])dnl
 ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL,
        [AC_DIVERT_PUSH(m4_eval(AC_DIVERSION_CURRENT - 1))],
        [pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl
@@ -175,7 +175,7 @@ define(AC_OBSOLETE,
 # there exist a specialized version of MACRO for ARG1, use this macro
 # instead with arguments ARGS (i.e., ARG1 is *not* given).  See the
 # definition of `AC_DEFUN'.
-AC_DEFUN(AC_SPECIALIZE,
+define(AC_SPECIALIZE,
 [ifdef([$1-$2],
        [indir([$1-$2], m4_shift(m4_shift($@)))],
        [indir([$1], m4_shift($@))])])
@@ -205,7 +205,7 @@ AC_DIVERT_POP()dnl
 # AC_PROVIDE(MACRO-NAME)
 # ----------------------
 define(AC_PROVIDE,
-[define([AC_PROVIDE_$1])])
+[define([AC_PROVIDE_$1])])