Ah, well. I'm was just too tired for autoconf. But there is a simple solution - see the attached patch. It will define -DVTY_CRYPT_PW= if crypt is found. If -lcrypt is needed, $(LIB_CRYPT) will be -lcrypt
Interesting. I'm no autoconf expert but so far I would have added AC_SUBST(LIBCRYPT) after the check statement..... Anybody happens to know if and what difference it makes?
http://ftp.df.lth.se/pub/gnome/teams/marketing/en/2003/autotools/html/foil26...
With AC_SUBST, we could write @LIB_CRYPT@ in Makefile.am.
It might be a matter of taste.
- Lars