[llvm-commits] [hlvm] r38092 - /hlvm/trunk/build/configure.py
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:59:46 PDT 2007
Author: reid
Date: Sat Jul 7 18:59:45 2007
New Revision: 38092
URL: http://llvm.org/viewvc/llvm-project?rev=38092&view=rev
Log:
Check for programs and headers after we've modified environment by finding the
various packages we depend on. Also, check for all the headers we use and for
doxygen too.
Modified:
hlvm/trunk/build/configure.py
Modified: hlvm/trunk/build/configure.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/build/configure.py?rev=38092&r1=38091&r2=38092&view=diff
==============================================================================
--- hlvm/trunk/build/configure.py (original)
+++ hlvm/trunk/build/configure.py Sat Jul 7 18:59:45 2007
@@ -139,15 +139,43 @@
return conf.FindPackage('LIBXML2',pjoin('libxml','parser.h'),['xml2'],code,
[],[],'libxml2')
-def CheckStdCXXHeaders(conf,env):
- if not conf.CheckCXXHeader('vector'):
+def CheckForHeaders(conf,env):
+ if not conf.CheckCXXHeader('algorithm'):
env.Exit(1)
- if not conf.CheckCXXHeader('map'):
+ if not conf.CheckCXXHeader('apr-1/apr_pools.h'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('apr-1/apr_uri.h'):
env.Exit(1)
if not conf.CheckCXXHeader('cassert'):
env.Exit(1)
+ if not conf.CheckCXXHeader('ios'):
+ env.Exit(1)
if not conf.CheckCXXHeader('iostream'):
env.Exit(1)
+ if not conf.CheckCXXHeader('istream'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('libxml/parser.h'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('libxml/relaxng.h'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('libxml/xmlwriter.h'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('llvm/ADT/StringExtras.h'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('llvm/System/Path.h'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('map'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('memory'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('new'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('ostream'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('string'):
+ env.Exit(1)
+ if not conf.CheckCXXHeader('vector'):
+ env.Exit(1)
return 1
def CheckForPrograms(conf,env):
@@ -156,6 +184,9 @@
if not conf.CheckProgram('runtest','RUNTEST'):
env['RUNTEST'] = None
print "*** TESTING DISABLED ***"
+ if not conf.CheckProgram('doxygen','DOXYGEN'):
+ env['DOXYGEN'] = None
+ print "*** DOXYGEN DISABLED ***"
return 1
#dnl AC_PATH_PROG(path_EGREP, egrep, egrep)
@@ -174,10 +205,10 @@
log_file=pjoin(env['BuildDir'],'config.log')
)
env['LIBS'] = ""
- CheckForPrograms(conf,env)
- CheckStdCXXHeaders(conf,env)
FindLibXML2(conf,env)
FindAPR(conf,env)
FindAPRU(conf,env)
FindLLVM(conf,env)
+ CheckForPrograms(conf,env)
+ CheckForHeaders(conf,env)
conf.Finish()
More information about the llvm-commits
mailing list