[gtk-vnc] Add support for '--system' arg to autogen.sh
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Add support for '--system' arg to autogen.sh
- Date: Thu, 15 Dec 2011 10:09:12 +0000 (UTC)
commit ea4e265997df85e3f1f2be7a952a02007507127d
Author: Daniel P. Berrange <berrange redhat com>
Date: Thu Dec 15 10:08:58 2011 +0000
Add support for '--system' arg to autogen.sh
autogen.sh | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 53f5ee4..508846c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -17,8 +17,27 @@ which gnome-autogen.sh || {
exit 1
}
+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 "$*" ; 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
+
# Real changelog is auto-generated from GIT logs at
# make dist time, but automake requires that it
# exists at all times :-(
touch $srcdir/ChangeLog
-ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh
+ACLOCAL_FLAGS="$ACLOCAL_FLAGS" USE_GNOME2_MACROS=1 . gnome-autogen.sh $EXTRA_ARGS "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]