summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-09-07 11:36:18 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-09-07 11:37:39 +0200
commit2c766c9f47f0667936b1e562020dea3de27b1daa (patch)
tree8853a83270698773aee8ce918a97024b4dd68b5f
parenteb1da63ade8d93775199e5a10103d534beddbcd1 (diff)
dccp: fix linking in android as pthread is part of BIONIC
still, this plugin is not yet ported as it relies on pthread_cancel which is not implemented
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bcaa75abe..e6e782f08 100644
--- a/configure.ac
+++ b/configure.ac
@@ -435,8 +435,14 @@ if test "x$HAVE_WINSOCK2_H" = "xyes"; then
fi
if test "x$HAVE_PTHREAD_H" = "xyes"; then
- DCCP_LIBS="$DCCP_LIBS -lpthread"
- AC_SUBST(DCCP_LIBS)
+ case "$host" in
+ *-*android*)
+ ;; # pthread is included in bionic
+ *)
+ DCCP_LIBS="$DCCP_LIBS -lpthread"
+ AC_SUBST(DCCP_LIBS)
+ ;;
+ esac
fi
if test "x$HAVE_PTHREAD_H" != "xyes"; then