meson: Depend explicitly on libmicrohttpd >=0.9.61 (#1595)

Recent commit re-enabling SBI HTTP/1.1 support
(10bdf39505cf525b95886c140b3c2e82e7427d29) started using libmicrohttpd's
API MHD_create_response_from_buffer_with_free_callback(), which is only
available starting from v0.9.61.
As a result, compilation in xUbuntu 18.04 started failing with errors
about the function not being found, since it ships with libmicrohttpd
v0.9.59.
Depending on 0.9.61 is fine since it's quite old (november 2018) and all
major current distros should for sure have an >= one. Let's simply bump
the version check so that it fails in an informative manner.
This commit is contained in:
Pau Espin 2022-06-10 13:53:55 +02:00 committed by GitHub
parent 28089e2b59
commit b116630fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ if metrics_impl_optval == 'prometheus'
# 0.50.0: {'CMake Module'}
# 0.51.0: {'subproject'}
libmicrohttpd_dep = dependency('libmicrohttpd', version: '>=0.9.40')
libmicrohttpd_dep = dependency('libmicrohttpd', version: '>=0.9.61')
cmake = import('cmake')
prometheus_client_c_proj = cmake.subproject('prometheus-client-c')

View File

@ -49,7 +49,7 @@ sbi_cc_flags = ['-DOGS_SBI_COMPILATION']
libgnutls_dep = cc.find_library('gnutls', required : true)
libnghttp2_dep = dependency('libnghttp2', version: '>=1.18.1')
libmicrohttpd_dep = dependency('libmicrohttpd', version: '>=0.9.40')
libmicrohttpd_dep = dependency('libmicrohttpd', version: '>=0.9.61')
libcurl_dep = dependency('libcurl', version: '>=7.52.1')
libsbi = library('ogssbi',