Samba relies on pkg-config to configure its integration with some third-party libraries (location of headers, etc.). The waf version bundled with Samba always invokes the system pkg-config executable, whereas upstream waf does allows the default to be overriden. In cross-compiled builds, it is customary to have a pkg-config program suitable for the build target. Such a pkg-config is typically a wrapper to the system pkg-config, setting environment variables such as PKG_CONFIG_SYSROOT_DIR. In upstream waf, it is possible to use that dedicated pkg-config by setting the PKGCONFIG environment variable.
Created attachment 12901 [details] git-am firx for 4.5.next and 4.6.next
Comment on attachment 12901 [details] git-am firx for 4.5.next and 4.6.next LGTM.
Reassigning to Karolin for inclusion in 4.4.next, 4.5.next, 4.6.next.
(In reply to Jeremy Allison from comment #3) Pushed to autobuild-v4-{6,5,4}-test.
(In reply to Karolin Seeger from comment #4) Pushed to all branches. Closing out bug report. Thanks!