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