if test "$with_gnutls" = "yes" -o "$with_openssl" = "no"; then
AC_MSG_ERROR([Suitable GnuTLS required but not found])
elif test "$with_openssl" = "yes" -o "$with_openssl" = ""; then
- PKG_CHECK_MODULES(OPENSSL, openssl, [],
+ PKG_CHECK_MODULES(OPENSSL, openssl, [AC_SUBST(SSL_PC, [openssl])],
[oldLIBS="$LIBS"
LIBS="$LIBS -lssl -lcrypto"
AC_MSG_CHECKING([for OpenSSL without pkg-config])
OpenSSL_add_all_algorithms();])],
[AC_MSG_RESULT(yes)
AC_SUBST([OPENSSL_LIBS], ["-lssl -lcrypto"])
- AC_SUBST([OPENSSL_CFLAGS], [])],
+ AC_SUBST([OPENSSL_CFLAGS], [])]
+ AC_SUBST([openssl_pc_libs], [$OPENSSL_LIBS]),
[AC_MSG_RESULT(no)
AC_ERROR([Could not build against OpenSSL])])
LIBS="$oldLIBS"])
dtls=yes
AC_DEFINE(OPENCONNECT_OPENSSL, 1, [Using OpenSSL])
- AC_SUBST(SSL_PC, [openssl])
AC_SUBST(SSL_LIBS, ['$(OPENSSL_LIBS)'])
AC_SUBST(SSL_CFLAGS, ['$(OPENSSL_CFLAGS)'])
;;
Version: @VERSION@
Requires.private: @LIBPROXY_PC@ @ZLIB_PC@ @LIBLZ4_PC@ @SSL_PC@ @P11KIT_PC@ @LIBSTOKEN_PC@ @LIBPSKC_PC@ @LIBPCSCLITE_PC@ libxml-2.0
Libs: -L${libdir} -lopenconnect
-Libs.private: @INTL_LIBS@ @system_pcsc_libs@
+Libs.private: @INTL_LIBS@ @system_pcsc_libs@ @openssl_pc_libs@
Cflags: -I${includedir}