3 AC_INIT([wayland-fits],
5 [https://bugs.freedesktop.org/enter_bug.cgi?product=wayland],
7 [http://wayland.freedesktop.org/])
9 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
11 AC_CONFIG_HEADERS([config.h])
12 AC_CONFIG_MACRO_DIR([m4])
22 LDFLAGS="-Wl,--no-as-needed"
24 # Required minimum versions for dependencies
25 m4_define([check_req_version], [0.9.8])
26 # m4_define([pixman1_req_version], [0.29.3])
27 m4_define([wayland_req_version], [1.0.6])
28 m4_define([weston_req_version], [1.0.6])
29 m4_define([efl_req_version], [1.7.6])
31 PKG_CHECK_MODULES([CHECK], [check >= check_req_version])
32 PKG_CHECK_MODULES([WAYLAND],
34 wayland-client >= wayland_req_version
35 wayland-egl >= wayland_req_version
36 wayland-cursor >= wayland_req_version
39 PKG_CHECK_MODULES(WAYLAND_SERVER, [wayland-server >= wayland_req_version])
42 want_weston_extensions="auto"
43 AC_ARG_ENABLE([weston-extensions],
44 [AC_HELP_STRING([--disable-weston-extensions], [disable Weston extension support. @<:@default=detect@:>@])],
45 [want_weston_extensions=$enableval], [])
47 if test "x$want_weston_extensions" != "xno"; then
48 PKG_CHECK_MODULES([WESTON],
50 weston >= weston_req_version
54 AC_DEFINE(HAVE_WESTON, 1, [Support for Weston extensions])
56 PKG_CHECK_MODULES([WESTON_SDK2],
61 AC_DEFINE(HAVE_WESTON_SDK2, 1, [Support for Weston 1.1.0 extensions])
62 have_weston_sdk2="yes"
64 [have_weston_sdk2="no"]
73 if test "x$want_weston_extensions" = "xyes" -a "x$have_weston" = "xno"; then
76 weston extension support requested, but one of the following dependency requirements were not met:
78 weston >= weston_req_version
82 AM_CONDITIONAL([BUILD_WESTON_EXTENSIONS], [test x${have_weston} = xyes])
86 AC_ARG_ENABLE([efl-tests],
87 [AC_HELP_STRING([--disable-efl-tests], [disable EFL Tests. @<:@default=detect@:>@])],
88 [want_efl_tests=$enableval], [])
90 if test "x$want_efl_tests" != "xno"; then
91 PKG_CHECK_MODULES([EFL],
93 elementary >= efl_req_version
94 ecore-wayland >= efl_req_version
95 evas-wayland-egl >= efl_req_version
96 evas-wayland-shm >= efl_req_version
99 AC_DEFINE(HAVE_EFL, 1, [Support for EFL Tests])
108 if test "x$want_efl_tests" = "xyes" -a "x$have_efl" = "xno"; then
111 EFL tests requested, but one of the following dependency requirements were not met:
113 elementary >= efl_req_version
114 ecore-wayland >= efl_req_version
115 evas-wayland-egl >= efl_req_version
116 evas-wayland-shm >= efl_req_version
119 AM_CONDITIONAL([BUILD_EFL_TESTS], [test x$have_efl = xyes])
121 WAYLAND_SCANNER_RULES(['$(top_srcdir)/src/extensions/protocol'])
123 AC_CONFIG_FILES([Makefile
128 src/extensions/Makefile
129 src/extensions/weston/Makefile
130 src/extensions/protocol/Makefile])