From bdc8e6bfd5efa8fd949f7fd29dee19f7ade990a1 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 18 Apr 2018 17:44:52 +0200 Subject: [PATCH] build: check for unexpanded macros in configure.ac We're now using m4 macros from the autoconf-archive collection. The user may be missing this package so check for unexpanded AX_* macros and bail-out if any are found. Signed-off-by: Bartosz Golaszewski --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index ee7b03b..bc4b703 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,8 @@ AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE([foreign subdir-objects]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +m4_pattern_forbid([^AX_], + [Unexpanded AX_ macro found. Please install GNU autoconf-archive.]) AC_CONFIG_SRCDIR([src]) AC_CONFIG_HEADER([config.h]) -- 2.30.2