Diff of /pre_install.m [000000] .. [aea747]  Maximize  Restore

Switch to unified view

a b/pre_install.m
1
function pre_install(desc)
2
# Sets FENV_OPTS variable for the Makefile
3
# If the system is detected as an x86/x86_64 machine, we define a flag which
4
# is later used when compiling system_dependent.cc
5
6
systemtype = computer();
7
8
# Presently, we support either x86_64...
9
supported = ~isempty(findstr('x86_64', systemtype));
10
11
# or x86...
12
#     (Actually we only support i486DX and above, 
13
#     but in many cases the default compiler settings are for i386.
14
#     We also do believe older machines are already either dead 
15
# or at the museum.)
16
supported |= strcmp("i86", systemtype([1,3,4]));
17
18
file = fopen('src/configure.in','wt');
19
fprintf(file,'FENV_OPTS = ');
20
if (supported)
21
  fprintf(file,'-DX86_PROCESSOR');
22
end
23
fprintf(file,'\n');
24
fclose(file);
25
26
endfunction

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks