Source: gvidm Version: 0.8-13 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
gvidm fails to cross build from source, because configure.in hard codes the build architecture pkg-config and thus fails finding gtk. The attached patch fixes that using the PKG_CHECK_MODULES macro. Please consider applying it. Helmut
--- gvidm-0.8.orig/configure.in +++ gvidm-0.8/configure.in @@ -34,17 +34,9 @@ with_gtk1="$withval", with_gtk1=no ) -if test "$with_gtk1" = "no" ; then - AC_MSG_CHECKING([for GTK 2.0]) - GTK_LIBS=`pkg-config --libs gtk+-2.0` - if test $? = 0 ; then - GTK_CFLAGS=`pkg-config --cflags gtk+-2.0` - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - with_gtk1=yes - fi -fi +AS_IF([test "$with_gtk1" = "no"],[ + PKG_CHECK_MODULES([GTK],[gtk+-2.0],,[with_gtk1=yes]) +]) if test "$with_gtk1" = "yes" ; then AC_MSG_CHECKING([for GTK 1.x]) GTK_LIBS=`gtk-config --libs`