Unify all assembler file generators
[openssl.git] / crypto / md5 / asm / md5-sparcv9.pl
index db46fff7fe455572cf8b0167a24a9c74ac27a82a..fd77b8b1de8eafd0d0abf0b406a4c1fb742fcc1c 100644 (file)
 # single-process result on 8-core processor, or ~11GBps 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";
 
 use integer;