bad: disable dtls test if openssl is not present

On MacOS with homebrew, the openssl library is not
properly detected with pkg-config.
So disable the test compilation if openssl
is not properly detected along with libcrypto.

libcrypto is detected but it uses the system one
which leads to the error:

your binary is not an allowed client of /usr/lib/libcrypto.dylib for
architecture x86_64

See more details from Apple:

https://developer.apple.com/forums/thread/124782

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4481>
This commit is contained in:
Stéphane Cerveau 2023-04-25 10:14:47 +02:00 committed by GStreamer Marge Bot
parent 35177b81b3
commit 40bd8468af

View file

@ -127,7 +127,7 @@ if host_machine.system() != 'windows'
[['elements/curlftpsink.c'], not curl_dep.found(), [curl_dep]],
[['elements/curlsmtpsink.c'], not curl_dep.found(), [curl_dep]],
[['elements/dash_mpd.c'], not xml2_dep.found(), [xml2_dep]],
[['elements/dtls.c'], not libcrypto_dep.found(), [libcrypto_dep]],
[['elements/dtls.c'], not libcrypto_dep.found() or not openssl_dep.found (), [libcrypto_dep]],
[['elements/faac.c'],
not faac_dep.found() or not cc.has_header_symbol('faac.h', 'faacEncOpen') or not cdata.has('HAVE_UNISTD_H'),
[faac_dep]],