The script prereq-0.3 script William wrote some time back checks the 
build environment is sane. I've updated this code to prereq-0.4

http://sagetrac.org/sage_trac/ticket/7021

but there is an issue which I did not address, which I think needs 
addressing.  But I'm not sure the best way to do it.

Both Williams code and my code will exit if gcc or g++ can't be found.

If one tries to build Sage with a compiler such as Sun Studio, one can 
now try (before the script would exit) - now only a warning is issued.


However, currently one still needs to have gcc and g++ in the path, 
otherwise the script will exit. As the code stands, an attempt to build 
with a non-GNU compiler, without having both gcc and g++ in the path 
will cause an error message and the script to exit.

This seems a bit silly if you actually want to build with a non-GNU 
compiler. It is advantageous to not have gcc and g++ in the path 
sometimes, as its then very easy to find packages which always use gcc, 
and ignore the environment variable CC.

I can see several ways around this.

1) Exit if either ar, ld, make, perl, ranlib or tar can not be found, 
but only issue a warning if gcc or g++ can't be found.

2) Exit if gcc or g++ can not be found unless some new environment 
variable (e.g. WITHOUT_GNU_COMPILERS) is exported to some non-empty value.

3) Exit if gcc or g++ can not be found unless SAGE_PORT is exported to 
some non-empty value. Currently SAGE_PORT is only needed on some 
operating systems, and has nothing to do with compilers, but we could 
extend it's usage to mean any unsupported operating systems or 
unsupported compiler.

My own belief is that (3) is the best, but I'd be interested what others 
think. There may be another option I've not thought of.



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to