configure: Separate MinGW32 and MinGW64 libc handling

This commit is contained in:
Diego Biurrun 2013-12-02 00:12:57 -05:00
parent 9aa053cede
commit 120797e2ef

15
configure vendored
View File

@ -3386,12 +3386,15 @@ elif check_cpp_condition features.h "defined __GLIBC__"; then
elif check_cpp_condition newlib.h "defined _NEWLIB_VERSION"; then elif check_cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
libc_type=newlib libc_type=newlib
add_cppflags -U__STRICT_ANSI__ add_cppflags -U__STRICT_ANSI__
elif check_header _mingw.h; then # MinGW64 is backwards compatible with MinGW32, so check for it first.
libc_type=mingw elif check_cpp_condition _mingw.h "defined __MINGW64_VERSION_MAJOR"; then
check_cpp_condition _mingw.h \ libc_type=mingw64
"defined (__MINGW64_VERSION_MAJOR) || (__MINGW32_MAJOR_VERSION > 3) || \ add_cppflags -U__STRICT_ANSI__
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" || elif check_cpp_condition _mingw.h "defined __MINGW32_VERSION"; then
die "ERROR: MinGW runtime version must be >= 3.15." libc_type=mingw32
check_cpp_condition _mingw.h "__MINGW32_MAJOR_VERSION > 3 || \
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
die "ERROR: MinGW32 runtime version must be >= 3.15."
add_cppflags -U__STRICT_ANSI__ add_cppflags -U__STRICT_ANSI__
elif check_cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then elif check_cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then
libc_type=msvcrt libc_type=msvcrt