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>
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
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."
}