From 72702705415f639cadaaa2d30191eee2667e4a8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 28 Feb 2009 19:56:19 +0000 Subject: [PATCH] configure: {enable,disable}_safe functions that sanitise arguments Originally committed as revision 17667 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a86e80d3d..3f7b4cdac 100755 --- a/configure +++ b/configure @@ -325,6 +325,14 @@ disable_weak(){ set_weak no $* } +enable_safe(){ + enable $(echo "$*" | sed 's/[^A-Za-z0-9_ ]/_/g') +} + +disable_safe(){ + disable $(echo "$*" | sed 's/[^A-Za-z0-9_ ]/_/g') +} + do_enable_deep(){ for var; do enabled $var && continue @@ -566,9 +574,7 @@ check_header(){ log check_header "$@" header=$1 shift - var=`echo $header | sed 's/[^A-Za-z0-9_]/_/g'` - disable $var - check_cpp "$@" < int x; EOF -- 2.34.1