Ensure glibc declares trunc().
authorBruno Haible <bruno@clisp.org>
Sun, 7 Oct 2007 03:10:20 +0000 (05:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Oct 2007 03:10:20 +0000 (05:10 +0200)
ChangeLog
m4/trunc.m4
modules/trunc

index 6b8276c4fbfc2cd68233f73035dc0d497d42d2ff..5aad065eb0fc0c110423cd48938335dae15d6d9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-06  Bruno Haible  <bruno@clisp.org>
+
+       * modules/trunc (Dependencies): Add 'extensions'.
+       * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
+       Reported by Ben Pfaff <blp@gnu.org>.
+
 2007-10-06  Bruno Haible  <bruno@clisp.org>
 
        * modules/freopen-tests: New file.
index 58db4a19da69a6d6819ccaba1c3e2ad1cf80eb9a..967d00042ebec8acc465fc8ae072f167bb8a06b3 100644 (file)
@@ -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 <math.h> to declare truncl().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether trunc() is declared.
   AC_CHECK_DECLS([trunc], , , [#include <math.h>])
   if test "$ac_cv_have_decl_trunc" = yes; then
index 8153edafcae21e0b39622056240454223038f93e..1c6f706276d887c9f2b0ca3def51f8b798df5661 100644 (file)
@@ -7,6 +7,7 @@ m4/trunc.m4
 
 Depends-on:
 math
+extensions
 float
 
 configure.ac: