Browse code

configure: use warn function for unrecognised --cc and --arch settings

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

Måns Rullgård authored on 2010/06/25 05:49:39
Showing 1 changed files
... ...
@@ -1856,7 +1856,8 @@ elif $cc -V 2>&1 | grep -q Sun; then
1856 1856
     }
1857 1857
 fi
1858 1858
 
1859
-test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"
1859
+test -n "$cc_type" && enable $cc_type ||
1860
+    warn "Unknown C compiler $cc, unable to select optimal CFLAGS"
1860 1861
 
1861 1862
 : ${as_default:=$cc}
1862 1863
 : ${dep_cc_default:=$cc}
... ...
@@ -1947,7 +1948,7 @@ case "$arch" in
1947 1947
     ;;
1948 1948
 esac
1949 1949
 
1950
-is_in $arch $ARCH_LIST || echo "WARNING: unknown arch $arch"
1950
+is_in $arch $ARCH_LIST || warn "unknown architecture $arch"
1951 1951
 enable $arch
1952 1952
 
1953 1953
 # Add processor-specific flags