AC_PREREQ(2.59) AC_INIT([service-discovery-applet],[0.4.5],[sebastien (dot) estienne (at) gmail (dot) com]) AC_CONFIG_SRCDIR([src/service-discovery-applet.in]) AM_INIT_AUTOMAKE([foreign 1.9 -Wall]) AC_CONFIG_MACRO_DIR([common]) AC_PROG_INTLTOOL([0.21]) AC_SUBST(VERSION) AM_MAINTAINER_MODE dnl ======================================================== dnl Check for python and some modules dnl ======================================================== AM_PATH_PYTHON([2.4]) AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(Could not find Python module pygtk)]) AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)]) AM_CHECK_PYMOD(avahi,,,[AC_MSG_ERROR(Could not find Python module avahi)]) AM_CHECK_PYMOD(avahi.ServiceTypeDatabase,ServiceTypeDatabase,,[AC_MSG_ERROR(You need avahi >= 0.6.9)]) # disable because it needs a DISPLAY # AM_CHECK_PYMOD(gnomeapplet,,,[AC_MSG_ERROR(Could not find Python module gnomeapplet)]) dnl ======================================================== dnl Directory where services' plugins will be installed dnl ======================================================== PLUGINSDIR="\$(pkgdatadir)/plugins/" AC_SUBST(PLUGINSDIR) dnl ======================================================== dnl Directory where services' tools will be installed dnl ======================================================== TOOLSDIR="\$(pkgdatadir)/tools/" AC_SUBST(TOOLSDIR) dnl ======================================================== dnl Directory where services' icons will be installed dnl ======================================================== ICONSDIR="\$(pkgdatadir)/icons/" AC_SUBST(ICONSDIR) dnl ======================================================== dnl Directory where glade interfaces will be installed dnl ======================================================== INTERFACESDIR="\$(pkgdatadir)/interfaces/" AC_SUBST(INTERFACESDIR) dnl ======================================================== dnl This is to check correct gconf installation dnl ======================================================== AM_GCONF_SOURCE_2 dnl ======================================================== dnl This is for gettext support dnl ======================================================== GETTEXT_PACKAGE=service-discovery-applet AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) AC_SUBST(GETTEXT_PACKAGE) ALL_LINGUAS="ca da de fr sv" AM_GLIB_GNU_GETTEXT AM_GLIB_DEFINE_LOCALEDIR([LOCALEDIR]) LOCALEDIR=$localedir AC_SUBST(LOCALEDIR) dnl ======================================================== AC_CONFIG_FILES([ Makefile common/Makefile icons/Makefile icons/24x24/Makefile icons/48x48/Makefile schemas/Makefile servers/Makefile src/Makefile src/modules/Makefile plugins/Makefile tools/Makefile po/Makefile.in ]) AC_OUTPUT dnl ======================================================== dnl Summary dnl ======================================================== echo " ---{ $PACKAGE_NAME $VERSION }--- prefix: ${prefix} sysconfdir: ${sysconfdir} gconf config source: ${GCONF_SCHEMA_CONFIG_SOURCE} "