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_ARG_WITH(default-dlog, AS_HELP_STRING([--with-default-dlog=yes/no], [whether use dlog as a default log or not]),
41 [ use_dlog="$withval" ],
44 AM_CONDITIONAL(ENABLE_DLOG, test "x$use_dlog" = "xyes")
46 if test "x$use_dlog" = "xyes"; then
47 AC_DEFINE([ENABLE_DLOG], 1, "Use dlog as a default log")
50 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
51 if test x$wayland_scanner = x; then
52 AC_MSG_ERROR([wayland-scanner is needed to compile])
55 PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner >= 1.7.0)
57 PKG_CHECK_MODULES(TDM, dlog libtbm libpng pixman-1 wayland-server iniparser hal-api-tdm)
58 PKG_CHECK_MODULES(TDM_CLIENT, dlog libtbm wayland-client)
60 PKG_CHECK_MODULES(TTRACE,
62 [have_ttrace="yes"], [have_ttrace="no"])
63 if test "x$have_ttrace" = "xyes"; then
64 TDM_CFLAGS="$TDM_CFLAGS $TTRACE_CFLAGS"
65 TDM_LIBS="$TDM_LIBS $TTRACE_LIBS"
66 TDM_CLIENT_CFLAGS="$TDM_CLIENT_CFLAGS $TTRACE_CFLAGS"
67 TDM_CLIENT_LIBS="$TDM_CLIENT_LIBS $TTRACE_LIBS"
68 AC_DEFINE(HAVE_TTRACE, 1, [ttrace available])
74 AC_SUBST(TDM_CLIENT_CFLAGS)
75 AC_SUBST(TDM_CLIENT_LIBS)
77 # set the dir for the tdm module
78 DEFAULT_TDM_MODULE_PATH="${libdir}/tdm"
79 AC_ARG_WITH(tdm-module-path, AS_HELP_STRING([--with-tdm-module-path=PATH], [tdm module dir]),
80 [ TDM_MODULE_PATH="$withval" ],
81 [ TDM_MODULE_PATH="${DEFAULT_TDM_MODULE_PATH}" ])
82 AC_DEFINE_UNQUOTED(TDM_MODULE_PATH, "${TDM_MODULE_PATH}", [Directory for the modules of tdm])
83 AC_SUBST(TDM_MODULE_PATH)
85 # set the data dir for the tdm config
86 DEFAULT_TDM_DATA_PATH="${datadir}/tdm"
87 AC_ARG_WITH(tdm-data-path, AS_HELP_STRING([--with-tdm-data-path=PATH], [tdm data dir]),
88 [ TDM_DATA_PATH="$withval" ],
89 [ TDM_DATA_PATH="${DEFAULT_TDM_DATA_PATH}" ])
90 AC_DEFINE_UNQUOTED(TDM_DATA_PATH, "${TDM_DATA_PATH}", [Directory for the data of tdm])
91 AC_SUBST(TDM_DATA_PATH)
93 AC_SUBST([TDM_MAJOR_VERSION], [tdm_major_version])
94 AC_SUBST([TDM_MINOR_VERSION], [tdm_minor_version])
95 AC_SUBST([TDM_MICRO_VERSION], [tdm_micro_version])
96 AC_SUBST([TDM_VERSION], [tdm_version])
98 AC_DEFINE([TDM_MAJOR_VERSION], [tdm_major_version], [tdm ABI major version])
99 AC_DEFINE([TDM_MINOR_VERSION], [tdm_minor_version], [tdm ABI minor version])
100 AC_DEFINE([TDM_MICRO_VERSION], [tdm_micro_version], [tdm ABI macro version])
102 # For enumerating devices in test case
103 AC_SUBST(WARN_CFLAGS)
112 backends/dummy/Makefile
113 backends/virtual/Makefile
114 client/libtdm-client.pc
120 echo "$PACKAGE_STRING will be compiled with:"
122 echo "TDM_CFLAGS : $TDM_CFLAGS"
123 echo "TDM_LIBS : $TDM_LIBS"
124 echo "TDM_CLIENT_CFLAGS : $TDM_CLIENT_CFLAGS"
125 echo "TDM_CLIENT_LIBS : $TDM_CLIENT_LIBS"
126 echo "TDM_MODULE_PATH : $TDM_MODULE_PATH"
127 echo "TDM_DATA_PATH : $TDM_DATA_PATH"