[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] warnings: fix compilation with old autoconf
From: |
Bruno Haible |
Subject: |
Re: [PATCH] warnings: fix compilation with old autoconf |
Date: |
Fri, 25 Aug 2017 08:43:02 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-92-generic; KDE/5.18.0; x86_64; ; ) |
Hi Eric,
> @@ -59,7 +59,8 @@ AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS],
> [_AC_LANG_DISPATCH([$0], _AC_LANG, $@)])
>
> # Specialization for _AC_LANG = C. This macro can be AC_REQUIREd.
> -AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)],
> +# Use of m4_defun rather than AC_DEFUN works around a bug in autoconf <
> 2.63b.
> +m4_defun([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)],
> [
> AC_LANG_PUSH([C])
> gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL
> @@ -67,7 +68,8 @@ AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)],
> ])
>
> # Specialization for _AC_LANG = C++. This macro can be AC_REQUIREd.
> -AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)],
> +# Use of m4_defun rather than AC_DEFUN works around a bug in autoconf <
> 2.63b.
> +m4_defun([gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)],
> [
> AC_LANG_PUSH([C++])
> gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL
Is m4_defun sufficient for AC_REQUIRE to work? The comments state that it is
essential that these macros can be AC_REQUIREd. This is needed for
gl_WARN_ADD (warnings.m4 line 94).
Bruno