X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=configure.ac;h=50169797ef677e6d0bd5690ed0aec2d170da9a5b;hb=0a4d547dc9cfc6dbbe7abd1611d56b7ca32370e2;hp=c68978d2083129ee7b48eef65ecbd3853ffb2320;hpb=2de26776993a5e591e487321a5dc1d62b86d9cd4;p=oweals%2Fgnunet.git diff --git a/configure.ac b/configure.ac index c68978d20..50169797e 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ # # GNUnet is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published -# by the Free Software Foundation; either version 2, or (at your +# by the Free Software Foundation; either version 3, or (at your # option) any later version. # # GNUnet is distributed in the hope that it will be useful, but @@ -32,7 +32,7 @@ AM_INIT_AUTOMAKE m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_HEADERS([gnunet_config.h]) AH_TOP([#define _GNU_SOURCE 1]) - +AC_CONFIG_MACRO_DIR([m4]) AC_PROG_AWK AC_PROG_CC AC_PROG_CPP @@ -223,7 +223,7 @@ NEED_LIBGCRYPT_VERSION=1.6.0 AM_PATH_LIBGCRYPT("$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION", gcrypt=1) -AC_CHECK_DECLS([gcry_mpi_lshift], [], [], [[#include ]]) +AC_CHECK_DECLS([gcry_mpi_set_opaque_copy], [], [], [[#include ]]) if test $gcrypt = 0 then @@ -402,14 +402,14 @@ else fi -# libcurl -LIBCURL_CHECK_CONFIG(,7.21.3,curl=1,curl=0) -if test "$curl" = 1 +# libgnurl +LIBGNURL_CHECK_CONFIG(,7.33.0,gnurl=1,gnurl=0) +if test "$gnurl" = 1 then - AM_CONDITIONAL(HAVE_LIBCURL, true) - AC_DEFINE([HAVE_LIBCURL],[1],[Have libcurl]) + AM_CONDITIONAL(HAVE_LIBGNURL, true) + AC_DEFINE([HAVE_LIBGNURL],[1],[Have libgnurl]) else - AM_CONDITIONAL(HAVE_LIBCURL, false) + AM_CONDITIONAL(HAVE_LIBGNURL, false) fi @@ -1032,7 +1032,14 @@ AC_ARG_WITH(gnutls, AC_CHECK_LIB([gnutls], [gnutls_priority_set], gnutls=true))]) AM_CONDITIONAL(HAVE_GNUTLS, test x$gnutls = xtrue) -AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have gnutls]) +AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have GnuTLS]) + +gnutls_dane=0 +AC_CHECK_HEADERS([gnutls/dane.h], + AC_CHECK_LIB([gnutls-dane], [dane_verify_crt_raw], + gnutls_dane=true)) +AM_CONDITIONAL(HAVE_GNUTLS_DANE, test x$gnutls_dane = xtrue) +AC_DEFINE_UNQUOTED([HAVE_GNUTLS_DANE], $gnutls_dane, [We have GnuTLS with DANE support]) # Test if we are building for superMUC @@ -1285,23 +1292,38 @@ AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) # version info AC_PATH_PROG(svnversioncommand, svnversion) AC_PATH_PROG(gitcommand, git) -if test "X$svnversioncommand" = "X" || test `$svnversioncommand -n '.'` = "exported" -then - if test "X$gitcommand" = "X" - then - AC_DEFINE_UNQUOTED(VCS_VERSION, ["release"], [repository svn version]) - else - gitver=$(git log -1 | grep "git-svn-id" | sed -e 's/.*@\([[0-9]]\+\) .*/\1/') - if test "X$gitver" = "X" - then - AC_DEFINE_UNQUOTED(VCS_VERSION, ["release"], [repository svn version]) - else - AC_DEFINE_UNQUOTED(VCS_VERSION, ["svn-$gitver"], [repository svn version]) - fi - fi -else - AC_DEFINE_UNQUOTED(VCS_VERSION, ["svn-`svnversion -n`"], [repository svn version]) -fi +AC_MSG_CHECKING(for source being under a VCS) +svn_version= +gitsvn_version= +AS_IF([test ! "X$svnversioncommand" = "X"], +[ + svn_version=$(cd $srcdir ; $svnversioncommand -n 2>/dev/null) +]) +AS_IF([test ! "X$gitcommand" = "X"], +[ + gitsvn_version=$(cd $srcdir ; git log -1 2>/dev/null | grep "git-svn-id" | sed -e 's/.*@\([[0-9]]\+\) .*/\1/') +]) +AS_IF([test "X$svn_version" = "X" -o "X$svn_version" = "Xexported" -o "X$svn_version" = "XUnversioned directory"], +[ + AS_IF([test "X$gitsvn_version" = "X"], + [ + vcs_name="no" + vcs_version="\"release\"" + ], + [ + vcs_name="yes, git-svn" + vcs_version="\"svn-r$gitsvn_version\"" + ]) +], +[ + vcs_name="yes, svn" + vcs_version="\"svn-r$svn_version\"" +]) +AC_MSG_RESULT($vcs_name) + +AC_MSG_CHECKING(VCS version) +AC_MSG_RESULT($vcs_version) +AC_DEFINE_UNQUOTED(VCS_VERSION, [$vcs_version], [VCS revision/hash or tarball version]) AC_CONFIG_FILES([ Makefile @@ -1377,6 +1399,8 @@ src/regex/Makefile src/regex/regex.conf src/revocation/Makefile src/revocation/revocation.conf +src/secretsharing/Makefile +src/secretsharing/secretsharing.conf src/scalarproduct/Makefile src/scalarproduct/scalarproduct.conf src/set/Makefile @@ -1455,10 +1479,10 @@ then AC_MSG_NOTICE([NOTICE: sqlite not found. sqLite support will not be compiled.]) fi -# libcurl -if test "x$curl" = "x0" +# libgnurl +if test "x$gnurl" = "x0" then - AC_MSG_NOTICE([NOTICE: libcurl not found. http client support will not be compiled.]) + AC_MSG_NOTICE([NOTICE: libgnurl not found. http client support will not be compiled.]) fi # bluetooth @@ -1470,7 +1494,12 @@ fi #gnutls if test x$gnutls != xtrue then - AC_MSG_NOTICE([NOTICE: gnutls not found, gnunet-gns-proxy will not be built]) + AC_MSG_NOTICE([NOTICE: GnuTLS not found, gnunet-gns-proxy will not be built]) +else +if test x$gnutls_dane != xtrue +then + AC_MSG_NOTICE([NOTICE: GnuTLS has no DANE support, DANE validation will not be possible]) +fi fi # java ports