Mercurial > hg > octave-jordi > gnulib-hg
annotate m4/math_h.m4 @ 9423:fa47aa8bb105
Use REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 29 Oct 2007 04:23:19 +0100 |
parents | 9e0484f26251 |
children | 4a3319c82e39 |
rev | line source |
---|---|
9420
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
1 # math_h.m4 serial 7 |
8186
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 dnl Copyright (C) 2007 Free Software Foundation, Inc. |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_MATH_H], |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 AC_REQUIRE([gl_MATH_H_DEFAULTS]) |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8652
diff
changeset
|
10 gl_CHECK_NEXT_HEADERS([math.h]) |
8186
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 ]) |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 AC_DEFUN([gl_MATH_MODULE_INDICATOR], |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 [ |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 dnl Use AC_REQUIRE here, so that the default settings are expanded once only. |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 AC_REQUIRE([gl_MATH_H_DEFAULTS]) |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 ]) |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 AC_DEFUN([gl_MATH_H_DEFAULTS], |
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 [ |
9420
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
22 GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
23 GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
24 GNULIB_FLOORF=0; AC_SUBST([GNULIB_FLOORF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
25 GNULIB_FLOORL=0; AC_SUBST([GNULIB_FLOORL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
26 GNULIB_FREXP=0; AC_SUBST([GNULIB_FREXP]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
27 GNULIB_FREXPL=0; AC_SUBST([GNULIB_FREXPL]) |
9423
fa47aa8bb105
Use REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
Bruno Haible <bruno@clisp.org>
parents:
9420
diff
changeset
|
28 GNULIB_ISFINITE=0; AC_SUBST([GNULIB_ISFINITE]) |
9420
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
29 GNULIB_LDEXPL=0; AC_SUBST([GNULIB_LDEXPL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
30 GNULIB_MATHL=0; AC_SUBST([GNULIB_MATHL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
31 GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
32 GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
33 GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
34 GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
35 GNULIB_TRUNC=0; AC_SUBST([GNULIB_TRUNC]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
36 GNULIB_TRUNCF=0; AC_SUBST([GNULIB_TRUNCF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
37 GNULIB_TRUNCL=0; AC_SUBST([GNULIB_TRUNCL]) |
8359
d8d194025f40
Provide the option to declare the mathl functions also when the 'mathl'
Bruno Haible <bruno@clisp.org>
parents:
8186
diff
changeset
|
38 dnl Assume proper GNU behavior unless another module says otherwise. |
9420
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
39 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
40 HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
41 HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
42 HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
43 HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
44 HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
45 HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
46 HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
47 HAVE_DECL_ROUND=1; AC_SUBST([HAVE_DECL_ROUND]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
48 HAVE_DECL_ROUNDF=1; AC_SUBST([HAVE_DECL_ROUNDF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
49 HAVE_DECL_ROUNDL=1; AC_SUBST([HAVE_DECL_ROUNDL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
50 HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
51 HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
52 HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
53 HAVE_DECL_TRUNC=1; AC_SUBST([HAVE_DECL_TRUNC]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
54 HAVE_DECL_TRUNCF=1; AC_SUBST([HAVE_DECL_TRUNCF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
55 HAVE_DECL_TRUNCL=1; AC_SUBST([HAVE_DECL_TRUNCL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
56 REPLACE_CEILF=0; AC_SUBST([REPLACE_CEILF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
57 REPLACE_CEILL=0; AC_SUBST([REPLACE_CEILL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
58 REPLACE_FLOORF=0; AC_SUBST([REPLACE_FLOORF]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
59 REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
60 REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
61 REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL]) |
9423
fa47aa8bb105
Use REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
Bruno Haible <bruno@clisp.org>
parents:
9420
diff
changeset
|
62 REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE]) |
9420
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
63 REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL]) |
9e0484f26251
Fix link errors with Sun C 5.0 on Solaris 10.
Bruno Haible <bruno@clisp.org>
parents:
9414
diff
changeset
|
64 REPLACE_SIGNBIT=0; AC_SUBST([REPLACE_SIGNBIT]) |
8186
c115624bf99a
New module 'math'. <math.h> replaces mathl.h.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
65 ]) |