Re: DESTDIR and pkg-config variables

2009-01-13 Thread Peter Breitenlohner
On Mon, 12 Jan 2009, Dan Nicholson wrote: On Mon, Jan 12, 2009 at 10:21 AM, Paulo César Pereira de Andrade p...@mandriva.com.br wrote: Thanks. For simplicity, I feel tempted to remove: PKG_CHECK_MODULES(APPDEFS, xt) appdefaultdir=$(pkg-config --variable=appdefaultdir xt)

DESTDIR and pkg-config variables

2009-01-12 Thread Paulo César Pereira de Andrade
What is the proper way to correct make distcheck, when using pkg-config directory variables? Sample case is appdefaultdir for Xt/Xaw based applications. That usually, in configure.ac is: PKG_CHECK_MODULES(APPDEFS, xt) appdefaultdir=$(pkg-config --variable=appdefaultdir xt)

Re: DESTDIR and pkg-config variables

2009-01-12 Thread Dan Nicholson
On Mon, Jan 12, 2009 at 9:27 AM, Paulo César Pereira de Andrade p...@mandriva.com.br wrote: What is the proper way to correct make distcheck, when using pkg-config directory variables? Sample case is appdefaultdir for Xt/Xaw based applications. That usually, in configure.ac is:

Re: DESTDIR and pkg-config variables

2009-01-12 Thread Julien Cristau
On Mon, Jan 12, 2009 at 09:50:46 -0800, Dan Nicholson wrote: I think the right way to do this is 1) Keep taking the default from pkg-config and 2) Pass in a value during distcheck with DISTCHECK_CONFIGURE_FLAGS. That'd look something like this: configure.ac: AC_ARG_WITH([appdefaultdir],

Re: DESTDIR and pkg-config variables

2009-01-12 Thread Dan Nicholson
On Mon, Jan 12, 2009 at 9:53 AM, Julien Cristau jcris...@debian.org wrote: On Mon, Jan 12, 2009 at 09:50:46 -0800, Dan Nicholson wrote: I think the right way to do this is 1) Keep taking the default from pkg-config and 2) Pass in a value during distcheck with DISTCHECK_CONFIGURE_FLAGS. That'd

Re: DESTDIR and pkg-config variables

2009-01-12 Thread Paulo César Pereira de Andrade
Julien Cristau wrote: On Mon, Jan 12, 2009 at 09:50:46 -0800, Dan Nicholson wrote: I think the right way to do this is 1) Keep taking the default from pkg-config and 2) Pass in a value during distcheck with DISTCHECK_CONFIGURE_FLAGS. That'd look something like this: configure.ac:

Re: DESTDIR and pkg-config variables

2009-01-12 Thread Dan Nicholson
On Mon, Jan 12, 2009 at 10:21 AM, Paulo César Pereira de Andrade p...@mandriva.com.br wrote: Julien Cristau wrote: On Mon, Jan 12, 2009 at 09:50:46 -0800, Dan Nicholson wrote: I think the right way to do this is 1) Keep taking the default from pkg-config and 2) Pass in a value during