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

Diff of /trunk/configure.ac

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

Revision 178 Revision 179
92dnl libc to load and search with dl*() calls 92dnl libc to load and search with dl*() calls
93AC_MSG_CHECKING(libc version) 93AC_MSG_CHECKING(libc version)
94dnl the sed script at the end here looks funny but it's ok ... 94dnl the sed script at the end here looks funny but it's ok ...
95dnl they're m4 escape sequences for left and right brackets 95dnl they're m4 escape sequences for left and right brackets
96LIBC_VERSION=`readelf -d libctest | grep NEEDED.*libc\\.so | $AWK '{print $NF}' | sed -e 's:\@<:@::' -e 's:\@:>@::'` 96LIBC_VERSION=`readelf -d libctest | grep NEEDED.*libc\\.so | $AWK '{print $NF}' | sed -e 's:\@<:@::' -e 's:\@:>@::'`
97rm -f libctest
98if test "$LIBC_VERSION"x = x ; then 97if test "$LIBC_VERSION"x = x ; then
99 AC_MSG_ERROR(Unable to determine LIBC VERSION) 98 AC_MSG_ERROR(Unable to determine LIBC VERSION)
100fi 99fi
101AC_MSG_RESULT($LIBC_VERSION) 100AC_MSG_RESULT($LIBC_VERSION)
102AC_DEFINE_UNQUOTED(LIBC_VERSION, "$LIBC_VERSION", [name of libc to hook into]) 101AC_DEFINE_UNQUOTED(LIBC_VERSION, "$LIBC_VERSION", [name of libc to hook into])
103 102
103dnl check if we have 32bit or 64bit output
104AC_MSG_CHECKING([output abi])
105OUTPUT_ABI=`file libctest | grep 'ELF 64-bit LSB'`
106if test "$OUTPUT_ABI"x = x ; then
107 OUTPUT_ABI="ELF 32-bit LSB"
108else
109 OUTPUT_ABI="ELF 64-bit LSB"
110 AC_DEFINE_UNQUOTED([SB_HAVE_64BIT_ARCH], "1", [have 64-bit abi])
111fi
112AC_MSG_RESULT([$OUTPUT_ABI])
113rm -f libctest
114
104AC_OUTPUT([Makefile data/Makefile src/Makefile]) 115AC_OUTPUT([Makefile data/Makefile src/Makefile])

Legend:
Removed from v.178  
changed lines
  Added in v.179

  ViewVC Help
Powered by ViewVC 1.1.20