From: Paul Date: Mon, 27 Aug 2018 17:42:44 +0000 (+0100) Subject: fix lintian autotools-pkg-config-macro-not-cross-compilation-safe warning X-Git-Tag: 3.17.2~174 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=8eee2fd5ddb9d24d8f58bf88afdea8ca67daaea5;ds=sidebyside fix lintian autotools-pkg-config-macro-not-cross-compilation-safe warning see https://lintian.debian.org/tags/autotools-pkg-config-macro-not-cross-compilation-safe.html --- diff --git a/configure.ac b/configure.ac index a3d2a672b..edf77674d 100644 --- a/configure.ac +++ b/configure.ac @@ -65,10 +65,7 @@ AC_SUBST(GIT_VERSION) AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no) AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes) -AC_PATH_PROG(PKG_CONFIG, pkg-config, no) -if test x$PKG_CONFIG = xno ; then - AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/]) -fi +PKG_PROG_PKG_CONFIG dnl libtool versioning LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION @@ -427,7 +424,7 @@ dnl ***************** dnl check for glib PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28 gmodule-2.0 >= 2.28 gobject-2.0 >= 2.28 gthread-2.0 >= 2.28) -GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` +GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) AC_SUBST(GLIB_CFLAGS)