aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 16:53:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-07 19:44:38 +0000
commit4ac7b20c2006414b1ad708f61c2e31fc494bb4ee (patch)
treea8d70fc65651a4fdbf04a38c8705773cd28778d2 /configure.ac
parent78fae8c23f0aa4070ed495ced4c4f20434f91c62 (diff)
downloadpaludis-4ac7b20c2006414b1ad708f61c2e31fc494bb4ee.tar.gz
paludis-4ac7b20c2006414b1ad708f61c2e31fc494bb4ee.tar.xz
Write pax archives if gnutar isn't available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 698f4730d..08bd126f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1564,6 +1564,7 @@ fi
dnl }}}
dnl {{{ libarchive
+libarchive_does_gnutar=no
if test "x$need_libarchive_check" = "xyes" ; then
AC_MSG_CHECKING([for libarchive])
AC_PREPROC_IFELSE([AC_LANG_SOURCE([
@@ -1572,7 +1573,7 @@ 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_MSG_CHECKING([whether your libarchive does gnutar])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <archive.h>
@@ -1582,9 +1583,14 @@ int main(int, char **)
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])])
+ [
+ AC_MSG_RESULT([yes])
+ libarchive_does_gnutar=yes
+ AC_DEFINE([LIBARCHIVE_DOES_GNUTAR], [1], [libarchive does gnutar])
+ ],
+ [AC_MSG_RESULT([no])])
fi
+AM_CONDITIONAL([LIBARCHIVE_DOES_GNUTAR], test "x$libarchive_does_gnutar" = "xyes")
dnl }}}
dnl {{{ sqlite3 check