exherbo-impulze/packages/media-sound/mp3splt-gtk/files/mp3splt-gtk-0.7-make_doc_generation_optional.patch
2011-08-28 00:19:02 +02:00

40 lines
1.4 KiB
Diff

Reason: avoid unnecessary generation of documentation if not wanted
Source: Daniel Mierswa <impulze@impulze.org>
Upstream: no
diff -Naur mp3splt-gtk-0.7.orig/configure.ac mp3splt-gtk-0.7/configure.ac
--- mp3splt-gtk-0.7.orig/configure.ac 2011-07-14 12:45:21.000000000 +0200
+++ mp3splt-gtk-0.7/configure.ac 2011-08-28 00:15:07.000000000 +0200
@@ -221,16 +221,31 @@
# (but only if doxygen is installed)
#################################################
+AC_ARG_ENABLE(doxygen, [AC_HELP_STRING([--disable-doxygen],[ Disable documentation generation. ]) ],
+ [enable_doxygen=$enableval],[enable_doxygen="yes"])
+
# Check for doxygen, so we can decide if we add it to the "doc"
# make target.
+
+if test "x$enable_doxygen" = xyes;then
+
AC_PATH_PROG([DOXYGEN],[doxygen])
+
+fi
+
AC_ARG_VAR(DOXYGEN,
[Location of the 'doxygen' program; if found we can generate documentation for the C code])
AM_CONDITIONAL(HAVE_DOXYGEN, [ test "x$DOXYGEN" != "x" ])
# Check for dot, the tool that makes the nice little caller graphs for the
# doxygen documentation.
+
+if test "x$enable_doxygen" = xyes;then
+
AC_PATH_PROG([GRAPHVIZ],[dot])
+
+fi
+
AC_ARG_VAR(GRAPHVIZ,
[Location of the 'dot' program from the graphviz suite; if found we can generate caller graphs for the documentation of the C code])
AM_CONDITIONAL(HAVE_GRAPHVIZ, [ test "x$GRAPHVIZ" != "x" ])