1 ## Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 AC_CHECK_HEADERS([pwd.h],[
9 # check for crypt(3), may require -lcrypt
10 SQUID_STATE_SAVE(getpwnam_helper)
11 LIBS="$LIBS $CRYPTLIB"
13 SQUID_STATE_ROLLBACK(getpwnam_helper)
15 # unconditionally requires crypt(3), for now
16 if test "x$ac_cv_func_crypt" != "x"; then
17 AC_CHECK_HEADERS(unistd.h crypt.h shadow.h)
19 BUILD_HELPER="getpwnam"