diff options
author | Andy Dougherty <doughera@lafayette.edu> | 1999-03-29 10:04:26 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-04-02 22:00:56 +0000 |
commit | a4ea3e349ec88e7ba7b1e4398fb21cc7b1b60ab8 (patch) | |
tree | ba4818a3f43e674199054958f65a5603c863d55f /hints/linux.sh | |
parent | 2000072cab81cd89af2f9e1974fc40b8ae0aecc8 (diff) | |
download | perl-a4ea3e349ec88e7ba7b1e4398fb21cc7b1b60ab8.tar.gz |
Display exact glibc version in Linux.
To: Perl Porters <perl5-porters@perl.org>
Subject: Displaying glibc version on Linux
Message-Id: <Pine.GSU.4.05.9903291417370.15335-100000@newton.phys>
p4raw-id: //depot/cfgperl@3203
Diffstat (limited to 'hints/linux.sh')
-rw-r--r-- | hints/linux.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index 4764e9ea4b..25d5d736d8 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 <sys/stat.h>. d_lstat=define |