Seems like your shell is not configured to the path for includes. All that ./configure do in this issue it's trying to precompile a C file containing of next lines:
---
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
---
So, seems like mostly possible reason that prevents such file to be compiled correctly is an absence of path to these files or an absence of files themselves.
Check your shell's "include" environment vars.
Regards,