Cross Compiling Component That Uses autoreconf

Hello,

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 make.sh file that essentially goes through the build process for cross-compiling the library. The library I’m using is libcoap: https://github.com/obgm/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 autogen.sh 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: 'configure.ac' or 'configure.in' is required.

Does anyone have any ideas how to solve this?

Thanks!
Jack