--- yersinia-0.8.2.orig/configure.in 2026-10-18 06:36:24.276488186 +0200 +++ yersinia-0.8.2/configure.in 2026-10-18 06:36:24.285445400 +0200 @@ -137,7 +137,9 @@ main(int argc, char *argv[]) { else AC_MSG_RESULT(no) fi - ]) + ], + [AC_MSG_RESULT(no)], + [AC_MSG_RESULT([no, cross compiling])]) dnl dnl @@ -235,7 +237,7 @@ int main() }], [AC_MSG_RESULT(yes); have_libnet=yes], [AC_MSG_RESULT(no); have_libnet=no], -[AC_MSG_RESULT(no); have_libnet=no]) +[AC_MSG_RESULT([yes, has libnet_build_stp_conf]); have_libnet=yes]) if test $have_libnet = no; then AC_MSG_WARN(Ouch!! At least Libnet library version 1.1.2 is needed in order to compile Yersinia!!...) @@ -403,19 +405,13 @@ AC_CHECK_FUNCS(strerror_r, have_strerror if test $have_strerror_r = yes; then AC_MSG_CHECKING(if strerror_r is on glibc version >= 2.0) -AC_TRY_RUN([ -#include +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include -int main() -{ -#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 - exit(0); -#else - exit(1); +#if !(defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0) +#error no glibc #endif -}], +]])], [AC_MSG_RESULT(yes); have_glibc=yes], -[AC_MSG_RESULT(no); have_glibc=no], [AC_MSG_RESULT(no); have_glibc=no]) AH_TEMPLATE([HAVE_GLIBC_STRERROR_R], [have glibc strerror_r])