Skip to content

Commit

Permalink
Add --system flag to autogen.sh to make it easy to build with right p…
Browse files Browse the repository at this point in the history
…refix

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
  • Loading branch information
berrange committed Dec 7, 2009
1 parent e7ef4ed commit 563dc56
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."
}

0 comments on commit 563dc56

Please sign in to comment.