25 Jun
2004
25 Jun
'04
2:01 a.m.
is somewhere documented how to add automake/autoconf stuff for boost to a project? I have a set of small testcases and the need boost_unit_test_framework-gcc library to compile. At the moment I add the lib directly to linker options with
project_test_LDADD = -lboost_unit_test_framework-gcc
But this is not platform independent, because someone might have not gcc installed. So how can I do it in a better way?
The way to put in libraries is to AC_CHECK_LIB them. That will check that the lib is present with the given test symbol, and will link to it in the final build. -- Petri Latvala