link-warning: always build headers with link warnings
[gnulib.git] / modules / locale
1 Description:
2 A <locale.h> that conforms to POSIX.
3
4 Files:
5 lib/locale.in.h
6 m4/locale_h.m4
7
8 Depends-on:
9 include_next
10 arg-nonnull
11 extensions
12 link-warning
13 stddef
14
15 configure.ac:
16 gl_LOCALE_H
17
18 Makefile.am:
19 BUILT_SOURCES += locale.h
20
21 # We need the following in order to create <locale.h> when the system
22 # doesn't have one that provides all definitions.
23 locale.h: locale.in.h $(LINK_WARNING_H) $(ARG_NONNULL_H)
24         $(AM_V_GEN)rm -f $@-t $@ && \
25         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
26           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28               -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
29               -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
30               -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
31               -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
32               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
33               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
34               < $(srcdir)/locale.in.h; \
35         } > $@-t && \
36         mv $@-t $@
37 MOSTLYCLEANFILES += locale.h locale.h-t
38
39 Include:
40 <locale.h>
41
42 License:
43 LGPL
44
45 Maintainer:
46 Bruno Haible