[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: pcb, how to suppress TCL/TK QFP footprint builder?



On 3/2/09, Stefan Salewski <mail@xxxxxxxxxxxx> wrote:
> in INSTALL for pcb-20081128 we have
>
>>In addition to the libraries listed above, there is a graphical QFP
>>footprint
>>creator which uses TCL/TK.  If you do not wish to use this feature, and
>>you
>>do not have TCL/TK installed on your system, you may simply set WISH to
>>/usr/bin/true in your configure environment.  For example:
>>
>>  env WISH=/usr/bin/true ./configure

BTW, wouldn't these instructions better go to the configure script
rather than INSTALL, like in the attached patch?

Kind regards,
   Ineiev
From f431f33010bf6b0c1ec7f92b803b6830cadcdda5 Mon Sep 17 00:00:00 2001
From: Ineiev <ineiev@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 14 Feb 2009 09:24:32 +0300
Subject: [PATCH] eliminate hard dependency on `wish'

---
 ChangeLog       |    4 ++++
 INSTALL         |   15 +++++++--------
 configure.ac    |   11 +++++++++--
 lib/Makefile.am |    7 ++++---
 4 files changed, 24 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4497f72..358883a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-29 22:35  ineiev
+
+	* configure.ac lib/Makefile.am: eliminate hard dependency on `wish'
+
 2008-11-27 22:35  danmc
 
 	* doc/actions.texi: regen.
diff --git a/INSTALL b/INSTALL
index 1dfa0f8..5375f94 100644
--- a/INSTALL
+++ b/INSTALL
@@ -78,12 +78,12 @@ Printer HID's:
      is not given.
 
 In addition to the libraries listed above, there is a graphical QFP footprint
-creator which uses TCL/TK.  If you do not wish to use this feature, and you
-do not have TCL/TK installed on your system, you may simply set WISH to
-/usr/bin/true in your configure environment.  For example:
-
-  env WISH=/usr/bin/true ./configure
+creator which uses TCL/TK.  If you do not have TCL/TK installed on your
+system, the creator will not be installed.  If you do not wish to use
+this feature, you may simply set WISH to none in your configure environment.
+For example:
 
+  env WISH=none ./configure
 
 Please refer to the output of
 
@@ -112,9 +112,8 @@ from the top level directory.
 
 - GNU m4.  In particular your m4 must support -F for frozen files.
 
-- wish (part of tcl/tk).  If not installed, set WISH=/bin/false in
-  your configure environment and you just won't get the graphical
-  QFP footprint builder
+- wish (part of tcl/tk).  If not installed you just won't
+  get the graphical QFP footprint builder
 
 - gtk if you are using the gtk frontend
 
diff --git a/configure.ac b/configure.ac
index aed978b..e0bdc94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -394,9 +394,16 @@ fi
 
 AC_PATH_PROGS(WISH, wish wish83 wish8.3 wish80 wish8.0 cygwish83 cygwish80,[none])
 if test "X$WISH" = "Xnone" ; then
-	AC_MSG_ERROR([Did not find the wish executible.  You need to make sure
-	that tcl is installed on your system and that wish is in your path])
+	AC_MSG_RESULT([
+	Did not find the wish executible.  You need to make sure
+	that tcl/tk is installed on your system and that wish is in your path
+	in order to build qfp-ui script.  If you do have it installed you may
+	want to set WISH in your configure environment, for example:
+		env WISH=/opt/tcl-tk/bin/wish ./configure
+
+	])
 fi
+AM_CONDITIONAL(WISH_FOUND, test x$WISH != xnone)
 
 AC_DEFINE_UNQUOTED(M4,$M4,[m4 executible])
 GNUM4=$M4
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 5701d50..5ef6e51 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -11,9 +11,10 @@ LIBSCRIPTS= \
 	CreateLibraryContents.sh \
 	CreateLibrary.sh \
 	ListLibraryContents.sh \
-	QueryLibrary.sh \
-	qfp-ui
-
+	QueryLibrary.sh
+if WISH_FOUND
+LIBSCRIPTS+= qfp-ui
+endif
 dist_noinst_SCRIPTS= \
 	m4lib_to_newlib.sh
 
-- 
1.6.1.3


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user