diff options
| author | ivan <ivan> | 2003-07-15 13:16:32 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2003-07-15 13:16:32 +0000 |
| commit | 0ebeec96313dd7edfca340f01f8fbbbac1f4aa1d (patch) | |
| tree | 64e852c61cbf09007d52cd6978bfddea721d00d2 /rt/m4/rt_expand_var.m4 | |
| parent | c0567c688084e89fcd11bf82348b6c418f1254ac (diff) | |
| parent | 945721f48f74d5cfffef7c7cf3a3d6bc2521f5dd (diff) | |
This commit was generated by cvs2svn to compensate for changes in r2526,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/m4/rt_expand_var.m4')
| -rw-r--r-- | rt/m4/rt_expand_var.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rt/m4/rt_expand_var.m4 b/rt/m4/rt_expand_var.m4 new file mode 100644 index 000000000..cec884abc --- /dev/null +++ b/rt/m4/rt_expand_var.m4 @@ -0,0 +1,18 @@ +dnl +dnl @synopsis RT_EXPAND_VAR(baz, $fraz) +dnl +dnl Iteratively expands the second parameter, until successive iterations +dnl yield no change. The result is then assigned to the first parameter. +dnl +dnl This code is heavily borrowed from the Apache 2 codebase. +dnl + +AC_DEFUN([RT_EXPAND_VAR],[ + ap_last='' + ap_cur='$2' + while test "x${ap_cur}" != "x${ap_last}"; do + ap_last="${ap_cur}" + ap_cur=`eval "echo ${ap_cur}"` + done + $1="${ap_cur}" +]) |
