diff options
author | Adam Jackson <ajax@redhat.com> | 2007-11-05 17:17:25 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2007-11-05 17:18:46 -0500 |
commit | 58332894c061ae96d6a457f65266660f5f65e88b (patch) | |
tree | 2ebe775e79a23728b28f8e226c6facc733ea9f90 | |
parent | 632c33c5c18b3e091c4fce98280af4d583e99640 (diff) |
Export the server ABI versions from xorg-server.pc
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | xorg-server.pc.in | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 10f580f47..a09a5c2bc 100644 --- a/configure.ac +++ b/configure.ac @@ -1536,6 +1536,17 @@ dnl has it in libc), or if libdl is needed to get it. AC_SUBST([sdkdir]) AC_SUBST([extdir]) AC_SUBST([logdir]) + + # stuff the ABI versions into the pc file too + extract_abi() { + grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' + } + abi_ansic=`extract_abi ANSIC` + abi_videodrv=`extract_abi VIDEODRV` + abi_xinput=`extract_abi XINPUT` + abi_extension=`extract_abi EXTENSION` + abi_font=`extract_abi FONT` + AC_SUBST([abi_ansic abi_videodrv abi_xinput abi_extension abi_font]) fi AM_CONDITIONAL([XORG], [test "x$XORG" = xyes]) AM_CONDITIONAL([XORG_BUS_LINUXPCI], [test "x$xorg_bus_linuxpci" = xyes]) diff --git a/xorg-server.pc.in b/xorg-server.pc.in index c1cdb7d2a..53b4ed28c 100644 --- a/xorg-server.pc.in +++ b/xorg-server.pc.in @@ -5,6 +5,12 @@ includedir=@includedir@ moduledir=@moduledir@ sdkdir=@sdkdir@ +abi_ansic=@abi_ansic@ +abi_videodrv=@abi_videodrv@ +abi_xinput=@abi_xinput@ +abi_extension=@abi_extension@ +abi_font=@abi_font@ + Name: xorg-server Description: Modular X.Org X Server Version: @PACKAGE_VERSION@ |