From: Ralf Corsépius Date: Fri, 10 Aug 2007 15:07:17 +0000 (+0200) Subject: Rework check for libmagic. X-Git-Tag: rpm-4.6.0-rc1~2142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ea0304adaba951818d7f8442a51412f7f891c4d;p=platform%2Fupstream%2Frpm.git Rework check for libmagic. --- diff --git a/configure.ac b/configure.ac index c6eead5..ae88f4e 100644 --- a/configure.ac +++ b/configure.ac @@ -485,11 +485,12 @@ AC_CHECK_HEADER([magic.h], [ AC_CHECK_LIB(magic, magic_open, [ WITH_MAGIC_INCLUDE= WITH_MAGIC_LIB="-lmagic" + ],[ + AC_MSG_ERROR([missing required libary 'libmagic']) ]) +],[ + AC_MSG_ERROR([missing required header magic.h]) ]) -if test -z "${WITH_MAGIC_LIB}" ; then - AC_MSG_ERROR([rpm requires libmagic]) -fi AC_SUBST(WITH_MAGIC_INCLUDE) AC_SUBST(WITH_MAGIC_LIB)