Browse code

configure: Make check_type handle type names containing spaces

Patch by Martin Storsjö <martin at martin st>

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

Martin Storsjö authored on 2010/01/11 23:22:29
Showing 1 changed files
... ...
@@ -740,13 +740,13 @@ check_type(){
740 740
     headers=$1
741 741
     type=$2
742 742
     shift 2
743
-    disable $type
743
+    disable_safe "$type"
744 744
     incs=""
745 745
     for hdr in $headers; do
746 746
         incs="$incs
747 747
 #include <$hdr>"
748 748
     done
749
-    check_cc "$@" <<EOF && enable $type
749
+    check_cc "$@" <<EOF && enable_safe "$type"
750 750
 $incs
751 751
 $type v;
752 752
 EOF