]> granicus.if.org Git - ejabberd/commitdiff
* src/Makefile.in: Allow compilation with HiPE (EJAB-412)
authorBadlop <badlop@process-one.net>
Thu, 6 Dec 2007 17:09:35 +0000 (17:09 +0000)
committerBadlop <badlop@process-one.net>
Thu, 6 Dec 2007 17:09:35 +0000 (17:09 +0000)
* src/configure.ac: Likewise

SVN Revision: 1038

ChangeLog
src/Makefile.in
src/configure.ac

index cb3212c88309cb517f893fd81dce98c7077de1ea..0857b5057c7364eae38fd3e0ee8deb17f4a7d4a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
 
index 23dfa2e4785b84f0c8d44c170f32199870ac6ac8..9ab219c0d2b09c9e05992d37e923469975e77c0b 100644 (file)
@@ -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
index 0924f21a2c4f623e626b5aaed67226df04a85907..a3e8894e9ffed4f06300f6bef99a5b13bba05a35 100644 (file)
@@ -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