[libvirt] [PATCH 1/2] configure: Improve --with-init-script=check

Andrea Bolognani abologna at redhat.com
Thu Apr 28 15:54:33 UTC 2016


If we didn't find a match, either because we're cross compiling
or because we're not building on RHEL, we won't install any
init script.

Make sure this is reported correctly in the configure summary.
---
 configure.ac | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index de5f430..4b92e85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -647,10 +647,19 @@ case "$with_init_script" in
     none)
        ;;
     check)
-       if test "$cross_compiling" != yes && test -f /etc/redhat-release; then
+       if test "$cross_compiling" = yes
+       then
+           with_init_script=none
+       fi
+       if test "$with_init_script" = check && test -f /etc/redhat-release
+       then
           init_redhat=yes
           with_init_script=redhat
        fi
+       if test "$with_init_script" = check
+       then
+          with_init_script=none
+       fi
        ;;
     *)
        AC_MSG_ERROR([Unknown initscript flavour $with_init_script])
-- 
2.5.5




More information about the libvir-list mailing list