[libsoup/wip/tpopela/negotiate] Define the HAVE_GSSAPI in the pkgconfig file



commit 061ec48a90060c7af3b791b216afd7b6cd94c6db
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Jan 20 15:36:45 2016 +0100

    Define the HAVE_GSSAPI in the pkgconfig file
    
    Signed-off-by: Tomas Popela <tpopela redhat com>

 configure.ac      |    5 +++++
 libsoup-2.4.pc.in |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 06f7542..ce660a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -317,6 +317,8 @@ AC_DEFINE_UNQUOTED(NTLM_AUTH, "$ntlm_auth", [Samba's 'winbind' daemon helper 'nt
 
 AX_CODE_COVERAGE
 
+have_gssapi=""
+
 dnl **********************
 dnl *** GSSAPI support ***
 dnl **********************
@@ -328,6 +330,7 @@ if test "x$KRB5_CONFIG" != "xnone"; then
     AC_SUBST(KRB5_LIBS)
     if test "$KRB5_CONFIG" != none; then
         AC_DEFINE(HAVE_GSSAPI, 1, [Whether or not gssapi libs are available])
+       have_gssapi="1"
     fi
 fi
 
@@ -354,6 +357,8 @@ dnl *************************
 dnl *** Output Everything ***
 dnl *************************
 
+AC_SUBST(have_gssapi)
+
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([
        libsoup-2.4.pc
diff --git a/libsoup-2.4.pc.in b/libsoup-2.4.pc.in
index 1394939..5f62233 100644
--- a/libsoup-2.4.pc.in
+++ b/libsoup-2.4.pc.in
@@ -9,4 +9,4 @@ Version: @VERSION@
 Requires: glib-2.0 gobject-2.0 gio-2.0
 Requires.private: libxml-2.0
 Libs: -L${libdir} -lsoup-2.4
-Cflags: -I${includedir}/libsoup-2.4
+Cflags: -I${includedir}/libsoup-2.4 -DHAVE_GSSAPI= have_gssapi@


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]