diff --git a/m4/extra_pkg.m4 b/m4/extra_pkg.m4 index ce4ecb8e..8a04c359 100644 --- a/m4/extra_pkg.m4 +++ b/m4/extra_pkg.m4 @@ -55,10 +55,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [puts ("")])], pkg_link= CFLAGS=$pkg_link_saved_CFLAGS LIBS=$pkg_link_saved_LIBS -if test $pkg_link = no ; then - $as_echo_n "link failed ... " +AS_IF([test x$pkg_link = xno], [ + AS_ECHO_N(["link failed ... "]) pkg_failed=yes - fi +]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config.