dnl Process this file with autoconf to produce a configure script.
-AC_INIT(lightdm, 1.7.6)
+AC_INIT(lightdm, 1.9.6)
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
AC_PROG_LIBTOOL
AM_MAINTAINER_MODE
+dnl Enable compile warnings (only supporting GCC)
+if test "x$GCC" == xyes; then
+ WARN_CFLAGS="-Wall \
+ -Wstrict-prototypes \
+ -Wnested-externs \
+ -Werror=missing-prototypes \
+ -Werror=implicit-function-declaration \
+ -Werror=pointer-arith \
+ -Werror=init-self \
+ -Werror=format-security \
+ -Werror=format=2 \
+ -Werror=missing-include-dirs"
+ WARN_CXXFLAGS="-Wall"
+fi
+AC_SUBST(WARN_CFLAGS)
+AC_SUBST(WARN_CXXFLAGS)
+
GOBJECT_INTROSPECTION_CHECK(0.9.5)
dnl ###########################################################################
[enable_liblightdm_qt4=$enableval],
[enable_liblightdm_qt4="auto"])
compile_liblightdm_qt4=no
-if test x"$enable_liblightdm_qt4" != "xno"; then
+if test x"$enable_liblightdm_qt4" = "xyes" -o \( x"$enable_liblightdm_qt4" = "xauto" -a x$compile_liblightdm_gobject = xyes \) ; then
PKG_CHECK_MODULES(LIBLIGHTDM_QT4, [
QtCore
QtDBus
if test x"$(readlink $(which $MOC4))" = xqtchooser; then
MOC4="$MOC4 --qt=qt4"
fi
+ if test "x$compile_liblightdm_gobject" != xyes; then
+ AC_MSG_FAILURE(
+ [liblightdm-gobject is required to compile liblightdm-qt])
+ fi
],
[if test "x$enable_liblightdm_qt4" != xauto; then
AC_MSG_FAILURE(
AC_CONFIG_FILES([
Makefile
+common/Makefile
data/Makefile
doc/Makefile
help/Makefile
src/Makefile
tests/Makefile
tests/src/Makefile
-utils/Makefile
])
AC_OUTPUT