New module 'mbsncasecmp'.
[gnulib.git] / modules / string
1 Description:
2 A GNU-like <string.h>.
3
4 Files:
5 lib/string_.h
6 m4/string_h.m4
7
8 Depends-on:
9 absolute-header
10 extensions
11
12 configure.ac:
13 gl_HEADER_STRING_H
14
15 Makefile.am:
16 BUILT_SOURCES += string.h
17
18 # We need the following in order to create <string.h> when the system
19 # doesn't have one that works with the given compiler.
20 string.h: string_.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
23           sed -e 's|@''ABSOLUTE_STRING_H''@|$(ABSOLUTE_STRING_H)|g' \
24               -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
25               -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
26               -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
27               -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
28               -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
29               -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
30               -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
31               -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
32               -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
33               -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
34               -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
35               -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
36               -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
37               -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
38               -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
39               -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
40               -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
41               -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
42               -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
43               -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
44               -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
45               -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
46               -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
47               -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
48               -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
49               -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
50               -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
51               -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
52               -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
53               -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
54               -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
55               -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
56               -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
57               -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
58               -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
59               -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
60               -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
61               -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
62               -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
63               -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
64               -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
65               < $(srcdir)/string_.h; \
66         } > $@-t
67         mv $@-t $@
68 MOSTLYCLEANFILES += string.h string.h-t
69
70 Include:
71 #include <string.h>
72
73 License:
74 LGPL
75
76 Maintainer:
77 all