add check for C++11 in autoconf script