From: Bruno Haible Date: Sun, 5 Aug 2018 22:15:14 +0000 (+0200) Subject: iconv-h: Generate header file when module 'posixcheck' is in use. X-Git-Tag: v1.0~5497 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ea15aa4d315731a0a789aae5ef896c864a2c39df;p=gnulib.git iconv-h: Generate header file when module 'posixcheck' is in use. * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use, set ICONV_H to non-empty. --- diff --git a/ChangeLog b/ChangeLog index d1c7c254c6..c36294fa3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-08-05 Bruno Haible + + iconv-h: Generate header file when module 'posixcheck' is in use. + * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use, + set ICONV_H to non-empty. + 2018-08-05 Bruno Haible Optimize the "checking whether ... is declared without a macro" checks. diff --git a/m4/iconv_h.m4 b/m4/iconv_h.m4 index f910faf482..918969e911 100644 --- a/m4/iconv_h.m4 +++ b/m4/iconv_h.m4 @@ -1,4 +1,4 @@ -# iconv_h.m4 serial 9 +# iconv_h.m4 serial 10 dnl Copyright (C) 2007-2018 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -43,5 +43,6 @@ AC_DEFUN([gl_ICONV_H_DEFAULTS], REPLACE_ICONV_OPEN=0; AC_SUBST([REPLACE_ICONV_OPEN]) REPLACE_ICONV_UTF=0; AC_SUBST([REPLACE_ICONV_UTF]) ICONV_H=''; AC_SUBST([ICONV_H]) + m4_ifdef([gl_POSIXCHECK],[ICONV_H='iconv.h']) AM_CONDITIONAL([GL_GENERATE_ICONV_H], [test -n "$ICONV_H"]) ])