Boost logo

Boost Users :

From: Klett, Stefan (stefan.klett_at_[hidden])
Date: 2008-03-07 05:12:28


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_at_[hidden]
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
-------------------------------------------------------------------


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net