summaryrefslogtreecommitdiff
blob: 6e002d99267d4ca2250dbba4c306db561bcd4c06 (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
diff -r -U1 maxima-5.35.1.orig/configure.ac maxima-5.35.1/configure.ac
--- maxima-5.35.1.orig/configure.ac	2014-12-13 06:44:51.000000000 +0600
+++ maxima-5.35.1/configure.ac	2014-12-15 16:30:07.574773386 +0600
@@ -989,6 +989,11 @@
 	[  --with-wish=<prog>           Use <prog> for Tk wish shell (default wish)],
-	[WISH="${withval}"],
-	[WISH="wish"])
+	[],
+	[with_wish="wish"])
+case "${with_wish}" in
+     no) WISH="none" ;;
+     yes) WISH="wish" ;;
+     *) WISH="${with_wish}" ;;
+esac
 AC_SUBST(WISH)
-
+AM_CONDITIONAL(WANT_TK, test x"${with_wish}" != xno)
 
diff -r -U1 maxima-5.35.1.orig/interfaces/Makefile.am maxima-5.35.1/interfaces/Makefile.am
--- maxima-5.35.1.orig/interfaces/Makefile.am	2013-10-07 10:37:11.000000000 +0700
+++ maxima-5.35.1/interfaces/Makefile.am	2014-12-15 16:31:18.056770422 +0600
@@ -1,2 +1,6 @@
+if WANT_TK
 SUBDIRS = emacs xmaxima
+else
+SUBDIRS = emacs
+endif
 EXTRA_DIST = bin/xmaxima.iss