#!/bin/tcsh -f # # Try and fall back to the default system C and C++ # compilers in /usr/bin # # Remove whatever C compiler path currently exists # for the "cc" command (unless it is in /usr/bin). # Also, unset the CC and CXX environment variables. set done=0 while ( $done == 0 ) set ccpath=`which cc` if ( -e $ccpath )then set ccbindir=${ccpath:h} set ccdir=${ccbindir:h} if ( ${ccdir} != '/usr' ) then if( $?loginsh ) echo "Removing ${ccdir} from PATH" filter_path PATH ${ccdir}/bin filter_path LD_LIBRARY_PATH ${ccdir}/lib # Re-define BMS_OSNAME source ${SETUP_SCRIPTS}/BMS_OSNAME else set done=1 endif unsetenv CC unsetenv CXX else set done=2 endif end filter_path PATH filter_path LD_LIBRARY_PATH