summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-12-02 11:31:27 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-12-09 16:40:25 +0100
commitdd57d05a523746af54557e4cf5a9768ebe029d77 (patch)
tree5475107928b147a97d754ae84b2fb4b9324ca401 /configure.ac
parentfb3fe2272cf6fa27642593f79b351802787319d4 (diff)
downloadspice-common-dd57d05a523746af54557e4cf5a9768ebe029d77.tar.gz
spice-common-dd57d05a523746af54557e4cf5a9768ebe029d77.tar.xz
spice-common-dd57d05a523746af54557e4cf5a9768ebe029d77.zip
build-sys: Move celt check to m4 macro
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 1 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 27893cc..93ffc76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,25 +40,10 @@ PKG_CHECK_MODULES(PIXMAN, pixman-1 >= 0.17.7)
AC_SUBST(PIXMAN_CFLAGS)
SPICE_CHECK_SMARTCARD(SPICE_COMMON)
+SPICE_CHECK_CELT051(SPICE_COMMON)
AC_SUBST(SPICE_COMMON_CFLAGS)
AC_SUBST(SPICE_COMMON_LIBS)
-AC_ARG_ENABLE(celt051,
-[ --disable-celt051 Disable celt051 audio codec (enabled by default)],,
-[enable_celt051="yes"])
-
-if test "x$enable_celt051" = "xyes"; then
- PKG_CHECK_MODULES(CELT051, celt051 >= 0.5.1.1, have_celt051=yes, have_celt051=no)
- AC_SUBST(CELT051_CFLAGS)
- AC_SUBST(CELT051_LIBS)
- AC_SUBST(CELT051_LIBDIR)
-else
- have_celt051=no
-fi
-
-AM_CONDITIONAL([HAVE_CELT051], [test "x$have_celt051" = "xyes"])
-AM_COND_IF([HAVE_CELT051], AC_DEFINE([HAVE_CELT051], 1, [Define if we have celt051 codec]))
-
PKG_CHECK_MODULES([OPUS], [opus >= 0.9.14], have_opus=yes, have_opus=no)
AM_CONDITIONAL([HAVE_OPUS], [test "x$have_opus" = "xyes"])
AM_COND_IF([HAVE_OPUS], AC_DEFINE([HAVE_OPUS], 1, [Define if we have Opus]))