You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
502 B

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -210,7 +210,11 @@ dnl ;;
  4. dnl esac
  5. dnl fi
  6. -PKG_CHECK_MODULES(GnuTLS, [gnutls >= 2.12.0],[HAVE_GNUTLS=1],[HAVE_GNUTLS=0])
  7. +AC_ARG_WITH([gnutls], AS_HELP_STRING([--with-gnutls], [Build with GnuTLS]))
  8. +AS_IF([test "x$with_gnutls" = "xyes"], [
  9. + PKG_CHECK_MODULES(GnuTLS, [gnutls >= 2.12.0],[HAVE_GNUTLS=1],[HAVE_GNUTLS=0])
  10. +])
  11. +
  12. if test x$HAVE_GNUTLS = x1; then
  13. AC_DEFINE(HAVE_GNUTLS, 1, [Define to 1 if you have a GnuTLS version of 2.12 or above])
  14. else