2 # Check declarations for this package.
4 dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
5 dnl Free Software Foundation, Inc.
7 dnl This file is free software; the Free Software Foundation
8 dnl gives unlimited permission to copy and/or distribute it,
9 dnl with or without modifications, as long as this notice is preserved.
12 dnl This is just a wrapper function to encapsulate this kludge.
13 dnl Putting it in a separate file like this helps share it between
14 dnl different packages.
15 AC_DEFUN([gl_CHECK_DECLS],
17 AC_REQUIRE([_gl_DECL_HEADERS])
18 AC_REQUIRE([AC_HEADER_TIME])
26 #include <sys/types.h>
27 #if TIME_WITH_SYS_TIME
28 # include <sys/time.h>
32 # include <sys/time.h>
72 ttyname], , , $headers)
74 AC_CHECK_DECLS([isblank], [], [], [#include <ctype.h>])
77 dnl FIXME: when autoconf has support for it.
78 dnl This is a little helper so we can require these header checks.
79 AC_DEFUN([_gl_DECL_HEADERS],
81 AC_CHECK_HEADERS_ONCE(grp.h pwd.h sys/time.h utmp.h)