lib:replace: Fix linking when libtirpc-devel overwrites system headers
commit43cbf7f7728414a6e0d0feb76d4e3a4729df55de
authorNoel Power <noel.power@suse.com>
Thu, 15 Mar 2018 16:46:39 +0000 (15 16:46 +0000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 6 Apr 2018 06:21:12 +0000 (6 08:21 +0200)
treec0a83292a1826308b97489215f46b62fdfbf72a0
parentccda6d9b8c893d6432ac92c5c542cbde6039ad74
lib:replace: Fix linking when libtirpc-devel overwrites system headers

Some systems (like SUSE currently) install the new tirpc headers by
overwritting the existing system location used by gcc. This patch will
detect if the headers in the system location belong to tirpc or not.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13341

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit 618c714b6b6c0b63993299b40b9a466adb753cc2)
lib/replace/wscript