2 AM_INIT_AUTOMAKE(hildon-libs, 0.9.47)
3 AM_CONFIG_HEADER(config.h)
14 PKG_CHECK_MODULES(OUTO, outo >= 0.1.1)
17 CFLAGS="$CFLAGS -std=c99 -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
18 # -Werror disabled due to the flaw in glib-2.0
19 # See http://bugzilla.gnome.org/show_bug.cgi?id=310175 and
20 # http://bugzilla.gnome.org/show_bug.cgi?id=310216
24 PKG_CHECK_MODULES(GTK, hildon-lgpl >= 0.9.1 hildon-fm >= 0.8.6)
29 # ESD is needed for the hildon-note sounds.
31 PKG_CHECK_MODULES(ESD, esound)
35 # Needed to demonstrate how mime-types can be handled with gnome-vfs
36 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6)
37 AC_SUBST(GNOME_VFS_CFLAGS)
38 AC_SUBST(GNOME_VFS_LIBS)
40 PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.6)
41 AC_SUBST(GCONF_CFLAGS)
48 ##################################################
50 ##################################################
52 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
54 if test "x$with_html_dir" = "x" ; then
55 HTML_DIR='${datadir}/gtk-doc/html'
57 HTML_DIR=$with_html_dir
60 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
62 gtk_doc_min_version=0.10
64 gtk_doc_version=`gtkdoc-mkdb --version`
65 AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version]
68 exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
69 ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
78 # Let people disable the gtk-doc stuff.
79 AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc use gtk-doc to build documenta
80 tion [default=yes]], enable_gtk_doc="$enableval", enable_gtk_doc=yes)
82 if test x$enable_gtk_doc = xauto ; then
83 if test x$GTKDOC = xtrue ; then
90 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
92 AC_CHECK_PROG(DOXYGEN_FOUND, doxygen, yes, no)
93 AM_CONDITIONAL(HAVE_DOXYGEN, [test "$DOXYGEN_FOUND" = "yes"])
95 localedir=${datadir}/locale
96 outomoduledir=${libdir}/outo
98 AC_ARG_ENABLE(doc-dir, [ --with-doc-dir=PATH path to installed docs ])
99 if test "x$with_doc_dir" = "x" ; then
100 docdir='${datadir}/doc'
105 HTML_DIR=${docdir}/html
109 AC_SUBST(outomoduledir)
113 hildon-widgets/Makefile \