Fix some AM_CONDITIONAL conditions.