]> granicus.if.org Git - check/commitdiff
Only add -lm if the floor function is in the math lib.
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 31 Jan 2013 23:40:47 +0000 (23:40 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Thu, 31 Jan 2013 23:40:47 +0000 (23:40 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@689 64e312b2-a51f-0410-8e61-82d0ca0eb02a

configure.ac

index d22cc56e6b24499c588e4f713120e04669c06320..d1dbb294ba36a81eac29a3fab3fb2272ed426ba3 100644 (file)
@@ -125,9 +125,8 @@ if test "$TEX" = "false"; then
     AC_MSG_WARN(tex not installed: cannot rebuild HTML documentation.)
 fi
 
-# Add math library
-LIBS=-lm
-AC_SUBST(LIBS)
+# Check if floor is in the math library, and if so add -lm to LIBS
+AC_CHECK_LIB([m], [floor])
 
 # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so,
 # add -lrt to LIBS