+2024-01-17 Bruno Haible <bruno@clisp.org>
+
+ Improve naming of local variables.
+ * gnulib-tool, posix-modules, build-aux/relocatable.sh.in,
+ build-aux/reloc-ldflags, build-aux/install-reloc, tests/init.sh,
+ m4/argz.m4: Rename save_IFS to saved_IFS.
+ * m4/*.m4: Rename save_LIBS to saved_LIBS.
+ * m4/00gnulib.m4, m4/gnulib-common.m4, m4/warn-on-use.m4, m4/wchar_h.m4:
+ Rename save_ac_compile to saved_ac_compile.
+ * m4/00gnulib.m4: Rename ac_save_ac_compile to ac_saved_ac_compile.
+ * m4/gnulib-common.m4: Rename save_ac_compile_for_check_decl to
+ saved_ac_compile_for_check_decl.
+ * m4/assert_h.m4, m4/manywarnings.m4, m4/stdalign.m4, m4/visibility.m4:
+ Rename gl_save_CFLAGS to gl_saved_CFLAGS.
+ * m4/dirfd.m4: Rename dirfd_save_CFLAGS to gl_saved_CFLAGS.
+ * m4/include_next.m4, m4/pread.m4, m4/pwrite.m4, m4/termcap.m4,
+ m4/terminfo.m4: Rename gl_save_CPPFLAGS to gl_saved_CPPFLAGS.
+ * m4/lib-link.m4: Rename ac_save_CPPFLAGS to acl_save_CPPFLAGS.
+ * m4/iconv.m4, m4/readline.m4: Rename am_save_CPPFLAGS to
+ gl_saved_CPPFLAGS.
+ * m4/gettext.m4: Rename gt_save_CPPFLAGS to gt_saved_CPPFLAGS.
+ * m4/ansi-c++.m4: Rename gl_save_CXX to gl_saved_CXX.
+ * m4/manywarnings-c++.m4: Rename gl_save_CXXFLAGS to gl_saved_CXXFLAGS.
+ * m4/lib-link.m4: Rename acl_save_ifs to acl_saved_IFS.
+ * m4/lib-prefix.m4: Rename acl_save_IFS to acl_saved_IFS.
+ * m4/progtest.m4: Rename ac_save_IFS to gt_saved_IFS.
+ * m4/lib-link.m4: Rename save_libdir to saved_libdir, acl_save_libdir to
+ acl_saved_libdir.
+ * m4/ld-version-script.m4: Rename save_LDFLAGS to saved_LDFLAGS.
+ * m4/acl.m4, m4/getgroups.m4: Rename ac_save_LIBS to gl_saved_LIBS.
+ * m4/lib-link.m4: Rename ac_save_LIBS to acl_saved_LIBS.
+ * m4/getdomainname.m4, m4/gethostname.m4, m4/getloadavg.m4,
+ m4/hostent.m4, m4/inet_ntop.m4, m4/inet_pton.m4,
+ m4/pthread_mutex_timedlock.m4, m4/pthread_sigmask.m4,
+ m4/pthread-spin.m4, m4/readutmp.m4, m4/selinux-selinux-h.m4,
+ m4/servent.m4, m4/socketlib.m4, m4/termcap.m4, m4/terminfo.m4,
+ m4/thread.m4: Rename gl_save_LIBS to gl_saved_LIBS.
+ * m4/getaddrinfo.m4, m4/iconv.m4, m4/readline.m4: Rename am_save_LIBS to
+ gl_saved_LIBS.
+ * m4/gettext.m4, m4/intlmacosx.m4: Rename gt_save_LIBS to gt_saved_LIBS.
+ * m4/libunistring.m4: Rename glus_save_LIBS to glus_saved_LIBS.
+ * m4/nanosleep.m4: Rename nanosleep_save_libs to gl_saved_LIBS.
+ * m4/lib-prefix.m4: Rename acl_save_prefix to acl_saved_prefix,
+ acl_save_exec_prefix to acl_saved_exec_prefix.
+ * m4/configmake.m4: Rename gl_save_<variable> to gl_saved_<variable>.
+ * m4/terminfo.m4: Likewise.
+ * m4/gettext.m4: Rename gt_save_<variable> to gt_saved_<variable>.
+ * m4/javaexec.m4: Rename save_CLASSPATH to gt_saved_CLASSPATH.
+ * m4/warnings.m4: Rename gl_save_compiler_FLAGS to
+ gl_saved_compiler_FLAGS.
+ * lib/pread.c, lib/pwrite.c, lib/read-file.c, lib/tempname.c: Rename
+ save_errno to saved_errno.
+ * lib/read-file.c: Rename save_alloc to saved_alloc.
+ * lib/strptime.c: Rename save_wday to saved_wday, save_mday to
+ saved_mday, save_mon to saved_mon.
+
2024-01-16 Paul Eggert <eggert@cs.ucla.edu>
posixtm: pacify clang 18
test -n "$library_path_var" || exit 0
libdirs=
-save_IFS="$IFS"; IFS=":"
+saved_IFS="$IFS"; IFS=":"
for dir in $library_path_value; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
if test -n "$dir"; then
case "$libdirs" in
*"\"$dir\""*) ;; # remove duplicate
esac
fi
done
-IFS="$save_IFS"
+IFS="$saved_IFS"
# If there are no library directories to add at runtime, we don't need a
# wrapper.
test -n "$libdirs" || exit 0
# We are not on AIX, HP-UX, or IRIX. Therefore the -rpath options are
# cumulative.
rpath_options=
- save_IFS="$IFS"; IFS=":"
+ saved_IFS="$IFS"; IFS=":"
for dir in $library_path_value; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
case "$dir" in
/*)
# Make dir relative to installdir. (Works only if dir is absolute.)
;;
esac
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
# Output it.
if test -n "$rpath_options"; then
case "$host_os" in
|| PATH_SEPARATOR=';'
}
fi
- save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
+ saved_IFS="$IFS"; IFS="$PATH_SEPARATOR"
for dir in $PATH; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
test -z "$dir" && dir=.
for exec_ext in ''; do
if test -f "$dir/$curr_executable$exec_ext"; then
fi
done
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
;;
esac
# Make absolute.
;;
esac
fi
- save_IFS="$IFS"
+ saved_IFS="$IFS"
IFS="$PATH_SEPARATOR"
for d in $pathx; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
test -z "$d" && d=.
if test -x "$d/$progname" && test ! -d "$d/$progname"; then
self_abspathname="$d/$progname"
break
fi
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
if test -z "$self_abspathname"; then
func_fatal_error "could not locate the gnulib-tool program - how did you invoke it?"
fi
fpf_cb="$1"; shift
fpf_rc=false
- fpf_save_IFS="$IFS"
+ fpf_saved_IFS="$IFS"
IFS="$PATH_SEPARATOR"
for fpf_dir in $fpf_dirs
do
- IFS="$fpf_save_IFS"
+ IFS="$fpf_saved_IFS"
func_path_foreach_inner "$@" && fpf_rc=:
done
- IFS="$fpf_save_IFS"
+ IFS="$fpf_saved_IFS"
$fpf_rc
}
sed_trimtrailingslashes='s,\([^/]\)//*$,\1,'
old_local_gnulib_path="$local_gnulib_path"
local_gnulib_path=
- save_IFS="$IFS"
+ saved_IFS="$IFS"
IFS=:
for dir in $old_local_gnulib_path
do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
case "$dir" in
*/ ) dir=`echo "$dir" | sed -e "$sed_trimtrailingslashes"` ;;
esac
func_path_append local_gnulib_path "$dir"
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
case "$sourcebase" in
*/ ) sourcebase=`echo "$sourcebase" | sed -e "$sed_trimtrailingslashes"` ;;
esac
rm -f "$tmp/$lkbase"
cp "$lookedup_file" "$tmp/$lkbase"
func_ensure_writable "$tmp/$lkbase"
- save_IFS="$IFS"
+ saved_IFS="$IFS"
IFS="$PATH_SEPARATOR"
for patchfile in $lkpatches; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
patch -s "$tmp/$lkbase" < "$patchfile" >&2 \
|| func_fatal_error "patch file $patchfile didn't apply cleanly"
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
lookedup_file="$tmp/$lkbase"
lookedup_tmp=true
fi
func_compute_relative_local_gnulib_path ()
{
relative_local_gnulib_path=
- save_IFS="$IFS"
+ saved_IFS="$IFS"
IFS="$PATH_SEPARATOR"
for local_dir in $local_gnulib_path
do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
# Store the local_dir relative to destdir.
case "$local_dir" in
"" | /*)
esac
func_path_append relative_local_gnulib_path "$relative_local_dir"
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
}
# Create m4/gnulib-cache.m4.
{
/* Since we must not change the file pointer preserve the value so that
we can restore it later. */
- int save_errno;
+ int saved_errno;
ssize_t result;
off_t old_offset = __libc_lseek (fd, 0, SEEK_CUR);
if (old_offset == (off_t) -1)
/* Now we have to restore the position. If this fails we have to
return this as an error. But if the writing also failed we
return this error. */
- save_errno = errno;
+ saved_errno = errno;
if (__libc_lseek (fd, old_offset, SEEK_SET) == (off_t) -1)
{
if (result == -1)
- __set_errno (save_errno);
+ __set_errno (saved_errno);
return -1;
}
- __set_errno (save_errno);
+ __set_errno (saved_errno);
return result;
}
{
/* Since we must not change the file pointer preserve the value so that
we can restore it later. */
- int save_errno;
+ int saved_errno;
ssize_t result;
off_t old_offset = __libc_lseek (fd, 0, SEEK_CUR);
if (old_offset == (off_t) -1)
/* Now we have to restore the position. If this fails we have to
return this as an error. But if the writing also failed we
return this error. */
- save_errno = errno;
+ saved_errno = errno;
if (__libc_lseek (fd, old_offset, SEEK_SET) == (off_t) -1)
{
if (result == -1)
- __set_errno (save_errno);
+ __set_errno (saved_errno);
return -1;
}
- __set_errno (save_errno);
+ __set_errno (saved_errno);
return result;
}
{
size_t size = 0; /* number of bytes read so far */
- int save_errno;
+ int saved_errno;
for (;;)
{
if (count != requested)
{
- save_errno = errno;
+ saved_errno = errno;
if (ferror (stream))
break;
{
char *new_buf;
- size_t save_alloc = alloc;
+ size_t saved_alloc = alloc;
if (alloc == PTRDIFF_MAX)
{
- save_errno = ENOMEM;
+ saved_errno = ENOMEM;
break;
}
if (!new_buf)
{
/* BUF should be cleared below after the loop. */
- save_errno = errno;
+ saved_errno = errno;
break;
}
- memcpy (new_buf, buf, save_alloc);
- memset_explicit (buf, 0, save_alloc);
+ memcpy (new_buf, buf, saved_alloc);
+ memset_explicit (buf, 0, saved_alloc);
free (buf);
}
else if (!(new_buf = realloc (buf, alloc)))
{
- save_errno = errno;
+ saved_errno = errno;
break;
}
memset_explicit (buf, 0, alloc);
free (buf);
- errno = save_errno;
+ errno = saved_errno;
return NULL;
}
}
if ((have_uweek || have_wweek) && have_wday)
{
- int save_wday = tm->tm_wday;
- int save_mday = tm->tm_mday;
- int save_mon = tm->tm_mon;
+ int saved_wday = tm->tm_wday;
+ int saved_mday = tm->tm_mday;
+ int saved_mon = tm->tm_mon;
int w_offset = have_uweek ? 0 : 1;
tm->tm_mday = 1;
tm->tm_mon = 0;
day_of_the_week (tm);
if (have_mday)
- tm->tm_mday = save_mday;
+ tm->tm_mday = saved_mday;
if (have_mon)
- tm->tm_mon = save_mon;
+ tm->tm_mon = saved_mon;
if (!have_yday)
tm->tm_yday = ((7 - (tm->tm_wday - w_offset)) % 7
+ (week_no - 1) *7
- + save_wday - w_offset);
+ + saved_wday - w_offset);
if (!have_mday || !have_mon)
{
- __mon_yday[__isleap(1900 + tm->tm_year)][t_mon - 1] + 1);
}
- tm->tm_wday = save_wday;
+ tm->tm_wday = saved_wday;
}
return (char *) rp;
char *XXXXXX;
unsigned int count;
int fd = -1;
- int save_errno = errno;
+ int saved_errno = errno;
/* A lower bound on the number of temporary files to attempt to
generate. The maximum total number of temporary file names that
fd = tryfunc (tmpl, args);
if (fd >= 0)
{
- __set_errno (save_errno);
+ __set_errno (saved_errno);
return fd;
}
else if (errno != EEXIST)
-# 00gnulib.m4 serial 8
+# 00gnulib.m4 serial 9
dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[if test $gl_cv_compiler_clang = yes; then
dnl Test whether the compiler supports the option
dnl '-Werror=implicit-function-declaration'.
- save_ac_compile="$ac_compile"
+ saved_ac_compile="$ac_compile"
ac_compile="$ac_compile -Werror=implicit-function-declaration"
dnl Use _AC_COMPILE_IFELSE instead of AC_COMPILE_IFELSE, to avoid a
dnl warning "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
[gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'],
[gl_cv_compiler_check_decl_option=none])
- ac_compile="$save_ac_compile"
+ ac_compile="$saved_ac_compile"
else
gl_cv_compiler_check_decl_option=none
fi
dnl instead of ac_compile. If, for whatever reason, the override of AC_PROG_CC
dnl in zzgnulib.m4 is inactive, use the original ac_compile.
m4_define([_AC_CHECK_DECL_BODY],
-[ ac_save_ac_compile="$ac_compile"
+[ ac_saved_ac_compile="$ac_compile"
if test -n "$ac_compile_for_check_decl"; then
ac_compile="$ac_compile_for_check_decl"
fi]
-m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_save_ac_compile"
+m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_saved_ac_compile"
])
# gl_00GNULIB
# acl.m4 - check for access control list (ACL) primitives
-# serial 29
+# serial 30
# Copyright (C) 2002, 2004-2024 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
dnl On all platforms, the ACL related API is declared in <sys/acl.h>.
AC_CHECK_HEADERS([sys/acl.h])
if test $ac_cv_header_sys_acl_h = yes; then
- ac_save_LIBS=$LIBS
+ gl_saved_LIBS=$LIBS
dnl Test for POSIX-draft-like API (GNU/Linux, FreeBSD, Mac OS X,
dnl IRIX, Tru64, Cygwin >= 2.5).
fi
fi
- LIBS=$ac_save_LIBS
+ LIBS=$gl_saved_LIBS
fi
if test "$enable_acl$use_acl" = yes0; then
-# acosf.m4 serial 3
+# acosf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether acosf() exists. Assume that acosf(), if it exists, is
dnl defined in the same library as acos().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ACOS_LIBM"
AC_CHECK_FUNCS([acosf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_acosf = yes; then
ACOSF_LIBM="$ACOS_LIBM"
else
-# acosl.m4 serial 9
+# acosl.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether acosl() can be used with libm],
[gl_cv_func_acosl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| acosl (x) > 1;]])],
[gl_cv_func_acosl_in_libm=yes],
[gl_cv_func_acosl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_acosl_in_libm = yes; then
ACOSL_LIBM=-lm
-# ansi-c++.m4 serial 12
+# ansi-c++.m4 serial 13
dnl Copyright (C) 2002-2003, 2005, 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[
AC_REQUIRE([gl_CXX_CHOICE])
m4_if([$1], [CXX], [],
- [gl_save_CXX="$CXX"])
+ [gl_saved_CXX="$CXX"])
if test "$CXX_CHOICE" = no; then
CXX=no
fi
fi
m4_if([$1], [CXX], [],
[$1="$CXX"
- CXX="$gl_save_CXX"])
+ CXX="$gl_saved_CXX"])
AC_SUBST([$1])
AM_CONDITIONAL([$2], [test "$$1" != no])
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
-# serial 14 argz.m4
+# serial 15 argz.m4
AC_DEFUN([gl_FUNC_ARGZ],
[gl_PREREQ_ARGZ
lt_cv_sys_argz_works="$gl_cross_guess_normal"
else
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
- save_IFS=$IFS
+ saved_IFS=$IFS
IFS=-.
set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
- IFS=$save_IFS
+ IFS=$saved_IFS
lt_os_major=${2-0}
lt_os_minor=${3-0}
lt_os_micro=${4-0}
-# asinf.m4 serial 3
+# asinf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether asinf() exists. Assume that asinf(), if it exists, is
dnl defined in the same library as asin().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ASIN_LIBM"
AC_CHECK_FUNCS([asinf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_asinf = yes; then
ASINF_LIBM="$ASIN_LIBM"
else
-# asinl.m4 serial 9
+# asinl.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether asinl() can be used with libm],
[gl_cv_func_asinl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| asinl (x) > 1;]])],
[gl_cv_func_asinl_in_libm=yes],
[gl_cv_func_asinl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_asinl_in_libm = yes; then
ASINL_LIBM=-lm
AC_DEFUN([gl_ASSERT_H],
[
AC_CACHE_CHECK([for static_assert], [gl_cv_static_assert],
- [gl_save_CFLAGS=$CFLAGS
+ [gl_saved_CFLAGS=$CFLAGS
for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
AS_CASE([$gl_working],
- [*assert.h*], [CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H"])
+ [*assert.h*], [CFLAGS="$gl_saved_CFLAGS -DINCLUDE_ASSERT_H"])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
]])],
[gl_cv_static_assert=$gl_working],
[gl_cv_static_assert=no])
- CFLAGS=$gl_save_CFLAGS
+ CFLAGS=$gl_saved_CFLAGS
test "$gl_cv_static_assert" != no && break
done])
-# atan2f.m4 serial 3
+# atan2f.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether atan2f() exists. Assume that atan2f(), if it exists, is
dnl defined in the same library as atan2().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ATAN2_LIBM"
AC_CHECK_FUNCS([atan2f])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_atan2f = yes; then
ATAN2F_LIBM="$ATAN2_LIBM"
else
-# atanf.m4 serial 3
+# atanf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether atanf() exists. Assume that atanf(), if it exists, is
dnl defined in the same library as atan().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ATAN_LIBM"
AC_CHECK_FUNCS([atanf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_atanf = yes; then
ATANF_LIBM="$ATAN_LIBM"
else
-# atanl.m4 serial 9
+# atanl.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether atanl() can be used with libm],
[gl_cv_func_atanl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| atanl (x) > 1;]])],
[gl_cv_func_atanl_in_libm=yes],
[gl_cv_func_atanl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_atanl_in_libm = yes; then
ATANL_LIBM=-lm
-# cbrt.m4 serial 2
+# cbrt.m4 serial 3
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_COMMON_DOUBLE_MATHFUNC([cbrt])
dnl Test whether cbrt() exists.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CBRT_LIBM"
AC_CHECK_FUNCS([cbrt])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_cbrt = no; then
HAVE_CBRT=0
dnl Find libraries needed to link lib/cbrt.c.
-# cbrtf.m4 serial 5
+# cbrtf.m4 serial 6
dnl Copyright (C) 2012-2024 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 Test whether cbrtf() exists. Assume that cbrtf(), if it exists, is
dnl defined in the same library as cbrt().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CBRT_LIBM"
AC_CHECK_FUNCS([cbrtf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_cbrtf = yes; then
CBRTF_LIBM="$CBRT_LIBM"
dnl Also check whether it's declared.
dnl IRIX 6.5 has cbrtf() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECL([cbrtf], , [HAVE_DECL_CBRTF=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CBRTF_LIBM"
gl_FUNC_CBRTF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_cbrtf_works" in
*yes) ;;
*) REPLACE_CBRTF=1 ;;
-# cbrtl.m4 serial 12
+# cbrtl.m4 serial 13
dnl Copyright (C) 2012-2024 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 Test whether cbrtl() exists. Assume that cbrtl(), if it exists, is
dnl defined in the same library as cbrt().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CBRT_LIBM"
AC_CHECK_FUNCS([cbrtl])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_cbrtl = yes; then
CBRTL_LIBM="$CBRT_LIBM"
dnl Also check whether it's declared.
dnl IRIX 6.5 has cbrtl() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECL([cbrtl], , [HAVE_DECL_CBRTL=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CBRTL_LIBM"
gl_FUNC_CBRTL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_cbrtl_works" in
*yes) ;;
*) REPLACE_CBRTL=1 ;;
AC_CACHE_CHECK([whether cbrtl works according to ISO C 99 with IEC 60559],
[gl_cv_func_cbrtl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CBRTL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_cbrtl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_cbrtl_ieee" in
*yes) ;;
-# ceil.m4 serial 17
+# ceil.m4 serial 18
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether ceil works according to ISO C 99 with IEC 60559],
[gl_cv_func_ceil_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CEIL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_ceil_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_ceil_ieee" in
*yes) ;;
[[x = funcptr(x) + ceil(x);]])],
[gl_cv_func_ceil_libm=])
if test "$gl_cv_func_ceil_libm" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
double x;]],
[[x = funcptr(x) + ceil(x);]])],
[gl_cv_func_ceil_libm="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
])
CEIL_LIBM="$gl_cv_func_ceil_libm"
-# ceilf.m4 serial 21
+# ceilf.m4 serial 22
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether ceilf works according to ISO C 99 with IEC 60559],
[gl_cv_func_ceilf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CEILF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_ceilf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_ceilf_ieee" in
*yes) ;;
[[x = funcptr(x) + ceilf(x);]])],
[gl_cv_func_ceilf_libm=])
if test "$gl_cv_func_ceilf_libm" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
float x;]],
[[x = funcptr(x) + ceilf(x);]])],
[gl_cv_func_ceilf_libm="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
])
CEILF_LIBM="$gl_cv_func_ceilf_libm"
-# ceill.m4 serial 24
+# ceill.m4 serial 25
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether ceill works according to ISO C 99 with IEC 60559],
[gl_cv_func_ceill_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $CEILL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_ceill_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_ceill_ieee" in
*yes) ;;
if test $REPLACE_CEILL = 0 ; then
AC_CACHE_CHECK([whether ceill() works],
[gl_cv_func_ceill_works],
- [save_LIBS="$LIBS"
+ [saved_LIBS="$LIBS"
LIBS="$CEILL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
*) gl_cv_func_ceill_works="guessing yes" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_ceill_works" in
*yes) ;;
[[x = funcptr(x) + ceill(x);]])],
[gl_cv_func_ceill_libm=])
if test "$gl_cv_func_ceill_libm" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
long double x;]],
[[x = funcptr(x) + ceill(x);]])],
[gl_cv_func_ceill_libm="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
])
CEILL_LIBM="$gl_cv_func_ceill_libm"
-# check-math-lib.m4 serial 4
+# check-math-lib.m4 serial 5
dnl Copyright (C) 2007, 2009-2024 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
dnl Example: gl_CHECK_MATH_LIB([ROUNDF_LIBM], [x = roundf (x);])
AC_DEFUN([gl_CHECK_MATH_LIB], [
- save_LIBS=$LIBS
+ saved_LIBS="$LIBS"
$1=missing
for libm in "" "-lm"; do
- LIBS="$save_LIBS $libm"
+ LIBS="$saved_LIBS $libm"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#ifndef __NO_MATH_INLINES
# define __NO_MATH_INLINES 1 /* for glibc */
[$1=$libm
break])
done
- LIBS=$save_LIBS
+ LIBS="$saved_LIBS"
])
-# configmake.m4 serial 5
+# configmake.m4 serial 6
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_CONFIGMAKE_PREP])
dnl Save the values.
- gl_save_prefix="${prefix}"
- gl_save_exec_prefix="${exec_prefix}"
- gl_save_bindir="${bindir}"
- gl_save_sbindir="${sbindir}"
- gl_save_libexecdir="${libexecdir}"
- gl_save_datarootdir="${datarootdir}"
- gl_save_datadir="${datadir}"
- gl_save_sysconfdir="${sysconfdir}"
- gl_save_sharedstatedir="${sharedstatedir}"
- gl_save_localstatedir="${localstatedir}"
- gl_save_runstatedir="${runstatedir}"
- gl_save_includedir="${includedir}"
- gl_save_oldincludedir="${oldincludedir}"
- gl_save_docdir="${docdir}"
- gl_save_infodir="${infodir}"
- gl_save_htmldir="${htmldir}"
- gl_save_dvidir="${dvidir}"
- gl_save_pdfdir="${pdfdir}"
- gl_save_psdir="${psdir}"
- gl_save_libdir="${libdir}"
- gl_save_lispdir="${lispdir}"
- gl_save_localedir="${localedir}"
- gl_save_mandir="${mandir}"
- gl_save_pkgdatadir="${pkgdatadir}"
- gl_save_pkgincludedir="${pkgincludedir}"
- gl_save_pkglibdir="${pkglibdir}"
- gl_save_pkglibexecdir="${pkglibexecdir}"
+ gl_saved_prefix="${prefix}"
+ gl_saved_exec_prefix="${exec_prefix}"
+ gl_saved_bindir="${bindir}"
+ gl_saved_sbindir="${sbindir}"
+ gl_saved_libexecdir="${libexecdir}"
+ gl_saved_datarootdir="${datarootdir}"
+ gl_saved_datadir="${datadir}"
+ gl_saved_sysconfdir="${sysconfdir}"
+ gl_saved_sharedstatedir="${sharedstatedir}"
+ gl_saved_localstatedir="${localstatedir}"
+ gl_saved_runstatedir="${runstatedir}"
+ gl_saved_includedir="${includedir}"
+ gl_saved_oldincludedir="${oldincludedir}"
+ gl_saved_docdir="${docdir}"
+ gl_saved_infodir="${infodir}"
+ gl_saved_htmldir="${htmldir}"
+ gl_saved_dvidir="${dvidir}"
+ gl_saved_pdfdir="${pdfdir}"
+ gl_saved_psdir="${psdir}"
+ gl_saved_libdir="${libdir}"
+ gl_saved_lispdir="${lispdir}"
+ gl_saved_localedir="${localedir}"
+ gl_saved_mandir="${mandir}"
+ gl_saved_pkgdatadir="${pkgdatadir}"
+ gl_saved_pkgincludedir="${pkgincludedir}"
+ gl_saved_pkglibdir="${pkglibdir}"
+ gl_saved_pkglibexecdir="${pkglibexecdir}"
dnl Find the final values.
dnl Unfortunately, prefix gets only finally determined at the end of
gl_BUILD_TO_HOST([pkglibexecdir])
dnl Restore the values.
- pkglibexecdir="${gl_save_pkglibexecdir}"
- pkglibdir="${gl_save_pkglibdir}"
- pkgincludedir="${gl_save_pkgincludedir}"
- pkgdatadir="${gl_save_pkgdatadir}"
- mandir="${gl_save_mandir}"
- localedir="${gl_save_localedir}"
- lispdir="${gl_save_lispdir}"
- libdir="${gl_save_libdir}"
- psdir="${gl_save_psdir}"
- pdfdir="${gl_save_pdfdir}"
- dvidir="${gl_save_dvidir}"
- htmldir="${gl_save_htmldir}"
- infodir="${gl_save_infodir}"
- docdir="${gl_save_docdir}"
- oldincludedir="${gl_save_oldincludedir}"
- includedir="${gl_save_includedir}"
- runstatedir="${gl_save_runstatedir}"
- localstatedir="${gl_save_localstatedir}"
- sharedstatedir="${gl_save_sharedstatedir}"
- sysconfdir="${gl_save_sysconfdir}"
- datadir="${gl_save_datadir}"
- datarootdir="${gl_save_datarootdir}"
- libexecdir="${gl_save_libexecdir}"
- sbindir="${gl_save_sbindir}"
- bindir="${gl_save_bindir}"
- exec_prefix="${gl_save_exec_prefix}"
- prefix="${gl_save_prefix}"
+ pkglibexecdir="${gl_saved_pkglibexecdir}"
+ pkglibdir="${gl_saved_pkglibdir}"
+ pkgincludedir="${gl_saved_pkgincludedir}"
+ pkgdatadir="${gl_saved_pkgdatadir}"
+ mandir="${gl_saved_mandir}"
+ localedir="${gl_saved_localedir}"
+ lispdir="${gl_saved_lispdir}"
+ libdir="${gl_saved_libdir}"
+ psdir="${gl_saved_psdir}"
+ pdfdir="${gl_saved_pdfdir}"
+ dvidir="${gl_saved_dvidir}"
+ htmldir="${gl_saved_htmldir}"
+ infodir="${gl_saved_infodir}"
+ docdir="${gl_saved_docdir}"
+ oldincludedir="${gl_saved_oldincludedir}"
+ includedir="${gl_saved_includedir}"
+ runstatedir="${gl_saved_runstatedir}"
+ localstatedir="${gl_saved_localstatedir}"
+ sharedstatedir="${gl_saved_sharedstatedir}"
+ sysconfdir="${gl_saved_sysconfdir}"
+ datadir="${gl_saved_datadir}"
+ datarootdir="${gl_saved_datarootdir}"
+ libexecdir="${gl_saved_libexecdir}"
+ sbindir="${gl_saved_sbindir}"
+ bindir="${gl_saved_bindir}"
+ exec_prefix="${gl_saved_exec_prefix}"
+ prefix="${gl_saved_prefix}"
])
-# cosf.m4 serial 3
+# cosf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether cosf() exists. Assume that cosf(), if it exists, is
dnl defined in the same library as cos().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $COS_LIBM"
AC_CHECK_FUNCS([cosf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_cosf = yes; then
COSF_LIBM="$COS_LIBM"
else
-# coshf.m4 serial 3
+# coshf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether coshf() exists. Assume that coshf(), if it exists, is
dnl defined in the same library as cosh().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $COSH_LIBM"
AC_CHECK_FUNCS([coshf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_coshf = yes; then
COSHF_LIBM="$COSH_LIBM"
else
-# cosl.m4 serial 9
+# cosl.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether cosl() can be used with libm],
[gl_cv_func_cosl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| cosl (x) > 0.4;]])],
[gl_cv_func_cosl_in_libm=yes],
[gl_cv_func_cosl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_cosl_in_libm = yes; then
COSL_LIBM=-lm
-# serial 29 -*- Autoconf -*-
+# serial 30 -*- Autoconf -*-
dnl Find out how to get the file descriptor associated with an open DIR*.
AC_CACHE_CHECK([how to get the file descriptor associated with an open DIR*],
[gl_cv_sys_dir_fd_member_name],
[
- dirfd_save_CFLAGS=$CFLAGS
+ gl_saved_CFLAGS=$CFLAGS
for ac_expr in d_fd dd_fd; do
CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
[[DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;]])],
[dir_fd_found=yes]
)
- CFLAGS=$dirfd_save_CFLAGS
+ CFLAGS=$gl_saved_CFLAGS
test "$dir_fd_found" = yes && break
done
test "$dir_fd_found" = yes || ac_expr=no_such_member
-# exp2.m4 serial 4
+# exp2.m4 serial 5
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether exp2() can be used with libm],
[gl_cv_func_exp2_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| exp2 (x) > 1.5;]])],
[gl_cv_func_exp2_in_libm=yes],
[gl_cv_func_exp2_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_exp2_in_libm = yes; then
EXP2_LIBM=-lm
dnl Also check whether it's declared.
dnl IRIX 6.5 has exp2() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECL([exp2], , [HAVE_DECL_EXP2=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXP2_LIBM"
gl_FUNC_EXP2_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_exp2_works" in
*yes) ;;
*) REPLACE_EXP2=1 ;;
-# exp2f.m4 serial 1
+# exp2f.m4 serial 2
dnl Copyright (C) 2011-2024 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 Test whether exp2f() exists. Assume that exp2f(), if it exists, is
dnl defined in the same library as exp2().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXP2_LIBM"
AC_CHECK_FUNCS([exp2f])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_exp2f = yes; then
HAVE_EXP2F=1
EXP2F_LIBM="$EXP2_LIBM"
-# exp2l.m4 serial 12
+# exp2l.m4 serial 13
dnl Copyright (C) 2010-2024 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 Test whether exp2l() exists. Assume that exp2l(), if it exists, is
dnl defined in the same library as exp2().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXP2_LIBM"
AC_CHECK_FUNCS([exp2l])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_exp2l = yes; then
HAVE_EXP2L=1
EXP2L_LIBM="$EXP2_LIBM"
AC_CACHE_CHECK([whether exp2l works],
[gl_cv_func_exp2l_works],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXP2L_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_exp2l_works="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_exp2l_works" in
*yes) ;;
AC_CACHE_CHECK([whether exp2l works according to ISO C 99 with IEC 60559],
[gl_cv_func_exp2l_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXP2L_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_exp2l_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_exp2l_ieee" in
*yes) ;;
-# expf.m4 serial 3
+# expf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether expf() exists. Assume that expf(), if it exists, is
dnl defined in the same library as exp().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXP_LIBM"
AC_CHECK_FUNCS([expf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_expf = yes; then
EXPF_LIBM="$EXP_LIBM"
else
-# expl.m4 serial 20
+# expl.m4 serial 21
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether expl() can be used with libm],
[gl_cv_func_expl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| expl (x) > 1.5;]])],
[gl_cv_func_expl_in_libm=yes],
[gl_cv_func_expl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_expl_in_libm = yes; then
EXPL_LIBM=-lm
AC_CACHE_CHECK([whether expl works],
[gl_cv_func_expl_works],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXPL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_expl_works="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_expl_works" in
*yes) ;;
-# expm1.m4 serial 11
+# expm1.m4 serial 12
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether expm1() can be used with libm],
[gl_cv_func_expm1_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| expm1 (x) > 0.5;]])],
[gl_cv_func_expm1_in_libm=yes],
[gl_cv_func_expm1_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_expm1_in_libm = yes; then
EXPM1_LIBM=-lm
AC_CACHE_CHECK([whether expm1 works according to ISO C 99 with IEC 60559],
[gl_cv_func_expm1_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXPM1_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_expm1_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_expm1_ieee" in
*yes) ;;
-# expm1f.m4 serial 6
+# expm1f.m4 serial 7
dnl Copyright (C) 2011-2024 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 Test whether expm1f() exists. Assume that expm1f(), if it exists, is
dnl defined in the same library as expm1().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXPM1_LIBM"
AC_CHECK_FUNCS([expm1f])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_expm1f = yes; then
EXPM1F_LIBM="$EXPM1_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXPM1F_LIBM"
gl_FUNC_EXPM1F_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_expm1f_works" in
*yes) ;;
*) REPLACE_EXPM1F=1 ;;
AC_CACHE_CHECK([whether expm1f works according to ISO C 99 with IEC 60559],
[gl_cv_func_expm1f_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXPM1F_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_expm1f_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_expm1f_ieee" in
*yes) ;;
-# expm1l.m4 serial 11
+# expm1l.m4 serial 12
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether expm1l() can be used with libm],
[gl_cv_func_expm1l_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| expm1l (x) > 0.5;]])],
[gl_cv_func_expm1l_in_libm=yes],
[gl_cv_func_expm1l_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_expm1l_in_libm = yes; then
EXPM1L_LIBM=-lm
AC_CACHE_CHECK([whether expm1l works],
[gl_cv_func_expm1l_works],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $EXPM1L_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_expm1l_works="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_expm1l_works" in
*yes) ;;
-# fabsl.m4 serial 4
+# fabsl.m4 serial 5
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MATHFUNC([fabsl], [long double], [(long double)])
if test $gl_cv_func_fabsl_no_libm = yes \
|| test $gl_cv_func_fabsl_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FABSL_LIBM"
gl_FUNC_FABSL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_fabsl_works" in
*yes) ;;
*) REPLACE_FABSL=1 ;;
-# fenv-environment.m4 serial 1
+# fenv-environment.m4 serial 2
dnl Copyright (C) 2023-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[gl_cv_var_FE_DFL_ENV_works],
[case "$host_os" in
netbsd* | cygwin*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
],
[gl_cv_var_FE_DFL_ENV_works=yes],
[gl_cv_var_FE_DFL_ENV_works=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
*)
gl_cv_var_FE_DFL_ENV_works="guessing yes"
;;
*)
dnl This test fails on FreeBSD 12.2/arm64.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_feholdexcept_works="guessing yes"],
[gl_cv_func_feholdexcept_works=no],
[gl_cv_func_feholdexcept_works="guessing yes"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
esac
])
], [gl_cv_func_fesetenv_works="guessing yes"])
;;
*-*-aix*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_fesetenv_works="guessing yes"],
[gl_cv_func_fesetenv_works=no],
[gl_cv_func_fesetenv_works="guessing no"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
*-*-solaris*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_fesetenv_works="guessing yes"],
[gl_cv_func_fesetenv_works=no],
[gl_cv_func_fesetenv_works="guessing no"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
# Guess no on NetBSD/m68k.
m68*-*-netbsd*)
dnl This test fails on FreeBSD 12.2/arm64.
dnl Here we test only the rounding mode restoration, but the function
dnl is more broken than that.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_fesetenv_works="guessing yes"],
[gl_cv_func_fesetenv_works=no],
[gl_cv_func_fesetenv_works="guessing yes"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
esac
])
[case "$host" in
# Guess no on glibc/riscv.
riscv*-*-*-gnu*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_feupdateenv_works=yes],
[gl_cv_func_feupdateenv_works=no],
[gl_cv_func_feupdateenv_works="guessing no"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
# Guess no on glibc/hppa.
hppa*-*-*-gnu*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_feupdateenv_works=no],
[gl_cv_func_feupdateenv_works="guessing yes"],
[gl_cv_func_feupdateenv_works="guessing no"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
# Guess no on glibc ≤ 2.5/{i386,x86_64,ia64}.
*86*-*-*-gnu* | *86*-*-gnu* | ia64*-*-*-gnu*)
], [gl_cv_func_feupdateenv_works="guessing yes"])
;;
*-*-aix*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_feupdateenv_works="guessing yes"],
[gl_cv_func_feupdateenv_works=no],
[gl_cv_func_feupdateenv_works="guessing no"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
*-*-solaris*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_feupdateenv_works="guessing yes"],
[gl_cv_func_feupdateenv_works=no],
[gl_cv_func_feupdateenv_works="guessing no"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
# Guess no on Mac OS X/{i386,x86_64}.
*86*-*-darwin*)
dnl This test fails on FreeBSD 12.2/arm64.
dnl Here we test only the rounding mode restoration, but the function
dnl is more broken than that.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_ENVIRONMENT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_feupdateenv_works="guessing yes"],
[gl_cv_func_feupdateenv_works=no],
[gl_cv_func_feupdateenv_works="guessing yes"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
esac
])
-# fenv-exceptions-state.m4 serial 2
+# fenv-exceptions-state.m4 serial 3
dnl Copyright (C) 2023-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[if test $gl_cv_func_feenableexcept_no_libm = yes \
|| test $gl_cv_func_feenableexcept_in_libm = yes; then
dnl A platform that has feenableexcept.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
if test $gl_cv_func_feenableexcept_no_libm != yes; then
LIBS="$LIBS -lm"
fi
*) gl_cv_func_fesetexceptflag_works1="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
else
case "$host_os" in
# Guess no on musl libc.
dnl On glibc 2.37 for alpha, fesetexceptflag clears too many flag bits.
AC_CACHE_CHECK([whether fesetexceptflag obeys its arguments],
[gl_cv_func_fesetexceptflag_works2],
- [save_LIBS="$LIBS"
+ [saved_LIBS="$LIBS"
LIBS="$LIBS $FENV_EXCEPTIONS_STATE_LIBM"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
*) gl_cv_func_fesetexceptflag_works2="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_fesetexceptflag_works1" in
*yes) ;;
-# fenv-exceptions-tracking-c23.m4 serial 1
+# fenv-exceptions-tracking-c23.m4 serial 2
dnl Copyright (C) 2023-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[if test $gl_cv_func_feenableexcept_no_libm = yes \
|| test $gl_cv_func_feenableexcept_in_libm = yes; then
dnl A platform that has feenableexcept.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
if test $gl_cv_func_feenableexcept_no_libm != yes; then
LIBS="$LIBS -lm"
fi
*) gl_cv_func_fesetexcept_works="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
else
gl_cv_func_fesetexcept_works="guessing yes"
fi
-# floor.m4 serial 16
+# floor.m4 serial 17
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether floor works according to ISO C 99 with IEC 60559],
[gl_cv_func_floor_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FLOOR_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_floor_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_floor_ieee" in
*yes) ;;
[[x = funcptr(x) + floor(x);]])],
[gl_cv_func_floor_libm=])
if test "$gl_cv_func_floor_libm" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
double x;]],
[[x = funcptr(x) + floor(x);]])],
[gl_cv_func_floor_libm="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
])
FLOOR_LIBM="$gl_cv_func_floor_libm"
-# floorf.m4 serial 20
+# floorf.m4 serial 21
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether floorf works according to ISO C 99 with IEC 60559],
[gl_cv_func_floorf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FLOORF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_floorf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_floorf_ieee" in
*yes) ;;
[[x = funcptr(x) + floorf(x);]])],
[gl_cv_func_floorf_libm=])
if test "$gl_cv_func_floorf_libm" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
float x;]],
[[x = funcptr(x) + floorf(x);]])],
[gl_cv_func_floorf_libm="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
])
FLOORF_LIBM="$gl_cv_func_floorf_libm"
-# floorl.m4 serial 11
+# floorl.m4 serial 12
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[x = funcptr (x) + floorl(x);]])],
[gl_cv_func_floorl_libm=])
if test "$gl_cv_func_floorl_libm" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
long double x;]],
[[x = funcptr (x) + floorl(x);]])],
[gl_cv_func_floorl_libm="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
])
FLOORL_LIBM="$gl_cv_func_floorl_libm"
-# fma.m4 serial 6
+# fma.m4 serial 7
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_REQUIRE([gl_FUNC_LDEXP])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMA_LIBM $LDEXP_LIBM"
AC_CACHE_CHECK([whether fma works], [gl_cv_func_fma_works],
[
esac
])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
# Prerequisites of lib/fma.c.
-# fmaf.m4 serial 8
+# fmaf.m4 serial 9
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_REQUIRE([gl_FUNC_LDEXPF])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMAF_LIBM $LDEXPF_LIBM"
AC_CACHE_CHECK([whether fmaf works], [gl_cv_func_fmaf_works],
[
esac
])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
# Prerequisites of lib/fmaf.c.
-# fmal.m4 serial 10
+# fmal.m4 serial 11
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_REQUIRE([gl_FUNC_LDEXPL])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMAL_LIBM $LDEXPL_LIBM"
AC_CACHE_CHECK([whether fmal works], [gl_cv_func_fmal_works],
[
esac
])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
# Prerequisites of lib/fmal.c.
-# fmod.m4 serial 11
+# fmod.m4 serial 12
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether fmod works according to ISO C 99 with IEC 60559],
[gl_cv_func_fmod_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMOD_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_fmod_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_fmod_ieee" in
*yes) ;;
-# fmodf.m4 serial 13
+# fmodf.m4 serial 14
dnl Copyright (C) 2011-2024 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 Test whether fmodf() exists. Assume that fmodf(), if it exists, is
dnl defined in the same library as fmod().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMOD_LIBM"
AC_CHECK_FUNCS([fmodf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_fmodf = yes; then
FMODF_LIBM="$FMOD_LIBM"
m4_ifdef([gl_FUNC_FMODF_IEEE], [
AC_CACHE_CHECK([whether fmodf works according to ISO C 99 with IEC 60559],
[gl_cv_func_fmodf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMODF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_fmodf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_fmodf_ieee" in
*yes) ;;
-# fmodl.m4 serial 13
+# fmodl.m4 serial 14
dnl Copyright (C) 2011-2024 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 Test whether fmodl() exists. Assume that fmodl(), if it exists, is
dnl defined in the same library as fmod().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMOD_LIBM"
AC_CHECK_FUNCS([fmodl])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_fmodl = yes; then
FMODL_LIBM="$FMOD_LIBM"
if test $ac_cv_have_decl_fmodl = no; then
AC_CACHE_CHECK([whether fmodl works according to ISO C 99 with IEC 60559],
[gl_cv_func_fmodl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FMODL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_fmodl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_fmodl_ieee" in
*yes) ;;
-# frexp.m4 serial 19
+# frexp.m4 serial 20
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether frexp() can be used with libm],
[gl_cv_func_frexp_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[int e; return frexp (x, &e) > 0;]])],
[gl_cv_func_frexp_in_libm=yes],
[gl_cv_func_frexp_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_frexp_in_libm = yes; then
FREXP_LIBM=-lm
fi
if test $gl_cv_func_frexp_no_libm = yes \
|| test $gl_cv_func_frexp_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FREXP_LIBM"
gl_FUNC_FREXP_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_frexp_works" in
*yes) gl_func_frexp=yes ;;
*) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
-# frexpf.m4 serial 9
+# frexpf.m4 serial 10
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MATHFUNC([frexpf], [float], [(float, int *)])
if test $gl_cv_func_frexpf_no_libm = yes \
|| test $gl_cv_func_frexpf_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FREXPF_LIBM"
gl_FUNC_FREXPF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_frexpf_works" in
*yes) ;;
*) REPLACE_FREXPF=1 ;;
-# frexpl.m4 serial 23
+# frexpl.m4 serial 24
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether frexpl() can be used with libm],
[gl_cv_func_frexpl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[int e; return frexpl (x, &e) > 0;]])],
[gl_cv_func_frexpl_in_libm=yes],
[gl_cv_func_frexpl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_frexpl_in_libm = yes; then
FREXPL_LIBM=-lm
fi
if test $gl_cv_func_frexpl_no_libm = yes \
|| test $gl_cv_func_frexpl_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $FREXPL_LIBM"
gl_FUNC_FREXPL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_frexpl_works" in
*yes) gl_func_frexpl=yes ;;
*) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
-# getaddrinfo.m4 serial 34
+# getaddrinfo.m4 serial 35
dnl Copyright (C) 2004-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([for getaddrinfo in ws2tcpip.h and -lws2_32],
gl_cv_w32_getaddrinfo, [
gl_cv_w32_getaddrinfo=no
- am_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lws2_32"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#ifdef HAVE_WS2TCPIP_H
#endif
#include <stddef.h>
]], [[getaddrinfo(NULL, NULL, NULL, NULL);]])], [gl_cv_w32_getaddrinfo=yes])
- LIBS="$am_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test "$gl_cv_w32_getaddrinfo" = "yes"; then
GETADDRINFO_LIB="-lws2_32"
-# getdomainname.m4 serial 13
+# getdomainname.m4 serial 14
dnl Copyright (C) 2002-2003, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([for getdomainname in -lnsl],
[gl_cv_func_getdomainname_in_libnsl],
[gl_cv_func_getdomainname_in_libnsl=no
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lnsl"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[getdomainname(NULL, 0);]])],
[gl_cv_func_getdomainname_in_libnsl=yes])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
fi
-# serial 24
+# serial 25
dnl From Jim Meyering.
dnl A wrapper around AC_FUNC_GETGROUPS.
# If we don't yet have getgroups, see if it's in -lbsd.
# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
- ac_save_LIBS=$LIBS
+ gl_saved_LIBS=$LIBS
if test $ac_cv_func_getgroups = no; then
AC_CHECK_LIB(bsd, getgroups, [GETGROUPS_LIB=-lbsd])
fi
[Define to 1 if your system has a working `getgroups' function.])
;;
esac
- LIBS=$ac_save_LIBS
+ LIBS=$gl_saved_LIBS
])# AC_FUNC_GETGROUPS
AC_DEFUN([gl_FUNC_GETGROUPS],
-# gethostname.m4 serial 15
+# gethostname.m4 serial 16
dnl Copyright (C) 2002, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([for gethostname in winsock2.h and -lws2_32],
[gl_cv_w32_gethostname],
[gl_cv_w32_gethostname=no
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lws2_32"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#ifdef HAVE_WINSOCK2_H
#endif
#include <stddef.h>
]], [[gethostname(NULL, 0);]])], [gl_cv_w32_gethostname=yes])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test "$gl_cv_w32_gethostname" = "yes"; then
GETHOSTNAME_LIB="-lws2_32"
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
-#serial 12
+#serial 13
# Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent.
# New applications should use gl_GETLOADAVG instead.
# Persuade glibc <stdlib.h> to declare getloadavg().
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
-gl_save_LIBS=$LIBS
+gl_saved_LIBS=$LIBS
# getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
# NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
fi
fi
-if test "x$gl_save_LIBS" = x; then
+if test "x$gl_saved_LIBS" = x; then
GETLOADAVG_LIBS=$LIBS
else
- GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
+ GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_saved_LIBS!!"`
fi
-LIBS=$gl_save_LIBS
+LIBS=$gl_saved_LIBS
AC_SUBST([GETLOADAVG_LIBS])dnl
-# gettext.m4 serial 78 (gettext-0.22.4)
+# gettext.m4 serial 79 (gettext-0.23)
dnl Copyright (C) 1995-2014, 2016, 2018-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_LIB_LINKFLAGS_BODY([intl])
AC_CACHE_CHECK([for GNU gettext in libintl],
[$gt_func_gnugettext_libintl],
- [gt_save_CPPFLAGS="$CPPFLAGS"
+ [gt_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCINTL"
- gt_save_LIBS="$LIBS"
+ gt_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBINTL"
dnl Now see whether libintl exists and does not depend on libiconv.
AC_LINK_IFELSE(
eval "$gt_func_gnugettext_libintl=yes"
])
fi
- CPPFLAGS="$gt_save_CPPFLAGS"
- LIBS="$gt_save_LIBS"])
+ CPPFLAGS="$gt_saved_CPPFLAGS"
+ LIBS="$gt_saved_LIBS"])
fi
dnl If an already present or preinstalled GNU gettext() is found,
dnl Define localedir_c and localedir_c_make.
dnl Find the final value of localedir.
- gt_save_prefix="${prefix}"
- gt_save_datarootdir="${datarootdir}"
- gt_save_localedir="${localedir}"
+ gt_saved_prefix="${prefix}"
+ gt_saved_datarootdir="${datarootdir}"
+ gt_saved_localedir="${localedir}"
dnl Unfortunately, prefix gets only finally determined at the end of
dnl configure.
if test "X$prefix" = "XNONE"; then
eval datarootdir="$datarootdir"
eval localedir="$localedir"
gl_BUILD_TO_HOST([localedir])
- localedir="${gt_save_localedir}"
- datarootdir="${gt_save_datarootdir}"
- prefix="${gt_save_prefix}"
+ localedir="${gt_saved_localedir}"
+ datarootdir="${gt_saved_datarootdir}"
+ prefix="${gt_saved_prefix}"
])
-# gnulib-common.m4 serial 89
+# gnulib-common.m4 serial 90
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if test $gl_cv_compiler_clang = yes; then
dnl Test whether the compiler supports the option
dnl '-Werror=unguarded-availability-new'.
- save_ac_compile="$ac_compile"
+ saved_ac_compile="$ac_compile"
ac_compile="$ac_compile -Werror=unguarded-availability-new"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
[gl_cv_compiler_check_future_option='-Werror=unguarded-availability-new'],
[gl_cv_compiler_check_future_option=none])
- ac_compile="$save_ac_compile"
+ ac_compile="$saved_ac_compile"
else
gl_cv_compiler_check_future_option=none
fi
darwin*)
if test "x$gl_cv_compiler_check_future_option" != "xnone"; then
dnl Use a compile test, not a link test.
- save_ac_compile="$ac_compile"
+ saved_ac_compile="$ac_compile"
ac_compile="$ac_compile $gl_cv_compiler_check_future_option"
- save_ac_compile_for_check_decl="$ac_compile_for_check_decl"
+ saved_ac_compile_for_check_decl="$ac_compile_for_check_decl"
ac_compile_for_check_decl="$ac_compile_for_check_decl $gl_cv_compiler_check_future_option"
unset [ac_cv_have_decl_][$1]
AC_CHECK_DECL([$1], , , [$2])
- ac_compile="$save_ac_compile"
- ac_compile_for_check_decl="$save_ac_compile_for_check_decl"
+ ac_compile="$saved_ac_compile"
+ ac_compile_for_check_decl="$saved_ac_compile_for_check_decl"
[ac_cv_func_][$1]="$[ac_cv_have_decl_][$1]"
if test $[ac_cv_func_][$1] = yes; then
[gl_cv_onwards_func_][$1]=yes
-# hostent.m4 serial 4
+# hostent.m4 serial 5
dnl Copyright (C) 2008, 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([for gethostbyname in winsock2.h and -lws2_32],
[gl_cv_w32_gethostbyname],
[gl_cv_w32_gethostbyname=no
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lws2_32"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[gethostbyname(NULL);]])],
[gl_cv_w32_gethostbyname=yes])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test "$gl_cv_w32_gethostbyname" = "yes"; then
HOSTENT_LIB="-lws2_32"
-# hypot.m4 serial 11
+# hypot.m4 serial 12
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether hypot works according to ISO C 99 with IEC 60559],
[gl_cv_func_hypot_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOT_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_hypot_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_hypot_ieee" in
*yes) ;;
-# hypotf.m4 serial 12
+# hypotf.m4 serial 13
dnl Copyright (C) 2012-2024 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 Test whether hypotf() exists. Assume that hypotf(), if it exists, is
dnl defined in the same library as hypot().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOT_LIBM"
AC_CHECK_FUNCS([hypotf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_hypotf = yes; then
HYPOTF_LIBM="$HYPOT_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOTF_LIBM"
gl_FUNC_HYPOTF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_hypotf_works" in
*yes) ;;
*) REPLACE_HYPOTF=1 ;;
AC_CACHE_CHECK([whether hypotf works according to ISO C 99 with IEC 60559],
[gl_cv_func_hypotf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOTF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_hypotf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_hypotf_ieee" in
*yes) ;;
-# hypotl.m4 serial 13
+# hypotl.m4 serial 14
dnl Copyright (C) 2012-2024 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 Test whether hypotl() exists. Assume that hypotl(), if it exists, is
dnl defined in the same library as hypot().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOT_LIBM"
AC_CHECK_FUNCS([hypotl])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_hypotl = yes; then
HYPOTL_LIBM="$HYPOT_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOTL_LIBM"
gl_FUNC_HYPOTL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_hypotl_works" in
*yes) ;;
*) REPLACE_HYPOTL=1 ;;
AC_CACHE_CHECK([whether hypotl works according to ISO C 99 with IEC 60559],
[gl_cv_func_hypotl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $HYPOTL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_hypotl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_hypotl_ieee" in
*yes) ;;
-# iconv.m4 serial 26
+# iconv.m4 serial 27
dnl Copyright (C) 2000-2002, 2007-2014, 2016-2024 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
dnl because if the user has installed libiconv and not disabled its use
dnl via --without-libiconv-prefix, he wants to use it. The first
dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
- am_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
iconv_close(cd);]])],
[am_cv_func_iconv=yes])
if test "$am_cv_func_iconv" != yes; then
- am_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
iconv_close(cd);]])],
[am_cv_lib_iconv=yes]
[am_cv_func_iconv=yes])
- LIBS="$am_save_LIBS"
+ LIBS="$gl_saved_LIBS"
fi
])
if test "$am_cv_func_iconv" = yes; then
AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
dnl Solaris 10.
- am_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
if test $am_cv_lib_iconv = yes; then
LIBS="$LIBS $LIBICONV"
fi
esac])
test "$am_cv_func_iconv_works" = no || break
done
- LIBS="$am_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
case "$am_cv_func_iconv_works" in
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
else
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
dnl either.
- CPPFLAGS="$am_save_CPPFLAGS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
LIBICONV=
LTLIBICONV=
fi
-# iconv_open-utf.m4 serial 5
+# iconv_open-utf.m4 serial 6
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether iconv supports conversion between UTF-8 and UTF-{16,32}{BE,LE}],
[gl_cv_func_iconv_supports_utf],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
changequote([,])dnl
fi
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
fi
])
-# ilogb.m4 serial 9
+# ilogb.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MATHFUNC([ilogb], [int], [(double)])
if test $gl_cv_func_ilogb_no_libm = yes \
|| test $gl_cv_func_ilogb_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ILOGB_LIBM"
gl_FUNC_ILOGB_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_ilogb_works" in
*yes) ;;
*) REPLACE_ILOGB=1 ;;
-# ilogbf.m4 serial 7
+# ilogbf.m4 serial 8
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MATHFUNC([ilogbf], [int], [(float)])
if test $gl_cv_func_ilogbf_no_libm = yes \
|| test $gl_cv_func_ilogbf_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ILOGBF_LIBM"
gl_FUNC_ILOGBF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_ilogbf_works" in
*yes) ;;
*) REPLACE_ILOGBF=1 ;;
-# ilogbl.m4 serial 7
+# ilogbl.m4 serial 8
dnl Copyright (C) 2010-2024 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 Test whether ilogbl() exists. Assume that ilogbl(), if it exists, is
dnl defined in the same library as ilogb().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ILOGB_LIBM"
AC_CACHE_CHECK([for ilogbl],
[gl_cv_func_ilogbl],
[gl_cv_func_ilogbl=yes],
[gl_cv_func_ilogbl=no])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $gl_cv_func_ilogbl = yes; then
ILOGBL_LIBM="$ILOGB_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ILOGBL_LIBM"
gl_FUNC_ILOGBL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_ilogbl_works" in
*yes) ;;
*) REPLACE_ILOGBL=1 ;;
-# include_next.m4 serial 26
+# include_next.m4 serial 27
dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
#endif
#define DEFINED_IN_CONFTESTD2
EOF
- gl_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1b -Iconftestd2"
dnl We intentionally avoid using AC_LANG_SOURCE here.
AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include <conftest.h>]],
[gl_cv_have_include_next=yes],
- [CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
+ [CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1a -Iconftestd2"
AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include <conftest.h>]],
[gl_cv_have_include_next=buggy],
[gl_cv_have_include_next=no])
])
- CPPFLAGS="$gl_save_CPPFLAGS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
rm -rf conftestd1a conftestd1b conftestd2
])
PRAGMA_SYSTEM_HEADER=
-# inet_ntop.m4 serial 21
+# inet_ntop.m4 serial 22
dnl Copyright (C) 2005-2006, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
HAVE_DECL_INET_NTOP=0
fi
else
- gl_save_LIBS=$LIBS
+ gl_saved_LIBS=$LIBS
AC_SEARCH_LIBS([inet_ntop], [nsl resolv network], [],
[AC_CHECK_FUNCS([inet_ntop])
if test $ac_cv_func_inet_ntop = no; then
HAVE_INET_NTOP=0
fi
])
- LIBS=$gl_save_LIBS
+ LIBS=$gl_saved_LIBS
if test "$ac_cv_search_inet_ntop" != "no" \
&& test "$ac_cv_search_inet_ntop" != "none required"; then
-# inet_pton.m4 serial 19
+# inet_pton.m4 serial 20
dnl Copyright (C) 2006, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
HAVE_DECL_INET_PTON=0
fi
else
- gl_save_LIBS=$LIBS
+ gl_saved_LIBS=$LIBS
AC_SEARCH_LIBS([inet_pton], [nsl resolv network], [],
[AC_CHECK_FUNCS([inet_pton])
if test $ac_cv_func_inet_pton = no; then
HAVE_INET_PTON=0
fi
])
- LIBS=$gl_save_LIBS
+ LIBS=$gl_saved_LIBS
if test "$ac_cv_search_inet_pton" != "no" \
&& test "$ac_cv_search_inet_pton" != "none required"; then
-# intlmacosx.m4 serial 9 (gettext-0.22.3)
+# intlmacosx.m4 serial 10 (gettext-0.23)
dnl Copyright (C) 2004-2014, 2016, 2019-2024 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 Check for API introduced in Mac OS X 10.4.
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
[gt_cv_func_CFPreferencesCopyAppValue],
- [gt_save_LIBS="$LIBS"
+ [gt_saved_LIBS="$LIBS"
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[CFPreferencesCopyAppValue(NULL, NULL)]])],
[gt_cv_func_CFPreferencesCopyAppValue=yes],
[gt_cv_func_CFPreferencesCopyAppValue=no])
- LIBS="$gt_save_LIBS"])
+ LIBS="$gt_saved_LIBS"])
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
[Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
dnl CFPreferencesCopyAppValue still returns, namely ll_CC where ll is the
dnl first among the preferred languages and CC is the territory.
AC_CACHE_CHECK([for CFLocaleCopyPreferredLanguages], [gt_cv_func_CFLocaleCopyPreferredLanguages],
- [gt_save_LIBS="$LIBS"
+ [gt_saved_LIBS="$LIBS"
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[CFLocaleCopyPreferredLanguages();]])],
[gt_cv_func_CFLocaleCopyPreferredLanguages=yes],
[gt_cv_func_CFLocaleCopyPreferredLanguages=no])
- LIBS="$gt_save_LIBS"])
+ LIBS="$gt_saved_LIBS"])
if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1],
[Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.])
-# isnand.m4 serial 13
+# isnand.m4 serial 14
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether isnan(double) can be used with libm],
[gl_cv_func_isnand_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return isnand (x);]])],
[gl_cv_func_isnand_in_libm=yes],
[gl_cv_func_isnand_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
])
-# isnanf.m4 serial 20
+# isnanf.m4 serial 21
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
dnl The variable gl_func_isnanf set here is used by isnan.m4.
if test $gl_cv_func_isnanf_no_libm = yes || test -n "$ISNANF_LIBM"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ISNANF_LIBM"
gl_ISNANF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_isnanf_works" in
*yes) gl_func_isnanf=yes ;;
*) gl_func_isnanf=no; ISNANF_LIBM= ;;
AC_CACHE_CHECK([whether isnan(float) can be used with libm],
[gl_cv_func_isnanf_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return isnanf (x);]])],
[gl_cv_func_isnanf_in_libm=yes],
[gl_cv_func_isnanf_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
])
-# isnanl.m4 serial 24
+# isnanl.m4 serial 25
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
dnl The variable gl_func_isnanl set here is used by isnan.m4.
if test $gl_cv_func_isnanl_no_libm = yes || test -n "$ISNANL_LIBM"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ISNANL_LIBM"
gl_FUNC_ISNANL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_isnanl_works" in
*yes) gl_func_isnanl=yes ;;
*) gl_func_isnanl=no; ISNANL_LIBM= ;;
AC_CACHE_CHECK([whether isnan(long double) can be used with libm],
[gl_cv_func_isnanl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return isnanl (x);]])],
[gl_cv_func_isnanl_in_libm=yes],
[gl_cv_func_isnanl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
])
-# javaexec.m4 serial 10
+# javaexec.m4 serial 11
dnl Copyright (C) 2001-2003, 2006, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
popdef([AC_CHECKING])dnl
popdef([AC_MSG_CHECKING])dnl
m4_if([$1], , , [
- save_CLASSPATH="$CLASSPATH"
+ gt_saved_CLASSPATH="$CLASSPATH"
CLASSPATH="$2"${CLASSPATH+"$CLASSPATH_SEPARATOR$CLASSPATH"}
])
export CLASSPATH
fi
fi
m4_if([$1], , , [
- CLASSPATH="$save_CLASSPATH"
+ CLASSPATH="$gt_saved_CLASSPATH"
])
fi
if test -n "$HAVE_JAVAEXEC"; then
-# ld-version-script.m4 serial 6
+# ld-version-script.m4 serial 7
dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[AC_CACHE_CHECK([if LD -Wl,--version-script works],
[gl_cv_sys_ld_version_script],
[gl_cv_sys_ld_version_script=no
- save_LDFLAGS=$LDFLAGS
+ saved_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
echo foo >conftest.map
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[gl_cv_sys_ld_version_script=yes])])
rm -f conftest.map
- LDFLAGS=$save_LDFLAGS])
+ LDFLAGS=$saved_LDFLAGS])
have_ld_version_script=$gl_cv_sys_ld_version_script])
AM_CONDITIONAL([HAVE_LD_VERSION_SCRIPT],
[test "$have_ld_version_script" = yes])
-# ldexp.m4 serial 2
+# ldexp.m4 serial 3
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether ldexp() can be used with libm],
[gl_cv_func_ldexp_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[#ifndef __NO_MATH_INLINES
[[return ldexp (x, -1) > 0;]])],
[gl_cv_func_ldexp_in_libm=yes],
[gl_cv_func_ldexp_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_ldexp_in_libm = yes; then
LDEXP_LIBM=-lm
fi
fi
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LDEXP_LIBM"
gl_FUNC_LDEXP_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_ldexp_works" in
*yes) ;;
*) REPLACE_LDEXP=1 ;;
-# ldexpl.m4 serial 18
+# ldexpl.m4 serial 19
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether ldexpl() can be used with libm],
[gl_cv_func_ldexpl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return ldexpl (x, -1) > 0;]])],
[gl_cv_func_ldexpl_in_libm=yes],
[gl_cv_func_ldexpl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_ldexpl_in_libm = yes; then
LDEXPL_LIBM=-lm
fi
if test $gl_cv_func_ldexpl_no_libm = yes \
|| test $gl_cv_func_ldexpl_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LDEXPL_LIBM"
gl_FUNC_LDEXPL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_ldexpl_works" in
*yes) gl_func_ldexpl=yes ;;
*) gl_func_ldexpl=no; REPLACE_LDEXPL=1 ;;
-# lib-ld.m4 serial 12
+# lib-ld.m4 serial 13
dnl Copyright (C) 1996-2003, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
if test -n "$ac_prog"; then
# Search for $ac_prog in $PATH.
- acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ acl_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH; do
- IFS="$acl_save_ifs"
+ IFS="$acl_saved_IFS"
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
acl_cv_path_LD="$ac_dir/$ac_prog"
esac
fi
done
- IFS="$acl_save_ifs"
+ IFS="$acl_saved_IFS"
fi
case $host in
*-*-aix*)
-# lib-link.m4 serial 33
+# lib-link.m4 serial 34
dnl Copyright (C) 2001-2024 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 Add $INC[]NAME to CPPFLAGS before performing the following checks,
dnl because if the user has installed lib[]Name and not disabled its use
dnl via --without-lib[]Name-prefix, he wants to use it.
- ac_save_CPPFLAGS="$CPPFLAGS"
+ acl_saved_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
- ac_save_LIBS="$LIBS"
+ acl_saved_LIBS="$LIBS"
dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
dnl because these -l options might require -L options that are present in
dnl LIBS. -l options benefit only from the -L options listed before it.
[AC_LANG_PROGRAM([[$3]], [[$4]])],
[ac_cv_lib[]Name=yes],
[ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
- LIBS="$ac_save_LIBS"
+ LIBS="$acl_saved_LIBS"
])
if test "$ac_cv_lib[]Name" = yes; then
HAVE_LIB[]NAME=yes
HAVE_LIB[]NAME=no
dnl If $LIB[]NAME didn't lead to a usable library, we don't need
dnl $INC[]NAME either.
- CPPFLAGS="$ac_save_CPPFLAGS"
+ CPPFLAGS="$acl_saved_CPPFLAGS"
LIB[]NAME=
LTLIB[]NAME=
LIB[]NAME[]_PREFIX=
dnl Read the .la file. It defines the variables
dnl dlname, library_names, old_library, dependency_libs, current,
dnl age, revision, installed, dlopen, dlpreopen, libdir.
- save_libdir="$libdir"
+ saved_libdir="$libdir"
case "$found_la" in
*/* | *\\*) . "$found_la" ;;
*) . "./$found_la" ;;
esac
- libdir="$save_libdir"
+ libdir="$saved_libdir"
dnl We use only dependency_libs.
for dep in $dependency_libs; do
case "$dep" in
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
done
dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
- acl_save_libdir="$libdir"
+ acl_saved_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
- libdir="$acl_save_libdir"
+ libdir="$acl_saved_libdir"
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
else
dnl The -rpath options are cumulative.
for found_dir in $rpathdirs; do
- acl_save_libdir="$libdir"
+ acl_saved_libdir="$libdir"
libdir="$found_dir"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
- libdir="$acl_save_libdir"
+ libdir="$acl_saved_libdir"
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
done
fi
for dir in $rpathdirs; do
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
done
- acl_save_libdir="$libdir"
+ acl_saved_libdir="$libdir"
libdir="$alldirs"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
- libdir="$acl_save_libdir"
+ libdir="$acl_saved_libdir"
$1="$flag"
else
dnl The -rpath options are cumulative.
for dir in $rpathdirs; do
- acl_save_libdir="$libdir"
+ acl_saved_libdir="$libdir"
libdir="$dir"
eval flag=\"$acl_hardcode_libdir_flag_spec\"
- libdir="$acl_save_libdir"
+ libdir="$acl_saved_libdir"
$1="${$1}${$1:+ }$flag"
done
fi
-# lib-prefix.m4 serial 20
+# lib-prefix.m4 serial 21
dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
else
acl_final_exec_prefix="$exec_prefix"
fi
- acl_save_prefix="$prefix"
+ acl_saved_prefix="$prefix"
prefix="$acl_final_prefix"
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
- prefix="$acl_save_prefix"
+ prefix="$acl_saved_prefix"
])
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
dnl at the end of the configure script.
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
[
- acl_save_prefix="$prefix"
+ acl_saved_prefix="$prefix"
prefix="$acl_final_prefix"
- acl_save_exec_prefix="$exec_prefix"
+ acl_saved_exec_prefix="$exec_prefix"
exec_prefix="$acl_final_exec_prefix"
$1
- exec_prefix="$acl_save_exec_prefix"
- prefix="$acl_save_prefix"
+ exec_prefix="$acl_saved_exec_prefix"
+ prefix="$acl_saved_prefix"
])
dnl AC_LIB_PREPARE_MULTILIB creates
fi
fi
if test -n "$searchpath"; then
- acl_save_IFS="${IFS= }"; IFS=":"
+ acl_saved_IFS="${IFS= }"; IFS=":"
for searchdir in $searchpath; do
if test -d "$searchdir"; then
case "$searchdir" in
esac
fi
done
- IFS="$acl_save_IFS"
+ IFS="$acl_saved_IFS"
if test $HOST_CPU_C_ABI_32BIT = yes; then
# 32-bit ABI.
acl_libdirstem3=
-# libunistring.m4 serial 12
+# libunistring.m4 serial 13
dnl Copyright (C) 2009-2024 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 We have to erase the cached result of the first AC_LIB_HAVE_LINKFLAGS
dnl invocation, otherwise the second one will not be run.
unset ac_cv_libunistring
- glus_save_LIBS="$LIBS"
+ glus_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBICONV"
AC_LIB_HAVE_LINKFLAGS([unistring], [],
[#include <uniconv.h>], [u8_strconv_from_locale((char*)0);],
LIBUNISTRING="$LIBUNISTRING $LIBICONV"
LTLIBUNISTRING="$LTLIBUNISTRING $LTLIBICONV"
fi
- LIBS="$glus_save_LIBS"
+ LIBS="$glus_saved_LIBS"
fi
else
AC_LIB_HAVE_LINKFLAGS([unistring], [],
-# log.m4 serial 13
+# log.m4 serial 14
dnl Copyright (C) 2011-2024 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 Determine LOG_LIBM.
gl_COMMON_DOUBLE_MATHFUNC([log])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG_LIBM"
gl_FUNC_LOG_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log_works" in
*yes) ;;
*) REPLACE_LOG=1 ;;
AC_CACHE_CHECK([whether log works according to ISO C 99 with IEC 60559],
[gl_cv_func_log_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log_ieee" in
*yes) ;;
-# log10.m4 serial 13
+# log10.m4 serial 14
dnl Copyright (C) 2011-2024 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 Determine LOG10_LIBM.
gl_COMMON_DOUBLE_MATHFUNC([log10])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10_LIBM"
gl_FUNC_LOG10_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log10_works" in
*yes) ;;
*) REPLACE_LOG10=1 ;;
AC_CACHE_CHECK([whether log10 works according to ISO C 99 with IEC 60559],
[gl_cv_func_log10_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log10_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log10_ieee" in
*yes) ;;
-# log10f.m4 serial 14
+# log10f.m4 serial 15
dnl Copyright (C) 2011-2024 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 Test whether log10f() exists. Assume that log10f(), if it exists, is
dnl defined in the same library as log10().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10_LIBM"
AC_CHECK_FUNCS([log10f])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log10f = yes; then
LOG10F_LIBM="$LOG10_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10F_LIBM"
gl_FUNC_LOG10F_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log10f_works" in
*yes) ;;
*) REPLACE_LOG10F=1 ;;
AC_CACHE_CHECK([whether log10f works according to ISO C 99 with IEC 60559],
[gl_cv_func_log10f_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10F_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log10f_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log10f_ieee" in
*yes) ;;
-# log10l.m4 serial 12
+# log10l.m4 serial 13
dnl Copyright (C) 2011-2024 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 Test whether log10l() exists. Assume that log10l(), if it exists, is
dnl defined in the same library as log10().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10_LIBM"
AC_CHECK_FUNCS([log10l])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log10l = yes; then
LOG10L_LIBM="$LOG10_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG10L_LIBM"
gl_FUNC_LOG10L_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log10l_works" in
*yes) ;;
*) REPLACE_LOG10L=1 ;;
-# log1p.m4 serial 10
+# log1p.m4 serial 11
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_COMMON_DOUBLE_MATHFUNC([log1p])
dnl Test whether log1p() exists.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1P_LIBM"
AC_CHECK_FUNCS([log1p])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log1p = yes; then
:
m4_ifdef([gl_FUNC_LOG1P_IEEE], [
AC_CACHE_CHECK([whether log1p works according to ISO C 99 with IEC 60559],
[gl_cv_func_log1p_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1P_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log1p_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log1p_ieee" in
*yes) ;;
-# log1pf.m4 serial 10
+# log1pf.m4 serial 11
dnl Copyright (C) 2012-2024 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 Test whether log1pf() exists. Assume that log1pf(), if it exists, is
dnl defined in the same library as log1p().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1P_LIBM"
AC_CHECK_FUNCS([log1pf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log1pf = yes; then
LOG1PF_LIBM="$LOG1P_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1PF_LIBM"
gl_FUNC_LOG1PF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log1pf_works" in
*yes) ;;
*) REPLACE_LOG1PF=1 ;;
AC_CACHE_CHECK([whether log1pf works according to ISO C 99 with IEC 60559],
[gl_cv_func_log1pf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1PF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log1pf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log1pf_ieee" in
*yes) ;;
-# log1pl.m4 serial 11
+# log1pl.m4 serial 12
dnl Copyright (C) 2012-2024 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 Test whether log1pl() exists. Assume that log1pl(), if it exists, is
dnl defined in the same library as log1p().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1P_LIBM"
AC_CHECK_FUNCS([log1pl])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log1pl = yes; then
LOG1PL_LIBM="$LOG1P_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1PL_LIBM"
gl_FUNC_LOG1PL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log1pl_works" in
*yes) ;;
*) REPLACE_LOG1PL=1 ;;
AC_CACHE_CHECK([whether log1pl works according to ISO C 99 with IEC 60559],
[gl_cv_func_log1pl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG1PL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log1pl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log1pl_ieee" in
*yes) ;;
-# log2.m4 serial 14
+# log2.m4 serial 15
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_COMMON_DOUBLE_MATHFUNC([log2])
dnl Test whether log2() exists.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2_LIBM"
gl_CHECK_FUNCS_ANDROID([log2], [[#include <math.h>]])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log2 = yes; then
HAVE_LOG2=1
dnl Also check whether it's declared.
dnl IRIX 6.5 has log2() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECL([log2], , [HAVE_DECL_LOG2=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2_LIBM"
gl_FUNC_LOG2_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log2_works" in
*yes) ;;
*) REPLACE_LOG2=1 ;;
AC_CACHE_CHECK([whether log2 works according to ISO C 99 with IEC 60559],
[gl_cv_func_log2_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log2_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log2_ieee" in
*yes) ;;
-# log2f.m4 serial 14
+# log2f.m4 serial 15
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_COMMON_DOUBLE_MATHFUNC([log2f])
dnl Test whether log2f() exists.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2F_LIBM"
gl_CHECK_FUNCS_ANDROID([log2f], [[#include <math.h>]])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log2f = yes; then
HAVE_LOG2F=1
dnl Also check whether it's declared.
dnl IRIX 6.5 has log2f() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECL([log2f], , [HAVE_DECL_LOG2F=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2F_LIBM"
gl_FUNC_LOG2F_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log2f_works" in
*yes) ;;
*) REPLACE_LOG2F=1 ;;
AC_CACHE_CHECK([whether log2f works according to ISO C 99 with IEC 60559],
[gl_cv_func_log2f_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2F_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_log2f_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_log2f_ieee" in
*yes) ;;
-# log2l.m4 serial 7
+# log2l.m4 serial 8
dnl Copyright (C) 2010-2024 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 Test whether log2l() exists. Assume that log2l(), if it exists, is
dnl defined in the same library as log2().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2_LIBM"
gl_CHECK_FUNCS_ANDROID([log2l], [[#include <math.h>]])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_log2l = yes; then
LOG2L_LIBM="$LOG2_LIBM"
HAVE_LOG2L=1
dnl IRIX 6.5 has log2l() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECL([log2l], , [HAVE_DECL_LOG2L=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG2L_LIBM"
gl_FUNC_LOG2L_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_log2l_works" in
*yes) ;;
*) REPLACE_LOG2L=1 ;;
-# logb.m4 serial 10
+# logb.m4 serial 11
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[x = logb(x);]])],
[LOGB_LIBM=])
if test "$LOGB_LIBM" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
double x;]],
[[x = logb(x);]])],
[LOGB_LIBM="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
if test "$LOGB_LIBM" != "?"; then
HAVE_LOGB=1
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOGB_LIBM"
gl_FUNC_LOGB_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_logb_works" in
*yes) ;;
*) REPLACE_LOGB=1 ;;
-# logbf.m4 serial 5
+# logbf.m4 serial 6
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MATHFUNC([logbf], [float], [(float)])
if test $gl_cv_func_logbf_no_libm = yes \
|| test $gl_cv_func_logbf_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOGBF_LIBM"
gl_FUNC_LOGBF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_logbf_works" in
*yes) ;;
*) REPLACE_LOGBF=1 ;;
-# logbl.m4 serial 7
+# logbl.m4 serial 8
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MATHFUNC([logbl], [long double], [(long double)])
if test $gl_cv_func_logbl_no_libm = yes \
|| test $gl_cv_func_logbl_in_libm = yes; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOGBL_LIBM"
gl_FUNC_LOGBL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_logbl_works" in
*yes) ;;
*) REPLACE_LOGBL=1 ;;
-# logf.m4 serial 14
+# logf.m4 serial 15
dnl Copyright (C) 2011-2024 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 Test whether logf() exists. Assume that logf(), if it exists, is
dnl defined in the same library as log().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOG_LIBM"
AC_CHECK_FUNCS([logf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_logf = yes; then
LOGF_LIBM="$LOG_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOGF_LIBM"
gl_FUNC_LOGF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_logf_works" in
*yes) ;;
*) REPLACE_LOGF=1 ;;
AC_CACHE_CHECK([whether logf works according to ISO C 99 with IEC 60559],
[gl_cv_func_logf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOGF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_logf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_logf_ieee" in
*yes) ;;
-# logl.m4 serial 17
+# logl.m4 serial 18
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether logl() can be used with libm],
[gl_cv_func_logl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| logl (x) > 1;]])],
[gl_cv_func_logl_in_libm=yes],
[gl_cv_func_logl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_logl_in_libm = yes; then
LOGL_LIBM=-lm
dnl Also check whether it's declared.
dnl Mac OS X 10.3 has logl() in libc but doesn't declare it in <math.h>.
AC_CHECK_DECL([logl], , [HAVE_DECL_LOGL=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $LOGL_LIBM"
gl_FUNC_LOGL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_logl_works" in
*yes) ;;
*) REPLACE_LOGL=1 ;;
-# manywarnings-c++.m4 serial 3
+# manywarnings-c++.m4 serial 4
dnl Copyright (C) 2008-2024 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 the current $CXX $CXXFLAGS $CPPFLAGS.
AC_CACHE_CHECK([whether -Wno-missing-field-initializers is supported],
[gl_cv_cxx_nomfi_supported],
- [gl_save_CXXFLAGS="$CXXFLAGS"
+ [gl_saved_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -W -Werror -Wno-missing-field-initializers"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[]], [[]])],
[gl_cv_cxx_nomfi_supported=yes],
[gl_cv_cxx_nomfi_supported=no])
- CXXFLAGS="$gl_save_CXXFLAGS"
+ CXXFLAGS="$gl_saved_CXXFLAGS"
])
if test "$gl_cv_cxx_nomfi_supported" = yes; then
dnl for the { 0, } construct.
AC_CACHE_CHECK([whether -Wno-missing-field-initializers is needed],
[gl_cv_cxx_nomfi_needed],
- [gl_save_CXXFLAGS="$CXXFLAGS"
+ [gl_saved_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -W -Werror"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[]])],
[gl_cv_cxx_nomfi_needed=no],
[gl_cv_cxx_nomfi_needed=yes])
- CXXFLAGS="$gl_save_CXXFLAGS"
+ CXXFLAGS="$gl_saved_CXXFLAGS"
])
fi
dnl has no effect if -O is not also used
AC_CACHE_CHECK([whether -Wuninitialized is supported],
[gl_cv_cxx_uninitialized_supported],
- [gl_save_CXXFLAGS="$CXXFLAGS"
+ [gl_saved_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -Werror -Wuninitialized"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[]], [[]])],
[gl_cv_cxx_uninitialized_supported=yes],
[gl_cv_cxx_uninitialized_supported=no])
- CXXFLAGS="$gl_save_CXXFLAGS"
+ CXXFLAGS="$gl_saved_CXXFLAGS"
])
fi
-# manywarnings.m4 serial 24
+# manywarnings.m4 serial 25
dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether -Wno-missing-field-initializers is needed],
[gl_cv_cc_nomfi_needed],
[gl_cv_cc_nomfi_needed=no
- gl_save_CFLAGS="$CFLAGS"
+ gl_saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wextra -Werror"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[CFLAGS="$CFLAGS -Wno-missing-field-initializers"
AC_COMPILE_IFELSE([],
[gl_cv_cc_nomfi_needed=yes])])
- CFLAGS="$gl_save_CFLAGS"
+ CFLAGS="$gl_saved_CFLAGS"
])
dnl Next, check if -Werror -Wuninitialized is useful with the
dnl has no effect if -O is not also used
AC_CACHE_CHECK([whether -Wuninitialized is supported],
[gl_cv_cc_uninitialized_supported],
- [gl_save_CFLAGS="$CFLAGS"
+ [gl_saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror -Wuninitialized"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[]], [[]])],
[gl_cv_cc_uninitialized_supported=yes],
[gl_cv_cc_uninitialized_supported=no])
- CFLAGS="$gl_save_CFLAGS"
+ CFLAGS="$gl_saved_CFLAGS"
])
])
-# mathfunc.m4 serial 17
+# mathfunc.m4 serial 18
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether func() can be used with libm],
[gl_cv_func_]func[_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]])],
[gl_cv_func_]func[_in_libm=yes],
[gl_cv_func_]func[_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_[]func[]_in_libm = yes; then
FUNC[]_LIBM=-lm
-# modf.m4 serial 12
+# modf.m4 serial 13
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether modf works according to ISO C 99 with IEC 60559],
[gl_cv_func_modf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $MODF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_modf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_modf_ieee" in
*yes) ;;
-# modff.m4 serial 14
+# modff.m4 serial 15
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether modff works according to ISO C 99 with IEC 60559],
[gl_cv_func_modff_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $MODFF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_modff_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_modff_ieee" in
*yes) ;;
-# modfl.m4 serial 11
+# modfl.m4 serial 12
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether modfl works according to ISO C 99 with IEC 60559],
[gl_cv_func_modfl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $MODFL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_modfl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_modfl_ieee" in
*yes) ;;
-# serial 45
+# serial 46
dnl From Jim Meyering.
dnl Check for the nanosleep function.
AC_CHECK_DECLS_ONCE([alarm])
- nanosleep_save_libs=$LIBS
+ gl_saved_LIBS=$LIBS
# Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
# Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
else
HAVE_NANOSLEEP=0
fi
- LIBS=$nanosleep_save_libs
+ LIBS=$gl_saved_LIBS
# For backward compatibility.
LIB_NANOSLEEP="$NANOSLEEP_LIB"
-# powf.m4 serial 2
+# powf.m4 serial 3
dnl Copyright (C) 2011-2024 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 Test whether powf() exists. Assume that powf(), if it exists, is
dnl defined in the same library as pow().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $POW_LIBM"
AC_CHECK_FUNCS([powf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_powf = yes; then
POWF_LIBM="$POW_LIBM"
else
-# pread.m4 serial 8
+# pread.m4 serial 9
dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*) gl_cv_func_pread_works="guessing yes" ;;
esac
changequote([,])dnl
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM([[
[gl_cv_func_pread_works=yes],
[gl_cv_func_pread_works=no],
[:])
- CPPFLAGS="$gl_save_CPPFLAGS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
])
case "$gl_cv_func_pread_works" in
*yes) ;;
-# progtest.m4 serial 9 (gettext-0.21.1)
+# progtest.m4 serial 10 (gettext-0.23)
dnl Copyright (C) 1996-2003, 2005, 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
*)
- ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
+ gt_saved_IFS="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in m4_if([$5], , $PATH, [$5]); do
- IFS="$ac_save_IFS"
+ IFS="$gt_saved_IFS"
test -z "$ac_dir" && ac_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
fi
done
done
- IFS="$ac_save_IFS"
+ IFS="$gt_saved_IFS"
dnl If no 4th arg is given, leave the cache variable unset,
dnl so AC_PATH_PROGS will keep looking.
m4_if([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
-# pthread-spin.m4 serial 4
+# pthread-spin.m4 serial 5
dnl Copyright (C) 2019-2024 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 FreeBSD 5.2.1 declares them but does not define them.
AC_CACHE_CHECK([for pthread_spin_init],
[gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD],
- [gl_save_LIBS="$LIBS"
+ [gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBMULTITHREAD"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
],
[gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD=yes],
[gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD=no])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_func_pthread_spin_init_in_LIBMULTITHREAD != yes; then
HAVE_PTHREAD_SPIN_INIT=0
-# pthread_mutex_timedlock.m4 serial 3
+# pthread_mutex_timedlock.m4 serial 4
dnl Copyright (C) 2019-2024 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 FreeBSD 5.2.1 declares it but does not define it.
AC_CACHE_CHECK([for pthread_mutex_timedlock],
[gl_cv_func_pthread_mutex_timedlock_in_LIBMULTITHREAD],
- [gl_save_LIBS="$LIBS"
+ [gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBMULTITHREAD"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
],
[gl_cv_func_pthread_mutex_timedlock_in_LIBMULTITHREAD=yes],
[gl_cv_func_pthread_mutex_timedlock_in_LIBMULTITHREAD=no])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_func_pthread_mutex_timedlock_in_LIBMULTITHREAD != yes; then
HAVE_PTHREAD_MUTEX_TIMEDLOCK=0
-# pthread_rwlock_rdlock.m4 serial 7
+# pthread_rwlock_rdlock.m4 serial 8
dnl Copyright (C) 2017-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([whether pthread_rwlock_rdlock prefers a writer to a reader],
[gl_cv_pthread_rwlock_rdlock_prefer_writer],
- [save_LIBS="$LIBS"
+ [saved_LIBS="$LIBS"
LIBS="$LIBS $LIBMULTITHREAD"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
*yes)
-# pthread_sigmask.m4 serial 22
+# pthread_sigmask.m4 serial 23
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if test -n "$LIBMULTITHREAD"; then
AC_CACHE_CHECK([for pthread_sigmask in $LIBMULTITHREAD],
[gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD],
- [gl_save_LIBS="$LIBS"
+ [gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBMULTITHREAD"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
],
[gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes],
[gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
dnl pthread_sigmask is available with -pthread or -lpthread.
AC_CACHE_CHECK([whether pthread_sigmask returns error numbers],
[gl_cv_func_pthread_sigmask_return_works],
[
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $PTHREAD_SIGMASK_LIB"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
gl_cv_func_pthread_sigmask_return_works="guessing yes";;
esac
])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
case "$gl_cv_func_pthread_sigmask_return_works" in
*no)
[dnl Link against $LIBMULTITHREAD, not only $PTHREAD_SIGMASK_LIB.
dnl Otherwise we get a false positive on those platforms where
dnl $gl_cv_func_pthread_sigmask_in_libc_works is "no".
- gl_save_LIBS=$LIBS
+ gl_saved_LIBS=$LIBS
LIBS="$LIBS $LIBMULTITHREAD"])
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
[:],
[gl_cv_func_pthread_sigmask_unblock_works=no],
[:])
- m4_ifdef([gl_][THREADLIB], [LIBS=$gl_save_LIBS])
+ m4_ifdef([gl_][THREADLIB], [LIBS=$gl_saved_LIBS])
])
case "$gl_cv_func_pthread_sigmask_unblock_works" in
*no)
-# pty.m4 serial 19
+# pty.m4 serial 20
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
case "$host_os" in
haiku*) PTY_LIB='-lbsd' ;;
*)
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
AC_SEARCH_LIBS([forkpty], [util],
[if test "$ac_cv_search_forkpty" != "none required"; then
PTY_LIB="$ac_cv_search_forkpty"
fi
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
;;
esac
AC_SUBST([PTY_LIB])
-# pwrite.m4 serial 8
+# pwrite.m4 serial 9
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
*) gl_cv_func_pwrite_works="guessing yes" ;;
esac
changequote([,])dnl
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
rm -f conftest.out
AC_RUN_IFELSE(
[gl_cv_func_pwrite_works=no],
[:])
rm -f conftest.out
- CPPFLAGS="$gl_save_CPPFLAGS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
])
case "$gl_cv_func_pwrite_works" in
*yes) ;;
-# readline.m4 serial 10
+# readline.m4 serial 11
dnl Copyright (C) 2005-2006, 2009-2024 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 because if the user has installed libreadline and not disabled its use
dnl via --without-libreadline-prefix, he wants to use it. The AC_LINK_IFELSE
dnl will then succeed.
- am_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCREADLINE])
AC_CACHE_CHECK([for readline], [gl_cv_lib_readline], [
gl_cv_lib_readline=no
- am_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
dnl On some systems, -lreadline doesn't link without an additional
dnl -lncurses or -ltermcap.
dnl Try -lncurses before -ltermcap, because libtermcap is insecure
dnl by design and obsolete since 1994. Try -lcurses last, because
dnl libcurses is unusable on some old Unices.
for extra_lib in "" ncurses termcap curses; do
- LIBS="$am_save_LIBS $LIBREADLINE"
+ LIBS="$gl_saved_LIBS $LIBREADLINE"
if test -n "$extra_lib"; then
LIBS="$LIBS -l$extra_lib"
fi
break
fi
done
- LIBS="$am_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test "$gl_cv_lib_readline" != no; then
else
dnl If $LIBREADLINE didn't lead to a usable library, we don't
dnl need $INCREADLINE either.
- CPPFLAGS="$am_save_CPPFLAGS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
LIBREADLINE=
LTLIBREADLINE=
fi
-# readutmp.m4 serial 30
+# readutmp.m4 serial 31
dnl Copyright (C) 2002-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
if test $ac_cv_header_systemd_sd_login_h = yes; then
AC_CACHE_CHECK([for libsystemd version >= 254],
[gl_cv_lib_readutmp_systemd],
- [gl_save_LIBS="$LIBS"
+ [gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lsystemd"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
],
[gl_cv_lib_readutmp_systemd=yes],
[gl_cv_lib_readutmp_systemd=no])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_lib_readutmp_systemd = yes; then
AC_DEFINE([READUTMP_USE_SYSTEMD], [1],
-# remainder.m4 serial 11
+# remainder.m4 serial 12
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether remainder() can be used with libm],
[gl_cv_func_remainder_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return remainder (x, y) > 1;]])],
[gl_cv_func_remainder_in_libm=yes],
[gl_cv_func_remainder_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_remainder_in_libm = yes; then
REMAINDER_LIBM=-lm
AC_CACHE_CHECK([whether remainder works according to ISO C 99 with IEC 60559],
[gl_cv_func_remainder_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDER_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_remainder_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_remainder_ieee" in
*yes) ;;
-# remainderf.m4 serial 15
+# remainderf.m4 serial 16
dnl Copyright (C) 2012-2024 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 Test whether remainderf() exists. Assume that remainderf(), if it exists, is
dnl defined in the same library as remainder().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDER_LIBM"
AC_CACHE_CHECK([for remainderf],
[gl_cv_func_remainderf],
[gl_cv_func_remainderf=yes],
[gl_cv_func_remainderf=no])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $gl_cv_func_remainderf = yes; then
REMAINDERF_LIBM="$REMAINDER_LIBM"
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDERF_LIBM"
gl_FUNC_REMAINDERF_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_remainderf_works" in
*yes) ;;
*) REPLACE_REMAINDERF=1 ;;
AC_CACHE_CHECK([whether remainderf works according to ISO C 99 with IEC 60559],
[gl_cv_func_remainderf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDERF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_remainderf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_remainderf_ieee" in
*yes) ;;
-# remainderl.m4 serial 15
+# remainderl.m4 serial 16
dnl Copyright (C) 2012-2024 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 Test whether remainderl() exists. Assume that remainderl(), if it exists, is
dnl defined in the same library as remainder().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDER_LIBM"
AC_CACHE_CHECK([for remainderl],
[gl_cv_func_remainderl],
[gl_cv_func_remainderl=yes],
[gl_cv_func_remainderl=no])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $gl_cv_func_remainderl = yes; then
HAVE_REMAINDERL=1
REMAINDERL_LIBM="$REMAINDER_LIBM"
dnl IRIX 6.5 has remainderl() in libm but doesn't declare it in <math.h>.
AC_CHECK_DECLS([remainderl], , [HAVE_DECL_REMAINDERL=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDERL_LIBM"
gl_FUNC_REMAINDERL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_remainderl_works" in
*yes) ;;
*) REPLACE_REMAINDERL=1 ;;
AC_CACHE_CHECK([whether remainderl works according to ISO C 99 with IEC 60559],
[gl_cv_func_remainderl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $REMAINDERL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_remainderl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_remainderl_ieee" in
*yes) ;;
-# rintl.m4 serial 10
+# rintl.m4 serial 11
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether rintl works],
[gl_cv_func_rintl_works],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $RINTL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_rintl_works="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_rintl_works" in
*yes) ;;
-# round.m4 serial 26
+# round.m4 serial 27
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([whether round works], [gl_cv_func_round_works],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ROUND_LIBM"
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <float.h>
*) gl_cv_func_round_works="guessing yes" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_round_works" in
*no) REPLACE_ROUND=1 ;;
AC_CACHE_CHECK([whether round works according to ISO C 99 with IEC 60559],
[gl_cv_func_round_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ROUND_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_round_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_round_ieee" in
*yes) ;;
-# roundf.m4 serial 27
+# roundf.m4 serial 28
dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
AC_CACHE_CHECK([whether roundf works], [gl_cv_func_roundf_works],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ROUNDF_LIBM"
AC_RUN_IFELSE([AC_LANG_SOURCE([[
#include <float.h>
;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_roundf_works" in
*no) REPLACE_ROUNDF=1 ;;
AC_CACHE_CHECK([whether roundf works according to ISO C 99 with IEC 60559],
[gl_cv_func_roundf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ROUNDF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_roundf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_roundf_ieee" in
*yes) ;;
-# roundl.m4 serial 22
+# roundl.m4 serial 23
dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether roundl works according to ISO C 99 with IEC 60559],
[gl_cv_func_roundl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $ROUNDL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_roundl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_roundl_ieee" in
*yes) ;;
-# serial 7 -*- Autoconf -*-
+# serial 8 -*- Autoconf -*-
# Copyright (C) 2006-2007, 2009-2024 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
LIB_SELINUX=
if test "$with_selinux" != no; then
- gl_save_LIBS=$LIBS
+ gl_saved_LIBS=$LIBS
AC_SEARCH_LIBS([setfilecon], [selinux],
[test "$ac_cv_search_setfilecon" = "none required" ||
LIB_SELINUX=$ac_cv_search_setfilecon])
- LIBS=$gl_save_LIBS
+ LIBS=$gl_saved_LIBS
fi
AC_SUBST([LIB_SELINUX])
-# semaphore.m4 serial 1
+# semaphore.m4 serial 2
dnl Copyright (C) 2019-2024 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 $LIBMULTITHREAD. Therefore, the only library we need to test for is -lrt.
AC_CACHE_CHECK([for library needed for semaphore functions],
[gl_cv_semaphore_lib],
- [save_LIBS="$LIBS"
+ [saved_LIBS="$LIBS"
LIBS="$LIBS $LIBMULTITHREAD"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[gl_cv_semaphore_lib='-lrt'],
[gl_cv_semaphore_lib=none])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test "x$gl_cv_semaphore_lib" = xnone; then
LIB_SEMAPHORE=
-# servent.m4 serial 4
+# servent.m4 serial 5
dnl Copyright (C) 2008, 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([for getservbyname in winsock2.h and -lws2_32],
[gl_cv_w32_getservbyname],
[gl_cv_w32_getservbyname=no
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lws2_32"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[getservbyname(NULL,NULL);]])],
[gl_cv_w32_getservbyname=yes])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test "$gl_cv_w32_getservbyname" = "yes"; then
SERVENT_LIB="-lws2_32"
-# sinf.m4 serial 3
+# sinf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether sinf() exists. Assume that sinf(), if it exists, is
dnl defined in the same library as sin().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $SIN_LIBM"
AC_CHECK_FUNCS([sinf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_sinf = yes; then
SINF_LIBM="$SIN_LIBM"
else
-# sinhf.m4 serial 3
+# sinhf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether sinhf() exists. Assume that sinhf(), if it exists, is
dnl defined in the same library as sinh().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $SINH_LIBM"
AC_CHECK_FUNCS([sinhf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_sinhf = yes; then
SINHF_LIBM="$SINH_LIBM"
else
-# sinl.m4 serial 9
+# sinl.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether sinl() can be used with libm],
[gl_cv_func_sinl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| sinl (x) > 0.4;]])],
[gl_cv_func_sinl_in_libm=yes],
[gl_cv_func_sinl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_sinl_in_libm = yes; then
SINL_LIBM=-lm
-# socketlib.m4 serial 3
+# socketlib.m4 serial 4
dnl Copyright (C) 2008-2024 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 defined through -lws2_32), we need to call it.
AC_CACHE_CHECK([for WSAStartup],
[gl_cv_func_wsastartup], [
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS -lws2_32"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
],
[gl_cv_func_wsastartup=yes],
[gl_cv_func_wsastartup=no])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test "$gl_cv_func_wsastartup" = "yes"; then
AC_DEFINE([WINDOWS_SOCKETS], [1], [Define if WSAStartup is needed.])
#endif
char setsockopt();]], [[setsockopt();]])],
[],
- [gl_save_LIBS="$LIBS"
- LIBS="$gl_save_LIBS -lsocket"
+ [gl_saved_LIBS="$LIBS"
+ LIBS="$gl_saved_LIBS -lsocket"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern
#ifdef __cplusplus
"C"
char setsockopt();]], [[setsockopt();]])],
[gl_cv_lib_socket="-lsocket"])
if test -z "$gl_cv_lib_socket"; then
- LIBS="$gl_save_LIBS -lnetwork"
+ LIBS="$gl_saved_LIBS -lnetwork"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern
#ifdef __cplusplus
"C"
char setsockopt();]], [[setsockopt();]])],
[gl_cv_lib_socket="-lnetwork"])
if test -z "$gl_cv_lib_socket"; then
- LIBS="$gl_save_LIBS -lnet"
+ LIBS="$gl_saved_LIBS -lnet"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern
#ifdef __cplusplus
"C"
[gl_cv_lib_socket="-lnet"])
fi
fi
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
])
if test -z "$gl_cv_lib_socket"; then
gl_cv_lib_socket="none needed"
-# sqrtf.m4 serial 3
+# sqrtf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether sqrtf() exists. Assume that sqrtf(), if it exists, is
dnl defined in the same library as sqrt().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $SQRT_LIBM"
AC_CHECK_FUNCS([sqrtf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_sqrtf = yes; then
SQRTF_LIBM="$SQRT_LIBM"
else
-# sqrtl.m4 serial 12
+# sqrtl.m4 serial 13
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether sqrtl() can be used with libm],
[gl_cv_func_sqrtl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| sqrtl (x) > 0.4;]])],
[gl_cv_func_sqrtl_in_libm=yes],
[gl_cv_func_sqrtl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_sqrtl_in_libm = yes; then
SQRTL_LIBM=-lm
dnl Mac OS X 10.3 has sqrtl() in libc but doesn't declare it in <math.h>.
AC_CHECK_DECL([sqrtl], , [HAVE_DECL_SQRTL=0], [[#include <math.h>]])
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $SQRTL_LIBM"
gl_FUNC_SQRTL_WORKS
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_sqrtl_works" in
*yes) ;;
*) REPLACE_SQRTL=1 ;;
[
AC_CACHE_CHECK([for alignas and alignof],
[gl_cv_header_working_stdalign_h],
- [gl_save_CFLAGS=$CFLAGS
+ [gl_saved_CFLAGS=$CFLAGS
for gl_working in "yes, keywords" "yes, <stdalign.h> macros"; do
AS_CASE([$gl_working],
- [*stdalign.h*], [CFLAGS="$gl_save_CFLAGS -DINCLUDE_STDALIGN_H"])
+ [*stdalign.h*], [CFLAGS="$gl_saved_CFLAGS -DINCLUDE_STDALIGN_H"])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[#include <stdint.h>
[gl_cv_header_working_stdalign_h=$gl_working],
[gl_cv_header_working_stdalign_h=no])
- CFLAGS=$gl_save_CFLAGS
+ CFLAGS=$gl_saved_CFLAGS
test "$gl_cv_header_working_stdalign_h" != no && break
done])
-# tanf.m4 serial 3
+# tanf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether tanf() exists. Assume that tanf(), if it exists, is
dnl defined in the same library as tan().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $TAN_LIBM"
AC_CHECK_FUNCS([tanf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_tanf = yes; then
TANF_LIBM="$TAN_LIBM"
else
-# tanhf.m4 serial 3
+# tanhf.m4 serial 4
dnl Copyright (C) 2011-2024 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 Test whether tanhf() exists. Assume that tanhf(), if it exists, is
dnl defined in the same library as tanh().
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $TANH_LIBM"
AC_CHECK_FUNCS([tanhf])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
if test $ac_cv_func_tanhf = yes; then
TANHF_LIBM="$TANH_LIBM"
else
-# tanl.m4 serial 9
+# tanl.m4 serial 10
dnl Copyright (C) 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_CACHE_CHECK([whether tanl() can be used with libm],
[gl_cv_func_tanl_in_libm],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
|| tanl (x) > 0.4;]])],
[gl_cv_func_tanl_in_libm=yes],
[gl_cv_func_tanl_in_libm=no])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
if test $gl_cv_func_tanl_in_libm = yes; then
TANL_LIBM=-lm
-# termcap.m4 serial 11
+# termcap.m4 serial 12
dnl Copyright (C) 2000-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libc])
if test "$gl_cv_termcap" != libc; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBNCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libncurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_termcap" != libncurses; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libtermcap])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_termcap" != libtermcap; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBXCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libxcurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_termcap" != libxcurses; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libcurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
fi
fi
fi
dnl Test whether the terminfo functions are available from the same library.
AC_CACHE_CHECK([for terminfo functions], [gl_cv_func_terminfo], [
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMCAP"
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return setupterm ("xterm", 0, (int *)0)
+ tigetnum ("colors") + tigetflag ("hc") + * tigetstr ("oc");]])],
[gl_cv_func_terminfo=yes], [gl_cv_func_terminfo=no])
- CPPFLAGS="$gl_save_CPPFLAGS"
- LIBS="$gl_save_LIBS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_func_terminfo = yes; then
AC_DEFINE([HAVE_TERMINFO], 1,
dnl Test against the old GNU termcap, which provides a tparam() function
dnl instead of the classical tparm() function.
AC_CACHE_CHECK([for tparam], [gl_cv_termcap_tparam], [
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMCAP"
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return ! tparam ("\033\133%dm", &buf, 1, 8);]])],
[gl_cv_termcap_tparam=yes], [gl_cv_termcap_tparam=no])
- CPPFLAGS="$gl_save_CPPFLAGS"
- LIBS="$gl_save_LIBS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_termcap_tparam = yes; then
AC_DEFINE([HAVE_TPARAM], 1,
dnl Test whether a tparm() function is provided. It is missing e.g.
dnl in NetBSD 3.0 libtermcap.
AC_CACHE_CHECK([for tparm], [gl_cv_termcap_tparm], [
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMCAP"
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return ! tparm ("\033\133%dm", 8);]])],
[gl_cv_termcap_tparm=yes], [gl_cv_termcap_tparm=no])
- CPPFLAGS="$gl_save_CPPFLAGS"
- LIBS="$gl_save_LIBS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
+ LIBS="$gl_saved_LIBS"
])
fi
])
-# terminfo.m4 serial 6
+# terminfo.m4 serial 7
dnl Copyright (C) 2000-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_LIB_RPATH])
dnl Avoid disturbing the gl_TERMCAP_BODY macro.
- gl_save_LIBTERMCAP="$LIBTERMCAP"
- gl_save_LTLIBTERMCAP="$LTLIBTERMCAP"
- gl_save_INCTERMCAP="$INCTERMCAP"
+ gl_saved_LIBTERMCAP="$LIBTERMCAP"
+ gl_saved_LTLIBTERMCAP="$LTLIBTERMCAP"
+ gl_saved_INCTERMCAP="$INCTERMCAP"
if test "$gl_curses_allowed" != no; then
+ tigetflag ("hc") + * tigetstr ("oc");]])],
[gl_cv_terminfo=libc])
if test "$gl_cv_terminfo" != libc; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBNCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
+ tigetnum ("colors")
+ tigetflag ("hc") + * tigetstr ("oc");]])],
[gl_cv_terminfo=libncurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_terminfo" != libncurses; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
+ tigetnum ("colors")
+ tigetflag ("hc") + * tigetstr ("oc");]])],
[gl_cv_terminfo=libtermcap])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_terminfo" != libtermcap; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBXCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
+ tigetnum ("colors")
+ tigetflag ("hc") + * tigetstr ("oc");]])],
[gl_cv_terminfo=libxcurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_terminfo" != libxcurses; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
+ tigetnum ("colors")
+ tigetflag ("hc") + * tigetstr ("oc");]])],
[gl_cv_terminfo=libcurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
fi
fi
fi
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libc])
if test "$gl_cv_termcap" != libc; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBNCURSES"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libncurses])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
if test "$gl_cv_termcap" != libncurses; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMCAP"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return tgetent ((char *) 0, "xterm");]])],
[gl_cv_termcap=libtermcap])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
fi
fi
])
dnl Test against the old GNU termcap, which provides a tparam() function
dnl instead of the classical tparm() function.
AC_CACHE_CHECK([for tparam], [gl_cv_terminfo_tparam], [
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMINFO"
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCTERMINFO"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[return ! tparam ("\033\133%dm", &buf, 1, 8);]])],
[gl_cv_terminfo_tparam=yes],
[gl_cv_terminfo_tparam=no])
- CPPFLAGS="$gl_save_CPPFLAGS"
- LIBS="$gl_save_LIBS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
+ LIBS="$gl_saved_LIBS"
])
if test $gl_cv_terminfo_tparam = yes; then
AC_DEFINE([HAVE_TPARAM], 1,
dnl Test whether a tparm() function is provided. It is missing e.g.
dnl in NetBSD 3.0 libtermcap.
AC_CACHE_CHECK([for tparm], [gl_cv_terminfo_tparm], [
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBTERMINFO"
- gl_save_CPPFLAGS="$CPPFLAGS"
+ gl_saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCTERMINFO"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
]],
[[return ! tparm ("\033\133%dm", 8);]])],
[gl_cv_terminfo_tparm=yes], [gl_cv_terminfo_tparm=no])
- CPPFLAGS="$gl_save_CPPFLAGS"
- LIBS="$gl_save_LIBS"
+ CPPFLAGS="$gl_saved_CPPFLAGS"
+ LIBS="$gl_saved_LIBS"
])
fi
dnl Avoid disturbing the gl_TERMCAP_BODY macro.
- LIBTERMCAP="$gl_save_LIBTERMCAP"
- LTLIBTERMCAP="$gl_save_LTLIBTERMCAP"
- INCTERMCAP="$gl_save_INCTERMCAP"
+ LIBTERMCAP="$gl_saved_LIBTERMCAP"
+ LTLIBTERMCAP="$gl_saved_LTLIBTERMCAP"
+ INCTERMCAP="$gl_saved_INCTERMCAP"
])
-# thrd.m4 serial 4
+# thrd.m4 serial 5
dnl Copyright (C) 2019-2024 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 On Solaris 11.4, thrd_join crashes when the second argument is NULL.
AC_CACHE_CHECK([whether thrd_join with NULL argument works],
[gl_cv_func_thrd_join_null_works],
- [save_LIBS="$LIBS"
+ [saved_LIBS="$LIBS"
LIBS="$LIBS $LIBSTDTHREAD"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
*) gl_cv_func_thrd_join_null_works="guessing yes" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_thrd_join_null_works" in
*yes) ;;
-# thread.m4 serial 4
+# thread.m4 serial 5
dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_THREADLIB])
if test $gl_threads_api = posix; then
- gl_save_LIBS="$LIBS"
+ gl_saved_LIBS="$LIBS"
LIBS="$LIBS $LIBMULTITHREAD"
gl_CHECK_FUNCS_ANDROID([pthread_atfork], [[#include <pthread.h>]])
- LIBS="$gl_save_LIBS"
+ LIBS="$gl_saved_LIBS"
fi
])
-# threadlib.m4 serial 41
+# threadlib.m4 serial 42
dnl Copyright (C) 2005-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
# needs -pthread for some reason. See:
# https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
- save_LIBS=$LIBS
+ saved_LIBS="$LIBS"
for gl_pthread in '' '-pthread'; do
LIBS="$LIBS $gl_pthread"
AC_LINK_IFELSE(
[gl_pthread_api=yes
LIBPTHREAD=$gl_pthread
LIBPMULTITHREAD=$gl_pthread])
- LIBS=$save_LIBS
+ LIBS="$saved_LIBS"
test $gl_pthread_api = yes && break
done
echo "$as_me:__oline__: gl_pthread_api=$gl_pthread_api" >&AS_MESSAGE_LOG_FD
-# threads_h.m4 serial 14
+# threads_h.m4 serial 15
dnl Copyright (C) 2019-2024 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 On AIX 7.3.1, thrd_join still never stores an exit code.
AC_CACHE_CHECK([whether thrd_join works],
[gl_cv_func_thrd_join_works],
- [save_LIBS="$LIBS"
+ [saved_LIBS="$LIBS"
LIBS="$LIBS $LIBSTDTHREAD"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
*) gl_cv_func_thrd_join_works="guessing yes" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_thrd_join_works" in
*yes) ;;
-# trunc.m4 serial 17
+# trunc.m4 serial 18
dnl Copyright (C) 2007, 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[x = funcptr(x) + trunc(x);]])],
[TRUNC_LIBM=])
if test "$TRUNC_LIBM" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
double x;]],
[[x = funcptr(x) + trunc(x);]])],
[TRUNC_LIBM="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
if test "$TRUNC_LIBM" = "?"; then
TRUNC_LIBM=
AC_CACHE_CHECK([whether trunc works according to ISO C 99 with IEC 60559],
[gl_cv_func_trunc_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $TRUNC_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_trunc_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_trunc_ieee" in
*yes) ;;
-# truncf.m4 serial 17
+# truncf.m4 serial 18
dnl Copyright (C) 2007, 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[x = funcptr(x) + truncf(x);]])],
[TRUNCF_LIBM=])
if test "$TRUNCF_LIBM" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
float x;]],
[[x = funcptr(x) + truncf(x);]])],
[TRUNCF_LIBM="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
if test "$TRUNCF_LIBM" = "?"; then
TRUNCF_LIBM=
AC_CACHE_CHECK([whether truncf works according to ISO C 99 with IEC 60559],
[gl_cv_func_truncf_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $TRUNCF_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_truncf_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_truncf_ieee" in
*yes) ;;
-# truncl.m4 serial 19
+# truncl.m4 serial 20
dnl Copyright (C) 2007-2008, 2010-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[x = funcptr(x) + truncl(x);]])],
[TRUNCL_LIBM=])
if test "$TRUNCL_LIBM" = "?"; then
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS -lm"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
long double x;]],
[[x = funcptr(x) + truncl(x);]])],
[TRUNCL_LIBM="-lm"])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
fi
if test "$TRUNCL_LIBM" = "?"; then
TRUNCL_LIBM=
fi
dnl Test whether truncl() works. It crashes on OSF/1 4.0d.
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $TRUNCL_LIBM"
AC_CACHE_CHECK([whether truncl works], [gl_cv_func_truncl_works],
[
esac
])
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
case "$gl_cv_func_truncl_works" in
*yes) ;;
*) REPLACE_TRUNCL=1 ;;
AC_CACHE_CHECK([whether truncl works according to ISO C 99 with IEC 60559],
[gl_cv_func_truncl_ieee],
[
- save_LIBS="$LIBS"
+ saved_LIBS="$LIBS"
LIBS="$LIBS $TRUNCL_LIBM"
AC_RUN_IFELSE(
[AC_LANG_SOURCE([[
*) gl_cv_func_truncl_ieee="$gl_cross_guess_normal" ;;
esac
])
- LIBS="$save_LIBS"
+ LIBS="$saved_LIBS"
])
case "$gl_cv_func_truncl_ieee" in
*yes) ;;
-# visibility.m4 serial 8
+# visibility.m4 serial 9
dnl Copyright (C) 2005, 2008, 2010-2024 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 user has put into $CC $CFLAGS $CPPFLAGS.
AC_CACHE_CHECK([whether the -Werror option is usable],
[gl_cv_cc_vis_werror],
- [gl_save_CFLAGS="$CFLAGS"
+ [gl_saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[]], [[]])],
[gl_cv_cc_vis_werror=yes],
[gl_cv_cc_vis_werror=no])
- CFLAGS="$gl_save_CFLAGS"
+ CFLAGS="$gl_saved_CFLAGS"
])
dnl Now check whether visibility declarations are supported.
AC_CACHE_CHECK([for simple visibility declarations],
[gl_cv_cc_visibility],
- [gl_save_CFLAGS="$CFLAGS"
+ [gl_saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden"
dnl We use the option -Werror and a function dummyfunc, because on some
dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
[[]])],
[gl_cv_cc_visibility=yes],
[gl_cv_cc_visibility=no])
- CFLAGS="$gl_save_CFLAGS"
+ CFLAGS="$gl_saved_CFLAGS"
])
if test $gl_cv_cc_visibility = yes; then
CFLAG_VISIBILITY="-fvisibility=hidden"
-# warn-on-use.m4 serial 10
+# warn-on-use.m4 serial 11
dnl Copyright (C) 2010-2024 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 clang (e.g. strndup), reference ac_compile_for_check_decl instead
dnl of ac_compile. If, for whatever reason, the override of AC_PROG_CC
dnl in zzgnulib.m4 is inactive, use the original ac_compile.
- ac_save_ac_compile="$ac_compile"
+ ac_saved_ac_compile="$ac_compile"
if test -n "$ac_compile_for_check_decl"; then
ac_compile="$ac_compile_for_check_decl"
fi
[[#undef $gl_func
(void) $gl_func;]])],
[AS_VAR_SET([gl_Symbol], [yes])], [AS_VAR_SET([gl_Symbol], [no])])])
- ac_compile="$ac_save_ac_compile"
+ ac_compile="$ac_saved_ac_compile"
AS_VAR_IF([gl_Symbol], [yes],
[AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1])
dnl Shortcut for an AC_CHECK_DECL invocation that may come later:
-# warnings.m4 serial 19
+# warnings.m4 serial 20
dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
esac
m4_pushdef([gl_Positive], [$gl_positive])])dnl
AC_CACHE_CHECK([whether _AC_LANG compiler handles $1], [gl_Warn], [
- gl_save_compiler_FLAGS="$gl_Flags"
+ gl_saved_compiler_FLAGS="$gl_Flags"
AS_VAR_APPEND(m4_defn([gl_Flags]),
[" $gl_unknown_warnings_are_errors ]m4_defn([gl_Positive])["])
AC_LINK_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([[]])])],
[AS_VAR_SET([gl_Warn], [yes])],
[AS_VAR_SET([gl_Warn], [no])])
- gl_Flags="$gl_save_compiler_FLAGS"
+ gl_Flags="$gl_saved_compiler_FLAGS"
])
AS_VAR_IF(gl_Warn, [yes], [$2], [$3])
m4_popdef([gl_Positive])dnl
dnl Written by Eric Blake.
-# wchar_h.m4 serial 62
+# wchar_h.m4 serial 63
AC_DEFUN_ONCE([gl_WCHAR_H],
[
dnl z/OS when using the XPLINK object format (due to duplicate
dnl CSECT names). Instead, temporarily redefine $ac_compile so
dnl that the object file has the latter name from the start.
- save_ac_compile="$ac_compile"
- ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
+ saved_ac_compile="$ac_compile"
+ ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest1/`
if echo '#include "conftest.c"' >conftest1.c \
&& AC_TRY_EVAL([ac_compile]); then
AC_LANG_CONFTEST([
int zero (void) { return 0; }
]])])
dnl See note above about renaming object files.
- ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
+ ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest2/`
if echo '#include "conftest.c"' >conftest2.c \
&& AC_TRY_EVAL([ac_compile]); then
if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then
fi
fi
fi
- ac_compile="$save_ac_compile"
+ ac_compile="$saved_ac_compile"
rm -f conftest[12].c conftest[12].$ac_objext conftest$ac_exeext
;;
esac
;;
esac
fi
- save_IFS="$IFS"
+ saved_IFS="$IFS"
IFS="$PATH_SEPARATOR"
for d in $pathx; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
test -z "$d" && d=.
if test -x "$d/$progname" && test ! -d "$d/$progname"; then
self_abspathname="$d/$progname"
break
fi
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
if test -z "$self_abspathname"; then
func_fatal_error "could not locate the posix-modules program - how did you invoke it?"
fi
# Remove relative and non-accessible directories from PATH, including '.'
# and Zero-length entries.
- save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
+ saved_IFS="$IFS"; IFS="$PATH_SEPARATOR"
new_PATH=
for dir in $PATH; do
- IFS="$save_IFS"
+ IFS="$saved_IFS"
case "$dir" in
[\\/]* | ?:[\\/]*)
test -d "$dir/." || continue
;;
esac
done
- IFS="$save_IFS"
+ IFS="$saved_IFS"
PATH="$new_PATH"
export PATH
}