summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-09-16 14:18:49 -0400
committerRobert Ancell <robert.ancell@canonical.com>2015-09-16 14:18:49 -0400
commit07bef881dad1c0da68df62141eca902d3b5c728d (patch)
treef088fac8168b037209c734583a9a8f1dc834cdcc
parent15ba72574090648c628ed6406ca315423a1a3f14 (diff)
downloadlightdm-git-07bef881dad1c0da68df62141eca902d3b5c728d.tar.gz
Log at configure time if libaudit is being used
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f9f6ebef..1796c4ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,9 +152,11 @@ AC_ARG_ENABLE([audit],
[Enable audit logging of login and logout events [[default=auto]]]),
[enable_audit=$enableval],
[enable_audit=auto])
+use_libaudit=no
if test x"$enable_audit" != "xno"; then
AC_CHECK_LIB([audit], [audit_log_user_message],
- [AC_DEFINE(HAVE_LIBAUDIT, 1, [libaudit support])
+ [use_libaudit=yes
+ AC_DEFINE(HAVE_LIBAUDIT, 1, [libaudit support])
LIGHTDM_LIBS="${LIGHTDM_LIBS} -laudit"
],
[if test "x$enable_audit" != xauto; then
@@ -260,5 +262,6 @@ echo "
GObject introspection: $found_introspection
liblightdm-qt: $compile_liblightdm_qt4
liblightdm-qt5: $compile_liblightdm_qt5
+ libaudit support: $use_libaudit
Enable tests: $enable_tests
"