/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 1912 by jpye, Mon Sep 29 12:56:24 2008 UTC revision 1941 by jpye, Tue Nov 4 03:30:32 2008 UTC
# Line 1389  def CheckMath(context): Line 1389  def CheckMath(context):
1389      context.env.AppendUnique(LIBS=['m'])      context.env.AppendUnique(LIBS=['m'])
1390      is_ok=context.TryLink(math_test_text,".c")      is_ok=context.TryLink(math_test_text,".c")
1391      context.Result(is_ok)      context.Result(is_ok)
1392      if not is_ok:      if libsave is None:
1393            del(context.env['LIBS'])
1394        else:
1395          context.env['LIBS']=libsave          context.env['LIBS']=libsave
1396      return is_ok      return is_ok
1397    
# Line 1649  ipopt_test_text = """ Line 1651  ipopt_test_text = """
1651  int main(){  int main(){
1652      Number n;      Number n;
1653      IpoptProblem nlp = 0;      IpoptProblem nlp = 0;
1654        n = 1;
1655      FreeIpoptProblem(nlp); // probably a crash if you run this      FreeIpoptProblem(nlp); // probably a crash if you run this
1656      return 0;      return 0;
1657  }  }
# Line 1887  int main(void){ Line 1890  int main(void){
1890    
1891  def CheckSigReset(context):  def CheckSigReset(context):
1892      context.Message("Checking signal handler reset... ")      context.Message("Checking signal handler reset... ")
1893        libsave=context.env.get('LIBS')
1894        context.env.AppendUnique(LIBS=['m'])
1895      (is_ok,output) = context.TryRun(sigreset_test_text,'.c')      (is_ok,output) = context.TryRun(sigreset_test_text,'.c')
1896    
1897        if libsave is None:
1898            del(context.env['LIBS'])
1899        else:
1900            context.env['LIBS']=libsave
1901    
1902      if not is_ok:      if not is_ok:
1903          context.Result("ERROR")          context.Result("ERROR")
1904          return False          return False
# Line 2337  if platform.system()=="Windows" and env. Line 2348  if platform.system()=="Windows" and env.
2348    
2349  conf.Finish()  conf.Finish()
2350    
2351    print "-=-=-=-=-=-=-=-=- LIBS =",env.get('LIBS')
2352    
2353  #---------------------------------------  #---------------------------------------
2354  # SUBSTITUTION DICTIONARY for .in files  # SUBSTITUTION DICTIONARY for .in files
2355    

Legend:
Removed from v.1912  
changed lines
  Added in v.1941

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