meson.build | 3 ++-
meson_options.txt | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meson.build b/meson.build
index 1f7c7bf66..9632a2af1 100644
--- a/meson.build
+++ b/meson.build
@@ -149,7 +149,8 @@ datadir = prefixdir / get_option('datadir')
localstatedir = get_option('localstatedir')
localstatedir = localstatedir != '' ? localstatedir : '/var'
-libexecdir = get_option('libexecdir')
+elogindlibexecdir = get_option('elogind-libexecdir')
+libexecdir = elogindlibexecdir
libexecdir = libexecdir != '' ? libexecdir : prefixdir / 'lib/elogind'
#endif // 0
pkglibdir = libdir / 'elogind'
diff --git a/meson_options.txt b/meson_options.txt
index 1680aaeac..01557448e 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -35,7 +35,8 @@ option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
# option('first-boot-full-preset', type: 'boolean', value: false,
# description : 'during first boot, do full preset-all (default will be changed to true later)')
#endif // 0
-
+option('elogind-libexecdir', type : 'string',
+ description : '''This option is elogind libexecdir path''')
option('static-libelogind', type : 'combo',
choices : ['false', 'true', 'pic', 'no-pic'],
#if 0 /// UNNEEDED by elogind
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}