From: Daniel Elstner Date: Tue, 8 Sep 2015 02:47:46 +0000 (+0200) Subject: Build: Show compiler versions in summary X-Git-Tag: libsigrok-0.4.0~325 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=4512ccd36c141fb881f4cfbbc607a727182b69a6 Build: Show compiler versions in summary --- diff --git a/configure.ac b/configure.ac index 16056c2b..7e8340cd 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,10 @@ AC_PROG_LN_S # Required for per-target flags or subdir-objects with C sources. AM_PROG_CC_C_O +# Get compiler versions. +SR_PROG_VERSION([$CC], [sr_cc_version]) +SR_PROG_VERSION([$CXX], [sr_cxx_version]) + # Check for optional make features. SR_PROG_MAKE_NO_PRINT_DIRECTORY SR_PROG_MAKE_ORDER_ONLY @@ -466,11 +470,15 @@ libsigrok configuration summary: - Prefix.......................... $prefix - Building on..................... $build - Building for.................... $host + +Compile configuration: - C compiler...................... $CC + - C compiler version.............. $sr_cc_version - C compiler flags................ $CFLAGS - Additional C compiler flags..... $SR_EXTRA_CFLAGS - C compiler warnings............. $SR_WFLAGS - C++ compiler.................... $CXX + - C++ compiler version............ $sr_cxx_version - C++ compiler flags.............. $CXXFLAGS - C++ compiler warnings........... $SR_WXXFLAGS