3 m4_define([wayland_major_version], [0])
4 m4_define([wayland_minor_version], [89])
5 m4_define([wayland_micro_version], [0])
6 m4_define([wayland_version],
7 [wayland_major_version.wayland_minor_version.wayland_micro_version])
11 [https://bugs.freedesktop.org/enter_bug.cgi?product=wayland],
13 [http://wayland.freedesktop.org/])
15 AC_SUBST([WAYLAND_VERSION_MAJOR], [wayland_major_version])
16 AC_SUBST([WAYLAND_VERSION_MINOR], [wayland_minor_version])
17 AC_SUBST([WAYLAND_VERSION_MICRO], [wayland_micro_version])
18 AC_SUBST([WAYLAND_VERSION], [wayland_version])
20 AC_CONFIG_HEADERS([config.h])
21 AC_CONFIG_MACRO_DIR([m4])
23 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
25 AM_SILENT_RULES([yes])
35 PKG_CHECK_MODULES(FFI, [libffi])
37 if test "x$GCC" = "xyes"; then
38 GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
42 AC_CHECK_FUNCS([accept4])
44 AC_ARG_ENABLE([scanner],
45 [AC_HELP_STRING([--disable-scanner],
46 [Disable compilation of wayland-scannner])],
50 AC_ARG_ENABLE([documentation],
51 [AC_HELP_STRING([--disable-documentation],
52 [Disable building the documentation])],
54 [enable_documentation=yes])
56 AM_CONDITIONAL(ENABLE_SCANNER, test "x$enable_scanner" = xyes)
59 AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
61 CPPFLAGS="$CPPFLAGS -I$withval/include"
62 LDFLAGS="$LDFLAGS -L$withval/lib" ] )
63 if test "x$enable_scanner" = "xyes"; then
64 AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
65 [AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
66 AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
67 [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
71 AC_PATH_PROG(XSLTPROC, xsltproc)
72 AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"])
74 if test "x$enable_documentation" = "xyes"; then
75 AC_PATH_PROG(PUBLICAN, publican)
77 AM_CONDITIONAL([HAVE_PUBLICAN], [test "x$PUBLICAN" != "x"])
79 AC_CONFIG_FILES([Makefile
82 cursor/wayland-cursor.pc
83 cursor/wayland-cursor-uninstalled.pc
87 src/wayland-server-uninstalled.pc
88 src/wayland-client-uninstalled.pc