[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] 2.58: Absolute paths no longer such
From: |
Maciej W. Rozycki |
Subject: |
[patch] 2.58: Absolute paths no longer such |
Date: |
Sat, 15 Nov 2003 17:49:48 +0100 (CET) |
Hello,
As of autoconf 2.58, the abs_* variables documented as set to respective
absolute paths are no longer set thus -- they contain relative paths which
leads to software breaking. I've tracked it down to AS_SET_CATFILE that
contains code that used to be in _AC_SRCPATHS in 2.57. With the move the
code was changed not to do a `cd <dir>; pwd' sequence anymore so if a
relative path is passed as input, a relative one is output as well.
Here is a proposed fix -- the sequence as above is restored, after
assuring the directory exists. Please apply.
2003-11-15 Maciej W. Rozycki <address@hidden>
* lib/m4sugar/m4sh.m4 (AS_SET_CATFILE): Create the handled
directory and change to it to retrieve its absolute path.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: address@hidden, PGP key available +
autoconf-2.58-catfile.patch
diff -up --recursive --new-file autoconf-2.58.macro/lib/m4sugar/m4sh.m4
autoconf-2.58/lib/m4sugar/m4sh.m4
--- autoconf-2.58.macro/lib/m4sugar/m4sh.m4 2003-11-04 08:28:53.000000000
+0000
+++ autoconf-2.58/lib/m4sugar/m4sh.m4 2003-11-08 22:37:50.000000000 +0000
@@ -763,7 +763,9 @@ m4_define([AS_SET_CATFILE],
[[\\/]]* | ?:[[\\/]]* ) $1=$3;;
*) $1=$2/$3;;
esac;;
-esac[]dnl
+esac
+AS_MKDIR_P([$$1])
+$1=`cd $$1 && pwd`[]dnl
])# AS_SET_CATFILE
- [patch] 2.58: Absolute paths no longer such,
Maciej W. Rozycki <=