Unify all assembler file generators
[openssl.git] / crypto / sha / asm / sha512-sparcv9.pl
index daf6d2260a4892903a447a71cfe5c7920a566da1..fca6e863da49ef174eda79074f31e6afa4e855c5 100644 (file)
 # saturates at 11.5x single-process result on 8-core processor, or
 # ~11/16GBps per 2.85GHz socket.
 
-$output=pop;
-open STDOUT,">$output";
+# $output is the last argument if it looks like a file (it has an extension)
+$output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef;
+
+$output and open STDOUT,">$output";
 
 if ($output =~ /512/) {
        $label="512";