configure: Make check_type handle type names containing spaces
[ffmpeg.git] / configure
index b595496..eb31d8d 100755 (executable)
--- a/configure
+++ b/configure
@@ -740,13 +740,13 @@ check_type(){
     headers=$1
     type=$2
     shift 2
-    disable $type
+    disable_safe "$type"
     incs=""
     for hdr in $headers; do
         incs="$incs
 #include <$hdr>"
     done
-    check_cc "$@" <<EOF && enable $type
+    check_cc "$@" <<EOF && enable_safe "$type"
 $incs
 $type v;
 EOF