from p3. Some shells leave PWD in the environment (old tcsh, ksh at least)
authorMark Eichin <eichin@cygnus>
Fri, 18 Sep 1992 06:16:37 +0000 (06:16 +0000)
committerMark Eichin <eichin@cygnus>
Fri, 18 Sep 1992 06:16:37 +0000 (06:16 +0000)
screws nested configures. "unset PWD" is the right answer, except that
Decstation sh doesn't *have* unset.
Note also that the send-pr build will fail if you have PWD in your
environment, because emacs also (foolishly) trusts it.

* configure: just set PWD=`pwd` at the top, since Ultrix sh
doesn't have unset and all success paths (and most error paths)
out set it anyway. (Note: should change all uses of ${PWD=`pwd`}
to just ${PWD} to avoid confusion.)

ChangeLog
configure

index 0c301b4..fed73f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu Sep 17 23:05:53 1992  Mark Eichin  (eichin@cygnus.com)
+
+       * configure: just set PWD=`pwd` at the top, since Ultrix sh
+       doesn't have unset and all success paths (and most error paths)
+       out set it anyway. (Note: should change all uses of ${PWD=`pwd`}
+       to just ${PWD} to avoid confusion.)
+
 Tue Sep 15 16:00:54 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * configure: always set $(tooldir) to $(libdir)/$(target_alias),
index 5f68992..1c27867 100755 (executable)
--- a/configure
+++ b/configure
@@ -97,6 +97,7 @@ NO_EDIT="This file was generated automatically by configure.  Do not edit."
 ##
 
 progname=$0
+PWD=`pwd`
 
 case "${progname}" in
 /*) ;;