-only build hostlist if we have curl
authorChristian Grothoff <christian@grothoff.org>
Fri, 12 Oct 2012 15:08:39 +0000 (15:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 12 Oct 2012 15:08:39 +0000 (15:08 +0000)
src/hostlist/Makefile.am

index f764f2fbe7a26aa0bb71efb84b223a5fa039cad7..1df537276462b12c494913d2232610e01c47814b 100644 (file)
@@ -14,8 +14,10 @@ if HAVE_MHD
  GN_LIBMHD = -lmicrohttpd
 endif
 
+if HAVE_LIBCURL
 bin_PROGRAMS = \
  gnunet-daemon-hostlist
+endif
 
 gnunet_daemon_hostlist_SOURCES = \
  gnunet-daemon-hostlist.c gnunet-daemon-hostlist.h \
@@ -36,6 +38,7 @@ gnunet_daemon_hostlist_LDADD = \
 gnunet_daemon_hostlist_CPPFLAGS = \
  @LIBCURL_CPPFLAGS@ 
 
+if HAVE_LIBCURL
 check_PROGRAMS = \
  test_gnunet_daemon_hostlist \
  test_gnunet_daemon_hostlist_reconnect \
@@ -49,6 +52,7 @@ TESTS = \
  test_gnunet_daemon_hostlist_learning
 endif
 endif
+endif
 
 test_gnunet_daemon_hostlist_SOURCES = \
  test_gnunet_daemon_hostlist.c