commit: 62c14ae1da22212f9392e05b34339131083e9474
parent ccec1787a73d75b8be66e6447e1d7531540f3bac
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 28 Apr 2024 12:11:14 +0200
configure: Disable pkg-config when not found
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
@@ -173,12 +173,17 @@ rm -f config.mk && echo 'cmd/expr.tab' > target_filter ; or_die
## System checks
# commands
-check_cmd PKGCONFIG "$PKGCONFIG" || exit 1
check_cmd CC "$CC" || exit 1
check_cmd YACC "$YACC" || exit 1
check_cmd MAKE "$MAKE" || exit 1
check_cmd M4 "$M4" || exit 1
+if ! check_cmd PKGCONFIG "$PKGCONFIG"
+then
+ echo 'Notice: Looking for extra libraries via pkg-config disabled'
+ PKGCONFIG="false"
+fi
+
if ! check_cmd GCOV "$GCOV"
then
echo 'Notice: "coverage" target will fail'