diff options
author | Tom Tromey <tromey@redhat.com> | 1997-10-21 06:41:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1997-10-21 06:41:53 +0000 |
commit | ac4023d124e2a0a0bb3426f7996c766672fa2096 (patch) | |
tree | 896f8df80b798c0c22b5f9fc7ac5ed106913572c /aclocal.m4 | |
parent | d14bbc16e28cddf60daf5a401d979565165e6eb9 (diff) | |
download | automake-ac4023d124e2a0a0bb3426f7996c766672fa2096.tar.gz |
sanity bug fix
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 443c01dab..e283fdc36 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -72,6 +72,17 @@ if ( # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi + if test "[$]*" != "X $srcdir/configure conftestfile" \ + && test "[$]*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + test "[$]2" = conftestfile ) then |