[BACK]Return to MyEnvironment.m CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

Diff for /OpenXM/src/cfep/MyEnvironment.m between version 1.4 and 1.5

version 1.4, 2016/09/30 04:41:07 version 1.5, 2016/10/03 07:42:29
Line 135 
Line 135 
     if ([s compare: @"PATH"] == NSOrderedSame) {      if ([s compare: @"PATH"] == NSOrderedSame) {
       char *path;        char *path;
           NSString *defaultPath;            NSString *defaultPath;
           defaultPath=@"/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/sw/bin:/sw/sbin:/usr/local/bin";            defaultPath=@"/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/sw/bin:/sw/sbin:/usr/local/bin";
           path = getenv("PATH");            path = getenv("PATH");
           if (!path) {            if (!path) {
             s = [NSString stringWithCString: path length: strlen(path)];              s = [NSString stringWithCString: path length: strlen(path)];
Line 221 
Line 221 
 }  }
 +(int) isX11Installed {  +(int) isX11Installed {
   NSFileManager *manager = [NSFileManager defaultManager];    NSFileManager *manager = [NSFileManager defaultManager];
   if ([manager fileExistsAtPath: @"/usr/X11R6/bin/X"]) return 1;    if ([manager fileExistsAtPath: @"/opt/X11/bin/X"]) return 1;
   else return 0;    else return 0;
 }  }
 +(int) isGccInstalled {  +(int) isGccInstalled {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>