Closed ffontaine closed 2 years ago
For consistency, shouldn't we also use CURL_CONFIG
in libekmfweb/Makefile
too?
Thanks @yann-morin-1998, I updated the PR.
Looks good to me.
There are other tools requiring eg. curl, so it would be good to have a consistency among them. dasdview, genprotimg and zdsfs all use pkg-config
for retrieving the compiler and linker flags for the curl library.
So what is your suggestion? Replace curl-config and xml2-config calls by pkg-config?
So what is your suggestion? Replace curl-config and xml2-config calls by pkg-config?
yes, I would standardize around pkg-config
pkg-config is not always available, that's why these other tools have logic to check if pkg-config is available or not. Example from dasdview:
ifneq ($(shell sh -c 'command -v pkg-config'),)
CURL_CFLAGS = $(shell pkg-config --silence-errors --cflags libcurl)
CURL_LDLIBS = $(shell pkg-config --silence-errors --libs libcurl)
else
CURL_CFLAGS = -I/usr/include/s390x-linux-gnu/curl
CURL_LDLIBS = -lcurl
endif # shell
Not sure If I really like this..... Makes things more complicated actually....
Indeed, and there is an other issue, there is no direct equivalent to curl-config --ssl-backends
through pkg-config
. We could check if -lssl
is in Libs
but it's a bit ugly.
When isn't pkg-config
available? I would consider is a distro packaging bug ... I think pkg-config
exists to replace random *-config
scripts.
Indeed, and there is an other issue, there is no direct equivalent to
curl-config --ssl-backends
throughpkg-config
. We could check if-lssl
is inLibs
but it's a bit ugly.
Then the pkgconfig file for curl should be fixed IMO.
Add
CURL_CONFIG
andXML2_CONFIG
to allow the user to configure the binaries used incheck-dep-libkmipclient
This will allow the user to avoid the following build failures raised since version 2.17.0 and https://github.com/ibm-s390-linux/s390-tools/commit/56fecf1832c3ebc4626ddf5c598762833c362d5e:
Fixes:
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com