From: Michael Wallner Date: Wed, 8 Jan 2020 16:30:59 +0000 (+0100) Subject: configure: fix compiler detection X-Git-Tag: pre_cmake~64 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=24d604ebd655a7e3afe584d3dc4a25f5eca372c3;p=m6w6%2Flibmemcached configure: fix compiler detection --- diff --git a/configure.ac b/configure.ac index e2c42da3..86f986a7 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,17 @@ AC_DEFUN([CHECK_CXX0X],[ ]) CHECK_CXX0X + +AC_LANG_PUSH([C]) +AX_COMPILER_VENDOR +AX_COMPILER_VERSION +AC_LANG_POP([C]) +AC_LANG_PUSH([C++]) +AX_COMPILER_VENDOR +AX_COMPILER_VERSION +AC_LANG_POP([C++]) + + AX_ASSERT AX_PLATFORM @@ -222,8 +233,6 @@ AC_CHECK_HEADER([umem.h], AM_CONDITIONAL([BUILD_CACHE],[test "x$build_cache" = "xyes"]) -AX_COMPILER_VENDOR - AC_CHECK_TYPES([in_port_t],,,[[ #ifdef HAVE_SYS_TYPES_H # include @@ -349,9 +358,9 @@ echo "" echo " * Installation prefix: $prefix" echo " * System type: $host_vendor-$host_os" echo " * Host CPU: $host_cpu" -echo " * C Compiler: $CC_VERSION" +echo " * C Compiler: $ax_cv_c_compiler_vendor $ax_cv_c_compiler_version" echo " * C Flags: $CFLAGS" -echo " * C++ Compiler: $CXX_VERSION" +echo " * C++ Compiler: $ax_cv_cxx_compiler_vendor $ax_cv_cxx_compiler_version" echo " * C++ Flags: $CXXFLAGS" echo " * CPP Flags: $CPPFLAGS" echo " * LIB Flags: $LIB"