~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/flexmember.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# serial 2
 
1
# serial 3
2
2
# Check for flexible array member support.
3
3
 
4
 
# Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc.
 
4
# Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
28
28
  if test $ac_cv_c_flexmember = yes; then
29
29
    AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [],
30
30
      [Define to nothing if C supports flexible array members, and to
31
 
       1 if it does not.  That way, with a declaration like `struct s
 
31
       1 if it does not.  That way, with a declaration like 'struct s
32
32
       { int n; double d@<:@FLEXIBLE_ARRAY_MEMBER@:>@; };', the struct hack
33
33
       can be used with pre-C99 compilers.
34
34
       When computing the size of such an object, don't use 'sizeof (struct s)'