summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-26 14:29:44 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-26 14:35:11 (EDT)
commit17982c5f7b2cfa9b55bc2462ff815b3cb33460dc (patch)
treefb727da163c991fdbca816607b9af0357c54c0d3
parent80906f721e4812549f3af596a64100249d803060 (diff)
downloaddodge-balls-17982c5f7b2cfa9b55bc2462ff815b3cb33460dc.zip
dodge-balls-17982c5f7b2cfa9b55bc2462ff815b3cb33460dc.tar.gz
dodge-balls-17982c5f7b2cfa9b55bc2462ff815b3cb33460dc.tar.bz2
build: Check for cos() and sin()
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9d0173c..9928b50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,12 @@ AC_CHECK_FUNCS(
if ${funcs_missing}; then
AC_MSG_ERROR([required functions are missing])
fi
+AC_SEARCH_LIBS([cos], [m], [], [
+ AC_MSG_ERROR([required functions are missing])
+])
+AC_SEARCH_LIBS([sin], [m], [], [
+ AC_MSG_ERROR([required functions are missing])
+])
AX_CFLAGS_WARN_ALL() dnl Adds -Wall or equivalent
AX_CHECK_COMPILE_FLAG([-Wpedantic], [AX_APPEND_FLAG([-Wpedantic])])