Restore AC_DEFINE from old configure.in for ENABLE_OGG macro.

This commit is contained in:
Michael Jumper 2013-07-02 12:14:19 -07:00
parent 030eaec09e
commit 73fb45bbd5

View File

@ -93,6 +93,17 @@ AC_CHECK_HEADER(vorbis/vorbisenc.h,, [have_vorbisenc=no])
AC_CHECK_LIB([vorbisenc], [vorbis_encode_init], [VORBIS_LIBS="$VORBIS_LIBS -lvorbisenc"], [have_vorbisenc=no]) AC_CHECK_LIB([vorbisenc], [vorbis_encode_init], [VORBIS_LIBS="$VORBIS_LIBS -lvorbisenc"], [have_vorbisenc=no])
AM_CONDITIONAL([ENABLE_OGG], [test "x${have_vorbisenc}" = "xyes"]) AM_CONDITIONAL([ENABLE_OGG], [test "x${have_vorbisenc}" = "xyes"])
if test "x${have_vorbisenc}" = "xno"
then
AC_MSG_WARN([
--------------------------------------------
Unable to find libvorbisenc.
Sound will not be encoded with Ogg Vorbis.
--------------------------------------------])
else
AC_DEFINE([ENABLE_OGG])
fi
AC_SUBST(VORBIS_LIBS) AC_SUBST(VORBIS_LIBS)
# #