summaryrefslogtreecommitdiff
path: root/debian/patches/0003-build-We-shouldn-t-enable-modules-when-with-modules-.patch
blob: 8619beb9592fa6cee18773054491fdcab5bebdee (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
From d0af5288def3fad3436c9f3f632ed4161e899b8b Mon Sep 17 00:00:00 2001
From: Solomon Peachy <pizza@shaftnet.org>
Date: Mon, 26 Sep 2016 09:02:56 -0400
Subject: build:  We shouldn't enable modules when --with-modules=no or =static

---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index a9e4291..e5404fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -878,7 +878,7 @@ fi
 # define what module system is to be used
 AC_MSG_CHECKING([which module system will be used])
 if test x$USE_LTDL = xtrue; then
-  if test -z "$WITH_MODULES" ; then
+  if test -z "$WITH_MODULES" -o x$WITH_MODULES = xno -o x$WITH_MODULES = xstatic ; then
     MODULE="false"
   else
     MODULE="true"
@@ -890,7 +890,7 @@ if test x$USE_LTDL = xtrue; then
   AC_DEFINE(USE_LTDL, "1", [Use GNU libltdl as module loader])
   AC_MSG_RESULT([ltdl])
 elif test x$USE_DLOPEN = xtrue; then
-  if test -z "$WITH_MODULES" ; then
+  if test -z "$WITH_MODULES" -o x$WITH_MODULES = xno -o x$WITH_MODULES = xstatic ; then
     MODULE="false"
   else
     MODULE="true"