From fceb08d78ab71c18a6cdf6ab0044ad8d6b211097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= <rafael.carre@savoirfairelinux.com> Date: Fri, 12 Aug 2011 18:40:10 -0400 Subject: [PATCH] Fix CELT configure.ac test --- sflphone-common/configure.ac | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sflphone-common/configure.ac b/sflphone-common/configure.ac index fac79f965b..3d40a0beca 100644 --- a/sflphone-common/configure.ac +++ b/sflphone-common/configure.ac @@ -288,13 +288,19 @@ AC_ARG_WITH([celt], [with_celt=yes]) AS_IF([test "x$with_celt" != xno], - PKG_CHECK_MODULES(CELT, celt >= 0.9.1, + [PKG_CHECK_MODULES(CELT, celt >= 0.9.1, [ - with_celt_91=yes; AC_MSG_NOTICE([Using celt 0.9.1]); AC_SUBST(BUILD_CELT_91) + with_celt_91=yes; AC_MSG_NOTICE([Using celt 0.9.1]) ], [ - PKG_CHECK_MODULES(CELT, celt >= 0.7.1, [with_celt_71=yes; AC_MSG_NOTICE([Using celt 0.7.1]); AC_SUBST(BUILD_CELT_71)], AC_MSG_FAILURE([libcelt link test failed. You may use --without-celt to compile without celt codec support.])) - ]) + PKG_CHECK_MODULES(CELT, celt >= 0.7.1, + [ + with_celt_71=yes; AC_MSG_NOTICE([Using celt 0.7.1]) + ], + [ + AC_MSG_FAILURE([libcelt link test failed. You may use --without-celt to compile without celt codec support.]) + ]) + ])] ) # AC_SUBST(BUILD_CELT) -- GitLab