summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-03-25 17:37:32 -0600
committerJim Meyering <meyering@redhat.com>2010-03-26 19:16:37 +0100
commit508da563b905273c794b2402f8f9533d734c999b (patch)
tree28c65d56013e762ac0e9e47b7cb92f5c2e60d2c8 /autogen.sh
parentf0dc84d83f786f386cca2f375c662fcd166f08bd (diff)
downloadlibvirt-508da563b905273c794b2402f8f9533d734c999b.tar.gz
build: don't lose prior configure args on autogen.sh
My prior patch forced an autogen.sh run, and I was surprised that the suggested './autogen.sh' lost the fact that I had previously used './autogen.sh -C' for speed. * autogen.sh: Use config.status, if present and there were no arguments. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index b93cdbae65..a618d86329 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -56,8 +56,8 @@ if test "x$1" = "x--system"; then
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 "
+ if test -z "$*" && test ! -f "$THEDIR/config.status"; 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
@@ -92,7 +92,11 @@ if test "x$OBJ_DIR" != x; then
cd "$OBJ_DIR"
fi
-$srcdir/configure $EXTRA_ARGS "$@" && {
+if test -z "$*" && test -f config.status; then
+ ./config.status --recheck
+else
+ $srcdir/configure $EXTRA_ARGS "$@"
+fi && {
echo
echo "Now type 'make' to compile libvirt."
}