diff --git a/configure b/configure index 1eb3ba95ff..b221bcc63c 100755 --- a/configure +++ b/configure @@ -778,6 +778,20 @@ check_foo_config(){ return $err } +check_host_cc(){ + log check_host_cc "$@" + cat > $TMPC + log_file $TMPC + check_cmd $host_cc $host_cflags "$@" -c -o $TMPO $TMPC +} + +check_host_cflags(){ + log check_host_cflags "$@" + check_host_cc "$@" < EOF +check_host_cflags -std=c99 + case "$arch" in alpha) arch="alpha"