aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac3
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3168c6e..e64eea9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,6 +69,7 @@ libblogc_la_CFLAGS = \
$(NULL)
libblogc_la_LIBADD = \
+ $(LIBM) \
$(NULL)
diff --git a/configure.ac b/configure.ac
index b7bd7ea..7ba9e03 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,7 +95,8 @@ AM_CONDITIONAL([USE_CMOCKA], [test "x$have_cmocka" = "xyes"])
AC_CHECK_HEADERS([sys/types.h sys/stat.h time.h])
-AC_SEARCH_LIBS([ceilf], [m])
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
AC_CONFIG_FILES([
Makefile