gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / modules / roundl
index 91671f4..22486ab 100644 (file)
@@ -12,11 +12,12 @@ m4/ceill.m4
 Depends-on:
 math
 extensions
-float           [test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1]
+round           [{ test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
+float           [{ test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
 
 configure.ac:
 gl_FUNC_ROUNDL
-if test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
+if test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
   AC_LIBOBJ([roundl])
 fi
 gl_MATH_MODULE_INDICATOR([roundl])