From 63883a091e1c124c77c6bd86391391d1bf1a02e5 Mon Sep 17 00:00:00 2001 From: rich burridge Date: Fri, 8 Jul 2016 19:08:45 -0700 Subject: [PATCH] Fix conststrings compiler version string generation. (closes #3852) The Makefile.am tries compiler flags -v, --version, and -V but neglected to filter error messages if these flags aren't recognized. --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 82fe15df..a0524956 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,9 +99,9 @@ mutt_dotlock.c: dotlock.c conststrings.c: txt2c config.status ( \ - $(CC) -v || \ - $(CC) --version || \ - $(CC) -V || \ + ($(CC) -v >/dev/null 2>&1 && $(CC) -v) || \ + ($(CC) --version >/dev/null 2>&1 && $(CC) --version) || \ + ($(CC) -V >/dev/null 2>&1 && $(CC) -V) || \ echo "unknown compiler"; \ ) 2>&1 | ${srcdir}/txt2c.sh cc_version >conststrings_c echo "$(CFLAGS)" | ${srcdir}/txt2c.sh cc_cflags >>conststrings_c -- 2.40.0