Hash :
14a3c6e4
Author :
Date :
2012-03-10T16:05:56
logf-ieee: Work around test failure on NetBSD 5.1. * m4/logf-ieee.m4: New file. * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test whether logf works with a negative argument. Replace it if not. * lib/logf.c (logf): For negative arguments, return NaN. * modules/logf-ieee (Files): Add m4/logf-ieee.m4. (configure.ac): Invoke gl_FUNC_LOGF_IEEE. * doc/posix-functions/logf.texi: Mention the logf-ieee module.
# logf-ieee.m4 serial 1
dnl Copyright (C) 2012 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 macro is in a separate file (not in remainder.m4 and not inlined in the
dnl module description), so that gl_FUNC_LOGF can test whether 'aclocal' has
dnl found uses of this macro.
AC_DEFUN([gl_FUNC_LOGF_IEEE],
[
m4_divert_text([INIT_PREPARE], [gl_logf_required=ieee])
AC_REQUIRE([gl_FUNC_LOGF])
])