Back: Testing C++ Implementations with Autoconf
Forward: Libtool C++ support
 
FastBack: Libtool C++ support
Up: How GNU Autotools Can Help
FastForward: Further Reading
Top: Autoconf, Automake, and Libtool
Contents: Table of Contents
Index: Index
About: About this document

16.4.2 Automake C++ support

Automake provides support for compiling C++ programs. In fact, it makes it practically trivial: files listed in a SOURCES primary may include `.c++', `.cc', `.cpp', `.cxx' or `.C' extensions and Automake will know to use the C++ compiler to build them.

For a project containing C++ source code, it is necessary to invoke the AC_PROG_CXX macro in `configure.in' so that Automake knows how to run the most suitable compiler. Fortunately, when little details like this happen to escape you, automake will produce a warning:

 
$ automake
automake: Makefile.am: C++ source seen but CXX not defined in
automake: Makefile.am: `configure.in'


This document was generated by Gary V. Vaughan on February, 8 2006 using texi2html