This is more reliable than using `which`, which doesn't work if the CXX environment variable is set to something else than an executable (e.g contains options), and is apparently less portable on some systems.
See: * http://lists.geany.org/pipermail/devel/2009-September/001367.html, which lead to 5bb28825aadb43ea8ba536c34970d53860b50759. * https://sourceforge.net/p/geany/bugs/455/, which lead to a revert of the above, 5b9605a9d6d799629b8ed3163596069c8c948b06.
Fixes #829. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1155
-- Commit Summary --
* Test whether the C++ compiler works by compiling a test program
-- File Changes --
M configure.ac (6) A m4/geany-prog-cxx.m4 (20)
-- Patch Links --
https://github.com/geany/geany/pull/1155.patch https://github.com/geany/geany/pull/1155.diff
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1155
LGBI
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1155#issuecomment-236396476
Merged #1155.
github-comments@lists.geany.org