AC_TRY_RUN is definitely one of the autoconf constructs I'd like to discourage people from using.
To be fair though, only 2 out of 50+ of the libraries we ported actually used it.
Posted Nov 20, 2008 0:38 UTC (Thu) by nix (subscriber, #2304)
[Link]
But at least it's not quite as CAPITAL LETTER HAPPY as cmake, although
it's still CAPITAL LETTER HAPPY. Reading the cmake documentation or cmake
examples is almost physically painful. You'd think they hadn't realised
that lowercase letters are easier to read.
MinGW and why Linux users should care
Posted Nov 20, 2008 12:21 UTC (Thu) by aleXXX (subscriber, #2742)
[Link]
Since CMake 2.4.1 I think lower case commands are supported, and since
2.6.0 using all-lowercase is recommended.
Beside that, I can recommend the same: don't try to run executables
during the configure-step, in general this doesn't work for cross
compiling. If cmake recognizes that a cross-compiled executable should be
executed, it doesn't execute it, prints a warning, and writes a file for
setting the result-variables, with hopefully enough comments so this
becomes doable for the developer. Also the cross compiled executables are
kept so the developer can take them, execute them on the target platform
and enter the results manually in that file. That file can then be fed
into cmake using the -C argument.
Alex
MinGW and why Linux users should care
Posted Nov 20, 2008 12:39 UTC (Thu) by nix (subscriber, #2304)
[Link]
cmake supports lowercase! Yay! Now I can learn it without getting a hideous headache ;)