aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m413
1 files changed, 10 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 5ef1d60..3813ed8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -65,7 +65,7 @@ AC_DEFUN([AC_BBFW_INIT],[dnl
65 withval="" 65 withval=""
66 AC_ARG_WITH( 66 AC_ARG_WITH(
67 init, 67 init,
68 [AS_HELP_STRING([--with-init=type], [init system type of slackware, systemd, or init.d [default=auto]])], 68 [AS_HELP_STRING([--with-init=type], [init system type of init.d, openrc, slackware, or systemd [default=auto]])],
69 [ WINIT=$withval ], 69 [ WINIT=$withval ],
70 [ WINIT=$withval ] 70 [ WINIT=$withval ]
71 ) 71 )
@@ -84,6 +84,9 @@ AC_DEFUN([AC_BBFW_INIT],[dnl
84 elif test "x${WINIT}" == "xinit.d";then 84 elif test "x${WINIT}" == "xinit.d";then
85 ENABLE_INIT=init.d 85 ENABLE_INIT=init.d
86 ENABLE_INITD=yes 86 ENABLE_INITD=yes
87 elif test "x${WINIT}" == "xopenrc";then
88 ENABLE_INIT=OpenRC
89 ENABLE_OPENRC=yes
87 elif test "x${WINIT}" == "xslackware";then 90 elif test "x${WINIT}" == "xslackware";then
88 ENABLE_INIT=slackware 91 ENABLE_INIT=slackware
89 ENABLE_SLACKWARE=yes 92 ENABLE_SLACKWARE=yes
@@ -91,7 +94,7 @@ AC_DEFUN([AC_BBFW_INIT],[dnl
91 ENABLE_INIT=systemd 94 ENABLE_INIT=systemd
92 ENABLE_SYSTEMD=yes 95 ENABLE_SYSTEMD=yes
93 elif test ""x${WINIT}" != "xno" && test ""x${WINIT}" != "xyes" && test "x${WINIT}" != "x";then 96 elif test ""x${WINIT}" != "xno" && test ""x${WINIT}" != "xyes" && test "x${WINIT}" != "x";then
94 AC_MSG_ERROR([unknown init system, must be slackware, systemd, or init.d.]) 97 AC_MSG_ERROR([unknown init system, must be init.d, openrc, slackware, or systemd.])
95 fi 98 fi
96 99
97 # auto detects init system 100 # auto detects init system
@@ -99,6 +102,9 @@ AC_DEFUN([AC_BBFW_INIT],[dnl
99 if test -f /etc/slackware-version;then 102 if test -f /etc/slackware-version;then
100 ENABLE_INIT=slackware 103 ENABLE_INIT=slackware
101 ENABLE_SLACKWARE=yes 104 ENABLE_SLACKWARE=yes
105 elif test -f /sbin/openrc;then
106 ENABLE_INIT=OpenRC
107 ENABLE_OPENRC=yes
102 elif test -d "/etc/systemd/system/";then 108 elif test -d "/etc/systemd/system/";then
103 ENABLE_INIT=systemd 109 ENABLE_INIT=systemd
104 ENABLE_SYSTEMD=yes 110 ENABLE_SYSTEMD=yes
@@ -112,8 +118,9 @@ AC_DEFUN([AC_BBFW_INIT],[dnl
112 fi 118 fi
113 fi 119 fi
114 120
115 AM_CONDITIONAL([ENABLE_SLACKWARE], [test "x${ENABLE_SLACKWARE}" == "xyes"])
116 AM_CONDITIONAL([ENABLE_INITD], [test "x${ENABLE_INITD}" == "xyes"]) 121 AM_CONDITIONAL([ENABLE_INITD], [test "x${ENABLE_INITD}" == "xyes"])
122 AM_CONDITIONAL([ENABLE_OPENRC], [test "x${ENABLE_OPENRC}" == "xyes"])
123 AM_CONDITIONAL([ENABLE_SLACKWARE], [test "x${ENABLE_SLACKWARE}" == "xyes"])
117 AM_CONDITIONAL([ENABLE_SYSTEMD], [test "x${ENABLE_SYSTEMD}" == "xyes"]) 124 AM_CONDITIONAL([ENABLE_SYSTEMD], [test "x${ENABLE_SYSTEMD}" == "xyes"])
118])dnl 125])dnl
119 126