From: Bruno Haible Date: Sun, 7 Oct 2007 03:10:20 +0000 (+0200) Subject: Ensure glibc declares trunc(). X-Git-Tag: v0.0~120 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=1e424ce10c76ad2c9a75fdc6ab02628931c2bcf0;p=gnulib.git Ensure glibc declares trunc(). --- 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: