diff options
-rw-r--r-- | acinclude.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index f959e3d43..2abae8d8a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -3232,7 +3232,14 @@ AC_DEFUN([CURL_MAC_CFLAGS], [ else AC_MSG_RESULT([$min set]) fi + + old_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -Werror=partial-availability" + AC_MSG_CHECKING([whether $CC accepts -Werror=partial-availability]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + CFLAGS=$old_CFLAGS]) fi ]) |