mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
some weird changes reverted
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3065 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2a8e1b5251
commit
76299b7cee
59
configure.in
59
configure.in
@ -232,63 +232,6 @@ AC_ARG_WITH(openssl-libs,
|
|||||||
[openssl_prefix=$withval],
|
[openssl_prefix=$withval],
|
||||||
[openssl_prefix=/usr/lib])
|
[openssl_prefix=/usr/lib])
|
||||||
|
|
||||||
dnl **
|
|
||||||
dnl ** SSL Library checks (OpenSSL)
|
|
||||||
dnl **
|
|
||||||
|
|
||||||
AC_ARG_ENABLE(ssl,
|
|
||||||
[ --enable-ssl Turn on Secure Sockets Layer support [default=yes]],,
|
|
||||||
enable_ssl=yes)
|
|
||||||
|
|
||||||
AC_ARG_WITH(openssl-includes,
|
|
||||||
[ --with-openssl-includes Specify location of OpenSSL header files],
|
|
||||||
[openssl_inc_prefix=-I$withval])
|
|
||||||
|
|
||||||
AC_ARG_WITH(openssl-libs,
|
|
||||||
[ --with-openssl-libs Specify location of OpenSSL libs],
|
|
||||||
[openssl_prefix=$withval],
|
|
||||||
[openssl_prefix=/usr/lib])
|
|
||||||
|
|
||||||
if test "x$enable_ssl" = xyes; then
|
|
||||||
###
|
|
||||||
### Check for OpenSSL
|
|
||||||
###
|
|
||||||
save_CFLAGS=$CFLAGS;
|
|
||||||
CFLAGS="-lcrypto";
|
|
||||||
|
|
||||||
enable_openssl="no";
|
|
||||||
OPENSSL_LDFLAGS="";
|
|
||||||
AC_CHECK_LIB(ssl, SSL_read,
|
|
||||||
AC_CHECK_LIB(crypto, X509_new,
|
|
||||||
AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h,
|
|
||||||
[
|
|
||||||
enable_openssl="yes";
|
|
||||||
OPENSSL_LDFLAGS="-lssl -lcrypto"
|
|
||||||
],
|
|
||||||
AC_ERROR([Cannot find OpenSSL includes !])),
|
|
||||||
AC_ERROR([Cannot find libCrypto !])),
|
|
||||||
AC_ERROR([Cannot find libSSL !]))
|
|
||||||
CFLAGS=$save_CFLAGS
|
|
||||||
|
|
||||||
if test "x$enable_openssl" = xyes; then
|
|
||||||
AC_DEFINE(HAVE_OPENSSL)
|
|
||||||
OPENSSL_LIBS="-L$openssl_prefix $OPENSSL_LDFLAGS"
|
|
||||||
OPENSSL_CFLAGS="$openssl_inc_prefix"
|
|
||||||
enable_openssl="yes, in $openssl_prefix"
|
|
||||||
else
|
|
||||||
OPENSSL_LIBS=
|
|
||||||
OPENSSL_CFLAGS=
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(OPENSSL_CFLAGS)
|
|
||||||
AC_SUBST(OPENSSL_LIBS)
|
|
||||||
LIBS="$LIBS $OPENSSL_LIBS"
|
|
||||||
CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
|
|
||||||
else
|
|
||||||
enable_openssl="no"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
dnl **
|
dnl **
|
||||||
dnl ** just some generic stuff...
|
dnl ** just some generic stuff...
|
||||||
dnl **
|
dnl **
|
||||||
@ -960,8 +903,6 @@ if test "x$want_ipv6" = "xyes"; then
|
|||||||
AC_MSG_RESULT($irssi_cv_type_in6_addr)
|
AC_MSG_RESULT($irssi_cv_type_in6_addr)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "OpenSSL support .............: ${enable_openssl}"
|
|
||||||
|
|
||||||
dnl **
|
dnl **
|
||||||
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
|
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
|
||||||
dnl **
|
dnl **
|
||||||
|
Loading…
Reference in New Issue
Block a user