-dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ([2.61])
-AC_INIT(maevies,0.1)
-AM_CONFIG_HEADER(config.h)
+AC_INIT([maevies], [0.1.0], [https://garage.maemo.org/tracker/?atid=4092&group_id=1093],
+ [maevies],[https://garage.maemo.org/projects/maevies/])
-AM_INIT_AUTOMAKE([1.7.9])
+AC_CONFIG_SRCDIR([src/main.c])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+
+AM_INIT_AUTOMAKE([-Wall foreign])
AC_PROG_CC
-AC_STDC_HEADERS
AC_PROG_INSTALL
-dnl AC_PREFIX_DEFAULT(/var/lib/install/usr)
-AC_PREFIX_DEFAULT(/usr)
-
-CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wmissing-prototypes -Wmissing-declarations"
-
-PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.2 glib-2.0 >= 2.2 gnome-vfs-2.0 >= 2.2 rest >= 0.6)
-AC_SUBST(DEPS_CFLAGS)
-AC_SUBST(DEPS_LIBS)
-
-PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.8.4 hildon-fm-2 >= 0.8.4)
-AC_SUBST(HILDON_LIBS)
-AC_SUBST(HILDON_CFLAGS)
-
-PKG_CHECK_MODULES(OSSO, libosso >= 0.8.4)
-AC_SUBST(OSSO_LIBS)
-AC_SUBST(OSSO_CFLAGS)
-
-PKG_CHECK_MODULES(OSSOSETTINGS, osso-af-settings >= 0.8.4)
-
-localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
-hildondesktopentrydir=/usr/share/dbus-1/services
-hildoncpdesktopentrydir=/usr/
-hildonstatusbarplugindir=`$PKG_CONFIG hildon-status-bar-lib --variable=pluginlibdir`
-hildoncplibdir=`$PKG_CONFIG hildon-control-panel --variable=pluginlibdir`
-hildoniconthemedir=$HOME/.icons/hicolor
-
-AC_SUBST(localedir)
-AC_DEFINE_UNQUOTED(localedir,"$localedir",[localedir])
-AC_SUBST(desktopentrydir)
-AC_SUBST(hildondesktopentrydir)
-AC_SUBST(hildoncpdesktopentrydir)
-AC_SUBST(hildonstatusbarplugindir)
-AC_SUBST(hildoncplibdir)
-AC_SUBST(hildoniconthemedir)
+AC_PROG_LIBTOOL
-IT_PROG_INTLTOOL([0.35.0])
-GETTEXT_PACKAGE="$PACKAGE_NAME"
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
- [The domain to use with gettext])
-AM_GLIB_GNU_GETTEXT
+AC_HEADER_STDC
-USE_NLS=yes
-AC_SUBST(USE_NLS)
+PKG_CHECK_MODULES([DEPS], [glib-2.0 gobject-2.0 libsoup-2.4 \
+ libxml-2.0 json-glib-1.0 dbus-glib-1])
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_FILES([
- Makefile
- src/Makefile
- data/Makefile
- po/Makefile.in
- data/com.nokia.maevies.service
- data/maevies.desktop
+ Makefile
+ src/Makefile
+ examples/Makefile
+ test/Makefile
])
AC_OUTPUT