From: Akim Demaille Date: Fri, 7 Jul 2000 17:33:16 +0000 (+0000) Subject: * acgeneral.m4 (_AC_SHELL_DIRNAME): Return `.', not `' when there X-Git-Tag: autoconf-2.50~772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6147495f68fa1d035b50dcf885be9f9ad21ba404;p=thirdparty%2Fautoconf.git * acgeneral.m4 (_AC_SHELL_DIRNAME): Return `.', not `' when there is no directory part. --- diff --git a/ChangeLog b/ChangeLog index b0fe9c962..ce1fd3f20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-07 Akim Demaille + + * acgeneral.m4 (_AC_SHELL_DIRNAME): Return `.', not `' when there + is no directory part. + 2000-07-07 François Pinard * tests/atgeneral.m4 (AT_CHECK): Fix a redirection problem. diff --git a/acgeneral.m4 b/acgeneral.m4 index df3c17dbc..10e744e74 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -780,7 +780,7 @@ done; } # Simulate running `dirname(1)' on PATHNAME, not all systems have it. # This macro must be usable from inside ` `. define([_AC_SHELL_DIRNAME], -[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,']) +[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,;s,^$,.,']) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index df3c17dbc..10e744e74 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -780,7 +780,7 @@ done; } # Simulate running `dirname(1)' on PATHNAME, not all systems have it. # This macro must be usable from inside ` `. define([_AC_SHELL_DIRNAME], -[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,']) +[echo $1 | sed '/^\/*$/!s,//*$,,;s,[[^/]]*$,,;s,//*$,/,;/^\/$/!s,/$,,;s,^$,.,'])