You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-mathematics/maxima/files/wish-0.patch

29 lines
946 B

diff -r -U1 maxima-5.23.1.orig//configure.in maxima-5.23.1//configure.in
--- maxima-5.23.1.orig//configure.in 2011-01-15 21:54:46.000000000 +0600
+++ maxima-5.23.1//configure.in 2011-01-16 21:00:16.000000000 +0600
@@ -777,6 +777,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.23.1.orig//interfaces/Makefile.am maxima-5.23.1//interfaces/Makefile.am
--- maxima-5.23.1.orig//interfaces/Makefile.am 2004-04-28 23:34:59.000000000 +0700
+++ maxima-5.23.1//interfaces/Makefile.am 2011-01-16 20:41:38.000000000 +0600
@@ -1,2 +1,6 @@
+if WANT_TK
SUBDIRS = emacs xmaxima
+else
+SUBDIRS = emacs
+endif
EXTRA_DIST = bin/xmaxima.iss