aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-07-09 04:06:34 -0700
committerRoland McGrath <roland@hack.frob.com>2011-07-09 04:06:34 -0700
commitd30cf5bb00bfb286ff14d931fb69f5b53724bcdc (patch)
treefa876abbb866522f9da28d9228ddd39bea322ffe /configure.in
parent8538fdb3ec7c8899cbc5dbbce4a3fbfe7cf8c2a1 (diff)
downloadglibc-d30cf5bb00bfb286ff14d931fb69f5b53724bcdc.zip
glibc-d30cf5bb00bfb286ff14d931fb69f5b53724bcdc.tar.gz
glibc-d30cf5bb00bfb286ff14d931fb69f5b53724bcdc.tar.bz2
Find readelf with AC_CHECK_TOOL for use in configure tests.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index f34aab3..95450ba 100644
--- a/configure.in
+++ b/configure.in
@@ -1046,6 +1046,8 @@ AC_CHECK_PROG_VER(SED, sed, --version,
[3.0[2-9]*|3.[1-9]*|[4-9]*],
SED=: aux_missing="$aux_missing sed")
+AC_CHECK_TOOL(READELF, readelf, false)
+
AC_CHECK_PROGS(AUTOCONF, autoconf, no)
case "x$AUTOCONF" in
xno|x|x:) AUTOCONF=no ;;
@@ -1469,7 +1471,7 @@ EOF
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
-static -nostartfiles -nostdlib 1>&AS_MESSAGE_LOG_FD])
then
- if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
+ if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
libc_cv_initfini_array=yes
else
libc_cv_initfini_array=no
@@ -1666,7 +1668,7 @@ dnl cross-platform since the gcc used can be a cross compiler. Without
dnl introducing new options this is not easily doable. Instead use a tool
dnl which always is cross-platform: readelf. To detect whether -z combreloc
dnl look for a section named .rel.dyn.
- if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
+ if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
libc_cv_z_combreloc=yes
else
libc_cv_z_combreloc=no