summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2016-02-19 11:57:11 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2016-02-19 12:18:54 +0000
commit00e36366aa437f592a8e7d9dad5a7764890f40b2 (patch)
tree53cc4f545bfc342459b2643b453e145bb3ee4d9b
parent19879fa7aebea51677550ad2d7cdb07f16ac134f (diff)
Make autoconf fail with an explanatory message if an AX_ macro is missing
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3091c56..2dddd3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,9 @@ AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_CONFIG_AUX_DIR([build-aux])
+m4_pattern_forbid([^AX_],
+ [Unexpanded AX_ macro found. Please install GNU autoconf-archive])
+
AC_DEFINE(DBUS_PYTHON_MAJOR_VERSION, dbus_python_major_version, [dbus-python major version])
AC_SUBST(DBUS_PYTHON_MAJOR_VERSION, dbus_python_major_version)
AC_DEFINE(DBUS_PYTHON_MINOR_VERSION, dbus_python_minor_version, [dbus-python minor version])