diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-19 19:14:04 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-19 19:14:04 +1100 |
commit | 36fb30f6dd11515087e6298cb17e96a3f2f5b679 (patch) | |
tree | e7edfad23052bbd9e9988b26aa906fc95dfdfdd9 /configure.in | |
parent | 01c114cc800b9a7785186610c9a9553258fbe8ff (diff) |
Die if lastlog not found
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 697784c6d..649c789dc 100644 --- a/configure.in +++ b/configure.in | |||
@@ -158,11 +158,15 @@ dnl Look for lastlog location | |||
158 | AC_MSG_CHECKING([location of lastlog file]) | 158 | AC_MSG_CHECKING([location of lastlog file]) |
159 | for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do | 159 | for lastlog in /var/log/lastlog /var/adm/lastlog /etc/security/lastlog ; do |
160 | if test -f $lastlog ; then | 160 | if test -f $lastlog ; then |
161 | gotlastlog="yes" | ||
161 | AC_MSG_RESULT($lastlog) | 162 | AC_MSG_RESULT($lastlog) |
162 | AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog") | 163 | AC_DEFINE_UNQUOTED(LASTLOG_LOCATION, "$lastlog") |
163 | break | 164 | break |
164 | fi | 165 | fi |
165 | done | 166 | done |
167 | if test -z "$gotlastlog" ; then | ||
168 | AC_MSG_ERROR([*** Cannot find lastlog ***]) | ||
169 | fi | ||
166 | 170 | ||
167 | AC_MSG_CHECKING([whether libc defines __progname]) | 171 | AC_MSG_CHECKING([whether libc defines __progname]) |
168 | AC_TRY_LINK([], | 172 | AC_TRY_LINK([], |