~ubuntu-branches/ubuntu/vivid/gss/vivid-proposed

« back to all changes in this revision

Viewing changes to gl/m4/00gnulib.m4

  • Committer: Package Import Robot
  • Author(s): Simon Josefsson
  • Date: 2014-10-09 15:51:38 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20141009155138-50b2mr1qsqcln38w
Tags: 1.0.3-1
* New upstream version.
  - Drop unnecessary Debian patches.
* Update standards version to 3.9.6.
* Improve copyright file.
* Use DEP3 patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# 00gnulib.m4 serial 2
2
 
dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 
1
# 00gnulib.m4 serial 3
 
2
dnl Copyright (C) 2009-2014 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
6
6
 
7
7
dnl This file must be named something that sorts before all other
8
8
dnl gnulib-provided .m4 files.  It is needed until such time as we can
9
 
dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE semantics.
 
9
dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE and
 
10
dnl m4_divert semantics.
 
11
 
 
12
# Until autoconf 2.63, handling of the diversion stack required m4_init
 
13
# to be called first; but this does not happen with aclocal.  Wrapping
 
14
# the entire execution in another layer of the diversion stack fixes this.
 
15
# Worse, prior to autoconf 2.62, m4_wrap depended on the underlying m4
 
16
# for whether it was FIFO or LIFO; in order to properly balance with
 
17
# m4_init, we need to undo our push just before anything wrapped within
 
18
# the m4_init body.  The way to ensure this is to wrap both sides of
 
19
# m4_init with a one-shot macro that does the pop at the right time.
 
20
m4_ifndef([_m4_divert_diversion],
 
21
[m4_divert_push([KILL])
 
22
m4_define([gl_divert_fixup], [m4_divert_pop()m4_define([$0])])
 
23
m4_define([m4_init],
 
24
  [gl_divert_fixup()]m4_defn([m4_init])[gl_divert_fixup()])])
 
25
 
10
26
 
11
27
# AC_DEFUN_ONCE([NAME], VALUE)
12
28
# ----------------------------