Enable logging check if --with-log4cplus is given.