configure: improve checks for funcs not in stdlib
[m6w6/ext-psi] / m4 / posix / unistd.m4
index 21265005fef8320ffd6d1055b0baa453859eae71..fde0fe9fc5272abbbe992d29381c2bf93f9418c0 100644 (file)
@@ -289,18 +289,10 @@ PSI_CHECK_UNISTD() {
        PSI_DECL(int chown, [(const char *path, uid_t owner, gid_t group)])
        PSI_DECL(int close, [(int fildes)])
        PSI_DECL(size_t confstr, [(int name, char *buf, size_t len)])
-       
-       AC_SEARCH_LIBS(crypt, crypt, [
-               PSI_DECL(char *crypt, [(const char *key, const char *salt)])
-       ])
-       
+       PSI_DECL(char *crypt, [(const char *key, const char *salt)], [], [-lcrypt])
        PSI_DECL(int dup, [(int fildes)])
        PSI_DECL(int dup2, [(int fildes, int fildes2)])
-       
-       AC_SEARCH_LIBS(encrypt, crypt, [
-               PSI_DECL(void encrypt, [(char block@<:@64@:>@, int edflag)])
-       ])
-       
+       PSI_DECL(void encrypt, [(char block@<:@64@:>@, int edflag)], [], [-lcrypt])
        PSI_DECL(void _exit, [(int status)])
        PSI_DECL(int execl, [(const char *path, const char *arg)], vararg)
        PSI_DECL(int execle, [(const char *path, const char *arg)], vararg)