aboutsummaryrefslogtreecommitdiffstats
path: root/m4/shout.m4
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-16 08:33:29 +0200
committerMax Kellermann <max@duempel.org>2008-10-16 08:33:29 +0200
commitb53365949a549184191ec20625f13e059024effd (patch)
tree9d181be5d68a2a58fd0ee1912be73aecd4c88dea /m4/shout.m4
parentda83f2bbe702e20dd9c72f23ad44efcc65460cdf (diff)
downloadmpd-b53365949a549184191ec20625f13e059024effd.tar.gz
mpd-b53365949a549184191ec20625f13e059024effd.tar.xz
mpd-b53365949a549184191ec20625f13e059024effd.zip
configure.ac: find more libraries with pkg-config
Detect the following libraries with pkg-config: libshout, libid3tag, libmad.
Diffstat (limited to '')
-rw-r--r--m4/shout.m490
1 files changed, 0 insertions, 90 deletions
diff --git a/m4/shout.m4 b/m4/shout.m4
deleted file mode 100644
index 4eba5c09b..000000000
--- a/m4/shout.m4
+++ /dev/null
@@ -1,90 +0,0 @@
-dnl XIPH_PATH_SHOUT
-dnl Jack Moffitt <jack@icecast.org> 08-06-2001
-dnl Rewritten for libshout 2
-dnl Brendan Cully <brendan@xiph.org> 20030612
-dnl
-dnl $Id: shout.m4 7180 2004-07-20 02:50:54Z brendan $
-
-# XIPH_PATH_SHOUT([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-# Test for libshout, and define SHOUT_CPPFLAGS SHOUT_CFLAGS SHOUT_LIBS, and
-# SHOUT_THREADSAFE
-AC_DEFUN([XIPH_PATH_SHOUT],
-[dnl
-xt_have_shout="no"
-SHOUT_THREADSAFE="no"
-SHOUT_CPPFLAGS=""
-SHOUT_CFLAGS=""
-SHOUT_LIBS=""
-
-# NB: PKG_CHECK_MODULES exits if pkg-config is unavailable on the target
-# system, so we can't use it.
-
-# seed pkg-config with the default libshout location
-PKG_CONFIG_PATH=${PKG_CONFIG_PATH:-/usr/local/lib/pkgconfig}
-export PKG_CONFIG_PATH
-
-# Step 1: Use pkg-config if available
-AC_PATH_PROG([PKGCONFIG], [pkg-config], [no])
-if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists shout`
-then
- SHOUT_CFLAGS=`$PKGCONFIG --variable=cflags_only shout`
- SHOUT_CPPFLAGS=`$PKGCONFIG --variable=cppflags shout`
- SHOUT_LIBS=`$PKGCONFIG --libs shout`
- xt_have_shout="maybe"
-else
- if test "$PKGCONFIG" != "no"
- then
- AC_MSG_NOTICE([$PKGCONFIG couldn't find libshout. Try adjusting PKG_CONFIG_PATH.])
- fi
- # pkg-config unavailable, try shout-config
- AC_PATH_PROG([SHOUTCONFIG], [shout-config], [no])
- if test "$SHOUTCONFIG" != "no" && test `$SHOUTCONFIG --package` = "libshout"
- then
- SHOUT_CPPFLAGS=`$SHOUTCONFIG --cppflags`
- SHOUT_CFLAGS=`$SHOUTCONFIG --cflags-only`
- SHOUT_LIBS=`$SHOUTCONFIG --libs`
- xt_have_shout="maybe"
- fi
-fi
-
-# Now try actually using libshout
-if test "$xt_have_shout" != "no"
-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"
- AC_CHECK_HEADERS([shout/shout.h], [
- AC_CHECK_FUNC([shout_new], [
- ifelse([$1], , :, [$1])
- xt_have_shout="yes"
- ])
- AC_EGREP_CPP([yes], [#include <shout/shout.h>
-#if SHOUT_THREADSAFE
-yes
-#endif
-], [SHOUT_THREADSAFE="yes"])
- ])
- CPPFLAGS="$ac_save_CPPFLAGS"
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
-fi
-
-if test "$xt_have_shout" != "yes"
-then
- ifelse([$2], , :, [$2])
-fi
-])dnl XIPH_PATH_SHOUT