Ignore:
Timestamp:
18/02/2010 18:11:01 (2 years ago)
Author:
chris
Message:

Configure subdirectories specified in modules.txt.

Detect C compiler as well as C++.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2495 r2619  
    1414 
    1515AC_LANG([C++]) 
     16AC_PROG_CC 
    1617AC_PROG_CXX 
    1718AC_CXX_EXCEPTIONS 
     
    383384fi 
    384385 
     386cat parcels.txt | sed -e 's/#.*//' | while read cmd subdir configure_args; do 
     387        if test "$cmd" = "subdir"; then 
     388                echo 
     389                echo "Configuring $subdir..." 
     390                cd $subdir 
     391                export CC CXX CXXFLAGS LDFLAGS LIBS 
     392                if ! ./configure $configure_args; then 
     393                        echo "Configuring $subdir failed!" >&2 
     394                        exit 1 
     395                fi 
     396        fi 
     397done || exit $? 
     398 
    385399# Write summary of important info 
    386400cat <<EOC 
Note: See TracChangeset for help on using the changeset viewer.