diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-30 18:35:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-30 18:35:02 +0000 |
commit | 93fba12ad8159dc6b683f9e7ce9f0528a11047f5 (patch) | |
tree | 73b1bd212c6c5a32adb924d208d8a315b606e854 /src/fs/Makefile.am | |
parent | cfd880578bd21f9adedba557291c903d325e93cd (diff) | |
download | gnunet-93fba12ad8159dc6b683f9e7ce9f0528a11047f5.tar.gz gnunet-93fba12ad8159dc6b683f9e7ce9f0528a11047f5.zip |
make libextractor actually optional, both for GNUnet and GNUnet-taler builds
Diffstat (limited to 'src/fs/Makefile.am')
-rw-r--r-- | src/fs/Makefile.am | 64 |
1 files changed, 54 insertions, 10 deletions
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am index 8ac42c18d..736339aab 100644 --- a/src/fs/Makefile.am +++ b/src/fs/Makefile.am | |||
@@ -51,7 +51,12 @@ libgnunetfs_la_SOURCES = \ | |||
51 | libgnunetfs_la_LIBADD = \ | 51 | libgnunetfs_la_LIBADD = \ |
52 | $(top_builddir)/src/datastore/libgnunetdatastore.la \ | 52 | $(top_builddir)/src/datastore/libgnunetdatastore.la \ |
53 | $(top_builddir)/src/util/libgnunetutil.la \ | 53 | $(top_builddir)/src/util/libgnunetutil.la \ |
54 | $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring -lextractor | 54 | $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring |
55 | |||
56 | if HAVE_LIBEXTRACTOR | ||
57 | libgnunetfs_la_LIBADD += \ | ||
58 | -lextractor | ||
59 | endif | ||
55 | 60 | ||
56 | libgnunetfs_la_LDFLAGS = \ | 61 | libgnunetfs_la_LDFLAGS = \ |
57 | $(GN_LIB_LDFLAGS) $(WINFLAGS) \ | 62 | $(GN_LIB_LDFLAGS) $(WINFLAGS) \ |
@@ -92,9 +97,13 @@ gnunet_directory_SOURCES = \ | |||
92 | gnunet_directory_LDADD = \ | 97 | gnunet_directory_LDADD = \ |
93 | libgnunetfs.la \ | 98 | libgnunetfs.la \ |
94 | $(top_builddir)/src/util/libgnunetutil.la \ | 99 | $(top_builddir)/src/util/libgnunetutil.la \ |
95 | -lextractor \ | ||
96 | $(GN_LIBINTL) | 100 | $(GN_LIBINTL) |
97 | 101 | ||
102 | if HAVE_LIBEXTRACTOR | ||
103 | gnunet_directory_LDADD += \ | ||
104 | -lextractor | ||
105 | endif | ||
106 | |||
98 | gnunet_fs_profiler_SOURCES = \ | 107 | gnunet_fs_profiler_SOURCES = \ |
99 | gnunet-fs-profiler.c | 108 | gnunet-fs-profiler.c |
100 | gnunet_fs_profiler_LDADD = \ | 109 | gnunet_fs_profiler_LDADD = \ |
@@ -107,9 +116,13 @@ gnunet_fs_SOURCES = \ | |||
107 | gnunet_fs_LDADD = \ | 116 | gnunet_fs_LDADD = \ |
108 | libgnunetfs.la \ | 117 | libgnunetfs.la \ |
109 | $(top_builddir)/src/util/libgnunetutil.la \ | 118 | $(top_builddir)/src/util/libgnunetutil.la \ |
110 | -lextractor \ | ||
111 | $(GN_LIBINTL) | 119 | $(GN_LIBINTL) |
112 | 120 | ||
121 | if HAVE_LIBEXTRACTOR | ||
122 | gnunet_fs_LDADD += \ | ||
123 | -lextractor | ||
124 | endif | ||
125 | |||
113 | gnunet_download_SOURCES = \ | 126 | gnunet_download_SOURCES = \ |
114 | gnunet-download.c | 127 | gnunet-download.c |
115 | gnunet_download_LDADD = \ | 128 | gnunet_download_LDADD = \ |
@@ -123,31 +136,48 @@ gnunet_publish_LDADD = \ | |||
123 | $(top_builddir)/src/identity/libgnunetidentity.la \ | 136 | $(top_builddir)/src/identity/libgnunetidentity.la \ |
124 | libgnunetfs.la \ | 137 | libgnunetfs.la \ |
125 | $(top_builddir)/src/util/libgnunetutil.la \ | 138 | $(top_builddir)/src/util/libgnunetutil.la \ |
126 | -lextractor \ | ||
127 | $(GN_LIBINTL) | 139 | $(GN_LIBINTL) |
128 | 140 | ||
141 | if HAVE_LIBEXTRACTOR | ||
142 | gnunet_publish_LDADD += \ | ||
143 | -lextractor | ||
144 | endif | ||
145 | |||
129 | gnunet_auto_share_SOURCES = \ | 146 | gnunet_auto_share_SOURCES = \ |
130 | gnunet-auto-share.c | 147 | gnunet-auto-share.c |
131 | gnunet_auto_share_LDADD = \ | 148 | gnunet_auto_share_LDADD = \ |
132 | $(top_builddir)/src/util/libgnunetutil.la \ | 149 | $(top_builddir)/src/util/libgnunetutil.la \ |
133 | -lextractor \ | ||
134 | $(GN_LIBINTL) | 150 | $(GN_LIBINTL) |
135 | 151 | ||
152 | if HAVE_LIBEXTRACTOR | ||
153 | gnunet_auto_share_LDADD += \ | ||
154 | -lextractor | ||
155 | endif | ||
156 | |||
136 | gnunet_helper_fs_publish_SOURCES = \ | 157 | gnunet_helper_fs_publish_SOURCES = \ |
137 | gnunet-helper-fs-publish.c | 158 | gnunet-helper-fs-publish.c |
138 | gnunet_helper_fs_publish_LDADD = \ | 159 | gnunet_helper_fs_publish_LDADD = \ |
139 | $(top_builddir)/src/util/libgnunetutil.la \ | 160 | $(top_builddir)/src/util/libgnunetutil.la \ |
140 | -lextractor \ | ||
141 | $(GN_LIBINTL) | 161 | $(GN_LIBINTL) |
142 | 162 | ||
163 | if HAVE_LIBEXTRACTOR | ||
164 | gnunet_helper_fs_publish_LDADD += \ | ||
165 | -lextractor | ||
166 | endif | ||
167 | |||
143 | gnunet_search_SOURCES = \ | 168 | gnunet_search_SOURCES = \ |
144 | gnunet-search.c | 169 | gnunet-search.c |
145 | gnunet_search_LDADD = \ | 170 | gnunet_search_LDADD = \ |
146 | libgnunetfs.la \ | 171 | libgnunetfs.la \ |
147 | $(top_builddir)/src/util/libgnunetutil.la \ | 172 | $(top_builddir)/src/util/libgnunetutil.la \ |
148 | -lextractor \ | ||
149 | $(GN_LIBINTL) | 173 | $(GN_LIBINTL) |
150 | 174 | ||
175 | if HAVE_LIBEXTRACTOR | ||
176 | gnunet_search_LDADD += \ | ||
177 | -lextractor | ||
178 | endif | ||
179 | |||
180 | |||
151 | gnunet_daemon_fsprofiler_SOURCES = \ | 181 | gnunet_daemon_fsprofiler_SOURCES = \ |
152 | gnunet-daemon-fsprofiler.c | 182 | gnunet-daemon-fsprofiler.c |
153 | gnunet_daemon_fsprofiler_LDADD = \ | 183 | gnunet_daemon_fsprofiler_LDADD = \ |
@@ -243,9 +273,13 @@ test_plugin_block_fs_LDADD = \ | |||
243 | 273 | ||
244 | if HAVE_PYTHON | 274 | if HAVE_PYTHON |
245 | check_SCRIPTS = \ | 275 | check_SCRIPTS = \ |
246 | test_gnunet_fs_psd.py \ | ||
247 | test_gnunet_fs_rec.py \ | 276 | test_gnunet_fs_rec.py \ |
248 | test_gnunet_fs_idx.py | 277 | test_gnunet_fs_idx.py |
278 | |||
279 | if HAVE_LIBEXTRACTOR | ||
280 | check_SCRIPTS += \ | ||
281 | test_gnunet_fs_psd.py | ||
282 | endif | ||
249 | endif | 283 | endif |
250 | 284 | ||
251 | if ENABLE_MONKEY | 285 | if ENABLE_MONKEY |
@@ -289,10 +323,15 @@ endif | |||
289 | test_fs_directory_SOURCES = \ | 323 | test_fs_directory_SOURCES = \ |
290 | test_fs_directory.c | 324 | test_fs_directory.c |
291 | test_fs_directory_LDADD = \ | 325 | test_fs_directory_LDADD = \ |
292 | -lextractor \ | ||
293 | libgnunetfs.la \ | 326 | libgnunetfs.la \ |
294 | $(top_builddir)/src/util/libgnunetutil.la | 327 | $(top_builddir)/src/util/libgnunetutil.la |
295 | 328 | ||
329 | if HAVE_LIBEXTRACTOR | ||
330 | test_fs_directory_LDADD += \ | ||
331 | -lextractor | ||
332 | endif | ||
333 | |||
334 | |||
296 | test_fs_download_SOURCES = \ | 335 | test_fs_download_SOURCES = \ |
297 | test_fs_download.c | 336 | test_fs_download.c |
298 | test_fs_download_LDADD = \ | 337 | test_fs_download_LDADD = \ |
@@ -324,10 +363,15 @@ test_fs_download_persistence_LDADD = \ | |||
324 | test_fs_file_information_SOURCES = \ | 363 | test_fs_file_information_SOURCES = \ |
325 | test_fs_file_information.c | 364 | test_fs_file_information.c |
326 | test_fs_file_information_LDADD = \ | 365 | test_fs_file_information_LDADD = \ |
327 | -lextractor \ | ||
328 | libgnunetfs.la \ | 366 | libgnunetfs.la \ |
329 | $(top_builddir)/src/util/libgnunetutil.la | 367 | $(top_builddir)/src/util/libgnunetutil.la |
330 | 368 | ||
369 | if HAVE_LIBEXTRACTOR | ||
370 | test_fs_file_information_LDADD += \ | ||
371 | -lextractor | ||
372 | endif | ||
373 | |||
374 | |||
331 | test_fs_getopt_SOURCES = \ | 375 | test_fs_getopt_SOURCES = \ |
332 | test_fs_getopt.c | 376 | test_fs_getopt.c |
333 | test_fs_getopt_LDADD = \ | 377 | test_fs_getopt_LDADD = \ |