From: Bartosz Golaszewski Date: Sat, 14 Jan 2017 17:32:22 +0000 (+0100) Subject: build: drop redundant version variables X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5200b6b3daceaf9de0d4f866e0b755dbe6864e0c;p=qemu-gpiodev%2Flibgpiod.git build: drop redundant version variables Just use the variable defined by AC_INIT(). Signed-off-by: Bartosz Golaszewski --- diff --git a/Makefile.am b/Makefile.am index 9c817f1..9e734fc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,7 +17,7 @@ include_HEADERS = gpiod.h lib_LTLIBRARIES = libgpiod.la libgpiod_la_SOURCES = core.c libgpiod_la_CFLAGS = -g -libgpiod_la_LDFLAGS = -version-number $(VERSION_MAJOR):$(VERSION_MINOR):$(VERSION_RELEASE) +libgpiod_la_LDFLAGS = -version-number $(subst .,:,$(PACKAGE_VERSION)) if WITH_TOOLS diff --git a/configure.ac b/configure.ac index dbf76a7..5420682 100644 --- a/configure.ac +++ b/configure.ac @@ -13,10 +13,6 @@ AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -AC_SUBST(VERSION_MAJOR, 0) -AC_SUBST(VERSION_MINOR, 0) -AC_SUBST(VERSION_RELEASE, 0) - AC_CONFIG_HEADER([config.h]) AC_ARG_ENABLE([tools],