Change code base to Nicira's master branch
This commit is contained in:
1 parent
695db2964e
commit
5ff6ec248d
199 files changed
+10152
-1817
No files matched your search
@@ -150,6 +150,26 @@ AC_DEFUN([OFP_CHECK_LOGDIR],
|
||||
[LOGDIR='${localstatedir}/log/${PACKAGE}'])
|
||||
AC_SUBST([LOGDIR])])
|
||||
|
||||
dnl Checks for __malloc_hook, etc., supported by glibc.
|
||||
AC_DEFUN([OFP_CHECK_MALLOC_HOOKS],
|
||||
[AC_CACHE_CHECK(
|
||||
[whether libc supports hooks for malloc and related functions],
|
||||
[ofp_cv_malloc_hooks],
|
||||
[AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <malloc.h>
|
||||
],
|
||||
[(void) __malloc_hook;
|
||||
(void) __realloc_hook;
|
||||
(void) __free_hook;])],
|
||||
[ofp_cv_malloc_hooks=yes],
|
||||
[ofp_cv_malloc_hooks=no])])
|
||||
if test $ofp_cv_malloc_hooks = yes; then
|
||||
AC_DEFINE([HAVE_MALLOC_HOOKS], [1],
|
||||
[Define to 1 if you have __malloc_hook, __realloc_hook, and
|
||||
__free_hook in <malloc.h>.])
|
||||
fi])
|
||||
|
||||
dnl Runs the checks required to include the headers in include/ and
|
||||
dnl link against lib/libopenflow.a.
|
||||
AC_DEFUN([OFP_CHECK_LIBOPENFLOW],
|
||||
@@ -163,5 +183,6 @@ AC_DEFUN([OFP_CHECK_LIBOPENFLOW],
|
||||
AC_REQUIRE([OFP_CHECK_PKIDIR])
|
||||
AC_REQUIRE([OFP_CHECK_RUNDIR])
|
||||
AC_REQUIRE([OFP_CHECK_LOGDIR])
|
||||
AC_REQUIRE([OFP_CHECK_MALLOC_HOOKS])
|
||||
AC_CHECK_FUNCS([strlcpy])])
|
||||
|
||||
Reference in new issue
Block a user