Mercurial > dropbear
comparison configure.ac @ 1159:f567a4152c14
Test for crypt() rather than crypt.h
Print a message from configure if getpass() or crypt() were missing
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 21 Oct 2015 23:08:22 +0800 |
parents | ef67b57fe438 |
children | fbcd0a20e667 |
comparison
equal
deleted
inserted
replaced
1158:ef67b57fe438 | 1159:f567a4152c14 |
---|---|
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 getpass 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 crypt]) |
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 |
717 AC_CONFIG_FILES(Makefile $LIBTOM_FILES) | 717 AC_CONFIG_FILES(Makefile $LIBTOM_FILES) |
718 AC_OUTPUT | 718 AC_OUTPUT |
719 | 719 |
720 AC_MSG_NOTICE() | 720 AC_MSG_NOTICE() |
721 if test $BUNDLED_LIBTOM = 1 ; then | 721 if test $BUNDLED_LIBTOM = 1 ; then |
722 AC_MSG_NOTICE(Using bundled libtomcrypt and libtommath) | 722 AC_MSG_NOTICE([Using bundled libtomcrypt and libtommath]) |
723 else | 723 else |
724 AC_MSG_NOTICE(Using system libtomcrypt and libtommath) | 724 AC_MSG_NOTICE([Using system libtomcrypt and libtommath]) |
725 fi | 725 fi |
726 | 726 |
727 | |
728 if test "x$ac_cv_func_getpass" != xyes; then | |
727 AC_MSG_NOTICE() | 729 AC_MSG_NOTICE() |
728 AC_MSG_NOTICE(Now edit options.h to choose features.) | 730 AC_MSG_NOTICE([getpass() not available, dbclient will only have public-key authentication]) |
731 fi | |
732 | |
733 if test "x$ac_cv_func_crypt" != xyes; then | |
734 AC_MSG_NOTICE() | |
735 AC_MSG_NOTICE([crypt() not available, dropbear server will not have password authentication]) | |
736 fi | |
737 | |
738 AC_MSG_NOTICE() | |
739 AC_MSG_NOTICE([Now edit options.h to choose features.]) |