From: Sven Eden Date: Thu, 27 Jul 2017 14:07:50 +0000 (+0200) Subject: ALL: Add --with-rootlibexecdir and change default to ${libdir}/libexec X-Git-Tag: chiark/234.4-1+devuan1.1+iwj1~53 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d3c0437914d1460f222eeac60ee177add8740b71 ALL: Add --with-rootlibexecdir and change default to ${libdir}/libexec --- diff --git a/Makefile.am b/Makefile.am index 92becb7ab..484942c26 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,14 +65,16 @@ udevrulesdir=@udevrulesdir@ udevbindir=@udevbindir@ udevlibexecdir=$(udevbindir) udevhomedir=$(udevlibexecdir) -systemshutdowndir=$(rootlibexecdir)/system-shutdown -systemsleepdir=$(rootlibexecdir)/system-sleep factory_pamdir = $(datadir)/factory/etc/pam.d # And these are the special ones for / + rootprefix=@rootprefix@ rootbindir=$(rootprefix)/bin -rootlibexecdir=$(rootprefix)/lib/elogind +rootlibdir=@rootlibdir@ +rootlibexecdir=@rootlibexecdir@ +systemshutdowndir=$(rootlibexecdir)/system-shutdown +systemsleepdir=$(rootlibexecdir)/system-sleep EXTRA_DIST = BUILT_SOURCES = diff --git a/configure.ac b/configure.ac index e67cbdd60..7bb67b71e 100644 --- a/configure.ac +++ b/configure.ac @@ -765,6 +765,12 @@ AC_ARG_WITH([rootlibdir], [with_rootlibdir=${libdir}]) AX_NORMALIZE_PATH([with_rootlibdir]) +AC_ARG_WITH([rootlibexecdir], + AS_HELP_STRING([--with-rootlibexecdir=DIR], [Root directory for executables necessary for boot]), + [], + [with_rootlibexecdir=${libdir}/libexec]) +AX_NORMALIZE_PATH([with_rootlibexecdir]) + AC_ARG_WITH([pamlibdir], AS_HELP_STRING([--with-pamlibdir=DIR], [directory for PAM modules]), [], @@ -848,6 +854,7 @@ AC_SUBST([pamlibdir], [$with_pamlibdir]) AC_SUBST([pamconfdir], [$with_pamconfdir]) AC_SUBST([rootprefix], [$with_rootprefix]) AC_SUBST([rootlibdir], [$with_rootlibdir]) +AC_SUBST([rootlibexecdir], [$with_rootlibexecdir]) AC_SUBST([cgroup_controller], [$with_cgroupctrl]) AC_CONFIG_FILES([ @@ -883,6 +890,7 @@ AC_MSG_RESULT([ includedir: . . . . . . . . . . . ${includedir} lib dir: . . . . . . . . . . . . . ${libdir} rootlib dir: . . . . . . . . . . . ${with_rootlibdir} + rootlibexec dir: . . . . . . . . . ${with_rootlibexecdir} PAM modules dir: . . . . . . . . . ${with_pamlibdir} PAM configuration dir: . . . . . . ${with_pamconfdir} D-Bus policy dir: . . . . . . . . ${with_dbuspolicydir}