]> code.delx.au - pulseaudio/commitdiff
Revert "build: Merge bluez pkg-config checks into one"
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 7 Sep 2012 18:13:57 +0000 (23:43 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 7 Sep 2012 18:15:12 +0000 (23:45 +0530)
Keeping the SBC check separate means we can keep the SBC_LIBS/CFLAGS
separate, which is cleaner. Thanks to Jan Steffens for pointing out that
this was broken (SBC_* wasn't actually changed to match the configure
change).

This reverts commit da5078e5c7762557c357da4825f8927bf3162532.

configure.ac

index ca95d188a6edbf06fc7e3e98b0491bbeb7637ce7..06923e3b973cc3e2b69dc84fe59996da87387226 100644 (file)
@@ -963,7 +963,10 @@ AC_ARG_ENABLE([bluez],
     AS_HELP_STRING([--disable-bluez],[Disable optional BlueZ support]))
 
 AS_IF([test "x$enable_bluez" != "xno"],
-    [PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 sbc >= 1.0 ], HAVE_BLUEZ=1, HAVE_BLUEZ=0)],
+    [PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 ], HAVE_BLUEZ=1, HAVE_BLUEZ=0)],
+    HAVE_BLUEZ=0)
+AS_IF([test "x$enable_bluez" != "xno"],
+    [PKG_CHECK_MODULES(SBC, [ sbc >= 1.0 ], HAVE_BLUEZ=1, HAVE_BLUEZ=0)],
     HAVE_BLUEZ=0)
 AS_IF([test "x$HAVE_DBUS" != "x1"], HAVE_BLUEZ=0)