-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add a block to look for OpenSSL when pkconfig is not defined. #379
Conversation
@aixtools OK, so I am uncomfortable taking the OpenSSL tests from the autoconf archive verbatim, and the test needs to define the |
I added several comments in #375 - re the steps I took to get it to build for 98% (the manual bit was to create the libcups.a by adding both the 32-bit lib*.so.2 and later the 64-bit lib*.so.2 files. So, for OpenSSL - I saw that, in any case, the TLSLIBS needed to be added. In this case TLSFLAGS was not needed, but if the entire AX_CHECk_OPENSSL macro was adopted you could also add --with-openssl=/some/where and it would take an OpenSSL from that location. So, what might be an easy change is getting DSOFLAGS to be different (when AIX). However, I am uncertain what is needed re: LDFLAGS. (I had noticed, with the wrong flags libcups.so.2 was getting the other libraries (-liconv, -lz, -lm, -lcrypto and -lssl) information 'self-contained'. IMHO: that is an error and I continued searching - and came up with the simplest argument to The My test is simply that it is accepted by With some quidance I am happy to work on a PR or PR's that are acceptable for the project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Just adding an actual review of the changes for Zdonal who is the CUPS 2.4.x release manager)
Not quite ready for merge - need to refactor the OpenSSL checks to use any CFLAGS/CPPFLAGS/LDFLAGS passed in to the configure script and do linker checks for libcrypto and libssl...
@aixtools WRT libcups.a not getting installed, if you use the "--enable-static" or "--disable-shared" configure options it will, otherwise only the shared libraries get installed. As for mixed 32-bit and 64-bit builds, unless AIX has something like macOS's multiple-architecture binaries, I'd do two separate builds where the second build you do is 32-bit (assuming that all AIX systems will do 64-bit these days?) for just the libraries, e.g.:
|
|
|
Thx. Is working great. |
(Sadly) AIX is no longer a supported platform - and as AIX does not have
pkconfig
installed, the current checks for OpenSSL will never find OpenSSL - even though it is there.This patch is an extract from the autoconf macro AX_CHECK_OPENSSL - that bases it's find on finding ssl.h.