From: mordred Date: Wed, 8 Jul 2009 19:28:20 +0000 (-0700) Subject: Added support for autoconf 2.59. X-Git-Tag: 0.31~1^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2bf8455362e471b031b3c1cb63c8ef399126e244;p=awesomized%2Flibmemcached Added support for autoconf 2.59. --- diff --git a/m4/pandora_canonical.m4 b/m4/pandora_canonical.m4 index 9465a5c1..eafbf318 100644 --- a/m4/pandora_canonical.m4 +++ b/m4/pandora_canonical.m4 @@ -16,11 +16,13 @@ AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[ dnl The standard setup for how we build Pandora projects AC_DEFUN([PANDORA_CANONICAL_TARGET],[ AC_REQUIRE([PANDORA_FORCE_DEPEND_TRACKING]) - m4_define([PCT_ALL_ARGS],[$@]) + ifdef([m4_define],,[define([m4_define], defn([define]))]) + ifdef([m4_undefine],,[define([m4_undefine], defn([undefine]))]) + m4_define([PCT_ALL_ARGS],[$*]) m4_define([PCT_USE_GNULIB],[no]) m4_define([PCT_REQUIRE_CXX],[no]) m4_define([PCT_IGNORE_SHARED_PTR],[no]) - m4_foreach_w([pct_arg],$@,[ + m4_foreach([pct_arg],$*,[ m4_case(pct_arg, [use-gnulib], [ m4_undefine([PCT_USE_GNULIB]) diff --git a/m4/pandora_warnings.m4 b/m4/pandora_warnings.m4 index 2af759a4..fef7bd74 100644 --- a/m4/pandora_warnings.m4 +++ b/m4/pandora_warnings.m4 @@ -13,7 +13,9 @@ dnl allow it AC_DEFUN([PANDORA_WARNINGS],[ m4_define([PW_LESS_WARNINGS],[no]) m4_define([PW_WARN_ALWAYS_ON],[no]) - m4_foreach_w([pw_arg],$@,[ + ifdef([m4_define],,[define([m4_define], defn([define]))]) + ifdef([m4_undefine],,[define([m4_undefine], defn([undefine]))]) + m4_foreach([pw_arg],$*,[ m4_case(pw_arg, [less-warnings],[ m4_undefine([PW_LESS_WARNINGS])