diff options
author | Michael Adam <obnox@redhat.com> | 2017-08-10 23:41:28 +0200 |
---|---|---|
committer | Prasanna Kumar Kalever <pkalever@redhat.com> | 2017-09-20 15:51:54 +0000 |
commit | 95db5c36b38fa883141cb3eeb237957d18091168 (patch) | |
tree | aeebaa3e1ce19ae6e65c32785df33a9935769743 | |
parent | e5c78e1a42fc7988cdbadb52208655d46f41d314 (diff) |
configure: make sysconfig directory configurable
This is currently hard-coded to /etc/sysconfig, which
makes it impossible to entirely install under a prefix.
This patch introduces a new switch --with-sysconfigdir
defaulting to /etc/sysconfig, which lets one reconfiure
the sysconfig directory.
Change-Id: I316f8355c3ddcfece3322f30a45108bdc636637d
Signed-off-by: Michael Adam <obnox@redhat.com>
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f19d2aa..750055b 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,12 @@ AC_ARG_WITH(systemddir, AC_SUBST(systemddir) AM_CONDITIONAL([USE_SYSTEMD], test [ -d '/usr/lib/systemd/system' ]) -AC_SUBST(sysconfigdir, '/etc/sysconfig') +AC_ARG_WITH(sysconfigdir, + AC_HELP_STRING([--with-sysconfigdir=DIR], + [system service configuration in DIR @<:@/etc/sysconfig@:>@]), + [sysconfigdir=$withval], + [sysconfigdir='/etc/sysconfig']) +AC_SUBST(sysconfigdir) AM_INIT_AUTOMAKE([-Wall -Werror foreign nostdinc silent-rules]) AC_CONFIG_HEADERS([config.h]) |