Skip to contentSkip to conversation

configure: Fix pkg.m4 detection

PATCH New Petr Vorel 2 participants 4 messages Feb 18, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 configure: Fix pkg.m4 detection

6e17e2ba1 attempt to detect missing pkg.m4, which usually gets installed with pkg-config/pkgconfig. Unfortunately this macro is since 0.29, which is too new for CentOS 7. Let's use PKG_CHECK_EXISTS, which is since 0.16 (old enough, we expect 0.24).

Fixes 6e17e2ba1 ("configure: Improve error message on missing pkg-config")
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index beeb9e669..d41688f04 100644
@@ -30,7 +30,7 @@ AC_DEFUN([AC_PROG_STRIP], [AC_CHECK_TOOL(STRIP, strip, :)])
 AC_PROG_STRIP
 AC_PROG_YACC
 
-m4_ifndef([PKG_PREREQ],
+m4_ifndef([PKG_CHECK_EXISTS],
 	[m4_fatal([must install pkg-config or pkgconfig and pkg.m4 macro (usual dependency), see INSTALL])])
 
 AC_PREFIX_DEFAULT(/opt/ltp)
Signature · 1 line
2.30.0
author
#3 lore raw

PATCH 1/1 configure: Fix pkg.m4 detection

Hi Cyril,

Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Fixes 6e17e2ba1 ("configure: Improve error message on missing pkg-config")

I tested that locally, but this time I'll wait for CI to finish :).
https://travis-ci.org/github/pevik/ltp/builds/759488526

Feel free to push with my ack once the CI finishes.

Thanks! CI finished, patch merged.

Kind regards,
Petr