aboutsummaryrefslogtreecommitdiff
path: root/X11/aclocal.m4
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-26 20:09:16 +0000
committermarha <marha@users.sourceforge.net>2010-12-26 20:09:16 +0000
commit98a38f8fe605b90577b7a07f68b8a0866dd18a15 (patch)
treebc8a396a648b702c77c82155c6c364b8f1c9ccb2 /X11/aclocal.m4
parentbfc120af66586bc6c79cd65a6bc7733b7ccdb428 (diff)
downloadvcxsrv-98a38f8fe605b90577b7a07f68b8a0866dd18a15.tar.gz
vcxsrv-98a38f8fe605b90577b7a07f68b8a0866dd18a15.tar.bz2
vcxsrv-98a38f8fe605b90577b7a07f68b8a0866dd18a15.zip
Updated to xproto-7.0.20
Diffstat (limited to 'X11/aclocal.m4')
-rw-r--r--X11/aclocal.m422
1 files changed, 10 insertions, 12 deletions
diff --git a/X11/aclocal.m4 b/X11/aclocal.m4
index 641b5d91f..b2cf5c5a6 100644
--- a/X11/aclocal.m4
+++ b/X11/aclocal.m4
@@ -1829,12 +1829,12 @@ AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes])
# parm1: specify the default value, yes or no.
#
AC_DEFUN([XORG_ENABLE_DOCS],[
-m4_define([default], m4_default([$1], [yes]))
+m4_define([docs_default], m4_default([$1], [yes]))
AC_ARG_ENABLE(docs,
AS_HELP_STRING([--enable-docs],
- [Enable building the documentation (default: ]default[)]),
- [build_docs=$enableval], [build_docs=]default)
-m4_undefine([default])
+ [Enable building the documentation (default: ]docs_default[)]),
+ [build_docs=$enableval], [build_docs=]docs_default)
+m4_undefine([docs_default])
AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes])
AC_MSG_CHECKING([whether to build documentation])
AC_MSG_RESULT([$build_docs])
@@ -1922,18 +1922,16 @@ AC_ARG_ENABLE(malloc0returnsnull,
AC_MSG_CHECKING([whether malloc(0) returns NULL])
if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
- AC_RUN_IFELSE([
-char *malloc();
-char *realloc();
-char *calloc();
-main() {
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([
+#include <stdlib.h>
+],[
char *m0, *r0, *c0, *p;
m0 = malloc(0);
p = malloc(10);
r0 = realloc(p,0);
- c0 = calloc(0);
- exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
-}],
+ c0 = calloc(0,10);
+ exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
+])],
[MALLOC_ZERO_RETURNS_NULL=yes],
[MALLOC_ZERO_RETURNS_NULL=no],
[MALLOC_ZERO_RETURNS_NULL=yes])