2019-08-07 04:25:50 +08:00
|
|
|
diff --git a/configure b/configure
|
2023-11-15 04:54:21 +08:00
|
|
|
index 3243e23021..6d3f31fc95 100644
|
2019-08-07 04:25:50 +08:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2023-11-15 04:54:21 +08:00
|
|
|
@@ -4284,6 +4284,9 @@ for opt do
|
2019-08-07 04:25:50 +08:00
|
|
|
--libfuzzer=*)
|
|
|
|
libfuzzer_path="$optval"
|
|
|
|
;;
|
|
|
|
+ --debug)
|
|
|
|
+ enable debug_configure
|
|
|
|
+ ;;
|
|
|
|
*)
|
|
|
|
optname="${opt%%=*}"
|
|
|
|
optname="${optname#--}"
|
2023-11-15 04:54:21 +08:00
|
|
|
@@ -6630,7 +6633,11 @@ fi
|
2019-08-07 04:25:50 +08:00
|
|
|
|
|
|
|
enabled zlib && { check_pkg_config zlib zlib "zlib.h" zlibVersion ||
|
|
|
|
check_lib zlib zlib.h zlibVersion -lz; }
|
|
|
|
-enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
|
|
|
|
+if enabled debug_configure; then
|
|
|
|
+ enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2d
|
|
|
|
+else
|
|
|
|
+ enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
|
|
|
|
+fi
|
2022-03-01 02:25:31 +08:00
|
|
|
enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma
|
2019-08-07 04:25:50 +08:00
|
|
|
|
2023-01-04 02:32:17 +08:00
|
|
|
enabled zlib && test_exec $zlib_extralibs <<EOF && enable zlib_gzip
|
2023-11-15 04:54:21 +08:00
|
|
|
@@ -6793,7 +6800,11 @@ enabled libshaderc && require_pkg_config spirv_compiler "shaderc >= 2019.
|
2020-08-19 03:58:14 +08:00
|
|
|
enabled libshine && require_pkg_config libshine shine shine/layer3.h shine_encode_buffer
|
|
|
|
enabled libsmbclient && { check_pkg_config libsmbclient smbclient libsmbclient.h smbc_init ||
|
|
|
|
require libsmbclient libsmbclient.h smbc_init -lsmbclient; }
|
|
|
|
-enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
|
|
|
|
+if enabled debug_configure; then
|
2022-09-20 03:30:40 +08:00
|
|
|
+ enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
|
2020-08-19 03:58:14 +08:00
|
|
|
+else
|
|
|
|
+ enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
|
|
|
|
+fi
|
|
|
|
enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr
|
2023-11-15 04:54:21 +08:00
|
|
|
enabled libssh && require_pkg_config libssh "libssh >= 0.6.0" libssh/sftp.h sftp_init
|
2020-08-19 03:58:14 +08:00
|
|
|
enabled libspeex && require_pkg_config libspeex speex speex/speex.h speex_decoder_init
|