aboutsummaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index cf0fd92..696f6f2 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -33,3 +33,21 @@ AC_DEFUN(AF_SLOPPY_MOUNT,
AC_MSG_RESULT(no)
fi
fi])
+
+dnl --------------------------------------------------------------------------
+dnl AF_INIT_D
+dnl
+dnl Check the location of the init.d directory
+dnl --------------------------------------------------------------------------
+AC_DEFUN(AF_INIT_D,
+[if test -z "$initdir"; then
+ AC_MSG_CHECKING([location of the init.d directory])
+ for init_d in /etc/init.d /etc/rc.d/init.d; do
+ if test -z "$initdir"; then
+ if test -d "$init_d"; then
+ initdir="$init_d"
+ AC_MSG_RESULT($initdir)
+ fi
+ fi
+ done
+fi])