at: change dependency on libpam

only use libpam if it was selected previously
unclear situation when building as a module

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>