dnl $Id$ dnl dnl Copyright (c) 2003-2007 dnl The Xfce development team. All rights reserved. dnl dnl Written for Xfce by Benedikt Meurer . dnl dnl Version information m4_define([xfsm_version_major], [4]) m4_define([xfsm_version_minor], [5]) m4_define([xfsm_version_micro], [91]) m4_define([xfsm_version_nano], []) m4_define([xfsm_version_build], [@REVISION@]) m4_define([xfsm_version_tag], []) m4_define([xfsm_version], [xfsm_version_major().xfsm_version_minor().xfsm_version_micro()ifelse(xfsm_version_nano(), [], [], [.xfsm_version_nano()])ifelse(xfsm_version_tag(), [svn], [xfsm_version_tag()[-r]xfsm_version_build()], [])]) dnl Initialize autoconf AC_COPYRIGHT([Copyright (c) 2003-2007 The Xfce development team. All rights reserved. Written for Xfce by Benedikt Meurer .]) AC_INIT([xfce4-session], [xfsm_version], [http://bugs.xfce.org/]) AC_PREREQ([2.50]) AC_REVISION([$Id$]) AC_PROG_MAKE_SET() dnl Initialize automake AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()]) AM_CONFIG_HEADER([config.h]) AM_MAINTAINER_MODE() dnl check for UNIX variants AC_AIX() AC_ISC_POSIX() AC_MINIX() AM_CONDITIONAL([HAVE_OS_CYGWIN], [test x"`uname | grep \"CYGWIN\"`" != x""]) if test x"`uname | grep \"CYGWIN\"`" != x""; then AC_DEFINE([HAVE_OS_CYGWIN], [1], [Compiling under cygwin]) fi dnl check for basic programs AC_PROG_CC() AM_PROG_CC_C_O() AC_PROG_INSTALL() AC_PROG_INTLTOOL() AC_PROG_LIBTOOL() dnl check for standard header files AC_HEADER_STDC AC_CHECK_HEADERS([asm/unistd.h errno.h fcntl.h limits.h linux/ioprio.h \ netdb.h signal.h stdarg.h sys/param.h sys/resource.h \ sys/socket.h sys/time.h sys/wait.h sys/utsname.h time.h \ unistd.h]) AC_CHECK_FUNCS([getaddrinfo gethostbyname gethostname setsid \ sigaction strdup sync vfork]) dnl Check for X11 installed XDT_CHECK_LIBX11_REQUIRE() dnl Check for session management support XDT_CHECK_LIBSM() dnl Check for _IceTransNoListen ac_LIBS="$LIBS" LIBS="$LIBS $LIBSM_LDFLAGS $LIBSM_LIBS" AC_CHECK_FUNCS([_IceTransNoListen]) LIBS="$ac_LIBS" dnl Check for i18n support XDT_I18N([@LINGUAS@]) dnl Check for required packages XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.5.91]) XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.5.91]) XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-1.0], [2.12]) XDT_CHECK_PACKAGE([DBUS], [dbus-1], [1.0.0]) XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [0.73]) XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.5.91svn-r28290]) XDT_CHECK_PACKAGE([LIBGLADE], [libglade-2.0], [2.0.0]) dnl Check for gnome support XDT_CHECK_OPTIONAL_PACKAGE([GNOME], [gconf-2.0], [2.4.0], [gnome], [Assistive technologies support], [no]) XDT_CHECK_OPTIONAL_PACKAGE([GNOME_KEYRING], [gnome-keyring-1], [2.22], [libgnome-keyring], [Extra gnome-keyring compatibility support], [no]) dnl Check for debugging support BM_DEBUG_SUPPORT() dnl Check for iceauth AC_PATH_PROG([ICEAUTH], [iceauth]) if test x"$ICEAUTH" != x""; then AC_DEFINE_UNQUOTED([ICEAUTH_CMD], ["$ICEAUTH"], [path to iceauth]) else AC_MSG_ERROR([iceauth missing, please check your X11 installation]) fi dnl Check for rm AC_PATH_PROG([RM], [rm]) if test x"$RM" != x""; then AC_DEFINE_UNQUOTED([RM_CMD], ["$RM"], [path to rm]) fi dnl Check for legacy session management AC_ARG_ENABLE([legacy-sm], AC_HELP_STRING([--enable-legacy-sm], [Enable X11R5 session management]) AC_HELP_STRING([--disable-legacy-sm], [Disable X11R5 session management]), [], [enable_legacy_sm=yes]) AC_MSG_CHECKING([whether to enable X11R5 session management]) if test x"$enable_legacy_sm" != x"yes"; then AC_MSG_RESULT([no]) else AC_DEFINE([LEGACY_SESSION_MANAGEMENT], [1], [Define for X11R5 sm compat]) AC_MSG_RESULT([yes]) fi dnl Check whether to create session screenshots AC_ARG_ENABLE([session-screenshots], AC_HELP_STRING([--enable-session-screenshots], [Create screenshots of sessions on logout]), [], [enable_session_screenshots=no]) AC_MSG_CHECKING([whether to create screenshots of sessions on logout]) if test x"$enable_session_screenshots" != x"yes"; then AC_MSG_RESULT([no]) else AC_DEFINE([SESSION_SCREENSHOTS], [1], [Define for session screenshots]) AC_MSG_RESULT([yes]) fi AC_OUTPUT([ Makefile xfce4-session.spec doc/Makefile doc/C/Makefile doc/C/images/Makefile doc/fr/Makefile doc/fr/images/Makefile engines/Makefile engines/balou/Makefile engines/balou/scripts/Makefile engines/balou/themes/Makefile engines/balou/themes/Default/Makefile engines/mice/Makefile engines/simple/Makefile icons/Makefile icons/48x48/Makefile icons/64x64/Makefile icons/72x72/Makefile icons/128x128/Makefile icons/scalable/Makefile libxfsm/Makefile libxfsm/xfce4-session-2.0.pc po/Makefile.in settings/Makefile xfce4-session/Makefile xfce4-session-logout/Makefile xfce4-tips/Makefile xfce4-tips/data/Makefile xfsm-shutdown-helper/Makefile ])