From: Bartosz Golaszewski Date: Wed, 18 Apr 2018 15:44:52 +0000 (+0200) Subject: build: check for unexpanded macros in configure.ac X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bdc8e6bfd5efa8fd949f7fd29dee19f7ade990a1;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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])