check for rl_completion_matches
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 3 May 2002 13:47:57 +0000 (13:47 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 3 May 2002 13:47:57 +0000 (13:47 +0000)
configure.in

index f684968..ea5551e 100644 (file)
@@ -1,6 +1,6 @@
 dnl YAZ Toolkit, Index Data 1994-2001
 dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.71 2002-04-15 12:03:39 adam Exp $
+dnl $Id: configure.in,v 1.72 2002-05-03 13:47:57 adam Exp $
 AC_INIT(include/yaz/yaz-version.h)
 AM_INIT_AUTOMAKE(yaz, 1.8.7)
 dnl
@@ -146,6 +146,15 @@ if test "$ac_cv_lib_readline_readline" = "yes"; then
                 rl_attempted_completion_over = 0;
         }
         ],AC_DEFINE(HAVE_READLINE_COMPLETION_OVER))
+        AC_TRY_LINK([
+       #include <stdio.h>
+       #include <readline/readline.h>
+       ],[
+        static void f()
+        {
+                rl_completion_matches (0, 0);
+        }
+        ],AC_DEFINE(HAVE_READLINE_RL_COMPLETION_MATCHES))
         LIBS=$OLDLIBS
 fi
 dnl ------ various functions