]> git.proxmox.com Git - qemu.git/commitdiff
configure: Provide more helpful message if libvte not present
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 18 Jul 2013 15:42:01 +0000 (16:42 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 18 Jul 2013 16:21:42 +0000 (11:21 -0500)
If the system has GTK but not libvte, it's more helpful to
tell the user that libvte is missing than to simply say that
GTK is not present.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1374162121-31582-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure

index cb0f870b95b6ff50cf7b98816e20fca72b2da283..9e1cd1975a8a2750ad34c7e3ea4db9f7d7d37f6c 100755 (executable)
--- a/configure
+++ b/configure
@@ -1697,19 +1697,23 @@ if test "$gtk" != "no"; then
       vtepackage="vte"
       vteversion="0.24.0"
     fi
-    if $pkg_config --exists "$gtkpackage >= $gtkversion" && \
-       $pkg_config --exists "$vtepackage >= $vteversion"; then
+    if ! $pkg_config --exists "$gtkpackage >= $gtkversion"; then
+        if test "$gtk" = "yes" ; then
+            feature_not_found "gtk"
+        fi
+        gtk="no"
+    elif ! $pkg_config --exists "$vtepackage >= $vteversion"; then
+        if test "$gtk" = "yes" ; then
+            error_exit "libvte not found (required for gtk support)"
+        fi
+        gtk="no"
+    else
        gtk_cflags=`$pkg_config --cflags $gtkpackage 2>/dev/null`
        gtk_libs=`$pkg_config --libs $gtkpackage 2>/dev/null`
        vte_cflags=`$pkg_config --cflags $vtepackage 2>/dev/null`
        vte_libs=`$pkg_config --libs $vtepackage 2>/dev/null`
        libs_softmmu="$gtk_libs $vte_libs $libs_softmmu"
        gtk="yes"
-    else
-       if test "$gtk" = "yes" ; then
-           feature_not_found "gtk"
-       fi
-       gtk="no"
     fi
 fi