}
+########################################################################
+# Are we on Linux with -lcrypt and PAMmy stuff?
+########################################################################
+echo Testing for lcrypt...
+tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/configure.$$
+tempcc=${tempfile}.c
+cat >$tempcc <<!
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <crypt.h>
+int main(int argc, char **argv) {
+ return(0);
+}
+!
+
+$CC $CFLAGS $CPPFLAGS $tempcc -lcrypt -o $tempfile && {
+ CHKPW='chkpw chkpwd'
+} || {
+ CHKPW=''
+}
+
+
########################################################################
# This is needed to link Berkeley DB. We will add more here later.
########################################################################
echo "LRESOLV := ${LRESOLV}"
echo "LINTL := ${LINTL}"
echo "BACKEND_LDFLAGS := ${BACKEND_LDFLAGS}"
+ echo "CHKPW := ${CHKPW}"
) >config.mk
cat config.mk