Lines 1927-1959
Link Here
|
1927 |
[Exclude OPUS support from the build (default: autodetect)]) |
1927 |
[Exclude OPUS support from the build (default: autodetect)]) |
1928 |
, |
1928 |
, |
1929 |
[ |
1929 |
[ |
1930 |
if test "$enable_opus" = "no"; then |
1930 |
if test "$enable_opus" = "no"; then |
1931 |
[ac_no_opus=1] |
1931 |
[ac_no_opus=1] |
1932 |
AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) |
1932 |
AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) |
1933 |
AC_MSG_RESULT([Checking if OPUS support is disabled... yes]) |
1933 |
AC_MSG_RESULT([Checking if OPUS support is disabled... yes]) |
1934 |
fi |
1934 |
fi |
1935 |
], |
1935 |
], |
1936 |
[ |
1936 |
[ |
1937 |
AC_MSG_RESULT([checking for OPUS installations..]) |
|
|
1938 |
if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then |
1939 |
CFLAGS="$CFLAGS -I$with_opus/include" |
1940 |
CPPFLAGS="$CPPFLAGS -I$with_opus/include" |
1941 |
LDFLAGS="$LDFLAGS -L$with_opus/lib" |
1942 |
AC_MSG_RESULT([Using OPUS prefix... $with_opus]) |
1943 |
fi |
1944 |
AC_SUBST(opus_h_present) |
1945 |
AC_SUBST(opus_present) |
1946 |
AC_CHECK_HEADER(opus/opus.h,[opus_h_present=1]) |
1947 |
AC_CHECK_LIB(opus,opus_repacketizer_get_size,[opus_present=1 && LIBS="-lopus $LIBS"]) |
1948 |
if test "x$opus_h_present" = "x1" -a "x$opus_present" = "x1"; then |
1949 |
AC_MSG_RESULT([OPUS library found, OPUS support enabled]) |
1950 |
AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,1) |
1951 |
else |
1952 |
[ac_no_opus=1] |
1953 |
AC_MSG_RESULT([OPUS library not found, OPUS support disabled]) |
1954 |
AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) |
1955 |
fi |
1956 |
]) |
1937 |
]) |
|
|
1938 |
if test "x$ac_no_opus" = "x"; then |
1939 |
AC_MSG_RESULT([checking for OPUS installations..]) |
1940 |
if test "x$with_opus" != "xno" -a "x$with_opus" != "x"; then |
1941 |
CFLAGS="$CFLAGS -I$with_opus/include" |
1942 |
CPPFLAGS="$CPPFLAGS -I$with_opus/include" |
1943 |
LDFLAGS="$LDFLAGS -L$with_opus/lib" |
1944 |
AC_MSG_RESULT([Using OPUS prefix... $with_opus]) |
1945 |
fi |
1946 |
AC_SUBST(opus_h_present) |
1947 |
AC_SUBST(opus_present) |
1948 |
AC_CHECK_HEADER(opus/opus.h,[opus_h_present=1]) |
1949 |
AC_CHECK_LIB(opus,opus_repacketizer_get_size,[opus_present=1 && LIBS="-lopus $LIBS"]) |
1950 |
if test "x$opus_h_present" = "x1" -a "x$opus_present" = "x1"; then |
1951 |
AC_MSG_RESULT([OPUS library found, OPUS support enabled]) |
1952 |
AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,1) |
1953 |
else |
1954 |
[ac_no_opus=1] |
1955 |
AC_MSG_RESULT([OPUS library not found, OPUS support disabled]) |
1956 |
AC_DEFINE(PJMEDIA_HAS_OPUS_CODEC,0) |
1957 |
fi |
1958 |
fi |
1957 |
|
1959 |
|
1958 |
dnl # bcg729 prefix |
1960 |
dnl # bcg729 prefix |
1959 |
AC_ARG_WITH(bcg729, |
1961 |
AC_ARG_WITH(bcg729, |