Merge pull request #129 from bjornfor/posix

configure.ac: use "command -v" instead of "type -p"
This commit is contained in:
Domen Kožar
2018-01-05 12:03:11 +00:00
committed by GitHub

View File

@@ -13,7 +13,7 @@ AC_ARG_WITH([page-size],
)
if test "$PAGESIZE" = auto; then
if type -p getconf &>/dev/null; then
if command -v getconf >/dev/null; then
PAGESIZE=$(getconf PAGESIZE || getconf PAGE_SIZE)
fi
if test "$PAGESIZE" = auto -o -z "$PAGESIZE"; then