IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22709


Ignore:
Timestamp:
Feb 27, 2009, 12:41:31 PM (17 years ago)
Author:
Paul Price
Message:

Use make options provided by environment variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psconfig/pschecklibs

    r21932 r22709  
    157157
    158158    if ($auto_force eq "Y") {
    159         print "$name will be built\n";
     159        print "$name will be built\n";
    160160    }
    161161
    162162    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         }
     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        }
    169169        next;
    170170    } else {
     
    174174
    175175    if ($auto_force eq "Y") {
    176         print "$name will be built\n";
     176        print "$name will be built\n";
    177177    }
    178178
     
    254254    if ($?) { &failure($name, "failure in configure"); }
    255255
     256    my $make = "make";          # Command for make
     257    $make .= ' ' . $ENV{'PSCONFIG_MAKEOPTS'} if defined $ENV{'PSCONFIG_MAKEOPTS'};
     258
    256259    if ($make_opts eq "NONE") {
    257         vsystem ("make");
     260        vsystem ($make);
    258261    } else {
    259262        $make_opts = join (' ', split (',', $make_opts));
    260         vsystem ("make $make_opts");
     263        vsystem ("$make $make_opts");
    261264    }
    262265    if ($?) { &failure($name, "failure in make"); }
    263266
    264267    if ($install_opts eq "NONE") {
    265         vsystem ("make install");
     268        vsystem ("$make install");
    266269    } else {
    267270        $install_opts = join (' ', split (',', $install_opts));
    268         vsystem ("make install $install_opts");
     271        vsystem ("$make install $install_opts");
    269272    }
    270273    if ($?) { &failure($name, "failure in make install"); }
     
    315318        # versions libraries if we find only a .so.N without a matching
    316319        # .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         }
     320        # XXX this was probably a mistake to allow some systems to build without supplied libs
     321        if (1) {
     322            foreach $topdir ( @libpath ) {
     323                foreach $subdir ( @subdirs ) {
     324                    if ($subdir eq ".") {
     325                        $path = $topdir;
     326                    } else {
     327                        $path = "$topdir/$subdir";
     328                    }
     329                    if (! -e $path) { next; }
     330                    @libnames = <$path/$tryname.$dlltype*>;
     331                    if (@libnames > 0) {
     332                        $libname = @libnames[-1];
     333                        $needdev = 1;
     334                        # print " *** need developer version of $name\n";
     335                        return "runtime-only";
     336
     337                        # XXX old option: link in existing library
     338                        # symlink $libname, "$libdir/$f.$dlltype";
     339                        # if ($?) { exit 1; }
     340                        # return $libname;
     341                    }
     342                }
     343            }
     344        }
    342345    }
    343346    return 0;
Note: See TracChangeset for help on using the changeset viewer.