summaryrefslogtreecommitdiff
path: root/math/scilab/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'math/scilab/patches/patch-ac')
-rw-r--r--math/scilab/patches/patch-ac52
1 files changed, 44 insertions, 8 deletions
diff --git a/math/scilab/patches/patch-ac b/math/scilab/patches/patch-ac
index 084e4f052e3..b7995bbaa94 100644
--- a/math/scilab/patches/patch-ac
+++ b/math/scilab/patches/patch-ac
@@ -1,10 +1,46 @@
-$NetBSD: patch-ac,v 1.7 2004/07/15 04:00:47 dmcmahill Exp $
+$NetBSD: patch-ac,v 1.8 2007/03/23 22:08:56 dmcmahill Exp $
---- routines/interf/stcreate.c.orig Mon Mar 22 14:47:08 2004
-+++ routines/interf/stcreate.c
-@@ -1,3 +1,5 @@
-+#include <string.h>
+--- m4/tcltk.m4.orig 2006-11-03 09:53:30.000000000 +0000
++++ m4/tcltk.m4
+@@ -127,6 +127,11 @@ CHK_TCL_MAJ=$1
+ CHK_TCL_MIN=$2
+ TCL_LIB_OK=0
+ AC_MSG_CHECKING([for tcl library tcl$1.$2])
++if test -n "$TCL_CONFIG_SH" ; then
++ . $TCL_CONFIG_SH
++fi
++LDFLAGS="$LDFLAGS $TCL_LIBS"
+
- #include "../stack-c.h"
- #define memused(it,mn) ((((mn)*( it % 10))/sizeof(int))+1)
- #include "../stack-c.h"
+ dirs="$USER_TCL_LIB_PATH /lib /usr/lib /usr/lib/tcl /usr/lib/tcl8.* /shlib /shlib/tcl /shlib/tcl8.* /usr/shlib /shlib/tcl /usr//shlib/tcl8.* /usr/local/lib /usr/local/lib/tcl /usr/local/lib/tcl8.* /usr/local/shlib /usr/X11/lib/tcl /usr/X11/lib/tcl8.* /usr/lib/X11 /usr/lib/X11/tcl /usr/lib/X11/tcl8.* ../lib ../../lib /usr/local/tcl /usr/tcl /usr/tcl/lib /usr/local/tcl/lib /sw/lib/ ."
+ libexts="so so.1.0 sl dylib a"
+ libnames="tcl$CHK_TCL_MAJ.$CHK_TCL_MIN tcl.$CHK_TCL_MAJ.$CHK_TCL_MIN tcl$CHK_TCL_MAJ$CHK_TCL_MIN tcl.$CHK_TCL_MAJ$CHK_TCL_MIN"
+@@ -284,6 +289,11 @@ CHK_TK_MIN=$2
+ TK_LIB_OK=0
+
+ AC_MSG_CHECKING([for tk library tk$1.$2])
++if test -n "$TK_CONFIG_SH" ; then
++ . $TK_CONFIG_SH
++fi
++LDFLAGS="$LDFLAGS $TK_LIBS"
++
+ dirs="$USER_TK_LIB_PATH /lib /usr/lib /usr/lib/tk /usr/lib/tk8.* /shlib /shlib/tk /shlib/tk8.* /usr/shlib /shlib/tk /usr/shlib/tk8.* /usr/local/lib /usr/local/lib/tk /usr/local/lib/tk8.* /usr/local/shlib /usr/X11/lib/tk /usr/X11/lib/tk8.* /usr/lib/X11 /usr/lib/X11/tk /usr/lib/X11/tk8.* ../lib ../../lib /usr/tk /usr/local/tk /usr/local/tk/lib /usr/tk/lib /usr/local/tcl /usr/tcl /usr/local/tcl/lib /usr/tcl/lib /sw/lib "
+ libexts="so so.1.0 sl dylib a"
+ libnames="tk$CHK_TK_MAJ.$CHK_TK_MIN tk.$CHK_TK_MAJ.$CHK_TK_MIN tk$CHK_TK_MAJ$CHK_TK_MIN tk.$CHK_TK_MAJ$CHK_TK_MIN"
+@@ -391,7 +401,7 @@ dnl In addition, if the test was OK, the
+ TCL_INCLUDE_OK=1
+ AC_CHECK_TCL_LIB($TCL_MAJOR_VERSION,$TCL_MINOR_VERSION)
+ if test $TCL_LIB_OK = 1; then
+- TCLTK_LIBS=" $TCL_LIB $TCLTK_LIBS"
++ TCLTK_LIBS=" $TCL_LIB $TCL_LIBS $TCLTK_LIBS"
+ break;
+ fi
+ fi
+@@ -435,7 +445,7 @@ dnl In addition, if the test was OK, the
+ fi
+
+ else
+- TCLTK_LIBS=$TK_LIB" $TCLTK_LIBS"
++ TCLTK_LIBS=" $TK_LIB $TCLTK_LIBS"
+ WITH_TKSCI=1
+ fi
+ ])