summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-04-28 23:41:16 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-29 19:06:54 (GMT)
commit74979fb19b2c7220dab4196c0d34e0c29b341b09 (patch)
tree6ae4685ef53ec2b10593fe19fc1397bc8619f311 /config
parent0f34b0ebf0651fd26fde1646ac1fb4031e0c57a2 (diff)
Add checking for *sum and unzip
Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'config')
-rw-r--r--config/configure.in.in12
-rw-r--r--config/global/download.in5
2 files changed, 17 insertions, 0 deletions
diff --git a/config/configure.in.in b/config/configure.in.in
index c8003a0..3d6a628 100644
--- a/config/configure.in.in
+++ b/config/configure.in.in
@@ -45,5 +45,17 @@ config CONFIGURE_has_svn
config CONFIGURE_has_git
@KCONFIG_git@
+config CONFIGURE_has_md5sum
+ @KCONFIG_md5sum@
+
+config CONFIGURE_has_sha1sum
+ @KCONFIG_sha1sum@
+
+config CONFIGURE_has_sha256sum
+ @KCONFIG_sha256sum@
+
+config CONFIGURE_has_sha512sum
+ @KCONFIG_sha512sum@
+
config CONFIGURE_has_install_with_strip_program
@KCONFIG_install_with_strip_program@
diff --git a/config/global/download.in b/config/global/download.in
index 89b05ce..57f42e6 100644
--- a/config/global/download.in
+++ b/config/global/download.in
@@ -135,6 +135,7 @@ endif # USE_MIRROR
config VERIFY_DOWNLOAD_DIGEST
bool "Verify download digests (checksums)"
default y
+ depends on CONFIGURE_has_sha512sum || CONFIGURE_has_sha256sum || CONFIGURE_has_sha1sum || CONFIGURE_has_md5sum
if VERIFY_DOWNLOAD_DIGEST
@@ -143,14 +144,18 @@ choice
config VERIFY_DOWNLOAD_DIGEST_SHA512
bool "SHA-512"
+ depends on CONFIGURE_has_sha512sum
config VERIFY_DOWNLOAD_DIGEST_SHA256
+ depends on CONFIGURE_has_sha256sum
bool "SHA-256"
config VERIFY_DOWNLOAD_DIGEST_SHA1
+ depends on CONFIGURE_has_sha1sum
bool "SHA-1"
config VERIFY_DOWNLOAD_DIGEST_MD5
+ depends on CONFIGURE_has_md5sum
bool "MD5"
endchoice