From 1e424ce10c76ad2c9a75fdc6ab02628931c2bcf0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 7 Oct 2007 05:10:20 +0200 Subject: [PATCH] Ensure glibc declares trunc(). --- ChangeLog | 6 ++++++ m4/trunc.m4 | 4 +++- modules/trunc | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b8276c4f..5aad065eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-10-06 Bruno Haible + * modules/trunc (Dependencies): Add 'extensions'. + * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS. + Reported by Ben Pfaff . + +2007-10-06 Bruno Haible + * modules/freopen-tests: New file. * tests/test-freopen.c: New file. diff --git a/m4/trunc.m4 b/m4/trunc.m4 index 58db4a19d..967d00042 100644 --- a/m4/trunc.m4 +++ b/m4/trunc.m4 @@ -1,4 +1,4 @@ -# trunc.m4 serial 1 +# trunc.m4 serial 2 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,6 +7,8 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_TRUNC], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare truncl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) dnl Test whether trunc() is declared. AC_CHECK_DECLS([trunc], , , [#include ]) if test "$ac_cv_have_decl_trunc" = yes; then diff --git a/modules/trunc b/modules/trunc index 8153edafc..1c6f70627 100644 --- a/modules/trunc +++ b/modules/trunc @@ -7,6 +7,7 @@ m4/trunc.m4 Depends-on: math +extensions float configure.ac: -- 2.11.0