Are you sure you made "$ ./configure --with-gui=yes LDFLAGS="-L/home/veter/dbbin/lib/" CPPFLAGS="-fPIC -I/home/veter/dbbin/include/" LIBS="-lgmp -lboost_timer -levent_pthreads""?
I did that and I get in config.log:
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
configure:3862: $? = 0
configure:3851: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3862: $? = 1
configure:3851: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:3862: $? = 1
configure:3882: checking whether the C++ compiler works
configure:3904: g++ -fPIC -I/home/miles/dbbin/include/ -L/home/miles/dbbin/lib/ conftest.cpp -lgmp -lboost_timer -levent_pthreads >&5
/usr/bin/ld: cannot find -lboost_timer
collect2: error: ld returned 1 exit status
configure:3908: $? = 1
configure:3946: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Datacoin Core"
| #define PACKAGE_TARNAME "datacoin"
| #define PACKAGE_VERSION "0.15.99"
| #define PACKAGE_STRING "Datacoin Core 0.15.99"
| #define PACKAGE_BUGREPORT "
https://github.com/Crossverse/datacoin/issues"
| #define PACKAGE_URL "
http://datacoininfo.org/"
| /* end confdefs.h. */