From 2a8547ce2bfc3178ce5ce2f506eb97dabeb86ec3 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 30 Mar 2011 19:44:05 +0200 Subject: [PATCH] Fail if objfw-config is missing. --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d6b98a7..ffd3dda 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,11 @@ AC_INIT(ObjXMPP, 0.1, js@webkeks.org) AC_CONFIG_SRCDIR(src) -AC_PATH_TOOL(OBJFW_CONFIG, objfw-config) +AC_CHECK_TOOL(OBJFW_CONFIG, objfw-config) +AS_IF([test x"$OBJFW_CONFIG" = x""], [ + AC_MSG_ERROR(You need ObjFW and objfw-config installed!) +]) + test x"$OBJC" = x"" && OBJC="$($OBJFW_CONFIG --objc)" AC_LANG([Objective C])