Re: [reSIProcate-users] Missing definition for DEPS_PYTHON
On 23/01/14 20:06, Daniel Petrie wrote:
> I am working on main:
>
> bash$ svn checkout https://svn.resiprocate.org/rep/resiprocate/main
> ...
> Checked out revision 10915
>
>
> bash$ autoreconf -if
>
> libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
> libtoolize: copying file `build-aux/ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
> libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
> configure.ac:19: installing `build-aux/config.guess'
> configure.ac:19: installing `build-aux/config.sub'
> configure.ac:17: installing `build-aux/install-sh'
> configure.ac:17: installing `build-aux/missing'
> apps/clicktocall/Makefile.am: installing `build-aux/depcomp'
> resip/stack/Makefile.am:191: `%'-style pattern rules are a GNU make extension
>
> bash$ ./configure --with-ssl --with-repro --enable-repro-plugins
> --without-python
>
> ...
> 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)'
>
> There is a fairly simple workaround which is to delete the line in
> configure.ac that contains:
> PKG_CHECK_MODULES(DEPS_PYTHON, python >= 2.7)
>
>
> However, I expect that someone would like --without-python to work.
>
If you specify neither option, it should build without Python - can you
just confirm if that works for you? I tried it myself and it appeared OK.
According to the manual, specifying either --with-python or
--without-python will always cause that block of code to be executed
(that seems non-intuitive, but that is what it says):
http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/External-Software.html
It appears this is just the way autotools does this - we could add some
logic to detect --without-* but that would just make it all harder to
read configure.ac.