ao.m4 is broken on cross-compile environmants
ao.m4 has a few problems for cross-compile environments, notably buildroot.
- It uses prefix for includes/libs.
elif test "x$prefix" != "xNONE"; then AO_LIBS="-L$prefix/lib"
elif test "x$prefix" != "xNONE"; then AO_CFLAGS="-I$prefix/include"
Prefix is only valid on target. It should not be used on host.
- It have no checks for cross-compile environments at all:
],, no_ao=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
Well, its not OK to "assume OK". AC_TRY_RUN() should be avoided. I think the generic AC_CHECK_HEADERS()+ AC_CHECK_LIBS() should do quite fine.