From: David B. <dav...@gm...> - 2011-02-10 13:56:30
|
Hi Volker, Tasos, I removed the unneeded T4K_COMMON prefix from the vars as suggested. For the moment I still have separate DEP_LIBS and DEP_LIBS_PRIVATE, but I can simplify that later. The update is in t4k_common's git repo: git clone git://git.debian.org/git/tux4kids/t4kcommon.git > Feel free to ask if you run into any problems. I'd be happy to have > a look at your *.ac / *.in files. Thanks - I've attached those files. I can think of a few things I haven't yet addressed: 1. DEP_LIBS_PRIVATE as of yet is just contains all the secondary dependencies for all the non- *.pc libs. It was not created very carefully, basically grabbed from the args passed to gcc at the end of the regular linux non-static build process, after which I eliminated duplicates and the primary dependencies. So it might possibly have some things in there that wouldn't be needed if some of the optional libs are deselected. I think I should make the lib checks in configure.ac mimic the pkg-config process more closely, adding to this var as each library is located. 2. As you suggested, the lib checks use a two stage procedure, first trying PKG_CHECK_MODULES, then AC_CHECK_LIB if needed. Once the lib is detected, by either method, I add the library name to DEP_LIBS (for the ones I know have *.pc files). But this might result in an error if the fall-back to AC_CHECK_LIB was required. So I think perhaps DEP_LIBS should be updated in the "action_if_found" part of PKG_CHECK_MODULES. I will look at some *.pc.in files from other projects, as you suggested, for working examples I can follow. Thanks, David |