libftdi: add a --without-docs flag
authorMike Frysinger <vapier@gentoo.org>
Tue, 22 Jun 2010 23:02:06 +0000 (19:02 -0400)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 25 Jun 2010 10:43:54 +0000 (12:43 +0200)
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 <vapier@gentoo.org>

configure.in

index f3dad4d..40f6476 100644 (file)
@@ -85,7 +85,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 ============================