On Saturday 19 November 2011 01:44:06 Laurent Dard wrote: [...] > I doubt the first test is useful. On our modern Linux systems, probably is useless. But we don't know if other unix like systems do not incorporate it in libc. > I believe check_function_exists always fails here. > > $ man 3 crypt > --> "Link with -lcrypt." > > This would be better, no?: > > check_library_exists( crypt crypt "" HAVE_CRYPT ) > if( HAVE_CRYPT ) > set( CRYPT_LIBRARY crypt ) > endif( ) -- Serghei