aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-06-02 04:04:36 +0000
committerHolger Freyther <zecke@selfish.org>2009-06-02 04:04:36 +0000
commit2e99605b7e73ccf31f4100d44ae4ec9e57664a31 (patch)
tree1f9b9f003562986e2ef191ce1453eeae5f35d9be /configure.in
parent8521e5f050b20f3835c929d4c6804902e726cf2a (diff)
[misc] Search for the crypt symbol to conditionally enable crypt in VTY
It will define -DVTY_CRYPT_PW= if crypt is found. If -lcrypt is needed, $(LIB_CRYPT) will be -lcrypt. Compiles on OS X and Linux and reenables crypt. Patch by: Lars Immisch
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 9b38d417b..f0c0e10c5 100644
--- a/configure.in
+++ b/configure.in
@@ -10,6 +10,7 @@ AC_PROG_INSTALL
AC_PROG_RANLIB
dnl checks for libraries
+AC_SEARCH_LIBS(crypt, crypt, [LIBCRYPT="-lcrypt";AC_DEFINE(VTY_CRYPT_PW)])
dnl checks for header files
AC_HEADER_STDC