From 1ccdf0e131a76926ae9603946f96b38cbe616667 Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Mon, 25 Dec 2023 15:56:16 +0000 Subject: [PATCH] fix version parser for clang (lsof-org#305) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b98eac6b..343b822c 100644 --- a/configure.ac +++ b/configure.ac @@ -561,7 +561,7 @@ AC_CONFIG_FILES([Makefile]) # Pass build configurations to version.h.in AC_SUBST(cc, $CC) -AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p')) +AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p;q')) AC_SUBST(ccflags, $CFLAGS) AC_SUBST(ldflags, "$LDFLAGS$LIBS") # Reproducible build