2010-02-07 01:19:41 +00:00
|
|
|
AC_PREREQ(2.63)
|
2011-08-29 20:49:58 +00:00
|
|
|
AC_INIT([gnome-shell],[3.1.90],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell],[gnome-shell])
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-02-07 01:19:41 +00: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 04:22:44 +00:00
|
|
|
|
2011-01-11 21:34:09 +00:00
|
|
|
AC_SUBST([PACKAGE_NAME], ["$PACKAGE_NAME"])
|
|
|
|
AC_SUBST([PACKAGE_VERSION], ["$PACKAGE_VERSION"])
|
|
|
|
|
2010-02-22 23:33:31 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign])
|
2008-10-31 04:22:44 +00:00
|
|
|
AM_MAINTAINER_MODE
|
2010-02-13 04:42:47 +00:00
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
# Checks for programs.
|
2008-10-31 04:22:44 +00:00
|
|
|
AC_PROG_CC
|
2009-01-19 23:06:59 +00:00
|
|
|
# Needed for per-target cflags, like in gnomeshell-taskpanel
|
|
|
|
AM_PROG_CC_C_O
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
# Initialize libtool
|
|
|
|
LT_PREREQ([2.2.6])
|
|
|
|
LT_INIT([disable-static])
|
|
|
|
|
2010-10-07 03:20:13 +00:00
|
|
|
# i18n
|
|
|
|
IT_PROG_INTLTOOL([0.40])
|
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.17])
|
|
|
|
|
2010-02-13 04:42:47 +00:00
|
|
|
GETTEXT_PACKAGE=gnome-shell
|
2010-02-23 15:43:39 +00:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|
|
|
[The prefix for our gettext translation domains.])
|
2010-02-07 01:19:41 +00:00
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG([0.22])
|
2009-07-24 22:11:14 +00:00
|
|
|
|
2010-02-13 04:42:47 +00:00
|
|
|
# GConf stuff
|
2009-06-30 21:29:20 +00:00
|
|
|
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
2009-04-23 14:46:36 +00:00
|
|
|
AM_GCONF_SOURCE_2
|
|
|
|
|
2010-05-05 21:05:42 +00:00
|
|
|
GLIB_GSETTINGS
|
|
|
|
|
2009-08-31 15:52:18 +00:00
|
|
|
# Get a value to substitute into gnome-shell.in
|
|
|
|
AM_PATH_PYTHON([2.5])
|
|
|
|
AC_SUBST(PYTHON)
|
|
|
|
|
2009-03-13 21:14:31 +00: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.
|
|
|
|
GSTREAMER_MIN_VERSION=0.10.16
|
|
|
|
|
|
|
|
recorder_modules=
|
|
|
|
build_recorder=false
|
|
|
|
AC_MSG_CHECKING([for GStreamer (needed for recording functionality)])
|
|
|
|
if $PKG_CONFIG --exists gstreamer-0.10 '>=' $GSTREAMER_MIN_VERSION ; then
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
build_recorder=true
|
2011-03-24 16:04:43 +00:00
|
|
|
recorder_modules="gstreamer-0.10 gstreamer-base-0.10 x11"
|
|
|
|
PKG_CHECK_MODULES(TEST_SHELL_RECORDER, $recorder_modules clutter-1.0 xfixes)
|
2009-03-13 21:14:31 +00:00
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
|
|
|
|
|
2011-07-13 20:14:45 +00:00
|
|
|
CLUTTER_MIN_VERSION=1.7.5
|
2011-01-12 21:29:23 +00:00
|
|
|
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
|
2011-07-27 22:26:43 +00:00
|
|
|
GJS_MIN_VERSION=1.29.15
|
2011-04-04 21:21:16 +00:00
|
|
|
MUTTER_MIN_VERSION=3.0.0
|
2011-08-26 14:15:38 +00:00
|
|
|
FOLKS_MIN_VERSION=0.5.2
|
2011-02-10 22:25:32 +00:00
|
|
|
GTK_MIN_VERSION=3.0.0
|
2011-04-18 20:05:47 +00:00
|
|
|
GIO_MIN_VERSION=2.29.10
|
2011-03-01 20:26:31 +00:00
|
|
|
LIBECAL_MIN_VERSION=2.32.0
|
2011-02-25 22:42:25 +00:00
|
|
|
LIBEDATASERVER_MIN_VERSION=1.2.0
|
2011-04-15 13:39:13 +00:00
|
|
|
LIBEDATASERVERUI_MIN_VERSION=2.91.6
|
2011-08-16 15:07:40 +00:00
|
|
|
TELEPATHY_GLIB_MIN_VERSION=0.15.5
|
2011-02-26 17:31:19 +00:00
|
|
|
TELEPATHY_LOGGER_MIN_VERSION=0.2.4
|
2011-02-21 17:17:34 +00:00
|
|
|
POLKIT_MIN_VERSION=0.100
|
2011-05-24 20:59:43 +00:00
|
|
|
STARTUP_NOTIFICATION_MIN_VERSION=0.11
|
2010-02-11 20:24:13 +00:00
|
|
|
|
2009-08-11 15:32:58 +00:00
|
|
|
# Collect more than 20 libraries for a prize!
|
2011-02-25 16:20:27 +00:00
|
|
|
PKG_CHECK_MODULES(GNOME_SHELL, gio-2.0 >= $GIO_MIN_VERSION
|
|
|
|
gio-unix-2.0 dbus-glib-1 libxml-2.0
|
|
|
|
gtk+-3.0 >= $GTK_MIN_VERSION
|
2011-08-26 14:15:38 +00:00
|
|
|
folks >= $FOLKS_MIN_VERSION
|
2011-03-17 13:29:09 +00:00
|
|
|
libmutter >= $MUTTER_MIN_VERSION
|
2011-02-25 16:20:27 +00:00
|
|
|
gjs-internals-1.0 >= $GJS_MIN_VERSION
|
2011-04-18 20:05:47 +00:00
|
|
|
libgnome-menu-3.0 $recorder_modules gconf-2.0
|
2011-06-28 00:14:46 +00:00
|
|
|
gdk-x11-3.0 libsoup-2.4
|
2011-02-25 16:20:27 +00:00
|
|
|
clutter-x11-1.0 >= $CLUTTER_MIN_VERSION
|
|
|
|
clutter-glx-1.0 >= $CLUTTER_MIN_VERSION
|
2011-05-24 20:59:43 +00:00
|
|
|
libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_MIN_VERSION
|
2011-02-25 16:20:27 +00:00
|
|
|
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
|
|
|
|
libcanberra
|
|
|
|
telepathy-glib >= $TELEPATHY_GLIB_MIN_VERSION
|
2011-02-26 17:31:19 +00:00
|
|
|
telepathy-logger-0.2 >= $TELEPATHY_LOGGER_MIN_VERSION
|
2011-05-16 18:12:17 +00:00
|
|
|
polkit-agent-1 >= $POLKIT_MIN_VERSION xfixes
|
|
|
|
libnm-glib libnm-util gnome-keyring-1)
|
2010-02-24 16:29:44 +00:00
|
|
|
|
2011-03-08 23:17:53 +00:00
|
|
|
PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0)
|
|
|
|
|
2011-07-12 14:34:41 +00:00
|
|
|
PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0)
|
|
|
|
|
2011-01-11 21:34:09 +00:00
|
|
|
GJS_VERSION=`$PKG_CONFIG --modversion gjs-internals-1.0`
|
|
|
|
AC_DEFINE_UNQUOTED([GJS_VERSION], ["$GJS_VERSION"], [The version of GJS we're linking to])
|
|
|
|
AC_SUBST([GJS_VERSION], ["$GJS_VERSION"])
|
|
|
|
|
2011-02-26 17:29:53 +00:00
|
|
|
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
|
2011-03-16 13:40:25 +00:00
|
|
|
JHBUILD_TYPELIBDIR="$INTROSPECTION_TYPELIBDIR"
|
|
|
|
AC_SUBST(JHBUILD_TYPELIBDIR)
|
2011-02-26 17:29:53 +00:00
|
|
|
|
2010-02-24 16:29:44 +00:00
|
|
|
saved_CFLAGS=$CFLAGS
|
|
|
|
saved_LIBS=$LIBS
|
2011-02-25 16:20:27 +00:00
|
|
|
CFLAGS=$GNOME_SHELL_CFLAGS
|
|
|
|
LIBS=$GNOME_SHELL_LIBS
|
2011-05-24 21:59:52 +00:00
|
|
|
AC_CHECK_FUNCS(JS_NewGlobalObject XFixesCreatePointerBarrier)
|
2010-02-24 16:29:44 +00:00
|
|
|
CFLAGS=$saved_CFLAGS
|
|
|
|
LIBS=$saved_LIBS
|
|
|
|
|
2011-04-04 18:02:19 +00:00
|
|
|
PKG_CHECK_MODULES(ST, clutter-1.0 gtk+-3.0 libcroco-0.6 >= 0.6.2 gnome-desktop-3.0 >= 2.90.0 x11)
|
2010-06-19 18:26:16 +00:00
|
|
|
PKG_CHECK_MODULES(GDMUSER, dbus-glib-1 gtk+-3.0)
|
|
|
|
PKG_CHECK_MODULES(TRAY, gtk+-3.0)
|
2010-09-27 14:27:15 +00:00
|
|
|
PKG_CHECK_MODULES(GVC, libpulse libpulse-mainloop-glib gobject-2.0)
|
2011-02-10 14:20:33 +00:00
|
|
|
PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 0.1.7)
|
2010-10-31 19:28:06 +00:00
|
|
|
|
2010-07-24 11:57:53 +00:00
|
|
|
AC_MSG_CHECKING([for bluetooth support])
|
2011-06-30 18:19:20 +00: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 11:57:53 +00:00
|
|
|
AC_SUBST([BLUETOOTH_LIBS],["$BLUETOOTH_LIBS"])
|
|
|
|
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 18:37:07 +00:00
|
|
|
AC_SUBST([HAVE_BLUETOOTH],[0])
|
2010-07-24 11:57:53 +00:00
|
|
|
AC_MSG_RESULT([no])])
|
|
|
|
|
2011-04-15 13:39:13 +00:00
|
|
|
PKG_CHECK_MODULES(CALENDAR_SERVER, libecal-1.2 >= $LIBECAL_MIN_VERSION libedataserver-1.2 >= $LIBEDATASERVER_MIN_VERSION libedataserverui-3.0 >= $LIBEDATASERVERUI_MIN_VERSION gio-2.0)
|
2011-02-25 22:42:25 +00:00
|
|
|
AC_SUBST(CALENDAR_SERVER_CFLAGS)
|
|
|
|
AC_SUBST(CALENDAR_SERVER_LIBS)
|
2011-01-28 21:35:46 +00:00
|
|
|
|
2011-03-17 13:29:09 +00:00
|
|
|
MUTTER_GIR_DIR=`$PKG_CONFIG --variable=girdir libmutter`
|
|
|
|
MUTTER_TYPELIB_DIR=`$PKG_CONFIG --variable=typelibdir libmutter`
|
2011-02-25 16:20:27 +00:00
|
|
|
AC_SUBST(MUTTER_GIR_DIR)
|
|
|
|
AC_SUBST(MUTTER_TYPELIB_DIR)
|
2009-02-23 21:44:33 +00:00
|
|
|
|
2010-02-26 00:03:06 +00:00
|
|
|
GJS_CONSOLE=`$PKG_CONFIG --variable=gjs_console gjs-1.0`
|
|
|
|
AC_SUBST(GJS_CONSOLE)
|
2009-02-23 21:44:33 +00:00
|
|
|
|
2009-04-21 21:21:06 +00:00
|
|
|
AC_CHECK_FUNCS(fdwalk)
|
2010-06-07 14:36:21 +00:00
|
|
|
AC_CHECK_FUNCS(mallinfo)
|
2009-04-21 21:21:06 +00:00
|
|
|
AC_CHECK_HEADERS([sys/resource.h])
|
|
|
|
|
2011-06-24 00:40:36 +00: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 17:21:56 +00:00
|
|
|
# Sets GLIB_GENMARSHAL and GLIB_MKENUMS
|
|
|
|
AM_PATH_GLIB_2_0()
|
2008-11-14 21:25:58 +00:00
|
|
|
G_IR_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
|
|
|
|
AC_SUBST(G_IR_SCANNER)
|
|
|
|
G_IR_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
|
|
|
|
AC_SUBST(G_IR_COMPILER)
|
|
|
|
G_IR_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
|
|
|
|
AC_SUBST(G_IR_GENERATE)
|
|
|
|
GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
|
|
|
|
AC_SUBST(GIRDIR)
|
|
|
|
TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
|
|
|
|
AC_SUBST(TYPELIBDIR)
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2009-08-06 20:26:45 +00:00
|
|
|
# Stay command-line compatible with the gnome-common configure option. Here
|
|
|
|
# minimum/yes/maximum are the same, however.
|
|
|
|
AC_ARG_ENABLE(compile_warnings,
|
2010-02-07 01:19:41 +00:00
|
|
|
AS_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],[Turn on compiler warnings]),,
|
2009-08-06 20:26:45 +00:00
|
|
|
enable_compile_warnings=error)
|
|
|
|
|
2008-10-31 04:22:44 +00:00
|
|
|
changequote(,)dnl
|
2009-08-06 20:26:45 +00:00
|
|
|
if test "$enable_compile_warnings" != no ; then
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
|
|
esac
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Wmissing-prototypes[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
|
|
|
|
esac
|
|
|
|
if test "$enable_compile_warnings" = error ; then
|
|
|
|
case " $CFLAGS " in
|
|
|
|
*[\ \ ]-Werror[\ \ ]*) ;;
|
|
|
|
*) CFLAGS="$CFLAGS -Werror" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
2008-10-31 04:22:44 +00:00
|
|
|
fi
|
|
|
|
changequote([,])dnl
|
|
|
|
|
2011-02-17 22:07:13 +00:00
|
|
|
AC_ARG_ENABLE(jhbuild-wrapper-script,
|
|
|
|
AS_HELP_STRING([--jhbuild-wrapper-script=yes],[Make "gnome-shell" script work for jhbuild]),,enable_jhbuild_wrapper_script=no)
|
|
|
|
AM_CONDITIONAL(USE_JHBUILD_WRAPPER_SCRIPT, test "x$enable_jhbuild_wrapper_script" = xyes)
|
|
|
|
|
2010-02-07 01:19:41 +00:00
|
|
|
AC_CONFIG_FILES([
|
2008-10-31 04:22:44 +00:00
|
|
|
Makefile
|
2008-12-22 22:05:56 +00:00
|
|
|
data/Makefile
|
2009-03-10 16:53:03 +00:00
|
|
|
js/Makefile
|
2010-07-24 11:57:53 +00:00
|
|
|
js/misc/config.js
|
2008-10-31 04:22:44 +00:00
|
|
|
src/Makefile
|
2009-09-18 19:51:15 +00:00
|
|
|
tests/Makefile
|
2009-07-24 22:11:14 +00:00
|
|
|
po/Makefile.in
|
2010-02-07 02:51:53 +00:00
|
|
|
man/Makefile
|
2008-10-31 04:22:44 +00:00
|
|
|
])
|
2010-02-07 01:19:41 +00:00
|
|
|
AC_OUTPUT
|