mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
check for matheval
This commit is contained in:
@@ -6,6 +6,7 @@ zeromq = auto
|
||||
ssl = auto
|
||||
pcre = auto
|
||||
routing = auto
|
||||
matheval = auto
|
||||
debug = false
|
||||
unbit = false
|
||||
xml_implementation = libxml2
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
[uwsgi]
|
||||
main_plugin = glusterfs
|
||||
inherit = base
|
||||
matheval = false
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include <uwsgi.h>
|
||||
#include <api/glfs.h>
|
||||
|
||||
#ifdef UWSGI_MATHEVAL
|
||||
#error currently the glusterfs plugins is not compatible with uWSGI built with matheval support
|
||||
#endif
|
||||
|
||||
extern struct uwsgi_server uwsgi;
|
||||
|
||||
/*
|
||||
|
||||
+9
-4
@@ -918,10 +918,15 @@ class uConf(object):
|
||||
self.libs.append('-lcap')
|
||||
report['capabilities'] = True
|
||||
|
||||
if self.has_include('matheval.h'):
|
||||
self.cflags.append("-DUWSGI_MATHEVAL")
|
||||
self.libs.append('-lmatheval')
|
||||
report['matheval'] = True
|
||||
if self.get('matheval'):
|
||||
if self.get('matheval') == 'auto' and self.has_include('matheval.h'):
|
||||
self.cflags.append("-DUWSGI_MATHEVAL")
|
||||
self.libs.append('-lmatheval')
|
||||
report['matheval'] = True
|
||||
else:
|
||||
self.cflags.append("-DUWSGI_MATHEVAL")
|
||||
self.libs.append('-lmatheval')
|
||||
report['matheval'] = True
|
||||
|
||||
has_json = False
|
||||
has_uuid = False
|
||||
|
||||
Reference in New Issue
Block a user