Today I finished cross-compiling the expect package, and I'm pleased that it wasn't as difficult as I was expecting (hah, no pun intended!). The configure.in has a lot of
AC_MSG_ERROR([Expect can't be cross compiled])
but it's easy enough to figure out the example by hand and then hard-code the answer. Also the macro AC_FUNC_SETPGRP isn't cross-compile friendly, even though it is supposed to honor the environment variable ac_cv_func_setpgrp_void. It doesn't. However, replacing it (in configure.in) with
cat >>confdefs.h <<\_ACEOF #define SETPGRP_VOID 1 _ACEOF
did the trick and we are in business! Woohoo!