build: Don't try to detect vulkan library if the header wasn't found.

We've already failed. No need to fail again.
This commit is contained in:
Benjamin Otte 2016-12-09 21:17:27 +01:00
parent 4ae50bf38e
commit 3e9811d91c

View File

@ -1323,8 +1323,9 @@ fi
if test "x$enable_vulkan" != "xno"; then
vulkan_error=""
AC_CHECK_HEADER([vulkan/vulkan.h], [], [vulkan_error="Vulkan header not found"])
AC_CHECK_LIB([vulkan], [vkCreateInstance], [], [vulkan_error="Vulkan library not found"])
AC_CHECK_HEADER([vulkan/vulkan.h],
[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
AC_MSG_ERROR($vulkan_error)