]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
truncl: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:49:04 +0000 (12:49 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:49:04 +0000 (12:49 +0200)
* m4/truncl.m4 (gl_FUNC_TRUNCL): Don't test against OSF/1 bug.

ChangeLog
m4/truncl.m4

index 80e06b98204e997e7607d2d3e0fe5bde89c2ff0b..3e0ae13b4c11ea1a97c7a87d7128d2ca023bbd4c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-09  Bruno Haible  <bruno@clisp.org>
 
+       truncl: Remove support for OSF/1.
+       * m4/truncl.m4 (gl_FUNC_TRUNCL): Don't test against OSF/1 bug.
+
        threadlib: Remove support for OSF/1.
        * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): Don't define -D_REENTRANT on
        OSF/1.
index 5ba3c0f372074349510a872ee3cc8866bf31e503..10a6dd5d7fd27f650f63e6e487b3795bc649f332 100644 (file)
@@ -1,5 +1,5 @@
 # truncl.m4
-# serial 20
+# serial 21
 dnl Copyright (C) 2007-2008, 2010-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -49,37 +49,8 @@ AC_DEFUN([gl_FUNC_TRUNCL],
     if test "$TRUNCL_LIBM" = "?"; then
       TRUNCL_LIBM=
     fi
-    dnl Test whether truncl() works. It crashes on OSF/1 4.0d.
-    saved_LIBS="$LIBS"
-    LIBS="$LIBS $TRUNCL_LIBM"
-    AC_CACHE_CHECK([whether truncl works], [gl_cv_func_truncl_works],
-      [
-        AC_RUN_IFELSE(
-          [AC_LANG_SOURCE([[
-#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" ;;
-                                # Guess yes on native Windows.
-             mingw* | windows*) gl_cv_func_truncl_works="guessing yes" ;;
-             *)                 gl_cv_func_truncl_works="guessing yes" ;;
-           esac
-          ])
-      ])
-    LIBS="$saved_LIBS"
-    case "$gl_cv_func_truncl_works" in
-      *yes) ;;
-      *) REPLACE_TRUNCL=1 ;;
-    esac
     m4_ifdef([gl_FUNC_TRUNCL_IEEE], [
-      if test $gl_truncl_required = ieee && test $REPLACE_TRUNCL = 0; then
+      if test $gl_truncl_required = ieee; then
         AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
         AC_CACHE_CHECK([whether truncl works according to ISO C 99 with IEC 60559],
           [gl_cv_func_truncl_ieee],