mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Make this work on static archs, and get one step closer to SunCC support on
Solaris. Also, don't complain if libshout isn't thread-safe, as Ezstream isn't multithreaded. git-svn-id: https://svn.xiph.org/trunk/ezstream@12572 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
fddb4090c7
commit
5cd0b1aba9
31
configure.in
31
configure.in
@ -73,24 +73,29 @@ fi
|
||||
|
||||
dnl CONFIGURE OPTIONS
|
||||
|
||||
XIPH_PATH_SHOUT(, AC_MSG_ERROR([must have libshout installed!]))
|
||||
if test "$SHOUT_THREADSAFE" != "yes"; then
|
||||
AC_MSG_ERROR([This libshout isn't threadsafe])
|
||||
fi
|
||||
dnl Check for Ogg Vorbis
|
||||
XIPH_PATH_OGG(, AC_MSG_ERROR([Must have libogg 1.x installed.]))
|
||||
XIPH_PATH_VORBIS(, AC_MSG_ERROR([Must have libvorbis 1.x installed.]))
|
||||
|
||||
XIPH_PATH_XML
|
||||
dnl Check for libshout.
|
||||
XIPH_PATH_SHOUT(, AC_MSG_ERROR([Must have libshout 2.x installed.]))
|
||||
|
||||
dnl Check for libxml
|
||||
XIPH_PATH_XML(, AC_MSG_ERROR([Must have libxml 2.x installed.]))
|
||||
|
||||
dnl Assemble *FLAGS and *LIBS in the proper order.
|
||||
XIPH_VAR_APPEND([XIPH_CFLAGS], [$OGG_CFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS], [$OGG_LIBS])
|
||||
XIPH_VAR_APPEND([XIPH_CFLAGS], [$VORBIS_CFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS], [$VORBIS_LIBS])
|
||||
XIPH_VAR_APPEND([XIPH_CFLAGS], [$VORBISFILE_CFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS], [$VORBISFILE_LIBS])
|
||||
XIPH_VAR_APPEND([XIPH_CFLAGS], [$SHOUT_CFLAGS])
|
||||
XIPH_VAR_APPEND([XIPH_CPPFLAGS], [$SHOUT_CPPFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS], [$SHOUT_LIBS])
|
||||
XIPH_VAR_APPEND([XIPH_CFLAGS], [$XML_CFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS], [$XML_LIBS])
|
||||
|
||||
XIPH_VAR_APPEND([XIPH_CPPFLAGS], [$SHOUT_CPPFLAGS])
|
||||
XIPH_VAR_APPEND([XIPH_CFLAGS], [$SHOUT_CFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS], [$SHOUT_LIBS])
|
||||
|
||||
XIPH_PATH_VORBIS(, AC_MSG_ERROR([must have Ogg Vorbis v1.0 installed!]))
|
||||
XIPH_VAR_APPEND([XIPH_CPPFLAGS],[$VORBIS_CFLAGS $VORBISFILE_CFLAGS])
|
||||
XIPH_VAR_PREPEND([XIPH_LIBS],[$VORBIS_LIBS $VORBISFILE_LIBS])
|
||||
|
||||
|
||||
dnl OUTPUT
|
||||
|
||||
|
@ -47,6 +47,14 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl XXX - Up until and including speex-1.2beta1, '-lm' has been missing from
|
||||
dnl --libs in speex.pc, even though Speex (still) depends on it. This is
|
||||
dnl a problem for Solaris' linker and at least some static archs using
|
||||
dnl GNU ld. '-lm' now comes from the libshout's libvorbis dependency and
|
||||
dnl is in the wrong place.
|
||||
xt_shout_TEMP="`echo $SHOUT_LIBS | sed -e 's,-lm,,g'`"
|
||||
SHOUT_LIBS="$xt_shout_TEMP -lm"
|
||||
|
||||
# Now try actually using libshout
|
||||
if test "$xt_have_shout" != "no"
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user