+dnl Erlang
+AC_ARG_ENABLE([erlang],
+ AS_HELP_STRING([--disable-erlang], [Disable Erlang language bindings]),
+ [],
+ [enable_erlang=yes])
+AS_IF([test "x$enable_erlang" != "xno"],
+ [
+ AC_ERLANG_PATH_ERLC([no])
+
+ if test "x$ERLC" != "xno"; then
+ AC_ERLANG_CHECK_LIB([erl_interface], [],
+ [AC_MSG_FAILURE([Erlang erl_interface library not installed. Use --disable-erlang to disable.])])
+ AC_ERLANG_SUBST_LIB_DIR
+ fi
+ ])
+AM_CONDITIONAL([HAVE_ERLANG], [test "x$ERLC" != "xno"])
+