summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2024-03-03 07:10:14 +0000
committerSteve Langasek <steve.langasek@canonical.com>2024-03-03 07:23:51 +0000
commit9044806c2adc6118399349c70a6c5746cedcc374 (patch)
tree5f943ccc04d4b8021200085610f079ce1e6ecba8 /CMake
parent09092ad336e9f8a64ee59794fdc301a74238fe1c (diff)
Support building without gnutls
Once in a generation, it may be necessary to bootstrap apt in an environment where gnutls is not yet available. This makes gnutls support in apt optional. You may also want a configure flag to force gnutls to be required from outside the buildsystem (e.g. debian/rules).
Diffstat (limited to 'CMake')
-rw-r--r--CMake/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMake/config.h.in b/CMake/config.h.in
index 65f983fa9..607f9d5ae 100644
--- a/CMake/config.h.in
+++ b/CMake/config.h.in
@@ -5,6 +5,9 @@
/* Define if we have the timegm() function */
#cmakedefine HAVE_TIMEGM
+/* Define if we have the gnutls library for TLS */
+#cmakedefine HAVE_GNUTLS
+
/* Define if we have the zlib library for gzip */
#cmakedefine HAVE_ZLIB