mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-25 09:30:36 +01:00
build: don't write systemd unit file outside of prefix
This commit is contained in:
parent
86f857325e
commit
2750b0759f
2 changed files with 15 additions and 13 deletions
|
|
@ -31,7 +31,6 @@ DISTCHECK_CONFIGURE_FLAGS = \
|
|||
--with-docs=yes \
|
||||
--enable-more-warnings=yes \
|
||||
--with-udev-dir=$$dc_install_base/lib/udev \
|
||||
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
|
||||
--with-wext=no \
|
||||
--enable-ifcfg-rh \
|
||||
--enable-ifcfg-suse \
|
||||
|
|
|
|||
27
configure.ac
27
configure.ac
|
|
@ -258,14 +258,17 @@ fi
|
|||
AC_SUBST(UDEV_BASE_DIR)
|
||||
|
||||
# systemd unit support
|
||||
AC_ARG_WITH([systemdsystemunitdir],
|
||||
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
||||
[],
|
||||
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
||||
if test "x$with_systemdsystemunitdir" != xno; then
|
||||
AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
|
||||
[Directory for systemd service files]))
|
||||
# default location
|
||||
AS_IF([test -z "$with_systemdsystemunitdir" && $PKG_CONFIG systemd],
|
||||
with_systemdsystemunitdir="\$(prefix)/lib/systemd/system")
|
||||
AS_IF([test -z "$with_systemdsystemunitdir"], with_systemdsystemunitdir=no)
|
||||
# add conditional and subst
|
||||
AM_CONDITIONAL(HAVE_SYSTEMD, [test "$with_systemdsystemunitdir" != no])
|
||||
if test "$with_systemdsystemunitdir" != no; then
|
||||
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
||||
|
||||
AC_ARG_WITH(session-tracking, AS_HELP_STRING([--with-session-tracking=systemd|ck|none], [Build NetworkManager with specific session tracking support]))
|
||||
if test "z$with_session_tracking" = "z"; then
|
||||
|
|
@ -767,6 +770,12 @@ AC_OUTPUT
|
|||
|
||||
# Print build configuration
|
||||
echo
|
||||
echo "System paths:"
|
||||
echo " prefix: $prefix"
|
||||
echo " exec_prefix: $exec_prefix"
|
||||
echo " systemdunitdir: $with_systemdsystemunitdir"
|
||||
echo
|
||||
|
||||
echo Configuration plugins:
|
||||
echo " ifcfg-rh: ${enable_ifcfg_rh}"
|
||||
echo " ifcfg-suse: ${enable_ifcfg_suse}"
|
||||
|
|
@ -792,12 +801,6 @@ else
|
|||
echo dhcpcd support: no
|
||||
fi
|
||||
|
||||
if test -n "${with_systemdsystemunitdir}"; then
|
||||
echo systemd unit support: ${with_systemdsystemunitdir}
|
||||
else
|
||||
echo systemd unit support: no
|
||||
fi
|
||||
|
||||
if test "${enable_polkit}" = "yes"; then
|
||||
if test "${enable_modify_system}"; then
|
||||
echo "PolicyKit support: yes (permissive modify.system)"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue