[libdvbpsi-devel] configure.ac: add --enable-compat

Jean-Paul Saman git at videolan.org
Mon Jan 11 09:43:21 CET 2016


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Mon Nov  2 14:46:35 2015 +0100| [a2f0522afec8e9e163d276c6822ae78eb557587e] | committer: Jean-Paul Saman

configure.ac: add --enable-compat

Enable the API compatibility layer that supports wraps the new API in old API.
Its use is meant only for easing transistion to the new API and will remain exactly
one release. It is scheduled to be removed in version 2.1.

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=a2f0522afec8e9e163d276c6822ae78eb557587e
---

 configure.ac |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/configure.ac b/configure.ac
index ce0359a..26dcedc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,18 @@ if test "$release" != "true"; then
   CFLAGS_dist="${CFLAGS_dist} -DDVBPSI_DIST"
 fi
 
+dnl --enable-compat
+AC_ARG_ENABLE(compat,
+[  --enable-compat         Enable API compatibility layer (default disabled)],
+[case "${enableval}" in
+  yes) compat=true ;;
+  no)  compat=false ;;
+  *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat) ;;
+esac],[compat=false])
+if test "$compat" = "true"; then
+  CFLAGS_dist="${CFLAGS_dist} -DDVBPSI_USE_DEPRECATED_DR_API"
+fi
+
 dnl compile feature tests
 CFLAGS="${CFLAGS_save} ${CFLAGS_dist}"
 
@@ -150,6 +162,7 @@ libdvbpsi configuration
 libdvbpsi version     : ${VERSION}
 debug                 : ${debug}
 release               : ${release}
+compatibility old api : ${compat}
 compile flags         : ${CFLAGS}
 build for             : ${SYS}
 "



More information about the libdvbpsi-devel mailing list