summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 01032f32..8154c9b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-13 Cosimo Cecchi <cosimoc@gnome.org>
+
+ Bug 531705 – Won't build with libarchive 1.3.1
+
+ * configure.ac: check for archive_entry_filetype() instead of
+ archive_read_open(). Patch from Tom Parker.
+
2009-02-05 Bastien Nocera <hadess@hadess.net>
Bug 563788 – GNOME Goal: Clean up GLib and GTK+ includes
diff --git a/configure.ac b/configure.ac
index ad882d0c..37550c19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -449,7 +449,7 @@ if test "x$enable_archive" != "xno"; then
LDFLAGS_save="$LDFLAGS"
LDFLAGS="$LDFLAGS -L$with_archive_libs"
- AC_CHECK_LIB(archive, archive_read_open, archive_libs="yes", archive_libs="no")
+ AC_CHECK_LIB(archive, archive_entry_filetype, archive_libs="yes", archive_libs="no")
LDFLAGS="$LDFLAGS_save"
if test "x${archive_libs}" != "xno"; then
AC_DEFINE(HAVE_ARCHIVE,, [Define to 1 if you have the libarchive library])
@@ -460,7 +460,7 @@ if test "x$enable_archive" != "xno"; then
ARCHIVE_LIBS="-larchive"
fi
else
- AC_CHECK_LIB(archive, archive_read_open, archive_old_libs="yes", archive_old_libs="no")
+ AC_CHECK_LIB(archive, archive_entry_filetype, archive_old_libs="yes", archive_old_libs="no")
if test "x${archive_old_libs}" != "xno"; then
msg_archive="Too old, need at least archive 3.0.22"
fi