I had berkeleydb 4.8 installed but it turns out I had to remove -levent_pthreads.
So my configure command is now: ./configure --with-gui=yes CPPFLAGS="-fPIC" LIBS="-lgmp -lboost_timer -lprotobuf"
But now it seems I've got a problem with zmq? I'm using zeromq-4.3.1-2
CXXLD datacoind
/usr/bin/ld: libdatacoin_server.a(libdatacoin_server_a-pool.o): in function `PrimeWorker::InvokeExitCheck(_zloop_t*, zmq_pollitem_t*, void*)':
~/source/datacoin-core/src/madpool/pool.cpp:124: undefined reference to `zmsg_recv'