From 30a084a33a8a6e1dcf69d2542cfb2420fea1b5e7 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Fri, 22 Apr 2022 14:03:04 -0500 Subject: [PATCH] added libs rt and pthreads (#1673) * added libs rt and pthreads --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 1820d2799a2..f568d378aa8 100644 --- a/configure.ac +++ b/configure.ac @@ -3231,6 +3231,10 @@ if test "X$SUBFILING_VFD" = "Xyes"; then AC_MSG_ERROR([Subfiling VFD requires atomic operations support. C11 stdatomic.h NOT available.]) fi +# Checks for libraries. + AC_SEARCH_LIBS([shm_open], [rt]) + AC_CHECK_LIB([pthread], [pthread_self],[], [echo "Error: Required library pthread not found." && exit 1]) + else AC_MSG_RESULT([no]) fi