configure: don't warn GTK if disabled
commit5a464e6ce83907b72149cc6f504dd69c504ffa52
authorPeter Xu <peterx@redhat.com>
Mon, 9 Apr 2018 08:23:23 +0000 (9 16:23 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 10 Apr 2018 09:22:02 +0000 (10 11:22 +0200)
treed2844913de68d690bc88496db6a100c6d3f2c256
parentfa2d039b2cda314e83cc9fd8fd5b9d41c09a0993
configure: don't warn GTK if disabled

We don't need to detect GTK ABI if GTK is disabled in general.
Otherwise we could get this warning (when host is installed with GTK ABI
version 2) even when configure with "--disable-gtk":

    WARNING: Use of GTK 2.0 is deprecated and will be removed in
    WARNING: future releases. Please switch to using GTK 3.0

CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Gerd Hoffmann <kraxel@redhat.com>
CC: Peter Maydell <peter.maydell@linaro.org>
CC: Fam Zheng <famz@redhat.com>
CC: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20180409082323.29575-1-peterx@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
configure