From ef5760f3938184bf3b28fa15bf2a14b6154d9fbc Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Thu, 26 May 2005 15:33:26 +0000 Subject: [PATCH] check the value of the null pointer, and print a warning if it's not zero SVN revision: 14962 --- legacy/eet/configure.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/legacy/eet/configure.in b/legacy/eet/configure.in index 92e80013c1..7dc3a31252 100644 --- a/legacy/eet/configure.in +++ b/legacy/eet/configure.in @@ -50,6 +50,20 @@ AC_DEFINE(__USE_GNU, , [Enable GNU extensions]) AC_CHECK_FUNCS(fmemopen open_memstream realpath) +dnl Check whether the null pointer is zero on this arch +AC_MSG_CHECKING([value of the null pointer]) +AC_TRY_RUN([ +#include +int main () { +void *foo = NULL; +int bar = (int) foo; + +return (int) foo;} +], AC_MSG_RESULT([\o/]), [ + AC_MSG_RESULT([o_O]) + AC_MSG_WARN([Your system is a bit too funny, eet might not work properly]) +]) + if test "x${bindir}" = 'x${exec_prefix}/bin'; then if test "x${exec_prefix}" = "xNONE"; then if test "x${prefix}" = "xNONE"; then