--- a/aconfigure.ac 2021-10-11 18:58:36.903046055 -0000 +++ b/aconfigure.ac 2021-10-11 18:59:07.602045398 -0000 @@ -1927,13 +1927,6 @@ [Exclude OPUS support from the build (default: autodetect)]) , [ - if test "$enable_opus" = "no"; then - [ac_no_opus=1] - AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) - AC_MSG_RESULT([Checking if OPUS support is disabled... yes]) - fi - ], - [ AC_MSG_RESULT([checking for OPUS installations..]) if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then CFLAGS="$CFLAGS -I$with_opus/include" @@ -1953,6 +1946,13 @@ AC_MSG_RESULT([OPUS library not found, OPUS support disabled]) AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) fi + ], + [ + if test "$enable_opus" = "no"; then + [ac_no_opus=1] + AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) + AC_MSG_RESULT([Checking if OPUS support is disabled... yes]) + fi ]) dnl # bcg729 prefix