Add new option `--disable-mmap' to configure script.
* builds/unix/configure.raw: New option `--disable-mmap' is added. It is for the developers to simulate the systems without mmap() (like 4.3BSD, minix etc) on POSIX systems.
This commit is contained in:
parent
58cb359335
commit
7c6da3d73a
|
@ -1,3 +1,11 @@
|
|||
2011-05-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
Add new option `--disable-mmap' to configure script.
|
||||
|
||||
* builds/unix/configure.raw: New option `--disable-mmap'
|
||||
is added. It is for the developers to simulate the systems
|
||||
without mmap() (like 4.3BSD, minix etc) on POSIX systems.
|
||||
|
||||
2011-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||
|
||||
[truetype] Recalculate the sfnt table checksum always.
|
||||
|
|
|
@ -189,8 +189,14 @@ CPPFLAGS="${orig_CPPFLAGS}"
|
|||
|
||||
# Here we check whether we can use our mmap file component.
|
||||
|
||||
AC_FUNC_MMAP
|
||||
if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
|
||||
AC_ARG_ENABLE([mmap],
|
||||
AS_HELP_STRING([--disable-mmap],
|
||||
[do not check mmap() and do not use]),
|
||||
[enable_mmap="no"],[enable_mmap="yes"])
|
||||
if test "x${enable_mmap}" != "xno"; then
|
||||
AC_FUNC_MMAP
|
||||
fi
|
||||
if test "x${enable_mmap}" = "xno" -o "$ac_cv_func_mmap_fixed_mapped" != "yes" ; then
|
||||
FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
|
||||
else
|
||||
FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
|
||||
|
|
Loading…
Reference in New Issue