Cross Compiling Component That Uses autoreconf


I am trying to create a new component that uses a 3rd party C library. I have been using lighttpd as a template by having a Component.cdef file that calls a file that essentially goes through the build process for cross-compiling the library. The library I’m using is libcoap: and followed the BUILDING text file.

When I attempt to build an app that uses the library there is a fault as the library is being cross compiled. The library’s script calls autoreconf which ends up calling wp77-toolchain_SWI9X06Y_02.22.12.00-linux64/sysroots/x86_64-pokysdk-linux/usr/bin/autoheader --force, however there is an error: gnu-configize: '' or '' is required.

Does anyone have any ideas how to solve this?



I succeeded to build libcoap using Yocto by using the following recipe:

If you are not familiar with Yocto or if don’t want to use it then you can try to edit the “” file and replace the line:
autoreconf --force --install --verbose "$srcdir"
By this one:
autoreconf --force --install --verbose --exclude=gnu-configize "$srcdir"