|
Lines 3302-3307
OSSH_CHECK_HEADER_FOR_FIELD([ut_time], [
Link Here
|
| 3302 |
OSSH_CHECK_HEADER_FOR_FIELD([ut_tv], [utmpx.h], [HAVE_TV_IN_UTMPX]) |
3302 |
OSSH_CHECK_HEADER_FOR_FIELD([ut_tv], [utmpx.h], [HAVE_TV_IN_UTMPX]) |
| 3303 |
|
3303 |
|
| 3304 |
AC_CHECK_MEMBERS([struct stat.st_blksize]) |
3304 |
AC_CHECK_MEMBERS([struct stat.st_blksize]) |
|
|
3305 |
AC_CHECK_MEMBERS([ |
| 3306 |
struct passwd.pw_gecos, |
| 3307 |
struct passwd.pw_class, |
| 3308 |
struct passwd.pw_change, |
| 3309 |
struct passwd.pw_expire |
| 3310 |
], [], [], [ |
| 3311 |
#include <sys/types.h> |
| 3312 |
#include <pwd.h> |
| 3313 |
]) |
| 3314 |
|
| 3305 |
AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [state], |
3315 |
AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [state], |
| 3306 |
[Define if we don't have struct __res_state in resolv.h])], |
3316 |
[Define if we don't have struct __res_state in resolv.h])], |
| 3307 |
[ |
3317 |
[ |
|
Lines 3340-3384
AC_CACHE_CHECK([for __ss_family field in
Link Here
|
| 3340 |
if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
3350 |
if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
| 3341 |
AC_DEFINE([HAVE___SS_FAMILY_IN_SS], [1], |
3351 |
AC_DEFINE([HAVE___SS_FAMILY_IN_SS], [1], |
| 3342 |
[Fields in struct sockaddr_storage]) |
3352 |
[Fields in struct sockaddr_storage]) |
| 3343 |
fi |
|
|
| 3344 |
|
| 3345 |
AC_CACHE_CHECK([for pw_class field in struct passwd], |
| 3346 |
ac_cv_have_pw_class_in_struct_passwd, [ |
| 3347 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], |
| 3348 |
[[ struct passwd p; p.pw_class = 0; ]])], |
| 3349 |
[ ac_cv_have_pw_class_in_struct_passwd="yes" ], |
| 3350 |
[ ac_cv_have_pw_class_in_struct_passwd="no" |
| 3351 |
]) |
| 3352 |
]) |
| 3353 |
if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then |
| 3354 |
AC_DEFINE([HAVE_PW_CLASS_IN_PASSWD], [1], |
| 3355 |
[Define if your password has a pw_class field]) |
| 3356 |
fi |
| 3357 |
|
| 3358 |
AC_CACHE_CHECK([for pw_expire field in struct passwd], |
| 3359 |
ac_cv_have_pw_expire_in_struct_passwd, [ |
| 3360 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], |
| 3361 |
[[ struct passwd p; p.pw_expire = 0; ]])], |
| 3362 |
[ ac_cv_have_pw_expire_in_struct_passwd="yes" ], |
| 3363 |
[ ac_cv_have_pw_expire_in_struct_passwd="no" |
| 3364 |
]) |
| 3365 |
]) |
| 3366 |
if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then |
| 3367 |
AC_DEFINE([HAVE_PW_EXPIRE_IN_PASSWD], [1], |
| 3368 |
[Define if your password has a pw_expire field]) |
| 3369 |
fi |
| 3370 |
|
| 3371 |
AC_CACHE_CHECK([for pw_change field in struct passwd], |
| 3372 |
ac_cv_have_pw_change_in_struct_passwd, [ |
| 3373 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <pwd.h> ]], |
| 3374 |
[[ struct passwd p; p.pw_change = 0; ]])], |
| 3375 |
[ ac_cv_have_pw_change_in_struct_passwd="yes" ], |
| 3376 |
[ ac_cv_have_pw_change_in_struct_passwd="no" |
| 3377 |
]) |
| 3378 |
]) |
| 3379 |
if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then |
| 3380 |
AC_DEFINE([HAVE_PW_CHANGE_IN_PASSWD], [1], |
| 3381 |
[Define if your password has a pw_change field]) |
| 3382 |
fi |
3353 |
fi |
| 3383 |
|
3354 |
|
| 3384 |
dnl make sure we're using the real structure members and not defines |
3355 |
dnl make sure we're using the real structure members and not defines |