2006-12-21 21:20:56 +01:00
|
|
|
AC_INIT([Sugar],[0.63],[],[sugar])
|
2006-04-26 06:18:21 +02:00
|
|
|
|
|
|
|
AC_PREREQ([2.59])
|
|
|
|
|
2006-08-21 21:28:16 +02:00
|
|
|
GNOME_COMMON_INIT
|
2006-08-25 14:03:48 +02:00
|
|
|
GNOME_COMPILE_WARNINGS
|
2006-08-21 21:28:16 +02:00
|
|
|
|
2006-08-21 15:59:40 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2006-04-26 06:18:21 +02:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2006-08-21 15:59:40 +02:00
|
|
|
AC_DISABLE_STATIC
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2007-03-14 14:19:31 +01:00
|
|
|
AC_ARG_ENABLE(ns-web-browser,
|
|
|
|
AC_HELP_STRING([--enable-ns-web-browser],
|
|
|
|
[Enable features which requires access to nsIWebBrowser]),
|
|
|
|
[have_ns_web_browser=yes],
|
|
|
|
[have_ns_web_browser=no])
|
|
|
|
|
|
|
|
if test "x$have_ns_web_browser" != "xno"; then
|
|
|
|
AC_DEFINE([HAVE_NS_WEB_BROWSER], [1], ["Have nsIWebBrowser"])
|
|
|
|
fi
|
|
|
|
|
2006-10-16 18:19:44 +02:00
|
|
|
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
|
|
|
|
|
2006-04-26 06:18:21 +02:00
|
|
|
AM_PATH_PYTHON
|
2006-08-21 15:59:40 +02:00
|
|
|
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
|
2006-04-26 06:18:21 +02:00
|
|
|
|
2006-08-25 11:19:27 +02:00
|
|
|
AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(PYGTK, pygtk-2.0)
|
2007-01-21 23:01:54 +01:00
|
|
|
|
2007-01-23 22:35:59 +01:00
|
|
|
PKG_CHECK_MODULES(PYCAIRO, pycairo)
|
|
|
|
|
2007-04-07 00:08:54 +02:00
|
|
|
PKG_CHECK_MODULES(LIB, gtk+-2.0)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(SHELL, gtk+-2.0 gstreamer-0.10 gstreamer-plugins-base-0.10)
|
2007-01-23 22:13:03 +01:00
|
|
|
|
2007-01-23 22:35:59 +01:00
|
|
|
PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
|
|
|
|
AC_SUBST(PYGTK_DEFSDIR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Mozilla
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_ARG_WITH(libxul_sdk,
|
|
|
|
AC_HELP_STRING([--with-libxul-sdk=DIR], [Path to libxul SDK]))
|
|
|
|
|
2007-01-27 12:16:15 +01:00
|
|
|
if test -d "$with_libxul_sdk"; then
|
2007-01-23 22:35:59 +01:00
|
|
|
|
|
|
|
# xulrunner 1.9
|
|
|
|
|
2007-01-23 23:14:22 +01:00
|
|
|
GECKO_CFLAGS="-I$with_libxul_sdk/sdk/include -DXPCOM_GLUE"
|
2007-01-23 22:35:59 +01:00
|
|
|
XPCOMGLUE_LIBS="-L$with_libxul_sdk/sdk/lib -lxpcomglue"
|
|
|
|
MOZILLA_INCLUDE_DIR="$with_libxul_sdk/include"
|
|
|
|
|
|
|
|
AC_SUBST(XPCOMGLUE_LIBS)
|
|
|
|
AC_SUBST(GECKO_CFLAGS)
|
|
|
|
|
|
|
|
AC_DEFINE([HAVE_GECKO_1_9],[1],[Define if we have gecko 1.9])
|
|
|
|
|
2007-02-08 13:00:12 +01:00
|
|
|
PKG_CHECK_MODULES(NSPR, [nspr],
|
|
|
|
[have_nspr=true],
|
|
|
|
[
|
|
|
|
PKG_CHECK_MODULES(NSPR, [mozilla-nspr],
|
2007-02-19 13:43:19 +01:00
|
|
|
[have_nspr=true],
|
|
|
|
[
|
|
|
|
PKG_CHECK_MODULES(NSPR, [xulrunner-nspr],
|
2007-02-08 13:00:12 +01:00
|
|
|
[have_nspr=true],
|
|
|
|
have_nspr=false)
|
|
|
|
])
|
2007-02-19 13:43:19 +01:00
|
|
|
])
|
2007-02-08 13:00:12 +01:00
|
|
|
|
|
|
|
if test "x$have_nspr" = xfalse; then
|
|
|
|
AC_MSG_ERROR([Could not find nspr])
|
|
|
|
fi
|
|
|
|
|
2007-01-23 22:35:59 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
# xulrunner 1.8
|
|
|
|
|
2007-01-23 22:13:03 +01:00
|
|
|
PKG_CHECK_MODULES(GECKO, [xulrunner-gtkmozembed >= 1.8],
|
2007-01-22 15:40:05 +01:00
|
|
|
[have_gecko=true; mozpackage=xulrunner],
|
|
|
|
[
|
2007-01-23 22:13:03 +01:00
|
|
|
PKG_CHECK_MODULES(GECKO, [firefox-gtkmozembed >= 1.5],
|
2007-01-22 15:40:05 +01:00
|
|
|
[have_gecko=true; mozpackage=firefox],
|
|
|
|
have_gecko=false)
|
|
|
|
])
|
|
|
|
|
|
|
|
if test "x$have_gecko" = xfalse; then
|
|
|
|
AC_MSG_ERROR([Could not find xulrunner, mozilla or firefox $mozilla_required_version])
|
|
|
|
fi
|
|
|
|
|
2007-01-23 22:24:52 +01:00
|
|
|
GECKO_LDFLAGS="-R`$PKG_CONFIG --variable=libdir $mozpackage-gtkmozembed`"
|
|
|
|
AC_SUBST(GECKO_LDFLAGS)
|
2007-01-21 23:01:54 +01:00
|
|
|
|
2007-01-22 15:40:05 +01:00
|
|
|
MOZILLA_INCLUDE_DIR="`$PKG_CONFIG --variable=includedir $mozpackage-gtkmozembed`"
|
2007-01-21 23:01:54 +01:00
|
|
|
AC_SUBST(MOZILLA_INCLUDE_DIR)
|
2006-10-24 17:22:32 +02:00
|
|
|
|
2007-01-23 22:35:59 +01:00
|
|
|
fi
|
2007-01-07 07:20:42 +01:00
|
|
|
|
2006-07-05 17:00:11 +02:00
|
|
|
#
|
|
|
|
# Setup GETTEXT
|
|
|
|
#
|
2006-07-11 15:32:10 +02:00
|
|
|
ALL_LINGUAS="it ha ig yo"
|
2006-07-05 17:00:11 +02:00
|
|
|
GETTEXT_PACKAGE=sugar
|
2006-10-13 21:56:27 +02:00
|
|
|
AC_PROG_INTLTOOL([0.33])
|
2006-07-05 17:00:11 +02:00
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
|
2007-03-22 20:34:07 +01:00
|
|
|
AC_CONFIG_FILES([bin/sugar], [chmod +x sugar])
|
|
|
|
|
2006-04-26 06:18:21 +02:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2007-03-22 20:34:07 +01:00
|
|
|
bin/Makefile
|
|
|
|
data/Makefile
|
2007-04-07 13:17:36 +02:00
|
|
|
browser/Makefile
|
2006-09-15 13:54:16 +02:00
|
|
|
services/Makefile
|
2006-09-15 15:49:52 +02:00
|
|
|
services/presence/Makefile
|
2007-02-21 12:37:04 +01:00
|
|
|
services/presence2/Makefile
|
2006-11-15 13:56:19 +01:00
|
|
|
services/clipboard/Makefile
|
2006-12-11 13:55:01 +01:00
|
|
|
services/datastore/Makefile
|
2007-01-04 20:17:10 +01:00
|
|
|
shell/Makefile
|
2007-04-07 00:08:54 +02:00
|
|
|
shell/extensions/Makefile
|
2007-02-25 23:53:10 +01:00
|
|
|
shell/intro/Makefile
|
2007-02-25 01:07:05 +01:00
|
|
|
shell/hardware/Makefile
|
2007-01-04 20:17:10 +01:00
|
|
|
shell/view/Makefile
|
2007-02-20 11:48:03 +01:00
|
|
|
shell/view/devices/Makefile
|
2007-03-15 21:37:15 +01:00
|
|
|
shell/view/devices/network/Makefile
|
2007-01-04 20:17:10 +01:00
|
|
|
shell/view/frame/Makefile
|
2007-02-20 11:48:03 +01:00
|
|
|
shell/view/home/Makefile
|
2007-01-04 20:17:10 +01:00
|
|
|
shell/model/Makefile
|
2007-02-20 11:48:03 +01:00
|
|
|
shell/model/devices/Makefile
|
2007-03-15 21:37:15 +01:00
|
|
|
shell/model/devices/network/Makefile
|
2007-01-08 18:06:59 +01:00
|
|
|
services/console/lib/Makefile
|
|
|
|
services/console/lib/procmem/Makefile
|
|
|
|
services/console/Makefile
|
|
|
|
services/console/interface/Makefile
|
|
|
|
services/console/interface/xo/Makefile
|
|
|
|
services/console/interface/memphis/plugins/clean_size/Makefile
|
|
|
|
services/console/interface/memphis/plugins/dirty_size/Makefile
|
|
|
|
services/console/interface/memphis/plugins/Makefile
|
|
|
|
services/console/interface/memphis/plugins/memphis_init/Makefile
|
|
|
|
services/console/interface/memphis/plugins/cpu/Makefile
|
|
|
|
services/console/interface/memphis/Makefile
|
|
|
|
services/console/interface/logviewer/Makefile
|
|
|
|
services/console/interface/terminal/Makefile
|
2006-05-12 08:32:03 +02:00
|
|
|
sugar/Makefile
|
2006-06-21 22:05:52 +02:00
|
|
|
sugar/activity/Makefile
|
2007-04-07 13:17:36 +02:00
|
|
|
sugar/browser/Makefile
|
2006-11-15 13:56:19 +01:00
|
|
|
sugar/clipboard/Makefile
|
2006-10-02 01:50:43 +02:00
|
|
|
sugar/graphics/Makefile
|
2006-05-12 08:32:03 +02:00
|
|
|
sugar/p2p/Makefile
|
2006-06-13 00:31:26 +02:00
|
|
|
sugar/presence/Makefile
|
2006-12-11 13:55:01 +01:00
|
|
|
sugar/datastore/Makefile
|
2006-07-05 17:00:11 +02:00
|
|
|
po/Makefile.in
|
2006-04-26 06:18:21 +02:00
|
|
|
])
|