blob: c57b4213569f3e41e30ac3c7aa752e41807fea5c [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001[PATCH] not check libperl under cross compiling
2
3Upstream-Status: Inappropriate [configuration]
4
5libperl ldflags returned by PGAC_CHECK_PERL_EMBED_LDFLAGS are native,
6can not be used to check target library.
7
8postpresql has the dependency on perl, so not need to check libperl
9again, like in postgresql-9.2.4
10
11Signed-off-by: Roy Li <rongqing.li@windriver.com>
12---
13 configure.in | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
Brad Bishop2eeb5252018-09-10 18:40:16 +000016Index: postgresql-9.4.20/configure.in
Brad Bishop316dfdd2018-06-25 12:45:53 -040017===================================================================
Brad Bishop2eeb5252018-09-10 18:40:16 +000018--- postgresql-9.4.20.orig/configure.in
19+++ postgresql-9.4.20/configure.in
20@@ -1931,7 +1931,7 @@ if test "$with_tcl" = yes; then
Brad Bishop316dfdd2018-06-25 12:45:53 -040021 fi
22
23 # check for <perl.h>
24-if test "$with_perl" = yes; then
25+if test "$with_perl" = yes && test "$cross_compiling" = no; then
26 ac_save_CPPFLAGS=$CPPFLAGS
Brad Bishop2eeb5252018-09-10 18:40:16 +000027 CPPFLAGS="$CPPFLAGS $perl_includespec"
Brad Bishop316dfdd2018-06-25 12:45:53 -040028 AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])],