From 0fcc7f2987095f26a42751b69dd995fe98abdf59 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 5 May 2020 08:46:24 -0400 Subject: [PATCH] Fix default pkgconfig version to have no spaces (#2308) --- configure.ac | 3 +++ verilator.pc.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 180388b99..f4b209e27 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,10 @@ AC_INIT([Verilator],[4.035 devel], AC_CONFIG_HEADER(src/config_build.h) AC_CONFIG_FILES(Makefile docs/Makefile src/Makefile src/Makefile_obj include/verilated.mk include/verilated_config.h verilator.pc verilator-config.cmake verilator-config-version.cmake) +# Version AC_MSG_RESULT([configuring for $PACKAGE_STRING]) +PACKAGE_VERSION_NUMBER=`AS_ECHO("$PACKAGE_VERSION") | sed 's/ .*//g'` +AC_SUBST(PACKAGE_VERSION_NUMBER) # Ignore automake flags passed by Ubuntu builds AC_ARG_ENABLE([dependency-tracking], diff --git a/verilator.pc.in b/verilator.pc.in index 6191d3577..ed8b58d3a 100644 --- a/verilator.pc.in +++ b/verilator.pc.in @@ -7,7 +7,7 @@ includedir=@pkgdatadir@/include Name: verilator Description: fast free Verilog simulator URL: https://verilator.org -Version: @PACKAGE_VERSION@ +Version: @PACKAGE_VERSION_NUMBER@ Requires: Libs: Cflags: -I${includedir} -I${includedir}/vltstd