From: David Levine Date: Sat, 17 Sep 2016 21:11:23 +0000 (-0400) Subject: Added AM_CPPFLAGS to CFLAGS that are used for curl checks, because X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d614fe95fbb100b6690c39e0583550c65121e4f9?ds=inline;hp=5a1e264e7c9b70c23bca641d876068ed12ce3cd0 Added AM_CPPFLAGS to CFLAGS that are used for curl checks, because they're needed on Cygwin. (Without _GNU_SOURCE, sys/types.h doesn't include sys/select.h.) Also added AM_CFLAGS, which we don't currently use but might in the future. --- diff --git a/configure.ac b/configure.ac index 492adfda..90066258 100755 --- a/configure.ac +++ b/configure.ac @@ -485,7 +485,7 @@ dnl Look for curl if oauth not disabled (--without-oauth). AC_PATH_PROG([curl_config], [curl-config]) AS_IF([test "x$with_oauth" != xno && test -n "$curl_config"], [ save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS `$curl_config --cflags`" + CFLAGS="$AM_CPPFLAGS $AM_CFLAGS $CFLAGS `$curl_config --cflags`" AC_CHECK_HEADER([curl/curl.h], [ HAVE_CURL_H=1 AC_CHECK_LIB([curl], [curl_easy_init], [