mirror of git://git.sysmocom.de/ofono
build: Add option to specify systemd unit directory
This commit is contained in:
parent
1166ed5a3a
commit
66f9298c2b
16
configure.ac
16
configure.ac
|
@ -112,18 +112,14 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(DBUS_DATADIR)
|
AC_SUBST(DBUS_DATADIR)
|
||||||
|
|
||||||
AC_ARG_ENABLE(systemd, AC_HELP_STRING([--enable-systemd],
|
AC_ARG_WITH([systemdunitdir], AC_HELP_STRING([--with-systemdunitdir=DIR],
|
||||||
[enable systemd support]), [enable_systemd=${enableval}])
|
[path to systemd service directory]), [path_systemdunit=${withval}],
|
||||||
if (test "${enable_systemd}" = "yes"); then
|
[path_systemdunit="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])
|
||||||
PKG_CHECK_MODULES(SYSTEMD, systemd, dummy=yes,
|
if (test -n "${path_systemdunit}"); then
|
||||||
AC_MSG_ERROR(systemd is required))
|
SYSTEMD_UNITDIR="${path_systemdunit}"
|
||||||
SYSTEMD_UNITDIR="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
|
|
||||||
if (test -z "${SYSTEM_UNITDIR}"); then
|
|
||||||
SYSTEMD_UNITDIR="/lib/systemd/system"
|
|
||||||
fi
|
|
||||||
AC_SUBST(SYSTEMD_UNITDIR)
|
AC_SUBST(SYSTEMD_UNITDIR)
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(SYSTEMD, test "${enable_systemd}" = "yes")
|
AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
|
||||||
|
|
||||||
AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng],
|
AC_ARG_ENABLE(capng, AC_HELP_STRING([--enable-capng],
|
||||||
[enable capabilities support]), [enable_capng=${enableval}])
|
[enable capabilities support]), [enable_capng=${enableval}])
|
||||||
|
|
Loading…
Reference in New Issue