Changeset 1454


Ignore:
Timestamp:
11/04/10 18:20:15 (22 months ago)
Author:
Freddie Akeroyd
Message:

Check for rl_completion_matches and use completion_matches if not present. Refs #223

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/applications/NXbrowse.c

    r1427 r1454  
    5454#include <readline/readline.h> 
    5555#include <readline/history.h> 
     56#ifndef HAVE_RL_COMPLETION_MATCHES 
     57#define rl_completion_matches(a,b) completion_matches(a,b) 
     58#endif /* ifndef HAVE_RL_COMPLETION_MATCHES */ 
    5659#else 
    5760#define rl_completion_matches(a,b) NULL 
  • branches/4.2/configure.ac

    r1453 r1454  
    697697AC_CHECK_FUNCS([ftime memset strchr strdup strrchr strstr tzset mkstemp]) 
    698698 
     699AC_CHECK_FUNC([rl_completion_matches]) 
     700 
    699701AM_CONDITIONAL(HAVE_CPP, [test ! -z "$CXX"]) 
    700702AM_CONDITIONAL(HAVE_F77, [test "$with_f77" != "no"]) 
Note: See TracChangeset for help on using the changeset viewer.