Evaluate configure arguments to reproduce autotools behavior. Autotools actually only expands a few variable and do it at make time but it makes the change much simpler.
Unified · Split
| @@ -103,6 +103,7 @@ if test -z "$source_path" -o "$source_path" = "." ; then · 102 unmodified lines | ||
| 103 | 103 | fi |
| 104 | 104 | |
| 105 | 105 | for opt do |
| 106 | + eval opt=$opt | |
| 106 | 107 | case "$opt" in |
| 107 | 108 | --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` |
| 108 | 109 | ;; |