8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Postfix for CORE-5204: take into an account --enable-binreloc flag

This commit is contained in:
AlexPeshkoff 2016-09-16 14:01:44 +03:00
parent c68a3bbd66
commit 6d7e4d91a6
3 changed files with 9 additions and 6 deletions

View File

@ -60,7 +60,6 @@ fi
# If NOCONFIGURE is set, skip the call to configure
if test "x$NOCONFIGURE" = "x"; then
conf_flags="$conf_flags --enable-binreloc"
echo Running $SRCDIR/configure $conf_flags "$@" ...
rm -f config.cache config.log
chmod a+x $SRCDIR/configure

View File

@ -1039,7 +1039,7 @@ updateInetdServiceEntry() {
fbUsage() {
pf=""
if [ "@HAS_CONF_DIR@" = "no" ]
if [ "@CHANGE_PATH_SUPPORT@" = "yes" ]
then
pf=', -path <install path>'
fi
@ -1063,7 +1063,7 @@ parseArgs() {
flSilent=1
;;
-path)
if [ "@HAS_CONF_DIR@" = "no" ]
if [ "@CHANGE_PATH_SUPPORT@" = "yes" ]
then
{ fb_install_prefix="$2"; }
if [ -z "${fb_install_prefix}" ]

View File

@ -21,13 +21,13 @@ define([XE_APPEND],[[$2]="$[$2] [$1]"])
dnl XE_PREPEND(value, varname)
define([XE_PREPEND],[[$2]="[$1] $[$2]"])
HAS_CONF_DIR=no
CHANGE_PATH_SUPPORT=yes
dnl XE_CONF_DIR(param, help, variable, default)
define([XE_CONF_DIR],[
AC_ARG_WITH([$1],
[AS_HELP_STRING([--with-$1],[$2])],
[[$3]="$withval"
HAS_CONF_DIR=yes
CHANGE_PATH_SUPPORT=no
AC_DEFINE_UNQUOTED([$3], "$[$3]", [$2])],
[[$3]='${fb_install_prefix}[$4]'
AC_DEFINE_UNQUOTED([$3], [""], [$2])]
@ -482,6 +482,10 @@ if test "$INSTALL_PREFIX" = ""; then
fi
AM_BINRELOC
if test -z "$BINRELOC_CFLAGS"
then
CHANGE_PATH_SUPPORT=no
fi
AC_SUBST(MAKEFILE_PREFIX)
AC_SUBST(AR_OPTIONS)
@ -649,7 +653,7 @@ XE_CONF_DIR(fblog, [log files DIR (PREFIX)], FB_LOGDIR)
XE_CONF_FILE(fblogfilename, [log file name within log dir (firebird.log)], FB_LOGFILENAME, firebird.log)
XE_CONF_DIR(fbglock, [guardian lock DIR (PREFIX)], FB_GUARDDIR)
XE_CONF_DIR(fbplugins, [plugins DIR (PREFIX)], FB_PLUGDIR, /plugins)
AC_SUBST(HAS_CONF_DIR)
AC_SUBST(CHANGE_PATH_SUPPORT)
dnl gpre built-in language support (C/C++ are mandatory)
GPRE_LANGUAGE_MODULES=""