]> git.puffer.fish Git - matthieu/frr.git/commitdiff
From: Sergiy Vyshnevetskiy <serg@vostok.net>
authorpaul <paul>
Fri, 23 May 2003 10:33:49 +0000 (10:33 +0000)
committerpaul <paul>
Fri, 23 May 2003 10:33:49 +0000 (10:33 +0000)
Subject: [zebra 18994] Re: zebra-pj compile failure under OpenBSd 3.3
    (gmake)

properly detect rl_completion_matches vs completion_matches.

configure.ac
configure.in

index 586245569de153d666f256bb9d4f2cfd440e8a86..fc854ad76822e89a703c4e1d0e59c6bc37fd4920 100755 (executable)
@@ -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
index 586245569de153d666f256bb9d4f2cfd440e8a86..fc854ad76822e89a703c4e1d0e59c6bc37fd4920 100755 (executable)
@@ -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