By only running the TORRENT_CHECK_KQUEUE_SOCKET_ONLY check if kqueue support is already detected, we increase the number of platforms that we can cross compile on.
Otherwise, the cross compilation fails due to TORRENT_CHECK_KQUEUE_SOCKET_ONLY using AC_RUN_IFELSE, which fails during cross compilation.
Coverage decreased (-0.02%) to 17.93% when pulling 755daf78769b048c868e6b62c68b4e545494c181 on ss23:cross_compile_kqueue into 7b29b6bd2547e72e22b9b7981df27092842d2a10 on rakshasa:master.
By only running the TORRENT_CHECK_KQUEUE_SOCKET_ONLY check if kqueue support is already detected, we increase the number of platforms that we can cross compile on. Otherwise, the cross compilation fails due to TORRENT_CHECK_KQUEUE_SOCKET_ONLY using AC_RUN_IFELSE, which fails during cross compilation.