### INITIALIZATION ############################################################
-# Initialize Autoconf
+AC_PREREQ([2.62]) # Oldest version of Autoconf that works with introspection
+# Initialize Autoconf
# Args: (human-readable package name, package version, bug report address,
# tarballname)
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_CONFIG_MACRO_DIR(m4)
+AC_CONFIG_MACRO_DIR([m4])
# Initialize Automake
-AM_INIT_AUTOMAKE([-Wall])
+AM_INIT_AUTOMAKE([-Wall -Wno-portability])
# Configure with --enable-silent-rules to cut down on clutter
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
### DECLARE PROGRAMS ##########################################################
AC_PROG_INSTALL # Install
-m4_defun([_LT_AC_LANG_CXX_CONFIG], [:]) # Disable unnecessary Libtool checks
-m4_defun([_LT_AC_LANG_F77_CONFIG], [:]) # to save time (1.5 only)
-LT_INIT # Libtool 2.2.6 and up
-#LT_INIT([dlopen]) # Should call it this way, but
-#LT_PREREQ([2.2.6]) # ...goddamn Debian still has 1.5
-AC_PROG_LIBTOOL # Old way of declaring Libtool
+LT_INIT([dlopen]) # Libtool 2.2.6 and up
+LT_PREREQ([2.2.6])
AM_GNU_GETTEXT([external]) # Gettext, link to system libintl
IT_PROG_INTLTOOL([0.40.0]) # Intltool
PKG_PROG_PKG_CONFIG # pkg_config
GTK_DOC_CHECK($GTK_DOC_REQUIRED_VERSION)
+GLIB_GSETTINGS # GSettings
# Other utilities used in this package's various make scripts
AC_PROG_AWK
AC_PATH_PROG([PERL], [perl]) # Perl
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
+### INTROSPECTION ##############################################################
+
+GOBJECT_INTROSPECTION_CHECK([0.6.7])
+
### ILIAD #####################################################################
AC_ARG_ENABLE([iliad],
- [AS_HELP_STRING([--enable-iliad],[Compiles Chimara for the iLiad])],
- [AS_CASE([${enableval}],
- [yes], [iliad=true],
- [no], [iliad=false],
- [AC_MSG_ERROR([bad value ${enableval} for --enable-iliad])]
- )],
- [iliad=false]
-)
-
-AM_CONDITIONAL([TARGET_ILIAD], [$TEST "x$iliad" = xtrue])
+ [AS_HELP_STRING([--enable-iliad=@<:@yes/no@:>@],
+ [Compiles Chimara for the iLiad @<:@default=no@:>@])],
+ [],
+ [enable_iliad=no])
+AM_CONDITIONAL(TARGET_ILIAD, $TEST "x$enable_iliad" = xyes)
### 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\"/>"]
-)
+ [AS_HELP_STRING([--disable-recent],
+ [Omit recent files menu (to work around a bug on OS X])],
+ [],
+ [enable_recent=yes])
+AS_IF([$TEST "x$enable_recent" = "xyes"],
+ [OPEN_RECENT_MENU_ITEM="<menuitem action=\"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])
AC_ARG_ENABLE([rpm],
- [AS_HELP_STRING([--enable-rpm],[Configure for building RPM package [no] (requires rpm and rpmbuild)])],
- [AS_CASE([${enableval}],
- [yes], [AS_IF(
- [$TEST "x$RPMBUILD" = xnotfound],
- [AC_MSG_ERROR([rpmbuild is required for --enable-rpm])],
- [rpm=true])],
- [no], [rpm=false],
- [AC_MSG_ERROR([bad value ${enableval} for --enable-rpm])]
- )],
- [rpm=false]
-)
-AM_CONDITIONAL([BUILDING_RPM], [$TEST "x$rpm" = xtrue])
+ [AS_HELP_STRING([--enable-rpm=@<:@yes/no@:>@],
+ [Configure for building RPM package @<:@default=no@:>@ (requires rpm and rpmbuild)])],
+ [AS_IF([$TEST "x$enable_rpm" = xyes],
+ [AS_IF([$TEST "x$RPMBUILD" = xnotfound],
+ [AC_MSG_ERROR([rpmbuild is required for --enable-rpm])])])],
+ [enable_rpm=no])
+AM_CONDITIONAL(BUILDING_RPM, $TEST "x$enable_rpm" = xyes)
### SOUND LIBRARY TO USE ######################################################
PKG_CHECK_MODULES([TEST], [
gtk+-2.0 >= $GTK_REQUIRED_VERSION
gmodule-2.0 >= $GLIB_REQUIRED_VERSION
+ libgda-4.0
])
# GStreamer plugins needed to run library
docs/reference/version.xml
docs/reference/build-selector-table.pl
po/Makefile.in
+babel/Makefile
])
# Do it