X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=configure.ac;h=f9a93259e7ceb7d3b2adc1a15d55e0f3750acbc9;hb=74e7a207fa1504872f43e00837106d3e40f6a547;hp=cfef2a11362b7b411ad9face45cb0a1f477969d4;hpb=306cfa82f27bc7fcf798e6bc35e58ea695ef7bf2;p=meshlink diff --git a/configure.ac b/configure.ac index cfef2a11..f9a93259 100644 --- a/configure.ac +++ b/configure.ac @@ -54,6 +54,8 @@ if test -d /sw/lib ; then LIBS="$LIBS -L/sw/lib" fi +AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="$CFLAGS -std=c11"]) + dnl Compiler hardening flags dnl No -fstack-protector-all because it doesn't work on all platforms or architectures. @@ -121,7 +123,7 @@ AM_CONDITIONAL(INSTALL_TESTS, test "$install_tests" = true) dnl Checks for header files. dnl We do this in multiple stages, because unlike Linux all the other operating systems really suck and don't include their own dependencies. -AC_CHECK_HEADERS([syslog.h sys/file.h sys/param.h sys/resource.h sys/socket.h sys/time.h sys/un.h sys/wait.h netdb.h arpa/inet.h dirent.h curses.h ifaddrs.h]) +AC_CHECK_HEADERS([syslog.h sys/file.h sys/param.h sys/resource.h sys/socket.h sys/time.h sys/un.h sys/wait.h netdb.h arpa/inet.h dirent.h curses.h ifaddrs.h stdatomic.h]) dnl Checks for typedefs, structures, and compiler characteristics. MeshLink_ATTRIBUTE(__malloc__)