setlocale: Improve locale handling on macOS 10.12 or newer.
[gnulib.git] / modules / stdarg
blobc108d7311b55ca26d8098fee5d6f9ff57cd24dcd
1 Description:
2 An <stdarg.h> that conforms to C99.
4 Files:
5 lib/stdarg.in.h
6 m4/stdarg.m4
8 Depends-on:
9 include_next
11 configure.ac-early:
12 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
13 dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
14 dnl gl_PROG_CC_C99 arranges for this.  With older Autoconf gl_PROG_CC_C99
15 dnl shouldn't hurt, though installers are on their own to set c99 mode.
16 gl_PROG_CC_C99
18 configure.ac:
19 gl_STDARG_H
21 Makefile.am:
22 BUILT_SOURCES += $(STDARG_H)
24 # We need the following in order to create <stdarg.h> when the system
25 # doesn't have one that works with the given compiler.
26 if GL_GENERATE_STDARG_H
27 stdarg.h: stdarg.in.h $(top_builddir)/config.status
28         $(AM_V_GEN)rm -f $@-t $@ && \
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
30           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
31               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
32               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
34               -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
35               < $(srcdir)/stdarg.in.h; \
36         } > $@-t && \
37         mv $@-t $@
38 else
39 stdarg.h: $(top_builddir)/config.status
40         rm -f $@
41 endif
42 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
44 Include:
45 <stdarg.h>
47 License:
48 LGPLv2+
50 Maintainer:
51 all