[libxml2] Add --system support to autogen.sh
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Add --system support to autogen.sh
- Date: Wed, 29 Feb 2012 01:34:54 +0000 (UTC)
commit 16d3a618803e52a56ae586b621019799e896f7a3
Author: Daniel Veillard <veillard redhat com>
Date: Wed Feb 29 09:34:32 2012 +0800
Add --system support to autogen.sh
autogen.sh | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 24137bd..f121ed9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -41,9 +41,23 @@ test -f entities.c || {
exit 1
}
-if test -z "$NOCONFIGURE" && test -z "$*"; then
- echo "I am going to run ./configure with no arguments - if you wish "
+EXTRA_ARGS=
+if test "x$1" = "x--system"; then
+ shift
+ prefix=/usr
+ libdir=$prefix/lib
+ sysconfdir=/etc
+ localstatedir=/var
+ if [ -d /usr/lib64 ]; then
+ libdir=$prefix/lib64
+ fi
+ EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
+ echo "Running ./configure with $EXTRA_ARGS $@"
+else
+ if test -z "$NOCONFIGURE" && test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
+ fi
fi
if [ ! -d $srcdir/m4 ]; then
@@ -51,10 +65,6 @@ if [ ! -d $srcdir/m4 ]; then
fi
# Replaced by autoreconf below
-#libtoolize --copy --force
-#aclocal $ACLOCAL_FLAGS
-#automake --force-missing --add-missing --copy --foreign
-#autoconf
autoreconf -if
cd $THEDIR
@@ -65,8 +75,7 @@ if test x$OBJ_DIR != x; then
fi
if test -z "$NOCONFIGURE"; then
- $srcdir/configure "$@"
-
- echo
- echo "Now type 'make' to compile libxml."
+ $srcdir/configure $EXTRA_ARGS "$@"
+ echo
+ echo "Now type 'make' to compile libvirt."
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]