$OpenBSD$

GNU's `cp -a' is equivalent to our `cp -pRP' execpt for hardlinks.

Our zlib version 1.2.3 does work with a few adjusted compress(3) calls.

Index: configure
--- configure.orig
+++ configure
@@ -42,17 +42,17 @@ if [ "$srcdir" != "." ]; then
 
     # Easiest way to get the test suite to work is to just copy the
     # whole thing into the build directory.
-    cp -a "$srcdir"/test/* test
+    cp -pRP "$srcdir"/test/* test
 
     # Emacs only likes to generate compiled files next to the .el files
     # by default so copy these as well (which is not ideal).
-    cp -a "$srcdir"/emacs/*.el emacs
+    cp -pRP "$srcdir"/emacs/*.el emacs
 
     # We were not able to create fully working Makefile using ruby mkmf.rb
     # so ruby bindings source files are copied as well (ditto -- not ideal).
     mkdir bindings/ruby
-    cp -a "$srcdir"/bindings/ruby/*.[ch] bindings/ruby
-    cp -a "$srcdir"/bindings/ruby/extconf.rb bindings/ruby
+    cp -pRP "$srcdir"/bindings/ruby/*.[ch] bindings/ruby
+    cp -pRP "$srcdir"/bindings/ruby/extconf.rb bindings/ruby
 fi
 
 # Set several defaults (optionally specified by the user in
@@ -525,9 +525,9 @@ if ! pkg-config --exists zlib; then
   rm -f compat/gen_zlib_pc
 fi
 
-printf "Checking for zlib (>= 1.2.5.2)... "
+printf "Checking for zlib... "
 have_zlib=0
-if pkg-config --atleast-version=1.2.5.2 zlib; then
+if pkg-config zlib; then
     printf "Yes.\n"
     have_zlib=1
     zlib_cflags=$(pkg-config --cflags zlib)
