From: Andreas Reichel <[email protected]>

If pkg-config is not present, the configure script produces
a misleading syntax error, because the PKG_CHECK_MODULES function
is not defined. The already integrated check seems to fail on some
platforms, thus add another check if the executable is there.

Signed-off-by: Andreas Reichel <[email protected]>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 7e8e7e9..d9a719c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,11 @@ AC_ARG_WITH([mem-uservars],
 
 AC_DEFINE_UNQUOTED([ENV_MEM_USERVARS], [${ENV_MEM_USERVARS}], [Reserved memory 
for user variables])
 
+dnl pkg-config
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+if test "x$PKG_CONFIG" = "xno"; then
+       AC_MSG_ERROR([You need to install pkg-config])
+fi
 PKG_PROG_PKG_CONFIG()
 PKG_CHECK_MODULES(LIBCHECK, check)
 # 
------------------------------------------------------------------------------
-- 
2.14.2

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20171107141230.4677-7-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to