AC_INIT(tweakr, 0.0.17) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_PROG_LIBTOOL AC_PROG_INTLTOOL([0.23]) GETTEXT_PACKAGE=tweakr AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "${GETTEXT_PACKAGE}", [gettext pakname]) ALL_LINGUAS="en_GB en_US it_IT" dnl AM_GLIB_GNU_GETTEXT PKG_CHECK_MODULES(GLIB, glib-2.0) AC_SUBST(GLIB_LIBS) AC_SUBST(GLIB_CFLAGS) PKG_CHECK_MODULES(GTK, gtk+-2.0) AC_SUBST(GTK_LIBS) AC_SUBST(GTK_CFLAGS) PKG_CHECK_MODULES(HILDON, hildon-1) AC_SUBST(HILDON_LIBS) AC_SUBST(HILDON_CFLAGS) PKG_CHECK_MODULES(OSSO, libosso) AC_SUBST(OSSO_LIBS) AC_SUBST(OSSO_CFLAGS) PKG_CHECK_MODULES(OSSO, hildon-control-panel) AC_SUBST(CPA_LIBS) AC_SUBST(CPA_CFLAGS) PKG_CHECK_MODULES(GCONF2, gconf-2.0) AC_SUBST(GCONF2_LIBS) AC_SUBST(GCONF2_CFLAGS) PKG_CHECK_MODULES(PROFILE, profile >= 0.0.16) AC_SUBST(PROFILE_LIBS) AC_SUBST(PROFILE_CFLAGS) PKG_CHECK_MODULES(HILDON_DESKTOP, libhildondesktop-1) AC_SUBST(HILDON_DESKTOP_LIBS) AC_SUBST(HILDON_DESKTOP_CFLAGS) AC_ARG_ENABLE(cast-checks, [ --disable-cast-checks compile with GLIB cast checks disabled],[cchecks=${enableval}],cchecks=yes) if test "x$cchecks" = "xno"; then CFLAGS="$CFLAGS -DG_DISABLE_CAST_CHECKS" fi AC_ARG_ENABLE(asserts, [ --disable-asserts compile with GLIB assertions disabled],[asserts=${enableval}],asserts=yes) if test "x$asserts" = "xno"; then CFLAGS="$CFLAGS -DG_DISABLE_ASSERTS" fi AC_ARG_ENABLE(checks, [ --disable-checks compile with GLIB checks disabled],[checks=${enableval}],checks=yes) if test "x$checks" = "xno"; then CFLAGS="$CFLAGS -DG_DISABLE_CHECKS" fi AC_ARG_ENABLE(debug, [ --enable-debug enable printing of debug messages],[ddebug=${enableval}],ddebug=no) if test "x$ddebug" != "xyes"; then CFLAGS="$CFLAGS -DG_DEBUG_DISABLE" fi AC_ARG_ENABLE(coverage, [ --enable-coverage compile with coverage info],[coverage=${enableval}],coverage=no) if test "x$coverage" = "xyes"; then CFLAGS="$CFLAGS -g -fprofile-arcs -ftest-coverage" fi AC_ARG_WITH(modules_dir, AS_HELP_STRING([--with-modules-dir=],[Directory for storing tweakr modules])) if test -z "$with_modules_dir" ; then modulesdir=$libdir/tweakr/modules else modulesdir=$with_modules_dir fi AC_SUBST(modulesdir) AC_OUTPUT([ Makefile libtweakr-section/Makefile libtweakr-section/tweakr-section.pc modules/Makefile po/Makefile.in po/Makefile ])