libposix: Add _HEADERS primaries to posix modules.
[gnulib.git] / modules / math
1 Description:
2 A GNU-like <math.h>.
3
4 Files:
5 lib/math.in.h
6 m4/math_h.m4
7
8 Depends-on:
9 arg-nonnull
10 c++defs
11 include_next
12 warn-on-use
13
14 configure.ac:
15 gl_MATH_H
16
17 Makefile.am:
18 nodist_pkginclude_HEADERS += math.h
19
20 BUILT_SOURCES += math.h
21
22 # We need the following in order to create <math.h> when the system
23 # doesn't have one that works with the given compiler.
24 math.h: math.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
27           sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
30               -e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
31               -e 's|@''GNULIB_ACOSL''@|$(GNULIB_ACOSL)|g' \
32               -e 's|@''GNULIB_ASINL''@|$(GNULIB_ASINL)|g' \
33               -e 's|@''GNULIB_ATANL''@|$(GNULIB_ATANL)|g' \
34               -e 's|@''GNULIB_CEIL''@|$(GNULIB_CEIL)|g' \
35               -e 's|@''GNULIB_CEILF''@|$(GNULIB_CEILF)|g' \
36               -e 's|@''GNULIB_CEILL''@|$(GNULIB_CEILL)|g' \
37               -e 's|@''GNULIB_COSL''@|$(GNULIB_COSL)|g' \
38               -e 's|@''GNULIB_EXPL''@|$(GNULIB_EXPL)|g' \
39               -e 's|@''GNULIB_FLOOR''@|$(GNULIB_FLOOR)|g' \
40               -e 's|@''GNULIB_FLOORF''@|$(GNULIB_FLOORF)|g' \
41               -e 's|@''GNULIB_FLOORL''@|$(GNULIB_FLOORL)|g' \
42               -e 's|@''GNULIB_FREXP''@|$(GNULIB_FREXP)|g' \
43               -e 's|@''GNULIB_FREXPL''@|$(GNULIB_FREXPL)|g' \
44               -e 's|@''GNULIB_ISFINITE''@|$(GNULIB_ISFINITE)|g' \
45               -e 's|@''GNULIB_ISINF''@|$(GNULIB_ISINF)|g' \
46               -e 's|@''GNULIB_ISNAN''@|$(GNULIB_ISNAN)|g' \
47               -e 's|@''GNULIB_ISNANF''@|$(GNULIB_ISNANF)|g' \
48               -e 's|@''GNULIB_ISNAND''@|$(GNULIB_ISNAND)|g' \
49               -e 's|@''GNULIB_ISNANL''@|$(GNULIB_ISNANL)|g' \
50               -e 's|@''GNULIB_LDEXPL''@|$(GNULIB_LDEXPL)|g' \
51               -e 's|@''GNULIB_LOGB''@|$(GNULIB_LOGB)|g' \
52               -e 's|@''GNULIB_LOGL''@|$(GNULIB_LOGL)|g' \
53               -e 's|@''GNULIB_ROUND''@|$(GNULIB_ROUND)|g' \
54               -e 's|@''GNULIB_ROUNDF''@|$(GNULIB_ROUNDF)|g' \
55               -e 's|@''GNULIB_ROUNDL''@|$(GNULIB_ROUNDL)|g' \
56               -e 's|@''GNULIB_SIGNBIT''@|$(GNULIB_SIGNBIT)|g' \
57               -e 's|@''GNULIB_SINL''@|$(GNULIB_SINL)|g' \
58               -e 's|@''GNULIB_SQRTL''@|$(GNULIB_SQRTL)|g' \
59               -e 's|@''GNULIB_TANL''@|$(GNULIB_TANL)|g' \
60               -e 's|@''GNULIB_TRUNC''@|$(GNULIB_TRUNC)|g' \
61               -e 's|@''GNULIB_TRUNCF''@|$(GNULIB_TRUNCF)|g' \
62               -e 's|@''GNULIB_TRUNCL''@|$(GNULIB_TRUNCL)|g' \
63               -e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
64               -e 's|@''HAVE_ASINL''@|$(HAVE_ASINL)|g' \
65               -e 's|@''HAVE_ATANL''@|$(HAVE_ATANL)|g' \
66               -e 's|@''HAVE_COSL''@|$(HAVE_COSL)|g' \
67               -e 's|@''HAVE_EXPL''@|$(HAVE_EXPL)|g' \
68               -e 's|@''HAVE_ISNANF''@|$(HAVE_ISNANF)|g' \
69               -e 's|@''HAVE_ISNAND''@|$(HAVE_ISNAND)|g' \
70               -e 's|@''HAVE_ISNANL''@|$(HAVE_ISNANL)|g' \
71               -e 's|@''HAVE_LOGL''@|$(HAVE_LOGL)|g' \
72               -e 's|@''HAVE_SINL''@|$(HAVE_SINL)|g' \
73               -e 's|@''HAVE_SQRTL''@|$(HAVE_SQRTL)|g' \
74               -e 's|@''HAVE_TANL''@|$(HAVE_TANL)|g' \
75               -e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
76               -e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
77               -e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
78               -e 's|@''HAVE_DECL_CEILF''@|$(HAVE_DECL_CEILF)|g' \
79               -e 's|@''HAVE_DECL_CEILL''@|$(HAVE_DECL_CEILL)|g' \
80               -e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
81               -e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
82               -e 's|@''HAVE_DECL_FLOORF''@|$(HAVE_DECL_FLOORF)|g' \
83               -e 's|@''HAVE_DECL_FLOORL''@|$(HAVE_DECL_FLOORL)|g' \
84               -e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
85               -e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
86               -e 's|@''HAVE_DECL_LOGB''@|$(HAVE_DECL_LOGB)|g' \
87               -e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
88               -e 's|@''HAVE_DECL_ROUND''@|$(HAVE_DECL_ROUND)|g' \
89               -e 's|@''HAVE_DECL_ROUNDF''@|$(HAVE_DECL_ROUNDF)|g' \
90               -e 's|@''HAVE_DECL_ROUNDL''@|$(HAVE_DECL_ROUNDL)|g' \
91               -e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
92               -e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
93               -e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
94               -e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
95               -e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
96               -e 's|@''HAVE_DECL_TRUNCL''@|$(HAVE_DECL_TRUNCL)|g' \
97               -e 's|@''REPLACE_CEIL''@|$(REPLACE_CEIL)|g' \
98               -e 's|@''REPLACE_CEILF''@|$(REPLACE_CEILF)|g' \
99               -e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \
100               -e 's|@''REPLACE_FLOOR''@|$(REPLACE_FLOOR)|g' \
101               -e 's|@''REPLACE_FLOORF''@|$(REPLACE_FLOORF)|g' \
102               -e 's|@''REPLACE_FLOORL''@|$(REPLACE_FLOORL)|g' \
103               -e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
104               -e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
105               -e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
106               -e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
107               -e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
108               -e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
109               -e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
110               -e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \
111               -e 's|@''REPLACE_ROUND''@|$(REPLACE_ROUND)|g' \
112               -e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
113               -e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
114               -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
115               -e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
116               -e 's|@''REPLACE_TRUNC''@|$(REPLACE_TRUNC)|g' \
117               -e 's|@''REPLACE_TRUNCF''@|$(REPLACE_TRUNCF)|g' \
118               -e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
119               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
120               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
121               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
122               < $(srcdir)/math.in.h; \
123         } > $@-t && \
124         mv $@-t $@
125 MOSTLYCLEANFILES += math.h math.h-t
126
127 Include:
128 <math.h>
129
130 License:
131 LGPLv2+
132
133 Maintainer:
134 all