From: Paul Eggert Date: Fri, 26 Sep 2003 08:24:30 +0000 (+0000) Subject: (_AS_MKDIR_P_PREPARE): If mkdir -p . fails, X-Git-Tag: AUTOCONF-2.57e~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403b1490b87a6c3ba8808626e5235937262819ae;p=thirdparty%2Fautoconf.git (_AS_MKDIR_P_PREPARE): If mkdir -p . fails, rm -fr ./-p to remove junk left behind on NextStep and OpenStep. --- diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index 9826b538..ae743f8f 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -1,7 +1,7 @@ # This file is part of Autoconf. -*- Autoconf -*- # M4 sugar for common shell constructs. # Requires GNU M4 and M4sugar. -# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -690,6 +690,7 @@ m4_defun([_AS_MKDIR_P_PREPARE], [if mkdir -p . 2>/dev/null; then as_mkdir_p=: else + rm -fr ./-p as_mkdir_p=false fi ])# _AS_MKDIR_P_PREPARE