Hi, and welcome to LQ!
That kind of message occasionally crops up if you have
values for CFLAGS in your environment that may conflict
with what ./configure is after.
Have a look at
If there are any values try to unset the variable, and
rerun configure. You should also look at the configure.log
for more detail.