_AS_DIRNAME_PREPARE

This commit is contained in:
Stepan Kasal 2006-04-01 19:48:14 +00:00
parent 784f54dfcd
commit 0435cce62a

View File

@ -743,11 +743,23 @@ m4_defun([AS_DIRNAME_SED],
s/.*/./; q']])
m4_defun([AS_DIRNAME],
[(dirname $1) 2>/dev/null ||
[AS_REQUIRE([_$0_PREPARE])dnl
$as_dirname $1 ||
AS_DIRNAME_EXPR([$1]) 2>/dev/null ||
AS_DIRNAME_SED([$1])])
# _AS_DIRNAME_PREPARE
# --------------------
m4_defun([_AS_DIRNAME_PREPARE],
[if (dirname /) >/dev/null 2>&1; then
as_dirname=dirname
else
as_dirname=false
fi
])# _AS_DIRNAME_PREPARE
# AS_EXECUTABLE_P
# ---------------
# Check whether a file is executable.