From: Sergiy Vyshnevetskiy <serg@vostok.net>

Subject: [zebra 18994] Re: zebra-pj compile failure under OpenBSd 3.3
    (gmake)

properly detect rl_completion_matches vs completion_matches.
This commit is contained in:
paul 2003-05-23 10:33:49 +00:00
parent 32d2463ca2
commit 3d3de8c4a4
2 changed files with 10 additions and 0 deletions

View file

@ -216,6 +216,11 @@ case "${enable_vtysh}" in
AC_MSG_ERROR([readline is too old to have readline/history.h, please update to the latest readline library.])
fi
;;
AC_CHECK_LIB(readline, rl_completion_matches)
if test $ac_cv_lib_readline_rl_completion_matches = no; then
AC_DEFINE(rl_completion_matches,completion_matches,Old readline)
fi
;;
"no" ) VTYSH="";;
* ) ;;
esac

View file

@ -216,6 +216,11 @@ case "${enable_vtysh}" in
AC_MSG_ERROR([readline is too old to have readline/history.h, please update to the latest readline library.])
fi
;;
AC_CHECK_LIB(readline, rl_completion_matches)
if test $ac_cv_lib_readline_rl_completion_matches = no; then
AC_DEFINE(rl_completion_matches,completion_matches,Old readline)
fi
;;
"no" ) VTYSH="";;
* ) ;;
esac