Skip to content

Commit afae286

Browse files
committed
Export boolean HAVE_PKGCONFIG variable
1 parent 8612320 commit afae286

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/acr-sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (C) 2005-2023
3+
# Copyright (C) 2005-2024
44
# pancake <[email protected]>
55
#
66
# acr is free software; you can redistribute it and/or modify
@@ -1361,6 +1361,7 @@ use_pkgconfig() {
13611361
SCRIPT=`cat <<EOF
13621362
${SCRIPT}
13631363
ochof "checking for pkg-config... "
1364+
ENVWORDS="${S}{ENVWORDS} HAVE_PKGCONFIG"
13641365
if [ -n "${S}PKGCONFIG" ]; then
13651366
if [ -x "${S}PKGCONFIG" ]; then
13661367
_HAVE_PKGCONFIG="${S}{PKGCONFIG}"
@@ -1384,7 +1385,9 @@ else
13841385
fi
13851386
if [ -n "${S}{PKGCONFIG}" ]; then
13861387
ocho ${S}{PKGCONFIG}
1388+
HAVE_PKGCONFIG=1
13871389
else
1390+
HAVE_PKGCONFIG=0
13881391
EOF
13891392
`
13901393
if [ "${_REQUIRED}" = 1 ]; then

0 commit comments

Comments
 (0)