Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Upstream-Status: pending |
| 2 | |
| 3 | Don't check 'sys/acl.h' if acl support disabled for vim/vim-tiny. |
| 4 | |
| 5 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
| 6 | ================================================ |
| 7 | diff --git a/src/configure.in b/src/configure.in |
| 8 | index fb965e5..d734064 100644 |
| 9 | --- a/src/configure.in |
| 10 | +++ b/src/configure.in |
| 11 | @@ -2511,7 +2511,7 @@ AC_CHECK_HEADERS(stdarg.h stdint.h stdlib.h string.h \ |
| 12 | sys/systeminfo.h locale.h sys/stream.h termios.h \ |
| 13 | libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ |
| 14 | utime.h sys/param.h libintl.h libgen.h \ |
| 15 | - util/debug.h util/msg18n.h frame.h sys/acl.h \ |
| 16 | + util/debug.h util/msg18n.h frame.h \ |
| 17 | sys/access.h sys/sysinfo.h wchar.h wctype.h) |
| 18 | |
| 19 | dnl sys/ptem.h depends on sys/stream.h on Solaris |
| 20 | @@ -3112,6 +3112,7 @@ AC_ARG_ENABLE(acl, |
| 21 | , [enable_acl="yes"]) |
| 22 | if test "$enable_acl" = "yes"; then |
| 23 | AC_MSG_RESULT(no) |
| 24 | +AC_CHECK_HEADERS(sys/acl.h) |
| 25 | AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"], |
| 26 | AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl" |
| 27 | AC_CHECK_LIB(attr, fgetxattr, LIBS="$LIBS -lattr",,)],,),) |