[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
$am_aux_dir fix for MacOS X
From: |
Lars J. Aas |
Subject: |
$am_aux_dir fix for MacOS X |
Date: |
Wed, 12 Sep 2001 14:45:35 +0200 |
User-agent: |
Mutt/1.2.5i |
Comments on this one?
Lars J
Index: ChangeLog
===================================================================
RCS file: /cvs/autoconf/ChangeLog,v
retrieving revision 1.1660
diff -u -n -r1.1660 ChangeLog
a0 7
2001-09-12 Lars J. Aas <address@hidden>
* m4/auxdir.m4 (AM_AUX_DIR_EXPAND): Divert output from 'cd' to
/dev/null to avoid filling $am_aux_dir with garbage that propagates
into sed-scripts in config.status. Problem triggers on MacOS X when
srcdir equals builddir.
Index: m4/auxdir.m4
===================================================================
RCS file: /cvs/autoconf/m4/auxdir.m4,v
retrieving revision 1.1
diff -u -F^m4_define\|A[CU]_DEFINE -u -r1.1 auxdir.m4
--- m4/auxdir.m4 2001/08/27 07:12:17 1.1
+++ m4/auxdir.m4 2001/09/12 12:43:42
@@ -37,8 +37,12 @@
# Another solution, used here, is to always expand $ac_aux_dir to an
# absolute PATH. The drawback is that using absolute paths prevent a
# configured tree to be moved without reconfiguration.
+#
+# Note that "cd $auxdir" will output the path on MacOS X, and must be
+# redirected to /dev/null to avoid filling am_aux_dir with garbage that
+# ends up destroying the sed scripts in config.status.
AC_DEFUN([AM_AUX_DIR_EXPAND], [
# expand $ac_aux_dir to an absolute path
-am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
+am_aux_dir=`CDPATH=:; cd $ac_aux_dir &>/dev/null && pwd`
])
- $am_aux_dir fix for MacOS X,
Lars J. Aas <=