[cups-devel] [UNKN] STR #4423: Please use AC_PATH_TOOL to find proper *-config programs

Michal Gorny noreply at cups.org
Fri May 30 14:20:20 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Currently CUPS configure script uses AC_PATH_PROG macro to find *-config
tools such as pkg-config and krb5-config. This has disadvantage that on
systems suited for building multiple variants of packages (such as multilib
or cross-compilation) the wrong *-config tool is selected.

The correct macro to use for querying *-config tools is AC_PATH_TOOL. It
prefers tools prefixed with ${CHOST}- to facilitate cross-compiling, and
fallbacks to plain name. Therefore, it fixes the issues we specifically
encounter in Gentoo while being compatible with existing behavior.

I'm attaching a patch. It applies cleanly both to 2.0 and 1.7 branch.

Link: https://www.cups.org/str.php?L4423
Version: 2.0-current
Attachment: https://www.cups.org/strfiles.php/3331/0001-Use-AC_PATH_TOOL-to-find-config-tools-to-facilitate-.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTiPYUAAoJENujp6sI12Ij0b4QAIadaGPi6rz/QzAABstndwq4
k8lvzcELeuraak/Gy4eXDi7w/WUNCQ+GMKbrINy6hI9/T2Xt5ypC8PE8spc+/oXL
KFtcHl6fOuD7o53B0s82GAn/ROSZ7GEEVSnQ5945HGDO585oXvJCbVD7QAtbv/CB
IZA2INXe5Ngo3AK+DY7/p1oFAyjI+HueEC3GwM6dllWgaWZAsn9cpHzXdsDzAzwg
AmvOf6dnOJTJpjyiJ7094nIrd0buzrFfn4FBXhANp+7PjqJLs1Lol/H8iRTK+qos
5LN1jQKtoZ7afDqCwRsitJqFaz12+hd0xePjJnaMW+2/loiDR1qRl960SOXwdxbG
ysXZfXbDJw2yze5mN3qSOOYlz4mSt7dEOwfr4LQYXqst3NQRsOCA8FJRRwmidHZe
eyzYuF/WmoWC1q2PQoWh0zr9OtHPKVRsOkYTuDKPbc8HpkXyMpN/OUzpYWDsN+e8
FmZI6MiuJVLIBgHkeriAzyeKhyhB4SBt+Bukn0Bx9VbrpDMdxbm/8Ku1vMaUEp0Y
wZfRFOw03zDlNrRy529srTNiuIx9rAyHuFfGEIsxYZUDpBNZdjMV2mgPxjEoxewZ
EHqoL7yiehrb/0r/Gr5Ji5mdB+4E4tSD5pKEjK/s3s+oVghKjL82enDEZcLJrLTU
yX4my260bCYicY433Awn
=n0FL
-----END PGP SIGNATURE-----




More information about the cups-devel mailing list