m4/hooks.m4: use enableval rather than fixed values.

That should resolve issue #108592 at
http://savannah.gnu.org/support/?108592