Fail if objfw-config is missing.

This commit is contained in:
Jonathan Schleifer 2011-03-30 19:44:05 +02:00
parent bb31fd1112
commit 2a8547ce2b

View file

@ -1,7 +1,11 @@
AC_INIT(ObjXMPP, 0.1, js@webkeks.org) AC_INIT(ObjXMPP, 0.1, js@webkeks.org)
AC_CONFIG_SRCDIR(src) 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)" test x"$OBJC" = x"" && OBJC="$($OBJFW_CONFIG --objc)"
AC_LANG([Objective C]) AC_LANG([Objective C])