If libogg is installed but speex is not, configure prints "vorbis/speex
require ogg", which is a rather bad explanation of the problem at hand.
This simple patch should fix it.
AC_CHECK_LIB([speex], [speex_decoder_init], [], [ have_speex="no" ])
AC_CHECK_HEADERS([speex/speex.h], [], [ have_speex="no" ])
else
+ AC_MSG_WARN([vorbis/speex depend on libogg, which was not detected])
have_vorbis="no"
have_speex="no"
fi
all_errlist_objs="$all_errlist_objs ogg_afh_common"
afh_errlist_objs="$afh_errlist_objs ogg_afh_common"
server_errlist_objs="$server_errlist_objs ogg_afh_common"
-else
- AC_MSG_WARN([vorbis/speex require ogg])
fi
if test "$have_vorbis" = "yes"; then
all_errlist_objs="$all_errlist_objs oggdec_filter ogg_afh"