]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix spurious output in configure
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 6 Nov 2025 07:00:35 +0000 (08:00 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 6 Nov 2025 07:00:57 +0000 (08:00 +0100)
If sizeof off_t is 4, then configure will print a line saying just "0"
after the test.  This is the output of the following "expr" command.
If we are using expr just for the exit code, the output should be sent
to /dev/null, as is done elsewhere.

configure
configure.ac

index 5d08a96f03825bed8d3404b1cda7e83378d06e5b..3a0ed11fa8e2f163bf364639d1e408b97381bdd7 100755 (executable)
--- a/configure
+++ b/configure
@@ -15387,7 +15387,7 @@ _ACEOF
 
 # If we don't have largefile support, can't handle segment size >= 2GB.
 if test "$ac_cv_sizeof_off_t" -lt 8; then
-  if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
+  if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024 >/dev/null; then
     as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
   fi
 fi
index 6c802deaacb12ede983f0b5ed1f6594b461e1c29..c2413720a188137d33717cc48950255c7743f5fa 100644 (file)
@@ -1753,7 +1753,7 @@ AC_CHECK_SIZEOF([off_t])
 
 # If we don't have largefile support, can't handle segment size >= 2GB.
 if test "$ac_cv_sizeof_off_t" -lt 8; then
-  if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
+  if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024 >/dev/null; then
     AC_MSG_ERROR([Large file support is not enabled. Segment size cannot be larger than 1GB.])
   fi
 fi