mirror of
https://github.com/postgres/postgres.git
synced 2025-12-04 12:02:48 +03:00
Fix configure to generate correct expansion of library directory
in pl/plpgsql/src/mklang.sql.
This commit is contained in:
@@ -1138,6 +1138,26 @@ then
|
||||
AC_SUBST(USE_ODBC)
|
||||
fi
|
||||
|
||||
dnl Output files that are neither makefiles nor shell scripts probably
|
||||
dnl need fully-expanded substitutions, rather than partial expansions
|
||||
dnl that include references to other variables. Currently the only
|
||||
dnl such item that's needed is an expanded version of libdir, but
|
||||
dnl others may be needed someday. NOTE: 'eval' technique only copes
|
||||
dnl with one level of indirect reference per expansion; two levels is
|
||||
dnl currently enough for libdir, but it's ugly...
|
||||
|
||||
dnl First we have to force 'NONE' prefix to be expanded itself.
|
||||
dnl For some reason, autoconf 2.13 doesn't do this until AC_OUTPUT,
|
||||
dnl which is too late...
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
|
||||
eval expanded_libdir="$libdir"
|
||||
eval expanded_libdir="$expanded_libdir"
|
||||
AC_SUBST(expanded_libdir)
|
||||
|
||||
dnl Finally ready to produce output files ...
|
||||
|
||||
AC_OUTPUT(
|
||||
GNUmakefile
|
||||
Makefile.global
|
||||
|
||||
Reference in New Issue
Block a user