summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 56bba62..37b3f99 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,7 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AC_PREREQ(2.60)
-AC_INIT(libtbm-exynos4412, 1.0.0)
+AC_INIT(libtbm-exynos4412, 1.0.5)
AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([dist-bzip2])
@@ -37,10 +37,21 @@ AC_FUNC_ALLOCA
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
PKG_CHECK_MODULES(LIBDRM, libdrm)
+PKG_CHECK_MODULES(LIBDRM_EXYNOS, libdrm_exynos)
PKG_CHECK_MODULES(LIBTBM, libtbm)
+PKG_CHECK_MODULES(DLOG, dlog)
-LIBTBM_EXYNOS4412_CFLAGS="$LIBDRM_CFLAGS $LIBTBM_CFLAGS "
-LIBTBM_EXYNOS4412_LIBS="$LIBDRM_LIBS $LIBTBM_LIBS "
+AC_ARG_ENABLE(cachectrl,
+ AS_HELP_STRING([--enable-cachectrl],
+ [Enable cache control (default: enable)]),
+ [CACHE_CTRL=$enableval], [CACHE_CTRL=yes])
+
+if test "x$CACHE_CTRL" = xyes; then
+ AC_DEFINE(ENABLE_CACHECRTL, 1, [Enable cache control])
+fi
+
+LIBTBM_EXYNOS4412_CFLAGS="$LIBDRM_CFLAGS $LIBDRM_EXYNOS_CFLAGS $LIBTBM_CFLAGS $DLOG_CFLAGS "
+LIBTBM_EXYNOS4412_LIBS="$LIBDRM_LIBS $LIBDRM_EXYNOS_LIBS $LIBTBM_LIBS $DLOG_LIBS "
AC_SUBST(LIBTBM_EXYNOS4412_CFLAGS)
AC_SUBST(LIBTBM_EXYNOS4412_LIBS)