AC_PREREQ(2.60)
AC_INIT()
-AM_INIT_AUTOMAKE(connman, 0.6)
+AM_INIT_AUTOMAKE(connman, 0.8)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_MSG_ERROR(libdbus is required))
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
+DBUS_DATADIR="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
+if (test -z "{DBUS_DATADIR}"); then
+ DBUS_DATADIR="${sysconfdir}/dbus-1/system.d"
+else
+ DBUS_DATADIR="$DBUS_DATADIR/dbus-1/system.d"
+fi
+AC_SUBST(DBUS_DATADIR)
AC_SUBST([GDBUS_CFLAGS], ['$(DBUS_CFLAGS) -I$(top_srcdir)/gdbus'])
AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.la $(DBUS_LIBS)'])
[Define to 1 if you need the
udev_device_get_parent_with_subsystem_devtype()
function.]))
+ UDEV_DATADIR="`$PKG_CONFIG --variable=rulesdir libudev`"
+ if (test -z "${UDEV_DATADIR}"); then
+ UDEV_DATADIR="${sysconfdir}/udev/rules.d"
+ fi
+ AC_SUBST(UDEV_DATADIR)
fi
AC_SUBST(UDEV_CFLAGS)
AC_SUBST(UDEV_LIBS)
AC_MSG_ERROR(PolicyKit >= 0.7 is required))
AC_SUBST(POLKIT_CFLAGS)
AC_SUBST(POLKIT_LIBS)
+ POLKIT_DATADIR="`$PKG_CONFIG --variable=policydir polkit`"
+ if (test -z "${POLKIT_DATADIR}"); then
+ POLKIT_DATADIR="${datadir}/PolicyKit/policy"
+ fi
+ AC_SUBST(POLKIT_DATADIR)
fi
AM_CONDITIONAL(POLKIT, test "${enable_polkit}" = "yes")
[enable fake device support]), [enable_fake=${enableval}])
AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes")
+AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles],
+ [don't install configuration and data files]),
+ [enable_datafiles=${enableval}])
+AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
+
AC_OUTPUT(Makefile gdbus/Makefile include/Makefile include/version.h
src/Makefile src/connman.service scripts/connman
scripts/Makefile plugins/Makefile client/Makefile