diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 180e380..8eef951 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,7 @@ AC_CONFIG_FILES([ include/Makefile include/gsmhr/Makefile libosmogapk.pc + tests/atlocal tests/Makefile ]) @@ -29,9 +30,9 @@ AC_ARG_ENABLE(gsmhr, [--disable-gsmhr], [Disable support for GSM HR codec using reference code] )], - [enable_gsmhr=0], [enable_gsmhr=1]) -AM_CONDITIONAL(ENABLE_GSMHR, test "x$enable_gsmhr" = "x1") -if test "x$enable_gsmhr" = "x1"; then + [enable_gsmhr=$enableval], [enable_gsmhr="yes"]) +AM_CONDITIONAL(ENABLE_GSMHR, test "x$enable_gsmhr" = "xyes") +if test "x$enable_gsmhr" = "xyes"; then AM_PATH_PYTHON([2.4]) AC_DEFINE(HAVE_LIBGSMHR, 1, [Define to 1 if libgsmhr is available]) fi @@ -84,6 +85,11 @@ if test "$found_libgsm" = yes; then fi AC_SUBST(LIBGSM_LIBS) +# Conditional codec tests +AC_SUBST(ENABLE_AMR_EFR_TESTS, [$found_opencore_amrnb]) +AC_SUBST(ENABLE_HR_TESTS, [$enable_gsmhr]) +AC_SUBST(ENABLE_FR_TESTS, [$found_libgsm]) + # Checks for header files. AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h]) |