2 # Check declarations for this package.
4 dnl Copyright (C) 1997-2012 Free Software Foundation, Inc.
6 dnl This file is free software; the Free Software Foundation
7 dnl gives unlimited permission to copy and/or distribute it,
8 dnl with or without modifications, as long as this notice is preserved.
11 dnl This is just a wrapper function to encapsulate this kludge.
12 dnl Putting it in a separate file like this helps share it between
13 dnl different packages.
14 AC_DEFUN([gl_CHECK_DECLS],
16 AC_REQUIRE([AC_HEADER_TIME])
18 AC_CHECK_HEADERS_ONCE([grp.h pwd.h])
20 #include <sys/types.h>
35 ttyname], , , $headers)
37 AC_CHECK_DECLS_ONCE([geteuid])
38 AC_CHECK_DECLS_ONCE([getlogin])
39 AC_CHECK_DECLS_ONCE([getuid])