Autoconf defines the following macros for determining paths to the essential Erlang/OTP programs:
Determine an Erlang compiler to use. If
ERLC
is not already set in the environment, check for erlc. Set output variableERLC
to the complete path of the compiler command found. In addition, ifERLCFLAGS
is not set in the environment, set it to an empty value.The two optional arguments have the same meaning as the two last arguments of macro
AC_PROG_PATH
for looking for the erlc program. For example, to look for erlc only in the /usr/lib/erlang/bin directory:AC_ERLANG_PATH_ERLC([not found], [/usr/lib/erlang/bin])
A simplified variant of the
AC_ERLANG_PATH_ERLC
macro, that prints an error message and exits the configure script if the erlc program is not found.
Determine an Erlang interpreter to use. If
ERL
is not already set in the environment, check for erl. Set output variableERL
to the complete path of the interpreter command found.The two optional arguments have the same meaning as the two last arguments of macro
AC_PROG_PATH
for looking for the erl program. For example, to look for erl only in the /usr/lib/erlang/bin directory:AC_ERLANG_PATH_ERL([not found], [/usr/lib/erlang/bin])