From 48cc9f3beb7053f51fcdabe25439faae648b6370 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 17 Feb 2006 20:48:45 +0000 Subject: doxygen support for autotools (patch from Christian Hamar --- configure.ac | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9d6f8d51..43f05519 100644 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,11 @@ AC_ARG_ENABLE(fakeroot, AC_HELP_STRING([--disable-fakeoot], [Disable fakeroot proof support]), [fakeroot=$enableval], [fakeroot=yes]) +dnl Help line for doxygen +AC_ARG_ENABLE(doxygen, + AC_HELP_STRING([--disable-doxygen], [Build API docs via Doxygen]), + [wantdoxygen=$enableval], [wantdoxygen=yes]) + dnl Check for man2html binary AC_MSG_CHECKING(for support man2html) if test x$wantman2html = xyes ; then @@ -75,6 +80,27 @@ else AC_MSG_RESULT(not requested by configure) fi +dnl Check for doxygen support +AC_MSG_CHECKING(for support Doxygen) +if test x$wantdoxygen = xyes ; then + AC_CHECK_PROGS([DOXYGEN], [doxygen] [doxygen binary]) + AM_CONDITIONAL(HAS_DOXYGEN, test $DOXYGEN) + if test $DOXYGEN ; then + AC_DEFINE([HAS_DOXYGEN], [TRUE], [Enabled Doxygen Support]) + AC_MSG_RESULT(yes) + DOXYSTATUS="yes, path: `which $DOXYGEN`" + else + AC_DEFINE([HAS_DOXYGEN], [FALSE], [Disabled Doxygen support]) + AC_MSG_RESULT(no, doxygen missing) + DOXYSTATUS="doxygen binary not found" + fi +else + AM_CONDITIONAL(HAS_DOXYGEN, test $DOXYGEN) + AC_DEFINE([HAS_DOXYGEN], [FALSE], [Not specified at configure line]) + AC_MSG_RESULT(not requested by configure) + DOXYSTATUS="disabled by configure" +fi + dnl Enable or disable Warning FLAGS during compile AC_MSG_CHECKING(for more compiler warnings) if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then @@ -165,4 +191,6 @@ pacman-$VERSION: libalpm version: ${PM_VERSION} debug support: ${debug} + + Doxygen support : ${DOXYSTATUS} " -- cgit v1.2.3-24-g4f1b