Simon King wrote:
I guess there is some script in Sage that tests the
available version of GCC (called when you type "make" in SAGE_ROOT).
There's only a (partially broken) script for testing whether $CC /is/
GCC (or SunCC etc.), and another one for testing whether $CC supports /
accepts specific options.
In shell scripts (including spkg-install files), we usually just use
something like
case `$CC -dumpversion 2>/dev/null` in
4.[01].*)
# Usually spoiled apples
;;
4.4.5*)
# Probably from Debian Squeeze's default GCC4 package
;;
4.2.0|4.5.0|4.6.0)
# Pretty broken...
;;
4.7*|4.8.0)
# Good.
;;
*) # Something else
esac
[The version numbers don't mean much here, there're just to give an
example.]
-leif
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.