diff options
author | def <def@huumeet.info> | 2020-11-08 20:09:59 +0300 |
---|---|---|
committer | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-11-09 02:28:58 +0300 |
commit | d39e178b531585e445f46f317ae1ffa0d27a1bf6 (patch) | |
tree | 50520978f3934d892013c72de6a3acdb5a4dd31e /configure | |
parent | 473406e479bf6ba23b63e52e52c685202d591883 (diff) |
Add support for clickable HTTP(S) download links
Add a compile-time macro -DDOWNLOAD_URI_BASE (and autotools configure
option `--with-download-base=URI`) to specify a download URI base path.
For example, use "http://foo.bar/telegram/" base instead of the default
"file:///tmp/downloads/" to create clickable HTTP links for downloads
when running bitlbee with telegram-purple & HTTP server at foo.bar host.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -694,6 +694,7 @@ with_openssl with_zlib enable_libwebp enable_libpng +with_download_base enable_icons enable_translation ' @@ -1347,6 +1348,8 @@ Optional Packages: --with-zlib=DIR root directory path of zlib installation [defaults to /usr/local or /usr if not found in /usr/local] --without-zlib to disable zlib usage completely + --with-download-base=URI + Set default base URI for downloads Some influential environment variables: CC C compiler command @@ -4568,6 +4571,29 @@ fi fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for download URI base path" >&5 +$as_echo_n "checking for download URI base path... " >&6; } + +# Check whether --with-download_base was given. +if test "${with_download_base+set}" = set; then : + withval=$with_download_base; { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${withval}" >&5 +$as_echo "${withval}" >&6; } + if test x$withval != xno; then : + + +cat >>confdefs.h <<_ACEOF +#define DOWNLOAD_URI_BASE "$withval" +_ACEOF + + +fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi + + # Check whether --enable-icons was given. if test "${enable_icons+set}" = set; then : enableval=$enable_icons; |