Make it possible to build for more than one CPU.
[openssl.git] / util / selftest.pl
index 775f1712e909b7ff1abc7fe96f317866aa943429..276b81183d2922162c0c034867e9c11558f1d83e 100644 (file)
@@ -50,6 +50,7 @@ if (open(IN,"<Makefile.ssl")) {
 
 $cversion=`$cc -v 2>&1`;
 $cversion=`$cc -V 2>&1` if $cversion =~ "usage";
+$cversion=`$cc -V |head -1` if $cversion =~ "Error";
 $cversion=`$cc --version` if $cversion eq "";
 $cversion =~ s/Reading specs.*\n//;
 $cversion =~ s/usage.*\n//;
@@ -57,7 +58,7 @@ chomp $cversion;
 
 if (open(IN,"<CHANGES")) {
     while(<IN>) {
-       if (/\*\) (.{0,55})/) {
+       if (/\*\) (.{0,55})/ && !/applies to/) {
            $last=$1;
            last;
        }
@@ -132,19 +133,13 @@ if (system("make 2>&1 | tee make.log") > 255) {
 $_=$options;
 s/no-asm//;
 s/no-shared//;
+s/no-krb5//;
 if (/no-/)
 {
     print OUT "Test skipped.\n";
     goto err;
 }
 
-if (`echo 4+1 | bc` != 5)
-{
-    print OUT "Can't run bc! Test skipped.\n";
-    print OUT $not_our_fault;
-    goto err;
-}
-
 print "Running make test...\n";
 if (system("make test 2>&1 | tee maketest.log") > 255)
  {