On CentOS 4.4 (final), the default pkg-config is version 0.15.0 The configure script for cairo-1.2.6 does not report any explicit requirement for pkg-config, but does use the following test when checking for fontconfig and freetype: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then when this silently fails, configure evenually reports that it can't find fontconfig, and fails. configure --disable-png --enable-freetype=yes eventually gives: checking for cairo's FreeType font backend... checking for FONTCONFIG... checking whether cairo's FreeType font backend could be enabled... no (requires fontconfig configure: error: requested FreeType font backend could not be enabled The --disable-png is needed to avoid another error related to pkg-config: checking for cairo's PNG backend... ./configure: line 24790: --exists: command not found There is a test for pkg-config minimum version of 0.19 elsewhere in the configure script, but this is conditional code which isn't always called. It would be useful if the configure script could explicitly test for the minimum required version of pkg-config in all cases, and report appropriately.
Fixed in 1.4.0.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.