2010-02-06 20:19:41 -05:00
|
|
|
AC_PREREQ(2.63)
|
2013-01-17 07:56:19 -05:00
|
|
|
AC_INIT([gnome-shell],[3.7.4.1],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_SRCDIR([src/shell-global.c])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_AUX_DIR([config])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2011-01-11 16:34:09 -05:00
|
|
|
AC_SUBST([PACKAGE_NAME], ["$PACKAGE_NAME"])
|
|
|
|
AC_SUBST([PACKAGE_VERSION], ["$PACKAGE_VERSION"])
|
|
|
|
|
2011-09-21 12:32:11 -04:00
|
|
|
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz tar-ustar foreign])
|
2011-09-09 11:14:58 -04:00
|
|
|
AM_MAINTAINER_MODE([enable])
|
2010-02-12 23:42:47 -05:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
# Checks for programs.
|
2008-10-31 00:22:44 -04:00
|
|
|
AC_PROG_CC
|
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
# Initialize libtool
|
|
|
|
LT_PREREQ([2.2.6])
|
|
|
|
LT_INIT([disable-static])
|
|
|
|
|
2010-10-06 23:20:13 -04:00
|
|
|
# i18n
|
|
|
|
IT_PROG_INTLTOOL([0.40])
|
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.17])
|
|
|
|
|
2010-02-12 23:42:47 -05:00
|
|
|
GETTEXT_PACKAGE=gnome-shell
|
2010-02-23 10:43:39 -05:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|
|
|
[The prefix for our gettext translation domains.])
|
2010-02-06 20:19:41 -05:00
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG([0.22])
|
2009-07-24 18:11:14 -04:00
|
|
|
|
2012-07-24 22:00:55 -04:00
|
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
|
|
|
2010-05-05 17:05:42 -04:00
|
|
|
GLIB_GSETTINGS
|
|
|
|
|
2009-08-31 11:52:18 -04:00
|
|
|
# Get a value to substitute into gnome-shell.in
|
|
|
|
AM_PATH_PYTHON([2.5])
|
|
|
|
AC_SUBST(PYTHON)
|
|
|
|
|
2009-03-13 17:14:31 -04:00
|
|
|
# We need at least this, since gst_plugin_register_static() was added
|
|
|
|
# in 0.10.16, but nothing older than 0.10.21 has been tested.
|
2012-07-04 11:49:55 -04:00
|
|
|
GSTREAMER_MIN_VERSION=0.11.92
|
2009-03-13 17:14:31 -04:00
|
|
|
|
|
|
|
recorder_modules=
|
|
|
|
build_recorder=false
|
|
|
|
AC_MSG_CHECKING([for GStreamer (needed for recording functionality)])
|
2012-07-04 11:49:55 -04:00
|
|
|
if $PKG_CONFIG --exists gstreamer-1.0 '>=' $GSTREAMER_MIN_VERSION ; then
|
2009-03-13 17:14:31 -04:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
build_recorder=true
|
2012-10-25 17:26:17 -04:00
|
|
|
recorder_modules="gstreamer-1.0 gstreamer-base-1.0 x11 gtk+-3.0"
|
2012-01-27 16:33:26 -05:00
|
|
|
PKG_CHECK_MODULES(TEST_SHELL_RECORDER, $recorder_modules clutter-1.0 xfixes gl)
|
2009-03-13 17:14:31 -04:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
|
|
|
|
|
2012-12-22 22:21:47 -05:00
|
|
|
CLUTTER_MIN_VERSION=1.13.4
|
2011-01-12 16:29:23 -05:00
|
|
|
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
|
2013-01-15 03:25:36 -05:00
|
|
|
GJS_MIN_VERSION=1.35.4
|
2013-01-14 18:50:05 -05:00
|
|
|
MUTTER_MIN_VERSION=3.7.4
|
2012-01-20 14:46:01 -05:00
|
|
|
GTK_MIN_VERSION=3.3.9
|
2012-10-17 09:25:18 -04:00
|
|
|
GIO_MIN_VERSION=2.35.0
|
2012-04-26 09:08:27 -04:00
|
|
|
LIBECAL_MIN_VERSION=3.5.3
|
|
|
|
LIBEDATASERVER_MIN_VERSION=3.5.3
|
2012-01-11 07:39:38 -05:00
|
|
|
TELEPATHY_GLIB_MIN_VERSION=0.17.5
|
2011-02-26 12:31:19 -05:00
|
|
|
TELEPATHY_LOGGER_MIN_VERSION=0.2.4
|
2011-02-21 12:17:34 -05:00
|
|
|
POLKIT_MIN_VERSION=0.100
|
2011-05-24 16:59:43 -04:00
|
|
|
STARTUP_NOTIFICATION_MIN_VERSION=0.11
|
2012-02-29 15:28:23 -05:00
|
|
|
GCR_MIN_VERSION=3.3.90
|
2012-10-23 03:19:03 -04:00
|
|
|
GNOME_DESKTOP_REQUIRED_VERSION=3.7.1
|
2012-06-19 11:35:05 -04:00
|
|
|
GNOME_MENUS_REQUIRED_VERSION=3.5.3
|
2013-01-14 10:20:59 -05:00
|
|
|
NETWORKMANAGER_MIN_VERSION=0.9.6
|
2012-12-10 06:19:03 -05:00
|
|
|
PULSE_MIN_VERS=2.0
|
2010-02-11 15:24:13 -05:00
|
|
|
|
2009-08-11 11:32:58 -04:00
|
|
|
# Collect more than 20 libraries for a prize!
|
2011-08-16 08:19:59 -04:00
|
|
|
PKG_CHECK_MODULES(GNOME_SHELL, gio-unix-2.0 >= $GIO_MIN_VERSION
|
|
|
|
libxml-2.0
|
2011-02-25 11:20:27 -05:00
|
|
|
gtk+-3.0 >= $GTK_MIN_VERSION
|
2012-06-14 07:57:09 -04:00
|
|
|
atk-bridge-2.0
|
2011-03-17 09:29:09 -04:00
|
|
|
libmutter >= $MUTTER_MIN_VERSION
|
2011-02-25 11:20:27 -05:00
|
|
|
gjs-internals-1.0 >= $GJS_MIN_VERSION
|
2012-06-19 11:35:05 -04:00
|
|
|
libgnome-menu-3.0 >= $GNOME_MENUS_REQUIRED_VERSION
|
|
|
|
$recorder_modules
|
2011-06-27 20:14:46 -04:00
|
|
|
gdk-x11-3.0 libsoup-2.4
|
2012-01-14 18:58:53 -05:00
|
|
|
gl
|
2011-02-25 11:20:27 -05:00
|
|
|
clutter-x11-1.0 >= $CLUTTER_MIN_VERSION
|
|
|
|
clutter-glx-1.0 >= $CLUTTER_MIN_VERSION
|
2011-05-24 16:59:43 -04:00
|
|
|
libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_MIN_VERSION
|
2011-02-25 11:20:27 -05:00
|
|
|
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
|
2012-11-04 13:53:49 -05:00
|
|
|
libcanberra libcanberra-gtk3
|
2011-02-25 11:20:27 -05:00
|
|
|
telepathy-glib >= $TELEPATHY_GLIB_MIN_VERSION
|
2011-02-26 12:31:19 -05:00
|
|
|
telepathy-logger-0.2 >= $TELEPATHY_LOGGER_MIN_VERSION
|
2011-05-16 14:12:17 -04:00
|
|
|
polkit-agent-1 >= $POLKIT_MIN_VERSION xfixes
|
2012-08-29 13:42:11 -04:00
|
|
|
libnm-glib libnm-util >= $NETWORKMANAGER_MIN_VERSION
|
|
|
|
libnm-gtk >= $NETWORKMANAGER_MIN_VERSION
|
|
|
|
gnome-keyring-1 gcr-3 >= $GCR_MIN_VERSION)
|
2010-02-24 11:29:44 -05:00
|
|
|
|
2013-01-18 23:22:45 -05:00
|
|
|
PKG_CHECK_MODULES(GNOME_SHELL_JS, gio-2.0 gjs-internals-1.0 >= $GJS_MIN_VERSION)
|
|
|
|
PKG_CHECK_MODULES(ST, clutter-1.0 gtk+-3.0 libcroco-0.6 >= 0.6.8 x11)
|
2011-03-08 18:17:53 -05:00
|
|
|
PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0)
|
2011-07-12 10:34:41 -04:00
|
|
|
PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0)
|
2011-09-02 11:29:26 -04:00
|
|
|
PKG_CHECK_MODULES(BROWSER_PLUGIN, gio-2.0 >= $GIO_MIN_VERSION json-glib-1.0 >= 0.13.2)
|
2010-06-19 14:26:16 -04:00
|
|
|
PKG_CHECK_MODULES(TRAY, gtk+-3.0)
|
2012-12-10 06:19:03 -05:00
|
|
|
PKG_CHECK_MODULES(GVC, libpulse >= $PULSE_MIN_VERS libpulse-mainloop-glib gobject-2.0)
|
2013-01-15 12:18:53 -05:00
|
|
|
PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.7.4)
|
2010-10-31 15:28:06 -04:00
|
|
|
|
2010-07-24 07:57:53 -04:00
|
|
|
AC_MSG_CHECKING([for bluetooth support])
|
2011-06-30 14:19:20 -04:00
|
|
|
PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 3.1.0],
|
|
|
|
[BLUETOOTH_DIR=`$PKG_CONFIG --variable=applet_libdir gnome-bluetooth-1.0`
|
|
|
|
BLUETOOTH_LIBS=`$PKG_CONFIG --variable=applet_libs gnome-bluetooth-1.0`
|
2010-07-24 07:57:53 -04:00
|
|
|
AC_SUBST([BLUETOOTH_LIBS],["$BLUETOOTH_LIBS"])
|
2011-11-03 18:26:03 -04:00
|
|
|
AC_SUBST([BLUETOOTH_DIR],["$BLUETOOTH_DIR"])
|
2010-07-24 07:57:53 -04:00
|
|
|
AC_DEFINE_UNQUOTED([BLUETOOTH_DIR],["$BLUETOOTH_DIR"],[Path to installed GnomeBluetooth typelib and library])
|
|
|
|
AC_DEFINE([HAVE_BLUETOOTH],[1],[Define if you have libgnome-bluetooth-applet])
|
|
|
|
AC_SUBST([HAVE_BLUETOOTH],[1])
|
|
|
|
AC_MSG_RESULT([yes])],
|
|
|
|
[AC_DEFINE([HAVE_BLUETOOTH],[0])
|
2010-12-18 13:37:07 -05:00
|
|
|
AC_SUBST([HAVE_BLUETOOTH],[0])
|
2010-07-24 07:57:53 -04:00
|
|
|
AC_MSG_RESULT([no])])
|
|
|
|
|
2012-10-30 13:42:43 -04:00
|
|
|
PKG_CHECK_MODULES(CALENDAR_SERVER, libecal-1.2 >= $LIBECAL_MIN_VERSION libedataserver-1.2 >= $LIBEDATASERVER_MIN_VERSION gio-2.0)
|
2011-02-25 17:42:25 -05:00
|
|
|
AC_SUBST(CALENDAR_SERVER_CFLAGS)
|
|
|
|
AC_SUBST(CALENDAR_SERVER_LIBS)
|
2011-01-28 16:35:46 -05:00
|
|
|
|
2013-01-18 23:22:45 -05:00
|
|
|
GNOME_KEYBINDINGS_KEYSDIR=`$PKG_CONFIG --variable keysdir gnome-keybindings`
|
|
|
|
AC_SUBST([GNOME_KEYBINDINGS_KEYSDIR])
|
|
|
|
|
|
|
|
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
|
|
|
|
|
|
|
|
saved_CFLAGS=$CFLAGS
|
|
|
|
saved_LIBS=$LIBS
|
|
|
|
CFLAGS=$GNOME_SHELL_CFLAGS
|
|
|
|
LIBS=$GNOME_SHELL_LIBS
|
|
|
|
AC_CHECK_FUNCS(XFixesCreatePointerBarrier)
|
|
|
|
CFLAGS=$saved_CFLAGS
|
|
|
|
LIBS=$saved_LIBS
|
|
|
|
|
2011-03-17 09:29:09 -04:00
|
|
|
MUTTER_GIR_DIR=`$PKG_CONFIG --variable=girdir libmutter`
|
|
|
|
MUTTER_TYPELIB_DIR=`$PKG_CONFIG --variable=typelibdir libmutter`
|
2011-02-25 11:20:27 -05:00
|
|
|
AC_SUBST(MUTTER_GIR_DIR)
|
|
|
|
AC_SUBST(MUTTER_TYPELIB_DIR)
|
2009-02-23 16:44:33 -05:00
|
|
|
|
2010-02-25 19:03:06 -05:00
|
|
|
GJS_CONSOLE=`$PKG_CONFIG --variable=gjs_console gjs-1.0`
|
|
|
|
AC_SUBST(GJS_CONSOLE)
|
2009-02-23 16:44:33 -05:00
|
|
|
|
2009-04-21 17:21:06 -04:00
|
|
|
AC_CHECK_FUNCS(fdwalk)
|
2010-06-07 10:36:21 -04:00
|
|
|
AC_CHECK_FUNCS(mallinfo)
|
2009-04-21 17:21:06 -04:00
|
|
|
AC_CHECK_HEADERS([sys/resource.h])
|
|
|
|
|
2011-06-23 20:40:36 -04:00
|
|
|
# _NL_TIME_FIRST_WEEKDAY is an enum and not a define
|
|
|
|
AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]],
|
|
|
|
[[nl_langinfo(_NL_TIME_FIRST_WEEKDAY);]])],
|
|
|
|
[langinfo_ok=yes], [langinfo_ok=no])
|
|
|
|
AC_MSG_RESULT($langinfo_ok)
|
|
|
|
if test "$langinfo_ok" = "yes"; then
|
|
|
|
AC_DEFINE([HAVE__NL_TIME_FIRST_WEEKDAY], [1],
|
|
|
|
[Define if _NL_TIME_FIRST_WEEKDAY is available])
|
|
|
|
fi
|
|
|
|
|
2008-11-14 12:21:56 -05:00
|
|
|
# Sets GLIB_GENMARSHAL and GLIB_MKENUMS
|
|
|
|
AM_PATH_GLIB_2_0()
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2011-09-07 14:23:28 -04:00
|
|
|
GTK_DOC_CHECK([1.15], [--flavour no-tmpl])
|
|
|
|
|
2012-11-05 23:39:32 -05:00
|
|
|
AC_ARG_ENABLE(man,
|
|
|
|
[AS_HELP_STRING([--enable-man],
|
|
|
|
[generate man pages [default=yes]])],,
|
|
|
|
enable_man=yes)
|
|
|
|
if test "$enable_man" != no; then
|
|
|
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
|
|
if test -z "$XSLTPROC"; then
|
|
|
|
AC_MSG_ERROR([xsltproc is required for --enable-man])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
|
|
|
|
|
2013-01-18 23:17:41 -05:00
|
|
|
GNOME_COMPILE_WARNINGS([error])
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2011-02-17 17:07:13 -05:00
|
|
|
AC_ARG_ENABLE(jhbuild-wrapper-script,
|
2012-02-02 08:26:44 -05:00
|
|
|
AS_HELP_STRING([--enable-jhbuild-wrapper-script],[Make "gnome-shell" script work for jhbuild]),,enable_jhbuild_wrapper_script=no)
|
2011-02-17 17:07:13 -05:00
|
|
|
AM_CONDITIONAL(USE_JHBUILD_WRAPPER_SCRIPT, test "x$enable_jhbuild_wrapper_script" = xyes)
|
|
|
|
|
2011-09-15 01:42:43 -04:00
|
|
|
BROWSER_PLUGIN_DIR="${BROWSER_PLUGIN_DIR:-"\${libdir}/mozilla/plugins"}"
|
|
|
|
AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
|
|
|
|
|
2010-02-06 20:19:41 -05:00
|
|
|
AC_CONFIG_FILES([
|
2008-10-31 00:22:44 -04:00
|
|
|
Makefile
|
2008-12-22 17:05:56 -05:00
|
|
|
data/Makefile
|
2011-09-07 14:23:28 -04:00
|
|
|
docs/Makefile
|
|
|
|
docs/reference/Makefile
|
|
|
|
docs/reference/shell/Makefile
|
|
|
|
docs/reference/shell/shell-docs.sgml
|
|
|
|
docs/reference/st/Makefile
|
|
|
|
docs/reference/st/st-docs.sgml
|
2009-03-10 12:53:03 -04:00
|
|
|
js/Makefile
|
2012-07-03 17:48:57 -04:00
|
|
|
src/calendar-server/evolution-calendar.desktop.in
|
2008-10-31 00:22:44 -04:00
|
|
|
src/Makefile
|
2012-10-19 13:02:41 -04:00
|
|
|
src/gvc/Makefile
|
2011-09-12 16:06:10 -04:00
|
|
|
browser-plugin/Makefile
|
2009-09-18 15:51:15 -04:00
|
|
|
tests/Makefile
|
2009-07-24 18:11:14 -04:00
|
|
|
po/Makefile.in
|
2010-02-06 21:51:53 -05:00
|
|
|
man/Makefile
|
2008-10-31 00:22:44 -04:00
|
|
|
])
|
2010-02-06 20:19:41 -05:00
|
|
|
AC_OUTPUT
|