| OLD | NEW |
| 1 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | 1 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- |
| 2 # | 2 # |
| 3 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software | 3 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. |
| 4 # Foundation, Inc. | |
| 5 # Written by Gary V. Vaughan, 2004 | 4 # Written by Gary V. Vaughan, 2004 |
| 6 # | 5 # |
| 7 # This file is free software; the Free Software Foundation gives | 6 # This file is free software; the Free Software Foundation gives |
| 8 # unlimited permission to copy and/or distribute it, with or without | 7 # unlimited permission to copy and/or distribute it, with or without |
| 9 # modifications, as long as this notice is preserved. | 8 # modifications, as long as this notice is preserved. |
| 10 | 9 |
| 11 # serial 6 ltsugar.m4 | 10 # serial 6 ltsugar.m4 |
| 12 | 11 |
| 13 # This is to help aclocal find these macros, as it can't see m4_define. | 12 # This is to help aclocal find these macros, as it can't see m4_define. |
| 14 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) | 13 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 27 m4_define([_lt_join], | 26 m4_define([_lt_join], |
| 28 [m4_if([$#$2], [2], [], | 27 [m4_if([$#$2], [2], [], |
| 29 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) | 28 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) |
| 30 | 29 |
| 31 | 30 |
| 32 # lt_car(LIST) | 31 # lt_car(LIST) |
| 33 # lt_cdr(LIST) | 32 # lt_cdr(LIST) |
| 34 # ------------ | 33 # ------------ |
| 35 # Manipulate m4 lists. | 34 # Manipulate m4 lists. |
| 36 # These macros are necessary as long as will still need to support | 35 # These macros are necessary as long as will still need to support |
| 37 # Autoconf-2.59, which quotes differently. | 36 # Autoconf-2.59 which quotes differently. |
| 38 m4_define([lt_car], [[$1]]) | 37 m4_define([lt_car], [[$1]]) |
| 39 m4_define([lt_cdr], | 38 m4_define([lt_cdr], |
| 40 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], | 39 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], |
| 41 [$#], 1, [], | 40 [$#], 1, [], |
| 42 [m4_dquote(m4_shift($@))])]) | 41 [m4_dquote(m4_shift($@))])]) |
| 43 m4_define([lt_unquote], $1) | 42 m4_define([lt_unquote], $1) |
| 44 | 43 |
| 45 | 44 |
| 46 # lt_append(MACRO-NAME, STRING, [SEPARATOR]) | 45 # lt_append(MACRO-NAME, STRING, [SEPARATOR]) |
| 47 # ------------------------------------------ | 46 # ------------------------------------------ |
| 48 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. | 47 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. |
| 49 # Note that neither SEPARATOR nor STRING are expanded; they are appended | 48 # 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). | 49 # 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 | 50 # No SEPARATOR is output if MACRO-NAME was previously undefined (different |
| 52 # than defined and empty). | 51 # than defined and empty). |
| 53 # | 52 # |
| 54 # This macro is needed until we can rely on Autoconf 2.62, since earlier | 53 # This macro is needed until we can rely on Autoconf 2.62, since earlier |
| 55 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | 54 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. |
| 56 m4_define([lt_append], | 55 m4_define([lt_append], |
| 57 [m4_define([$1], | 56 [m4_define([$1], |
| 58 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) | 57 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 114 |
| 116 | 115 |
| 117 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | 116 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) |
| 118 # -------------------------------------------------------------- | 117 # -------------------------------------------------------------- |
| 119 m4_define([lt_dict_filter], | 118 m4_define([lt_dict_filter], |
| 120 [m4_if([$5], [], [], | 119 [m4_if([$5], [], [], |
| 121 [lt_join(m4_quote(m4_default([$4], [[, ]])), | 120 [lt_join(m4_quote(m4_default([$4], [[, ]])), |
| 122 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shift
n(4, $@)]), | 121 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shift
n(4, $@)]), |
| 123 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])
))))])[]dnl | 122 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])
))))])[]dnl |
| 124 ]) | 123 ]) |
| OLD | NEW |