Unify all assembler file generators
[openssl.git] / crypto / sha / asm / sha1-ia64.pl
index b0c10f8a4b484d27ca32fd83bf6e21b9798f89e7..f1b412dcf2e3870c7efd2c57689e8f3bbd535005 100644 (file)
@@ -21,7 +21,8 @@
 # Performance under big-endian OS such as HP-UX is 179MBps*1GHz, which
 # is >50% better than HP C and >2x better than gcc.
 
-$output = pop;
+# $output is the last argument if it looks like a file (it has an extension)
+$output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef;
 
 $code=<<___;
 .ident  \"sha1-ia64.s, version 1.3\"