Commit f034fe8c authored by Niels Möller's avatar Niels Möller

Disable utmp support if pututline is not available.

Rev: configure.ac:1.73
parent b7958010
......@@ -167,11 +167,6 @@ AC_ARG_ENABLE(utmp,
AC_HELP_STRING([--disable-utmp], [Disable utmp and wtmp support]),,
[enable_utmp=yes])
AH_TEMPLATE([WITH_UTMP], [For utmp support])
if test x$enable_utmp = xyes ; then
AC_DEFINE(WITH_UTMP)
fi
AC_ARG_WITH(include-path,
AC_HELP_STRING([--with-include-path], [A colon-separated list of directories to search for include files]),,
[with_include_path=''])
......@@ -271,6 +266,11 @@ dnl AC_CHECK_MEMBERS, but we can check for sub members. Leave the
dnl ut_tv check for clarity.
if test x$have_utmp_h = xyes; then
# Currently, no support for pure bsd systems where login(3) and
# friends are the only library functions for updating the utmp and
# wtmp data. FIXME: Don't do this if we're going to use the the utmpx
# functions instead.
AC_CHECK_FUNC([pututline],,[enable_utmp=no])
AC_CHECK_MEMBERS([struct utmp.ut_host,
struct utmp.ut_name,
struct utmp.ut_user,
......@@ -319,6 +319,11 @@ if test x$have_utmpx_h = xyes; then
])
fi
AH_TEMPLATE([WITH_UTMP], [For utmp support])
if test x$enable_utmp = xyes ; then
AC_DEFINE(WITH_UTMP)
fi
AH_TEMPLATE([WITH_GSS_K5], [Whether to use gss K5 authorization (Heimdal/MIT)])
if test x$enable_gss != xno; then
if test x$enable_gss = xk5; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment