aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-29 18:44:03 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-31 11:36:05 +0100
commit0b85ee0343e93b8aff612c6ac3aef50229514613 (patch)
tree524a2bcc2a11ec539b6400f2cf49c8d04a10b9ba
parentaec096a6efcc7dc4e3115bdf3b713424e3bb9d79 (diff)
downloadpaludis-0b85ee0343e93b8aff612c6ac3aef50229514613.tar.gz
paludis-0b85ee0343e93b8aff612c6ac3aef50229514613.tar.xz
Check libarchive is new enough
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dea6463..c0958fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1510,6 +1510,19 @@ if test "x$need_libarchive_check" = "xyes" ; then
],
[AC_MSG_RESULT([yes])],
[AC_MSG_ERROR([libarchive is required for pbins])])
+
+ AC_MSG_CHECKING([whether your libarchive is new enough])
+ AC_PREPROC_IFELSE([
+#include <archive.h>
+
+int main(int, char **)
+{
+ struct archive * archive;
+ archive_write_set_format_gnutar(archive);
+}
+],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_ERROR([a more recent libarchive than the one you have is required for pbins])])
fi
dnl }}}