mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
AIX 7.2 ‘make’ complains about recipe lines that are empty after macro expansion, and I suppose there’s a good chance some non-POSIX ‘make’ would prohibit them. Rework macros so that we can avoid them. * gnulib-tool (func_emit_lib_Makefile_am) (func_emit_lib_Makefile_am): Support @!NMD@ too. * modules/gen-header (@gl_V_at): New macro. * modules/alloca-opt, modules/argz, modules/assert-h: * modules/byteswap, modules/configmake, modules/ctype: * modules/dirent, modules/errno, modules/execinfo, modules/fcntl-h: * modules/float, modules/fnmatch-h, modules/getopt-posix: * modules/glob-h, modules/iconv-h, modules/ieee754-h: * modules/inttypes-incomplete, modules/langinfo: * modules/libtextstyle-optional, modules/limits-h, modules/locale: * modules/malloc-h, modules/math, modules/monetary, modules/netdb: * modules/openmp-init, modules/poll-h, modules/posix-shell: * modules/pthread-h, modules/pty, modules/sched, modules/search: * modules/signal-h, modules/sigsegv, modules/snippet/link-warning: * modules/spawn, modules/stdalign, modules/stdarg, modules/stdbool: * modules/stddef, modules/stdint, modules/stdio, modules/stdlib: * modules/stdnoreturn, modules/string, modules/strings: * modules/sysexits, modules/termios, modules/threads-h: * modules/time, modules/uchar, modules/unicase/base: * modules/uniconv/base, modules/unictype/base, modules/unigbrk/base: * modules/unilbrk/base, modules/uniname/base, modules/uninorm/base: * modules/unistd, modules/unistdio/base, modules/unistr/base: * modules/unitypes, modules/uniwbrk/base, modules/uniwidth/base: * modules/utime-h, modules/wchar, modules/wctype-h: Use it.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
Description:
|
|
A C macro for emitting link time warnings.
|
|
|
|
Applicability:
|
|
all
|
|
|
|
Files:
|
|
build-aux/snippet/link-warning.h
|
|
|
|
Depends-on:
|
|
gen-header
|
|
|
|
configure.ac:
|
|
AC_REQUIRE([gl_FEATURES_H])
|
|
AC_PROG_MKDIR_P
|
|
|
|
Makefile.am:
|
|
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
|
|
# statements but through direct file reference. Therefore this snippet must be
|
|
# present in all Makefiles that need it. This is ensured by the applicability
|
|
# 'all' defined above.
|
|
|
|
# FIXME: The link-warning.h rule probably does not work if
|
|
# gnulib-tool's --gnu-make option is used, when the build is an
|
|
# out-of-source build that relies on VPATH.
|
|
|
|
BUILT_SOURCES += link-warning.h
|
|
link-warning.h: $(top_srcdir)/build-aux/snippet/link-warning.h
|
|
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
|
$(gl_V_at)sed -n -e '/HAVE_FEATURES_H/,$$p' \
|
|
< $(top_srcdir)/build-aux/snippet/link-warning.h \
|
|
| sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
|
|
> $@-t
|
|
$(AM_V_at)mv $@-t $@
|
|
MOSTLYCLEANFILES += link-warning.h link-warning.h-t
|
|
|
|
LINK_WARNING_H=link-warning.h
|
|
|
|
Include:
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all
|