Hi Andy,
> http://cvs.openssl.org/chngview?cn=16832.
nice hack, and useful for me too;
I copied the lines you used into a separate script:
my $ver=`nasm -v`;
my $vew=`nasmw -v`;
# pick newest version
$asm=($ver gt $vew?"nasm":"nasmw")." -f win32";
print "We use: $asm\n\n";
however when nasm.exe is not found it looks like this:
C:\test_perl>testnasm.pl
'nasm' is not recognized as an internal or external command,
operable program or batch file.
We use: nasmw -f win32
therefore I'd suggest to modify this to catch the stderr output:
my $ver=`nasm -v 2>NULL`;
my $vew=`nasmw -v 2>NULL`;
# pick newest version
$asm=($ver gt $vew?"nasm":"nasmw")." -f win32";
Guenter.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]