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

Diff of /trunk/configure.ac

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

Revision 180 Revision 181
96dnl they're m4 escape sequences for left and right brackets 96dnl they're m4 escape sequences for left and right brackets
97LIBC_VERSION=`readelf -d libctest | grep NEEDED.*libc\\.so | $AWK '{print $NF}' | sed -e 's:\@<:@::' -e 's:\@:>@::'` 97LIBC_VERSION=`readelf -d libctest | grep NEEDED.*libc\\.so | $AWK '{print $NF}' | sed -e 's:\@<:@::' -e 's:\@:>@::'`
98if test "$LIBC_VERSION"x = x ; then 98if test "$LIBC_VERSION"x = x ; then
99 AC_MSG_ERROR([Unable to determine LIBC VERSION]) 99 AC_MSG_ERROR([Unable to determine LIBC VERSION])
100fi 100fi
101rm -f libctest
101AC_MSG_RESULT([$LIBC_VERSION]) 102AC_MSG_RESULT([$LIBC_VERSION])
102AC_DEFINE_UNQUOTED([LIBC_VERSION], ["$LIBC_VERSION"], [name of libc to hook into]) 103AC_DEFINE_UNQUOTED([LIBC_VERSION], ["$LIBC_VERSION"], [name of libc to hook into])
103 104
104dnl check if we have 32bit or 64bit output 105dnl check if we have 32bit or 64bit output
105AC_MSG_CHECKING([output abi]) 106AC_ARG_ENABLE([multilib],
106OUTPUT_ABI=`file libctest | grep 'ELF 64-bit LSB'` 107 AS_HELP_STRING([--enable-multilib],
107if test "$OUTPUT_ABI"x = x ; then 108 [enable building for multilib setups (default=disabled)]),
108 OUTPUT_ABI="ELF 32-bit LSB" 109 [enable_multilib="$enableval"],
109else 110 [enable_multilib="no"]
110 OUTPUT_ABI="ELF 64-bit LSB" 111)
111 AC_DEFINE_UNQUOTED([SB_HAVE_64BIT_ARCH], ["1"], [have 64-bit abi]) 112
113if test "$enable_multilib"x != xno ; then
114 AC_DEFINE_UNQUOTED([SB_HAVE_MULTILIB], [1], [have multilib enabled system])
112fi 115fi
113AC_MSG_RESULT([$OUTPUT_ABI])
114rm -f libctest
115 116
116AC_OUTPUT([Makefile data/Makefile src/Makefile]) 117AC_OUTPUT([Makefile data/Makefile src/Makefile])

Legend:
Removed from v.180  
changed lines
  Added in v.181

  ViewVC Help
Powered by ViewVC 1.1.20