]> diplodocus.org Git - nmh/commitdiff
Added AM_CPPFLAGS to CFLAGS that are used for curl checks, because
authorDavid Levine <levinedl@acm.org>
Sat, 17 Sep 2016 21:11:23 +0000 (17:11 -0400)
committerDavid Levine <levinedl@acm.org>
Sat, 17 Sep 2016 21:11:23 +0000 (17:11 -0400)
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.

configure.ac

index 492adfda692eecc41f304c883135f7d8e5f39237..90066258dde763d1c018d4a50caa69f89c750f76 100755 (executable)
@@ -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], [