source: trunk/essentials/app-arch/tar/m4/getdate.m4

Last change on this file was 3342, checked in by bird, 18 years ago

tar 1.16.1

File size: 1.0 KB
Line 
1# getdate.m4 serial 12
2dnl Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_C_COMPOUND_LITERALS],
8[
9 AC_CACHE_CHECK([for compound literals], gl_cv_compound_literals,
10 [AC_TRY_COMPILE([struct s { int i, j; }; struct s s = (struct s) { 1, 2 };],
11 [struct s t = (struct s) { 3, 4 };
12 if (t.i != 0) return 0;],
13 gl_cv_compound_literals=yes,
14 gl_cv_compound_literals=no)])
15 if test $gl_cv_compound_literals = yes; then
16 AC_DEFINE(HAVE_COMPOUND_LITERALS, 1,
17 [Define if you have compound literals.])
18 fi
19])
20
21AC_DEFUN([gl_GETDATE],
22[
23 dnl Prerequisites of lib/getdate.h.
24 AC_REQUIRE([AM_STDBOOL_H])
25 AC_REQUIRE([gl_TIMESPEC])
26
27 dnl Prerequisites of lib/getdate.y.
28 AC_REQUIRE([gl_BISON])
29 AC_REQUIRE([gl_C_COMPOUND_LITERALS])
30 AC_STRUCT_TIMEZONE
31 AC_REQUIRE([gl_CLOCK_TIME])
32 AC_REQUIRE([gl_TM_GMTOFF])
33])
Note: See TracBrowser for help on using the repository browser.