Improved detection of mprotect() SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 06:06:03 +0000
branchSDL-1.2
changeset 41120c3559059d6d
parent 4111 42f34d595d8b
child 4113 82dab719502e
Improved detection of mprotect()
configure.in
     1.1 --- a/configure.in	Sat Dec 29 05:30:20 2007 +0000
     1.2 +++ b/configure.in	Sat Dec 29 06:06:03 2007 +0000
     1.3 @@ -146,7 +146,16 @@
     1.4      if test x$ac_cv_func_strtod = xyes; then
     1.5          AC_DEFINE(HAVE_STRTOD)
     1.6      fi
     1.7 -    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 iconv sigaction setjmp nanosleep mprotect)
     1.8 +    AC_CHECK_FUNC(mprotect,
     1.9 +        AC_TRY_COMPILE([
    1.10 +          #include <sys/types.h>
    1.11 +          #include <sys/mman.h>
    1.12 +        ],[
    1.13 +        ],[
    1.14 +        AC_DEFINE(HAVE_MPROTECT)
    1.15 +        ]),
    1.16 +    )
    1.17 +    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 iconv sigaction setjmp nanosleep)
    1.18  
    1.19      AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
    1.20      AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])