< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] Missing definition for DEPS_PYTHON


Thank you Dan, for your time in investigating this issue.  I appreciate your help.

Cheers,
Dan


On Sunday, January 26, 2014 11:50 AM, Scott Godin <sgodin@xxxxxxxxxxxxxxx> wrote:
Hi Daniel,

Thanks!  apt-get install pkg-config fixed the problem.

Scott


On Sun, Jan 26, 2014 at 5:57 AM, Daniel Pocock <daniel@xxxxxxxxxxxxx> wrote:


On 23/01/14 22:57, Daniel Petrie wrote:
> I get the same thing.  That is how I originally ran into this problem.
>
> bash$ ./configure --with-ssl --with-repro --enable-repro-plugins
>
> ...
> checking whether byte ordering is bigendian... no
> checking for struct sockaddr_in.sin_len... no
> ./configure: line 16315: syntax error near unexpected token `DEPS_PYTHON,'
> ./configure: line 16315: ` PKG_CHECK_MODULES(DEPS_PYTHON, python >= 2.7)'


It is not about Python at all, it appears that the macro
PKG_CHECK_MODULES is missing, many people have had the same problem with
other projects:

http://www.coffeecode.net/archives/208-PKG_CHECK_MODULES-syntax-error-near-unexpected-token-DEPS,.html


PKG_CHECK_MODULES is in the package "pkg-config" on Debian/Ubuntu.

Using it makes the configure.ac script more concise and readable - but
it also means people without it get that cryptic error.  If you have
seen some other project that has 20 lines of code in configure.ac for
checking each library they use, it is because they do not use
PKG_CHECK_MODULES.

Please try "apt-get install pkg-config" and then run the configure
again.  I'll ask on the autotools list to see if anybody can suggest the
easiest way to improve this experience for people.

One option is that I simply delete the PKG_CHECK_MODULES line, then
people using the Python stuff just have to remember to define
DEPS_PYTHON_CFLAGS and DEPS_PYTHON_LIBS on the configure command line
and nothing will check that they have a suitable version.

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/