Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building scotty without tkined

5 views
Skip to first unread message

Christopher Nelson

unread,
Jun 18, 2008, 3:53:50 PM6/18/08
to
I need to build scotty and tnm but not tkined. I asked here before
and was told that the configure didn't support that. I know I went
about this wrong -- I edited configure, not the autoconf input -- but
I don't know anything about autoconf and this solves my problem so I
thought I'd share. This is a patch to the unix/configure script in
Scotty 2.1.9. Hope it helps someone. WIth this patch in place, you
can configure with "--without-tkined" to build Scotty without Tk or
tkined.

--- configure.orig 2008-06-18 15:31:28.000000000 -0400
+++ configure 2008-06-18 15:48:16.000000000 -0400
@@ -1456,6 +1456,16 @@
wish_prefix=`dirname $wish_prefix`
fi

+# Check whether --without-tkined was given.
+if test "${with_tkined+set}" = set; then
+ echo "with tkined:${with_tkined}"
+ TARGET="`echo ${TARGET} | sed -e 's/tkined//'`"
+else
+ with_tkined=yes
+fi
+
+if test "${with_tkined}" = yes; then
+
# Check whether --with-tk-config or --without-tk-config was given.
if test "${with_tk_config+set}" = set; then
withval="$with_tk_config"
@@ -1498,6 +1508,7 @@
if test 4 -eq $TK_MAJOR_VERSION -a 1 -gt $TK_MINOR_VERSION; then
{ echo "configure: error: "tk 4.1 or later needed"" 1>&2; exit
1; }
fi
+fi ; # End of tkined stuff


#----------------------------------------------------------------------------
# Check for the existence of various libraries.

0 new messages