Commit 4bed4839 authored by Aaron Dierking's avatar Aaron Dierking Committed by Guillem Jover

build: Detect Windows/MinGW at configure time

Extend the host OS checks to define an OS_WINDOWS automake conditional if
the host is MinGW-like. This will be useful for future Windows-specific
build tweaks.

 - Rename WINDOWS conditional to OS_WINDOWS. ]
Signed-off-by: Guillem Jover's avatarGuillem Jover <>
parent 2e071c3c
......@@ -44,6 +44,7 @@ AC_SUBST([TESTU01_LIBS])
[test "x$ac_cv_lib_testu01_unif01_CreateExternGenBits" = "xyes"])
[*-gnu*], [
# In old glibc versions (< 2.17) clock_gettime() is in librt.
......@@ -60,7 +61,11 @@ AS_CASE([$host_os],
# Upstream refuses to define this, we will do it ourselves then.
AC_DEFINE([__MUSL__], [1], [Define to 1 if we are building for musl])
[mingw*], [
AM_CONDITIONAL([OS_WINDOWS], [test "x$is_windows" = "xyes"])
# Checks for header files.
AC_CHECK_HEADERS([sys/ndir.h sys/dir.h ndir.h dirent.h grp.h])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment