Changeset 851

Show
Ignore:
Timestamp:
01/17/08 01:30:40 (16 years ago)
Author:
arnonym
Message:

Check for a C++-header (and the availability of a c++-compiler) too. see #69

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/SConstruct

    r850 r851  
    154154        # header shipped with gcc. 
    155155        # 
    156         if not conf.CheckHeader( "stdio.h" ): 
     156        if not conf.CheckHeader( "stdio.h", language="C" ): 
    157157                print "It seems as if stdio.h is missing. This probably means that your build environment is broken, please make sure you have a working c-compiler and libstdc installed and usable." 
     158                Exit( 1 ) 
     159        # 
     160        # ... and do the same with a c++-header. Because some distributions have 
     161        # distinct packages for gcc and g++. 
     162        # 
     163        if not conf.CheckHeader( "iostream", language="C++" ): 
     164                print "It seems as if iostream is missing. This probably means that your build environment is broken, please make sure you have a working c++-compiler installed and usable." 
    158165                Exit( 1 ) 
    159166