[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
diff --git a/configure.in b/configure.in
index 9b38d41..f0c0e10 100644
--- a/configure.in
+++ b/configure.in
@@ -10,6 +10,7 @@
 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