Skip to content

Make sure compatibility macros are defined before use#2

Merged
brauner merged 1 commit intolxc:masterfrom
ganto:fix/pkg-config-0.27
May 8, 2018
Merged

Make sure compatibility macros are defined before use#2
brauner merged 1 commit intolxc:masterfrom
ganto:fix/pkg-config-0.27

Conversation

@ganto
Copy link
Contributor

@ganto ganto commented May 7, 2018

lua-lxc-3.0.0 fails to be built on CentOS 7. See ganto/copr-lxc3#2. To fix this, I had to move around the code defining PKG_CHECK_VAR.

PKG_CHECK_VAR is only available in >=pkg-config-0.28. To allow the
configure script to be executed on a distribution with a lower
pkg-config version (e.g. CentOS 7) it is also defined locally.
However so far it is defined after being used, so it would result
in an error such as:

configure.ac:61: error: possibly undefined macro: PKG_CHECK_VAR

PKG_CHECK_VAR is only available in >=pkg-config-0.28. To allow the
configure script to be executed on a distribution with a lower
pkg-config version (e.g. CentOS 7) it is also defined locally.
However so far it is defined after being used, so it would result
in an error such as:

  configure.ac:61: error: possibly undefined macro: PKG_CHECK_VAR

Signed-off-by: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments