Use AM_CONDITIONAL instead of #define for HAVE_ACTIONS

To make an empty module isn't correct, to not build it at all is correct.