mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
added SUDO_FUNC_FNMATCH
This commit is contained in:
parent
f0379ffce9
commit
95389204fc
20
aclocal.m4
vendored
20
aclocal.m4
vendored
@ -310,6 +310,26 @@ if test $sudo_cv_func_utime_posix = yes; then
|
||||
fi
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl check for working fnmatch(3)
|
||||
dnl
|
||||
AC_DEFUN(SUDO_FUNC_FNMATCH,
|
||||
[AC_MSG_CHECKING(for working fnmatch)
|
||||
AC_CACHE_VAL(sudo_cv_func_fnmatch,
|
||||
[rm -f conftestdata; > conftestdata
|
||||
AC_TRY_RUN([main() {
|
||||
exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", 0));
|
||||
}], sudo_cv_func_fnmatch=yes, sudo_cv_func_fnmatch=no,
|
||||
sudo_cv_func_fnmatch=no)
|
||||
rm -f core core.* *.core])dnl
|
||||
AC_MSG_RESULT($sudo_cv_func_fnmatch)
|
||||
if test $sudo_cv_func_fnmatch = yes; then
|
||||
[$1]
|
||||
else
|
||||
[$2]
|
||||
fi
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl check for sa_len field in struct sockaddr
|
||||
dnl
|
||||
|
Loading…
x
Reference in New Issue
Block a user