This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] small tweak to top level configure.in


Yes, I know when they shouldn't be used.  But I've discovered that they allow
me to work around various issues which come up during autoconfiscation, in a 
really straightforward way.  So I'd like to introduce these two variables for
my future use.

'pwd' technically conflicts with a variable in 'configure', but that variable
is defined to exactly the same thing (with no 'cd's in between), so...

2002-07-02  Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.in: Introduce variables 'pwd', 'abs_srcdir'.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.167
diff -u -r1.167 configure.in
--- configure.in	3 Jul 2002 02:49:38 -0000	1.167
+++ configure.in	3 Jul 2002 20:00:40 -0000
@@ -33,6 +33,14 @@
 
 ##############################################################################
 
+# Get some absolute paths, because they're too useful to do without.
+# Don't use these outside this invocation (e.g. not in the Makefile),
+# since they might change between 'configure', 'make', and 'make install'.
+# Absolute path to the build directory (current directory).
+pwd=`${PWDCMD-pwd}`
+# Absolute path to the source directory (srcdir).
+abs_srcdir=`cd ${srcdir}; ${PWDCMD-pwd}`
+
 ### To add a new directory to the tree, first choose whether it is a target
 ### or a host dependent tool.  Then put it into the appropriate list
 ### (library or tools, host or target), doing a dependency sort.  For


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