From f34ef3c93a0985aa6fd95c5d92ea6b9c648587f3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 2 Nov 2005 20:33:47 +0000 Subject: small fixes to editor.cc git-svn-id: svn://localhost/trunk/ardour2@77 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 84d6fadadc..ac049cf405 100644 --- a/SConstruct +++ b/SConstruct @@ -38,7 +38,6 @@ opts.AddOptions( BoolOption('BUILD_SSE_OPTIMIZATIONS', 'Use our hand-written x86/SSE optimizations when possible (off by default)', 0) ) - #---------------------------------------------------------------------- # a handy helper that provides a way to merge compile/link information # from multiple different "environments" @@ -519,6 +518,20 @@ else: config_prefix = '$DESTDIR' + final_config_prefix + +# SCons should really do this for us + +conf = Configure (env) + +have_cxx = conf.TryAction (Action (env['CXX'] + ' --version')); +if have_cxx[0] != 1: + print "This system has no functional C++ compiler. You cannot build Ardour from source without one." + exit (1); +else: + print "Congratulations, you have a functioning C++ compiler." + +env = conf.Finish() + # # Compiler flags and other system-dependent stuff # -- cgit v1.2.3