[pacman-dev] [PATCH 2/3] Add --with-libarchive-prefix configure option
Nezmer
git at nezmer.info
Thu Oct 14 09:56:18 EDT 2010
This will allow us to build against libarchive wherever It is installed
in the system.
Signed-off-by: Nezmer <git at nezmer.info>
---
configure.ac | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 50d4a04..a12adb1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,6 +98,16 @@ AC_ARG_WITH(fetch,
AS_HELP_STRING([--with-fetch], [use libfetch as an internal downloader]),
[], [with_fetch=check])
+# Custom libarchive prefix
+AC_ARG_WITH(libarchive_prefix,
+ AS_HELP_STRING([--with-libarchive-prefix=[DIR]], [Prefix of libarchive installation]))
+
+if test "x$with_libarchive_prefix" != "x";then
+ CFLAGS="$CFLAGS -I$with_libarchive_prefix/include"
+ LDFLAGS="$LDFLAGS -L$with_libarchive_prefix/lib"
+ BSDTAR_BIN="$with_libarchive_prefix/bin/bsdtar"
+fi
+
# Custom bsdtar binary name and/or location
AC_ARG_WITH(bsdtar_bin,
AS_HELP_STRING([--with-bsdtar-bin=BSDTAR], [use bsdtar_bin as the bsdtar binary in scripts]),
--
1.7.3.1
More information about the pacman-dev
mailing list