[file-roller] Fixed build wihtout libarchive support
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Fixed build wihtout libarchive support
- Date: Mon, 27 Aug 2012 19:05:07 +0000 (UTC)
commit 8e026e2288c319e17d13a420dc0df7a149369add
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Aug 27 20:27:04 2012 +0200
Fixed build wihtout libarchive support
[bug #682774]
configure.ac | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 93100f7..1d8d8e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -221,8 +221,9 @@ dnl ===========================================================================
dnl
dnl libarchive
dnl
-AC_ARG_ENABLE(libarchive,[AC_HELP_STRING([--enable-libarchive],[enable code that requires libarchive [default=yes]])],, [enable_libarchive="yes"])
-AM_CONDITIONAL(ENABLE_LIBARCHIVE, test "x$enable_libarchive" = xyes)
+AC_ARG_ENABLE([libarchive],
+ [AC_HELP_STRING([--enable-libarchive], [enable code that requires libarchive [default=yes]])],,
+ [enable_libarchive="yes"])
LIBARCHIVE_LIBS=""
LIBARCHIVE_CFLAGS=""
@@ -232,7 +233,7 @@ if test x"$enable_libarchive" = xyes; then
if pkg-config --atleast-version=$LIBARCHIVE_REQUIRED libarchive; then
LIBARCHIVE_LIBS=`pkg-config --libs libarchive`
LIBARCHIVE_CFLAGS=`pkg-config --cflags libarchive`
- AC_DEFINE(ENABLE_LIBARCHIVE, 1, [Have libarchive])
+ AC_DEFINE(ENABLE_LIBARCHIVE, 1, [define to enable libarchive support])
else
enable_libarchive=no
fi
@@ -240,6 +241,8 @@ fi
AC_MSG_RESULT($enable_libarchive)
AC_SUBST(LIBARCHIVE_LIBS)
AC_SUBST(LIBARCHIVE_CFLAGS)
+AM_CONDITIONAL(ENABLE_LIBARCHIVE, test x"$enable_libarchive" = xyes)
+
dnl ===========================================================================
dnl
dnl SM Client
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]