diff -u -r1.1 configure.in
--- configure.in        2001/04/13 14:39:44     1.1
+++ configure.in        2001/05/04 22:55:42
@@ -18,16 +18,18 @@
 )
 
 if test "$with_debug" != "yes"; then
-       OPT="-Wstrict-prototypes -Wall -O6 -fomit-frame-pointer" 
+       OPT="-Wstrict-prototypes -Wall -O2 -fomit-frame-pointer" 
 else
-       OPT="-D__DEBUG__ -g -O2"
+       OPT="-D__DEBUG__ -g"
 fi
 
+AC_SEARCH_LIBS(crypt, crypt, WITHCRYPT="", WITHCRYPT="-lcrypt")
+
 SOURCES="PoPymodule.c PoPymodule.h"
 LDFLAGS="$PGSQLLIBS $LDFLAGS"
 
 AC_CHECK_LIB(pq, PQconnectStart, PGSQLLIBS="$PGSQLLIBS -lpq",
-       AC_MSG_ERROR(can't build without PostgreSQL libraries), -lcrypt)
+       AC_MSG_ERROR(can't build without PostgreSQL libraries), $WITHCRYPT)
 
 AC_SUBST(PGSQLFLAGS)
 AC_SUBST(PGSQLLIBS)
