+ dnl Test whether truncl() works. It crashes on OSF/1 4.0d.
+ save_LIBS="$LIBS"
+ LIBS="$LIBS $TRUNCL_LIBM"
+ AC_CACHE_CHECK([whether truncl works], [gl_cv_func_truncl_works],
+ [
+ AC_TRY_RUN([
+#include <math.h>
+long double x;
+int main()
+{
+ x = truncl (0.0L);
+ return 0;
+}], [gl_cv_func_truncl_works=yes], [gl_cv_func_truncl_works=no],
+ [case "$host_os" in
+ osf4*) gl_cv_func_truncl_works="guessing no";;
+ *) gl_cv_func_truncl_works="guessing yes";;
+ esac
+ ])
+ ])
+ LIBS="$save_LIBS"
+ case "$gl_cv_func_truncl_works" in
+ *yes) ;;
+ *) REPLACE_TRUNCL=1 ;;
+ esac