diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-25 12:06:28 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-25 12:06:28 +0100 |
commit | dcfdd254dc3d43139dc4058521287a48753b7db3 (patch) | |
tree | 5862d8fb406e08c3ba58c21609a33a7712fafa66 /m4/truncl-ieee.m4 | |
parent | 5fa8dede5f9d5dfa45972829942ee0b3ee726779 (diff) | |
download | gnulib-dcfdd254dc3d43139dc4058521287a48753b7db3.tar.gz |
truncl-ieee: Make it work on OSF/1 5.1 with cc.
* doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
* m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
test whether truncl works according to ISO C 99 with IEC 60559.
* m4/truncl-ieee.m4: New file.
* modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
Diffstat (limited to 'm4/truncl-ieee.m4')
-rw-r--r-- | m4/truncl-ieee.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/truncl-ieee.m4 b/m4/truncl-ieee.m4 new file mode 100644 index 0000000000..a5ca6cb803 --- /dev/null +++ b/m4/truncl-ieee.m4 @@ -0,0 +1,15 @@ +# truncl-ieee.m4 serial 1 +dnl Copyright (C) 2010 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 truncl.m4 and not inlined in the +dnl module description), so that gl_FUNC_TRUNCL can test whether 'aclocal' has +dnl found uses of this macro. + +AC_DEFUN([gl_FUNC_TRUNCL_IEEE], +[ + m4_divert_text([INIT_PREPARE], [gl_truncl_required=ieee]) + AC_REQUIRE([gl_FUNC_TRUNCL]) +]) |