aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--configure.ac41
-rw-r--r--src/gns/Makefile.am2
3 files changed, 44 insertions, 0 deletions
diff --git a/README b/README
index 5fa01210a..78207584f 100644
--- a/README
+++ b/README
@@ -33,6 +33,7 @@ These are the direct dependencies for running GNUnet:
33- libgcrypt >= 1.2 33- libgcrypt >= 1.2
34- libcurl >= 7.21.3 34- libcurl >= 7.21.3
35- libunistring >= 0.9.2 35- libunistring >= 0.9.2
36- gnutls >= 2.12.0
36- libltdl >= 2.2 (part of GNU libtool) 37- libltdl >= 2.2 (part of GNU libtool)
37- sqlite >= 3.0 (default database) 38- sqlite >= 3.0 (default database)
38- mysql >= 5.1 (alternative to sqLite) 39- mysql >= 5.1 (alternative to sqLite)
diff --git a/configure.ac b/configure.ac
index e711a12a9..de4817a0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -808,6 +808,40 @@ AC_ARG_WITH(gnunetdns,
808AC_SUBST(GNUNETDNS_GROUP) 808AC_SUBST(GNUNETDNS_GROUP)
809 809
810 810
811
812# gnutls
813gnutls=0
814AC_MSG_CHECKING(for gnutls)
815AC_ARG_WITH(gnutls,
816 [ --with-gnutls=PFX base of gnutls installation],
817 [AC_MSG_RESULT([$with_gnutls])
818 case $with_gnutls in
819 no)
820 ;;
821 yes)
822 AC_CHECK_HEADERS([gnutls/abstract.h],
823 AC_CHECK_LIB([gnutls], [gnutls_priority_set],
824 gnutls=true))
825 ;;
826 *)
827 LDFLAGS="-L$with_gnutls/lib $LDFLAGS"
828 CPPFLAGS="-I$with_gnutls/include $CPPFLAGS"
829 AC_CHECK_HEADERS([gnutls/abstract.h],
830 AC_CHECK_LIB([gnutls], [gnutls_priority_set],
831 EXT_LIB_PATH="-L$with_gnutls/lib $EXT_LIB_PATH"
832 gnutls=true))
833 ;;
834 esac
835 ],
836 [AC_MSG_RESULT([--with-gnutls not specified])
837 AC_CHECK_HEADERS([gnutls/abstract.h],
838 AC_CHECK_LIB([gnutls], [gnutls_priority_set],
839 gnutls=true))])
840AM_CONDITIONAL(HAVE_GNUTLS, test x$gnutls = xtrue)
841AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have gnutls])
842
843
844
811# should 'make check' run tests? 845# should 'make check' run tests?
812AC_MSG_CHECKING(whether to run tests) 846AC_MSG_CHECKING(whether to run tests)
813AC_ARG_ENABLE([testruns], 847AC_ARG_ENABLE([testruns],
@@ -1105,6 +1139,12 @@ then
1105 AC_MSG_NOTICE([NOTICE: sqlite not found. sqLite support will not be compiled.]) 1139 AC_MSG_NOTICE([NOTICE: sqlite not found. sqLite support will not be compiled.])
1106fi 1140fi
1107 1141
1142#gnutls
1143if test x$gnutls != xtrue
1144then
1145 AC_MSG_NOTICE([NOTICE: gnutls not found, gnunet-gns-proxy will not be built])
1146fi
1147
1108# java ports 1148# java ports
1109if test "x$enable_java_ports" = "xyes" 1149if test "x$enable_java_ports" = "xyes"
1110then 1150then
@@ -1128,6 +1168,7 @@ then
1128 AC_MSG_NOTICE([NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library]) 1168 AC_MSG_NOTICE([NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library])
1129fi 1169fi
1130 1170
1171
1131AC_MSG_NOTICE([******************************************** 1172AC_MSG_NOTICE([********************************************
1132You can compile GNUnet with 1173You can compile GNUnet with
1133 make 1174 make
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index 14aaeee09..93eed3ae9 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -26,8 +26,10 @@ lib_LTLIBRARIES = \
26 26
27if HAVE_MHD 27if HAVE_MHD
28 DO_FCFSD=gnunet-gns-fcfsd 28 DO_FCFSD=gnunet-gns-fcfsd
29if HAVE_GNUTLS
29 DO_PROXY=gnunet-gns-proxy 30 DO_PROXY=gnunet-gns-proxy
30endif 31endif
32endif
31 33
32bin_PROGRAMS = \ 34bin_PROGRAMS = \
33 gnunet-service-gns \ 35 gnunet-service-gns \