shithub: libdvdcss

Download patch

ref: 766fd6647a87e8c35f7b20f5f7f9eea48b1a25d1
parent: 8572e60d54aaa1f752ac5a1aa842183dab900420
author: Diego Elio Pettenò <flameeyes@flameeyes.eu>
date: Wed Feb 27 06:26:23 EST 2013

build: properly handle --disable-doc

--- a/configure.ac
+++ b/configure.ac
@@ -222,12 +222,14 @@
 AM_CONDITIONAL(SYS_MSVC, test "${SYS_MSVC}" = "1")
 
 AC_ARG_ENABLE([doc],
-  AS_HELP_STRING([--disable-apidoc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
+  AS_HELP_STRING([--disable-doc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
 
-AC_PATH_PROG([DOXYGEN], [doxygen])
+AS_IF([test "x$enable_doc" != "xno"], [
+  AC_PATH_PROG([DOXYGEN], [doxygen])
+])
 
 AS_IF([test "x$DOXYGEN" = "x"], [
-  AS_IF([test "x$enable_apidoc" = "xyes"], [
+  AS_IF([test "x$enable_doc" = "xyes"], [
     AC_MSG_ERROR([You need Doxygen to build API documentation])
   ])
 ])