AC_SUBST(LUA_CFLAGS)
AC_SUBST(LUA_LIBS)
-PKG_CHECK_MODULES(AUL, aul)
+PKG_CHECK_MODULES(AUL, aul, [have_aul=yes], [have_aul=no])
+if test "$have_aul" = "no" -a "$enable_aul" = "yes"; then
+ AC_MSG_ERROR([AUL development headers not found.])
+fi
AC_SUBST(AUL_CFLAGS)
AC_SUBST(AUL_LIBS)
+AM_CONDITIONAL(HAVE_AUL, [ test x$have_aul = "xyes" ])
+
# D-Bus
AC_ARG_WITH([dbus],
[ AS_HELP_STRING([--with-dbus],
CONDITIONAL_CFLAGS += -DWITH_MURPHYIF
endif
+if HAVE_AUL
+CONDITIONAL_CFLAGS += -DWITH_AUL
+endif
+
module_murphy_ivi_la_LDFLAGS = -module -avoid-version -Wl,--no-undefined
#include <pulsecore/device-port.h>
#include <pulsecore/core-util.h>
+#ifdef WITH_AUL
#include <aul.h>
#include <bundle.h>
+#endif
#include "classify.h"
#include "node.h"
if (!pid)
break;
+#ifdef WITH_AUL
if (aul_app_get_appid_bypid(pid, buf, sizeof(buf)) < 0 &&
pid2exe(pid, buf, sizeof(buf)) < 0)
{
"(pid %d)", bin, pid);
break;
}
-
+#else
+ if (pid2exe(pid, buf, sizeof(buf)) < 0) {
+ pa_log("can't obtain real application name for wrt '%s' "
+ "(pid %d)", bin, pid);
+ break;
+ }
+#endif
if ((name = strrchr(buf, '.')))
name++;
else