added --disable-openssl

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@85 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-04-03 09:18:23 +00:00
parent 6c9abd2192
commit 40ba157fb7
2 changed files with 27 additions and 16 deletions
Vendored
+15 -7
View File
@@ -812,6 +812,7 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-debug enable debuging
--disable-modules disable modules
--disable-openssl disable openssl
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -1955,13 +1956,19 @@ if test "${enable_modules+set}" = set; then
else
MODULES="yes"
fi;
# Check whether --enable-openssl or --disable-openssl was given.
if test "${enable_openssl+set}" = set; then
enableval="$enable_openssl"
NOSSL=1
fi;
if test -n "$OPENSSL"; then
appendLib -L${OPENSSL}/lib
appendInc -I${OPENSSL}/include
fi
if test -z "$NOSSL"; then
if test -n "$OPENSSL"; then
appendLib -L${OPENSSL}/lib
appendInc -I${OPENSSL}/include
fi
ac_ext=c
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
@@ -2844,8 +2851,9 @@ else
fi
if test -z "$NOSSL"; then
appendCXX -DHAVE_LIBSSL
if test -z "$NOSSL"; then
appendCXX -DHAVE_LIBSSL
fi
fi
if test -z "$prefix" || test $prefix = "NONE"; then
+12 -9
View File
@@ -38,17 +38,20 @@ fi
AC_ARG_WITH( openssl, [ --with-openssl=/path/to/openssl], OPENSSL=$withval,)
AC_ARG_ENABLE( debug, [ --enable-debug enable debuging], appendCXX -Wall -ggdb -D_DEBUG, appendCXX -Wall -s -O2 -fomit-frame-pointer )
AC_ARG_ENABLE( modules, [ --disable-modules disable modules], MODULES="no", MODULES="yes")
if test -n "$OPENSSL"; then
appendLib -L${OPENSSL}/lib
appendInc -I${OPENSSL}/include
fi
AC_CHECK_LIB( crypto, BIO_new,,NOSSL=1, )
AC_CHECK_LIB( ssl, SSL_shutdown,,NOSSL=1, )
AC_ARG_ENABLE( openssl, [ --disable-openssl disable openssl], NOSSL=1,)
if test -z "$NOSSL"; then
appendCXX -DHAVE_LIBSSL
if test -n "$OPENSSL"; then
appendLib -L${OPENSSL}/lib
appendInc -I${OPENSSL}/include
fi
AC_CHECK_LIB( crypto, BIO_new,,NOSSL=1, )
AC_CHECK_LIB( ssl, SSL_shutdown,,NOSSL=1, )
if test -z "$NOSSL"; then
appendCXX -DHAVE_LIBSSL
fi
fi
if test -z "$prefix" || test $prefix = "NONE"; then