summaryrefslogtreecommitdiff
path: root/math/scilab/patches/patch-ah
blob: 22bb0d692a4bf0ac0834c86fae61b6c29646f26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ah,v 1.10 2007/03/23 22:08:56 dmcmahill Exp $

--- routines/pvm/pvm_proc_ctrl.c.orig	2005-10-22 18:53:11.000000000 +0000
+++ routines/pvm/pvm_proc_ctrl.c
@@ -414,7 +414,8 @@ void C2F(scipvmspawn)(char *task,  int *
   char cmd[256];
   char *arg[4];
   int nargs= -1;
-    
+  char *path;
+
   arg[0] = NULL;
    
   cmd[0] = 0;
@@ -427,7 +428,13 @@ void C2F(scipvmspawn)(char *task,  int *
   strcpy(cmd, "scilex.exe");
 #else
   /* I really need scilab here for gtk -version */
-  strcpy(cmd, "scilab");
+  if (path = getenv("SCI")){
+       strcpy(cmd,path);
+       strcat(cmd,"/bin/scilab");
+  }
+  else {
+       strcpy(cmd, "scilab");
+  }
 #endif 
 #if (defined __MSC__) || defined(__MINGW32__) 
   if ( _stricmp(task,"null") != 0)