From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Thu, 1 Dec 2022 15:47:55 +0000 (+0000) Subject: Add a configuration check for the xxd program when building for AirPlay 2. X-Git-Tag: 4.1.1~2^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=885377ca75f3dfc5d0a5fe7b28fb6f5ed6983578;p=thirdparty%2Fshairport-sync.git Add a configuration check for the xxd program when building for AirPlay 2. --- diff --git a/configure.ac b/configure.ac index b88b18cc..55bfe880 100644 --- a/configure.ac +++ b/configure.ac @@ -406,6 +406,8 @@ AM_CONDITIONAL([USE_METADATA], [test "x$with_metadata" = "xyes"]) AC_ARG_WITH(airplay-2, [AS_HELP_STRING([--with-airplay-2],[Build for AirPlay 2])]) if test "x$with_airplay_2" = "xyes" ; then AC_DEFINE([CONFIG_AIRPLAY_2], 1, [Build for AirPlay 2]) + AC_CHECK_PROG(XXD_CHECK,xxd,yes) + AS_IF([test x"$XXD_CHECK" != x"yes"], [AC_MSG_ERROR([xxd can not be found. Please install xxd for building for AirPlay 2.])]) PKG_CHECK_MODULES([libplist], [libplist >= 2.0.0],[CFLAGS="${libplist_CFLAGS} ${CFLAGS}" LIBS="${libplist_LIBS} ${LIBS}"],[ PKG_CHECK_MODULES([libplist], [libplist-2.0 >= 2.0.0],[CFLAGS="${libplist_CFLAGS} ${CFLAGS}" LIBS="${libplist_LIBS} ${LIBS}"],[ AC_MSG_ERROR(AirPlay 2 support requires libplist 2.0.0 or later -- search for pkg libplist-dev on Debian or libplist-2.2.0 or later on FreeBSD!)