BZ #186: configure does not check if CXX is usable

Status fields:

creation_ts:2013-07-07 10:44
component:build system
version:unspecified
rep_platform:All
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:zapster@complang.tuwien.ac.at
If no c++ compiler is present, `configure' (more precisely AC_PROG_CXX) sets CXX to g++
[1]. This causes `make' fail with "g++ command not found". This is in contrast
AC_PROG_CC. It seems that interchanging AC_PROG_CC and AC_PROG_CXX in configure.ac would
solve the issue [2],[3]. Adding check to see if CC and CXX are usable is probably the
cleaner solution.

[1]: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node
/C_002b_002b-Compiler.html
[2]: http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00001.html
[3]: http://osdir.com/ml/bug-autoconf-gnu/2010-05/msg00002.html

Comment #1 by zapster@complang.tuwien.ac.at on 2013-12-02 13:03:38

Fixed: http://mips.complang.tuwien.ac.at/hg/cacao/rev/db8b7c3