+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
# ------------------
# 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
# 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($@))])])
# AC_PROVIDE(MACRO-NAME)
# ----------------------
define(AC_PROVIDE,
-[define([AC_PROVIDE_$1], )])
+[define([AC_PROVIDE_$1])])
# ------------------
# 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
# 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($@))])])
# AC_PROVIDE(MACRO-NAME)
# ----------------------
define(AC_PROVIDE,
-[define([AC_PROVIDE_$1], )])
+[define([AC_PROVIDE_$1])])