Reverted order of checks for libgnutls and libgcrypt. Thanks Simon Josefsson.
Showing
1 changed file
with
5 additions
and
4 deletions
... | @@ -31,11 +31,12 @@ AC_DEFUN(MU_CHECK_TLS, | ... | @@ -31,11 +31,12 @@ AC_DEFUN(MU_CHECK_TLS, |
31 | [WITH_GNUTLS=no]) | 31 | [WITH_GNUTLS=no]) |
32 | if test "$WITH_GNUTLS" != "no"; then | 32 | if test "$WITH_GNUTLS" != "no"; then |
33 | saved_LIBS=$LIBS | 33 | saved_LIBS=$LIBS |
34 | AC_CHECK_LIB(gnutls, gnutls_global_init, | ||
35 | [TLS_LIBS="-lgnutls"], | ||
36 | [WITH_GNUTLS=no]) | ||
37 | AC_CHECK_LIB(gcrypt, main, | 34 | AC_CHECK_LIB(gcrypt, main, |
38 | [TLS_LIBS="$TLS_LIBS -lgcrypt"], | 35 | [TLS_LIBS="-lgcrypt"], |
36 | [WITH_GNUTLS=no]) | ||
37 | LIBS="$LIBS $TLS_LIBS" | ||
38 | AC_CHECK_LIB(gnutls, gnutls_global_init, | ||
39 | [TLS_LIBS="-lgnutls $TLS_LIBS"], | ||
39 | [WITH_GNUTLS=no]) | 40 | [WITH_GNUTLS=no]) |
40 | LIBS=$saved_LIBS | 41 | LIBS=$saved_LIBS |
41 | fi | 42 | fi | ... | ... |
-
Please register or sign in to post a comment