hi all

i need to cross compile pkg-config for arm on my fedora-7 . i tried all possible ways but did'nt get a solution for this problem .

when i do ./configure --host=i686-linux --build=arm-linux --prefix=/root/usr/cpusr/moz/ --without-x for pkg-config-0.22 i get the following error

supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... (cached) i686-pc-linux-gnu
checking whether to enable memory checking... no
checking whether to enable memory profiling... no
checking for i686-linux-gcc... (cached) arm-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnu-gcc accepts -g... (cached) yes
checking for arm-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of arm-linux-gnu-gcc... (cached) gcc3
checking for arm-linux-gnu-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for glib-1.2.8

the config.log says the following

config.status:669: creating Makefile
config.status:669: creating check/Makefile
config.status:669: creating config.h
config.status:897: config.h is unchanged
config.status:943: executing depfiles commands
configure:22134: === configuring in glib-1.2.8 (/root/Desktop/pkg-config-0.22/glib-1.2.
configure:22237: running /bin/sh ./configure '--prefix=/root/usr/cpusr/moz/' '--host=i686-linux' '--build=arm-linux' '--without-x' 'build_alias=arm-linux' 'host_alias=i686-linux' 'CC=arm-linux-gnu-gcc' 'LDFLAGS=-L/root/usr/cpusr/moz/lib' --cache-file=/dev/null --srcdir=.
configure:22242: error: ./configure failed for glib-1.2.8

i need to install pkg-config to my prefix such that it helps in cross compiling other libraries like cairo-1.6.4,pango etc

please help me with a solution