changeset 3078:572c8024d831

* configure.in: When looking for source in the same directory as the configure script, make the path thus discovered absolute. If the user specifies the `--srcdir' switch, make that directory absolute too.
author Jim Blandy <jimb@redhat.com>
date Tue, 25 May 1993 14:15:30 +0000
parents 8bba60752a32
children 7c17d7f9d242
files configure1.in
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Tue May 25 14:04:41 1993 +0000
+++ b/configure1.in	Tue May 25 14:15:30 1993 +0000
@@ -286,7 +286,7 @@
   "" )
     confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
     if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
-      srcdir=$confdir
+      srcdir=`(cd $confdir ; pwd)`
     else
       if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
         srcdir=`pwd`
@@ -309,6 +309,7 @@
 
   ## Otherwise, check if the directory they specified is okay.
   * )
+    srcdir=`(cd ${srcdir}; pwd)`
     if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
       (echo "\
 ${progname}: The directory specified with the \`--srcdir' option,