From: Francois-Xavier Le Bail Date: Wed, 16 Apr 2025 16:15:53 +0000 (+0200) Subject: Autoconf: Print the GNU C Library version when needed in autogen.sh X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b0f1d71891088c708ee98f94d0e26140b0eb3c68 Autoconf: Print the GNU C Library version when needed in autogen.sh --- diff --git a/autogen.sh b/autogen.sh index 7a3fe776..90cb2f0b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -32,6 +32,7 @@ if [ "$BUILD_YEAR2038" = yes ] && [ "`uname -s`" = Linux ]; then GLIBC_VERSION=`ldd --version|head -1|grep GLIBC|sed 's/.* //'` maj_glibc=`echo "$GLIBC_VERSION" | cut -d. -f1` min_glibc=`echo "$GLIBC_VERSION" | cut -d. -f2` + echo "GNU C Library identification: $GLIBC_VERSION" if [ "$maj_glibc" -gt 2 ] || { [ "$maj_glibc" -eq 2 ] && \ [ "$min_glibc" -ge 34 ]; }; then CONFIGURE_AC_NEW="configure.ac.new$$"