waf: use wafConfigureFlags for waf flags
This avoids the potential conflict between autoconf flags and the waf
flags. There is some overlap between the two but waf errors when it
doesn’t recognize the flag.
(cherry picked from commit a79a8f29bc509b2d51158846c9562e64e1239b4c)
authored by