From e85c769e6171bf2811be1fae624666b32fa97fe4 Mon Sep 17 00:00:00 2001 From: AngryLoki Date: Mon, 25 Dec 2023 19:25:51 +0300 Subject: [PATCH] fix version parser for clang (lsof-org#305) (#306) --- 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