X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=configure.ac;h=8450bbcd5ba1753c6d67e2b9200a6c46adae1eff;hp=a327e2c394a7fbf5f44d53469e0392f199f82dfc;hb=0d34aec56cd175cb1ac3722e3d9da7c49cf52113;hpb=c6edc23d5f8a483e93a891bf7eb76b5f4caf2fb4 diff --git a/configure.ac b/configure.ac index a327e2c39..8450bbcd5 100644 --- a/configure.ac +++ b/configure.ac @@ -420,6 +420,16 @@ AC_ARG_WITH([udevbindir], [with_udevbindir=$($PKG_CONFIG --variable=udevdir udev)]) AC_SUBST([udevbindir], [$with_udevbindir]) +# ------------------------------------------------------------------------------ +have_utmp=yes +AC_ARG_ENABLE([utmp], AS_HELP_STRING([--disable-utmp], [disable utmp/wtmp log handling]), + AS_CASE("x${enableval}", + [xyes], [have_utmp=yes], + [xno], [have_utmp=no], + AC_MSG_ERROR(bad value ${enableval} for --enable-utmp))) +AS_IF([test "x$have_utmp" = "xyes"], [AC_DEFINE(HAVE_UTMP, 1, [Define if utmp/wtmp support is enabled])]) +AM_CONDITIONAL([HAVE_UTMP], [test "x$have_utmp" = "xyes"]) + # ------------------------------------------------------------------------------ have_coverage=no AC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage])) @@ -783,6 +793,7 @@ AC_MSG_RESULT([ man pages: ${have_manpages} test coverage: ${have_coverage} Split /usr: ${enable_split_usr} + utmp/wtmp support: ${have_utmp} Link time optimization: ${have_lto} extra debugging: ${enable_debug} cgroup controller: ${with_cgroupctrl}