summaryrefslogtreecommitdiff
blob: 4ceb2e8fbfb31952b4fe34be8eb771da2c2193a6 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Index: xmlrpc-c-1.06.03/src/cpp/Makefile
===================================================================
--- xmlrpc-c-1.06.03.orig/src/cpp/Makefile
+++ xmlrpc-c-1.06.03/src/cpp/Makefile
@@ -17,12 +17,15 @@ default: all
 # libxmlrpc_cpp is the legacy C++ wrapper library.  The others are the
 # more elaborate replacements.
 
-TARGET_LIBRARY_NAMES := \
+TARGET_LIBRARY_NAMES = \
   libxmlrpc_cpp \
   libxmlrpc++ \
   libxmlrpc_server++ \
-  libxmlrpc_server_abyss++ \
-  libxmlrpc_client++ \
+  libxmlrpc_server_abyss++
+
+ifeq ($(MUST_BUILD_CLIENT),yes)
+  TARGET_LIBRARY_NAMES += libxmlrpc_client++
+endif
 
 STATIC_LIBRARIES_TO_INSTALL = $(TARGET_STATIC_LIBRARIES)
 
@@ -57,7 +60,9 @@ LIBXMLRPCPP_OBJS = \
 
 LIBXMLRPC_SERVERPP_OBJS = registry.o
 LIBXMLRPC_SERVER_ABYSSPP_OBJS = server_abyss.o
+ifeq ($(MUST_BUILD_CLIENT),yes)
 LIBXMLRPC_CLIENTPP_OBJS = client.o client_simple.o curl.o libwww.o wininet.o
+endif
 
 ALL_OBJS = \
   XmlRpcCpp.o \
Index: xmlrpc-c-1.06.03/GNUmakefile
===================================================================
--- xmlrpc-c-1.06.03.orig/GNUmakefile
+++ xmlrpc-c-1.06.03/GNUmakefile
@@ -36,6 +36,7 @@ OMIT_VERSION_H = Y
 OMIT_TRANSPORT_CONFIG_H = Y
 
 transport_config.h: $(BUILDDIR)/Makefile.config
+ifeq ($(MUST_BUILD_CLIENT),yes)
 	rm -f $@
 	echo '/* This file was generated by a make rule */' >>$@
 ifeq ($(MUST_BUILD_WININET_CLIENT),yes)
@@ -67,6 +68,7 @@ else
     endif
   endif
 endif
+endif
 
 .PHONY: clean clean-local
 clean: $(SUBDIRS:%=%/clean) clean-common clean-local
Index: xmlrpc-c-1.06.03/src/Makefile
===================================================================
--- xmlrpc-c-1.06.03.orig/src/Makefile
+++ xmlrpc-c-1.06.03/src/Makefile
@@ -68,8 +68,10 @@ endif
 # referred-to library before it loads libxxx.  Note that the link command
 # may require the necessary -L options in addition.
 
+ifeq ($(MUST_BUILD_CLIENT),yes)
 LIBXMLRPC_CLIENT_OBJS = xmlrpc_client.lo xmlrpc_client_global.lo
 LIBXMLRPC_CLIENT_LIBDEP = -lxmlrpc_util -lxmlrpc
+endif
 
 LIBXMLRPC_SERVER_OBJS = registry.lo system_method.lo
 LIBXMLRPC_SERVER_LIBDEP = -lxmlrpc_util -lxmlrpc
@@ -78,8 +80,10 @@ LIBXMLRPC_SERVER_ABYSS_OBJS = xmlrpc_ser
 LIBXMLRPC_SERVER_ABYSS_LIBDEP = \
   -lxmlrpc_util -lxmlrpc_server -L$(ABYSS_LIBDIR) -lxmlrpc_abyss -lxmlrpc
 
+ifeq ($(ENABLE_CGI_SERVER),yes)
 LIBXMLRPC_SERVER_CGI_OBJS = xmlrpc_server_cgi.lo
 LIBXMLRPC_SERVER_CGI_LIBDEP = -lxmlrpc_util -lxmlrpc_server -lxmlrpc
