Added support for autoconf 2.59.
authormordred <mordred@orisndriz02>
Wed, 8 Jul 2009 19:28:20 +0000 (12:28 -0700)
committermordred <mordred@orisndriz02>
Wed, 8 Jul 2009 19:28:20 +0000 (12:28 -0700)
m4/pandora_canonical.m4
m4/pandora_warnings.m4

index 9465a5c1d88b94586e06992ea5083927b6d0c531..eafbf3180b0a53868897919fb6f3b0cd2337f112 100644 (file)
@@ -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])
index 2af759a401bc86423df07510ee57b70602f7e6f5..fef7bd74bd6261926e8ab05c93c73faa0c3880bc 100644 (file)
@@ -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])