3 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_FUNC_COPYSIGN],
10 AC_REQUIRE([gl_MATH_H_DEFAULTS])
12 dnl Determine COPYSIGN_LIBM.
13 gl_MATHFUNC([copysign], [double], [(double, double)])
14 if test $gl_cv_func_copysign_no_libm = no \
15 && test $gl_cv_func_copysign_in_libm = no; then
19 AC_SUBST([COPYSIGN_LIBM])