~ubuntu-branches/ubuntu/natty/diffutils/natty

« back to all changes in this revision

Viewing changes to m4/gnu-source.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2010-05-04 20:38:00 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100504203800-f67xd9rsa9xl9qqj
Tags: 1:3.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#serial 3
2
 
# Make sure _GNU_SOURCE is defined where necessary: as early as possible
3
 
# for configure-time tests, as well as for every source file that includes
4
 
# config.h.
5
 
 
6
 
# From Jim Meyering.
7
 
 
8
 
AC_DEFUN([AC__GNU_SOURCE],
9
 
[
10
 
  # Make sure that _GNU_SOURCE is defined for all subsequent
11
 
  # configure-time compile tests.
12
 
  # This definition must be emitted (into confdefs.h) before any
13
 
  # test that involves compilation.
14
 
  cat >>confdefs.h <<\EOF
15
 
#ifndef _GNU_SOURCE
16
 
# define _GNU_SOURCE
17
 
#endif
18
 
EOF
19
 
 
20
 
  # Emit this code into config.h.in.
21
 
  # The ifndef is to avoid redefinition warnings.
22
 
  AH_VERBATIM([_GNU_SOURCE], [#ifndef _GNU_SOURCE
23
 
# define _GNU_SOURCE
24
 
#endif])
25
 
])