Fix erlang autoconf macro to deal with crazy things being in ~/.erlang (MODEVENT-45)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13288 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Andrew Thompson 2009-05-12 20:00:49 +00:00
parent 3c6b98d00f
commit d3247c3eee
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ then
fi
AC_MSG_RESULT([$ERLANG_VER])
ERLANG_LIBDIR=`$ERLANG -noshell -eval 'io:format("~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt`
ERLANG_LIBDIR=`$ERLANG -noshell -eval 'io:format("~n~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1`
AC_MSG_CHECKING([erlang libdir])
if test -z "`echo $ERLANG_LIBDIR`" ; then
AC_MSG_ERROR([failed])
@ -44,7 +44,7 @@ then
fi
AC_MSG_RESULT([$ERLANG_LIBDIR])
ERLANG_INCDIR=`$ERLANG -noshell -eval 'io:format("~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt`
ERLANG_INCDIR=`$ERLANG -noshell -eval 'io:format("~n~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1`
AC_MSG_CHECKING([erlang incdir])
if test -z "`echo $ERLANG_INCDIR`" ; then
AC_MSG_ERROR([failed])