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:45:47 +0000 (12:45 +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 e9d7b14..aebd985 100644 (file)
@@ -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 ============================