/[path-sandbox]/trunk/configure.ac
Gentoo

Diff of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 255 Revision 256
143AC_MSG_CHECKING([libc version]) 143AC_MSG_CHECKING([libc version])
144dnl the sed script at the end here looks funny but it's ok ... 144dnl the sed script at the end here looks funny but it's ok ...
145dnl they're m4 escape sequences for left and right brackets 145dnl they're m4 escape sequences for left and right brackets
146echo "int main(void) { return 0; }" > libctest.c 146echo "int main(void) { return 0; }" > libctest.c
147$CC -Wall -o libctest libctest.c 147$CC -Wall -o libctest libctest.c
148LIBC_VERSION=`readelf -d libctest | grep NEEDED.*libc\\.so | $AWK '{print $NF}' | sed -e 's:\@<:@::' -e 's:\@:>@::'` 148LIBC_VERSION=`$READELF -d libctest | grep NEEDED.*libc\\.so | $AWK '{print $NF}' | sed -e 's:\@<:@::' -e 's:\@:>@::'`
149rm -f libctest* 149rm -f libctest*
150if test "$LIBC_VERSION"x = x ; then 150if test "$LIBC_VERSION"x = x ; then
151 AC_MSG_ERROR([Unable to determine LIBC VERSION]) 151 AC_MSG_ERROR([Unable to determine LIBC VERSION])
152fi 152fi
153AC_MSG_RESULT([$LIBC_VERSION]) 153AC_MSG_RESULT([$LIBC_VERSION])

Legend:
Removed from v.255  
changed lines
  Added in v.256

  ViewVC Help
Powered by ViewVC 1.1.20