X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=configure.in;h=3e0788cc2dfd2290ea0d3d52d05f1f9b58a449cc;hp=ca57d22f02b4c422851c61ee126ea5994bfdb0b2;hb=5518f5b5731a252c7cc871edd28b18af798e185e;hpb=fd735432ca61308348e1f1eb1b79a42e357aa0b7 diff --git a/configure.in b/configure.in index ca57d22..3e0788c 100644 --- a/configure.in +++ b/configure.in @@ -12,6 +12,13 @@ dnl AM_PROG_LIBTOOL AC_HEADER_STDC +HAS_MAGIC=yes +AC_CHECK_LIB(magic, magic_open, [:], [HAS_MAGIC=no]) +AC_CHECK_HEADER(magic.h, [], [HAS_MAGIC=no]) +if test "$HAS_MAGIC" = no; then + AC_MSG_ERROR([*** cannot find libmagic on this system]) +fi + AH_TEMPLATE(HAVE_XATTR, [define to compile support for filesystem extended attributes]) AC_ARG_WITH(xattr, [ --with-xattr Enable XATTR support]) HAS_XATTR=""