I am trying to cross-compile oprofile(0.9.2).  I am doing this because I am thinking I will need the opdeamon executable to run on the target. I am using the command below to configure it for cross-compile.
./configure --host=powerpc-linux-gnuspe --with-kernel-support.
 
The above command fails as "configure: error: popt library not found"
 
I would be appreciate if anybody on the group could send me the steps to follow for  cross-compile of this packag. Really I think I would need just the opdeamon to be cross-compiled.
 
Thx,
-Venkat 
 
 
 
 
[vsubbiah@vsubbiah-lnx1 oprofile-0.9.2]$ ./configure --host=powerpc-linux-gnuspe --with-kernel-support
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for powerpc-linux-gnuspe-strip... powerpc-linux-gnuspe-strip
checking for powerpc-linux-gnuspe-ranlib... powerpc-linux-gnuspe-ranlib
checking for powerpc-linux-gnuspe-gcc... powerpc-linux-gnuspe-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-linux-gnuspe-gcc accepts -g... yes
checking for powerpc-linux-gnuspe-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of powerpc-linux-gnuspe-gcc... gcc3
checking how to run the C preprocessor... powerpc-linux-gnuspe-gcc -E
checking for powerpc-linux-gnuspe-g++... powerpc-linux-gnuspe-g++
checking whether we are using the GNU C++ compiler... yes
checking whether powerpc-linux-gnuspe-g++ accepts -g... yes
checking dependency style of powerpc-linux-gnuspe-g++... gcc3
checking for ld... ld
checking for kernel OProfile support... yes
checking whether malloc attribute is understood... yes
checking whether __builtin_expect is understood... yes
checking for sched_setaffinity... yes
checking for perfmonctl... no
checking for poptGetContext in -lpopt... no
configure: error: popt library not found
[vsubbiah@vsubbiah-lnx1 oprofile-0.9.2]$