This generally means that there was some systemic warning message from your compiler, which fails ALL the configure tests. Look in config.log and see what it's running, and what it's getting for messages. You have to suppress ALL messages somehow.