/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 740 by johnpye, Thu Jul 6 06:06:11 2006 UTC revision 741 by johnpye, Thu Jul 6 08:54:42 2006 UTC
# Line 672  def CheckGccVisibility(context): Line 672  def CheckGccVisibility(context):
672  yacc_test_text = """  yacc_test_text = """
673  %{  %{
674  #include <stdio.h>  #include <stdio.h>
675    
676    /* MSVC++ needs this before it can swallow Bison output */
677    #ifdef _MSC_VER
678    # define __STDC__
679    #endif
680  %}  %}
681  %token MSG  %token MSG
682  %start ROOT  %start ROOT
# Line 1088  if need_fortran: Line 1093  if need_fortran:
1093  # TODO: detect if dynamic libraries are possible or not  # TODO: detect if dynamic libraries are possible or not
1094    
1095  if platform.system()=="Windows" and env.has_key('MSVS'):  if platform.system()=="Windows" and env.has_key('MSVS'):
     _p = "C:\\Program Files\\Microsoft Platform SDK for Windows Server 2003 R2\\Include"  
     if not os.path.exists(os.path.join(_p,"Windows.h")):  
         print "WINDOWS.H NOT FOUND AT '%s'"%_p  
     else:  
         print "\n\nPATH '%s' OK\n\n" % _p  
         conf.env.Append(CPPPATH=[_p])  
   
1096      _found_windows_h = conf.CheckHeader('Windows.h')      _found_windows_h = conf.CheckHeader('Windows.h')
1097    
1098      if not _found_windows_h:      if not _found_windows_h:
1099          print "WINDOWS NOT FOUND IN '%s'" % conf.env.get('CPPPATH')          print "Could not locate 'Windows.h' in CPPPATH. Check your configuration."
1100          Exit(1)          Exit(1)
1101            
     if not _found_windows_h and env['PACKAGE_LINKING']=='DYNAMIC_PACKAGES':  
         print "Reverting to STATIC_PACKAGES since windows.h is not available. Probably you "\  
             +"need to install the Microsoft Windows Server 2003 Platform SDK, or similar."  
         env['PACKAGE_LINKING']='STATIC_PACKAGES'  
       
1102      if with_python and not conf.CheckHeader(['basetsd.h','BaseTsd.h']):      if with_python and not conf.CheckHeader(['basetsd.h','BaseTsd.h']):
1103          with_python = 0;          with_python = 0;
1104          without_python_reason = "Header file 'basetsd.h' not found. Install the MS Platform SDK."          without_python_reason = "Header file 'basetsd.h' not found. Install the MS Platform SDK."

Legend:
Removed from v.740  
changed lines
  Added in v.741

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22