From 7a3ba9f72e51be6d8d77f36956bb461a21411253 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 8 Sep 2015 21:25:09 -0300 Subject: build: find -lm properly --- Makefile.am | 1 + configure.ac | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-18-g5258