From: Francesco M. <f18...@ya...> - 2006-09-02 10:35:10
|
Francesco Montorsi ha scritto: > John Labenski ha scritto: >> On 8/31/06, John Labenski <jla...@gm...> wrote: >>> I have to give up now, since I cannot get the <wx-lib>adv</wx-lib> to >>> get added to the Makefile.in and GNUmakefile. Same for html or any >>> other wxlib. >> I think I found the problem. In build/autoconf/wxpresets.m4 we have >> >> AC_DEFUN([AM_WXPRESETS], >> ... >> WX_ADDITIONAL_LIBS="$2,core,base" >> >> I don't understand the syntax just yet, but for some reason $2 is not >> getting filled with any of the other wxlibs you set in the bakefile. >> Like these : >> <wx-lib>html</wx-lib> >> <wx-lib>adv</wx-lib> >> >> so that in GNUmakefile for example you only get >> `$(WX_CONFIG) --libs core,base` >> >> Sorry I can't fix this myself, but I'm slowly trying to learn this stuff. > everything is right. $2 comes from the 2nd argument of the > AM_WXCODE_CHECKS([2.4.0], []) > macro in the 'configure.ac' of each component. > > There are comments which should help to understand how to use it in all > configure.ac files of wxCode. Adding the "adv,html" there will fix > autoconf format. Another thing: if you have a dependency from a wxCode component X in your component Y you may want to use the AM_WXCODE_CHECKFOR_COMPONENT() autoconf macro in the configure.ac of the component Y to check for presence / usability of the component X. See wxcodechecks.m4 for more info. HTH, Francesco |