# Initialize Autoconf
# Args: (human-readable package name, package version, bug report address,
# tarballname)
-AC_INIT([chimara], [0.1])
+AC_INIT([chimara], [0.9])
# Sanity check to make sure we are running Autoconf from the right directory
AC_CONFIG_SRCDIR(libchimara/chimara-glk.c)
# Put m4 macros in their own directory
AC_SUBST(LT_VERSION_INFO)
### REQUIREMENTS ##############################################################
+# Recommended GTK version: at least 2.12
+# Recommended Glib version: at least 2.16
GTK_REQUIRED_VERSION=2.6
GLIB_REQUIRED_VERSION=2.6
GTK_DOC_REQUIRED_VERSION=1.9
AM_CONDITIONAL([TARGET_ILIAD], [$TEST "x$iliad" = xtrue])
+### BUILD WITHOUT RECENT FILES MANAGER #########################################
+# (to work around a bug on OS X)
+AC_ARG_ENABLE([recent],
+ [AS_HELP_STRING([--disable-recent],[Omit recent files menu (to work around a bug on OS X])],
+ [AS_CASE([${enableval}],
+ [yes], [OPEN_RECENT_MENU_ITEM="<menuitem action=\"recent\"/>"],
+ [no], [OPEN_RECENT_MENU_ITEM="<!-- <menuitem action=\"recent\"/>-->"],
+ [AC_MSG_ERROR([bad value ${enableval} for --enable-recent])]
+ )],
+ [OPEN_RECENT_MENU_ITEM="<menuitem action=\"recent\"/>"]
+)
+AC_SUBST(OPEN_RECENT_MENU_ITEM)
+
### RPM CONFIGURATION ##########################################################
# --enable-rpm requires rpm and rpmbuild
AC_PATH_PROG([RPMBUILD], [rpmbuild], [notfound])
)
AM_CONDITIONAL([BUILDING_RPM], [$TEST "x$rpm" = xtrue])
+### SOUND LIBRARY TO USE ######################################################
+
+AC_ARG_WITH([gstreamer],
+ [AS_HELP_STRING([--without-gstreamer], [Disable GStreamer sound])],
+ [],
+ [with_gstreamer=yes])
+SOUND_MODULE=
+AS_IF([$TEST "x$with_gstreamer" != xno],
+ [AC_DEFINE([GSTREAMER_SOUND], [1], [Define to enable sound support with GStreamer])
+ SOUND_MODULE="gstreamer-0.10 >= 0.10.12"])
+
### CHECK FOR LIBRARIES #######################################################
# Libraries needed to build Chimara library
gthread-2.0
gmodule-2.0
pango
+ $SOUND_MODULE
])
CHIMARA_LIBS="$CHIMARA_LIBS -lm"
AC_SUBST(CHIMARA_LIBS)
gmodule-2.0 >= $GLIB_REQUIRED_VERSION
])
+# GStreamer plugins needed to run library
+AS_IF([$TEST "x$with_gstreamer" != xno], [
+ m4_defun([AX_GST_REQUIRE_ELEMENT],
+ [AM_GST_ELEMENT_CHECK([$1],
+ [],
+ [AC_MSG_ERROR([GStreamer element $1 not found. You need to install gstreamer-plugins-m4_default([$2], [base]).])]
+ )]
+ )
+ AX_GST_REQUIRE_ELEMENT([giostreamsrc])
+ AX_GST_REQUIRE_ELEMENT([typefind])
+ AX_GST_REQUIRE_ELEMENT([audioconvert])
+ AX_GST_REQUIRE_ELEMENT([volume])
+ AX_GST_REQUIRE_ELEMENT([oggdemux])
+ AX_GST_REQUIRE_ELEMENT([vorbisdec])
+ AX_GST_REQUIRE_ELEMENT([autoaudiosink], [good])
+ AX_GST_REQUIRE_ELEMENT([aiffparse], [bad])
+ AX_GST_REQUIRE_ELEMENT([modplug], [bad])
+])
+
# Plugin flags; include '-module' in each Makefile.am, because AC_SUBSTed
# variables are black boxes to Automake, so it has to know about it being a
# module in the makefile itself.
interpreters/git/Makefile
tests/Makefile
player/Makefile
+player/chimara.menus
docs/Makefile
docs/reference/Makefile
docs/reference/version.xml