The README file says that MATHLINK_LIB is an "environment variable", but it is actually read via @getoption as a global variable.
I would recommend just using an environment variable, as documented. Then you can use get(ENV, "MATHLINK_LIB", ...some default...) to get the value, rather than writing a macro.
The README file says that
MATHLINK_LIB
is an "environment variable", but it is actually read via @getoption as a global variable.I would recommend just using an environment variable, as documented. Then you can use
get(ENV, "MATHLINK_LIB", ...some default...)
to get the value, rather than writing a macro.