2021-05-21 21:43:38 +00:00
|
|
|
dnl #
|
2021-05-21 23:45:40 +00:00
|
|
|
dnl # Check if shellcheck and/or checkbashisms are available.
|
2021-05-21 21:43:38 +00:00
|
|
|
dnl #
|
|
|
|
AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_SHELLCHECK], [
|
|
|
|
AC_CHECK_PROG([SHELLCHECK], [shellcheck], [yes])
|
2021-05-21 23:45:40 +00:00
|
|
|
AC_CHECK_PROG([CHECKBASHISMS], [checkbashisms], [yes])
|
|
|
|
|
2021-05-21 21:43:38 +00:00
|
|
|
AM_CONDITIONAL([HAVE_SHELLCHECK], [test "x$SHELLCHECK" = "xyes"])
|
2021-05-21 23:45:40 +00:00
|
|
|
AM_CONDITIONAL([HAVE_CHECKBASHISMS], [test "x$CHECKBASHISMS" = "xyes"])
|
2021-05-21 21:43:38 +00:00
|
|
|
])
|