This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] fix default --prefix in tix install


Hello all.

A problem in TIX shows up when the user does not pass a --prefix option to
the toplevel configure. This patch fixes the error, the approach was swiped
from the Tcl and Tk configure.in scripts.

2002-07-02  Mo DeJong  <supermo@bayarea.net>

	* unix/tk8.3/configure.in: Default the prefix and
	exec_prefix to /usr/local if the user does not
	pass --prefix explicitly. This avoids an error
	during make install where the TCL_BIN_DIR
	variable is set to NONE/bin.

Index: tix/unix/tk8.3/configure.in
===================================================================
RCS file: /cvs/src/src/tix/unix/tk8.3/configure.in,v
retrieving revision 1.3
diff -u -r1.3 configure.in
--- tix/unix/tk8.3/configure.in	11 Jan 2002 23:43:38 -0000	1.3
+++ tix/unix/tk8.3/configure.in	2 Jul 2002 22:22:41 -0000
@@ -44,6 +44,15 @@
     INSTALL=`pwd`/install.sh
 fi
 
+# Make sure prefix and exec_prefix default to proper values
+
+if test "${prefix}" = "NONE"; then
+    prefix=/usr/local
+fi
+if test "${exec_prefix}" = "NONE"; then
+    exec_prefix=$prefix
+fi
+
 #--------------------------------------------------------------------
 #	Version information about this TIX release.
 #--------------------------------------------------------------------
@@ -259,11 +268,7 @@
 #--------------------------------------------------------------------
 #	Find out where tcl is installed.
 #--------------------------------------------------------------------
-if test x"${exec_prefix}" = xNONE; then
-    TCL_BIN_DIR="${prefix}/bin"
-else
-    TCL_BIN_DIR="${exec_prefix}/bin"
-fi
+TCL_BIN_DIR="${exec_prefix}/bin"
 # END RED HAT LOCAL
 
 #--------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]