From: David Woodhouse Date: Sat, 27 Mar 2021 10:31:55 +0000 (+0000) Subject: Fix non-Windows compilation. I hate autoconf. X-Git-Tag: v8.20~340 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d4a48a4489a5601958cffb6c2ac397dd1f6095f2;p=users%2Fdwmw2%2Fopenconnect.git Fix non-Windows compilation. I hate autoconf. Signed-off-by: David Woodhouse --- diff --git a/configure.ac b/configure.ac index b741b3a6..8dc46994 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,11 @@ symver_asprintf= symver_vasprintf= symver_win32_strerror= +# Autoconf is stupid and if the first time it needs to find the C compiler +# is conditional (as it is here for some of the MinGW checks), it forgets +# to ever look for one in the other code paths. Do it explicitly here. +AC_PROG_CC + case $host_os in *linux* | *gnu* | *nacl*) AC_MSG_NOTICE([Applying feature macros for GNU build])