Browse Source

Detect and link against libmagic

tags/v0.1.0
Damien Goutte-Gattat 9 years ago
parent
commit
49666c1598
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      configure.ac

+ 6
- 0
configure.ac View File

@@ -24,6 +24,12 @@ AM_PATH_GPGME([],
LIBS="$LIBS $GPGME_LIBS"],
[AC_MSG_ERROR([libgpgme not found])])

dnl Check for libmagic
AC_CHECK_HEADERS([magic.h], [],
[AC_MSG_ERROR([magic.h header not found])])
AC_SEARCH_LIBS([magic_open], [magic], [],
[AC_MSG_ERROR([libmagic not found])])

dnl Output files
AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile])
AC_OUTPUT


Loading…
Cancel
Save