diff --git a/configure.ac b/configure.ac
index e50163cce..6f1b8edc2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1257,12 +1257,12 @@ dnl Option groups
 dnl ---------------------------------------------------------------------------
 
 have_ogg=no
-if test x$enable_vorbis = xyes || test x$enable_tremor = xyes || test x$enable_opus = xyes; then
+if test x$enable_vorbis = xyes || test x$enable_tremor = xyes || test x$enable_opus = xyes || test x$enable_vorbis_encoder = xyes; then
 	have_ogg=yes
 fi
 
 have_xiph=no
-if test x$enable_ogg = xyes || test x$enable_flac = xyes; then
+if test x$enable_ogg = xyes || test x$enable_flac = xyes || test x$enable_flac_encoder = xyes; then
 	have_xiph=yes
 fi