aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 242081e48..dea646312 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,6 +91,7 @@ need_xml_check=
need_pcrecpp_check=
need_syck_check=
need_gem_check=
+need_libarchive_check=
need_resolver=
dnl {{{ we can use abi::__cxa_demangle
@@ -1466,6 +1467,7 @@ AC_SUBST([ENABLE_VISIBILITY])
AM_CONDITIONAL([ENABLE_PBINS], test "x$enable_pbins" = "xyes")
if test x"$ENABLE_PBINS" = "xyes" ; then
AC_DEFINE([ENABLE_PBINS], [1], [Build pbin support])
+ need_libarchive_check=yes
fi
dnl }}}
@@ -1500,6 +1502,17 @@ if test "x$need_pcrecpp_check" = "xyes" ; then
fi
dnl }}}
+dnl {{{ libarchive
+if test "x$need_libarchive_check" = "xyes" ; then
+ AC_MSG_CHECKING([for libarchive])
+ AC_PREPROC_IFELSE([
+#include <archive.h>
+],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_ERROR([libarchive is required for pbins])])
+fi
+dnl }}}
+
dnl {{{ syck check
if test "x$need_syck_check" = "xyes" ; then
AC_MSG_CHECKING([for syck])