Trying to compile xpad 4.6.0, but it gives the following error.
gcc -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wno-deprecated-declarations -pthread -I/usr/include/gtksourceview-3.0 -I/usr/include/libxml2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATADIR=\"/usr/local/share\" -g -O2 -o xpad fio.o help.o prefix.o xpad-app.o xpad-grip-tool-item.o xpad-pad.o xpad-pad-group.o xpad-pad-properties.o xpad-periodic.o xpad-preferences.o xpad-session-manager.o xpad-settings.o xpad-text-buffer.o xpad-text-view.o xpad-toolbar.o xpad-tray.o xpad-undo.o -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgtksourceview-3.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
xpad-session-manager.o: In function `xpad_session_manager_ice_connection_watch':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:179: undefined reference to `IceConnectionNumber'
xpad-session-manager.o: In function `xpad_session_manager_set_properties':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:276: undefined reference to `SmcSetProperties'
xpad-session-manager.o: In function `xpad_session_manager_save_yourself':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:390: undefined reference to `SmcSaveYourselfDone'
xpad-session-manager.o: In function `xpad_session_manager_start_interact':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:147: undefined reference to `SmcInteractRequest'
xpad-session-manager.o: In function `xpad_session_manager_shutdown':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:345: undefined reference to `SmcCloseConnection'
xpad-session-manager.o: In function `xpad_session_manager_init':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:305: undefined reference to `SmcOpenConnection'
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:314: undefined reference to `IceAddConnectionWatch'
xpad-session-manager.o: In function `xpad_session_manager_cycle':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:68: undefined reference to `SmcGetIceConnection'
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:70: undefined reference to `IceProcessMessages'
xpad-session-manager.o: In function `xpad_session_manager_stop_interact':
/home/gregf/xpad-4.6.0/src/xpad-session-manager.c:168: undefined reference to `SmcInteractDone'
collect2: error: ld returned 1 exit status
Makefile:406: recipe for target 'xpad' failed
make[2]: *** [xpad] Error 1
make[2]: Leaving directory '/home/gregf/xpad-4.6.0/src'
Makefile:490: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/gregf/xpad-4.6.0'
Makefile:389: recipe for target 'all' failed
make: *** [all] Error
Although not sure, I am guessing that the X11 libraries ICE and SM (libsm and libice) cannot be found on your system.
Can you confirm that this is the case?
What OS are you using?
If so, then the configure script needs to be extended with a check for this / these libraries.