enabled Doxygen functionality:

- add -Wno-unused-function to CFLAGS to avoid 'not used' warnings with
  unused static functions (for GCC only)
- check if Doxygen is available
- new options
 --enable-doxygen enable documentation generation with doxygen (auto)
 --enable-dot use 'dot' to generate graphs in doxygen (default auto)
 --enable-html-dox enable HTML generation with doxygen (default yes)
 --enable-latex-dox enable LaTeX generation with doxygen (default no)
This commit is contained in:
boercher
2005-10-25 22:33:39 +00:00
parent 99b0501337
commit d68b7903d6
+11 -2
View File
@@ -52,8 +52,6 @@ else
dnl Maximum optimisation
CFLAGS="-O3"
fi
CFLAGS="-Wall $CFLAGS"
export CFLAGS
dnl Checks for programs.
AC_PROG_CC
@@ -61,6 +59,13 @@ AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_RANLIB
dnl Avoid unused static function warnings
CFLAGS="-Wall $CFLAGS"
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wno-unused-function"
fi
export CFLAGS
dnl Solaris
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
@@ -500,6 +505,9 @@ AC_ARG_ENABLE(permissive_menu_goto,
fi,
)
# check for doxygen
BB_ENABLE_DOXYGEN
AC_CONFIG_FILES([Makefile
shared/Makefile
server/Makefile
@@ -512,6 +520,7 @@ AC_CONFIG_FILES([Makefile
clients/headlines/Makefile
clients/metar/Makefile
docs/Makefile
docs/Doxyfile
docs/lcdproc-dev/Makefile
docs/lcdproc-user/Makefile
docs/lcdproc-user/drivers/Makefile