summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-26 21:05:41 +0200
committerraveit65 <[email protected]>2019-09-26 21:42:41 +0200
commit422eccd6634b4ce6d3b44ae1786c1b8b074142dc (patch)
tree842f8841de3249a2f049adb53df5cc086df69022
parent9e9184b8264f68c19796ee991e5e393979e6d80e (diff)
downloadmate-common-422eccd6634b4ce6d3b44ae1786c1b8b074142dc.tar.bz2
mate-common-422eccd6634b4ce6d3b44ae1786c1b8b074142dc.tar.xz
Check if AX_APPEND_FLAG and AX_CHECK_COMPILE_FLAG are available
Print the error message "You need to install the autoconf-archive package." if autoconf archive macros are not available on the system.
-rw-r--r--macros/mate-compiler-flags.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/macros/mate-compiler-flags.m4 b/macros/mate-compiler-flags.m4
index 6ba33be..fefe474 100644
--- a/macros/mate-compiler-flags.m4
+++ b/macros/mate-compiler-flags.m4
@@ -23,6 +23,14 @@ AC_DEFUN([MATE_COMPILE_WARNINGS],[
dnl More compiler warnings
dnl ******************************
+ m4_ifndef([AX_CHECK_COMPILE_FLAG],[
+ AC_MSG_ERROR([You need to install the autoconf-archive package.])
+ ])
+
+ m4_ifndef([AX_APPEND_FLAG],[
+ AC_MSG_ERROR([You need to install the autoconf-archive package.])
+ ])
+
AC_ARG_ENABLE(compile-warnings,
AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
[Turn on compiler warnings]),,