Check for extra libraries before checking for vital functions.

This commit is contained in:
Andrew Wood
2023-09-12 23:43:43 +01:00
parent 8a2ddac50e
commit 2e6a3937d4
+3 -3
View File
@@ -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