Update perl asm scripts include paths for perlasm.
[openssl.git] / crypto / bf / asm / bf-586.pl
index 252abb710d6b1f02bffe4e2ebe70e64b2119d1c4..b74cfbafd4b05cc9f0d6e643a2df13ae836e92f7 100644 (file)
@@ -1,10 +1,11 @@
 #!/usr/local/bin/perl
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 require "cbc.pl";
 
-&asm_init($ARGV[0],"bf-586.pl");
+&asm_init($ARGV[0],"bf-586.pl",$ARGV[$#ARGV] eq "386");
 
 $BF_ROUNDS=16;
 $BF_OFF=($BF_ROUNDS+2)*4;