]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Tests defs: $srcdir is unconditionally substituted.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 2 Jun 2010 19:45:57 +0000 (21:45 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 5 Sep 2010 23:00:24 +0000 (01:00 +0200)
* tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@.
Remove code $srcdir normalization, which is now useless.

ChangeLog
tests/defs.in

index 572a37e87f7b323bea27d584ef59d169553b2542..a42df97ac69bef78e8f0faf4c88f4216c02668ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       Tests defs: $srcdir is unconditionally substituted.
+       * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@.
+       Remove code for $srcdir normalization, which is now useless.
+
 2010-09-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        Tests defs: make spacing more consistent.
index fe2dbafecccf371dc21b8d8ac3ee0c5e108b9d10..109c458a5822f3c9c7b328e0aa5dc334f72bdde9 100644 (file)
@@ -21,7 +21,7 @@
 # Tom Tromey <tromey@cygnus.com>
 
 # Absolutely necessary variable(s).
-srcdir=${srcdir-'@abs_srcdir@'}
+srcdir='@abs_srcdir@'
 
 # Protect this file against multiple inclusion, useful for generated tests.
 if test x"$am_skip_defs" = xyes; then
@@ -234,18 +234,6 @@ do
   esac
 done
 
-
-# Always use an absolute srcdir.  Otherwise symlinks made in subdirs
-# of the test dir just won't work.
-case "$srcdir" in
- [\\/]* | ?:[\\/]*)
-    ;;
-
- *)
-    srcdir=`CDPATH=: && cd "$srcdir" && pwd`
-    ;;
-esac
-
 # We use a trap below for cleanup.  This requires us to go through
 # hoops to get the right exit status transported through the signal.
 # So use `Exit STATUS' instead of `exit STATUS' inside of the tests.