Add configure check for libmagic headers.

This commit is contained in:
Pascal Obry
2015-04-03 16:04:33 +02:00
parent 3af9342a43
commit 058c5f02bd
2 changed files with 10 additions and 1 deletions
Vendored
+8
View File
@@ -4584,6 +4584,14 @@ $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
fi
ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
if test "x$ac_cv_header_magic_h" = xyes; then :
else
as_fn_error $? "'Unable to find libmagic headers. Please make sure header files are installed.'" "$LINENO" 5
fi
# Checks for typedefs, structures, and compiler characteristics.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
+2 -1
View File
@@ -21,7 +21,7 @@ PKG_CHECK_MODULES(XML, libxml-2.0, , AC_MSG_ERROR('Unable to find libxml2. Pleas
PKG_CHECK_MODULES(CURL, libcurl, , AC_MSG_ERROR('Unable to find libcurl. Please make sure library and header files are installed.'))
PKG_CHECK_MODULES(FUSE, fuse, , AC_MSG_ERROR('Unable to find libfuse. Please make sure library and header files are installed.'))
PKG_CHECK_MODULES(JSON, json-c, ,
PKG_CHECK_MODULES(JSON, json, , AC_MSG_ERROR('Unable to find libjson. Please make sure library and header files are installed.')))
PKG_CHECK_MODULES(JSON, json, , AC_MSG_ERROR('Unable to find libjson. Please make sure library and header files are installed.')))
PKG_CHECK_MODULES(OPENSSL, openssl, , [])
# Checks for header files.
@@ -29,6 +29,7 @@ AC_FUNC_ALLOCA
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdint.h stddef.h stdlib.h string.h strings.h sys/time.h unistd.h pthread.h fuse.h curl/curl.h libxml/tree.h])
AC_CHECK_HEADER([openssl/crypto.h], AC_DEFINE([HAVE_OPENSSL], [], [Openssl headers were found]), , [])
AC_CHECK_HEADER([magic.h], , AC_MSG_ERROR('Unable to find libmagic headers. Please make sure header files are installed.'))
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST