jhonen@jhonen-DellLaptop:~/gr4_buttons-0.1.0$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking for X library directory... found /usr/lib checking for X include directory... found /usr/include Checking the X compiling environment in detail... /usr/lib/libX11.so OK Can not link with Xext /usr/lib/libXext.so library! Can not link with Xi /usr/lib/libXi.so library! Can not link with Xtst /usr/lib/libXtst.so library! /usr/include/X11/Xlib.h OK /usr/include/X11/Xutil.h OK /usr/include/X11/extensions/XInput.h OK Can not include /usr/include/X11/extensions/XTest.h header file! The X compiling environment is NOT complete! Some linux distributions omit parts of, or sometimes the whole, X development environment. Based on the error message(s) above you should be able to hunt down which package(s) you need to install. For example, one distribution call their xinput and xtest packages libxi-dev and libxtst-dev jhonen@jhonen-DellLaptop:~/gr4_buttons-0.1.0$