[libvirt] [cim PATCH 2/3] autogen: Run configure automatically

Andrea Bolognani posted 3 patches 7 years, 5 months ago
[libvirt] [cim PATCH 2/3] autogen: Run configure automatically
Posted by Andrea Bolognani 7 years, 5 months ago
This is in line with pretty much all libvirt-related projects,
is entirely compatible with the old behavior and will enable
some simplifications in the CI setup.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 autogen.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/autogen.sh b/autogen.sh
index 5b2e4dc..a04e4e6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -31,4 +31,14 @@ else
     echo "0" > .revision
 fi
 
-echo "You may now run ./configure"
+if test "$#" -eq 0; then
+    echo "Running configure without arguments ..."
+    echo "(If you want to pass any, specify them on the $0 command line)"
+else
+    echo "Running configure with $@ ..."
+fi
+
+"$srcdir/configure" "$@" || die
+
+echo
+echo "You may now run make"
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list