@@ -1060,7 +1060,7 @@ PA_MACHINE_ID_FALLBACK="${localstatedir}/lib/dbus/machine-id"
10601060AX_DEFINE_DIR(PA_MACHINE_ID_FALLBACK, PA_MACHINE_ID_FALLBACK,
10611061 [ Fallback machine-id file] )
10621062
1063- # ### BlueZ support (optional, dependent on FFmpeg, D-Bus and SBC) ####
1063+ # ### BlueZ support (optional, dependent on FFmpeg, FDK-AAC, D-Bus and SBC) ####
10641064
10651065AC_ARG_ENABLE ( [ bluez5] ,
10661066 AS_HELP_STRING ( [ --disable-bluez5] ,[ Disable optional BlueZ 5 support] ) )
@@ -1070,6 +1070,12 @@ AS_IF([test "x$enable_bluez5" != "xno"],
10701070 [ PKG_CHECK_MODULES(SBC, [ sbc >= 1.0 ] , HAVE_SBC=1, HAVE_SBC=0)] ,
10711071 HAVE_SBC=0 )
10721072
1073+ # # FDK-AAC ##
1074+ AS_IF ( [ test "x$enable_bluez5" != "xno"] ,
1075+ [ PKG_CHECK_MODULES(FDK_AAC, [ fdk-aac >= 0.1.5 ] , HAVE_FDK_AAC=1, HAVE_FDK_AAC=0)] ,
1076+ HAVE_FDK_AAC=0 )
1077+
1078+
10731079# # FFmpeg libavcodec ##
10741080AS_IF ( [ test "x$enable_bluez5" != "xno"] ,
10751081 [ PKG_CHECK_MODULES(FF_AVCODEC, [ libavcodec >= 58.18.100 ] , HAVE_FF_AVCODEC=1, HAVE_FF_AVCODEC=0)] ,
@@ -1079,10 +1085,10 @@ AS_IF([test "x$enable_bluez5" != "xno"],
10791085 HAVE_FF_AVUTIL=0 )
10801086
10811087# # BlueZ 5 ##
1082- AS_IF ( [ test "x$enable_bluez5" != "xno" && test "x$HAVE_DBUS" = "x1" && test "x$HAVE_SBC" = "x1" && test "x$HAVE_FF_AVCODEC" = "x1" && test "x$HAVE_FF_AVUTIL" = "x1"] , HAVE_BLUEZ_5=1 ,
1088+ AS_IF ( [ test "x$enable_bluez5" != "xno" && test "x$HAVE_DBUS" = "x1" && test "x$HAVE_SBC" = "x1" && test "x$HAVE_FDK_AAC" = "x1" && test "x$ HAVE_FF_AVCODEC" = "x1" && test "x$HAVE_FF_AVUTIL" = "x1"] , HAVE_BLUEZ_5=1 ,
10831089 HAVE_BLUEZ_5=0 )
10841090AS_IF ( [ test "x$enable_bluez5" = "xyes" && test "x$HAVE_BLUEZ_5" != "x1"] ,
1085- [ AC_MSG_ERROR ( [ *** BLUEZ 5 support not found (requires FFmpeg, sbc and D-Bus)] ) ] )
1091+ [ AC_MSG_ERROR ( [ *** BLUEZ 5 support not found (requires FFmpeg, FDK-AAC, sbc and D-Bus)] ) ] )
10861092AC_SUBST ( HAVE_BLUEZ_5 )
10871093AM_CONDITIONAL([ HAVE_BLUEZ_5] , [ test "x$HAVE_BLUEZ_5" = x1] )
10881094
0 commit comments