Problem: it's 2016 and we are building with C++98

Solution: bump to C++11 and C11 in autoconf
This commit is contained in:
Luca Boccassi 2016-02-19 19:25:32 +00:00
parent 80650ecfe2
commit 7dfbab3f97

View File

@ -47,8 +47,9 @@ ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}"
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AX_CHECK_COMPILE_FLAG([-std=gnu11], [CFLAGS+=" -std=gnu11"], [AC_PROG_CC_C99])
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11([ext], [optional])
AM_PROG_CC_C_O
AC_PROG_SED
AC_PROG_AWK