From b4f71fd25a11e176edc2fe6224caf3a284657830 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sun, 15 Sep 2013 20:35:57 +0200 Subject: [PATCH] configure.ac: Add zlib to Requires.private in libssh2.pc if using zlib --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6c2f519..4d3c80b 100644 --- a/configure.ac +++ b/configure.ac @@ -105,8 +105,6 @@ if test "$ac_cv_libssl" != "yes" && test "$use_libgcrypt" != "no"; then LIBS="$LIBS -lgcrypt" fi -AC_SUBST(LIBSREQUIRED) - if test "$ac_cv_libssl" != "yes" && test "$ac_cv_libgcrypt" != "yes"; then AC_MSG_ERROR([cannot find OpenSSL or Libgcrypt, try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH]) @@ -133,9 +131,15 @@ if test "$use_libz" != "no"; then AC_MSG_NOTICE([Try --with-libz-prefix=PATH if you know you have it]) else AC_DEFINE(LIBSSH2_HAVE_ZLIB, 1, [Compile in zlib support]) + if test "${LIBSREQUIRED}" != ""; then + LIBSREQUIRED="${LIBSREQUIRED}," + fi + LIBSREQUIRED="${LIBSREQUIRED}zlib" fi fi +AC_SUBST(LIBSREQUIRED) + # # Optional Settings #