X-Git-Url: http://g0dil.de/git?p=senf.git;a=blobdiff_plain;f=SConfigure;h=64044a80c4e24463d87685371ad9488a0f424c57;hp=a279710719e98ad56c6353d9e1d518346f9984b8;hb=HEAD;hpb=0c4aa6222dcd843bd55335c026c9f1efcb8d7f99 diff --git a/SConfigure b/SConfigure index a279710..64044a8 100644 --- a/SConfigure +++ b/SConfigure @@ -1,5 +1,7 @@ # -*- python -*- +import glob + Import('env') ########################################################################### @@ -12,7 +14,7 @@ def CheckSTLCopyN(context): ('', '__gnu_cxx::copy_n', 'GNUCXX') ] for include, name, define in versions: ret = context.TryCompile("#include %s\n" - "int main(int,char**) { int *a,*b; %s(a,0,b); }\n" + "int main(int,char**) { int *a (NULL); int *b (NULL); %s(a,0,b); }\n" % (include, name), ".cc") if ret: @@ -84,6 +86,7 @@ res = conf.CheckCXXHeader("boost/bimap.hpp"); \ res = conf.CheckTempBufferStrategy() # Standard library stuff +res = conf.CheckCHeader("execinfo.h") res = conf.FindCHeader("timerfd.h", [ 'sys', 'linux' ]) res = conf.CheckFunc("timerfd_create") res = conf.CheckSymbolWithExpression( @@ -98,4 +101,16 @@ res = conf.CheckSTLCopyN(); \ res = conf.CheckValgrind() and conf.CheckValgrindWildcards(); \ conf.env.Replace(HAVE_VALGRIND = res) +########################################################################### + +# run configure scripts from external modules +Export('conf') + +sconscripts = sorted(glob.glob("senf/Ext/*/SConfigure")) +if sconscripts: + SConscript(sconscripts) + +########################################################################### + env = conf.Finish() +