4 dnl test for POSIX (broken) getlogin
8 AC_DEFUN([AC_FUNC_GETLOGIN], [
9 AC_CHECK_FUNCS(getlogin setlogin)
10 if test "$ac_cv_func_getlogin" = yes; then
11 AC_CACHE_CHECK(if getlogin is posix, ac_cv_func_getlogin_posix, [
12 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
13 ac_cv_func_getlogin_posix=no
15 ac_cv_func_getlogin_posix=yes
18 if test "$ac_cv_func_getlogin_posix" = yes; then
19 AC_DEFINE(POSIX_GETLOGIN, 1, [Define if getlogin has POSIX flavour (and not BSD).])