misc/libfreetype/builds/unix/ft-munmap.m4
author nemo
Mon, 29 Oct 2012 16:26:26 -0400
changeset 7882 35dfc54ba2c6
parent 5172 88f2e05288ba
permissions -rw-r--r--
disable this block since it doesn't fit star's new graphic. doesn't show up often anyway, since unc0rr changed gst clearing
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