From: levill_r <levill_r@4aad255d-cdde-0310-9447-f3009e2ae8c0>
* build-aux/warning.m4 (DYN_COMPILER_OPTION_IF):
Use AS_VAR_IF instead of AS_IF and AS_VAR_GET.
Use AS_VAR_POPDEF instead of AS_VAR_PUSHDEF.
git-svn-id:
https://svn.lrde.epita.fr/svn/oln/trunk@4646
4aad255d-cdde-0310-9447-f3009e2ae8c0
---
dynamic-use-of-static-c++/ChangeLog | 8 ++++++++
dynamic-use-of-static-c++/config/warning.m4 | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dynamic-use-of-static-c++/ChangeLog b/dynamic-use-of-static-c++/ChangeLog
index 9e82e17..ed16651 100644
--- a/dynamic-use-of-static-c++/ChangeLog
+++ b/dynamic-use-of-static-c++/ChangeLog
@@ -1,5 +1,13 @@
2009-10-13 Roland Levillain <roland(a)lrde.epita.fr>
+ Use modern M4sh idioms in warning.m4.
+
+ * build-aux/warning.m4 (DYN_COMPILER_OPTION_IF):
+ Use AS_VAR_IF instead of AS_IF and AS_VAR_GET.
+ Use AS_VAR_POPDEF instead of AS_VAR_PUSHDEF.
+
+2009-10-13 Roland Levillain <roland(a)lrde.epita.fr>
+
Have DYN_CXX_WARNINGS be compatible with recent versions of Autoconf.
* build-aux/warning.m4
diff --git a/dynamic-use-of-static-c++/config/warning.m4
b/dynamic-use-of-static-c++/config/warning.m4
index 5719e52..677c781 100644
--- a/dynamic-use-of-static-c++/config/warning.m4
+++ b/dynamic-use-of-static-c++/config/warning.m4
@@ -78,8 +78,8 @@ AC_COMPILE_STDERR_IFELSE([AC_LANG_PROGRAM],
fi])
DYN_COMPILER_FLAGS_NAME=$ac_save_[]DYN_COMPILER_FLAGS_NAME
])
-AS_IF([test AS_VAR_GET(ac_Option) = yes], [$2], [$3])[]dnl
-AS_VAR_PUSHDEF([ac_Option])dnl
+AS_VAR_IF([ac_Option], [yes], [$2], [$3])dnl
+AS_VAR_POPDEF([ac_Option])dnl
])# DYN_COMPILER_OPTION_IF
--
1.6.5