X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=configure.ac;h=7e81e3fab966c08848b2a788b1fd38c6cd765005;hb=c485807f07262a0d0abab1077e6de3b3de6e3dd0;hp=d2e4f938216612ed32db6f03ffb68afbbab4959b;hpb=bd61a8cfea4e93259afdea676c33d756c1326b37;p=libsvgtiny-pixbuf.git diff --git a/configure.ac b/configure.ac index d2e4f93..7e81e3f 100644 --- a/configure.ac +++ b/configure.ac @@ -8,11 +8,21 @@ AM_PROG_AR PKG_CHECK_MODULES([CAIRO], [cairo]) PKG_CHECK_MODULES([GDKPIXBUF], [gdk-pixbuf-2.0]) -PKG_CHECK_MODULES([GTK4], [gtk4]) PKG_CHECK_MODULES([LIBSVGTINY], [libsvgtiny]) +PKG_CHECK_MODULES([LIBXML2], [libxml-2.0]) AC_MSG_CHECKING([for gdk-pixbuf module location]) -gdk_pixbuf_moduledir=$($PKG_CONFIG --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0) +# Hack alert: we need to install our module into this specific +# location... BUT, we also want to respect --prefix, at least to the +# extent that we won't try to install something to, say, /usr when +# we've passed --prefix=/tmp. This little libdir trick prevents +# pkg-config from substituting for ${libdir} where it appears in the +# *.pc file. When we go to actually use gdk_pixbuf_moduledir, the +# variable ${libdir} will be valid in our own build system, and will +# respect the prefix. This means that if you configure this package +# with a different prefix than gdk-pixbuf was, it won't install +# correctly. But hey, make distcheck works? +gdk_pixbuf_moduledir=$($PKG_CONFIG --define-variable=libdir="\${libdir}" --variable gdk_pixbuf_moduledir gdk-pixbuf-2.0) AC_MSG_RESULT([$gdk_pixbuf_moduledir]) AC_SUBST([gdk_pixbuf_moduledir])