aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-07-12 15:18:15 +0200
committerBadlop <badlop@process-one.net>2010-07-12 15:18:15 +0200
commitd539fd28c1bc81f13a45f9d9af4c99f08887fdca (patch)
tree903dbeb673d6af0e9dadc3cc9b821bfe0d27b316 /src
parentWhen using OTP R14, use public_key library instead of old ssl (EJAB-953) (diff)
Recompile the 'configure' script
Diffstat (limited to 'src')
-rwxr-xr-xsrc/configure17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/configure b/src/configure
index 5ff174752..a698ae8bb 100755
--- a/src/configure
+++ b/src/configure
@@ -648,7 +648,7 @@ EGREP
GREP
CPP
LIBICONV
-ERLANG_SSL39
+ERLANG_SSLVER
ERLANG_LIBS
ERLANG_CFLAGS
ERL
@@ -3211,7 +3211,6 @@ fi
-author('alexey@sevcom.net').
-export([start/0]).
--include_lib("ssl/include/ssl_pkix.hrl").
start() ->
EIDirS = code:lib_dir("erl_interface") ++ "\n",
@@ -3220,11 +3219,13 @@ start() ->
file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ RootDirS)),
halt().
--ifdef('id-pkix').
-ssldef() -> "-DSSL39\n".
--else.
-ssldef() -> "\n".
--endif.
+ssldef() ->
+ OTP = (catch erlang:system_info(otp_release)),
+ if
+ OTP >= "R14" -> "-DSSL40\n";
+ OTP >= "R12" -> "-DSSL39\n";
+ true -> ""
+ end.
%% return physical architecture based on OS/Processor
archname() ->
@@ -3274,7 +3275,7 @@ _EOF
# Second line
ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
# Third line
- ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
+ ERLANG_SSLVER=`cat conftest.out | head -n 3 | tail -n 1`
# End line
ERLANG_DIR=`cat conftest.out | tail -n 1`