Need help compiling GCC Cross-Compiler! PLEASE : I am trying to compile GCC for i586-elf but every time I run the 'configure' file with this command:

    ./configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable
    languages=c --without-headers --with-gmp=$PREFIX --with-mpc=$PREFIX
    --with-mpfr=$PREFIX
Then it gives me this error:

    checking for the correct version of gmp.h... yes
    checking for the correct version of mpfr.h... yes
    checking for the correct version of mpc.h... yes
    checking for the correct version of the gmp/mpfr/mpc libraries... no.

Although I have specified where gmp, mpfr, and mpc are located. And I have the latest versions of them.
Is there anything I am missing? Please answer as soon as possible :)