~ubuntu-branches/ubuntu/oneiric/postgis/oneiric-proposed

« back to all changes in this revision

Viewing changes to macros/ltsugar.m4

  • Committer: Bazaar Package Importer
  • Author(s): Alan Boudreault
  • Date: 2010-09-29 09:16:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100929091610-vj4efw8woq34hdn7
Tags: 1.5.2-1
* New upstream release, with a few bug fixes.
* Added shp2pgsql-gui binary.
* Removed patches, applied upstream: getopt.    

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
2
2
#
3
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
4
 
#   Written by Gary V. Vaughan, 2004
 
3
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
4
# Written by Gary V. Vaughan, 2004
5
5
#
6
6
# This file is free software; the Free Software Foundation gives
7
7
# unlimited permission to copy and/or distribute it, with or without
8
8
# modifications, as long as this notice is preserved.
9
9
 
10
 
# serial 5 ltsugar.m4
 
10
# serial 6 ltsugar.m4
11
11
 
12
12
# This is to help aclocal find these macros, as it can't see m4_define.
13
13
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
63
63
# Produce a SEP delimited list of all paired combinations of elements of
64
64
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
65
65
# has the form PREFIXmINFIXSUFFIXn.
 
66
# Needed until we can rely on m4_combine added in Autoconf 2.62.
66
67
m4_define([lt_combine],
67
 
[m4_if([$2], [], [],
68
 
  [m4_if([$4], [], [],
69
 
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
70
 
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
71
 
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
72
 
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
73
 
])
 
68
[m4_if(m4_eval([$# > 3]), [1],
 
69
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
70
[[m4_foreach([_Lt_prefix], [$2],
 
71
             [m4_foreach([_Lt_suffix],
 
72
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
73
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
74
74
 
75
75
 
76
76
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])