summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2009-11-26 14:38:50 +0000
committerDaniel P. Berrange <berrange@redhat.com>2009-12-07 14:13:53 +0000
commit563dc5654c52b346d121b9f9d94fb6939ffb1b60 (patch)
treee86353e6730cddf64eaabe1292eda4fa4108e166 /autogen.sh
parentExport all symbols from xml.h for internal use (diff)
downloadlibvirt-563dc5654c52b346d121b9f9d94fb6939ffb1b60.tar.gz
libvirt-563dc5654c52b346d121b9f9d94fb6939ffb1b60.tar.bz2
libvirt-563dc5654c52b346d121b9f9d94fb6939ffb1b60.zip
Add --system flag to autogen.sh to make it easy to build with right prefix
Add a --system flag to autogen.sh which gets turned into the args --prefix=/usr --sysconfdir=/etc --localstatedir=/var to make it easy to build with settings that match an RPM build * autogen.sh: Add --system flag
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 415f3ec6d..1ddc251ff 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -49,9 +49,17 @@ test -f src/libvirt.c || {
exit 1
}
-if test -z "$*"; then
+
+EXTRA_ARGS=
+if test "x$1" = "x--system"; then
+ shift
+ EXTRA_ARGS="--prefix=/usr --sysconfdir=/etc --localstatedir=/var"
+ 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
# Ensure that whenever we pull in a gnulib update or otherwise change to a
@@ -77,7 +85,7 @@ if test x$OBJ_DIR != x; then
cd "$OBJ_DIR"
fi
-$srcdir/configure "$@" && {
+$srcdir/configure $EXTRA_ARGS "$@" && {
echo
echo "Now type 'make' to compile libvirt."
}