1*eaae0b33SPatrick WilliamsFrom 1a9416bae71aa935797add3fa11407732ad010c0 Mon Sep 17 00:00:00 2001 219323693SBrad BishopFrom: Changqing Li <changqing.li@windriver.com> 319323693SBrad BishopDate: Tue, 27 Nov 2018 13:25:15 +0800 4595f6308SAndrew GeisslerSubject: [PATCH] not check libperl under cross compiling 5eb8dc403SDave Cobbley 6eb8dc403SDave CobbleyUpstream-Status: Inappropriate [configuration] 7eb8dc403SDave Cobbley 8eb8dc403SDave Cobbleylibperl ldflags returned by PGAC_CHECK_PERL_EMBED_LDFLAGS are native, 9eb8dc403SDave Cobbleycan not be used to check target library. 10eb8dc403SDave Cobbley 11eb8dc403SDave Cobbleypostpresql has the dependency on perl, so not need to check libperl 12eb8dc403SDave Cobbleyagain, like in postgresql-9.2.4 13eb8dc403SDave Cobbley 14eb8dc403SDave CobbleySigned-off-by: Roy Li <rongqing.li@windriver.com> 1519323693SBrad Bishop 1619323693SBrad Bishopupdate patch to version 11.1 1719323693SBrad BishopSigned-off-by: Changqing Li <changqing.li@windriver.com> 18eb8dc403SDave Cobbley--- 19595f6308SAndrew Geissler configure.ac | 2 +- 20eb8dc403SDave Cobbley 1 file changed, 1 insertion(+), 1 deletion(-) 21eb8dc403SDave Cobbley 22595f6308SAndrew Geisslerdiff --git a/configure.ac b/configure.ac 23*eaae0b33SPatrick Williamsindex f398184..493d5cd 100644 24595f6308SAndrew Geissler--- a/configure.ac 25595f6308SAndrew Geissler+++ b/configure.ac 26*eaae0b33SPatrick Williams@@ -2336,7 +2336,7 @@ Use --without-tcl to disable building PL/Tcl.]) 27eb8dc403SDave Cobbley fi 28eb8dc403SDave Cobbley 29eb8dc403SDave Cobbley # check for <perl.h> 30eb8dc403SDave Cobbley-if test "$with_perl" = yes; then 31eb8dc403SDave Cobbley+if test "$with_perl" = yes && test "$cross_compiling" = no; then 32eb8dc403SDave Cobbley ac_save_CPPFLAGS=$CPPFLAGS 3319323693SBrad Bishop CPPFLAGS="$CPPFLAGS $perl_includespec" 34eb8dc403SDave Cobbley AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], 35