configure: Make check_type handle type names containing spaces
authorMartin Storsjö <martin@martin.st>
Mon, 11 Jan 2010 14:22:29 +0000 (14:22 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 11 Jan 2010 14:22:29 +0000 (14:22 +0000)
Patch by Martin Storsjö <martin at martin st>

Originally committed as revision 21139 to svn://svn.ffmpeg.org/ffmpeg/trunk

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