Check for compiler version only works with gcc
|Reported by:||rklrkl||Owned by:|
|Keywords:||Cc:||rklrkl, Tim Kosse|
|Component version:||Operating system type:|
|Operating system version:|
In the configure script shipped with FileZilla 3.0.4, line 19659 reads:
$CC --version | head -n 1; then
However, most non-gcc compilers don't have a --version flag, so this results in "Unknown version" being displayed in the "About FileZilla" dialogue box if $CC != gcc.
For HP-UX 11.11, the closest I could get for HP's ANSI C compiler was:
what /usr/bin/cc | grep Compiler; then
But then the same command on HP-UX 11.23 and 11.31 doesn't work (the output from 'what /usr/bin/cc' is completely different - there isn't even a line with a 'Compiler' string in it...).
I don't know what the solution to this is - my gut feeling is that, say, Sun's own C compiler on Solaris might have similar issues. Maybe it's best just to not include the compiler version and do a "uname -a" or something similar and have it as "Build system: " line.