From b013bcb0bb63ea0aca155f2959ea9f7f38324b8d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 22 Jun 2010 19:02:06 -0400 Subject: [PATCH] libftdi: add a --without-docs flag Allow people to easily & forcibly disable doxygen support. This is useful in builds where we only want the library and nothing else. The default is unchanged -- configure still searches for doxygen. Signed-off-by: Mike Frysinger --- configure.in | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/configure.in b/configure.in index e9d7b14..aebd985 100644 --- a/configure.in +++ b/configure.in @@ -76,7 +76,13 @@ fi AM_CONDITIONAL(HAVE_LIBFTDIPP, [test "x$ENABLE_LIBFTDIPP" = "x1"]) dnl check for doxygen -AC_PATH_PROG(DOXYGEN, doxygen) +AC_ARG_WITH(docs, + AS_HELP_STRING([--without-docs], [disable doxygen usage])) +if test "x$with_docs" != "xno"; then + AC_PATH_PROG(DOXYGEN, doxygen) +else + DOXYGEN= +fi AM_CONDITIONAL(HAVE_DOXYGEN, test -n $DOXYGEN) dnl ============================ -- 1.7.1