aboutsummaryrefslogtreecommitdiffstats
path: root/m4/shout.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--m4/shout.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/shout.m4 b/m4/shout.m4
index 9fad512e6..4eba5c09b 100644
--- a/m4/shout.m4
+++ b/m4/shout.m4
@@ -53,6 +53,17 @@ then
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
+
+ # freebsd 6.1 + shout 2.2 port seems to leave pthread out
+ case "$host_os" in
+ freebsd*)
+ case "$SHOUT_CFLAGS$SHOUT_CPPFLAGS" in
+ *-D_THREAD_SAFE*)
+ SHOUT_LIBS="$SHOUT_LIBS -lpthread"
+ ;;
+ esac
+ ;;
+ esac
CPPFLAGS="$CPPFLAGS $SHOUT_CPPFLAGS"
CFLAGS="$CFLAGS $SHOUT_CFLAGS"
LIBS="$SHOUT_LIBS $LIBS"