* modest-presets:
[modest] / configure.ac
index dfef1a0..56b919b 100644 (file)
@@ -1,7 +1,8 @@
 dnl configure.ac for modest 
-dnl Time-stamp: <2006-11-28 17:26:13 (djcb)>
+dnl Time-stamp: <2006-12-10 12:52:34 (djcb)> 
 dnl written by Dirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
 
+
 AC_INIT([modest],[0.0.1],[http://maemo.org])
 AC_CONFIG_HEADERS([config.h])
 
@@ -26,20 +27,22 @@ fi
 AC_SUBST(prefix)
 
 AC_PROG_CC
-AM_PROG_CC_C_O
 AM_PROG_CC_STDC
 AC_HEADER_STDC
 AC_PROG_LIBTOOL
 
-# check for perl
-AC_CHECK_PROG([perl])
-GTK_DOC_CHECK([1.0])
+
+
 
 dnl # GLib/Gobject/Gtk/Gconf => mandatory
 PKG_CHECK_MODULES(MODEST_GSTUFF,glib-2.0 >= 2.6 gobject-2.0 gtk+-2.0 >= 2.6 gconf-2.0 libgtkhtml-3.8 libglade-2.0 libtinymail-1.0 libtinymail-camel-1.0 libtinymailui-1.0 libtinymailui-gtk-1.0) 
 AC_SUBST(MODEST_GSTUFF_CFLAGS)
 AC_SUBST(MODEST_GSTUFF_LIBS)
 
+
+
+
+
 dnl dnl now, determine what to build
 AC_MSG_NOTICE([Determining what platform to build])
 PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO,libosso,[with_platform=maemo],true)
@@ -71,6 +74,49 @@ fi
 dnl 1==>gtk, 2==>maemo
 AC_SUBST(MODEST_PLATFORM_ID)
 
+
+
+
+
+dnl ## setup the testing framework (ie., make check)
+build_tests=false
+AC_ARG_ENABLE(tests,
+AC_HELP_STRING([--enable-tests],
+       [Build tests (no, yes)]),
+[case "${enableval}" in
+      yes)
+       build_tests=true ;;
+      *) build_tests=false ;;
+esac],[build_tests=false])
+AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xtrue)
+
+dnl ## is the check package installed?
+if test x$build_tests = xtrue; then
+   PKG_CHECK_MODULES(CHECK, check >= 0.9.4 glib-2.0)
+fi
+
+
+
+
+
+dnl ## do we want documentation (gtk-doc)
+build_docs=false
+AC_ARG_ENABLE(docs,
+AC_HELP_STRING([--enable-docs],
+       [Build documentation (yes, no)]),
+[case "${enableval}" in
+      yes)
+       build_docs=true ;;
+      *) build_docs=false ;;
+esac],[build_docs=false])
+AM_CONDITIONAL(BUILD_DOCS, test x$build_docs = xtrue)
+
+dnl ## is the check package installed?
+GTK_DOC_CHECK([1.0])
+
+
+
+
 AC_OUTPUT([
 po/Makefile.in
 Makefile
@@ -83,10 +129,16 @@ docs/reference/Makefile
 tests/Makefile
 ])
 
+
+
+
+
 echo
 echo "modest configure results"
 echo "-----------------------------------"
 echo "Platform       : $with_platform"
+echo "Build tests    : $build_tests"
+echo "Build docs     : $build_docs"
 echo ""
 echo "NOTE: you should do a 'make clean' after changing platform (--with-platform=)"
 echo ""