configure.in
changeset 3405 d5f2dd33f4eb
parent 3394 2b0a3b2f2fc6
child 3415 1756b9569141
     1.1 --- a/configure.in	Sun Oct 18 16:14:35 2009 +0000
     1.2 +++ b/configure.in	Sun Oct 18 17:49:40 2009 +0000
     1.3 @@ -204,6 +204,15 @@
     1.4      if test x$ac_cv_func_strtod = xyes; then
     1.5          AC_DEFINE(HAVE_STRTOD)
     1.6      fi
     1.7 +    AC_CHECK_FUNC(mprotect,
     1.8 +        AC_TRY_COMPILE([
     1.9 +          #include <sys/types.h>
    1.10 +          #include <sys/mman.h>
    1.11 +        ],[
    1.12 +        ],[
    1.13 +        AC_DEFINE(HAVE_MPROTECT)
    1.14 +        ]),
    1.15 +    )
    1.16      AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf sigaction setjmp nanosleep)
    1.17  
    1.18      AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])