automake + boost lib versions
Hi altogether, I've got a problem with rolling a packet to distribute a library source - first I tried to do this with boost-build , but later on I had some difficulties and fell back to automake. What I need is a (hopefully convenient) way to deal with different versions of the boost libraries - because I have to expect that the names of these libraries will differ on nearly all machines a potential User of "my" library is trying to build the source. For example the date-time lib appears as: /usr/local/lib/libboost_date_time-gcc42-1_34_1.a /usr/local/lib/libboost_date_time-gcc42-1_34_1.so /usr/local/lib/libboost_date_time-gcc42-1_34_1.so.1.34.1 /usr/local/lib/libboost_date_time-gcc42.a /usr/local/lib/libboost_date_time-gcc42-d-1_34_1.a /usr/local/lib/libboost_date_time-gcc42-d-1_34_1.so /usr/local/lib/libboost_date_time-gcc42-d-1_34_1.so.1.34.1 /usr/local/lib/libboost_date_time-gcc42-d.a /usr/local/lib/libboost_date_time-gcc42-d.so /usr/local/lib/libboost_date_time-gcc42-mt-1_34_1.a /usr/local/lib/libboost_date_time-gcc42-mt-1_34_1.so /usr/local/lib/libboost_date_time-gcc42-mt-1_34_1.so.1.34.1 /usr/local/lib/libboost_date_time-gcc42-mt.a /usr/local/lib/libboost_date_time-gcc42-mt-d-1_34_1.a /usr/local/lib/libboost_date_time-gcc42-mt-d-1_34_1.so /usr/local/lib/libboost_date_time-gcc42-mt-d-1_34_1.so.1.34.1 /usr/local/lib/libboost_date_time-gcc42-mt-d.a /usr/local/lib/libboost_date_time-gcc42-mt-d.so /usr/local/lib/libboost_date_time-gcc42-mt.so /usr/local/lib/libboost_date_time-gcc42.so in the case of my library using the multithreaded version is preferred. Hardwiring fails by the obvious reason that not everyone else is using gcc42 Is there anyone of you who has some experience in writing a proper configure.ac Makefile.am that is aware of these different boost-library names ? If so please give me a hint ... Thank you very much in advance Best regards Stefan -------------------------------------------------------- Stefan Klett (Dipl. Informatiker) | E-mail: stefan.klett@kit.edu Forschungszentrum Karlsruhe / KIT | Web: http://www.fzk.de SCC Steinbuch Centre for Computing| Phone: +49 (0)7247 828649 Hermann-von-Helmholtz-Platz 1 | Fax: +49 (0)7247 824972 D-76344 Eggenstein-Leopoldshafen | Mobile: +49 (0)176 20317250 -------------------------------------------------------------------
On Fri, Mar 07, 2008 at 11:12:28AM +0100, Klett, Stefan wrote:
I've got a problem with rolling a packet to distribute a library source - first I tried to do this with boost-build , but later on I had some difficulties and fell back to automake.
What I need is a (hopefully convenient) way to deal with different versions of the boost libraries - because I have to expect that the names of these libraries will differ on nearly all machines a potential
Is there anyone of you who has some experience in writing a proper configure.ac Makefile.am that is aware of these different boost-library names ? If so please give me a hint ...
A simple search for "boost m4" finds http://repo.or.cz/w/boost.m4.git which uses very clear code and simple syntax. It works very well for me. Jens
participants (2)
-
Jens Seidel
-
Klett, Stefan