comparison configure.ac @ 1158:ef67b57fe438

fix default build when getpass() is unavailable if the system doesn't support getpass, we still default on the options that require it which causes a build failure. instead, only default enable these when getpass is available.
author Mike Frysinger <vapier@gentoo.org>
date Wed, 21 Oct 2015 22:48:15 +0800
parents f2a3570b5110
children f567a4152c14
comparison
equal deleted inserted replaced
1157:14854ea32d2c 1158:ef67b57fe438
630 630
631 # Checks for library functions. 631 # Checks for library functions.
632 AC_PROG_GCC_TRADITIONAL 632 AC_PROG_GCC_TRADITIONAL
633 AC_FUNC_MEMCMP 633 AC_FUNC_MEMCMP
634 AC_FUNC_SELECT_ARGTYPES 634 AC_FUNC_SELECT_ARGTYPES
635 AC_CHECK_FUNCS([dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev]) 635 AC_CHECK_FUNCS([dup2 getpass getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev])
636 636
637 AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) 637 AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
638 638
639 # Solaris needs ptmx 639 # Solaris needs ptmx
640 if test -z "$no_ptmx_check" ; then 640 if test -z "$no_ptmx_check" ; then