diff -urN apache_1.3.29/src/Configure apache_1.3.29-cygwin/src/Configure
--- apache_1.3.29/src/Configure	2003-07-16 22:27:08.000000000 +0200
+++ apache_1.3.29-cygwin/src/Configure	2004-02-04 17:23:01.199000000 +0100
@@ -854,7 +854,7 @@
 	OSDIR="os/cygwin"
 	CFLAGS="$CFLAGS -DCYGWIN"
 	DEF_WANTHSREGEX=yes
-	DBM_LIB="-lgdbm"
+	DBM_LIB="-lgdbm_compat -lgdbm"
 	LIBS="$LIBS -lcrypt $DBM_LIB"
 	if [ "x$RULE_CYGWIN_WINSOCK" = "xyes" ]; then 
 	    CFLAGS="$CFLAGS -DCYGWIN_WINSOCK" 
diff -urN apache_1.3.29/src/helpers/find-dbm-lib apache_1.3.29-cygwin/src/helpers/find-dbm-lib
--- apache_1.3.29/src/helpers/find-dbm-lib	2002-01-22 08:39:15.000000000 +0100
+++ apache_1.3.29-cygwin/src/helpers/find-dbm-lib	2004-02-04 17:26:59.962324800 +0100
@@ -37,8 +37,8 @@
         *-cygwin*)
         # we use the shared DLL version of gdbm if available
         DBM_LIB=""
-        if ./helpers/TestCompile lib gdbm dbm_open; then
-            DBM_LIB="-lgdbm"
+        if ./helpers/TestCompile lib gdbm_compat dbm_open; then
+            DBM_LIB="-lgdbm_compat -lgdbm"
             LIBS="$LIBS $DBM_LIB"
             found_dbm=1
         fi
diff -urN apache_1.3.29/src/helpers/install.sh apache_1.3.29-cygwin/src/helpers/install.sh
--- apache_1.3.29/src/helpers/install.sh	2001-06-12 12:24:53.000000000 +0200
+++ apache_1.3.29-cygwin/src/helpers/install.sh	2004-02-04 17:32:41.082832000 +0100
@@ -89,12 +89,8 @@
 
 #  Check if we need to add an executable extension (such as ".exe") 
 #  on specific OS to src and dst
-if [ -f "$src.exe" ]; then
-  if [ -f "$src" ]; then
-    : # Cygwin [ test ] is too stupid to do [ -f "$src.exe" ] && [ ! -f "$src" ]
-  else
-    ext=".exe"
-  fi
+if [ -f "$src.exe" ] && [ ! -f "$src." ]; then
+  ext=".exe"
 fi
 src="$src$ext"
 dst="$dst$ext"
