xfconf: use sysroot and target perl
xfconf: use sysroot and target perl

xfconf-4.10.0 does not use OE sysroot as is.
--with-sysroot=yes
will make configure run CC --print-sysroot
and use that.

When searching the PATH for perl, no target perl is found,
since PATH does not contain any reference.
Instead native perl is found, and if certain perl packages
are installed on the host machine, the xfconf perl support
is enabled which may cause the build to fail on 64 bit hosts.
If the perl packages are not installed on the host, then
perl support in xfconf is disabled, and the xfconf build
will succeed, even on 64 bit hosts.

If native perl is found, and the perl packages are available
on the host, the perl support is enabled.

Since native perl is used, the native linker is used to link the
resulting *target* code.

The perl support requires some libraries, which are built for the target.
If the host is 64 bit (x86_64) and the target is 32 bit (ARM?),
there is a mismatch which is detected by the linker,
and the libraries found are rejected.

If the host does not have the correct libraries,
then the xfconf build fails.
If the host has the correct libraries, then the linker will try
to link host libraries with the target application.

The patch will define PERL as the target perl.
This means that configure will look for the required perl
packages in the target sysroot, instead of in the native filesystem.

The patch has been tested in Angstrom master, which does not
build the required perl packages, and thus perl support
in xfconf is disabled, and the build succeeds.

A simpler way to do this, proposed by Charles Ash <80cee6ff557ba1c5981cd5d98755c09f634abbac@gmail.com>
is to simply disable the perl-support in xfconf.
This patch will be better, if ever the support for the needed
perl packages is added to the OpenEmbedded/Angstrom build.

Signed-off-by: Ulf Samuelsson <25af59facbd48a9742a6255393a3e51f1739b12d@emagii.com>
Tested-by: Ash Charles <80cee6ff557ba1c5981cd5d98755c09f634abbac@gmail.com>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>

epylar/meta-openembedded,rehsack/meta-openembedded,dm8tbr/kodi-wip,sigma-embedded/elito-org.openembedded.meta,RedFIR/meta-openembedded,moto-timo/meta-openembedded,shr-distribution/meta-oe,sigma-embedded/elito-org.openembedded.meta,rehsack/meta-openembedded,lixinfnst/meta-openembedded,RedFIR/meta-openembedded,rofehr/meta-openembedded,rdm-dev/meta-openembedded,dongkc/meta-openembedded,rdm-dev/meta-openembedded,trikset/meta-openembedded,openembedded/meta-openembedded,kraj/meta-openembedded,amery/meta-openembedded,lgirdk/meta-openembedded,RedFIR/meta-openembedded,rofehr/meta-openembedded,amery/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,joelagnel/meta-openembedded,kraj/meta-openembedded,openembedded/meta-openembedded,akuster/meta-openembedded,dongkc/meta-openembedded,victronenergy/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,tobw/meta-openembedded,amery/meta-openembedded,MCherifiOSS/meta-openembedded,shr-distribution/meta-oe,epylar/meta-openembedded,dm8tbr/kodi-wip,kraj/meta-openembedded,schnitzeltony/meta-openembedded,VCTLabs/meta-openembedded,VCTLabs/meta-openembedded,rofehr/meta-openembedded,fredcadete/meta-openembedded,fredcadete/meta-openembedded,akuster/meta-openembedded,shr-distribution/meta-oe,lixinfnst/meta-openembedded,tobw/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,epylar/meta-openembedded,trikset/meta-openembedded,MCherifiOSS/meta-openembedded,shr-distribution/meta-oe,trikset/meta-openembedded,trikset/meta-openembedded,shr-distribution/meta-oe,trikset/meta-openembedded,lixinfnst/meta-openembedded,VCTLabs/meta-openembedded,lgirdk/meta-openembedded,kraj/meta-openembedded,rofehr/meta-openembedded,epylar/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,fredcadete/meta-openembedded,kraj/meta-openembedded,victronenergy/meta-openembedded,schnitzeltony/meta-openembedded,akuster/meta-openembedded,epylar/meta-openembedded,openembedded/meta-openembedded,kraj/meta-openembedded,VCTLabs/meta-openembedded,epylar/meta-openembedded,openembedded/meta-openembedded,lgirdk/meta-openembedded,moto-timo/meta-openembedded,tobw/meta-openembedded,amery/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,rdm-dev/meta-openembedded,RedFIR/meta-openembedded,mrchapp/meta-openembedded,moto-timo/meta-openembedded,mrchapp/meta-openembedded,schnitzeltony/meta-openembedded,dongkc/meta-openembedded,amery/meta-openembedded,rdm-dev/meta-openembedded,joelagnel/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,schnitzeltony/meta-openembedded,joelagnel/meta-openembedded,lgirdk/meta-openembedded,RedFIR/meta-openembedded,fredcadete/meta-openembedded,epylar/meta-openembedded,rehsack/meta-openembedded,victronenergy/meta-openembedded,akuster/meta-openembedded,rehsack/meta-openembedded,schnitzeltony/meta-openembedded,fredcadete/meta-openembedded,MCherifiOSS/meta-openembedded,rofehr/meta-openembedded,MCherifiOSS/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,dongkc/meta-openembedded,rofehr/meta-openembedded,dongkc/meta-openembedded,dm8tbr/kodi-wip,rdm-dev/meta-openembedded,rdm-dev/meta-openembedded,RedFIR/meta-openembedded,openembedded/meta-openembedded,schnitzeltony/meta-openembedded,amery/meta-openembedded,trikset/meta-openembedded,trikset/meta-openembedded,VCTLabs/meta-openembedded,victronenergy/meta-openembedded,tobw/meta-openembedded,openembedded/meta-openembedded,victronenergy/meta-openembedded,rehsack/meta-openembedded,epylar/meta-openembedded,lixinfnst/meta-openembedded,dm8tbr/kodi-wip,rdm-dev/meta-openembedded,moto-timo/meta-openembedded,lgirdk/meta-openembedded,dm8tbr/kodi-wip,joelagnel/meta-openembedded,joelagnel/meta-openembedded,tobw/meta-openembedded,mrchapp/meta-openembedded,shr-distribution/meta-oe,RedFIR/meta-openembedded,VCTLabs/meta-openembedded,VCTLabs/meta-openembedded,tobw/meta-openembedded,openembedded/meta-openembedded,amery/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,mrchapp/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,kraj/meta-openembedded,victronenergy/meta-openembedded,amery/meta-openembedded,joelagnel/meta-openembedded,victronenergy/meta-openembedded,VCTLabs/meta-openembedded,schnitzeltony/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,dm8tbr/kodi-wip,mrchapp/meta-openembedded,MCherifiOSS/meta-openembedded,lixinfnst/meta-openembedded,fredcadete/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,dm8tbr/kodi-wip,fredcadete/meta-openembedded,mrchapp/meta-openembedded,rofehr/meta-openembedded,lixinfnst/meta-openembedded,MCherifiOSS/meta-openembedded,dm8tbr/kodi-wip,openembedded/meta-openembedded,rehsack/meta-openembedded,rdm-dev/meta-openembedded,fredcadete/meta-openembedded,shr-distribution/meta-oe,mrchapp/meta-openembedded,shr-distribution/meta-oe,rofehr/meta-openembedded,joelagnel/meta-openembedded,akuster/meta-openembedded,joelagnel/meta-openembedded,moto-timo/meta-openembedded,RedFIR/meta-openembedded,trikset/meta-openembedded,lgirdk/meta-openembedded