From dfc967906c8ca4786dd5e6beebf404c5ebc6b8d4 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 1 Oct 2009 08:20:13 +0200 Subject: [PATCH] Unconditionally check for junk ./--version after mkdir search loop. * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for presence of ./--version. Reported by Eric Blake. --- ChangeLog | 6 ++++++ lib/autoconf/programs.m4 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d3443f7b..6ff22390 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-10-01 Paolo Bonzini + + Unconditionally check for junk ./--version after mkdir search loop. + * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for + presence of ./--version. Reported by Eric Blake. + 2009-09-22 Ralf Wildenhues Clarify documentation about Solaris sed quantifier restriction. diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index 25a284d1..9e27bf71 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -680,6 +680,7 @@ if test -z "$MKDIR_P"; then esac done done])]) + test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else @@ -687,7 +688,6 @@ if test -z "$MKDIR_P"; then # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. - test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi -- 2.47.2