NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git] / modules / ceill
index a2365c2..a5d860f 100644 (file)
@@ -9,10 +9,14 @@ m4/ceill.m4
 Depends-on:
 math
 extensions
-float
+ceil            [{ test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
+float           [{ test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
 
 configure.ac:
 gl_FUNC_CEILL
+if test $HAVE_DECL_CEILL = 0 || test $REPLACE_CEILL = 1; then
+  AC_LIBOBJ([ceill])
+fi
 gl_MATH_MODULE_INDICATOR([ceill])
 
 Makefile.am: