diff --git a/configure.ac b/configure.ac index 4149e20d93..f5cb1c33e4 100644 --- a/configure.ac +++ b/configure.ac @@ -634,7 +634,15 @@ if test "$with_init_script" = check; then if test "$cross_compiling" = yes; then with_init_script=none fi + if type systemctl >/dev/null 2>&1; then + if test "$with_init_script" = check; then + with_init_script=systemd + fi + fi if test -f /etc/redhat-release; then + if test "$with_init_script" = systemd; then + with_init_script=systemd+redhat + fi if test "$with_init_script" = check; then with_init_script=redhat fi