Add gtk-doc infrastructure
[seedkit:seedkit.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl Created by Anjuta application wizard.
3 AC_PREREQ([2.63])
4 AC_INIT([seedkit],[0.1])
5
6 AC_CONFIG_HEADERS([config.h])
7
8 AM_INIT_AUTOMAKE([1.11])
9 AM_MAINTAINER_MODE([enable])
10
11 AC_CONFIG_MACRO_DIR(m4)
12
13 # Support silent build rules. Disable by either passing --disable-silent-rules
14 # to configure or passing V=1 to make
15 AM_SILENT_RULES([yes])
16
17 # Check for programs
18 AC_PROG_CC
19
20 #Initialize libtool
21 LT_PREREQ([2.2])
22 LT_INIT
23
24 # check for gtk-doc
25 GTK_DOC_CHECK([1.15],[--flavour no-tmpl])
26
27
28
29 # Check for libraries
30 GLIB_REQUIRED=2.25
31 GTK_REQUIRED=2.21.5
32 SEED_REQUIRED=2.31.5
33 WEBKIT_REQUIRED=1.2.3
34
35
36 PKG_CHECK_MODULES(SEEDKIT, 
37         glib-2.0 >= GLIB_REQUIRED dnl
38         gobject-2.0 >= GLIB_REQUIRED dnl
39         gtk+-2.0 >= GTK_REQUIRED dnl
40         webkit-1.0 >= WEBKIT_REQUIRED dnl
41         seed >= SEED_REQUIRED   
42         )
43
44
45 ##################################################
46 # Check for gtk-doc.
47 ##################################################
48 AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])
49 if test "x$with_html_dir" = "x" ; then
50   HTML_DIR='${datadir}/gtk-doc/html'
51 else
52   HTML_DIR=$with_html_dir
53 fi
54 AC_SUBST(HTML_DIR)
55
56 gtk_doc_min_version=1.0
57 AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
58 if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
59   AC_MSG_RESULT(yes)
60   GTKDOC=true
61 else
62   AC_MSG_RESULT(no)
63   GTKDOC=false
64 fi
65 dnl Let people disable the gtk-doc stuff.
66 AC_ARG_ENABLE(gtk-doc,
67               [  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]],
68               enable_gtk_doc="$enableval", enable_gtk_doc=auto)
69 if test x$enable_gtk_doc = xauto ; then
70   if test x$GTKDOC = xtrue ; then
71     enable_gtk_doc=yes
72   else
73     enable_gtk_doc=no
74   fi
75 fi
76 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
77
78
79 AC_CONFIG_FILES([
80 Makefile
81 doc/Makefile
82 libseedkit/Makefile
83 libseedkit/seedkit-1.0.pc
84 ])
85 AC_OUTPUT