Skip to content

Commit 52ed8bc

Browse files
authored
Merge pull request #10218 from bwbarrett/bugfix/oac_check_package-prints-when-pkg-config-not-found
build: Fix message when pkg-config not found
2 parents e285553 + bbb2e71 commit 52ed8bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/oac_check_package.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,15 @@ dnl 3 -> result assignment string
423423
dnl 4 -> action if found
424424
dnl 5 -> action if not found
425425
AC_DEFUN([_OAC_CHECK_PACKAGE_PKGCONFIG_RUN], [
426+
check_package_pkgconfig_run_happy=no
426427
AS_IF([test -n "${PKG_CONFIG}"],
427428
[OAC_LOG_COMMAND([check_package_pkgconfig_run_results=`${PKG_CONFIG} $2 $1 2>&1`],
428429
[AS_VAR_COPY([$3], [check_package_pkgconfig_run_results])
429-
$4],
430-
[$5])
430+
check_package_pkgconfig_run_happy=yes])
431431
OAC_LOG_MSG([pkg-config output: ${check_package_pkgconfig_run_results}], [1])])
432+
AS_IF([test "${check_package_pkgconfig_run_happy}" = "yes"], [$4], [$5])
432433
AS_UNSET([check_package_pkgconfig_run_results])
434+
AS_UNSET([check_package_pkgconfig_run_happy])
433435
])
434436

435437

0 commit comments

Comments
 (0)