]> Savannah Git Hosting - gnulib.git/commitdiff
totalorder: speed up configuration
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Oct 2023 19:19:08 +0000 (12:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 5 Oct 2023 19:22:46 +0000 (12:22 -0700)
* m4/totalorder.m4 (gl_FUNC_TOTALORDERF, gl_FUNC_TOTALORDER)
(gl_FUNC_TOTALORDERL): Avoid unnecessary call to AC_SEARCH_LIBS,
since the information is already available in shell vars.

ChangeLog
m4/totalorder.m4

index bf205bd23f3c12f8d645ca7bfda9842751069d50..3ace23945064dda0818f457b0f7fef8a81d7bad4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2023-10-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       totalorder: speed up configuration
+       * m4/totalorder.m4 (gl_FUNC_TOTALORDERF, gl_FUNC_TOTALORDER)
+       (gl_FUNC_TOTALORDERL): Avoid unnecessary call to AC_SEARCH_LIBS,
+       since the information is already available in shell vars.
+
        totalorderl: minor porting fixes
        * lib/totalorderl.c (LDBL_SIGNBIT_WORD): Define to -1 if not defined.
        (totalorderl): Avoid unused local zu by preferring ‘if’ to ‘ifdef’.
index 95aab65f193a7eed9ae08daf00d8b0b30f8e6adb..02c01fcd1a38414dc0924e120d7dddc10e0fb8b5 100644 (file)
@@ -19,10 +19,7 @@ AC_DEFUN([gl_FUNC_TOTALORDERF],
     ])
   AS_IF([test $gl_cv_func_totalorderf_no_libm != yes &&
          test $gl_cv_func_totalorderf_in_libm != yes],
-    [gl_saved_LIBS=$LIBS
-     AC_SEARCH_LIBS([totalorderf], [m])
-     LIBS=$gl_saved_LIBS
-     if test "$ac_cv_search_totalorderf" = no; then
+    [if test $gl_cv_func_totalorderf_in_libm != yes; then
        HAVE_TOTALORDERF=0
      else
        REPLACE_TOTALORDERF=1
@@ -46,10 +43,7 @@ AC_DEFUN([gl_FUNC_TOTALORDER],
     ])
   AS_IF([test $gl_cv_func_totalorder_no_libm != yes &&
          test $gl_cv_func_totalorder_in_libm != yes],
-    [gl_saved_LIBS=$LIBS
-     AC_SEARCH_LIBS([totalorder], [m])
-     LIBS=$gl_saved_LIBS
-     if test "$ac_cv_search_totalorder" = no; then
+    [if test $gl_cv_func_totalorder_in_libm != yes; then
        HAVE_TOTALORDER=0
      else
        REPLACE_TOTALORDER=1
@@ -73,10 +67,7 @@ AC_DEFUN([gl_FUNC_TOTALORDERL],
     ])
   AS_IF([test $gl_cv_func_totalorderl_no_libm != yes &&
          test $gl_cv_func_totalorderl_in_libm != yes],
-    [gl_saved_LIBS=$LIBS
-     AC_SEARCH_LIBS([totalorderl], [m])
-     LIBS=$gl_saved_LIBS
-     if test "$ac_cv_search_totalorderl" = no; then
+    [if test $gl_cv_func_totalorderl_in_libm != yes; then
        HAVE_TOTALORDERL=0
      else
        REPLACE_TOTALORDERL=1