mbsrtowcs: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / trunc
index 8153edafcae21e0b39622056240454223038f93e..34f33391e06800ce8195cfdfc1cd0b5c2ddf1046 100644 (file)
@@ -7,10 +7,14 @@ m4/trunc.m4
 
 Depends-on:
 math
-float
+extensions
+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: