0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub HrozekAC_DEFUN([CHECK_SERVICE_EXECUTABLE],
b7b92bafe759854ad05038f1d48a69e358a7ccbfJakub Hrozek [ AC_PATH_PROG([SERVICE], [service], [], [/sbin:/usr/sbin])
0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub Hrozek AC_MSG_CHECKING(for the executable \"service\")
0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub Hrozek if test -x "$SERVICE"; then
0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub Hrozek AC_DEFINE(HAVE_SERVICE, 1, [Whether the service command is available])
0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub Hrozek AC_DEFINE_UNQUOTED([SERVICE_PATH], ["$SERVICE"], [The path to service])
0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub Hrozek AC_MSG_RESULT(yes)
0c1b38d1a86460a638fa0d97099a6eba10cfccf0Jakub Hrozek AC_MSG_RESULT([no])
a3cf63eab87fc34bd871c7bab0676c3a06558011Jakub Hrozek AC_MSG_WARN([the service executable is not available])