summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-08-27 17:01:26 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-08-27 17:01:26 +0000
commit75814fb6055d9188d4462182e53f7feab6e7e06f (patch)
tree91f02ee9a8dfa50475c204d39cc11877dd98c2bb /configure.ac
parenta23976f732b211fef6d95bbd8f120c86f4188ec8 (diff)
Do not include execinfo.h if missing (Android)
Do not use strnlen if missing (Mac OS X 10.6.8) ( nthpowers)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0827cb0..0e3584e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,7 @@ AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([subdir-objects])
VERSION_INFO="2:48:0"
AM_MAINTAINER_MODE
+AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
AM_PROG_CC_C_O
@@ -119,6 +120,9 @@ AC_CHECK_TYPE(sa_family_t, [], [AC_DEFINE([sa_family_t], [uint16_t], [sa_family_
# check wether misaligned access is possible or not
AX_CHECK_ALIGNED_ACCESS_REQUIRED
+# check for various headers
+AC_CHECK_HEADERS([execinfo.h])
+
### zlib
CHECK_ZLIB()
@@ -234,6 +238,9 @@ AC_DEFINE(SETUID, 1,[Check for setuid])], AC_MSG_RESULT([not found]))
### Check for snprintf
AC_FUNC_SNPRINTF()
+### Check for strnlen
+AC_FUNC_STRNLEN()
+
## Online unit tests
AC_MSG_CHECKING(whether to enable online unit tests)
AC_ARG_ENABLE([online-unit-tests],