From 021e435e853c588f5fcf051020816b117d6ecba3 Mon Sep 17 00:00:00 2001 From: V V Date: Mon, 19 Oct 2015 18:23:30 +0300 Subject: [PATCH] updated tgl, update configure --- configure | 22 ++++++++++++---------- configure.ac | 4 ++-- tgl | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/configure b/configure index 1974680..fa7e189 100755 --- a/configure +++ b/configure @@ -4094,9 +4094,9 @@ if test "${enable_openssl+set}" = set; then : $as_echo "#define TGL_AVOID_OPENSSL 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 -$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } -if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_mpi_snatch in -lgcrypt" >&5 +$as_echo_n "checking for gcry_mpi_snatch in -lgcrypt... " >&6; } +if ${ac_cv_lib_gcrypt_gcry_mpi_snatch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -4110,33 +4110,35 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char gcry_md_open (); +char gcry_mpi_snatch (); int main () { -return gcry_md_open (); +return gcry_mpi_snatch (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_gcrypt_gcry_md_open=yes + ac_cv_lib_gcrypt_gcry_mpi_snatch=yes else - ac_cv_lib_gcrypt_gcry_md_open=no + ac_cv_lib_gcrypt_gcry_mpi_snatch=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 -$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } -if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_mpi_snatch" >&5 +$as_echo "$ac_cv_lib_gcrypt_gcry_mpi_snatch" >&6; } +if test "x$ac_cv_lib_gcrypt_gcry_mpi_snatch" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBGCRYPT 1 _ACEOF LIBS="-lgcrypt $LIBS" +else + as_fn_error $? "\"Need libgcrypt >= 1.60\"" "$LINENO" 5 fi else diff --git a/configure.ac b/configure.ac index bac7e5c..2d97c36 100644 --- a/configure.ac +++ b/configure.ac @@ -37,8 +37,8 @@ AC_ARG_ENABLE(openssl,[ --disable-openssl disables OpenSSL, and don't link ag (this can't read *.pub files, though.)], [ if test "x$enableval" = "xno" ; then - AC_DEFINE([TGL_AVOID_OPENSSL],[1],[avoid OpenSSL entirely, use libgcrypt instead (this can't read *.pub files, though.)]) - AC_CHECK_LIB([gcrypt], [gcry_md_open]) + AC_DEFINE([TGL_AVOID_OPENSSL],[1],[avoid OpenSSL entirely, use libgcrypt instead (this can't read *.pub files, though.)]) + AC_CHECK_LIB([gcrypt], [gcry_mpi_snatch], [], [AC_MSG_ERROR(["Need libgcrypt >= 1.60"])]) else # Don't be annoying, so don't inform the user about --disable-openssl AX_CHECK_OPENSSL(,[AC_MSG_ERROR([No openssl found.])]) diff --git a/tgl b/tgl index 76e2dc1..5b725d2 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit 76e2dc111a90a9622badae90ddaf962a26cf815e +Subproject commit 5b725d288f59ada3f8905a73182fe57ae8c22986