Skip to content

Commit 3641be1

Browse files
committed
configure.ac: use "command -v" instead of "type -p"
"type -p" is a Bash thing, whereas "command -v" is specified by POSIX (more portable).
1 parent 29c085f commit 3641be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ AC_ARG_WITH([page-size],
1313
)
1414

1515
if test "$PAGESIZE" = auto; then
16-
if type -p getconf &>/dev/null; then
16+
if command -v getconf >/dev/null; then
1717
PAGESIZE=$(getconf PAGESIZE || getconf PAGE_SIZE)
1818
fi
1919
if test "$PAGESIZE" = auto -o -z "$PAGESIZE"; then

0 commit comments

Comments
 (0)