3 m4_define([tdm_major_version], [2])
4 m4_define([tdm_minor_version], [0])
5 m4_define([tdm_micro_version], [0])
6 m4_define([tdm_version],
7 [tdm_major_version.tdm_minor_version.tdm_micro_version])
11 [https://www.tizen.org],
14 AC_CONFIG_HEADERS([config.h])
15 AC_CONFIG_SRCDIR([Makefile.am])
16 AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
17 AM_MAINTAINER_MODE([enable])
23 AC_USE_SYSTEM_EXTENSIONS
29 LT_INIT([disable-static])
31 # Enable quiet compiles on automake 1.11.
32 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
34 AC_ARG_WITH(haltests, AS_HELP_STRING([--with-haltests=yes/no], [whether build/run unit tests or not]),
35 [ haltests="$withval" ],
38 AM_CONDITIONAL(HAVE_HALTESTS, test "x$haltests" = "xyes")
40 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
41 if test x$wayland_scanner = x; then
42 AC_MSG_ERROR([wayland-scanner is needed to compile])
45 PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner >= 1.7.0)
47 PKG_CHECK_MODULES(TDM, dlog libtbm libpng pixman-1 wayland-server iniparser)
48 PKG_CHECK_MODULES(TDM_CLIENT, dlog wayland-client)
50 PKG_CHECK_MODULES(TTRACE,
52 [have_ttrace="yes"], [have_ttrace="no"])
53 if test "x$have_ttrace" = "xyes"; then
54 TDM_CFLAGS="$TDM_CFLAGS $TTRACE_CFLAGS"
55 TDM_LIBS="$TDM_LIBS $TTRACE_LIBS"
56 TDM_CLIENT_CFLAGS="$TDM_CLIENT_CFLAGS $TTRACE_CFLAGS"
57 TDM_CLIENT_LIBS="$TDM_CLIENT_LIBS $TTRACE_LIBS"
58 AC_DEFINE(HAVE_TTRACE, 1, [ttrace available])
64 AC_SUBST(TDM_CLIENT_CFLAGS)
65 AC_SUBST(TDM_CLIENT_LIBS)
67 # set the dir for the tdm module
68 DEFAULT_TDM_MODULE_PATH="${libdir}/tdm"
69 AC_ARG_WITH(tdm-module-path, AS_HELP_STRING([--with-tdm-module-path=PATH], [tdm module dir]),
70 [ TDM_MODULE_PATH="$withval" ],
71 [ TDM_MODULE_PATH="${DEFAULT_TDM_MODULE_PATH}" ])
72 AC_DEFINE_UNQUOTED(TDM_MODULE_PATH, "${TDM_MODULE_PATH}", [Directory for the modules of tdm])
73 AC_SUBST(TDM_MODULE_PATH)
75 # set the data dir for the tdm config
76 DEFAULT_TDM_DATA_PATH="${datadir}/tdm"
77 AC_ARG_WITH(tdm-data-path, AS_HELP_STRING([--with-tdm-data-path=PATH], [tdm data dir]),
78 [ TDM_DATA_PATH="$withval" ],
79 [ TDM_DATA_PATH="${DEFAULT_TDM_DATA_PATH}" ])
80 AC_DEFINE_UNQUOTED(TDM_DATA_PATH, "${TDM_DATA_PATH}", [Directory for the data of tdm])
81 AC_SUBST(TDM_DATA_PATH)
83 AC_SUBST([TDM_MAJOR_VERSION], [tdm_major_version])
84 AC_SUBST([TDM_MINOR_VERSION], [tdm_minor_version])
85 AC_SUBST([TDM_MICRO_VERSION], [tdm_micro_version])
86 AC_SUBST([TDM_VERSION], [tdm_version])
88 AC_DEFINE([TDM_MAJOR_VERSION], [tdm_major_version], [tdm ABI major version])
89 AC_DEFINE([TDM_MINOR_VERSION], [tdm_minor_version], [tdm ABI minor version])
90 AC_DEFINE([TDM_MICRO_VERSION], [tdm_micro_version], [tdm ABI macro version])
92 # For enumerating devices in test case
102 backends/dummy/Makefile
103 backends/virtual/Makefile
104 client/libtdm-client.pc
110 echo "$PACKAGE_STRING will be compiled with:"
112 echo "TDM_CFLAGS : $TDM_CFLAGS"
113 echo "TDM_LIBS : $TDM_LIBS"
114 echo "TDM_CLIENT_CFLAGS : $TDM_CLIENT_CFLAGS"
115 echo "TDM_CLIENT_LIBS : $TDM_CLIENT_LIBS"
116 echo "TDM_MODULE_PATH : $TDM_MODULE_PATH"
117 echo "TDM_DATA_PATH : $TDM_DATA_PATH"