From: Andy Dougherty Date: Mon, 29 Mar 1999 15:04:26 +0000 (-0500) Subject: Display exact glibc version in Linux. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4ea3e349ec88e7ba7b1e4398fb21cc7b1b60ab8;p=p5sagit%2Fp5-mst-13.2.git Display exact glibc version in Linux. To: Perl Porters Subject: Displaying glibc version on Linux Message-Id: p4raw-id: //depot/cfgperl@3203 --- diff --git a/hints/linux.sh b/hints/linux.sh index 4764e9e..25d5d73 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -56,6 +56,19 @@ set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'` shift libswanted="$*" +# If you have glibc, then report the version for ./myconfig bug reporting. +# (Configure doesn't need to know the specific version since it just uses +# gcc to load the library for all tests.) +# Is this sufficiently robust for libc5 systems as well as +# glibc-2.1.x systems? +# We don't use __GLIBC__ and __GLIBC_MINOR__ because they +# are insufficiently precise to distinguish things like +# libc-2.0.6 and libc-2.0.7. +if test -L /lib/libc.so.6; then + libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'` + libc=/lib/$libc +fi + # Configure may fail to find lstat() since it's a static/inline # function in . d_lstat=define