mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
build: Check for pthreads.
This commit is contained in:
parent
8e2d4dc70f
commit
da02d21e8e
@ -27,6 +27,7 @@ libvkd3d_la_SOURCES = \
|
||||
libs/vkd3d/state.c \
|
||||
libs/vkd3d/utils.c \
|
||||
libs/vkd3d/vkd3d_main.c
|
||||
libvkd3d_la_LIBADD = @PTHREAD_LIBS@
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkginclude_HEADERS = $(vkd3d_public_headers)
|
||||
|
@ -36,9 +36,16 @@ AS_IF([test "x${GCC}" = "xyes"],
|
||||
VKD3D_CHECK_CFLAGS([-Wvla])])
|
||||
|
||||
dnl Check for headers
|
||||
AC_CHECK_HEADERS([vulkan/vulkan.h], [], [AC_MSG_ERROR([vulkan.h not found.])])
|
||||
AC_CHECK_HEADERS([pthread.h vulkan/vulkan.h])
|
||||
AS_IF([test "x$ac_cv_header_pthread_h" != "xyes"], [AC_MSG_ERROR([pthread.h not found.])])
|
||||
AS_IF([test "x$ac_cv_header_vulkan_vulkan_h" != "xyes"], [AC_MSG_ERROR([vulkan.h not found.])])
|
||||
|
||||
dnl Check for libraries
|
||||
AC_ARG_VAR([PTHREAD_LIBS], [linker flags for pthreads])
|
||||
AC_CHECK_LIB([pthread], [pthread_create],
|
||||
[AC_SUBST(PTHREAD_LIBS, "-lpthread")],
|
||||
[AC_MSG_ERROR(libpthread not found.)])
|
||||
|
||||
AC_CHECK_LIB([vulkan], [vkGetInstanceProcAddr], [], [AC_MSG_ERROR([libvulkan not found.])])
|
||||
|
||||
dnl Check for functions
|
||||
|
Loading…
Reference in New Issue
Block a user