Update perl asm scripts include paths for perlasm.
[openssl.git] / crypto / whrlpool / asm / wp-mmx.pl
index d52439bca4b805f668134731e82411b4e19a2bb0..32cf16380b54d39aea6ff7ed5a3b40fae6f2ec7c 100644 (file)
@@ -45,7 +45,8 @@
 #      non-MMX implementation would actually pay off, but till
 #      opposite is proved "unlikely" is assumed.
 
-push(@INC,"../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],"wp-mmx.pl");