Commit b83e4a77 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

<making srcdir absolute>: Verify that PWD is correct,

not just well-formed and valid.
parent beb0acdf
......@@ -114,7 +114,10 @@ case "${srcdir}" in
. )
## We may be able to use the $PWD environment variable to make this
## absolute. But sometimes PWD is inaccurate.
if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
## Note: we used to use ${PWD} at the end instead of `pwd`,
## but that tested only for a well-formed and valid PWD,
## it did not object when PWD was well-formed and valid but just wrong.
if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
then
srcdir="$PWD"
else
......@@ -355,6 +358,11 @@ case "${canonical}" in
## operating system.
;;
## Compaq Nonstop
mips-compaq-nonstopux* )
machine=nonstopux opsys=nonstopux
;;
## Convex
*-convex-bsd* | *-convex-convexos* )
machine=convex opsys=bsd4-3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment