misc/libfreetype/builds/unix/ft-munmap.m4
author nemo
Thu, 16 May 2013 14:02:33 -0400
changeset 9004 901ee9a8a3b4
parent 5172 88f2e05288ba
permissions -rw-r--r--
Yeah, this isn't safe either. Caused bug #629 - removing.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
## FreeType specific autoconf tests
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
# Copyright 2002, 2003, 2004 by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
# David Turner, Robert Wilhelm, and Werner Lemberg.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
# This file is part of the FreeType project, and may only be used, modified,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
# and distributed under the terms of the FreeType project license,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
# indicate that you have read the license and understand and accept it
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
# fully.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
# serial 2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
AC_DEFUN([FT_MUNMAP_PARAM],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
  [AC_MSG_CHECKING([for munmap's first parameter type])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
   AC_COMPILE_IFELSE([
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
       AC_LANG_SOURCE([[
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
#include <unistd.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
#include <sys/mman.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
int munmap(void *, size_t);
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
       ]])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
     ],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
     [AC_MSG_RESULT([void *])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
      AC_DEFINE([MUNMAP_USES_VOIDP],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
        [],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
        [Define to 1 if the first argument of munmap is of type void *])],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
     [AC_MSG_RESULT([char *])])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
  ])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
# end of ft-munmap.m4