3 messages in ru.sysoev.nginxRe: problem with nginx autoconfigure
FromSent OnAttachments
Manlio PerilloNov 23, 2007 7:14 am 
Manlio PerilloNov 23, 2007 8:28 am 
Igor SysoevNov 23, 2007 8:44 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: problem with nginx autoconfigureActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Nov 23, 2007 8:44:49 am
List:ru.sysoev.nginx

On Fri, Nov 23, 2007 at 04:14:53PM +0100, Manlio Perillo wrote:

I'm having problems at auto configuring mod_wsgi on FreeBSD.

Here is the configuration:

ngx_feature="wsgi" ngx_feature_name= ngx_feature_run=no ngx_feature_incs="#include <Python.h>" ngx_feature_path="/usr/local/include/python2.4" ngx_feature_libs="-L /usr/local/lib -lpython2.4" ngx_feature_test="Py_Initialize()" . auto/feature

I think the values are correct (they are queried using Python distutils), however the nginx configure script has problems with ngx_feature_libs.

If I remove ngx_feature_libs and, of course, ngx_feature_test, mod_wsgi configures and compiles without problems.

What can be the problem?

One last question: I would like to add a --with-python= option to the configure script. This option tells the configure script the "custom" Python interpreter to use for configuration.

Is this possible without patching the script?

No.

You should not use hardcoded includes, libs, etc. Look python capabilities to report build options.

See auto/lib/perl/conf how configure use

perl -MExtUtils::Embed -e ccopts perl -MExtUtils::Embed -e ldopts