Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/eet

Dir     : e17/libs/eet


Modified Files:
        configure.in 


Log Message:
check the value of the null pointer, and print a warning if it's not zero
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/eet/configure.in,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- configure.in        7 May 2005 06:01:14 -0000       1.28
+++ configure.in        26 May 2005 15:33:26 -0000      1.29
@@ -50,6 +50,20 @@
 
 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 <stdlib.h>
+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




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to