Skip to content
Browse files

Check if Erlang has been compiled with crypto support at ./configure

time.

Patch by Kev Jackson.

Closes COUCHDB-106 and COUCHDB-131.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979267 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 04f3d98 commit cd214b23e8129868d4a7020ddafd55a16e496652 @janl janl committed Jul 26, 2010
Showing with 7 additions and 0 deletions.
  1. +1 −0 THANKS
  2. +6 −0 configure.ac
View
1 THANKS
@@ -63,5 +63,6 @@ suggesting improvements or submitting changes. Some of these people are:
* Paul Bonser <pib@paulbonser.com>
* Caleb Land <caleb.land@gmail.com>
* Juhani Ränkimies <juhani@juranki.com>
+ * Kev Jackson <foamdino@gmail.com>
For a list of authors see the `AUTHORS` file.
View
6 configure.ac
@@ -259,6 +259,12 @@ if test `echo $version | ${AWK} "{print \\$2}"` -eq 6; then
fi
fi
+has_crypto=`${ERL} -eval "case application:load(crypto) of ok -> ok; _ -> exit(no_crypto) end." -noshell -s init stop`
+
+if test -n "$has_crypto"; then
+ AC_MSG_ERROR([Could not find the Erlang crypto library. Has Erlang been compiled with OpenSSL support?])
+fi
+
AC_PATH_PROG([ERLC], [erlc])
if test x${ERLC} = x; then

0 comments on commit cd214b2

Please sign in to comment.
Something went wrong with that request. Please try again.