commit c52049bb83d71b926e6b949362a47bde9f8d5653
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Sep 29 18:01:14 2021 +0200
Autoconf build: Fix the invalid test for '-Wno-deprecated-copy' flag
(shamelessly stolen from c26db650a1, which was for cmake build)
The original test was always successfull, even if the flag was invalid.
But checking for '-Wdeprecated-copy' instead yields to error if the
warning does not exist. Existent warning for 'deprecated-copy' implies
that 'no-deprecated-copy' also exist.
---
config/lyxinclude.m4 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index a3f89a5..0b41e21 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -390,8 +390,8 @@ if test x$GXX = xyes; then
dnl Shut off warning -Wdeprecated-copy, which triggers too much
dnl note that g++ always accepts -Wno-xxx, even when -Wxxx is an error.
AC_LANG_PUSH(C++)
- AX_CHECK_COMPILE_FLAG([-Wno-deprecated-copy],
- [AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy"], [], [-Werror])
+ AX_CHECK_COMPILE_FLAG([-Wdeprecated-copy],
+ [AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy"])
AC_LANG_POP(C++)
fi
case $gxx_version in
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs