From 5a6675a2963f36c758529c3560fe5b168ca5115c Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 28 Feb 2014 13:09:43 -0800 Subject: [PATCH] Work around missing expat.pc on some RedHat-based systems --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 0011fbab8b8..5a72c10a13d 100755 --- a/configure +++ b/configure @@ -687,6 +687,11 @@ do CONFIGURE_ARGS="${CONFIGURE_ARGS} --sysconfdir=/etc" CONFIGURE_ARGS="${CONFIGURE_ARGS} --localstatedir=/var" CONFIGURE_ARGS="${CONFIGURE_ARGS} --disable-shared" # work around Rust #12557 + if [ -f /etc/redhat-release ]; then + # Some RedHat-based distros (including our CentOS 6 build machines) are missing + # pkg-config files for expat: https://bugzilla.redhat.com/show_bug.cgi?id=833338 + CONFIGURE_ARGS="${CONFIGURE_ARGS} --with-expat=/usr" + fi CONFIGURE_ARGS="${CONFIGURE_ARGS} ${EXTRA_CONFIGURE_ARGS}" ;; platform/android/fontconfig)