Changeset 287cc8 in git for ntl/src/DoConfig


Ignore:
Timestamp:
Jan 5, 2010, 5:51:13 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3c38b3810fd61108b01f123f5a91e13ccff52b20
Parents:
1d43d184dd871d77c1ba8e095d768f22a0fbe92f
Message:
ntl 5.5.2

git-svn-id: file:///usr/local/Singular/svn/trunk@12402 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ntl/src/DoConfig

    r1d43d18 r287cc8  
    8686
    8787
     88%Variable = ();
     89
     90
    8891foreach $arg (@ARGV) {
    8992
     
    9497
    9598   if (($name, $val) = ($arg =~ /(.*?)=(.*)/)) {
     99
     100      $Variable{$name} = 0;
    96101     
    97102      if (exists($MakeFlag{$name}) && ($val =~ 'on|off')) {
     
    139144}
    140145
    141 # a special MakeVal value that is determined by NTL_GMP_LIP
    142 # and NTL_GMP_HACK
    143 
     146# special GMP variables
     147
     148$MakeVal{'GMPI'} = '# ';
     149$MakeVal{'GMPL'} = '# ';
     150$MakeVal{'GMP'} =  '# ';
    144151
    145152if ($ConfigFlag{'NTL_GMP_LIP'} eq 'on' || $ConfigFlag{'NTL_GMP_HACK'} eq 'on') {
    146153   $MakeVal{'GMP'} = '';
    147 }
    148 else {
    149    $MakeVal{'GMP'} = '# ';
    150 }
    151 
    152 # a special MakeVal value that is determined by NTL_GF2X_LIB
     154   if (exists($Variable{'DEF_PREFIX'}) ||
     155       exists($Variable{'GMP_PREFIX'}) ||
     156       exists($Variable{'GMP_INCDIR'})) {
     157      $MakeVal{'GMPI'} = '';
     158   }
     159   if (exists($Variable{'DEF_PREFIX'}) ||
     160       exists($Variable{'GMP_PREFIX'}) ||
     161       exists($Variable{'GMP_LIBDIR'})) {
     162      $MakeVal{'GMPL'} = '';
     163   }
     164}
     165
     166# special GF2X variables
     167
     168
     169$MakeVal{'GF2XI'} = '# ';
     170$MakeVal{'GF2XL'} = '# ';
     171$MakeVal{'GF2X'} =  '# ';
    153172
    154173
    155174if ($ConfigFlag{'NTL_GF2X_LIB'} eq 'on') {
    156175   $MakeVal{'GF2X'} = '';
    157 }
    158 else {
    159    $MakeVal{'GF2X'} = '# ';
     176   if (exists($Variable{'DEF_PREFIX'}) ||
     177       exists($Variable{'GF2X_PREFIX'}) ||
     178       exists($Variable{'GF2X_INCDIR'})) {
     179      $MakeVal{'GF2XI'} = '';
     180   }
     181   if (exists($Variable{'DEF_PREFIX'}) ||
     182       exists($Variable{'GF2X_PREFIX'}) ||
     183       exists($Variable{'GF2X_LIBDIR'})) {
     184      $MakeVal{'GF2XL'} = '';
     185   }
    160186}
    161187
Note: See TracChangeset for help on using the changeset viewer.