[Spice-commits] configure.ac src/Makefile.am

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Apr 27 10:36:08 UTC 2019


 configure.ac    |    6 +++---
 src/Makefile.am |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 8bf59bc22542dde9a958e818c198b7fe4b4eb9cf
Author: Roman Bogorodskiy <bogorodskiy at gmail.com>
Date:   Sat Apr 27 14:07:01 2019 +0400

    Unify openssl checks
    
    Currently, spice-gtk uses PKG_CHECK_MODULES(SSL, openssl) to detect
    openssl CFLAGS and LIBS. And spice-common defines and uses
    SPICE_CHECK_OPENSSL macro which calls
    PKG_CHECK_MODULES(OPENSSL, openssl).
    
    This means that in order to override openssl CFLAGS or LIBS a user will
    have to set both OPENSSL_(CFLAGS|LIBS) and SSL_(CFLAGS|LIBS).
    
    To make this more consistent, make spice-gtk use the
    SPICE_CHECK_OPENSSL macro from spice-common.
    
    Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/configure.ac b/configure.ac
index d234822..0666e2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -114,11 +114,11 @@ PKG_CHECK_MODULES(PIXMAN, pixman-1 >= 0.17.7)
 
 SPICE_GLIB_REQUIRES="${SPICE_GLIB_REQUIRES} pixman-1 >= 0.17.7"
 
-PKG_CHECK_MODULES(SSL, openssl)
+SPICE_CHECK_OPENSSL
 
 PKG_CHECK_EXISTS(openssl,
   [SPICE_GLIB_REQUIRES="${SPICE_GLIB_REQUIRES} openssl"],
-  [SPICE_GLIB_LIBS="${SPICE_GLIB_LIBS} ${SSL_LIBS}"])
+  [SPICE_GLIB_LIBS="${SPICE_GLIB_LIBS} ${OPENSSL_LIBS}"])
 
 SPICE_CHECK_RECORDER
 SPICE_CHECK_SASL
@@ -489,7 +489,7 @@ SPICE_CFLAGS="$SPICE_CFLAGS $WARN_CFLAGS"
 
 AC_SUBST(SPICE_CFLAGS)
 
-SPICE_GLIB_CFLAGS="$PIXMAN_CFLAGS $PULSE_CFLAGS $GSTAUDIO_CFLAGS $GSTVIDEO_CFLAGS $GLIB2_CFLAGS $GIO_CFLAGS $GOBJECT2_CFLAGS $SSL_CFLAGS $SASL_CFLAGS"
+SPICE_GLIB_CFLAGS="$PIXMAN_CFLAGS $PULSE_CFLAGS $GSTAUDIO_CFLAGS $GSTVIDEO_CFLAGS $GLIB2_CFLAGS $GIO_CFLAGS $GOBJECT2_CFLAGS $OPENSSL_CFLAGS $SASL_CFLAGS"
 SPICE_GTK_CFLAGS="$SPICE_GLIB_CFLAGS $GTK_CFLAGS "
 
 AC_SUBST(SPICE_GLIB_CFLAGS)
diff --git a/src/Makefile.am b/src/Makefile.am
index cdc4d28..7b98180 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -80,7 +80,7 @@ SPICE_COMMON_CPPFLAGS =						\
 	$(GIO_CFLAGS)						\
 	$(GOBJECT2_CFLAGS)					\
 	$(JSON_CFLAGS)						\
-	$(SSL_CFLAGS)						\
+	$(OPENSSL_CFLAGS)					\
 	$(SASL_CFLAGS)						\
 	$(GSTAUDIO_CFLAGS)					\
 	$(GSTVIDEO_CFLAGS)					\
@@ -192,7 +192,7 @@ libspice_client_glib_impl_la_LIBADD =					\
 	$(Z_LIBS)							\
 	$(LZ4_LIBS)							\
 	$(PIXMAN_LIBS)							\
-	$(SSL_LIBS)							\
+	$(OPENSSL_LIBS)							\
 	$(PULSE_LIBS)							\
 	$(GSTAUDIO_LIBS)						\
 	$(GSTVIDEO_LIBS)						\


More information about the Spice-commits mailing list