1999-01-20 07:59:39 +03:00
|
|
|
require 'mkmf'
|
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
have_library("sun", "getpwnam") # NIS (== YP) interface for IRIX 4
|
|
|
|
a = have_func("getlogin")
|
|
|
|
b = have_func("getpwent")
|
|
|
|
c = have_func("getgrent")
|
|
|
|
if a or b or c
|
2002-09-08 14:00:43 +04:00
|
|
|
have_struct_member('struct passwd', 'pw_gecos', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_change', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_quota', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_age', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_class', 'pwd.h')
|
|
|
|
have_struct_member('struct passwd', 'pw_comment', 'pwd.h') unless /cygwin/ === RUBY_PLATFORM
|
|
|
|
have_struct_member('struct passwd', 'pw_expire', 'pwd.h')
|
2003-11-24 13:42:17 +03:00
|
|
|
have_struct_member('struct passwd', 'pw_passwd', 'pwd.h')
|
|
|
|
have_struct_member('struct group', 'gr_passwd', 'grp.h')
|
1998-01-16 15:13:05 +03:00
|
|
|
create_makefile("etc")
|
|
|
|
end
|