Skip to content

Commit

Permalink
recreated configure
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and Marco van Wieringen committed Feb 17, 2015
1 parent 0dda2a4 commit db73bf2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoconf/config.h.in
Expand Up @@ -384,9 +384,15 @@
/* Define to 1 if GNUTLS library is available */
#undef HAVE_GNUTLS

/* Define to 1 if you have the `gnutls_cipher_init' function. */
#undef HAVE_GNUTLS_CIPHER_INIT

/* Define to 1 if you have the <gnutls/gnutls.h> header file. */
#undef HAVE_GNUTLS_GNUTLS_H

/* Define to 1 if you have the `gnutls_transport_set_int' function. */
#undef HAVE_GNUTLS_TRANSPORT_SET_INT

/* Define to 1 if you have the <grp.h> header file. */
#undef HAVE_GRP_H

Expand Down
37 changes: 37 additions & 0 deletions configure
Expand Up @@ -23787,9 +23787,46 @@ fi
fi

if test "$have_gnutls" = "yes"; then
# do an additional check to see if required functions are available,
# otherwise disable gnutls
for ac_func in gnutls_cipher_init
do :
ac_fn_c_check_func "$LINENO" "gnutls_cipher_init" "ac_cv_func_gnutls_cipher_init"
if test "x$ac_cv_func_gnutls_cipher_init" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_GNUTLS_CIPHER_INIT 1
_ACEOF

have_gnutls="yes"

else

have_gnutls="no"


fi
done

fi

if test "$have_gnutls" = "yes"; then

$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h

# gnutls_transport_set_ptr may cause problems on some platforms,
# therefore the replacement gnutls_transport_set_int is used
# when available (since GnuTLS >= 3.1.9)
for ac_func in gnutls_transport_set_int
do :
ac_fn_c_check_func "$LINENO" "gnutls_transport_set_int" "ac_cv_func_gnutls_transport_set_int"
if test "x$ac_cv_func_gnutls_transport_set_int" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_GNUTLS_TRANSPORT_SET_INT 1
_ACEOF

fi
done

fi

if test "$support_tls" != "no" -a "$have_gnutls" = "yes"; then
Expand Down

0 comments on commit db73bf2

Please sign in to comment.