New Autoconf test: HAVE_MMAP_FILE
Jeffrey A Law
Mon Apr 17 08:14:00 GMT 2000
In message < 20000404193339.N2775@wolery.cumb.org >you write:
> This patch adds a new test to configure, HAVE_MMAP_FILE. It tests
> whether you can set up a read-only, private mapping of a normal file
> with no specified address. This case is used by loadmsgcat.c and
> fixincl.c, and will shortly be used by cpplib.
> * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE([AC_FUNC_MMAP]).
> (AC_FUNC_MMAP_FILE): New macro, tests read-only private map of
> a plain file.
> * configure.in: Call AC_FUNC_MMAP_FILE.
> * configure: Regenerate.
> * config.in: Regenerate.
> * intl/loadmsgcat.c: Test HAVE_MMAP_FILE not HAVE_MMAP.
> * fixinc/fixincl.c: Likewise.
This is fine. Though don't you need to update acconfig.h too (note I'm
not an autoconf expert, so I could be wrong).
More information about the Gcc-patches