diff options
| author | Andrew Dunstan | 2008-05-03 00:24:06 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2008-05-03 00:24:06 +0000 |
| commit | d61eecb5a17d1b9373ca75fb4d6de4e35ba3f640 (patch) | |
| tree | b0900c3ff218a91aa4a0a841b1e5c6e5826b2d74 /configure.in | |
| parent | 47391591ba6aa1c7153372f09d1f88c98a0165d4 (diff) | |
Provide for MSVC config equivalents of recently added configure options. Remove
any hardcoding of those options. Along the way, reorder the expression used to
calculate RELSEG_SIZE to make it slightly clearer. For now wal_segsize is only
allowed to have a value of 1 on Windows - we can relax that when we get full
large file support in the backend.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 9925389a472..b8f83960308 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.559 2008/05/02 19:52:37 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.560 2008/05/03 00:24:05 adunstan Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -257,7 +257,8 @@ PGAC_ARG_REQ(with, segsize, [ --with-segsize=SEGSIZE set table segment size in [segsize=$withval], [segsize=1]) # this expression is set up to avoid unnecessary integer overflow -RELSEG_SIZE=`expr '(' 1024 '*' ${segsize} / ${blocksize} ')' '*' 1024` +# blocksize is already guaranteed to be a factor of 1024 +RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024` test $? -eq 0 || exit 1 AC_MSG_RESULT([${segsize}GB]) |
