PKG CONFIG cannoit find libXI
I am currently executing the configure script of gtk. It tests for the presence of XInput, and it stops the execution with the error message:
"configure: error: *** XInput2 extension not found. Check 'config.log' for more details."
Config.log says the same with the added line number.
So I decided to look at configure.ac and the see the detection test, which happens to be?
`if $PKG_CONFIG --exists "xi" ; then
X_PACKAGES="$X_PACKAGES xi" GTK_PACKAGES_FOR_X="$GTK_PACKAGES_FOR_X xi"
AC_CHECK_HEADER(X11/extensions/XInput2.h, have_xinput2=yes AC_DEFINE(XINPUT_2, 1, [Define to 1 if XInput 2.0 is available]))
gtk_save_LIBS="$LIBS" LIBS="$LIBS -lXi"
Note that we also check that the XIScrollClassInfo struct is defined,
because at least Ubuntu Oneiric seems to have XIAllowTouchEvents(), but not the XIScrollClassInfo struct.
AC_CHECK_FUNC([XIAllowTouchEvents], [AC_CHECK_MEMBER([XIScrollClassInfo.number], have_xinput2_2=yes AC_DEFINE(XINPUT_2_2, 1, [Define to 1 if XInput 2.2 is available]), have_xinput2_2=no, [[#include <X11/extensions/XInput2.h>]])]) LIBS="$gtk_save_LIBS"
if test "x$have_xinput2_2" = "xyes"; then X_EXTENSIONS="$X_EXTENSIONS XI2.2" else X_EXTENSIONS="$X_EXTENSIONS XI2" fi fi
AS_IF([test "x$have_xinput2" != "xyes"], [AC_MSG_ERROR([*** XInput2 extension not found. Check 'config.log' for more details.])])`
I did some tests to detect the point where the test fails (I edited the test, added a couple of AC_MSG_ERROR) and figured out that is the first line that fails to execute, and hence all the others:
"if $PKG_CONFIG --exists "xi" ; then"
But why? I am passing to configure the libXi dir:
PKG_CONFIG_PATH=:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xi-1.5.0/lib/pkgconfig/
there is inside the include dir of libXi a XInput2.h file, so nothing seems wrong at first sight.
So, I would deeply appreciate if someone could shed some light in this matter.