-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure uses which
which is not POSIX compliant
#262
Comments
Re: Lines 298 to 313 in 4f30333
If autotools is to be retained this whole section (and the checks afterwards) could be trivially simplified to 'query pkg-config'. |
I commented on the meson build in the PR. Let's keep this issue to solve only the problem of removing We don't have a build dependency over |
Instead of using AC_PATH_PROG(FLTK_CONFIG,fltk-config) indicating the correct way to check for a program while respecting pre-set environment variables, is already known.
"which" isn't the problem that is solved by using pkg-config. You still have to check for and find The problem that is solved by using pkg-config is the cross-compilation problem. :) There are plenty of other dependencies that can use the same treatment... openssl, zlib, jpeg... |
It's possible to check pkg-config first and fall back to foobar-config programs only when that fails. |
The
Then I recommend you address it in another issue. I think this may also help #258 and #34. It would be nice to have a cross-compilation build in the CI, but I'm not sure if I know how to set it up. |
Fixed in 9880c1b |
Issue
which
is not listed as a required command by POSIX and should be replaced bycommand -v
.See also: https://bugs.gentoo.org/940568
Reproducing
Attempt to configure dillo on a machine without
which
.Resolution
Exorcise
which
from the codebase.Examples:
dillo/autogen.sh
Line 18 in 4f30333
dillo/configure.ac
Lines 298 to 313 in 4f30333
The text was updated successfully, but these errors were encountered: