make the configure check conditoined on rocksdb

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
correct error function name

Signed-off-by: xinxin shu <xinxin.shu@intel.com>