summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-11-02 20:33:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-11-02 20:33:47 +0000
commitf34ef3c93a0985aa6fd95c5d92ea6b9c648587f3 (patch)
treea11d005afa5da0c379afacf03b53e1ec78996910 /SConstruct
parent1ca802c4e8861e50d7c01e2fd1d6ea36c01a3dae (diff)
small fixes to editor.cc
git-svn-id: svn://localhost/trunk/ardour2@77 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct15
1 files changed, 14 insertions, 1 deletions
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
#