Browse Source

correctly detect curl/json with missing mhd

Schanzenbach, Martin 4 years ago
parent
commit
340845f56f
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/Makefile.am

+ 6 - 3
src/Makefile.am

@@ -24,13 +24,15 @@ endif
 endif
 
 if HAVE_JSON
+if HAVE_MHD
   JSON_DIR = json
+endif
+endif
 if HAVE_LIBGNURL
-  JSON_DIR += curl
+  CURL_DIR = curl
 else
 if HAVE_LIBCURL
-  JSON_DIR += curl
-endif
+  CURL_DIR = curl
 endif
 endif
 
@@ -81,6 +83,7 @@ SUBDIRS = \
   arm \
   $(TESTING) \
   $(JSON_DIR) \
+  $(CURL_DIR) \
   $(REST_DIR) \
   peerinfo \
   $(SQLITE_DIR) \