diff options
author | Badlop <badlop@process-one.net> | 2007-12-06 17:09:35 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2007-12-06 17:09:35 +0000 |
commit | 9527f3c9b186f760b13978b5dba1cedb93e8cbc9 (patch) | |
tree | 6b08b9489f0be7ee179a62465cf0ac33d7632a3f | |
parent | * src/msgs/cs.msg: Updated (thanks to Lukáš Polívka alias (diff) |
* src/Makefile.in: Allow compilation with HiPE (EJAB-412)
* src/configure.ac: Likewise
SVN Revision: 1038
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/Makefile.in | 4 | ||||
-rw-r--r-- | src/configure.ac | 9 |
3 files changed, 16 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2007-12-06 Badlop <badlop@process-one.net> + * src/Makefile.in: Allow compilation with HiPE (EJAB-412) + * src/configure.ac: Likewise + * src/msgs/cs.msg: Updated (thanks to Lukáš Polívka alias Spike411) diff --git a/src/Makefile.in b/src/Makefile.in index 23dfa2e47..9ab219c0d 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -22,6 +22,10 @@ ifdef ejabberd_debug ERLC_FLAGS+=-Dejabberd_debug endif +ifeq (@hipe@, true) + ERLC_FLAGS+=+native +endif + ifeq (@roster_gateway_workaround@, true) ERLC_FLAGS+=-DROSTER_GATEWAY_WORKAROUND endif diff --git a/src/configure.ac b/src/configure.ac index 0924f21a2..a3e8894e9 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -44,6 +44,15 @@ AC_MOD_ENABLE(tls, yes) AC_MOD_ENABLE(odbc, no) AC_MOD_ENABLE(ejabberd_zlib, yes) +AC_ARG_ENABLE(hipe, +[ --enable-hipe Compile natively with HiPE, not recommended (default: no)], +[case "${enableval}" in + yes) hipe=true ;; + no) hipe=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-hipe) ;; +esac],[hipe=false]) +AC_SUBST(hipe) + AC_ARG_ENABLE(roster_gateway_workaround, [ --enable-roster-gateway-workaround Turn on workaround for processing gateway subscriptions (default: no)], [case "${enableval}" in |