aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-28 03:24:51 +0000
committerJim Blandy1993-05-28 03:24:51 +0000
commit0871bc22df3bacccfb18900d30cf0c6ee468425b (patch)
tree460a6d3f70a507149edcd576f6578212ec7a5a05
parent92723877c7b4cf2d8e503afa01a5ba92800fc4a7 (diff)
downloademacs-0871bc22df3bacccfb18900d30cf0c6ee468425b.tar.gz
emacs-0871bc22df3bacccfb18900d30cf0c6ee468425b.zip
* configure.in (prefix): Don't run pwd on srcdir unnecessarily.
-rwxr-xr-xconfigure1.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure1.in b/configure1.in
index 0481fdba7f0..2c3eb3d86eb 100755
--- a/configure1.in
+++ b/configure1.in
@@ -292,13 +292,13 @@ case "${srcdir}" in
292 "" ) 292 "" )
293 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'` 293 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
294 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then 294 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
295 srcdir=`(cd $confdir ; pwd)` 295 srcdir="${confdir}"
296 else 296 else
297 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then 297 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
298 srcdir=`pwd` 298 srcdir=`.`
299 else 299 else
300 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then 300 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
301 srcdir=`(cd .. ; pwd)` 301 srcdir=`..`
302 else 302 else
303 (echo "\ 303 (echo "\
304${progname}: Neither the current directory nor its parent seem to 304${progname}: Neither the current directory nor its parent seem to
@@ -315,7 +315,6 @@ sources may be found."
315 315
316 ## Otherwise, check if the directory they specified is okay. 316 ## Otherwise, check if the directory they specified is okay.
317 * ) 317 * )
318 srcdir=`(cd ${srcdir}; pwd)`
319 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then 318 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
320 (echo "\ 319 (echo "\
321${progname}: The directory specified with the \`--srcdir' option, 320${progname}: The directory specified with the \`--srcdir' option,
@@ -327,9 +326,17 @@ are."
327 exit 1 326 exit 1
328 fi 327 fi
329 ;; 328 ;;
329esac
330 330
331#### Make srcdir absolute, if it isn't already. It's important to
332#### avoid running the path through pwd unnecessary, since pwd can
333#### give you automounter prefixes, which can go away.
334case "${srcdir}" in
335 /* ) ;;
336 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
331esac 337esac
332 338
339
333### Make the necessary directories, if they don't exist. 340### Make the necessary directories, if they don't exist.
334if [ ! -d ./src ]; then 341if [ ! -d ./src ]; then
335 mkdir ./src 342 mkdir ./src