+# Double check SSE (Linux and FreeBSD supported, may end up disabling SSE on other platforms incorrectly)
+if [ "$sse" = "true" ]
+then
+ case $targetos in
+ Darwin)
+ sysctl -a hw | grep "sse: 1" > /dev/null || sse=false
+ ;;
+ Linux)
+ grep sse /proc/cpuinfo > /dev/null 2>&1 || sse=false
+ ;;
+ FreeBSD)
+ [ "$(make -V MACHINE_CPU:Msse)" ] || sse=false
+ ;;
+ *)
+ grep sse /proc/cpuinfo > /dev/null 2>&1 || sse=false
+ ;;
+ esac
+fi
+