3 # from gtk-doc-0.9-5/usr/share/doc/gtk-doc-0.9/examples/configure.in
4 # Copyright (C) 2002 Jan Kratochvil <project-macros@jankratochvil.net>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; exactly version 2 of June 1991 is required
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 # s/if test x$GTKDOC = xtrue ; then/if test x$GTKDOC = xtrue -o x$USE_MAINTAINER_MODE = xyes ; then/
24 AC_DEFUN([GTK_DOC_CHECK],
27 # This is a check for gtk-doc which you can insert into your configure.in.
28 # You shouldn't need to change it at all.
31 ##################################################
33 ##################################################
35 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
37 if test "x$with_html_dir" = "x" ; then
38 HTML_DIR='${datadir}/gtk-doc/html'
40 HTML_DIR=$with_html_dir
45 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
47 gtk_doc_min_version=0.6
49 gtk_doc_version=`gtkdoc-mkdb --version`
50 AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
52 exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
53 ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
62 dnl Let people disable the gtk-doc stuff.
63 AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
65 if test x$enable_gtk_doc = xauto ; then
66 if test x$GTKDOC = xtrue -o x$USE_MAINTAINER_MODE = xyes ; then
73 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)