lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Working with certain third-party-libraries


From: Greg Chicares
Subject: Re: [lmi] Working with certain third-party-libraries
Date: Thu, 26 Oct 2006 00:59:58 +0000
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

On 2006-10-25 16:25 UTC, Vadim Zeitlin wrote:
> On Wed, 25 Oct 2006 15:04:16 +0000 Greg Chicares <address@hidden> wrote:
> 
> GC> * workhorse.make
> GC> # A default installation places gnome xml-library headers here:
> GC> #  libxml++: /usr/local/include/libxml++-2.6/libxml++
> GC> #  libxml2:  /usr/local/include/libxml2/libxml
> GC> #  libxslt:  /usr/local/include/libxslt
> GC> # The first provides no '*-config' script at all. The last two provide
> GC> # '*-config' scripts that don't respect an overriding $(prefix): they
> GC> # apparently hardcode the paths above, so there's no point in calling
> GC> # them.
> GC> 
> GC> I make the last comment because I configured with
> GC>   prefix        := /c/usr/local
> GC> [http://cvs.savannah.gnu.org/viewcvs/lmi/lmi/gwc/build_libxmlpp.make]
> GC> but got
> GC>   $/c/usr/local/bin/xml2-config --cflags
> GC>   -I/usr/local/include/libxml2
> 
>  This is because you only pass prefix to make but xml2-config is generated
> by configure. You should really do "configure --prefix=$(prefix)" instead
> as it risks breaking other things as well.

I've made that change, although the commit message will appear
cryptic because I used double quotes:

  /c/lmi/src/lmi/gwc[0]$cvs commit \
    -m"Specify $(prefix) for 'configure'" build_libxmlpp.make
  sh: prefix: command not found

and that little directory has no 'ChangeLog'.

Wendy--Would you please make sure that change gets tested?
And can you tell me whether that change makes the 'LIBXML_*'
exports below unnecessary? I'd rather expunge a needless
workaround in testing than maintain it forever.

[from 'build_libxmlpp.make':]
# Setting $(prefix) in the environment appears to have no effect on
# the autotools files, so this alternative seems to be necessary.

libxslt-1.1.17_exports := \
  export LIBXML_CFLAGS="-I$(prefix)/include/libxml2"; \
  export   LIBXML_LIBS="-L$(prefix)/lib -lxml2 -lws2_32"; \

libxml++-2.14.0_exports := \
  export PKG_CONFIG=pkg-config ; \
  export LIBXML_CFLAGS="-I$(prefix)/include/libxml2"; \
  export   LIBXML_LIBS="-L$(prefix)/lib/ -lxml2"; \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]