|
Revision 1334, 1.1 kB
(checked in by thomasvs, 4 years ago)
|
- autogen.sh:
- m4/as-ac-expand.m4:
add m4 dir and use it
add an expand macro
- configure.ac:
uniformize configure's output across the annodex stack
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
AC_DEFUN([AS_AC_EXPAND], |
|---|
| 11 |
[ |
|---|
| 12 |
EXP_VAR=[$1] |
|---|
| 13 |
FROM_VAR=[$2] |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
prefix_save=$prefix |
|---|
| 17 |
exec_prefix_save=$exec_prefix |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
if test "x$prefix" = "xNONE"; then |
|---|
| 21 |
prefix="$ac_default_prefix" |
|---|
| 22 |
fi |
|---|
| 23 |
|
|---|
| 24 |
if test "x$exec_prefix" = "xNONE"; then |
|---|
| 25 |
exec_prefix=$prefix |
|---|
| 26 |
fi |
|---|
| 27 |
|
|---|
| 28 |
full_var="$FROM_VAR" |
|---|
| 29 |
|
|---|
| 30 |
while true; do |
|---|
| 31 |
new_full_var="`eval echo $full_var`" |
|---|
| 32 |
if test "x$new_full_var" = "x$full_var"; then break; fi |
|---|
| 33 |
full_var=$new_full_var |
|---|
| 34 |
done |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
full_var=$new_full_var |
|---|
| 38 |
AC_SUBST([$1], "$full_var") |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
prefix=$prefix_save |
|---|
| 42 |
exec_prefix=$exec_prefix_save |
|---|
| 43 |
]) |
|---|