1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

configure: verify that compiler groks -Werror=partial-availability

Reported-by: bemoody

Fixes #1104
This commit is contained in:
Daniel Stenberg 2016-11-03 23:37:59 +01:00
parent c8e6e60b40
commit 6724242cf1

View File

@ -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
])