diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index a886fbbd6..9eb38393e 100644 --- a/configure.in +++ b/configure.in | |||
@@ -106,6 +106,15 @@ case "$host" in | |||
106 | need_dash_r=1 | 106 | need_dash_r=1 |
107 | # hardwire lastlog location (can't detect it on some versions) | 107 | # hardwire lastlog location (can't detect it on some versions) |
108 | conf_lastlog_location="/var/adm/lastlog" | 108 | conf_lastlog_location="/var/adm/lastlog" |
109 | AC_MSG_CHECKING(for obsolete utmp and wtmp in solaris2.x) | ||
110 | sol2ver=`echo "$host"| sed -e 's/.*[[0-9]]\.//'` | ||
111 | if test "$sol2ver" -ge 8; then | ||
112 | AC_MSG_RESULT(yes) | ||
113 | AC_DEFINE(DISABLE_UTMP) | ||
114 | AC_DEFINE(DISABLE_WTMP) | ||
115 | else | ||
116 | AC_MSG_RESULT(no) | ||
117 | fi | ||
109 | ;; | 118 | ;; |
110 | *-*-sunos4*) | 119 | *-*-sunos4*) |
111 | CFLAGS="$CFLAGS -DSUNOS4" | 120 | CFLAGS="$CFLAGS -DSUNOS4" |