From 479070463f3ef0da856b0e8ceaec616d1eddaf2b Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 26 Apr 2020 04:43:46 -0700 Subject: [PATCH] configure: Add OpenSSL probe --- configure | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure b/configure index d3bd38e968..02cac186d1 100755 --- a/configure +++ b/configure @@ -4390,6 +4390,10 @@ fi # test "$opengl" != "no" # LIBS="$LIBS $epoxy_libs" # QEMU_CFLAGS="$QEMU_CFLAGS $epoxy_flags" + +########################################## +# gtk probe + # Depend on GTK for native file dialog boxes # FIXME: Add fallback when GTK is unavailable xemu_gtk="no" @@ -4413,7 +4417,14 @@ if test "$xemu_gtk" != "no"; then fi fi - +########################################## +# openssl probe +if $pkg_config --exists openssl; then + QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags openssl)" + LIBS="$LIBS $($pkg_config --libs openssl)" +else + feature_not_found "openssl" "Install openssl-dev" +fi ########################################## # libxml2 probe