summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2020-02-22 11:24:11 -0800
committerMatt Turner <mattst88@gmail.com>2020-02-22 11:35:44 -0800
commit8f7e4c4e9fc6ee6b5b5498a7d8af79150be0d26a (patch)
tree13dd734a0f0df4765ab204ed4b10f49b6d5bd0fe
parentf9f4b00aad69ff36e81c63089b1b16660eaca900 (diff)
configure.ac: Depend on pthread-stubs only on not-Linux
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0c1cfaf..fb5bd4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,11 @@ AC_SUBST(HTML_CHECK_RESULT)
# Checks for pkg-config packages
PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.13)
-NEEDED="pthread-stubs xau >= 0.99.2"
+NEEDED="xau >= 0.99.2"
+case $host_os in
+linux*) ;;
+ *) NEEDED="$NEEDED pthread-stubs" ;;
+esac
PKG_CHECK_MODULES(NEEDED, $NEEDED)
have_xdmcp="no"