replace AC_TRY_COMPILE with AC_COMPILE_IFELSE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14151 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -9,11 +9,11 @@ AC_DEFUN([KRB_READLINE],[
|
||||
AC_FIND_FUNC_NO_LIBS(el_init, edit, [], [], [$LIB_tgetent])
|
||||
if test "$ac_cv_func_el_init" = yes ; then
|
||||
AC_CACHE_CHECK(for four argument el_init, ac_cv_func_el_init_four,[
|
||||
AC_TRY_COMPILE([#include <stdio.h>
|
||||
#include <histedit.h>],
|
||||
[el_init("", NULL, NULL, NULL);],
|
||||
ac_cv_func_el_init_four=yes,
|
||||
ac_cv_func_el_init_four=no)])
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
|
||||
#include <histedit.h>]],
|
||||
[[el_init("", NULL, NULL, NULL);]])],
|
||||
[ac_cv_func_el_init_four=yes],
|
||||
[ac_cv_func_el_init_four=no])])
|
||||
if test "$ac_cv_func_el_init_four" = yes; then
|
||||
AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1, [Define if el_init takes four arguments.])
|
||||
fi
|
||||
|
Reference in New Issue
Block a user