Skip to content

Commit

Permalink
Add gentoo-specific init dir
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
  • Loading branch information
maksbotan authored and sgallagher committed Sep 2, 2010
1 parent d921c1e commit 327127b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Expand Up @@ -69,6 +69,9 @@ AC_ARG_ENABLE([pammoddir], [AS_HELP_STRING([--enable-pammoddir],
[pammoddir=$libdir/security])
AC_SUBST(pammoddir)

#Include here cause WITH_INIT_DIR requires $osname set in platform.m4
m4_include([src/external/platform.m4])

m4_include(src/conf_macros.m4)
WITH_DB_PATH
WITH_PLUGIN_PATH
Expand All @@ -87,7 +90,6 @@ WITH_NSCD
WITH_SEMANAGE
WITH_LIBNL

m4_include([src/external/platform.m4])
m4_include([src/external/pkg.m4])
m4_include([src/external/libpopt.m4])
m4_include([src/external/libtalloc.m4])
Expand Down
3 changes: 3 additions & 0 deletions src/conf_macros.m4
Expand Up @@ -108,6 +108,9 @@ AC_DEFUN([WITH_INIT_DIR],
]
)
initdir="${sysconfdir}/rc.d/init.d"
if test x$osname == xgentoo; then
initdir="${sysconfdir}/init.d"
fi
if test x"$with_init_dir" != x; then
initdir=$with_init_dir
fi
Expand Down

0 comments on commit 327127b

Please sign in to comment.