Skip to content

Commit

Permalink
Make building API docs optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxdis authored and MaxKellermann committed Sep 21, 2011
1 parent 9d7c1c0 commit a286805
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions configure.ac
Expand Up @@ -27,10 +27,6 @@ AM_CONDITIONAL(HAVE_GNU_LD, test x$with_gnu_ld = xyes)
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL

AC_PATH_PROG(DOXYGEN, doxygen)
AM_CONDITIONAL(DOXYGEN, test x$DOXYGEN != x)
AC_SUBST(DOXYGEN)


dnl
dnl initialize variables
Expand Down Expand Up @@ -64,6 +60,16 @@ dnl
dnl build options
dnl

AC_ARG_ENABLE(documentation,
AS_HELP_STRING([--disable-documentation],
[Disable API doc generation (default: enabled)]),,
[enable_documentation=yes])
if test "x$enable_documentation" = xyes; then
AC_PATH_PROG(DOXYGEN, doxygen)
AM_CONDITIONAL(DOXYGEN, test x$DOXYGEN != x)
AC_SUBST(DOXYGEN)
fi

AC_ARG_ENABLE(tcp,
AS_HELP_STRING([--disable-tcp],
[Disable TCP support (default: enabled)]),,
Expand Down

0 comments on commit a286805

Please sign in to comment.