This macro tries to find the place where the objects files resulting
from templates instantiations are stored and the associated compiler
flags. This is particularly useful to include these files in
libraries. Currently only g++/egcs and SUN CC are supported (there is
nothing to be done for the formers while the latter uses directory
./Templates.DB if you use the -ptr. flag). This macro sets the
CXXFLAGS if needed, it also sets the output variable
TEMPLATES_OBJ. Note that if you use libtool, this macro does work
correctly with the SUN compilers ONLY while building static
libraries. Since there are sometimes problems with exception handling
with multiple levels of shared libraries even with g++ on this
platform, you may wish to enforce the usage of static libraires
there. You can do this by putting the following statements in your
configure.in file:
AC_CANONICAL_HOST
case x$host_os in
xsolaris*) AC_DISABLE_SHARED ;;
esac
AM_PROG_LIBTOOL