db0faee12e5b9ca46b711026c202fa5241ff33df
[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 include_next
10 link-warning
11
12 configure.ac:
13 gl_MATH_H
14
15 Makefile.am:
16 BUILT_SOURCES += math.h
17
18 # We need the following in order to create <math.h> when the system
19 # doesn't have one that works with the given compiler.
20 math.h: math.in.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23           sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
24               -e 's|@''NEXT_MATH_H''@|$(NEXT_MATH_H)|g' \
25               -e 's|@''GNULIB_FREXP''@|$(GNULIB_FREXP)|g' \
26               -e 's|@''GNULIB_FREXPL''@|$(GNULIB_FREXPL)|g' \
27               -e 's|@''GNULIB_LDEXPL''@|$(GNULIB_LDEXPL)|g' \
28               -e 's|@''GNULIB_MATHL''@|$(GNULIB_MATHL)|g' \
29               -e 's|@''GNULIB_SIGNBIT''@|$(GNULIB_SIGNBIT)|g' \
30               -e 's|@''GNULIB_TRUNC''@|$(GNULIB_TRUNC)|g' \
31               -e 's|@''GNULIB_TRUNCF''@|$(GNULIB_TRUNCF)|g' \
32               -e 's|@''GNULIB_TRUNCL''@|$(GNULIB_TRUNCL)|g' \
33               -e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
34               -e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
35               -e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
36               -e 's|@''HAVE_DECL_CEILL''@|$(HAVE_DECL_CEILL)|g' \
37               -e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
38               -e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
39               -e 's|@''HAVE_DECL_FLOORL''@|$(HAVE_DECL_FLOORL)|g' \
40               -e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
41               -e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
42               -e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
43               -e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
44               -e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
45               -e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
46               -e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
47               -e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
48               -e 's|@''HAVE_DECL_TRUNCL''@|$(HAVE_DECL_TRUNCL)|g' \
49               -e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
50               -e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
51               -e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
52               -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
53               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
54               < $(srcdir)/math.in.h; \
55         } > $@-t
56         mv $@-t $@
57 MOSTLYCLEANFILES += math.h math.h-t
58
59 Include:
60 <math.h>
61
62 License:
63 LGPL
64
65 Maintainer:
66 all