-# truncl.m4 serial 2
-dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
+# truncl.m4 serial 5
+dnl Copyright (C) 2007-2008, 2010 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
TRUNCL_LIBM=
fi
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([
esac
])
])
+ LIBS="$save_LIBS"
case "$gl_cv_func_truncl_works" in
*yes) ;;
*) REPLACE_TRUNCL=1 ;;
esac
else
- REPLACE_TRUNCL=1
+ HAVE_DECL_TRUNCL=0
fi
- if test $REPLACE_TRUNCL = 1; then
+ if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then
AC_LIBOBJ([truncl])
TRUNCL_LIBM=
fi
- AC_SUBST([REPLACE_TRUNCL])
AC_SUBST([TRUNCL_LIBM])
])