Newer
Older
Olivier Fourdan
committed
AC_PREREQ(2.52)
VERSION=`date +%y%m%d`
AM_INIT_AUTOMAKE(xfwm4, $VERSION)
Olivier Fourdan
committed
## libtool support (for plugins)
Olivier Fourdan
committed
# Honor aclocal flags
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
GETTEXT_PACKAGE=xfwm4
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Name of default gettext domain])
ALL_LINGUAS="ar de es es_MX fi fr nl pl zh_CN"
AC_PROG_CC
AC_PROG_INSTALL
AC_C_INLINE
AC_C_CONST
AC_PATH_XTRA
AC_HEADER_STDC
AC_CHECK_HEADERS(stdlib.h string.h unistd.h)
AC_CHECK_LIB(X11, main,, AC_MSG_ERROR([libX11 is missing from your system: Make sure you have both the X Window System libraries and development headers correctly installed]), $X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS)
AC_CHECK_LIB(Xext, main,, AC_MSG_ERROR([The X Window System installed on this machine does not support the shape extension]), $X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS)
AC_CHECK_LIB(Xpm, main,, AC_MSG_ERROR([libXpm is missing from your system: Make sure you have both the Xpm libraries and development headers correctly installed]), $X_CFLAGS $X_PRE_LIBS $X_EXTRA_LIBS $X_LIBS)
AC_CHECK_FUNCS(malloc setlocale strchr strdup strrchr strstr)
Olivier Fourdan
committed
AC_ARG_ENABLE(debug, [ --enable-debug use this option if you want to debug xfwm4], [ AC_DEFINE(DEBUG, 1, [Define to 1 for debug.]) ],)
## Versions of dependencies
GLIB_REQUIRED_VERSION=2.0.0
GTK_REQUIRED_VERSION=2.0.0
PANGO_REQUIRED_VERSION=1.0.0
STARTUP_NOTIFICATION_VERSION=0.4
Olivier Fourdan
committed
AC_DEFINE_UNQUOTED(GLIB_REQUIRED_VERSION, $GLIB_REQUIRED_VERSION, [Define glib required version.])
AC_DEFINE_UNQUOTED(GTK_REQUIRED_VERSION, $GTK_REQUIRED_VERSION, [Define gtk required version.])
AC_DEFINE_UNQUOTED(PANGO_REQUIRED_VERSION, $PANGO_REQUIRED_VERSION, [Define pango required version.])
AC_DEFINE_UNQUOTED(LIBXFCEGUI4_REQUIRED_VERSION, $LIBXFCEGUI4_REQUIRED_VERSION, [Define libxfcegui4 required version.])
Olivier Fourdan
committed
AC_DEFINE_UNQUOTED(LIBXFCE4MCS_REQUIRED_VERSION, $LIBXFCE4MCS_REQUIRED_VERSION, [Define libxfce4mcs required version.])
Olivier Fourdan
committed
AC_SUBST(GLIB_REQUIRED_VERSION)
AC_SUBST(GTK_REQUIRED_VERSION)
AC_SUBST(PANGO_REQUIRED_VERSION)
AC_SUBST(LIBXFCEGUI4_REQUIRED_VERSION)
AC_SUBST(LIBXFCE4MCS_REQUIRED_VERSION)
Olivier Fourdan
committed
PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION libxfcegui4-1.0 >= $LIBXFCEGUI4_REQUIRED_VERSION)
Olivier Fourdan
committed
PKG_CHECK_MODULES(MCS_CLIENT, libxfce4mcs-client-1.0 >= $LIBXFCE4MCS_REQUIRED_VERSION)
PKG_CHECK_MODULES(MCS_MANAGER, libxfce4mcs-manager-1.0 >= $LIBXFCE4MCS_REQUIRED_VERSION)
PKG_CHECK_MODULES(XFCE_MCS_MANAGER, xfce-mcs-manager = 1)
AC_MSG_CHECKING([Startup notification library >= $STARTUP_NOTIFICATION_VERSION])
if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_VERSION libstartup-notification-1.0; then
have_startup_notification=yes
else
have_startup_notification=no
fi
AC_MSG_RESULT($have_startup_notification)
if test x$have_startup_notification = xyes; then
AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define startup notification support])
PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION)
fi
Olivier Fourdan
committed
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
if test x"$GDK_PIXBUF_CSOURCE" = xno; then
AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK])
fi
AC_SUBST(GDK_PIXBUF_CSOURCE)
Olivier Fourdan
committed
Makefile
Olivier Fourdan
committed
src/Makefile
Olivier Fourdan
committed
mcs-plugin/Makefile
Olivier Fourdan
committed
defaults/Makefile
themes/Makefile
Olivier Fourdan
committed
themes/agua/Makefile
Olivier Fourdan
committed
themes/b6/Makefile
Olivier Fourdan
committed
themes/bbs/Makefile
Olivier Fourdan
committed
themes/coldsteel/Makefile
Olivier Fourdan
committed
themes/coolclean/Makefile
Olivier Fourdan
committed
themes/crux/Makefile
themes/cruxish/Makefile
themes/exocet/Makefile
themes/g2/Makefile
Olivier Fourdan
committed
themes/gorilla/Makefile
Olivier Fourdan
committed
themes/gtk/Makefile
Olivier Fourdan
committed
themes/kde/Makefile
Olivier Fourdan
committed
themes/kindaker/Makefile
Olivier Fourdan
committed
themes/koynacity/Makefile
Olivier Fourdan
committed
themes/linea/Makefile
themes/meenee/Makefile
themes/metabox/Makefile
themes/microcurve/Makefile
Olivier Fourdan
committed
themes/microdeck/Makefile
themes/microdeck2/Makefile
Olivier Fourdan
committed
themes/mofit/Makefile
themes/next/Makefile
Olivier Fourdan
committed
themes/ops/Makefile
Olivier Fourdan
committed
themes/oroborus/Makefile
Olivier Fourdan
committed
themes/platinum/Makefile
themes/quiet-purple/Makefile
themes/r9x/Makefile
Olivier Fourdan
committed
themes/redmond/Makefile
themes/redmondxp/Makefile
themes/retro/Makefile
Olivier Fourdan
committed
themes/slimline/Makefile
Olivier Fourdan
committed
themes/tgc/Makefile
themes/totem/Makefile
Olivier Fourdan
committed
themes/trench/Makefile
Olivier Fourdan
committed
themes/variation/Makefile
Olivier Fourdan
committed
themes/xfce/Makefile
])