Ignore:
Timestamp:
Nov 14, 2022, 11:23:41 AM (17 months ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
53bb34c61620c64ea3918faddfdebe69fb462864
Parents:
5416d13394a558a137ad68ab6bb7241079911448
Message:
update m4/ax_*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/ax_compute_relative_paths.m4

    r5416d1 r96fc67  
    1 # =============================================================================
    2 #  http://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
    3 # =============================================================================
     1# ==============================================================================
     2#  https://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html
     3# ==============================================================================
    44#
    55# SYNOPSIS
     
    3434#   encode $bin_to_data and try to determine $bindir at run-time.
    3535#
    36 #   This macro requires AX_NORMALIZE_PATH.
     36#   This macro requires AX_NORMALIZE_PATH and AX_RECURSIVE_EVAL.
    3737#
    3838# LICENSE
     
    5151#
    5252#   You should have received a copy of the GNU General Public License along
    53 #   with this program. If not, see <http://www.gnu.org/licenses/>.
     53#   with this program. If not, see <https://www.gnu.org/licenses/>.
    5454#
    5555#   As a special exception, the respective Autoconf Macro's copyright owner
     
    6666#   exception to the GPL to apply to your modified version as well.
    6767
    68 #serial 6
     68#serial 12
    6969
    7070AU_ALIAS([ADL_COMPUTE_RELATIVE_PATHS], [AX_COMPUTE_RELATIVE_PATHS])
     
    9696dnl of $RESULT to that value.  This function work on raw filenames
    9797dnl (for instead it will considerate /usr//local and /usr/local as
    98 dnl two distinct paths), you should really use AX_COMPUTE_REALTIVE_PATHS
     98dnl two distinct paths), you should really use AX_COMPUTE_RELATIVE_PATHS
    9999dnl instead to have the paths sanitized automatically.
    100100dnl
     
    136136dnl AX_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT)
    137137dnl ==============================================
    138 dnl Substrack $SUBPATH from $PATH, and set the resulting suffix
     138dnl Subtract $SUBPATH from $PATH, and set the resulting suffix
    139139dnl (or the empty string if $SUBPATH is not a subpath of $PATH)
    140140dnl to $RESULT.
    141141dnl
    142 dnl For instace:
     142dnl For instance:
    143143dnl    first_path=/somewhere/on/my/disk/bin
    144144dnl    second_path=/somewhere/on
     
    173173done])
    174174
    175 
    176 dnl AX_RECURSIVE_EVAL(VALUE, RESULT)
    177 dnl =================================
    178 dnl Interpolate the VALUE in loop until it doesn't change,
    179 dnl and set the result to $RESULT.
    180 dnl WARNING: It's easy to get an infinite loop with some unsane input.
    181 AC_DEFUN([AX_RECURSIVE_EVAL],
    182 [_lcl_receval="$1"
    183 $2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
    184      test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
    185      _lcl_receval_old=''
    186      while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do
    187        _lcl_receval_old="[$]_lcl_receval"
    188        eval _lcl_receval="\"[$]_lcl_receval\""
    189      done
    190      echo "[$]_lcl_receval")`])
Note: See TracChangeset for help on using the changeset viewer.