AIX 5.1 has <utmpx.h> but no updwtmpx(). Treat the latter as a reason to
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 14 Sep 2005 11:00:34 +0000 (11:00 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Wed, 14 Sep 2005 11:00:34 +0000 (11:00 +0000)
OMIT_UTMP.  Reported by Mike Protts.

git-svn-id: svn://svn.tartarus.org/sgt/putty@6311 cda61777-01e9-0310-a592-d414129be87e

unix/configure.ac

index 40e6d56..5b0c0c9 100644 (file)
@@ -23,7 +23,7 @@ AC_SUBST([all_targets])
 
 AC_SEARCH_LIBS([socket], [xnet])
 
-AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal])
+AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx])
 
 AC_OUTPUT
 
@@ -39,7 +39,7 @@ AH_BOTTOM([
 #ifndef HAVE_STRSIGNAL
 # define HAVE_NO_STRSIGNAL
 #endif
-#ifndef HAVE_UTMPX_H
+#if !defined(HAVE_UTMPX_H) || !defined(HAVE_UPDWTMPX)
 # define OMIT_UTMP
 #endif
 #ifndef HAVE_PTSNAME