[kaffe] AC_TYPE_IN_PORT_T for cross compiling

Kiyo Inaba inaba at src.ricoh.co.jp
Thu Apr 22 19:43:07 PDT 2004


In configure.ac we have 'AC_TYPE_IN_PORT_T' to check existance of in_port_t,
but when it is expanded, we get following code segment.

--------------------------------------------------------------------------
echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
if test "$ac_cv_type_in_port_t" != yes; then
    ac_cv_sin_port_size=unknown
    if test "$cross_compiling" = yes; then
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
--------------------------------------------------------------------------

Which means, if we don't have in_port_t defined and cross compiled, the configure
fails. This same checking is done for checking the size of variables (like short, etc)
and these can easily be added into config.frag, but I have no idea how I can
treat this case...

Any idea?

Kiyo
P.S. This is same for ac_cv_type_sa_family_t, but usually this will be defined.




More information about the kaffe mailing list