Skip to content

Commit 19435cc

Browse files
committed
autoconf: don't say "checking for X with pkg-config" without pkg-config.
If we're not bothering to check for something with pkg-config because we don't *have* pkg-config, don't say "checking for XXX with pkg-config" and then say "oh, right, we don't *have* pkg-config".
1 parent 3bc38fe commit 19435cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aclocal.m4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,12 +1041,12 @@ dnl --------------------------------------------------------------
10411041
dnl Since: 0.4.0
10421042
AC_DEFUN([PKG_CHECK_MODULE],
10431043
[
1044-
AC_MSG_CHECKING([for $2 with pkg-config])
10451044
if test -n "$PKG_CONFIG"; then
10461045
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $2, overriding pkg-config])dnl
10471046
AC_ARG_VAR([$1][_LIBS], [linker flags for $2, overriding pkg-config])dnl
10481047
AC_ARG_VAR([$1][_LIBS_STATIC], [static-link linker flags for $2, overriding pkg-config])dnl
10491048
1049+
AC_MSG_CHECKING([for $2 with pkg-config])
10501050
if AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$2"]); then
10511051
#
10521052
# The package was found, so try to get its C flags and
@@ -1063,7 +1063,6 @@ if test -n "$PKG_CONFIG"; then
10631063
fi
10641064
else
10651065
# No pkg-config, so obviously not found with pkg-config.
1066-
AC_MSG_RESULT([pkg-config not found])
10671066
m4_default([$4], [:])
10681067
fi
10691068
])dnl PKG_CHECK_MODULE

0 commit comments

Comments
 (0)