+# vulkan support, includes xlib platform dependency
+if test "x$enable_vulkan" != "xno"; then
+ PKG_CHECK_MODULES(VULKAN, vulkan-${enable_vulkan}, AC_DEFINE(ENABLE_VULKAN, 1, [Vulkan available as package]),
+ [ AC_MSG_ERROR([Vulkan not available as a package]) ]
+ )
+
+ DALI_ADAPTOR_CFLAGS+=" ${VULKAN_CFLAGS} -DVULKAN_HPP_NO_EXCEPTIONS"
+
+ # due to a bug in nvidia driver x11-xcb library is required
+ DALI_ADAPTOR_LDFLAGS+=${VULKAN_LIBS}
+
+ if test "x$DALI_HAS_X11_XCB" == "x1"; then
+ echo "X11 libs: ${X11_XCB_LIBS}"
+ DALI_ADAPTOR_LDFLAGS+=${X11_XCB_LIBS}
+ fi
+fi
+
+AM_CONDITIONAL([VULKAN_ENABLED], [test x$enable_vulkan != xno])
+