Commit fef9348d authored by Josh Coalson's avatar Josh Coalson

better detection of "as" variant

parent c7c1a8a9
......@@ -248,7 +248,8 @@ fi
AC_CHECK_PROGS(AS, as, as)
AC_CHECK_PROGS(GAS, gas, gas)
test "$AS" = "as" && as --version | grep GNU >/dev/null && AS=gas
# try -v (apple as) and --version (gas) at the same time
test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas
AM_CONDITIONAL(FLaC__HAS_AS, test "$AS" = "as")
AM_CONDITIONAL(FLaC__HAS_GAS, test "$AS" = "gas")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment