3 # Copyright (C) 1998-2001, 2003-2004, 2007, 2009-2015 Free Software Foundation,
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
12 dnl Define HAVE_STRUCT_UTIMBUF if 'struct utimbuf' is declared --
13 dnl usually in <utime.h>.
14 dnl Some systems have utime.h but don't declare the struct anywhere.
16 AC_DEFUN([gl_CHECK_TYPE_STRUCT_UTIMBUF],
18 AC_CHECK_HEADERS_ONCE([sys/time.h utime.h])
19 AC_CACHE_CHECK([for struct utimbuf], [gl_cv_sys_struct_utimbuf],
30 [[static struct utimbuf x; x.actime = x.modtime;]])],
31 [gl_cv_sys_struct_utimbuf=yes],
32 [gl_cv_sys_struct_utimbuf=no])])
34 if test $gl_cv_sys_struct_utimbuf = yes; then
35 AC_DEFINE([HAVE_STRUCT_UTIMBUF], [1],
36 [Define if struct utimbuf is declared -- usually in <utime.h>.
37 Some systems have utime.h but don't declare the struct anywhere. ])