If something goes wrong, or if it is simply the first time you create configure.ac or a Makefile.am, you need to set up the GNU Build System. That’s the goal of the simple script bootstrap, which most important action is invoking:
$ autoreconf -fvi
The various files (configure, Makefile.in, etc.) are
created. There is no need to run ‘make distclean’, or
aclocal or whatever, before running
knows what to do.
make (see GCC):
$ mkdir _build $ cd _build $ ../configure CXX=g++-5.0 $ make
Alternatively you may set
CXX in your environment:
$ export CXX=g++-5.0 $ mkdir _build $ cd _build $ ../configure && make
This solution is preferred since the value of
CC etc. will be
used by the
configure invocation from ‘make distcheck’
(see Making a Tarball).