diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-02-15 18:42:22 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-02-15 18:55:20 +0100 |
commit | 9e8b241aa6578c1fc5a6a140a1cb035a61ebd2e8 (patch) | |
tree | 3fb337d32d072166a2ea974fae61ab6d7c7157a0 /configure.ac | |
parent | b8867d6f092c2c63147cacb3181c9a37360da065 (diff) | |
download | gnutls-9e8b241aa6578c1fc5a6a140a1cb035a61ebd2e8.tar.gz |
gnutls.pc: do not include libidn2 in Requires.privatetmp-stages-updates
The libidn2 versions available do not include libidn2.pc,
thus the inclusion was causing problems when using pkg-config.
Instead we include -lidn2 in Libs.private.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 4cb2ee4bed..3540c80477 100644 --- a/configure.ac +++ b/configure.ac @@ -492,11 +492,13 @@ if test "$try_libidn" = yes;then idna_support="IDNA 2008 (libidn2)" AC_DEFINE([HAVE_LIBIDN2], 1, [Define if IDNA 2008 support is enabled.]) AC_SUBST([LIBIDN_LIBS], [-lidn2]) - if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then - GNUTLS_REQUIRES_PRIVATE="Requires.private: libidn2" - else - GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libidn2" - fi + AC_SUBST([LIBIDN2_LIBS], [-lidn2]) dnl used in gnutls.pc.in +dnl enable once libidn2.pc is widespread; and remove LIBIDN2_LIBS from gnutls.pc.in (Libs.private) +dnl if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then +dnl GNUTLS_REQUIRES_PRIVATE="Requires.private: libidn2" +dnl else +dnl GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libidn2" +dnl fi ],[ with_libidn2=no; AC_MSG_WARN(*** LIBIDN2 was not found. You will not be able to use IDN2008 support) |