From: K. Richard Pixley Date: Thu, 16 Apr 1992 01:24:59 +0000 (+0000) Subject: correction to makesrcdir for relative srcdir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee1dc1b77dfee8ce0beb144a05bc04ad25dc65f9;p=binutils-gdb.git correction to makesrcdir for relative srcdir --- diff --git a/ChangeLog b/ChangeLog index f089c9dab51..84361d51c7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 15 17:27:34 1992 K. Richard Pixley (rich@rtl.cygnus.com) + + * configure: correct makesrcdir when subdir is . + Tue Apr 14 11:56:09 1992 Per Bothner (bothner@cygnus.com) * configure: Add support for 'subdirs' variable, which is diff --git a/configure b/configure index 5fd474e7387..fd0384b5e09 100755 --- a/configure +++ b/configure @@ -468,7 +468,10 @@ for subdir in . ${subdirs} ; do makesrcdir=`echo ${srcdir}/${subdir} | sed -e 's|/\.$||'` ;; *) # otherwise relative - makesrcdir=../${srcdir}/${subdir} + case "${subdir}" in + .) makesrcdir=${srcdir} ;; + *) makesrcdir=../${srcdir}/${subdir} ;; + esac ;; esac