Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.