summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2008-11-07 11:02:08 +0100
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:17:34 +0900
commit554226858cc33d9e357a3e98f95646fdcd5d614b (patch)
treea277046bb215f6584f75554b8e7483246f721a33
parentb10517efee0cc6b2cd692f4537131cb0d7d5ae83 (diff)
configure: stop if m4 is not found
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e02b6d9..7e680fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,10 @@ AC_INIT([xcb-util],0.3.0,[xcb@lists.freedesktop.org])
AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
-AC_CHECK_PROGS(M4, m4)
+AC_CHECK_PROGS(M4, m4, [no])
+if test $M4 = "no"; then
+ AC_MSG_ERROR([Can't find m4, please install it and try again])
+fi
AC_CHECK_PROGS(GPERF, gperf, [no])
if test $GPERF = "no"; then
AC_MSG_ERROR([Can't find gperf, please install it and try again])