roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
[pspp] / modules / round
index c4acba133f14fd8758cd8f7814c3fab4ac95e39e..6fe95a23b845e0a8c4f94d6e46fa60ed5ab74470 100644 (file)
@@ -9,13 +9,16 @@ m4/floor.m4
 m4/ceil.m4
 
 Depends-on:
-float
-floor
 math
 extensions
+float           [test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1]
+floor           [test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1]
 
 configure.ac:
 gl_FUNC_ROUND
+if test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1; then
+  AC_LIBOBJ([round])
+fi
 gl_MATH_MODULE_INDICATOR([round])
 
 Makefile.am: