mirror of
https://github.com/gnustep/tools-make.git
synced 2025-06-02 10:11:37 +00:00
Added checks for OpenSSL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@8121 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
51a7056be3
commit
e18bb3acac
3 changed files with 592 additions and 290 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2000-11-15 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* configure.in: Check for OpenSSL
|
||||||
|
|
||||||
Tue Nov 14 23:47:11 2000 Adam Fedor <fedor@yogi.doc.com>
|
Tue Nov 14 23:47:11 2000 Adam Fedor <fedor@yogi.doc.com>
|
||||||
|
|
||||||
* GNUstep.sh.in: Use grep instead of fgrep. Some OSs (Solaris)
|
* GNUstep.sh.in: Use grep instead of fgrep. Some OSs (Solaris)
|
||||||
|
|
49
configure.in
49
configure.in
|
@ -529,6 +529,55 @@ if test "$HAVE_LIBXML" = "0"; then
|
||||||
LIBS="$libs_temp";
|
LIBS="$libs_temp";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# Check OpenSSL for HTTPS support in future.
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
echo "Checking for OpenSSL"
|
||||||
|
AC_ARG_WITH(openssl-include,
|
||||||
|
[ --with-openssl-include=PATH include path for openssl headers],
|
||||||
|
openssl_incdir="$withval", openssl_incdir="no")
|
||||||
|
|
||||||
|
AC_ARG_WITH(openssl-library,
|
||||||
|
[ --with-openssl-library=PATH library path for openssl libraries],
|
||||||
|
openssl_libdir="$withval", openssl_libdir="no")
|
||||||
|
|
||||||
|
cppflags_temp=$CFLAGS
|
||||||
|
libs_temp=$LIBS
|
||||||
|
|
||||||
|
if test "$openssl_incdir" != "no"; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I$openssl_incdir"
|
||||||
|
fi
|
||||||
|
if test "$openssl_libdir" != "no"; then
|
||||||
|
LIBS="$LIBS -L$openssl_libdir"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS(openssl/ssl.h)
|
||||||
|
if test $ac_cv_header_openssl_ssl_h = no; then
|
||||||
|
echo "Could not find openssl headers"
|
||||||
|
echo "Check to make sure you have a recent version of openssl installed"
|
||||||
|
AC_MSG_WARN(Could not find openssl headers)
|
||||||
|
else
|
||||||
|
AC_CHECK_LIB(crypto, CRYPTO_malloc, ssl_ok=yes, ssl_ok=no)
|
||||||
|
if test "$ssl_ok" = yes; then
|
||||||
|
base_libs="$LIBS"
|
||||||
|
LIBS="$LIBS -lcrypto"
|
||||||
|
AC_CHECK_LIB(ssl, ssl2_clear, ssl_ok=yes, ssl_ok=no)
|
||||||
|
if test "$ssl_ok" = yes; then
|
||||||
|
LIBS="$base_libs -lssl -lcrypto"
|
||||||
|
AC_SUBST(LIBS)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$HAVE_LIBSSL" = "0"; then
|
||||||
|
CPPFLAGS="$cppflags_temp";
|
||||||
|
LIBS="$libs_temp";
|
||||||
|
fi
|
||||||
|
if test "$HAVE_LIBCRYPTO" = "0"; then
|
||||||
|
CPPFLAGS="$cppflags_temp";
|
||||||
|
LIBS="$libs_temp";
|
||||||
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Check for iconv support (for Unicode conversion).
|
# Check for iconv support (for Unicode conversion).
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue