I am trying to build APR 0.9.4 on AIX 5.1 m/c using xlc version 5 compiler.but on doing a ./configure i get the following error message:

checking build system type... powerpc-ibm-aix5.1.0.0
checking host system type... powerpc-ibm-aix5.1.0.0
checking target system type... powerpc-ibm-aix5.1.0.0
Configuring APR library
Platform: powerpc-ibm-aix5.1.0.0
checking for working mkdir -p... yes
APR Version: 0.9.4
checking for chosen layout... apr
checking for gcc... no
checking for cc... cc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

Can any body help figure out what the problem is?

I could build APR on AIX 4.3 which the same compiler