develooper Front page | perl.perl5.porters | Postings from January 2001

[PATCH 5.7.1/Configure] failure to set src='.'

Thread Next
From:
Robin Barker
Date:
January 2, 2001 07:24
Subject:
[PATCH 5.7.1/Configure] failure to set src='.'
Message ID:
200101021524.PAA15145@tempest.npl.co.uk
If you call configure as C<./Configure> or C<sh ./Configure>,
$src is set to the absolute path name, not '.'.  

This, in turn, means -Dmksymlink tries to do its stuff because
it does not think it is in the src directory.

The patch, again perl@8269, fixes is this.

Robin

--- Configure.orig      Thu Dec 21 16:12:53 2000
+++ Configure
@@ -1434,6 +1434,7 @@
     */*) src=`echo $0 | sed -e 's%/[^/][^/]*$%%'`
          case "$src" in
         /*)    ;;
+        .)     ;;
          *)    src=`cd ../$src && pwd` ;;
         esac
          ;;

-- 
Robin Barker                        | Email: Robin.Barker@npl.co.uk
CMSC, Building 10,                  | Phone: +44 (0) 20 8943 7090
National Physical Laboratory,       | Fax:   +44 (0) 20 8977 7091
Teddington, Middlesex, UK. TW11 OLW | WWW:   http://www.npl.co.uk

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About