Changeset 3ca4d9c in git for m4/ax_compute_relative_paths.m4
- Timestamp:
- Nov 14, 2022, 12:24:38 PM (17 months ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 660715de78e3fdf9dcc3f9388b1a1c61ec1c2ec5
- Parents:
- f0d4bd4caae9db63763bba2f6c56156355628e8b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
m4/ax_compute_relative_paths.m4
rf0d4bd4 r3ca4d9c 1 # ============================================================================= =2 # http s://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html3 # ============================================================================= =1 # ============================================================================= 2 # http://www.gnu.org/software/autoconf-archive/ax_compute_relative_paths.html 3 # ============================================================================= 4 4 # 5 5 # SYNOPSIS … … 34 34 # encode $bin_to_data and try to determine $bindir at run-time. 35 35 # 36 # This macro requires AX_NORMALIZE_PATH and AX_RECURSIVE_EVAL.36 # This macro requires AX_NORMALIZE_PATH. 37 37 # 38 38 # LICENSE … … 51 51 # 52 52 # You should have received a copy of the GNU General Public License along 53 # with this program. If not, see <http s://www.gnu.org/licenses/>.53 # with this program. If not, see <http://www.gnu.org/licenses/>. 54 54 # 55 55 # As a special exception, the respective Autoconf Macro's copyright owner … … 66 66 # exception to the GPL to apply to your modified version as well. 67 67 68 #serial 1268 #serial 6 69 69 70 70 AU_ALIAS([ADL_COMPUTE_RELATIVE_PATHS], [AX_COMPUTE_RELATIVE_PATHS]) … … 96 96 dnl of $RESULT to that value. This function work on raw filenames 97 97 dnl (for instead it will considerate /usr//local and /usr/local as 98 dnl two distinct paths), you should really use AX_COMPUTE_RE LATIVE_PATHS98 dnl two distinct paths), you should really use AX_COMPUTE_REALTIVE_PATHS 99 99 dnl instead to have the paths sanitized automatically. 100 100 dnl … … 136 136 dnl AX_COMPUTE_SUFFIX_PATH(PATH, SUBPATH, RESULT) 137 137 dnl ============================================== 138 dnl Sub tract$SUBPATH from $PATH, and set the resulting suffix138 dnl Substrack $SUBPATH from $PATH, and set the resulting suffix 139 139 dnl (or the empty string if $SUBPATH is not a subpath of $PATH) 140 140 dnl to $RESULT. 141 141 dnl 142 dnl For insta nce:142 dnl For instace: 143 143 dnl first_path=/somewhere/on/my/disk/bin 144 144 dnl second_path=/somewhere/on … … 173 173 done]) 174 174 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.