IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2009, 11:13:29 AM (17 years ago)
Author:
beaumont
Message:

Finished ppStack visualization. Unified the way in which visualizations are invoked, plotting windows are closed, etc

Location:
branches/cnb_branches/cnb_branch_20090215
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215

  • branches/cnb_branches/cnb_branch_20090215/psconfig/pschecklibs

    r22419 r23197  
    1111$version = "";
    1212$build = 0;
    13 %force;
     13my %force;
     14my %done;                       # Tarballs that have been processed
    1415@tARGV = ();
    1516for (; @ARGV > 0; ) {
     
    132133
    133134
    134     if ((defined $force{lc($name)} or defined $force{'all'}) and lc($tarball) ne "none") {
     135    if ((defined $force{lc($name)} or defined $force{'all'}) and
     136        not defined $done{$tarball} and lc($tarball) ne "none") {
    135137        # remove it for the list so we can check for -force for a library
    136138        # not in the list
    137139        &buildlib ($name, $tarball, $tardir, $configure_opts, $make_opts, $install_opts);
     140        $done{$tarball} = 1;
    138141        delete($force{lc($name)});
    139142        next;
     
    157160
    158161    if ($auto_force eq "Y") {
    159         print "$name will be built\n";
     162        print "$name will be built\n";
    160163    }
    161164
    162165    if ($found) {
    163         if ($found eq "runtime-only") {
    164             print "runtime $name ($found)\n";
    165             push @faillibs, "$name";
    166         } else {
    167             print "pass $name ($found)\n";
    168         }
     166        if ($found eq "runtime-only") {
     167            print "runtime $name ($found)\n";
     168            push @faillibs, "$name";
     169        } else {
     170            print "pass $name ($found)\n";
     171        }
    169172        next;
    170173    } else {
     
    174177
    175178    if ($auto_force eq "Y") {
    176         print "$name will be built\n";
     179        print "$name will be built\n";
    177180    }
    178181
     
    187190my $bad_force;
    188191foreach $k (keys %force) {
     192    next if lc($k) eq 'all';
    189193    print STDERR "\nERROR: -force $k requested but $k isn't in the list of libraries\n";
    190194    $bad_force = 1;
     
    254258    if ($?) { &failure($name, "failure in configure"); }
    255259
     260    my $make = "make";          # Command for make
     261    $make .= ' ' . $ENV{'PSCONFIG_MAKEOPTS'} if defined $ENV{'PSCONFIG_MAKEOPTS'};
     262
    256263    if ($make_opts eq "NONE") {
    257         vsystem ("make");
     264        vsystem ($make);
    258265    } else {
    259266        $make_opts = join (' ', split (',', $make_opts));
    260         vsystem ("make $make_opts");
     267        vsystem ("$make $make_opts");
    261268    }
    262269    if ($?) { &failure($name, "failure in make"); }
    263270
    264271    if ($install_opts eq "NONE") {
    265         vsystem ("make install");
     272        vsystem ("$make install");
    266273    } else {
    267274        $install_opts = join (' ', split (',', $install_opts));
    268         vsystem ("make install $install_opts");
     275        vsystem ("$make install $install_opts");
    269276    }
    270277    if ($?) { &failure($name, "failure in make install"); }
     
    315322        # versions libraries if we find only a .so.N without a matching
    316323        # .so, we link this in the installed libdir
    317         # XXX this was probably a mistake to allow some systems to build without supplied libs
    318         if (1) {
    319             foreach $topdir ( @libpath ) {
    320                 foreach $subdir ( @subdirs ) {
    321                     if ($subdir eq ".") {
    322                         $path = $topdir;
    323                     } else {
    324                         $path = "$topdir/$subdir";
    325                     }
    326                     if (! -e $path) { next; }
    327                     @libnames = <$path/$tryname.$dlltype*>;
    328                     if (@libnames > 0) {
    329                         $libname = @libnames[-1];
    330                         $needdev = 1;
    331                         # print " *** need developer version of $name\n";
    332                         return "runtime-only";
    333 
    334                         # XXX old option: link in existing library
    335                         # symlink $libname, "$libdir/$f.$dlltype";
    336                         # if ($?) { exit 1; }
    337                         # return $libname;
    338                     }
    339                 }
    340             }
    341         }
     324        # XXX this was probably a mistake to allow some systems to build without supplied libs
     325        if (1) {
     326            foreach $topdir ( @libpath ) {
     327                foreach $subdir ( @subdirs ) {
     328                    if ($subdir eq ".") {
     329                        $path = $topdir;
     330                    } else {
     331                        $path = "$topdir/$subdir";
     332                    }
     333                    if (! -e $path) { next; }
     334                    @libnames = <$path/$tryname.$dlltype*>;
     335                    if (@libnames > 0) {
     336                        $libname = @libnames[-1];
     337                        $needdev = 1;
     338                        # print " *** need developer version of $name\n";
     339                        return "runtime-only";
     340
     341                        # XXX old option: link in existing library
     342                        # symlink $libname, "$libdir/$f.$dlltype";
     343                        # if ($?) { exit 1; }
     344                        # return $libname;
     345                    }
     346                }
     347            }
     348        }
    342349    }
    343350    return 0;
Note: See TracChangeset for help on using the changeset viewer.