-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update x_ac_expand_install_dirs.m4
Problem: autoconf macro does not expand runstatedir. Pull in the modified version from flux-framework/flux-core, along with the adl_RECURSIVE_EVAL() macro, which it requires.
- Loading branch information
Showing
2 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
dnl | ||
dnl Unknown origin, but was presumably part of autoconf-archive at | ||
dnl some point in the past. | ||
dnl | ||
dnl adl_RECURSIVE_EVAL(VALUE, RESULT) | ||
dnl ================================= | ||
dnl Interpolate the VALUE in loop until it doesn't change, | ||
dnl and set the result to $RESULT. | ||
dnl WARNING: It's easy to get an infinite loop with some unsane input. | ||
AC_DEFUN([adl_RECURSIVE_EVAL], | ||
[_lcl_receval="$1" | ||
$2=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | ||
_lcl_receval_old='' | ||
while test "[$]_lcl_receval_old" != "[$]_lcl_receval"; do | ||
_lcl_receval_old="[$]_lcl_receval" | ||
eval _lcl_receval="\"[$]_lcl_receval\"" | ||
done | ||
echo "[$]_lcl_receval")`]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters