From 5f13d59080e585bc60d67cd00fd2ceb8671c5c06 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 6 Apr 2015 16:37:22 +0200 Subject: [PATCH] Add xcb-proto version to xcb-errors.pc Signed-off-by: Uli Schlachter --- configure.ac | 4 ++++ xcb-errors.pc.in | 1 + 2 files changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index cc2e83e..11ee455 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,10 @@ XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR) AC_SUBST(XCBPROTO_XCBINCLUDEDIR) +# Find the xcb-proto version +XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` +AC_SUBST(XCBPROTO_VERSION) + AC_OUTPUT([Makefile xcb-errors.pc ]) diff --git a/xcb-errors.pc.in b/xcb-errors.pc.in index f292712..c0842d5 100644 --- a/xcb-errors.pc.in +++ b/xcb-errors.pc.in @@ -2,6 +2,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ +xcbproto_version=@XCBPROTO_VERSION@ Name: XCB errors library Description: XCB errors utility library