ltsugar.m4 (246e7a2b6494cd991b08ac669ed761ecea0cc98c) | ltsugar.m4 (d38c30c092828f4882ce13b08d0bd3fd6dc7afb5) |
---|---|
1# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 2# | 1# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 2# |
3# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | 3# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 4# Foundation, Inc. |
4# Written by Gary V. Vaughan, 2004 5# 6# This file is free software; the Free Software Foundation gives 7# unlimited permission to copy and/or distribute it, with or without 8# modifications, as long as this notice is preserved. 9 10# serial 6 ltsugar.m4 11 --- 16 unchanged lines hidden (view full) --- 28 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 29 30 31# lt_car(LIST) 32# lt_cdr(LIST) 33# ------------ 34# Manipulate m4 lists. 35# These macros are necessary as long as will still need to support | 5# Written by Gary V. Vaughan, 2004 6# 7# This file is free software; the Free Software Foundation gives 8# unlimited permission to copy and/or distribute it, with or without 9# modifications, as long as this notice is preserved. 10 11# serial 6 ltsugar.m4 12 --- 16 unchanged lines hidden (view full) --- 29 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 30 31 32# lt_car(LIST) 33# lt_cdr(LIST) 34# ------------ 35# Manipulate m4 lists. 36# These macros are necessary as long as will still need to support |
36# Autoconf-2.59 which quotes differently. | 37# Autoconf-2.59, which quotes differently. |
37m4_define([lt_car], [[$1]]) 38m4_define([lt_cdr], 39[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 40 [$#], 1, [], 41 [m4_dquote(m4_shift($@))])]) 42m4_define([lt_unquote], $1) 43 44 45# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 46# ------------------------------------------ | 38m4_define([lt_car], [[$1]]) 39m4_define([lt_cdr], 40[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 41 [$#], 1, [], 42 [m4_dquote(m4_shift($@))])]) 43m4_define([lt_unquote], $1) 44 45 46# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 47# ------------------------------------------ |
47# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | 48# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. |
48# Note that neither SEPARATOR nor STRING are expanded; they are appended 49# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 50# No SEPARATOR is output if MACRO-NAME was previously undefined (different 51# than defined and empty). 52# 53# This macro is needed until we can rely on Autoconf 2.62, since earlier 54# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 55m4_define([lt_append], --- 68 unchanged lines hidden --- | 49# Note that neither SEPARATOR nor STRING are expanded; they are appended 50# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 51# No SEPARATOR is output if MACRO-NAME was previously undefined (different 52# than defined and empty). 53# 54# This macro is needed until we can rely on Autoconf 2.62, since earlier 55# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 56m4_define([lt_append], --- 68 unchanged lines hidden --- |