diff options
author | Mans Rullgard <mans@mansr.com> | 2012-04-12 21:32:33 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-04-13 13:22:37 +0100 |
commit | 6555acad10a6593d91fb09c7c20bbb4ab335bc02 (patch) | |
tree | 6e475f3a8388abf46468fc33647b0441a7273d35 | |
parent | de7f22ab0c5f79239ee627344d0d73e1c7060192 (diff) | |
download | ffmpeg-6555acad10a6593d91fb09c7c20bbb4ab335bc02.tar.gz |
configure: escape colons in values written to config.fate
The fields in config.fate are colon-separated so any colons
within the fields should be escaped to prevent confusion.
Signed-off-by: Mans Rullgard <mans@mansr.com>
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2594,7 +2594,11 @@ case $target_os in ;; esac -echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate +esc(){ + echo "$*" | sed 's/%/%25/g;s/:/%3a/g' +} + +echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIGURATION)" >config.fate check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic |