From 2a213d0ae7433a3fb145126d38b71d994ccf49d3 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 26 Sep 2019 21:05:41 +0200 Subject: 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. --- macros/mate-compiler-flags.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) 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]),, -- cgit v1.2.1