build: Fix vulkan detection

Add missing 'test'

https://bugzilla.gnome.org/show_bug.cgi?id=776736
This commit is contained in:
Pavel Grunt 2017-01-02 21:46:22 +01:00 committed by Matthias Clasen
parent 4749eedc08
commit 9629cbfce4

View File

@ -1327,7 +1327,7 @@ if test "x$enable_vulkan" != "xno"; then
[AC_CHECK_LIB([vulkan], [vkCreateInstance], [], [vulkan_error="Vulkan library not found"])],
[vulkan_error="Vulkan header not found"])
if test "x$vulkan_error" != "x"; then
if "x$enable_vulkan" = "xyes"; then
if test "x$enable_vulkan" = "xyes"; then
AC_MSG_ERROR($vulkan_error)
else
AC_MSG_WARN($vulkan_error)