Added
Link Here
|
1 |
commit 32481313b4be0f590e4a557ce4b29c6f5b3e8f4e |
2 |
Author: Samuel Tardieu <sam@rfc1149.net> |
3 |
Date: Mon Oct 29 11:35:15 2007 +0100 |
4 |
|
5 |
Enable HIPE compilation |
6 |
|
7 |
diff --git a/src/Makefile.in b/src/Makefile.in |
8 |
index 3c5792b..e156b83 100644 |
9 |
--- a/src/Makefile.in |
10 |
+++ b/src/Makefile.in |
11 |
@@ -21,6 +21,10 @@ ifdef ejabberd_debug |
12 |
ERLC_FLAGS+=-Dejabberd_debug |
13 |
endif |
14 |
|
15 |
+ifeq (@hipe@, true) |
16 |
+ ERLC_FLAGS+=+native |
17 |
+endif |
18 |
+ |
19 |
ifeq (@roster_gateway_workaround@, true) |
20 |
ERLC_FLAGS+=-DROSTER_GATEWAY_WORKAROUND |
21 |
endif |
22 |
diff --git a/src/configure.ac b/src/configure.ac |
23 |
index c77f79f..b92300f 100644 |
24 |
--- a/src/configure.ac |
25 |
+++ b/src/configure.ac |
26 |
@@ -36,6 +36,15 @@ AC_MOD_ENABLE(tls, yes) |
27 |
AC_MOD_ENABLE(odbc, no) |
28 |
AC_MOD_ENABLE(ejabberd_zlib, yes) |
29 |
|
30 |
+AC_ARG_ENABLE(hipe, |
31 |
+[ --enable-hipe Compile natively with hipe (default: no)], |
32 |
+[case "${enableval}" in |
33 |
+ yes) hipe=true ;; |
34 |
+ no) hipe=false ;; |
35 |
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-hipe) ;; |
36 |
+esac],[hipe=false]) |
37 |
+AC_SUBST(hipe) |
38 |
+ |
39 |
AC_ARG_ENABLE(roster_gateway_workaround, |
40 |
[ --enable-roster-gateway-workaround Turn on workaround for processing gateway subscriptions (default: no)], |
41 |
[case "${enableval}" in |