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’.
])
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
])
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
])
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