replace AC_TRY_RUN with AC_RUN_IFELSE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14161 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -6,7 +6,7 @@ dnl
|
||||
AC_DEFUN([rk_BROKEN_REALLOC], [
|
||||
AC_CACHE_CHECK(if realloc if broken, ac_cv_func_realloc_broken, [
|
||||
ac_cv_func_realloc_broken=no
|
||||
AC_TRY_RUN([
|
||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -14,7 +14,7 @@ int main()
|
||||
{
|
||||
return realloc(NULL, 17) == NULL;
|
||||
}
|
||||
],:, ac_cv_func_realloc_broken=yes, :)
|
||||
]])],[:], [ac_cv_func_realloc_broken=yes],[:])
|
||||
])
|
||||
if test "$ac_cv_func_realloc_broken" = yes ; then
|
||||
AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL) doesn't work.])
|
||||
|
Reference in New Issue
Block a user