File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -751,16 +751,17 @@ AC_ARG_ENABLE(
751
751
# systemd support
752
752
AC_ARG_ENABLE (
753
753
[ systemd] ,
754
- [ AS_HELP_STRING ( [ --enable -systemd] , [ Enable systemd support] ) ] )
754
+ [ AS_HELP_STRING ( [ --disable -systemd] , [ Disable systemd support] ) ] )
755
755
756
756
have_libsystemd="no"
757
- AS_IF ( [ test "x$enable_systemd" = "xyes "] ,
757
+ AS_IF ( [ test "x$enable_systemd" ! = "xno "] ,
758
758
[ PKG_CHECK_MODULES([ libsystemd] , [ libsystemd >= 38] , [ have_libsystemd="yes"] )
759
759
AC_CHECK_HEADER ( [ systemd/sd-daemon.h] , [ ] ,
760
760
[ have_libsystemd="no"
761
- AC_MSG_ERROR ( [ can't find systemd/sd-daemon.h necessary for systemd support ] ) ] )
761
+ AC_MSG_WARN ( [ disabling systemd support: can't find systemd/sd-daemon.h] ) ] )
762
762
AC_CHECK_FUNC ( [ strerror_r] , [ ] ,
763
- [ AC_MSG_ERROR ( [ can't find strerror_r necessary for systemd support] ) ] ) ] )
763
+ [ have_libsystemd="no"
764
+ AC_MSG_WARN ( [ disabling systemd support: can't find strerror_r] ) ] ) ] )
764
765
765
766
AS_IF ( [ test "x$have_libsystemd" = xyes] ,
766
767
[ AC_DEFINE ( [ HAVE_LIBSYSTEMD] , [ 1] ,
You can’t perform that action at this time.
0 commit comments