[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
One more fix for ash-0.2 braindamage
From: |
Pavel Roskin |
Subject: |
One more fix for ash-0.2 braindamage |
Date: |
Mon, 25 Sep 2000 13:19:07 -0400 (EDT) |
Hello!
When configure is run under ash-0.2 it cannot find "missing".
Unfortunately, $? isn't changed by variable assignments in ash-0.2.
In fact, even besides this bug it's correct not to rely on $? after
assigning to CDPATH. CDPATH=: failed - so what? Not to run "cd" and
"pwd" and end up with MISSING=/missing?
ChangeLog:
* m4/init.m4 (AM_INIT_AUTOMAKE): Don't rely on variable
assignments changing $? - it' broken in ash-0.2.
* m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise.
Regards,
Pavel Roskin
_________________________
Index: m4/init.m4
--- m4/init.m4 Wed Aug 2 08:45:32 2000
+++ m4/init.m4 Mon Sep 25 13:04:31 2000
@@ -26,7 +26,7 @@
[dnl We require 2.13 because we rely on SHELL being computed by configure.
AC_REQUIRE([AC_PROG_INSTALL])dnl
# test to see if srcdir already configured
-if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
+if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean"
there first])
fi
Index: m4/missing.m4
--- m4/missing.m4 Wed Aug 2 08:45:32 2000
+++ m4/missing.m4 Mon Sep 25 13:04:42 2000
@@ -26,7 +26,7 @@
# If it does, set am_missing_run to use it, otherwise, to nothing.
AC_DEFUN([AM_MISSING_HAS_RUN], [
test x"${MISSING+set}" = xset || \
- MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
+ MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run :"; then
am_missing_run="$MISSING --run "
_________________________
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- One more fix for ash-0.2 braindamage,
Pavel Roskin <=