1 files changed, 11 insertions, 0 deletions
@@ -18,6 +18,17 @@ cleanup()
rm -rf libltdl
+# Check if shell supports builtin 'type'.
+if test -z "$errmsg"; then
+ if ! (eval 'type type') >/dev/null 2>&1
+ errmsg='Shell does not support type builtin'
+ exit 1
# This is more portable than `which' but comes with
# the caveat of not(?) properly working on busybox's ash: