mbsrtowcs: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / trunc
index 1c6f706276d887c9f2b0ca3def51f8b798df5661..34f33391e06800ce8195cfdfc1cd0b5c2ddf1046 100644 (file)
@@ -8,10 +8,13 @@ m4/trunc.m4
 Depends-on:
 math
 extensions
-float
+float           [test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1]
 
 configure.ac:
 gl_FUNC_TRUNC
+if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
+  AC_LIBOBJ([trunc])
+fi
 gl_MATH_MODULE_INDICATOR([trunc])
 
 Makefile.am: