mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
More modifications to make building more interactive:
Allow installer to change DEF_PGPORT Allow installer to disable HBA
This commit is contained in:
parent
a03dc60508
commit
0213a81dca
27
src/build
27
src/build
@ -42,14 +42,37 @@ fi
|
|||||||
|
|
||||||
USE_LOCALE=no
|
USE_LOCALE=no
|
||||||
echo "Define USE_LOCALE to get Postgres work (sort, search)"
|
echo "Define USE_LOCALE to get Postgres work (sort, search)"
|
||||||
$ECHO_N "with national alphabet. [no]: $ECHO_C"
|
$ECHO_N "with national alphabet. [$USE_LOCALE]: $ECHO_C"
|
||||||
read a
|
read a
|
||||||
if [ "$a." != "." ]
|
if [ "$a." != "." ]
|
||||||
then
|
then
|
||||||
USE_LOCALE=${a}
|
USE_LOCALE=${a}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export BUILDRUN USE_LOCALE
|
DEF_PGPORT=5432
|
||||||
|
echo ""
|
||||||
|
echo "DEF_PGPORT is the TCP port number on which the Postmaster listens by"
|
||||||
|
echo "default. This can be overriden by command options, environment "
|
||||||
|
echo "variables, and the postconfig hook."
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
$ECHO_N "Define DEF_PGPORT to [$DEF_PGPORT]: $ECHO_C"
|
||||||
|
read a
|
||||||
|
if [ "$a." != "." ]
|
||||||
|
then
|
||||||
|
DEF_PGPORT=${a}
|
||||||
|
fi
|
||||||
|
|
||||||
|
NOHBA=no
|
||||||
|
echo ""
|
||||||
|
$ECHO_N "Do you wish to disable Host Based Authentication(HBA) [no]: $ECHO_C"
|
||||||
|
read a
|
||||||
|
if [ "$a." != "." ]
|
||||||
|
then
|
||||||
|
NOHBA=${a}
|
||||||
|
fi
|
||||||
|
|
||||||
|
export BUILDRUN USE_LOCALE DEF_PGPORT NOHBA
|
||||||
|
|
||||||
./configure --prefix=${IDIR}
|
./configure --prefix=${IDIR}
|
||||||
|
|
||||||
|
358
src/configure
vendored
358
src/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -91,12 +91,6 @@ AC_SUBST(INSTLOPTS)
|
|||||||
AC_SUBST(INSTL_LIB_OPTS)
|
AC_SUBST(INSTL_LIB_OPTS)
|
||||||
AC_SUBST(INSTL_EXE_OPTS)
|
AC_SUBST(INSTL_EXE_OPTS)
|
||||||
|
|
||||||
if test "$USE_LOCALE" = "yes"
|
|
||||||
then
|
|
||||||
AC_MSG_RESULT(setting USE_LOCALE)
|
|
||||||
AC_DEFINE(USE_LOCALE)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Check the option to echo to inhibit newlines.
|
dnl Check the option to echo to inhibit newlines.
|
||||||
ECHO_N_OUT=`echo -n "" | wc -c`
|
ECHO_N_OUT=`echo -n "" | wc -c`
|
||||||
ECHO_C_OUT=`echo "\c" | wc -c`
|
ECHO_C_OUT=`echo "\c" | wc -c`
|
||||||
@ -194,4 +188,25 @@ AC_SUBST(STRERROR)
|
|||||||
AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
|
AC_CHECK_FUNC(cbrt, AC_DEFINE(HAVE_CBRT), AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT)))
|
||||||
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
|
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), AC_CHECK_LIB(m, rint, AC_DEFINE(HAVE_RINT)))
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(setting USE_LOCALE)
|
||||||
|
if test "$USE_LOCALE" = "yes"
|
||||||
|
then
|
||||||
|
AC_MSG_RESULT(enabled)
|
||||||
|
AC_DEFINE(USE_LOCALE)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(disabled)
|
||||||
|
fi
|
||||||
|
AC_MSG_CHECKING(setting DEF_PGPORT)
|
||||||
|
AC_DEFINE_UNQUOTED(DEF_PGPORT, "${DEF_PGPORT}")
|
||||||
|
AC_MSG_RESULT($DEF_PGPORT)
|
||||||
|
AC_MSG_CHECKING(setting HBA)
|
||||||
|
if test "$NOHBA" = "no"
|
||||||
|
then
|
||||||
|
AC_MSG_RESULT(enabled)
|
||||||
|
AC_DEFINE(HBA)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(disabled)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh)
|
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh)
|
||||||
|
@ -129,16 +129,16 @@
|
|||||||
/*
|
/*
|
||||||
* DEF_PGPORT is the TCP port number on which the Postmaster listens by
|
* DEF_PGPORT is the TCP port number on which the Postmaster listens by
|
||||||
* default. This can be overriden by command options, environment variables,
|
* default. This can be overriden by command options, environment variables,
|
||||||
* and the postconfig hook.
|
* and the postconfig hook. (set by build script)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DEF_PGPORT "5432"
|
#undef DEF_PGPORT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If you do not plan to use Host based authentication,
|
* If you do not plan to use Host based authentication,
|
||||||
* comment out the following line
|
* comment out the following line (set by build script)
|
||||||
*/
|
*/
|
||||||
#define HBA
|
#undef HBA
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On architectures for which we have not implemented spinlocks (or
|
* On architectures for which we have not implemented spinlocks (or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user