Mercurial > hg > octave-kai > gnulib-hg
changeset 15419:d2437ed29d20
Rename module 'warn-on-use' to 'snippet/warn-on-use'.
* modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
(Files, Makefile.am): Update.
* build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
* modules/arpa_inet (Depends-on): Update.
* modules/ctype (Depends-on): Update.
* modules/dirent (Depends-on): Update.
* modules/fcntl-h (Depends-on): Update.
* modules/glob (Depends-on): Update.
* modules/iconv-h (Depends-on): Update.
* modules/inttypes-incomplete (Depends-on): Update.
* modules/langinfo (Depends-on): Update.
* modules/locale (Depends-on): Update.
* modules/math (Depends-on): Update.
* modules/netdb (Depends-on): Update.
* modules/poll-h (Depends-on): Update.
* modules/pty (Depends-on): Update.
* modules/search (Depends-on): Update.
* modules/signal (Depends-on): Update.
* modules/spawn (Depends-on): Update.
* modules/stdio (Depends-on): Update.
* modules/stdlib (Depends-on): Update.
* modules/string (Depends-on): Update.
* modules/strings (Depends-on): Update.
* modules/sys_file (Depends-on): Update.
* modules/sys_ioctl (Depends-on): Update.
* modules/sys_select (Depends-on): Update.
* modules/sys_socket (Depends-on): Update.
* modules/sys_stat (Depends-on): Update.
* modules/sys_time (Depends-on): Update.
* modules/sys_times (Depends-on): Update.
* modules/sys_utsname (Depends-on): Update.
* modules/sys_wait (Depends-on): Update.
* modules/termios (Depends-on): Update.
* modules/time (Depends-on): Update.
* modules/unistd (Depends-on): Update.
* modules/wchar (Depends-on): Update.
* modules/wctype-h (Depends-on): Update.
* MODULES.html.sh (Support for building libraries and executables):
Update.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 12 Jul 2011 11:44:55 +0200 |
parents | e434caaeadb1 |
children | 07a4092cc186 |
files | ChangeLog MODULES.html.sh build-aux/snippet/warn-on-use.h build-aux/warn-on-use.h modules/arpa_inet modules/ctype modules/dirent modules/fcntl-h modules/glob modules/iconv-h modules/inttypes-incomplete modules/langinfo modules/locale modules/math modules/netdb modules/poll-h modules/pty modules/search modules/signal modules/snippet/warn-on-use modules/spawn modules/stdio modules/stdlib modules/string modules/strings modules/sys_file modules/sys_ioctl modules/sys_select modules/sys_socket modules/sys_stat modules/sys_time modules/sys_times modules/sys_utsname modules/sys_wait modules/termios modules/time modules/unistd modules/warn-on-use modules/wchar modules/wctype-h |
diffstat | 40 files changed, 223 insertions(+), 179 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,46 @@ +2011-07-12 Bruno Haible <bruno@clisp.org> + + Rename module 'warn-on-use' to 'snippet/warn-on-use'. + * modules/snippet/warn-on-use: Renamed from modules/warn-on-use. + (Files, Makefile.am): Update. + * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h. + * modules/arpa_inet (Depends-on): Update. + * modules/ctype (Depends-on): Update. + * modules/dirent (Depends-on): Update. + * modules/fcntl-h (Depends-on): Update. + * modules/glob (Depends-on): Update. + * modules/iconv-h (Depends-on): Update. + * modules/inttypes-incomplete (Depends-on): Update. + * modules/langinfo (Depends-on): Update. + * modules/locale (Depends-on): Update. + * modules/math (Depends-on): Update. + * modules/netdb (Depends-on): Update. + * modules/poll-h (Depends-on): Update. + * modules/pty (Depends-on): Update. + * modules/search (Depends-on): Update. + * modules/signal (Depends-on): Update. + * modules/spawn (Depends-on): Update. + * modules/stdio (Depends-on): Update. + * modules/stdlib (Depends-on): Update. + * modules/string (Depends-on): Update. + * modules/strings (Depends-on): Update. + * modules/sys_file (Depends-on): Update. + * modules/sys_ioctl (Depends-on): Update. + * modules/sys_select (Depends-on): Update. + * modules/sys_socket (Depends-on): Update. + * modules/sys_stat (Depends-on): Update. + * modules/sys_time (Depends-on): Update. + * modules/sys_times (Depends-on): Update. + * modules/sys_utsname (Depends-on): Update. + * modules/sys_wait (Depends-on): Update. + * modules/termios (Depends-on): Update. + * modules/time (Depends-on): Update. + * modules/unistd (Depends-on): Update. + * modules/wchar (Depends-on): Update. + * modules/wctype-h (Depends-on): Update. + * MODULES.html.sh (Support for building libraries and executables): + Update. + 2011-07-12 Bruno Haible <bruno@clisp.org> Rename module 'unused-parameter' to 'snippet/unused-parameter'.
--- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -3459,7 +3459,7 @@ func_module relocatable-prog func_module relocatable-prog-wrapper func_module relocatable-script - func_module warn-on-use + func_module snippet/warn-on-use func_module warnings func_end_table
new file mode 100644 --- /dev/null +++ b/build-aux/snippet/warn-on-use.h @@ -0,0 +1,109 @@ +/* A C macro for emitting warnings if a function is used. + Copyright (C) 2010-2011 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +/* _GL_WARN_ON_USE (function, "literal string") issues a declaration + for FUNCTION which will then trigger a compiler warning containing + the text of "literal string" anywhere that function is called, if + supported by the compiler. If the compiler does not support this + feature, the macro expands to an unused extern declaration. + + This macro is useful for marking a function as a potential + portability trap, with the intent that "literal string" include + instructions on the replacement function that should be used + instead. However, one of the reasons that a function is a + portability trap is if it has the wrong signature. Declaring + FUNCTION with a different signature in C is a compilation error, so + this macro must use the same type as any existing declaration so + that programs that avoid the problematic FUNCTION do not fail to + compile merely because they included a header that poisoned the + function. But this implies that _GL_WARN_ON_USE is only safe to + use if FUNCTION is known to already have a declaration. Use of + this macro implies that there must not be any other macro hiding + the declaration of FUNCTION; but undefining FUNCTION first is part + of the poisoning process anyway (although for symbols that are + provided only via a macro, the result is a compilation error rather + than a warning containing "literal string"). Also note that in + C++, it is only safe to use if FUNCTION has no overloads. + + For an example, it is possible to poison 'getline' by: + - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]], + [getline]) in configure.ac, which potentially defines + HAVE_RAW_DECL_GETLINE + - adding this code to a header that wraps the system <stdio.h>: + #undef getline + #if HAVE_RAW_DECL_GETLINE + _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" + "not universally present; use the gnulib module getline"); + #endif + + It is not possible to directly poison global variables. But it is + possible to write a wrapper accessor function, and poison that + (less common usage, like &environ, will cause a compilation error + rather than issue the nice warning, but the end result of informing + the developer about their portability problem is still achieved): + #if HAVE_RAW_DECL_ENVIRON + static inline char ***rpl_environ (void) { return &environ; } + _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); + # undef environ + # define environ (*rpl_environ ()) + #endif + */ +#ifndef _GL_WARN_ON_USE + +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) +/* A compiler attribute is available in gcc versions 4.3.0 and later. */ +# define _GL_WARN_ON_USE(function, message) \ +extern __typeof__ (function) function __attribute__ ((__warning__ (message))) +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING +/* Verify the existence of the function. */ +# define _GL_WARN_ON_USE(function, message) \ +extern __typeof__ (function) function +# else /* Unsupported. */ +# define _GL_WARN_ON_USE(function, message) \ +_GL_WARN_EXTERN_C int _gl_warn_on_use +# endif +#endif + +/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string") + is like _GL_WARN_ON_USE (function, "string"), except that the function is + declared with the given prototype, consisting of return type, parameters, + and attributes. + This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does + not work in this case. */ +#ifndef _GL_WARN_ON_USE_CXX +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ +extern rettype function parameters_and_attributes \ + __attribute__ ((__warning__ (msg))) +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING +/* Verify the existence of the function. */ +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ +extern rettype function parameters_and_attributes +# else /* Unsupported. */ +# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ +_GL_WARN_EXTERN_C int _gl_warn_on_use +# endif +#endif + +/* _GL_WARN_EXTERN_C declaration; + performs the declaration with C linkage. */ +#ifndef _GL_WARN_EXTERN_C +# if defined __cplusplus +# define _GL_WARN_EXTERN_C extern "C" +# else +# define _GL_WARN_EXTERN_C extern +# endif +#endif
deleted file mode 100644 --- a/build-aux/warn-on-use.h +++ /dev/null @@ -1,109 +0,0 @@ -/* A C macro for emitting warnings if a function is used. - Copyright (C) 2010-2011 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. */ - -/* _GL_WARN_ON_USE (function, "literal string") issues a declaration - for FUNCTION which will then trigger a compiler warning containing - the text of "literal string" anywhere that function is called, if - supported by the compiler. If the compiler does not support this - feature, the macro expands to an unused extern declaration. - - This macro is useful for marking a function as a potential - portability trap, with the intent that "literal string" include - instructions on the replacement function that should be used - instead. However, one of the reasons that a function is a - portability trap is if it has the wrong signature. Declaring - FUNCTION with a different signature in C is a compilation error, so - this macro must use the same type as any existing declaration so - that programs that avoid the problematic FUNCTION do not fail to - compile merely because they included a header that poisoned the - function. But this implies that _GL_WARN_ON_USE is only safe to - use if FUNCTION is known to already have a declaration. Use of - this macro implies that there must not be any other macro hiding - the declaration of FUNCTION; but undefining FUNCTION first is part - of the poisoning process anyway (although for symbols that are - provided only via a macro, the result is a compilation error rather - than a warning containing "literal string"). Also note that in - C++, it is only safe to use if FUNCTION has no overloads. - - For an example, it is possible to poison 'getline' by: - - adding a call to gl_WARN_ON_USE_PREPARE([[#include <stdio.h>]], - [getline]) in configure.ac, which potentially defines - HAVE_RAW_DECL_GETLINE - - adding this code to a header that wraps the system <stdio.h>: - #undef getline - #if HAVE_RAW_DECL_GETLINE - _GL_WARN_ON_USE (getline, "getline is required by POSIX 2008, but" - "not universally present; use the gnulib module getline"); - #endif - - It is not possible to directly poison global variables. But it is - possible to write a wrapper accessor function, and poison that - (less common usage, like &environ, will cause a compilation error - rather than issue the nice warning, but the end result of informing - the developer about their portability problem is still achieved): - #if HAVE_RAW_DECL_ENVIRON - static inline char ***rpl_environ (void) { return &environ; } - _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared"); - # undef environ - # define environ (*rpl_environ ()) - #endif - */ -#ifndef _GL_WARN_ON_USE - -# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) -/* A compiler attribute is available in gcc versions 4.3.0 and later. */ -# define _GL_WARN_ON_USE(function, message) \ -extern __typeof__ (function) function __attribute__ ((__warning__ (message))) -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING -/* Verify the existence of the function. */ -# define _GL_WARN_ON_USE(function, message) \ -extern __typeof__ (function) function -# else /* Unsupported. */ -# define _GL_WARN_ON_USE(function, message) \ -_GL_WARN_EXTERN_C int _gl_warn_on_use -# endif -#endif - -/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string") - is like _GL_WARN_ON_USE (function, "string"), except that the function is - declared with the given prototype, consisting of return type, parameters, - and attributes. - This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does - not work in this case. */ -#ifndef _GL_WARN_ON_USE_CXX -# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ -extern rettype function parameters_and_attributes \ - __attribute__ ((__warning__ (msg))) -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING -/* Verify the existence of the function. */ -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ -extern rettype function parameters_and_attributes -# else /* Unsupported. */ -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \ -_GL_WARN_EXTERN_C int _gl_warn_on_use -# endif -#endif - -/* _GL_WARN_EXTERN_C declaration; - performs the declaration with C linkage. */ -#ifndef _GL_WARN_EXTERN_C -# if defined __cplusplus -# define _GL_WARN_EXTERN_C extern "C" -# else -# define _GL_WARN_EXTERN_C extern -# endif -#endif
--- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -9,8 +9,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use sys_socket -warn-on-use configure.ac: gl_HEADER_ARPA_INET
--- a/modules/ctype +++ b/modules/ctype @@ -8,7 +8,7 @@ Depends-on: include_next snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_CTYPE_H
--- a/modules/dirent +++ b/modules/dirent @@ -10,7 +10,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_DIRENT_H
--- a/modules/fcntl-h +++ b/modules/fcntl-h @@ -11,8 +11,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use unistd -warn-on-use configure.ac: gl_FCNTL_H
--- a/modules/glob +++ b/modules/glob @@ -12,7 +12,7 @@ extensions snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use alloca [test -n "$GLOB_H"] d-type [test -n "$GLOB_H"] dirfd [test -n "$GLOB_H"]
--- a/modules/iconv-h +++ b/modules/iconv-h @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_ICONV_H
--- a/modules/inttypes-incomplete +++ b/modules/inttypes-incomplete @@ -9,8 +9,8 @@ include_next multiarch snippet/arg-nonnull +snippet/warn-on-use stdint -warn-on-use configure.ac: gl_INTTYPES_INCOMPLETE
--- a/modules/langinfo +++ b/modules/langinfo @@ -9,7 +9,7 @@ extensions include_next snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_LANGINFO_H
--- a/modules/locale +++ b/modules/locale @@ -10,8 +10,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use stddef -warn-on-use configure.ac: gl_LOCALE_H
--- a/modules/math +++ b/modules/math @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_MATH_H
--- a/modules/netdb +++ b/modules/netdb @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use sys_socket configure.ac:
--- a/modules/poll-h +++ b/modules/poll-h @@ -9,7 +9,7 @@ extensions include_next snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_POLL_H
--- a/modules/pty +++ b/modules/pty @@ -8,7 +8,7 @@ Depends-on: include_next snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_PTY_H
--- a/modules/search +++ b/modules/search @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_SEARCH_H
--- a/modules/signal +++ b/modules/signal @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use extensions configure.ac:
new file mode 100644 --- /dev/null +++ b/modules/snippet/warn-on-use @@ -0,0 +1,36 @@ +Description: +A C macro for emitting a warning if a function is used. + +Applicability: +all + +Files: +build-aux/warn-on-use.h +m4/warn-on-use.m4 + +Depends-on: + +configure.ac: + +Makefile.am: +BUILT_SOURCES += warn-on-use.h +# The warn-on-use.h that gets inserted into generated .h files is the same as +# build-aux/snippet/warn-on-use.h, except that it has the copyright header cut +# off. +warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h + $(AM_V_GEN)rm -f $@-t $@ && \ + sed -n -e '/^.ifndef/,$$p' \ + < $(top_srcdir)/build-aux/snippet/warn-on-use.h \ + > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t + +WARN_ON_USE_H=warn-on-use.h + +Include: + +License: +LGPLv2+ + +Maintainer: +Eric Blake
--- a/modules/spawn +++ b/modules/spawn @@ -10,7 +10,7 @@ sched snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_SPAWN_H
--- a/modules/stdio +++ b/modules/stdio @@ -9,8 +9,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use stddef -warn-on-use configure.ac: gl_STDIO_H
--- a/modules/stdlib +++ b/modules/stdlib @@ -10,9 +10,9 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use stddef unistd -warn-on-use configure.ac: gl_STDLIB_H
--- a/modules/string +++ b/modules/string @@ -10,8 +10,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use stddef -warn-on-use configure.ac: gl_HEADER_STRING_H
--- a/modules/strings +++ b/modules/strings @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_HEADER_STRINGS_H
--- a/modules/sys_file +++ b/modules/sys_file @@ -7,7 +7,7 @@ Depends-on: include_next -warn-on-use +snippet/warn-on-use configure.ac: gl_HEADER_SYS_FILE_H
--- a/modules/sys_ioctl +++ b/modules/sys_ioctl @@ -8,8 +8,8 @@ Depends-on: include_next snippet/c++defs +snippet/warn-on-use unistd -warn-on-use configure.ac: gl_SYS_IOCTL_H
--- a/modules/sys_select +++ b/modules/sys_select @@ -10,8 +10,8 @@ include_next signal snippet/c++defs +snippet/warn-on-use sys_time -warn-on-use configure.ac: gl_HEADER_SYS_SELECT
--- a/modules/sys_socket +++ b/modules/sys_socket @@ -12,9 +12,9 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use socklen sys_uio -warn-on-use configure.ac: gl_HEADER_SYS_SOCKET
--- a/modules/sys_stat +++ b/modules/sys_stat @@ -10,8 +10,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use time -warn-on-use configure.ac: gl_HEADER_SYS_STAT_H
--- a/modules/sys_time +++ b/modules/sys_time @@ -9,7 +9,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_HEADER_SYS_TIME_H
--- a/modules/sys_times +++ b/modules/sys_times @@ -8,7 +8,7 @@ Depends-on: include_next snippet/arg-nonnull -warn-on-use +snippet/warn-on-use configure.ac: gl_SYS_TIMES_H
--- a/modules/sys_utsname +++ b/modules/sys_utsname @@ -8,7 +8,7 @@ Depends-on: include_next snippet/arg-nonnull -warn-on-use +snippet/warn-on-use configure.ac: gl_SYS_UTSNAME_H
--- a/modules/sys_wait +++ b/modules/sys_wait @@ -8,7 +8,7 @@ Depends-on: include_next snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_SYS_WAIT_H
--- a/modules/termios +++ b/modules/termios @@ -8,7 +8,7 @@ Depends-on: include_next snippet/c++defs -warn-on-use +snippet/warn-on-use configure.ac: gl_TERMIOS_H
--- a/modules/time +++ b/modules/time @@ -10,7 +10,7 @@ include_next snippet/arg-nonnull snippet/c++defs -warn-on-use +snippet/warn-on-use stddef configure.ac:
--- a/modules/unistd +++ b/modules/unistd @@ -9,8 +9,8 @@ include_next snippet/arg-nonnull snippet/c++defs +snippet/warn-on-use stddef -warn-on-use configure.ac: gl_UNISTD_H
deleted file mode 100644 --- a/modules/warn-on-use +++ /dev/null @@ -1,35 +0,0 @@ -Description: -A C macro for emitting a warning if a function is used. - -Applicability: -all - -Files: -build-aux/warn-on-use.h -m4/warn-on-use.m4 - -Depends-on: - -configure.ac: - -Makefile.am: -BUILT_SOURCES += warn-on-use.h -# The warn-on-use.h that gets inserted into generated .h files is the same as -# build-aux/warn-on-use.h, except that it has the copyright header cut off. -warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h - $(AM_V_GEN)rm -f $@-t $@ && \ - sed -n -e '/^.ifndef/,$$p' \ - < $(top_srcdir)/build-aux/warn-on-use.h \ - > $@-t && \ - mv $@-t $@ -MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t - -WARN_ON_USE_H=warn-on-use.h - -Include: - -License: -LGPLv2+ - -Maintainer: -Eric Blake