[gimp/gimp-2-10] configure: --enable-check-update now with an "auto" value.



commit dd49817a2fbb89abfcb84d90995d2393414b37fc
Author: Jehan <jehan girinstud io>
Date:   Thu Aug 26 01:19:58 2021 +0200

    configure: --enable-check-update now with an "auto" value.
    
    By default, when on "auto", the update check feature will be set
    depending on the OS. In particular, on Windows and macOS, it will be ON,
    because these are the 2 OSes which we distribute without an update
    channel, hence where people used to have very outdated versions of GIMP.
    
    On Linux, *BSD, and so on, distribution provide updates through package
    repositories.
    
    (cherry picked from commit 0e46fadf439988ddc56a59133d55c5a6ec019058)

 configure.ac | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 35e8cd70fa..5a7e7d28ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2593,11 +2593,19 @@ GIMP_PACKAGE_REVISION=$with_revision
 AC_SUBST(GIMP_PACKAGE_REVISION)
 
 AC_ARG_ENABLE(check-update,
-              [  --disable-check-update
-                          GIMP will not look up new version availability on startup],
-              check_update=no,
-              check_update=yes)
-if test "x$check_update" = xyes; then
+              [  --enable-check-update
+                          GIMP will not look up new version availability on startup (default=auto)],,
+              enable_check_update=auto)
+if test "x$enable_check_update" != xno &&
+   test "x$enable_check_update" != xyes; then
+  if test "x$platform_osx" = "xyes" ||
+     test "x$platform_win32" = "xyes"; then
+     enable_check_update=yes
+  else
+     enable_check_update=no
+  fi
+fi
+if test "x$enable_check_update" = xyes; then
   AC_DEFINE(CHECK_UPDATE, 1,
               [Define to 1 if automatic update check is enabled])
 fi
@@ -3131,7 +3139,7 @@ Extra Binaries:
   gimp-console:              $enable_gimp_console
 
 Optional Features:
-  Check updates at startup:  $check_update
+  Check updates at startup:  $enable_check_update
   Levin matting engine:      $have_matting_levin
   Language selection:        $have_iso_codes
   Vector icons:              $enable_vector_icons


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]