diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-07-14 12:25:24 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-07-14 12:26:54 +1000 |
commit | 7df91b01fc558a33941c5c5f31abbcdc53a729fb (patch) | |
tree | 6f10251f4c469d991bb77845fec57996f09c3345 /configure.ac | |
parent | ee67716f61f1042d5e67f91c23707cca5dcdd7d0 (diff) |
Check for VIS_ALL.
If we don't have it, set BROKEN_STRNVIS to activate the compat replacement.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f6c44b87..2439e394 100644 --- a/configure.ac +++ b/configure.ac @@ -1405,6 +1405,9 @@ g.gl_statv = NULL; AC_CHECK_DECLS([GLOB_NOMATCH], , , [#include <glob.h>]) +AC_CHECK_DECL([VIS_ALL], , + AC_DEFINE(BROKEN_STRNVIS, 1, [missing VIS_ALL]), [#include <vis.h>]) + AC_MSG_CHECKING([whether struct dirent allocates space for d_name]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ |