strings 1.39 KB
Newer Older
1 2 3 4 5 6 7 8
Description:
A substitute <strings.h>.

Files:
lib/strings.in.h
m4/strings_h.m4

Depends-on:
9
include_next
10
snippet/arg-nonnull
11
snippet/c++defs
12
warn-on-use
13 14 15 16 17 18 19 20 21

configure.ac:
gl_HEADER_STRINGS_H

Makefile.am:
BUILT_SOURCES += strings.h

# We need the following in order to create <strings.h> when the system
# doesn't have one that works with the given compiler.
Eric Blake's avatar
Eric Blake committed
22
strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
23
	$(AM_V_GEN)rm -f $@-t $@ && \
24
	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
25 26
	  sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
27
	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
28
	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
29
	      -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
Eric Blake's avatar
Eric Blake committed
30 31
	      -e 's|@''GNULIB_FFS''@|$(GNULIB_FFS)|g' \
	      -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \
32 33
	      -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
	      -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
Eric Blake's avatar
Eric Blake committed
34
	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
35
	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
36
	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
37
	      < $(srcdir)/strings.in.h; \
38
	} > $@-t && \
39 40 41 42
	mv $@-t $@
MOSTLYCLEANFILES += strings.h strings.h-t

Include:
43
<strings.h>
44 45 46 47 48 49

License:
LGPLv2+

Maintainer:
all