[BuildTools-tickets] [BuildTools] #67: Running configure without g++ => cryptic error
BuildTools
coin-trac at coin-or.org
Wed Aug 27 09:42:04 EDT 2008
#67: Running configure without g++ => cryptic error
--------------------------+-------------------------------------------------
Reporter: plb | Owner: andreasw
Type: enhancement | Status: new
Priority: trivial | Component: configuration tests
Version: 0.5 | Resolution:
Keywords: configure g++ |
--------------------------+-------------------------------------------------
Comment (by stefan):
For the configure run without CXX=gcc, it looks like the AC_PROG_CXX macro
of autoconf automatically sets CXX to g++ if it '''cannot''' find a C++
compiler, see
https://projects.coin-
or.org/CoinUtils/browser/releases/2.2.5/CoinUtils/configure#L3276
Thus, the lines
{{{
AC_PROG_CXX([$comps])
if test -z "$CXX" ; then
AC_MSG_ERROR([Failed to find a C++ compiler!])
fi
}}}
in coin.m4/AC_COIN_PROG_CXX does not catch the error, since $CXX will be
g++, even though g++ might not work.[[BR]]
Unfortunately, according to
[http://www.gnu.org/software/autoconf/manual/html_node/C_002b_002b-
Compiler.html#index-AC_005fPROG_005fCXX-809 the autoconf manual], this
seem to be even a desired behaviour, not a bug.
Any idea how to get around this? Should there be an extra test in
AC_COIN_PROG_CXX that tests whether the C++ compiler actually works?
Best,
Stefan
--
Ticket URL: <https://projects.coin-or.org/BuildTools/ticket/67#comment:4>
BuildTools <http://projects.coin-or.org/BuildTools>
Tools for configuring and compiling COIN-OR codes
More information about the BuildTools-tickets
mailing list