]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add ./configure code to check for and enable/disable S3 support
authorSven Hartge <sven@svenhartge.de>
Tue, 2 Jun 2020 12:56:52 +0000 (14:56 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 2 Jun 2020 12:57:45 +0000 (14:57 +0200)
bacula/autoconf/configure.in

index 020ffffe8e72fcae21825c5034ddefe1c410ba19..97003261e1b2b9bf06da963e45b29cbbc563bfae 100644 (file)
@@ -1938,6 +1938,20 @@ AC_DEFINE_UNQUOTED([STREAM_CLOEXEC], "$ac_cv_feature_stream_cloexec_flag", [fope
 
 AC_CHECK_FUNC(accept4, [AC_DEFINE(HAVE_ACCEPT4, 1, [Define to 1 if you have the 'accept4' function.])])
 
+dnl ---------------------------------------------------
+dnl Check for S3 support/directory (default on)
+dnl ---------------------------------------------------
+dnl this allows you to turn it completely off
+
+AC_ARG_ENABLE(s3,
+   AC_HELP_STRING([--disable-s3], [disable S3 support @<:@default=yes@:>@]),
+   [
+       if test x$enableval = xno; then
+         support_s3=no
+       fi
+   ]
+)
+
 S3_INC=
 S3_LIBS=
 S3_LDFLAGS=
@@ -3718,6 +3732,7 @@ Configuration on `date`:
    Encryption support:        ${support_crypto}
    ZLIB support:              ${have_zlib}
    LZO support:               ${have_lzo}
+   S3 support:                ${have_libs3}
    enable-smartalloc:         ${support_smartalloc}
    enable-lockmgr:            ${support_lockmgr}
    bat support:               ${support_bat}