summaryrefslogtreecommitdiffstats
path: root/src/libdvdread-1-fix-disable-apidoc.patch
blob: 7a1cf9484b6f0e0d3b5eaec0c526f68c00ed76d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
This file is part of MXE.
See index.html for further information.

Taken from:
http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/2014-March/002154.html

From 967043381ad30ca32428e58b697f4928c6160e92 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Sun, 23 Mar 2014 16:50:05 -0700
Subject: [PATCH] libdvdread/configure: fix --disable-apidoc

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index fd2ce0f..2981f1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ AC_SUBST([CSS_REQUIRES])
 CC_CHECK_CFLAGS_APPEND([-Wall -Wsign-compare])
 
 
-AC_ARG_ENABLE([doc],
+AC_ARG_ENABLE([apidoc],
   AS_HELP_STRING([--disable-apidoc], [Disable building (with Doxygen) and intalling API documentation @<:@default=auto@:@>]))
 
 AC_PATH_PROG([DOXYGEN], [doxygen])
@@ -94,7 +94,7 @@ AS_IF([test "x$DOXYGEN" = "x"], [
     AC_MSG_ERROR([You need Doxygen to build API documentation])
   ])
 ])
-AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x"])
+AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x" && test "x$enable_apidoc" = "xyes"])
 
 dnl ---------------------------------------------
 dnl Output configuration files
-- 
1.8.3.2