diff options
Diffstat (limited to '3rdparty/asio/configure.ac')
-rw-r--r-- | 3rdparty/asio/configure.ac | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/3rdparty/asio/configure.ac b/3rdparty/asio/configure.ac index 036e41a1b78..15e470fd1a4 100644 --- a/3rdparty/asio/configure.ac +++ b/3rdparty/asio/configure.ac @@ -1,13 +1,14 @@ -AC_INIT(asio, [1.20.0]) +AC_INIT(asio, [1.30.2]) AC_CONFIG_SRCDIR(include/asio.hpp) AM_MAINTAINER_MODE -AM_INIT_AUTOMAKE([tar-ustar]) +AM_INIT_AUTOMAKE([tar-pax]) AC_CANONICAL_HOST AM_PROG_CC_C_O AC_PROG_CXX AC_LANG(C++) AC_PROG_RANLIB +PKG_INSTALLDIR AC_DEFINE(_REENTRANT, [1], [Define this]) @@ -184,9 +185,21 @@ AC_MSG_CHECKING([whether coroutines are enabled]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#if defined(__clang__)]] - [[# if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)]] - [[# if __has_include(<experimental/coroutine>)]] - [[# define ASIO_HAS_CO_AWAIT 1]] + [[# if (__clang_major__ >= 14)]] + [[# if (__cplusplus >= 202002) && (__cpp_impl_coroutine >= 201902)]] + [[# if __has_include(<coroutine>)]] + [[# define ASIO_HAS_CO_AWAIT 1]] + [[# endif]] + [[# elif (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)]] + [[# if __has_include(<experimental/coroutine>)]] + [[# define ASIO_HAS_CO_AWAIT 1]] + [[# endif]] + [[# endif]] + [[# else]] + [[# if (__cplusplus >= 201703) && (__cpp_coroutines >= 201703)]] + [[# if __has_include(<experimental/coroutine>)]] + [[# define ASIO_HAS_CO_AWAIT 1]] + [[# endif]] [[# endif]] [[# endif]] [[#elif defined(__GNUC__)]] @@ -231,13 +244,15 @@ AM_CONDITIONAL(HAVE_CXX20,test x$HAVE_CXX20 = xyes) AM_CONDITIONAL(HAVE_COROUTINES,test x$HAVE_COROUTINES = xyes) +AC_CONFIG_FILES([asio.pc]) + AC_OUTPUT([ Makefile include/Makefile src/Makefile src/tests/Makefile src/tests/properties/Makefile - src/examples/cpp03/Makefile src/examples/cpp11/Makefile src/examples/cpp14/Makefile - src/examples/cpp17/Makefile]) + src/examples/cpp17/Makefile + src/examples/cpp20/Makefile]) |