--- configure.orig 2014-03-15 15:02:28.000000000 +0100 +++ configure 2014-03-15 15:03:01.000000000 +0100 @@ -14527,6 +14527,18 @@ done +for ac_func in fgetpwent +do : + ac_fn_c_check_func "$LINENO" "fgetpwent" "ac_cv_func_fgetpwent" +if test "x$ac_cv_func_fgetpwent" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_FGETPWENT 1 +_ACEOF + +fi +done + +