Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngtcp2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kashyap Thimmaraju
ngtcp2
Commits
20a51130
There was an error fetching the commit references. Please try again later.
Commit
20a51130
authored
5 years ago
by
Tatsuhiro Tsujikawa
Browse files
Options
Downloads
Patches
Plain Diff
Add configure options to enable or disable OpenSSL and GNUTLS
parent
cf7e74d2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+36
-8
36 additions, 8 deletions
configure.ac
with
36 additions
and
8 deletions
configure.ac
+
36
−
8
View file @
20a51130
...
...
@@ -94,6 +94,16 @@ AC_ARG_WITH([jemalloc],
[Use jemalloc [default=check]])],
[request_jemalloc=$withval], [request_jemalloc=check])
AC_ARG_WITH([openssl],
[AS_HELP_STRING([--with-openssl],
[Use openssl [default=check]])],
[request_openssl=$withval], [request_openssl=check])
AC_ARG_WITH([gnutls],
[AS_HELP_STRING([--with-gnutls],
[Use gnutls [default=check]])],
[request_gnutls=$withval], [request_gnutls=check])
# Checks for programs
AC_PROG_CC
AC_PROG_CXX
...
...
@@ -141,19 +151,37 @@ AM_CONDITIONAL([HAVE_CUNIT], [ test "x${have_cunit}" = "xyes" ])
AM_CONDITIONAL([ENABLE_SHARED], [ test "x${enable_shared}" = "xyes" ])
# openssl (for examples)
PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.1.1],
[have_openssl=yes], [have_openssl=no])
if test "x${have_openssl}" = "xno"; then
AC_MSG_NOTICE($OPENSSL_PKG_ERRORS)
have_openssl=no
if test "x${request_openssl}" != "xno"; then
PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.1.1],
[have_openssl=yes], [have_openssl=no])
if test "x${have_openssl}" = "xno"; then
AC_MSG_NOTICE($OPENSSL_PKG_ERRORS)
fi
fi
if test "x${request_openssl}" = "xyes" &&
test "x${have_openssl}" != "xyes"; then
AC_MSG_ERROR([openssl was requested (--with-openssl) but not found])
fi
AM_CONDITIONAL([HAVE_OPENSSL], [ test "x${have_openssl}" = "xyes" ])
# GnuTLS (for examples)
PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.6.11],
[have_gnutls=yes], [have_gnutls=no])
if test "x${have_gnutls}" = "xno"; then
AC_MSG_NOTICE($GNUTLS_PKG_ERRORS)
have_gnutls=no
if test "x${request_gnutls}" != "xno"; then
PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.6.11],
[have_gnutls=yes], [have_gnutls=no])
if test "x${have_gnutls}" = "xno"; then
AC_MSG_NOTICE($GNUTLS_PKG_ERRORS)
fi
fi
if test "x${request_gnutls}" = "xyes" &&
test "x${have_gnutls}" != "xyes"; then
AC_MSG_ERROR([gnutls was requested (--with-gnutls) but not found])
fi
AM_CONDITIONAL([HAVE_GNUTLS], [ test "x${have_gnutls}" = "xyes" ])
AM_CONDITIONAL([HAVE_CRYPTO], [ test "x${have_openssl}" = "xyes" || test "x${have_gnutls}" = "xyes" ])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment