Changeset 287cc8 in git for ntl/src/DoConfig
- Timestamp:
- Jan 5, 2010, 5:51:13 PM (14 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 3c38b3810fd61108b01f123f5a91e13ccff52b20
- Parents:
- 1d43d184dd871d77c1ba8e095d768f22a0fbe92f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ntl/src/DoConfig
r1d43d18 r287cc8 86 86 87 87 88 %Variable = (); 89 90 88 91 foreach $arg (@ARGV) { 89 92 … … 94 97 95 98 if (($name, $val) = ($arg =~ /(.*?)=(.*)/)) { 99 100 $Variable{$name} = 0; 96 101 97 102 if (exists($MakeFlag{$name}) && ($val =~ 'on|off')) { … … 139 144 } 140 145 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'} = '# '; 144 151 145 152 if ($ConfigFlag{'NTL_GMP_LIP'} eq 'on' || $ConfigFlag{'NTL_GMP_HACK'} eq 'on') { 146 153 $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'} = '# '; 153 172 154 173 155 174 if ($ConfigFlag{'NTL_GF2X_LIB'} eq 'on') { 156 175 $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 } 160 186 } 161 187
Note: See TracChangeset
for help on using the changeset viewer.