Skip to content
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

--with-<package>* issue #14

Open
bosilca opened this issue Aug 7, 2023 · 0 comments
Open

--with-<package>* issue #14

bosilca opened this issue Aug 7, 2023 · 0 comments

Comments

@bosilca
Copy link
Member

bosilca commented Aug 7, 2023

Describe the bug
I'm trying to use OAC_CHECK_PACKAGE to find support for JIT in gcc. The header (libgccjit.h) and the necessary library (-lgccjit) being installed in totally non-standard locations (with no common root) I need to use both --with-<package>-incdir and --with-<package>-libdir to somewhat get things working.

Unfortunately, adding --with-<package> without specifying a path, prevent the correct discovery because of the _OAC_CHECK_PACKAGE_GENERICmacro. This macro requires check_package_prefix (which is only set if --with-<package> has a path), in order to do the package lookup or it assumes standard locations for the header and library.

I think AS_IF([test -n "${check_package_prefix}"], in _OAC_CHECK_PACKAGE_GENERIC should be changed to a more lenient test, one that encompass also the existence of check_package_incdir and check_package_libdir as it is done in the _OAC_CHECK_PACKAGE_GENERIC_PREFIX macro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant