Branch
Hash :
7b089321
Author :
Date :
2025-01-01T09:24:36
maint: run 'make update-copyright'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
# setpayloadsig.m4
# serial 1
dnl Copyright 2024-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
AC_DEFUN([gl_FUNC_SETPAYLOADSIGF],
[
AC_REQUIRE([gl_MATH_H_DEFAULTS])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
gl_MATHFUNC([setpayloadsigf], [int], [(float *, float)])
if test $gl_cv_func_setpayloadsigf_no_libm != yes \
&& test $gl_cv_func_setpayloadsigf_in_libm != yes; then
HAVE_SETPAYLOADSIGF=0
fi
if test $HAVE_SETPAYLOADSIGF = 0; then
SETPAYLOADSIGF_LIBM=
fi
AC_SUBST([SETPAYLOADSIGF_LIBM])
])
AC_DEFUN_ONCE([gl_FUNC_SETPAYLOADSIG],
[
AC_REQUIRE([gl_MATH_H_DEFAULTS])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
gl_MATHFUNC([setpayloadsig], [int], [(double *, double)])
if test $gl_cv_func_setpayloadsig_no_libm != yes \
&& test $gl_cv_func_setpayloadsig_in_libm != yes; then
HAVE_SETPAYLOADSIG=0
fi
if test $HAVE_SETPAYLOADSIG = 0; then
SETPAYLOADSIG_LIBM=
fi
AC_SUBST([SETPAYLOADSIG_LIBM])
])
AC_DEFUN([gl_FUNC_SETPAYLOADSIGL],
[
AC_REQUIRE([gl_MATH_H_DEFAULTS])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
gl_MATHFUNC([setpayloadsigl], [int], [(long double *, long double)])
if test $gl_cv_func_setpayloadsigl_no_libm != yes \
&& test $gl_cv_func_setpayloadsigl_in_libm != yes; then
HAVE_SETPAYLOADSIGL=0
fi
if test $HAVE_SETPAYLOADSIGL = 0; then
dnl Find libraries needed to link lib/setpayloadsigl.c.
if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
AC_REQUIRE([gl_FUNC_SETPAYLOADSIG])
SETPAYLOADSIGL_LIBM="$SETPAYLOADSIG_LIBM"
else
SETPAYLOADSIGL_LIBM=
fi
dnl Prerequisite of lib/setpayloadsigl.c.
gl_LONG_DOUBLE_EXPONENT_LOCATION
fi
AC_SUBST([SETPAYLOADSIGL_LIBM])
])