-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put two Autoconf files back since they're not installed by autoreconf…
… -i. Hmm, I wonder if it makes sense to have compile, config.{guess,sub}, install-sh, missing and depcomp under source control too? It's not that they're changing that often.
- Loading branch information
Linus Nordberg
committed
Sep 28, 2011
1 parent
3e6feff
commit 4c163b1
Showing
2 changed files
with
1,034 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
dnl Based on the one from the Boinc project by Reinhard | ||
|
||
AC_DEFUN([AX_CHECK_SSL], | ||
[AC_MSG_CHECKING(for OpenSSL) | ||
SSL_DIR= | ||
found_ssl="no" | ||
AC_ARG_WITH(ssl, | ||
AC_HELP_STRING([--with-ssl], | ||
[Use SSL (in specified installation directory)]), | ||
[check_ssl_dir="$withval"], | ||
[check_ssl_dir=]) | ||
for dir in $check_ssl_dir /usr /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local ; do | ||
ssldir="$dir" | ||
if test -f "$dir/include/openssl/ssl.h"; then | ||
found_ssl="yes"; | ||
SSL_DIR="${ssldir}" | ||
SSL_CFLAGS="-I$ssldir/include -I$ssldir/include/openssl"; | ||
break; | ||
fi | ||
if test -f "$dir/include/ssl.h"; then | ||
found_ssl="yes"; | ||
SSL_DIR="${ssldir}" | ||
SSL_CFLAGS="-I$ssldir/include/"; | ||
break | ||
fi | ||
done | ||
AC_MSG_RESULT($found_ssl) | ||
if test x_$found_ssl != x_yes; then | ||
AC_MSG_ERROR([ | ||
---------------------------------------------------------------------- | ||
Cannot find SSL libraries. | ||
Please install OpenSSL or specify installation directory with | ||
--with-ssl=(dir). | ||
---------------------------------------------------------------------- | ||
]) | ||
else | ||
printf "OpenSSL found in $ssldir\n"; | ||
SSL_LIBS="-lssl -lcrypto"; | ||
SSL_LDFLAGS="-L$ssldir/lib"; | ||
AC_DEFINE_UNQUOTED([USE_OPENSSL],[1], | ||
["Define to 1 if you want to use the OpenSSL crypto library"]) | ||
AC_SUBST(SSL_CFLAGS) | ||
AC_SUBST(SSL_LDFLAGS) | ||
AC_SUBST(SSL_LIBS) | ||
fi | ||
])dnl |
Oops, something went wrong.