use libcrypt before libcrypto

itojun at iijlab.net itojun at iijlab.net
Tue Jun 25 12:31:04 EST 2002


>> +# use libcrypt if there is
>> +AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
>> +
>AC_CHECK_LIB(crypt, crypt) will automatically add -lcrypt to $LIBS. It
>will also define HAVE_LIBCRYPT (is this what you're trying to avoid)?
>Anyway, I'd prefer:
>  AC_CHECK_FUNCS(crypt, , AC_CHECK_LIB(crypt, crypt))
>This way we check if crypt is resolvable using the existing $LIBS and,
>if not, use $LIBS+-lcrypt.

	either way is fine for me, as long as crypt() supplied by the
	native system is preferred than openssl crypt().  thanks.

itojun



More information about the openssh-unix-dev mailing list