From 2e6a3937d444523d9ddaa3d413ad686afa8e550d Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Tue, 12 Sep 2023 23:43:43 +0100 Subject: [PATCH] Check for extra libraries before checking for vital functions. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 7c5590f..5d95448 100644 --- a/configure.ac +++ b/configure.ac @@ -37,13 +37,13 @@ AC_CHECK_HEADERS([sys/ioctl.h]) AC_CHECK_HEADERS([libintl.h locale.h]) AC_CHECK_MEMBERS([struct stat.st_blksize]) +dnl Libraries that may contain key functions. +AC_SEARCH_LIBS([clock_gettime],[rt]) + dnl Items we can't do without. AC_CHECK_FUNCS([alarm basename clock_gettime dup2 getcwd memcpy memmove memset select setlocale strchr strerror strrchr strstr], [], [AC_MSG_ERROR([required function is missing])]) AC_CHECK_HEADERS([fcntl.h sys/file.h sys/time.h unistd.h], [], [AC_MSG_ERROR([required header file is missing])]) -dnl Libraries that may contain key functions. -AC_SEARCH_LIBS([clock_gettime],[rt]) - dnl Make sure all the types we use are defined. AC_TYPE_INT32_T AC_TYPE_MODE_T