diff options
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 57fd6dc..b76752f 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,31 @@ AC_ARG_WITH( ] ) AC_ARG_WITH( + [sha512sum], + [AS_HELP_STRING([--with-sha512sum=PATH], [path to sha512sum utility])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR( + [--with-sha512sum requires an argument]) + ;; + 'no') + AC_MSG_ERROR([sha512sum is required]) + ;; + *) + SHA512SUM="${withval}" + AC_SUBST([SHA512SUM]) + ;; + esac + ], + [ + AC_PATH_PROG([SHA512SUM], [sha512sum]) + if test -z "${SHA512SUM}"; then + AC_MSG_ERROR([sha512sum not found]) + fi + ] +) +AC_ARG_WITH( [ich9gen], [AS_HELP_STRING([--with-ich9gen=PATH], [path to ich9gen utility])], [ |