You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2010/07/26 15:04:37 UTC

svn commit: r979267 - in /couchdb/trunk: THANKS configure.ac

Author: jan
Date: Mon Jul 26 13:04:37 2010
New Revision: 979267

URL: http://svn.apache.org/viewvc?rev=979267&view=rev
Log:
Check if Erlang has been compiled with crypto support at ./configure
time.

Patch by Kev Jackson.

Closes COUCHDB-106 and COUCHDB-131.

Modified:
    couchdb/trunk/THANKS
    couchdb/trunk/configure.ac

Modified: couchdb/trunk/THANKS
URL: http://svn.apache.org/viewvc/couchdb/trunk/THANKS?rev=979267&r1=979266&r2=979267&view=diff
==============================================================================
--- couchdb/trunk/THANKS (original)
+++ couchdb/trunk/THANKS Mon Jul 26 13:04:37 2010
@@ -63,5 +63,6 @@ suggesting improvements or submitting ch
  * Paul Bonser <pi...@paulbonser.com>
  * Caleb Land <ca...@gmail.com>
  * Juhani Ränkimies <ju...@juranki.com>
+ * Kev Jackson <fo...@gmail.com>
 
 For a list of authors see the `AUTHORS` file.

Modified: couchdb/trunk/configure.ac
URL: http://svn.apache.org/viewvc/couchdb/trunk/configure.ac?rev=979267&r1=979266&r2=979267&view=diff
==============================================================================
--- couchdb/trunk/configure.ac (original)
+++ couchdb/trunk/configure.ac Mon Jul 26 13:04:37 2010
@@ -259,6 +259,12 @@ if test `echo $version | ${AWK} "{print 
     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