commit: dda95591b9babc020de6422d4f9b7fe73a156a63
parent dab2bb25a1cb25f9bfcb0b5dee94e573de1439e0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 18 Aug 2025 20:37:53 +0200
configure: toss pkg-config out, unused
Diffstat:
1 file changed, 0 insertions(+), 20 deletions(-)
diff --git a/configure b/configure
@@ -2,8 +2,6 @@
# SPDX-FileCopyrightText: 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
# SPDX-License-Identifier: MPL-2.0
-DEPS=""
-
usage() {
cat <<END
Usage: [variables] configure [variables]
@@ -13,7 +11,6 @@ Variables:
BINDIR=DIR
MANDIR=DIR
- PKGCONFIG=BIN
MSGFMT=BIN
CC=BIN
MAKE=BIN
@@ -50,12 +47,6 @@ or_die() {
is_ok || exit 1
}
-pkg_config_check() {
- printf 'Checking: %s %s ...' "${PKGCONFIG}" "$*"
- "${PKGCONFIG}" "$@"
- is_ok
-}
-
gen_targets() {
printf 'EXE = '
printf '%s\n ' cmd/*.c sh/* | sed -e 's;.c$;;' | tr -d '\n'
@@ -83,7 +74,6 @@ check_cmd() {
# defaults
PREFIX="${PREFIX:-/usr/local}"
-PKGCONFIG="${PKGCONFIG:-pkg-config}"
MSGFMT="${MSGFMT:-msgfmt}"
CC="${CC:-cc}"
MAKE="${MAKE:-make}"
@@ -132,7 +122,6 @@ rm -f config.mk ; or_die
## System checks
# commands
-check_cmd PKGCONFIG "$PKGCONFIG" || exit 1
check_cmd CC "$CC" || exit 1
check_cmd MAKE "$MAKE" || exit 1
@@ -178,14 +167,6 @@ fi
echo
-# pkg-config
-for dep in ${DEPS}
-do
- pkg_config_check --exists "$dep" || exit 1
-done
-
-echo
-
## Configuration write
printf 'Writing to config.mk ...'
@@ -195,7 +176,6 @@ PREFIX = ${PREFIX}
BINDIR = ${BINDIR}
MANDIR = ${MANDIR}
-PKGCONFIG = ${PKGCONFIG}
CC = ${CC}
MAKE = ${MAKE}
MANDOC = ${MANDOC}