mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
codec_ilbc: Disable system ilbc if version >= 3.0.0
Fedora 37 started shipping ilbc 3.0.4 which we don't yet support.
configure.ac now checks the system for "libilbc < 3" instead of
just "libilbc". If true, the system version of ilbc will be used.
If not, the version included at codecs/ilbc will be used.
Resolves: #84
(cherry picked from commit bee37b7404
)
This commit is contained in:
committed by
Asterisk Development Team
parent
f4b2a34cf6
commit
acf0b399cb
16
configure
vendored
16
configure
vendored
@@ -21766,12 +21766,12 @@ if test -n "$ILBC_CFLAGS"; then
|
|||||||
pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
|
pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc < 3\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
|
($PKG_CONFIG --exists --print-errors "libilbc < 3") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc" 2>/dev/null`
|
pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc < 3" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -21783,12 +21783,12 @@ if test -n "$ILBC_LIBS"; then
|
|||||||
pkg_cv_ILBC_LIBS="$ILBC_LIBS"
|
pkg_cv_ILBC_LIBS="$ILBC_LIBS"
|
||||||
elif test -n "$PKG_CONFIG"; then
|
elif test -n "$PKG_CONFIG"; then
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc < 3\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
|
($PKG_CONFIG --exists --print-errors "libilbc < 3") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; then
|
test $ac_status = 0; }; then
|
||||||
pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc" 2>/dev/null`
|
pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc < 3" 2>/dev/null`
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
else
|
else
|
||||||
pkg_failed=yes
|
pkg_failed=yes
|
||||||
@@ -21809,9 +21809,9 @@ else
|
|||||||
_pkg_short_errors_supported=no
|
_pkg_short_errors_supported=no
|
||||||
fi
|
fi
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc" 2>&1`
|
ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc < 3" 2>&1`
|
||||||
else
|
else
|
||||||
ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc" 2>&1`
|
ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc < 3" 2>&1`
|
||||||
fi
|
fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$ILBC_PKG_ERRORS" >&5
|
echo "$ILBC_PKG_ERRORS" >&5
|
||||||
|
@@ -1743,7 +1743,7 @@ if test "${USE_ILBC}" != "no"; then
|
|||||||
ILBC_INTERNAL="no"
|
ILBC_INTERNAL="no"
|
||||||
fi
|
fi
|
||||||
if test "${ILBC_SYSTEM}" = "yes"; then
|
if test "${ILBC_SYSTEM}" = "yes"; then
|
||||||
AST_PKG_CONFIG_CHECK(ILBC, libilbc)
|
AST_PKG_CONFIG_CHECK(ILBC, libilbc < 3)
|
||||||
if test "$PBX_ILBC" = "1"; then
|
if test "$PBX_ILBC" = "1"; then
|
||||||
ILBC_INTERNAL="no"
|
ILBC_INTERNAL="no"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user