build: fix configure bug for detecting libaudit support
authorThomas Haller <thaller@redhat.com>
Tue, 4 Aug 2015 12:04:55 +0000 (14:04 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 4 Aug 2015 12:15:27 +0000 (14:15 +0200)
Fixes: c4c0bbb28c9c75d14e2a03d713723afb8d395ccb

configure.ac

index 5c0d487..9caea8b 100644 (file)
@@ -496,7 +496,7 @@ fi
 
 # libaudit support
 AC_ARG_WITH(libaudit, AS_HELP_STRING([--with-libaudit=yes|yes-disabled-by-default|no|auto], [Build with audit daemon support (default: auto). yes-disabled-by-default enables support, but disables it unless explicitly configured via NetworkManager.conf]),,[with_libaudit=auto])
-if test "$with_libaudit" = "yes" -o test "$with_libaudit" = "yes-disabled-by-default"-o "$with_libaudit" = "auto"; then
+if test "$with_libaudit" = "yes" -o "$with_libaudit" = "yes-disabled-by-default" -o "$with_libaudit" = "auto"; then
     PKG_CHECK_MODULES(LIBAUDIT, audit, [have_libaudit=yes], [have_libaudit=no])
     if test "$with_libaudit" != "auto" -a "$have_libaudit" = "no"; then
         AC_MSG_ERROR([You must have libaudit installed to build --with-libaudit=$with_libaudit.])
@@ -1134,7 +1134,7 @@ echo "  polkit agent: ${enable_polkit_agent}"
 echo "  selinux: $have_selinux"
 echo "  systemd-journald: $have_systemd_journal (logging.backend: ${nm_config_logging_backend_default})"
 echo "  hostname persist: ${hostname_persist}"
-echo "  libaudit: $have_libaudit"
+echo "  libaudit: $have_libaudit (default: logging.audit=${NM_CONFIG_DEFAULT_LOGGING_AUDIT_TEXT})"
 echo
 
 echo "Features:"