From: Akim Demaille Date: Tue, 8 Feb 2000 11:06:23 +0000 (+0000) Subject: * acgeneral.m4 (AC_PRO): Use AC_PROVIDE instead of defining X-Git-Tag: autoconf-2.50~1211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bed1389975fe4bd52d29480e390b04bda54e7a0;p=thirdparty%2Fautoconf.git * 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. --- diff --git a/ChangeLog b/ChangeLog index c438ccadf..9d3707a4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-02-08 Akim Demaille + + * 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 * acgeneral.m4 (ac_includes_default): Don't use simple quotes, but diff --git a/acgeneral.m4 b/acgeneral.m4 index 6eed6c7fb..9786d50ed 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -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])]) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 6eed6c7fb..9786d50ed 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -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])])