+endif
 
 LIBXMLRPC_OBJS = \
 	trace.lo \
Index: xmlrpc-c-1.06.03/tools/Makefile
===================================================================
--- xmlrpc-c-1.06.03.orig/tools/Makefile
+++ xmlrpc-c-1.06.03/tools/Makefile
@@ -10,11 +10,12 @@ SUBDIRS = binmode-rpc-kit turbocharger
 
 ifeq ($(MUST_BUILD_CLIENT),yes)
   SUBDIRS += xmlrpc xmlrpc_transport
-endif
 
 ifeq ($(ENABLE_CPLUSPLUS),yes)
   SUBDIRS += xml-rpc-api2cpp
 endif
+endif
+
 
 .PHONY: all clean distclean install check dep
 
Index: xmlrpc-c-1.06.03/xmlrpc-c-config.in
===================================================================
--- xmlrpc-c-1.06.03.orig/xmlrpc-c-config.in
+++ xmlrpc-c-1.06.03/xmlrpc-c-config.in
@@ -108,26 +108,31 @@ while test $# -gt 0; do
       ;;
     client|libwww-client)
       # libwww-client is for backward compatibility
-      the_libs="-lxmlrpc_client $the_libs"
 
-      if test "${MUST_BUILD_WININET_CLIENT}" = "yes"; then
-        the_libs="@WININET_LDADD@ $the_libs"
-        the_rpath="@WININET_RPATH@ $the_rpath"
-        the_wl_rpath="@WININET_WL_RPATH@ $the_wl_rpath"
-      fi
-      if test "${MUST_BUILD_CURL_CLIENT}" = "yes"; then
-        the_libs="@CURL_LDADD@ $the_libs"
-        the_rpath="@CURL_RPATH@ $the_rpath"
-        the_wl_rpath="@CURL_WL_RPATH@ $the_wl_rpath"
-      fi
-      if test "${MUST_BUILD_LIBWWW_CLIENT}" = "yes"; then
-        the_libs="@LIBWWW_LDADD@ $the_libs"
-        the_rpath="@LIBWWW_RPATH@ $the_rpath"
-        the_wl_rpath="@LIBWWW_WL_RPATH@ $the_wl_rpath"
-      fi
-      if test "${needCpp}" = "yes"; then
-        the_libs="-lxmlrpc_client++ $the_libs"
+      if test "${MUST_BUILD_WININET_CLIENT}" = "yes" || \
+         test "${MUST_BUILD_CURL_CLIENT}" = "yes" || \
+         test "${MUST_BUILD_LIBWWW_CLIENT}" = "yes"; then
+        the_libs="-lxmlrpc_client $the_libs"
+
+        if test "${MUST_BUILD_WININET_CLIENT}" = "yes"; then
+          the_libs="@WININET_LDADD@ $the_libs"
+          the_rpath="@WININET_RPATH@ $the_rpath"
+          the_wl_rpath="@WININET_WL_RPATH@ $the_wl_rpath"
         fi
+        if test "${MUST_BUILD_CURL_CLIENT}" = "yes"; then
+          the_libs="@CURL_LDADD@ $the_libs"
+          the_rpath="@CURL_RPATH@ $the_rpath"
+          the_wl_rpath="@CURL_WL_RPATH@ $the_wl_rpath"
+        fi
+        if test "${MUST_BUILD_LIBWWW_CLIENT}" = "yes"; then
+          the_libs="@LIBWWW_LDADD@ $the_libs"
+          the_rpath="@LIBWWW_RPATH@ $the_rpath"
+          the_wl_rpath="@LIBWWW_WL_RPATH@ $the_wl_rpath"
+        fi
+        if test "${needCpp}" = "yes"; then
+          the_libs="-lxmlrpc_client++ $the_libs"
+        fi
+      fi
       ;;
     --version)
       echo "@VERSION@"