From de2f99f8c485eacd4d39c526dc4f729c5df9b96f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 19 Apr 2023 12:23:26 -0400 Subject: build: Fail if any math functions are missing --- (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4c3588b..620a85c 100644 --- a/configure.ac +++ b/configure.ac @@ -33,7 +33,9 @@ AC_PROG_CC() AM_PROG_CC_C_O() test -d "${srcdir}/.git" || CFLAGS="${save_CFLAGS}" -AC_CHECK_LIB([m], [log10]) +AC_SEARCH_LIBS([log10], [m], [], AC_MSG_ERROR([missing log10])) +AC_SEARCH_LIBS([ceil], [m], [], AC_MSG_ERROR([missing ceil])) +AC_SEARCH_LIBS([lrint], [m], [], AC_MSG_ERROR([missing lrint])) PKG_PROG_PKG_CONFIG() PKG_CHECK_MODULES([ZLIB], [zlib]) -- cgit v0.9.1