diff options
author | rbuj <[email protected]> | 2019-09-26 21:05:41 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-09-26 22:02:12 +0200 |
commit | 2a213d0ae7433a3fb145126d38b71d994ccf49d3 (patch) | |
tree | 07103aec4e3f58b47ec36fffc9175265d5f07cf7 /macros | |
parent | 47c8fc2a0cab964a47ef99a723026097498d55d6 (diff) | |
download | mate-common-2a213d0ae7433a3fb145126d38b71d994ccf49d3.tar.bz2 mate-common-2a213d0ae7433a3fb145126d38b71d994ccf49d3.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.
Diffstat (limited to 'macros')
-rw-r--r-- | macros/mate-compiler-flags.m4 | 8 |
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]),, |