From: Uwe Hermann Date: Wed, 4 Jan 2012 01:41:33 +0000 (+0100) Subject: srd: Show config summary, libs, and Python info. X-Git-Tag: libsigrokdecode-0.1.0~215 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=aa56f7ad4f6238fd994b37bf61ba0efa052c14d5 srd: Show config summary, libs, and Python info. --- diff --git a/configure.ac b/configure.ac index d78fc24..f2bf69d 100644 --- a/configure.ac +++ b/configure.ac @@ -162,3 +162,31 @@ AC_CONFIG_FILES([Makefile AC_OUTPUT +echo +echo "libsigrokdecode configuration summary:" +echo +echo " - Package version (major.minor.micro): $LIBSIGROKDECODE_VERSION" +echo " - Library version (current:revision:age): $LIBSIGROKDECODE_LT_VERSION" +echo " - Prefix: $prefix" +echo +echo "Detected libraries:" +echo + +# Note: This only works for libs with pkg-config integration. +for lib in "glib-2.0"; do + if `$PKG_CONFIG --exists $lib`; then + ver=`$PKG_CONFIG --modversion $lib` + answer="yes ($ver)" + else + answer="no" + fi + echo " - $lib: $answer" +done + +echo +echo "Detected Python:" +echo +echo " - Python CPPFLAGS: $CPPFLAGS_PYTHON" +echo " - Python LDFLAGS: $LDFLAGS_PYTHON" +echo +