scripts like pgaccess.
else
default_port=5432
fi
-# Need both of these because backend wants an integer and frontend a string
+echo "$ac_t""$default_port" 1>&6
+# Need both of these because some places want an integer and some a string
cat >> confdefs.h <<EOF
#define DEF_PGPORT ${default_port}
EOF
#define DEF_PGPORT_STR "${default_port}"
EOF
-echo "$ac_t""$default_port" 1>&6
#
s%@PORTNAME@%$PORTNAME%g
s%@TAS@%$TAS%g
s%@MULTIBYTE@%$MULTIBYTE%g
+s%@default_port@%$default_port%g
s%@enable_shared@%$enable_shared%g
s%@enable_rpath@%$enable_rpath%g
s%@CC@%$CC%g
PGAC_ARG_REQ(with, pgport, [ --with-pgport=PORTNUM change default port number [5432]],
[default_port=$withval],
[default_port=5432])
-# Need both of these because backend wants an integer and frontend a string
+AC_MSG_RESULT([$default_port])
+# Need both of these because some places want an integer and some a string
AC_DEFINE_UNQUOTED(DEF_PGPORT, ${default_port})
AC_DEFINE_UNQUOTED(DEF_PGPORT_STR, "${default_port}")
-AC_MSG_RESULT([$default_port])
-
+AC_SUBST(default_port)
#
# Maximum number of allowed connections (--with-maxbackends), default 32
# -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.117 2001/01/20 22:56:33 tgl Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.118 2001/02/07 20:13:27 tgl Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
NSGMLS = @NSGMLS@
SGMLSPL = @SGMLSPL@
+# Feature settings
+
+DEF_PGPORT = @default_port@
+
##########################################################################
#