mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Add exmpp detection.
SVN Revision: 1366
This commit is contained in:
parent
58bfea2ad1
commit
e4646a6788
@ -1,3 +1,7 @@
|
|||||||
|
2008-06-20 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
||||||
|
|
||||||
|
* src/configure, src/aclocal.m4, src/Makefile.in: Add exmpp detection.
|
||||||
|
|
||||||
2008-06-19 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
2008-06-19 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
||||||
|
|
||||||
* src/ejabberd_receiver.erl: Replace the use of xml_stream by
|
* src/ejabberd_receiver.erl: Replace the use of xml_stream by
|
||||||
|
@ -12,7 +12,7 @@ ERLANG_CFLAGS= @ERLANG_CFLAGS@
|
|||||||
EXPAT_LIBS = @EXPAT_LIBS@
|
EXPAT_LIBS = @EXPAT_LIBS@
|
||||||
ERLANG_LIBS = @ERLANG_LIBS@
|
ERLANG_LIBS = @ERLANG_LIBS@
|
||||||
|
|
||||||
ERLC_FLAGS += @ERLANG_SSL39@
|
ERLC_FLAGS += @ERLANG_SSL39@ -I@ERLANG_EXMPP@/include
|
||||||
|
|
||||||
ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj
|
ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj
|
||||||
# make debug=true to compile Erlang module with debug informations.
|
# make debug=true to compile Erlang module with debug informations.
|
||||||
|
11
src/aclocal.m4
vendored
11
src/aclocal.m4
vendored
@ -123,8 +123,14 @@ AC_DEFUN(AM_WITH_ERLANG,
|
|||||||
start() ->
|
start() ->
|
||||||
EIDirS = code:lib_dir("erl_interface") ++ "\n",
|
EIDirS = code:lib_dir("erl_interface") ++ "\n",
|
||||||
EILibS = libpath("erl_interface") ++ "\n",
|
EILibS = libpath("erl_interface") ++ "\n",
|
||||||
|
EXMPPDir = code:lib_dir("exmpp"),
|
||||||
|
case EXMPPDir of
|
||||||
|
{error, bad_name} -> exit("exmpp not found");
|
||||||
|
_ -> ok
|
||||||
|
end,
|
||||||
|
EXMPPDirS = EXMPPDir ++ "\n",
|
||||||
RootDirS = code:root_dir() ++ "\n",
|
RootDirS = code:root_dir() ++ "\n",
|
||||||
file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ RootDirS)),
|
file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ EXMPPDirS ++ RootDirS)),
|
||||||
halt().
|
halt().
|
||||||
|
|
||||||
-[ifdef]('id-pkix').
|
-[ifdef]('id-pkix').
|
||||||
@ -182,6 +188,8 @@ _EOF
|
|||||||
ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
|
ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
|
||||||
# Third line
|
# Third line
|
||||||
ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
|
ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
|
||||||
|
# Fourth line
|
||||||
|
ERLANG_EXMPP=`cat conftest.out | head -n 4 | tail -n 1`
|
||||||
# End line
|
# End line
|
||||||
ERLANG_DIR=`cat conftest.out | tail -n 1`
|
ERLANG_DIR=`cat conftest.out | tail -n 1`
|
||||||
|
|
||||||
@ -191,6 +199,7 @@ _EOF
|
|||||||
AC_SUBST(ERLANG_CFLAGS)
|
AC_SUBST(ERLANG_CFLAGS)
|
||||||
AC_SUBST(ERLANG_LIBS)
|
AC_SUBST(ERLANG_LIBS)
|
||||||
AC_SUBST(ERLANG_SSL39)
|
AC_SUBST(ERLANG_SSL39)
|
||||||
|
AC_SUBST(ERLANG_EXMPP)
|
||||||
AC_SUBST(ERLC)
|
AC_SUBST(ERLC)
|
||||||
AC_SUBST(ERL)
|
AC_SUBST(ERL)
|
||||||
])
|
])
|
||||||
|
15
src/configure
vendored
15
src/configure
vendored
@ -664,6 +664,7 @@ ERL
|
|||||||
ERLANG_CFLAGS
|
ERLANG_CFLAGS
|
||||||
ERLANG_LIBS
|
ERLANG_LIBS
|
||||||
ERLANG_SSL39
|
ERLANG_SSL39
|
||||||
|
ERLANG_EXMPP
|
||||||
LIBICONV
|
LIBICONV
|
||||||
CPP
|
CPP
|
||||||
GREP
|
GREP
|
||||||
@ -2930,8 +2931,14 @@ echo "$as_me: error: erlang not found" >&2;}
|
|||||||
start() ->
|
start() ->
|
||||||
EIDirS = code:lib_dir("erl_interface") ++ "\n",
|
EIDirS = code:lib_dir("erl_interface") ++ "\n",
|
||||||
EILibS = libpath("erl_interface") ++ "\n",
|
EILibS = libpath("erl_interface") ++ "\n",
|
||||||
|
EXMPPDir = code:lib_dir("exmpp"),
|
||||||
|
case EXMPPDir of
|
||||||
|
{error, bad_name} -> exit("exmpp not found");
|
||||||
|
_ -> ok
|
||||||
|
end,
|
||||||
|
EXMPPDirS = EXMPPDir ++ "\n",
|
||||||
RootDirS = code:root_dir() ++ "\n",
|
RootDirS = code:root_dir() ++ "\n",
|
||||||
file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ RootDirS)),
|
file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ EXMPPDirS ++ RootDirS)),
|
||||||
halt().
|
halt().
|
||||||
|
|
||||||
-ifdef('id-pkix').
|
-ifdef('id-pkix').
|
||||||
@ -2995,6 +3002,8 @@ echo "$as_me: error: erlang program was not properly executed, (conftest.out was
|
|||||||
ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
|
ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
|
||||||
# Third line
|
# Third line
|
||||||
ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
|
ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
|
||||||
|
# Fourth line
|
||||||
|
ERLANG_EXMPP=`cat conftest.out | head -n 4 | tail -n 1`
|
||||||
# End line
|
# End line
|
||||||
ERLANG_DIR=`cat conftest.out | tail -n 1`
|
ERLANG_DIR=`cat conftest.out | tail -n 1`
|
||||||
|
|
||||||
@ -3007,6 +3016,7 @@ echo "$as_me: error: erlang program was not properly executed, (conftest.out was
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#locating iconv
|
#locating iconv
|
||||||
|
|
||||||
|
|
||||||
@ -6542,6 +6552,7 @@ ERL!$ERL$ac_delim
|
|||||||
ERLANG_CFLAGS!$ERLANG_CFLAGS$ac_delim
|
ERLANG_CFLAGS!$ERLANG_CFLAGS$ac_delim
|
||||||
ERLANG_LIBS!$ERLANG_LIBS$ac_delim
|
ERLANG_LIBS!$ERLANG_LIBS$ac_delim
|
||||||
ERLANG_SSL39!$ERLANG_SSL39$ac_delim
|
ERLANG_SSL39!$ERLANG_SSL39$ac_delim
|
||||||
|
ERLANG_EXMPP!$ERLANG_EXMPP$ac_delim
|
||||||
LIBICONV!$LIBICONV$ac_delim
|
LIBICONV!$LIBICONV$ac_delim
|
||||||
CPP!$CPP$ac_delim
|
CPP!$CPP$ac_delim
|
||||||
GREP!$GREP$ac_delim
|
GREP!$GREP$ac_delim
|
||||||
@ -6583,7 +6594,7 @@ SSL_CFLAGS!$SSL_CFLAGS$ac_delim
|
|||||||
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
|
||||||
break
|
break
|
||||||
elif $ac_last_try; then
|
elif $ac_last_try; then
|
||||||
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
||||||
|
Loading…
Reference in New Issue
Block a user