summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2017-08-01 12:07:10 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-08-01 12:08:47 +0200
commit3641be10cf4347d522d31f004b54bb8b7e80a8fa (patch)
treec8fe405098fff9b4922370000c1661042069490b
parent29c085fd9d3fc972f75b3961905d6b4ecce7eb2b (diff)
downloadpatchelf-3641be10cf4347d522d31f004b54bb8b7e80a8fa.tar.gz
configure.ac: use "command -v" instead of "type -p"
"type -p" is a Bash thing, whereas "command -v" is specified by POSIX (more portable).
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d08a006..c2e5e98 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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