source: squid-ssl/trunk/fuentes/helpers/basic_auth/getpwnam/required.m4 @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

  • Property svn:executable set to *
File size: 645 bytes
Line 
1## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
2##
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.
6##
7
8AC_CHECK_HEADERS([pwd.h],[
9  # check for crypt(3), may require -lcrypt
10  SQUID_STATE_SAVE(getpwnam_helper)
11  LIBS="$LIBS $CRYPTLIB"
12  AC_CHECK_FUNCS(crypt)
13  SQUID_STATE_ROLLBACK(getpwnam_helper)
14
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)
18
19    BUILD_HELPER="getpwnam"
20  fi
21])
Note: See TracBrowser for help on using the repository browser.