+ gl_FUNC_CEILL_LIBS
+ if test "$CEILL_LIBM" = "?"; then
+ dnl Sun C 5.0 on Solaris declares ceill() and has it in the system-wide
+ dnl libm.so, but not in the libm.so that the compiler uses.
+ REPLACE_CEILL=1
+ fi
+ else
+ REPLACE_CEILL=1
+ fi
+ if test $REPLACE_CEILL = 1; then
+ AC_LIBOBJ([ceill])
+ CEILL_LIBM=
+ fi
+ AC_SUBST([REPLACE_CEILL])
+ AC_SUBST([CEILL_LIBM])
+])
+
+# Determines the libraries needed to get the ceill() function.
+# Sets CEILL_LIBM.
+AC_DEFUN([gl_FUNC_CEILL_LIBS],
+[
+ gl_CACHE_VAL_SILENT([gl_cv_func_ceill_libm], [
+ gl_cv_func_ceill_libm=?