summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBruce Momjian2006-02-28 22:34:24 +0000
committerBruce Momjian2006-02-28 22:34:24 +0000
commitb04d19f23000357a97d1285b15289c3edac5591f (patch)
tree1f3246733ec735ab2d4ba3cc956f5c63b063f08a /configure.in
parentc979afb7e0dc1fbe52e4832cdba04b44e704d1af (diff)
Fix PG_VERSION_NUM for different awk -F handling.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index b22119f333..c828b7b1b4 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.452 2006/02/28 21:59:19 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.453 2006/02/28 22:34:24 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -586,8 +586,10 @@ if test "$with_python" = yes; then
fi
# Supply a numeric version string for use by 3rd party add-ons
+# awk -F is a regex on some platforms, and not on others, so make "." a tab
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
-$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
+tr '.' ' ' |
+$AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
##