summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>1999-04-26 23:12:28 +0000
committerchip <chip@pobox.com>1999-04-26 23:12:28 +0000
commit5bb5b6dd6c1deca83a2a9222f96e30cbcc1741e7 (patch)
tree9801b9ae4c07f6a7d9110ff2769889754c09b66f
parentbb9cb4f0e90fb7c47050021d57e4d13c13d78048 (diff)
downloadperl-5bb5b6dd6c1deca83a2a9222f96e30cbcc1741e7.tar.gz
Update OpenBSD hints.
(from Todd Miller <Todd.Miller@courtesan.com>) p4raw-id: //depot/maint-5.004/perl@3281
-rw-r--r--hints/openbsd.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/hints/openbsd.sh b/hints/openbsd.sh
index 633ac35d54..97d3debf3d 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -15,21 +15,21 @@ usevfork='true'
# setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions
# in 4.4BSD. Configure will find these but they are just emulated
# and do not have the same semantics as in 4.3BSD.
-d_setregid='undef'
-d_setreuid='undef'
-d_setrgid='undef'
-d_setruid='undef'
+d_setregid="$undef"
+d_setreuid="$undef"
+d_setrgid="$undef"
+d_setruid="$undef"
#
# Not all platforms support shared libs...
#
case `uname -m` in
alpha|mips|powerpc|vax)
- d_dlopen=$undef
+ d_dlopen="$undef"
;;
*)
- d_dlopen=$define
- d_dlerror=$define
+ d_dlopen="$define"
+ d_dlerror="$define"
# we use -fPIC here because -fpic is *NOT* enough for some of the
# extensions like Tk on some OpenBSD platforms (ie: sparc)
cccdlflags="-DPIC -fPIC $cccdlflags"
@@ -37,6 +37,16 @@ alpha|mips|powerpc|vax)
;;
esac
+#
+# Tweaks for various versions of OpenBSD
+#
+case "$osvers" in
+2.5)
+ # OpenBSD 2.5 has broken odbm support
+ i_dbm="$undef"
+ ;;
+esac
+
# OpenBSD doesn't need libcrypt but many folks keep a stub lib
# around for old NetBSD binaries.
libswanted=`echo $libswanted | sed 's/ crypt / /'`
@@ -45,7 +55,7 @@ libswanted=`echo $libswanted | sed 's/ crypt / /'`
pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
# Configure can't figure this out non-interactively
-d_suidsafe='define'
+d_suidsafe="$define"
# cc is gcc so we can do better than -O
# Allow a command-line override, such as -Doptimize=-g