2010-11-06 08:55:27 +08:00
|
|
|
AC_PREREQ([2.64])
|
|
|
|
AC_INIT([wayland],
|
2012-02-10 00:12:18 +08:00
|
|
|
[master],
|
2010-11-06 08:55:27 +08:00
|
|
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=wayland],
|
|
|
|
[wayland],
|
|
|
|
[http://wayland.freedesktop.org/])
|
|
|
|
|
2010-10-25 23:40:03 +08:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2010-11-06 08:55:27 +08:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2012-02-10 00:15:33 +08:00
|
|
|
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
|
2010-11-06 08:55:27 +08:00
|
|
|
|
2010-10-13 05:24:20 +08:00
|
|
|
AM_SILENT_RULES([yes])
|
2008-12-05 11:48:50 +08:00
|
|
|
|
2010-11-06 08:55:27 +08:00
|
|
|
# Check for programs
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
# Initialize libtool
|
|
|
|
LT_PREREQ([2.2])
|
|
|
|
LT_INIT
|
|
|
|
|
2008-12-05 11:48:50 +08:00
|
|
|
PKG_PROG_PKG_CONFIG()
|
|
|
|
PKG_CHECK_MODULES(FFI, [libffi])
|
|
|
|
|
2011-01-28 21:47:21 +08:00
|
|
|
if test "x$GCC" = "xyes"; then
|
2008-12-05 11:48:50 +08:00
|
|
|
GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
|
|
|
|
fi
|
|
|
|
AC_SUBST(GCC_CFLAGS)
|
|
|
|
|
2011-05-06 14:13:36 +08:00
|
|
|
AC_ARG_ENABLE([scanner],
|
|
|
|
[AC_HELP_STRING([--disable-scanner],
|
|
|
|
[Disable compilation of wayland-scannner])],
|
|
|
|
[],
|
|
|
|
[enable_scanner=yes])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(ENABLE_SCANNER, test "x$enable_scanner" = xyes)
|
|
|
|
|
2010-08-03 21:26:44 +08:00
|
|
|
EXPAT_LIB=""
|
|
|
|
AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
|
|
|
|
[ expat=$withval
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$withval/include"
|
|
|
|
LDFLAGS="$LDFLAGS -L$withval/lib" ] )
|
2011-08-04 13:56:04 +08:00
|
|
|
if test "x$enable_scanner" = "xyes"; then
|
|
|
|
AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
|
|
|
|
[AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
|
|
|
|
AC_CHECK_LIB(expat, XML_ParserCreate, [EXPAT_LIBS="-lexpat"],
|
|
|
|
[AC_MSG_ERROR([Can't find expat library. Please install expat.])])
|
|
|
|
AC_SUBST(EXPAT_LIBS)
|
|
|
|
fi
|
2010-08-03 21:26:44 +08:00
|
|
|
|
2012-02-23 13:58:37 +08:00
|
|
|
AC_PATH_PROG(XSLTPROC, xsltproc)
|
|
|
|
AM_CONDITIONAL([HAVE_XSLTPROC], [test $XSLTPROC != ""])
|
|
|
|
|
2012-02-24 07:42:05 +08:00
|
|
|
AC_PATH_PROG(PUBLICAN, publican)
|
|
|
|
AM_CONDITIONAL([HAVE_PUBLICAN], [test $PUBLICAN != ""])
|
|
|
|
|
2011-02-15 11:17:41 +08:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
wayland-scanner.m4
|
2012-02-24 07:42:05 +08:00
|
|
|
doc/Makefile
|
|
|
|
doc/Wayland/Makefile
|
2011-08-13 03:09:00 +08:00
|
|
|
src/Makefile
|
|
|
|
src/wayland-server.pc
|
2012-02-23 13:58:37 +08:00
|
|
|
src/wayland-client.pc
|
|
|
|
protocol/Makefile])
|
2008-12-11 02:44:23 +08:00
|
|
|
AC_OUTPUT
|